[U-Boot] [PATCH 7/7][v4] board/b4qds:Add support of 2 stage NAND boot-loader

2014-03-08 Thread Prabhakar Kushwaha
Add support of 2 stage NAND boot loader using SPL framework. here, PBL initialise the internal SRAM and copy SPL(96K). This further initialise DDR using SPD and environment and copy u-boot(512 kb) from NAND to DDR. Finally SPL transer control to u-boot. Initialise/create followings required for S

[U-Boot] [PATCH 5/7][v4] driver/ifc: define nand_spl_load_image() for SPL

2014-03-08 Thread Prabhakar Kushwaha
nand_spl_load_image() can also be used for non TPL framework. Signed-off-by: Prabhakar Kushwaha --- Changes for v2: Sending as it is Changes for v3: Sending as it is Changes for v4: Sending as it is drivers/mtd/nand/fsl_ifc_spl.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) dif

[U-Boot] [PATCH 6/7][v4] Makefile: Add support of RAMBOOT_SPLPBL

2014-03-08 Thread Prabhakar Kushwaha
Objective of this target to have concatenate binary having - SPL binary in PBL command format - U-boot binary Signed-off-by: Prabhakar Kushwaha --- Changes for v2: Updated target Changes for v3: Sending as it is Changes for v4: Updated Makefile with latest build format Makefile | 19

[U-Boot] [PATCH 2/7][v4] powerpc/mpc85xx: Avoid hardcoding in SPL linker script

2014-03-08 Thread Prabhakar Kushwaha
SPL linker has fix location of bootpg and reset vector with respect to text base. It is not necessary to have fixed locations. Avoid such hardcoding. Signed-off-by: Prabhakar Kushwaha --- Changes for v2: Sending as it is Changes for v3: Sending as it is Changes for v4: Sending as it is arc

[U-Boot] [PATCH 3/7][v4] powerpc:Add support of SPL non-relocation

2014-03-08 Thread Prabhakar Kushwaha
Current SPL code base has BSS section placed after reset_vector. This means they have to relocate to use the global variables. This put an implicit requirement of having SPL size = Memory/2. To avoid relocation: - Move bss_section within SPL range - Modify relocate_code() Signed-o

[U-Boot] [PATCH 1/7][v4] powerpc/mpc85xx: Move LAW_EN define outside of config

2014-03-08 Thread Prabhakar Kushwaha
LAW_EN is only defined if CONFIG_SYS_CCSRBAR_DEFAULT is not equal to CONFIG_SYS_CCSRBAR_PHYS. in SPL framework CCSRBAR is not relocated hence both are same. This cause compilation error. So LAW_EN define outside of configs Signed-off-by: Prabhakar Kushwaha --- Changes for v2: Sending as it is

[U-Boot] [PATCH 4/7][v4] powerpc/mpc8xxx:Allow Parsing of LAW table in both SPL & non SPL

2014-03-08 Thread Prabhakar Kushwaha
It is not necessary for SPL to define all required LAW of the system. Re-parse LAW table again during non SPL boot. Signed-off-by: Prabhakar Kushwaha --- Changes for v2: Sending as it is Changes for v3: Sending as it is Changes for v4: Sending as it is arch/powerpc/cpu/mpc8xxx/law.c |9 -

[U-Boot] [PATCH 0/7][v4] powerpc: Add support 2 stage boot loader for corenet platform

2014-03-08 Thread Prabhakar Kushwaha
Signed-off-by: Prabhakar Kushwaha --- Changes for v2: Updated Makefile Changes for v3: - Updated B4860QDS.h config file to support B4420QDS NAND boot - Fix B4860QDS_SPIFLASH B4420QDS_SPIFLASH build issue Changes for v4: - Updated Makefile with latest build format Add support of 2 stage NAN

Re: [U-Boot] [PATCH v3 8/8] tools, fit_check_sign: verify a signed fit image

2014-03-08 Thread Simon Glass
+Charles for HOSTCC comments Hi Heiko, On 3 March 2014 04:19, Heiko Schocher wrote: > add host tool "fit_check_sign" which verifies, if a fit image is > signed correct. > > Signed-off-by: Heiko Schocher > Cc: Simon Glass Looks good - a few nits and the crash I mentioned. It's interesting tha

Re: [U-Boot] [PATCH v3 7/8] tools, fit: add fit_info host command

2014-03-08 Thread Simon Glass
Hi Heiko, On 3 March 2014 04:19, Heiko Schocher wrote: > add fit_info command to the host tools. This command prints > the name, offset and the len from a property from a node in > a fit file. This info can be used to extract a properties property's I think? > data with linux tools, for example

Re: [U-Boot] [PATCH v3 4/8] rsa: add sha256-rsa2048 algorithm

2014-03-08 Thread Simon Glass
Hi Heiko, On 3 March 2014 04:19, Heiko Schocher wrote: > based on patch from andr...@oetken.name: > > http://patchwork.ozlabs.org/patch/294318/ > commit message: > I currently need support for rsa-sha256 signatures in u-boot and found out > that > the code for signatures is not very generic. Thu

Re: [U-Boot] Questions on adding a new type to mkimage

2014-03-08 Thread Simon Glass
Hi Charles, On 20 February 2014 12:50, Charles Manning wrote: > > I am in the throes of extending mkimage to add socfpga support. This is my > first time in mkimage, so please forgive me being on a learning curve. > > It seems that the most "normal" path for mkimage signers is to append some > s

Re: [U-Boot] [PATCH] lcd: Add support for CONFIG_LCD_NOSTDOUT

2014-03-08 Thread Hannes Petermaier
Hi Gerhard, On 2014-03-06 20:49, Gerhard Sittig wrote: In general U-Boot tries to get away from the multitude of ifdefs where possible. I'm afraid adding a new one needs a very good reason to get perceived as welcome. By the way i've found a passage within README, which tells to do so as id id

Re: [U-Boot] [PATCH] board/BuR/kwb: fix usage of 'i2c_set_bus_speed'

2014-03-08 Thread Gerhard Sittig
On Sat, Mar 08, 2014 at 19:14 +0100, Hannes Petermaier wrote: > > Hi Gerhard, > > On 2014-03-08 18:38, Gerhard Sittig wrote: > >On Fri, Mar 07, 2014 at 18:56 +0100, Hannes Petermaier wrote: > >>- fix: return-value of 'i2c_set_bus_speed' was interpreted wrong > >> > >>Signed-off-by: Hannes Peterma

Re: [U-Boot] [PATCH v4 3/6] tegra: omap: alpha-sort USB ethernet items for Asix and SMSC

2014-03-08 Thread Marek Vasut
On Saturday, March 08, 2014 at 07:46:15 PM, Gerhard Sittig wrote: > adjust the harmony and omap3_beagle board configs to make > their CONFIG_USB_ETHER_* items appear in alphabetical order > > Signed-off-by: Gerhard Sittig > Acked-by: Simon Glass Acked-by: Marek Vasut Best regards, Marek Vasut

Re: [U-Boot] [PATCH v4 2/6] usb: net: introduce support for Moschip USB ethernet

2014-03-08 Thread Marek Vasut
On Saturday, March 08, 2014 at 07:46:14 PM, Gerhard Sittig wrote: > introduce an 'mcs7830' driver for Moschip MCS7830 based (7730/7830/7832) > USB 2.0 Ethernet Devices > > see "MCS7830 -- USB 2.0 to 10/100M Fast Ethernet Controller" at > http://www.asix.com.tw/products.php?op=pItemdetail&PItemID=1

Re: [U-Boot] [PATCH v4 6/6] usb: net: update README.usb to list all USB ethernet options

2014-03-08 Thread Marek Vasut
On Saturday, March 08, 2014 at 07:46:18 PM, Gerhard Sittig wrote: > - extend the discussion of USB network related config options such that > all available adapter drivers are listed, and that the 'usb' command > for the interactive prompt and scripting becomes available > - suggest to *not* pu

Re: [U-Boot] [PATCH v4 4/6] tegra: imx: omap: enable Moschip USB ethernet support for several boards

2014-03-08 Thread Marek Vasut
On Saturday, March 08, 2014 at 07:46:16 PM, Gerhard Sittig wrote: > enable support for the Moschip USB ethernet adapter for those boards > which previously had support for "all other" USB ethernet adapters > (that's Asix _and_ SMSC) enabled -- which applies to harmony, m53evk, > mx53loco, nitrogen6

Re: [U-Boot] [PATCH v4 1/6] usb: net: don't ifdef routine declarations in usb_ether.h

2014-03-08 Thread Marek Vasut
On Saturday, March 08, 2014 at 07:46:13 PM, Gerhard Sittig wrote: > while compilation of implemented routines and references from calling > sites may be optional, declarations in header files should not be > > unconditionally declare the Asix and SMSC related public USB ethernet > driver routines

Re: [U-Boot] [PATCH v4 0/6] usb: net: introduce Moschip MCS7830 driver

2014-03-08 Thread Gerhard Sittig
On Sat, Mar 08, 2014 at 19:46 +0100, Gerhard Sittig wrote: > > this series > - adds a new USB ethernet driver for adapters that are based on the > MCS7730/7830/7832 chips > - enables the driver for those boards which previously had support for > "all other" USB ethernet adapters > - updates th

Re: [U-Boot] [PATCH v4 0/6] usb: net: introduce Moschip MCS7830 driver

2014-03-08 Thread Gerhard Sittig
On Sat, Mar 08, 2014 at 19:46 +0100, Gerhard Sittig wrote: > > this series > - adds a new USB ethernet driver for adapters that are based on the > MCS7730/7830/7832 chips > [ ... ] I'm sorry. I feel that I have to apologies for the excessive Cc: list. Not for the cover letter, but for individ

[U-Boot] [PATCH v4 4/6] tegra: imx: omap: enable Moschip USB ethernet support for several boards

2014-03-08 Thread Gerhard Sittig
enable support for the Moschip USB ethernet adapter for those boards which previously had support for "all other" USB ethernet adapters (that's Asix _and_ SMSC) enabled -- which applies to harmony, m53evk, mx53loco, nitrogen6x, omap3_beagle Signed-off-by: Gerhard Sittig --- Changes in v4: None

[U-Boot] [PATCH v4 5/6] at91: enable USB ethernet for taskit stamp9g20

2014-03-08 Thread Gerhard Sittig
enabling CONFIG_MACB makes other locations in the stamp config file enable network related commands (actually prevents disabling them) enable USB ethernet support by activating generic support as well as Asix and Moschip ethernet adapters Signed-off-by: Gerhard Sittig --- Changes in v4: None C

[U-Boot] [PATCH v4 6/6] usb: net: update README.usb to list all USB ethernet options

2014-03-08 Thread Gerhard Sittig
- extend the discussion of USB network related config options such that all available adapter drivers are listed, and that the 'usb' command for the interactive prompt and scripting becomes available - suggest to *not* put individual IP configuration parameters into the exectuable, but instea

[U-Boot] [PATCH v4 3/6] tegra: omap: alpha-sort USB ethernet items for Asix and SMSC

2014-03-08 Thread Gerhard Sittig
adjust the harmony and omap3_beagle board configs to make their CONFIG_USB_ETHER_* items appear in alphabetical order Signed-off-by: Gerhard Sittig Acked-by: Simon Glass --- Changes in v4: None Changes in v3: - pick up Simon's ACKs for individual patches Changes in v2: - introduce the patch t

[U-Boot] [PATCH v4 2/6] usb: net: introduce support for Moschip USB ethernet

2014-03-08 Thread Gerhard Sittig
introduce an 'mcs7830' driver for Moschip MCS7830 based (7730/7830/7832) USB 2.0 Ethernet Devices see "MCS7830 -- USB 2.0 to 10/100M Fast Ethernet Controller" at http://www.asix.com.tw/products.php?op=pItemdetail&PItemID=109;74;109 the driver was implemented based on the U-Boot Asix driver with a

[U-Boot] [PATCH v4 1/6] usb: net: don't ifdef routine declarations in usb_ether.h

2014-03-08 Thread Gerhard Sittig
while compilation of implemented routines and references from calling sites may be optional, declarations in header files should not be unconditionally declare the Asix and SMSC related public USB ethernet driver routines in the usb_ether.h header file Signed-off-by: Gerhard Sittig Acked-by: Sim

[U-Boot] [PATCH v4 0/6] usb: net: introduce Moschip MCS7830 driver

2014-03-08 Thread Gerhard Sittig
this series - adds a new USB ethernet driver for adapters that are based on the MCS7730/7830/7832 chips - enables the driver for those boards which previously had support for "all other" USB ethernet adapters - updates the README.usb documentation file to list all available drivers for USB e

Re: [U-Boot] [PATCH] board/BuR/kwb: fix usage of 'i2c_set_bus_speed'

2014-03-08 Thread Hannes Petermaier
Hi Gerhard, On 2014-03-08 18:38, Gerhard Sittig wrote: On Fri, Mar 07, 2014 at 18:56 +0100, Hannes Petermaier wrote: - fix: return-value of 'i2c_set_bus_speed' was interpreted wrong Signed-off-by: Hannes Petermaier --- board/BuR/kwb/board.c |4 ++-- 1 file changed, 2 insertions(+), 2 d

[U-Boot] [PATCH v2] board/BuR/kwb: fix usage of 'i2c_set_bus_speed'

2014-03-08 Thread Hannes Petermaier
- fix: return-value of 'i2c_set_bus_speed' was interpreted wrong Signed-off-by: Hannes Petermaier --- Changes for v2: - fixed up Yoda programming style at testing return value of i2c_set_bus_speed :-) --- board/BuR/kwb/board.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)

Re: [U-Boot] [PATCH] board/BuR/kwb: fix usage of 'i2c_set_bus_speed'

2014-03-08 Thread Gerhard Sittig
On Fri, Mar 07, 2014 at 18:56 +0100, Hannes Petermaier wrote: > > - fix: return-value of 'i2c_set_bus_speed' was interpreted wrong > > Signed-off-by: Hannes Petermaier > --- > board/BuR/kwb/board.c |4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/board/BuR/kwb/bo

Re: [U-Boot] [PATCH] arch-at91: Gets ethernet working on at91sam9g20 board

2014-03-08 Thread Gerhard Sittig
On Thu, Mar 06, 2014 at 12:33 -0800, John de la Garza wrote: > > Signed-off-by: John de la Garza Assuming that you fix something which isn't obvious, the commit message is incredibly short (it's empty). virtually yours Gerhard Sittig -- DENX Software Engineering GmbH, MD: Wolfgang Denk &

[U-Boot] kbuild: wrong version_autogenerated.h

2014-03-08 Thread Andreas Bießmann
Dear Masahiro Yamada, I noticed a wrongly generated version_autogenerated.h with my default workflow: ---8<--- andreas@andreas-pc % PATH=$AVR32_PATH:$PATH BUILD_NCPUS=2 BUILD_NBUILDS=6 CROSS_COMPILE=avr32-linux- MAKEALL_LOGDIR=/tmp/makeall_logs BUILD_DIR=/tmp/makeall_buildavr32 ./MAKEALL gr

Re: [U-Boot] [PATCH v7] socfpga: Add socfpga preloader signing to mkimage

2014-03-08 Thread Gerhard Sittig
On Thu, Mar 06, 2014 at 15:40 +1300, Charles Manning wrote: > > [ ... ] > Unfortunately the CRC used in this boot ROM is not the same as the > Adler CRC in lib/crc32.c. Indeed the Adler code is not technically a > CRC but is more correctly described as a checksum. I don't quite get why you say th

[U-Boot] [PATCH V3] cfb_console: align fields in gzipped .bmp files

2014-03-08 Thread Eric Nelson
.bmp files contain 32-bit integers aligned at offsets of +2, +6, et cetera within the bmp_header structure (see include/bmp_layout.h). Support for gzip-compressed .bmp files is present in the cfb_console display subsystem by uncompressing them prior to use. This patch forces the in-memory header

Re: [U-Boot] net: asix: don't pad odd-length TX packets

2014-03-08 Thread Marek Vasut
On Friday, March 07, 2014 at 11:27:37 PM, Tom Rini wrote: > On Thu, Feb 27, 2014 at 01:27:02PM -0700, Stephen Warren wrote: > > From: Stephen Warren > > > > For Ethernet/USB RX packets, the ASIX HW pads odd-sized packets so that > > they have an even size. Currently, asix_recv() does remove this

Re: [U-Boot] [PATCH v2 2/2] cosmetic: README: add some entries to Directory Hierarchy

2014-03-08 Thread Gerhard Sittig
On Fri, Mar 07, 2014 at 18:02 +0900, Masahiro Yamada wrote: > > --- a/README > +++ b/README > @@ -132,6 +132,10 @@ Directory Hierarchy: > > > /archArchitecture specific files > + /arc Files generic to ARC architecture > +/

[U-Boot] [PATCH 1/7][v3] powerpc/mpc85xx: Move LAW_EN define outside of config

2014-03-08 Thread Prabhakar Kushwaha
LAW_EN is only defined if CONFIG_SYS_CCSRBAR_DEFAULT is not equal to CONFIG_SYS_CCSRBAR_PHYS. in SPL framework CCSRBAR is not relocated hence both are same. This cause compilation error. So LAW_EN define outside of configs Signed-off-by: Prabhakar Kushwaha --- Changes for v2: Sending as it is

[U-Boot] [PATCH 7/7][v3] B4860QDS: Add support of 2 stage NAND boot loader

2014-03-08 Thread Prabhakar Kushwaha
Add support of 2 stage NAND boot loader using SPL framework. here, PBL initialise the internal SRAM and copy SPL(96K). This further initialise DDR using SPD and environment and copy u-boot(512 kb) from NAND to DDR. Finally SPL transer control to u-boot. Initialise/create followings required for S

[U-Boot] [PATCH 1/7][v3] powerpc/mpc85xx: Move LAW_EN define outside of config

2014-03-08 Thread Prabhakar Kushwaha
LAW_EN is only defined if CONFIG_SYS_CCSRBAR_DEFAULT is not equal to CONFIG_SYS_CCSRBAR_PHYS. in SPL framework CCSRBAR is not relocated hence both are same. This cause compilation error. So LAW_EN define outside of configs Signed-off-by: Prabhakar Kushwaha --- Changes for v2: Sending as it is

[U-Boot] [PATCH][v4] board/t104xrdb: Add support of CPLD

2014-03-08 Thread Prabhakar Kushwaha
T1040RDB and T1042RDB_PI has CPLD. Here CPLD controls board mux/features. This support of CPLD includes - files and register defintion - Commands to swtich alternate bank and default bank Signed-off-by: Prabhakar Kushwaha --- Changes for v2: - Updated the cpld command Changes for v3:

[U-Boot] [PATCH 4/7][v3] powerpc/mpc8xxx:Allow Parsing of LAW table in both SPL & non SPL

2014-03-08 Thread Prabhakar Kushwaha
It is not necessary for SPL to define all required LAW of the system. Re-parse LAW table again during non SPL boot. Signed-off-by: Prabhakar Kushwaha --- Changes for v2: Sending as it is Changes for v3: Sending as it is arch/powerpc/cpu/mpc8xxx/law.c |9 - 1 file changed, 9 delet

[U-Boot] [PATCH 6/7][v3] Makefile: Add support of RAMBOOT_SPLPBL

2014-03-08 Thread Prabhakar Kushwaha
Objective of this target to have concatenate binary having - SPL binary in PBL command format - U-boot binary Signed-off-by: Prabhakar Kushwaha --- Changes for v2: Updated target Changes for v3: Sending as it is Makefile | 12 README |4 2 files chan

[U-Boot] [PATCH 5/7][v3] driver/ifc: define nand_spl_load_image() for SPL

2014-03-08 Thread Prabhakar Kushwaha
nand_spl_load_image() can also be used for non TPL framework. Signed-off-by: Prabhakar Kushwaha --- Changes for v2: Sending as it is Changes for v3: Sending as it is drivers/mtd/nand/fsl_ifc_spl.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/nand/fsl_if

[U-Boot] [PATCH 2/7][v3] powerpc/mpc85xx: Avoid hardcoding in SPL linker script

2014-03-08 Thread Prabhakar Kushwaha
SPL linker has fix location of bootpg and reset vector with respect to text base. It is not necessary to have fixed locations. Avoid such hardcoding. Signed-off-by: Prabhakar Kushwaha --- Changes for v2: Sending as it is Changes for v3: Sending as it is arch/powerpc/cpu/mpc85xx/u-boot-spl.l

[U-Boot] [PATCH 3/7][v3] powerpc:Add support of SPL non-relocation

2014-03-08 Thread Prabhakar Kushwaha
Current SPL code base has BSS section placed after reset_vector. This means they have to relocate to use the global variables. This put an implicit requirement of having SPL size = Memory/2. To avoid relocation: - Move bss_section within SPL range - Modify relocate_code() Signed-o

[U-Boot] [PATCH][v2] board/b4860qds:Slow MDC clock to comply IEEE specs in PBI config

2014-03-08 Thread Prabhakar Kushwaha
The MDC generate by default value of MDIO_CLK_DIV is too high i.e. higher than 2.5 MHZ. It violates the IEEE specs. So Slow MDC clock to comply IEEE specs Signed-off-by: Prabhakar Kushwaha --- Changes for v2: Update commit message board/freescale/b4860qds/b4_pbi.cfg |3 +++ 1 file changed

[U-Boot] [PATCH 0/7][v3] powerpc: Add support 2 stage boot loader for corenet platform

2014-03-08 Thread Prabhakar Kushwaha
Signed-off-by: Prabhakar Kushwaha --- Changes for v2: Updated Makefile Changes for v3: - Updated B4860QDS.h config file to support B4420QDS NAND boot - Fix B4860QDS_SPIFLASH B4420QDS_SPIFLASH build issue Add support of 2 stage NAND boot loader in cornet platforms using SPL framework. In cu