Re: [U-Boot] [PATCH v4 6/7] env: make "env default" selective, check and apply

2012-08-27 Thread Gerlando Falauto
On 08/24/2012 11:10 PM, Marek Vasut wrote: Dear Gerlando Falauto, On 08/24/2012 04:56 PM, Marek Vasut wrote: Dear Gerlando Falauto, Change the syntax (user API) for "env default": -f: override write-once variables var... : accept individual variable(s) -a: all (resetting the whol

Re: [U-Boot] [PATCH v4 7/7] env: delete selected vars not present in imported env

2012-08-27 Thread Gerlando Falauto
On 08/24/2012 11:12 PM, Marek Vasut wrote: Dear Gerlando Falauto, On 08/24/2012 04:58 PM, Marek Vasut wrote: Dear Gerlando Falauto, When variables explicitly specified on the command line are not present in the imported env, delete them from the running env. If the variable is also missing f

[U-Boot] [PATCH v5 7/7] env: delete selected vars not present in imported env

2012-08-27 Thread Gerlando Falauto
When variables explicitly specified on the command line are not present in the imported env, delete them from the running env. If the variable is also missing from the running env, issue a warning. Signed-off-by: Gerlando Falauto --- Changes from v4: - renamed is_var_in_set to drop_var_from_set -

Re: [U-Boot] [PATCH v4 6/7] env: make "env default" selective, check and apply

2012-08-27 Thread Marek Vasut
Dear Gerlando Falauto, > On 08/24/2012 11:10 PM, Marek Vasut wrote: > > Dear Gerlando Falauto, > > > >> On 08/24/2012 04:56 PM, Marek Vasut wrote: > >>> Dear Gerlando Falauto, > >>> > Change the syntax (user API) for "env default": > -f: override write-once variables > var

Re: [U-Boot] [PATCH v5 7/7] env: delete selected vars not present in imported env

2012-08-27 Thread Marek Vasut
Dear Gerlando Falauto, > When variables explicitly specified on the command line are not present > in the imported env, delete them from the running env. > If the variable is also missing from the running env, issue a warning. > > Signed-off-by: Gerlando Falauto Looks reasonable ... Reviewed-b

[U-Boot] [PATCH] arm: sam9g10/sam9m10g45: remove CONFIG_ARCH_CPU_INIT

2012-08-27 Thread Bo Shen
Remove CONFIG_ARCH_CPU_INIT for at91sam9g10ek and at91sam9m10g45ek Signed-off-by: Bo Shen --- include/configs/at91sam9261ek.h|1 - include/configs/at91sam9m10g45ek.h |1 - 2 files changed, 2 deletions(-) diff --git a/include/configs/at91sam9261ek.h b/include/configs/at91sam9261ek.h

Re: [U-Boot] [PATCH 2/4] spi: atmel: add WDRBT bit to avoid receive overrun

2012-08-27 Thread Andreas Bießmann
Dear Mike Frysinger, On 21.08.2012 20:56, Mike Frysinger wrote: > On Tuesday 21 August 2012 07:11:18 Andreas Bießmann wrote: >> On 20.08.2012 08:32, Bo Shen wrote: >>> The atmel at91sam9x5 series spi has feature to avoid receive overren >>> >>> Using the patch to enable it >>> >>> Signed-off-by: B

[U-Boot] [PATCH v2 0/12] SPL: Port SPL framework to powerpc

2012-08-27 Thread Stefan Roese
This patchset ports the SPL framework to powerpc. Its based on the SPL generalization lately done by Tom Rini. The patches can be applied on top of his 4th version located here: http://github.com/trini/u-boot WIP/spl-improvements Additionally, a new MPC5200 board port is included, the a3m071 boa

[U-Boot] [PATCH v2 02/12] SPL: Use image_get_xxx() functions to access header values

2012-08-27 Thread Stefan Roese
Signed-off-by: Stefan Roese --- common/spl/spl.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/common/spl/spl.c b/common/spl/spl.c index d36416c..cc8df84 100644 --- a/common/spl/spl.c +++ b/common/spl/spl.c @@ -75,13 +75,13 @@ void spl_parse_image_header(const st

[U-Boot] [PATCH v2 03/12] SPL: Add option to skip copying of the mkimage header

2012-08-27 Thread Stefan Roese
On some system (e.g. powerpc), the load-address and entry-point is located at address 0. So the current approach to load the image (payload) including the header to the address "load-address - 64" can't work here. This patch adds an flag to skip this copying including header to the SPL framework.

[U-Boot] [PATCH v2 01/12] SPL: Fix build problems on ARM with new SPL framework

2012-08-27 Thread Stefan Roese
v4 of the SPL rework introduced some small issues. This patch fixes them. Signed-off-by: Stefan Roese --- arch/arm/lib/spl.c | 2 ++ common/spl/spl.c | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/lib/spl.c b/arch/arm/lib/spl.c index 2d1f47a..3a5c593 100644 --

[U-Boot] [PATCH v2 04/12] SPL: Add NOR flash booting support

2012-08-27 Thread Stefan Roese
SPL NOR flash booting support is quite simple. Only copying of the images is needed. On MPC5xxx we need to make sure to only use the standard memcpy() implementation and not the MPC5xxx specific one. As the MPC5xxx version has some complexity which is not needed for this SPL booting. Signed-off-b

[U-Boot] [PATCH v2 05/12] powerpc: Extract EPAPR_MAGIC constants into processor.h

2012-08-27 Thread Stefan Roese
By extracting these defines into a header, they can be re-used by other C sources as well. This will be done by the SPL framework OS boot support. Signed-off-by: Stefan Roese --- arch/powerpc/include/asm/processor.h | 6 ++ arch/powerpc/lib/bootm.c | 6 -- 2 files changed, 6

[U-Boot] [PATCH v2 08/12] mpc5200: Add SPL support

2012-08-27 Thread Stefan Roese
This patch adds SPL booting support (NOR flash) for the MPC5200 platforms. Signed-off-by: Stefan Roese --- Changes in v2: - Rebased on Tom's SPL framework patches v4 arch/powerpc/cpu/mpc5xxx/Makefile | 4 ++ arch/powerpc/cpu/mpc5xxx/spl_boot.c | 81 +

[U-Boot] [PATCH v2 06/12] SPL: Port SPL framework to powerpc

2012-08-27 Thread Stefan Roese
This patch enables the SPL framework to be used on powerpc platforms and not only ARM. Signed-off-by: Stefan Roese --- Changes in v2: - Add option to skip copying of the mkimage header - Rebased on Tom's SPL framework patches v4 arch/powerpc/lib/Makefile | 1 + arch/powerpc/lib/spl.c| 42 +

[U-Boot] [PATCH v2 07/12] env: Extract getenv_f() into separate source file

2012-08-27 Thread Stefan Roese
By extracting getenv_f and envmatch() from cmd_nvedit.c into a separate file, getenv_f() can be included easily into the SPL binary. With this, SPL boards can now use getenv_f() to read environment variables (e.g. to detect if the OS or U-Boot shall be executed). In the approach this is done for e

[U-Boot] [PATCH v2 10/12] fdt: cmd_fdt: Call fdt_chosen() from "fdt boardsetup"

2012-08-27 Thread Stefan Roese
By calling fdt_chosen(), the chosen node will be updated / created by the "fdt boardsetup" command. This is useful for setting of the kernel commandline via the "bootargs" env variable. With this change, the "fdt boardsetup" can be used to prepare the DT blob for SPL booting. The patched DT blob c

[U-Boot] [PATCH v2 09/12] mpc5200: Add a3m071 board support

2012-08-27 Thread Stefan Roese
This patch adds support for the a3m071 board based on the MPC5200. Signed-off-by: Stefan Roese --- Changes in v2: - Rebased on Tom's SPL framework patches v4 - a3m071 build: Concat SPL binary and u-boot.img directly (no padding) MAINTAINERS | 2 + board/a3m071/Makefile

[U-Boot] [PATCH v2 11/12] Makefile: Add possibility to set entry-point for u-boot.img

2012-08-27 Thread Stefan Roese
This patch enabled boards using the SPL framework to set an entry point in the U-Boot mkimage image "u-boot.img". Until now the entry point in the header has been set to 0. By setting CONFIG_SYS_UBOOT_START in the board header, boards can override this default location. This will be used by the up

[U-Boot] [PATCH v2 12/12] Makefile: Add target for combined spl/u-boot.bin & u-boot.img

2012-08-27 Thread Stefan Roese
This new make target "u-boot-img.bin" consists of the U-Boot SPL image with the real, full-blown U-Boot image directly attached to it. The full-blown U-Boot image has the mkimage header included, with its load-address and entry-point. This will be used by the upcoming a3m071 MPC5200 board port.

Re: [U-Boot] [PATCH 1/4] spiflash: at25: using common spi flash operation

2012-08-27 Thread Andreas Bießmann
Dear Bo Shen, On 22.08.2012 03:33, Bo Shen wrote: > Hi Andreas, > > On 8/21/2012 19:26, Andreas Bießmann wrote: >> Dear Bo Shen, >> >> On 20.08.2012 08:32, Bo Shen wrote: >>> Using common spi flash operation function to replace private operation >>> funtion >>> >>> This patch is based on http://p

[U-Boot] [PATCH] OMAP3: add definition of CTRL_WKUP_CTRL register

2012-08-27 Thread Arnout Vandecappelle (Essensium/Mind)
From: "Arnout Vandecappelle (Essensium/Mind)" AM/DM37x SoCs add the CTRL_WKUP_CTRL register. It contains the GPIO_IO_PWRDNZ bit, which is required to be set to enable the I/O pads of gpio_126, gpio_127 and gpio_129. Signed-off-by: Arnout Vandecappelle (Essensium/Mind) Cc: Tom Rini --- arch/a

[U-Boot] [PATCH 1/1] [RFC] DM: early_malloc for DM added.

2012-08-27 Thread Tomas Hlavacek
Modular early_malloc for DM with support for more heaps and lightweight first heap on stack. (RFC. Not intended for merging!) Signed-off-by: Tomas Hlavacek --- arch/arm/include/asm/global_data.h|1 + arch/arm/lib/board.c |5 ++ arch/avr32/include/asm/global_

Re: [U-Boot] [PATCH 1/1] [RFC] DM: early_malloc for DM added.

2012-08-27 Thread Marek Vasut
Dear Tomas Hlavacek, > Modular early_malloc for DM with support for more heaps and lightweight > first heap on stack. > > (RFC. Not intended for merging!) > > Signed-off-by: Tomas Hlavacek [...] CCing Graeme Best regards, Marek Vasut ___ U-Boot mail

[U-Boot] [RFC] atmel:dataflash: remove unused mmc_mux

2012-08-27 Thread Andreas Bießmann
The command 'dataflash_mmc_mux' is nowhere used and uses an outdated interface since dataflash is handled via the sf command. This is a first step towards removing the dataflash and merging it with sf interfaces. Signed-off-by: Andreas Bießmann --- common/Makefile|1 - common

Re: [U-Boot] [PATCH 1/1] [RFC] DM: early_malloc for DM added.

2012-08-27 Thread Tomas Hlavacek
Hello Marek and Greame! Thanks. I want to add that this patch contains only the early_malloc() backend for prospective dm_malloc(). There are no relocation support or helpers whatsoever yet. The aim is to present the way of grabbing a chunk of stack and using this memory as the early heap and co

[U-Boot] [PATCHv2 1/1] [RFC] DM: early_malloc for DM added.

2012-08-27 Thread Tomas Hlavacek
Modular early_malloc for DM with support for more heaps and lightweight first heap on stack. (Not intended for merging!) Signed-off-by: Tomas Hlavacek --- arch/arm/include/asm/global_data.h|1 + arch/arm/lib/board.c |5 ++ arch/avr32/include/asm/global_data.

[U-Boot] [Patch V4 2/4] MIPS: change related header files

2012-08-27 Thread Zhizhou Zhang
The most important difference between mips32 and mips64 is the address space. This patch solve This problem. Signed-off-by: Zhizhou Zhang --- arch/mips/include/asm/addrspace.h |2 +- arch/mips/include/asm/io.h | 16 arch/mips/include/asm/posix_types.h |6 +++

[U-Boot] [Patch V4 0/4] MIPS: add mips64 cpu support

2012-08-27 Thread Zhizhou Zhang
This patch add mips64 cpu support. Changes in V4: - Add both big-endian and little-endian support - Remove cache probe - Add standalone support for mips64 Changes in V3: - merge related files into one patch, no longer one file one patch. - add detailed commit message. - remove standalon

[U-Boot] [Patch V4 1/4] MIPS: Add support for MIPS64 cpus

2012-08-27 Thread Zhizhou Zhang
These files are derived from arch/mips/cpu/mips32/*. The main changes are: 1, changes ABI o32 to n64, 2, add mips64 build cflags. Signed-off-by: Zhizhou Zhang --- arch/mips/cpu/mips64/Makefile | 46 +++ arch/mips/cpu/mips64/cache.S | 229 + arch/mi

[U-Boot] [Patch V4 3/4] MIPS: add board qemu-mips64 support

2012-08-27 Thread Zhizhou Zhang
Both big-endian and little-endian are tested with below commands: qemu-system-mips64el -M mips -cpu MIPS64R2-generic -kernel u-boot -nographic qemu-system-mips64 -M mips -cpu MIPS64R2-generic -kernel u-boot -nographic Signed-off-by: Zhizhou Zhang --- board/qemu-mips/u-boot.lds|8 ++ boar

[U-Boot] [Patch V4 4/4] MIPS: add mips64 standalone support

2012-08-27 Thread Zhizhou Zhang
Move CONFIG_SYS_TEXT_BASE to the board specified header file. So change qemu-mips.h also. board/qemu-mips/config.mk is not used, then remove it. Signed-off-by: Zhizhou Zhang --- board/qemu-mips/config.mk | 10 --- examples/standalone/mips64.lds | 59 +

[U-Boot] [Patch V4 0/4] MIPS: add mips64 cpu support

2012-08-27 Thread Zhizhou Zhang
This patch add mips64 cpu support. Changes in V4: - Add both big-endian and little-endian support - Remove cache probe - Add standalone support for mips64 Changes in V3: - merge related files into one patch, no longer one file one patch. - add detailed commit message. - remove standalon

[U-Boot] [Patch V4 1/4] MIPS: Add support for MIPS64 cpus

2012-08-27 Thread Zhizhou Zhang
These files are derived from arch/mips/cpu/mips32/*. The main changes are: 1, changes ABI o32 to n64, 2, add mips64 build cflags. Signed-off-by: Zhizhou Zhang --- arch/mips/cpu/mips64/Makefile | 46 +++ arch/mips/cpu/mips64/cache.S | 229 + arch/mi

[U-Boot] [Patch V4 2/4] MIPS: change related header files

2012-08-27 Thread Zhizhou Zhang
The most important difference between mips32 and mips64 is the address space. This patch solve This problem. Signed-off-by: Zhizhou Zhang --- arch/mips/include/asm/addrspace.h |2 +- arch/mips/include/asm/io.h | 16 arch/mips/include/asm/posix_types.h |6 +++

[U-Boot] [Patch V4 3/4] MIPS: add board qemu-mips64 support

2012-08-27 Thread Zhizhou Zhang
Both big-endian and little-endian are tested with below commands: qemu-system-mips64el -M mips -cpu MIPS64R2-generic -kernel u-boot -nographic qemu-system-mips64 -M mips -cpu MIPS64R2-generic -kernel u-boot -nographic Signed-off-by: Zhizhou Zhang --- board/qemu-mips/u-boot.lds|8 ++ boar

[U-Boot] [Patch V4 4/4] MIPS: add mips64 standalone support

2012-08-27 Thread Zhizhou Zhang
Move CONFIG_SYS_TEXT_BASE to the board specified header file. So change qemu-mips.h also. board/qemu-mips/config.mk is not used, then remove it. Signed-off-by: Zhizhou Zhang --- board/qemu-mips/config.mk | 10 --- examples/standalone/mips64.lds | 59 +

Re: [U-Boot] [Patch V4 0/4] MIPS: add mips64 cpu support

2012-08-27 Thread Daniel Schwierzeck
Hi Zhizhou, 2012/8/27 Zhizhou Zhang : > This patch add mips64 cpu support. > Changes in V4: > - Add both big-endian and little-endian support > - Remove cache probe > - Add standalone support for mips64 > Changes in V3: > - merge related files into one patch, no longer one file one patch.

Re: [U-Boot] [PATCH v2 1/2] mx35: Define default SoC input clock frequencies

2012-08-27 Thread Benoît Thébaudeau
Hi Stefano, > On 21/08/2012 23:07, Benoît Thébaudeau wrote: > > Define default SoC input clock frequencies for i.MX35 in order to > > get rid of > > duplicated definitions. > > > > Signed-off-by: Benoît Thébaudeau > > Cc: Stefano Babic > > --- > > This patch depends on http://patchwork.ozlabs.o

[U-Boot] [PATCH] ppc4xx: Canyonlands/Glacier: Squeeze NAND image a bit to fit again

2012-08-27 Thread Stefan Roese
This patch removes some superfluous SDRAM init calls to fit the NAND_SPL image into 4k again. Signed-off-by: Stefan Roese --- nand_spl/board/amcc/canyonlands/ddr2_fixed.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/nand_spl/board/amcc/canyonlands/ddr2_fixed.c b/nand_spl/board/amcc/can

[U-Boot] Proposed patch: ubifs_finddir shall free memory when dir found

2012-08-27 Thread Dev Ma
Hi, Function ubifs_finddir() in "fs/ubifs/ubifs.c" shall free allocated memory after the dir is found. This has been tested on my board. A pending issue to be patched: Relative symlink, i.e. "ubifsload /sbin/../busybox", does not work correctly. Regards, Dev _

Re: [U-Boot] Proposed patch: ubifs_finddir shall free memory when dir found

2012-08-27 Thread Stefan Roese
On 08/27/2012 04:04 PM, Dev Ma wrote: > Function ubifs_finddir() in "fs/ubifs/ubifs.c" shall free allocated > memory after the dir is found. This has been tested on my board. Could you please post a proper patch to fix this issue. You already seem to have a fix, so please share it with us. > A pe

Re: [U-Boot] [PATCH v4 19/20] SPL: NAND: Enhance drivers/mtd/nand/nand_spl_simple.c

2012-08-27 Thread Tom Rini
On 08/24/2012 05:09 PM, Scott Wood wrote: > On 08/24/2012 06:58 PM, Tom Rini wrote: >> Takes the load function from arch/arm/cpu/armv7/omap-common/spl_nand.c >> instead. This will allow for easier integration of SPL-boots-Linux code on >> other arches. >> >> Signed-off-by: Tom Rini >> --- >> Chan

Re: [U-Boot] [PATCH v2 1/2] mx35: Define default SoC input clock frequencies

2012-08-27 Thread Stefano Babic
On 27/08/2012 15:26, Benoît Thébaudeau wrote: >> Hi Benoît, >> >> I cannot apply this series. Can you take a look, please ? > > Yes, it's because it should be applied only after > http://patchwork.ozlabs.org/patch/177437/ (dependency indicated after the > patch > header). I see, I have missed t

Re: [U-Boot] Add a new protocol

2012-08-27 Thread EVS Hardware Dpt
Hi Albert, Yes, I could, but the purpose of my protocol is to be software driven and not human driven. Also error checking is extremely important when testing boards. Regards, Fred. 2012/8/25 Albert ARIBAUD > Hi Fred, > > On Tue, 21 Aug 2012 18:27:02 +0200, EVS Hardware Dpt > wrote: > > > Hi,

Re: [U-Boot] [PATCHv1] ARM: Add Altera SOCFPGA Cyclone5

2012-08-27 Thread Tom Rini
On 08/25/2012 04:56 AM, Pavel Machek wrote: > Hi! > >> [snip] It's the omap-common/spl.c code with the bits for IH_OS_LINUX taken out :) Can you please re-do your series on top of the SPL series I just posted that provides a common SPL framework? Thanks! >>> >>> I'll take a look.

Re: [U-Boot] Add a new protocol

2012-08-27 Thread Albert ARIBAUD
Hi EVS, On Mon, 27 Aug 2012 17:07:42 +0200, EVS Hardware Dpt wrote: > Hi Albert, > > Yes, I could, but the purpose of my protocol is to be software driven > and not human driven. Also error checking is extremely important when > testing boards. Not sure I get you there. The netconsole is just

Re: [U-Boot] [PATCHv1] ARM: Add Altera SOCFPGA Cyclone5

2012-08-27 Thread Tom Rini
On 08/25/2012 05:05 AM, Pavel Machek wrote: > Hi! > >> [snip] It's the omap-common/spl.c code with the bits for IH_OS_LINUX taken out :) Can you please re-do your series on top of the SPL series I just posted that provides a common SPL framework? Thanks! >>> >>> I'll take a look.

[U-Boot] [PATCH v2] efikamx: update to Efika MX Smarttop and Smartbook boards

2012-08-27 Thread Matt Sealey
This is a rework of a previously submitted patchset and bundles the main board support and USB support into a single commit. It requires the patch "mx5: add iomux-mx51.h include" * Use iomux-mx51.h include to simplify board configuration. * Simplify LED support (remove efikamx_toggle_led, change

Re: [U-Boot] [PATCH v4 19/20] SPL: NAND: Enhance drivers/mtd/nand/nand_spl_simple.c

2012-08-27 Thread Scott Wood
On 08/27/2012 09:37 AM, Tom Rini wrote: > On 08/24/2012 05:09 PM, Scott Wood wrote: >> On 08/24/2012 06:58 PM, Tom Rini wrote: >>> Takes the load function from arch/arm/cpu/armv7/omap-common/spl_nand.c >>> instead. This will allow for easier integration of SPL-boots-Linux code on >>> other arches.

Re: [U-Boot] [PATCH v2 06/12] SPL: Port SPL framework to powerpc

2012-08-27 Thread Tom Rini
On Mon, Aug 27, 2012 at 12:51:01PM +0200, Stefan Roese wrote: > This patch enables the SPL framework to be used on powerpc platforms > and not only ARM. > > Signed-off-by: Stefan Roese [snip] > diff --git a/common/spl/spl.c b/common/spl/spl.c > index 61936ee..3eb269e 100644 > --- a/common/spl/sp

Re: [U-Boot] [PATCH v2 01/12] SPL: Fix build problems on ARM with new SPL framework

2012-08-27 Thread Tom Rini
On Mon, Aug 27, 2012 at 12:50:56PM +0200, Stefan Roese wrote: > v4 of the SPL rework introduced some small issues. This patch fixes > them. OK, I see how you're doing GD on powerpc now, I'll re-work what I had done in my series for v5. Thanks! -- Tom ___

Re: [U-Boot] [PATCH v2 02/12] SPL: Use image_get_xxx() functions to access header values

2012-08-27 Thread Tom Rini
On Mon, Aug 27, 2012 at 12:50:57PM +0200, Stefan Roese wrote: > Signed-off-by: Stefan Roese Good spotting, I'll grab this for my v5 series. -- Tom ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] Add a new protocol

2012-08-27 Thread EVS Hardware Dpt
Yes it could be software driven, but it's much more complex to manage and error checking could be even more complex. Anyway, I've implemented the protocol and it's working properly. As it's used for internal testing, i'm not forced to make source code available, so this issue is closed. Thanks fo

Re: [U-Boot] [PATCH v2 04/12] SPL: Add NOR flash booting support

2012-08-27 Thread Tom Rini
On Mon, Aug 27, 2012 at 12:50:59PM +0200, Stefan Roese wrote: > SPL NOR flash booting support is quite simple. Only copying of the > images is needed. > > On MPC5xxx we need to make sure to only use the standard memcpy() > implementation and not the MPC5xxx specific one. As the MPC5xxx > version h

Re: [U-Boot] [PATCH v4 19/20] SPL: NAND: Enhance drivers/mtd/nand/nand_spl_simple.c

2012-08-27 Thread Tom Rini
On Mon, Aug 27, 2012 at 11:16:45AM -0500, Scott Wood wrote: > On 08/27/2012 09:37 AM, Tom Rini wrote: > > On 08/24/2012 05:09 PM, Scott Wood wrote: > >> On 08/24/2012 06:58 PM, Tom Rini wrote: > >>> Takes the load function from arch/arm/cpu/armv7/omap-common/spl_nand.c > >>> instead. This will all

Re: [U-Boot] [PATCH v4 19/20] SPL: NAND: Enhance drivers/mtd/nand/nand_spl_simple.c

2012-08-27 Thread Scott Wood
On 08/27/2012 12:07 PM, Tom Rini wrote: > On Mon, Aug 27, 2012 at 11:16:45AM -0500, Scott Wood wrote: >> On 08/27/2012 09:37 AM, Tom Rini wrote: >>> On 08/24/2012 05:09 PM, Scott Wood wrote: What is the benefit of putting this in nand_spl_simple.c versus another file? What if someone wan

[U-Boot] [PATCH v2] mx5:Use IMX_GPIO_NR macro

2012-08-27 Thread Ashok
>From 14ef1037b2b535c30c62c8bf1483f9f66960e4e8 Mon Sep 17 00:00:00 2001 From: Ashok Kumar Reddy Date: Mon, 27 Aug 2012 22:29:20 +0530 Subject: [PATCH v2] mx5:Use IMX_GPIO_NR macro Signed-off-by: Ashok Kumar Reddy --- Changes from v1: -Remove checkpatch errors board/freescale/mx51evk/mx51evk.

Re: [U-Boot] [PATCH v2 04/12] SPL: Add NOR flash booting support

2012-08-27 Thread Daniel Schwierzeck
Hi Stefan, 2012/8/27 Stefan Roese : > SPL NOR flash booting support is quite simple. Only copying of the > images is needed. > > On MPC5xxx we need to make sure to only use the standard memcpy() > implementation and not the MPC5xxx specific one. As the MPC5xxx > version has some complexity which i

Re: [U-Boot] [PATCH v2] efikamx: update to Efika MX Smarttop and Smartbook boards

2012-08-27 Thread Stefano Babic
On 27/08/2012 17:58, Matt Sealey wrote: > This is a rework of a previously submitted patchset and bundles the > main board support and USB support into a single commit. > > It requires the patch "mx5: add iomux-mx51.h include" > > * Use iomux-mx51.h include to simplify board configuration. > * Si

Re: [U-Boot] [PATCH v2] efikamx: sync Smartbook DDR settings in DCD with those found in Genesi's production U-Boot

2012-08-27 Thread Stefano Babic
On 24/08/2012 18:44, Matt Sealey wrote: > We have no idea where the DCD was derived from for Smartbook support, but they > differ from the Smarttop settings, MX51EVK settings and certainly don't > correspond to any shipped or development version of U-Boot that Genesi has > ever > had on any Smartb

Re: [U-Boot] [PATCH v2] mx5:Use IMX_GPIO_NR macro

2012-08-27 Thread Stefano Babic
On 27/08/2012 19:19, Ashok wrote: > From 14ef1037b2b535c30c62c8bf1483f9f66960e4e8 Mon Sep 17 00:00:00 2001 > From: Ashok Kumar Reddy > Date: Mon, 27 Aug 2012 22:29:20 +0530 > Subject: [PATCH v2] mx5:Use IMX_GPIO_NR macro > > Signed-off-by: Ashok Kumar Reddy > --- Hi Ashok, > Changes from v1: >

Re: [U-Boot] [PATCH v4 19/20] SPL: NAND: Enhance drivers/mtd/nand/nand_spl_simple.c

2012-08-27 Thread Tom Rini
On Mon, Aug 27, 2012 at 12:14:30PM -0500, Scott Wood wrote: > On 08/27/2012 12:07 PM, Tom Rini wrote: > > On Mon, Aug 27, 2012 at 11:16:45AM -0500, Scott Wood wrote: > >> On 08/27/2012 09:37 AM, Tom Rini wrote: > >>> On 08/24/2012 05:09 PM, Scott Wood wrote: > What is the benefit of putting th

Re: [U-Boot] [PATCH v2 04/12] SPL: Add NOR flash booting support

2012-08-27 Thread Tom Rini
On 08/27/2012 10:29 AM, Daniel Schwierzeck wrote: > Hi Stefan, > > 2012/8/27 Stefan Roese : >> SPL NOR flash booting support is quite simple. Only copying of the >> images is needed. >> >> On MPC5xxx we need to make sure to only use the standard memcpy() >> implementation and not the MPC5xxx speci

Re: [U-Boot] [PATCH v4 19/20] SPL: NAND: Enhance drivers/mtd/nand/nand_spl_simple.c

2012-08-27 Thread Scott Wood
On 08/27/2012 12:50 PM, Tom Rini wrote: > On Mon, Aug 27, 2012 at 12:14:30PM -0500, Scott Wood wrote: >> On 08/27/2012 12:07 PM, Tom Rini wrote: >>> On Mon, Aug 27, 2012 at 11:16:45AM -0500, Scott Wood wrote: On 08/27/2012 09:37 AM, Tom Rini wrote: > On 08/24/2012 05:09 PM, Scott Wood wrot

Re: [U-Boot] [PATCH v2] integrator: break out common config

2012-08-27 Thread Linus Walleij
On Tue, Aug 21, 2012 at 2:59 PM, Linus Walleij wrote: > On Sat, Aug 4, 2012 at 5:21 PM, Linus Walleij > wrote: > >> The configuration that is common for all Integrator boards may >> just as well be stored in a common include file as per pattern >> from other boards. This eases maintenance quite

Re: [U-Boot] [PATCH v4 0/20] ARM: SPL: Make more generic, merge DaVinci and OMAP

2012-08-27 Thread Sughosh Ganu
On Fri Aug 24, 2012 at 04:58:14PM -0700, Tom Rini wrote: > Hey all, > > The following patch series merges the davinci and omap-common SPL > frameworks into a single framework, CONFIG_SPL_FRAMEWORK along with a > few small cleanups to the code to make it a little smaller and more > flexible. The e

Re: [U-Boot] [PATCH v4 19/20] SPL: NAND: Enhance drivers/mtd/nand/nand_spl_simple.c

2012-08-27 Thread Tom Rini
On Mon, Aug 27, 2012 at 01:02:56PM -0500, Scott Wood wrote: > On 08/27/2012 12:50 PM, Tom Rini wrote: > > On Mon, Aug 27, 2012 at 12:14:30PM -0500, Scott Wood wrote: > >> On 08/27/2012 12:07 PM, Tom Rini wrote: > >>> On Mon, Aug 27, 2012 at 11:16:45AM -0500, Scott Wood wrote: > On 08/27/2012 0

Re: [U-Boot] [PATCH v2] integrator: break out common config

2012-08-27 Thread Tom Rini
On Mon, Aug 27, 2012 at 11:30:52AM -0700, Linus Walleij wrote: > On Tue, Aug 21, 2012 at 2:59 PM, Linus Walleij > wrote: > > On Sat, Aug 4, 2012 at 5:21 PM, Linus Walleij > > wrote: > > > >> The configuration that is common for all Integrator boards may > >> just as well be stored in a common i

Re: [U-Boot] [PATCH v4 16/20] SPL: do not use fix value for u-boot size

2012-08-27 Thread Sughosh Ganu
On Fri Aug 24, 2012 at 04:58:30PM -0700, Tom Rini wrote: > From: Stefano Babic > > If an u-boot image is not found, SPL thinks to load a bare > u-boot.bin image with a maximum size of 200KB. > Use CONFIG_SYS_MONITOR_LEN instead. > > Signed-off-by: Stefan Roese > Signed-off-by: Stefano Babic >

[U-Boot] [PATCH] hawkboard: Update config file to work with common spl framework

2012-08-27 Thread Sughosh Ganu
The common spl framework expects the u-boot payload size through CONFIG_SYS_MONITOR_LEN. Define the macro with the u-boot's size. With this change, CONFIG_SYS_NAND_U_BOOT_SIZE is no longer required. Delete the same. Signed-off-by: Sughosh Ganu --- To be applied on top of the common spl framework

Re: [U-Boot] [PATCH 1/2 v2] net: punt bd->bi_ip_addr

2012-08-27 Thread Anatolij Gustschin
Hi Mike, On Thu, 5 Apr 2012 00:53:40 -0400 Mike Frysinger wrote: > This field gets read in one place (by "bdinfo"), and we can replace > that with getenv("ipaddr"). After all, the bi_ip_addr field is kept > up-to-date implicitly with the value of the ipaddr env var. unfortunately this patch b

Re: [U-Boot] Proposed patch: ubifs_finddir shall free memory when dir found

2012-08-27 Thread Dev Ma
Hi, Stefan, I changed ubifs.c as below. But it only improve the memory leak. There is still some memory leak. diff -u -r -d -p -N -EZB -- u-boot-2012.07.orig/fs/ubifs/ubifs.c u-boot-2012.07/fs/ubifs/ubifs.c --- sdc/u-boot-2012.07/fs/ubifs/ubifs.c 2012-07-30 14:24:36.0 -0400 +++ u-boot-20

Re: [U-Boot] [PATCH v4 11/20] ARM: SPL: Clean up spl.c / spl_nand.c slightly

2012-08-27 Thread Sughosh Ganu
On Fri Aug 24, 2012 at 04:58:25PM -0700, Tom Rini wrote: > - Remove includes we don't need > - Switch some printf statements to puts > - Convert some printf statements to debug, introduce new puts statements > - In most cases saying just "No mkimage signature, assuming > u-boot.bin" or simila

Re: [U-Boot] [PATCH v4 16/20] SPL: do not use fix value for u-boot size

2012-08-27 Thread Tom Rini
On 08/27/2012 12:18 PM, Sughosh Ganu wrote: > On Fri Aug 24, 2012 at 04:58:30PM -0700, Tom Rini wrote: >> From: Stefano Babic >> >> If an u-boot image is not found, SPL thinks to load a bare >> u-boot.bin image with a maximum size of 200KB. >> Use CONFIG_SYS_MONITOR_LEN instead. >> >> Signed-off-b

Re: [U-Boot] [PATCH v4 11/20] ARM: SPL: Clean up spl.c / spl_nand.c slightly

2012-08-27 Thread Tom Rini
On 08/27/2012 12:34 PM, Sughosh Ganu wrote: > On Fri Aug 24, 2012 at 04:58:25PM -0700, Tom Rini wrote: >> - Remove includes we don't need >> - Switch some printf statements to puts >> - Convert some printf statements to debug, introduce new puts statements >> - In most cases saying just "No mkima

Re: [U-Boot] [PATCH v4 19/20] SPL: NAND: Enhance drivers/mtd/nand/nand_spl_simple.c

2012-08-27 Thread Tom Rini
On Mon, Aug 27, 2012 at 12:08:14PM -0700, Tom Rini wrote: > On Mon, Aug 27, 2012 at 01:02:56PM -0500, Scott Wood wrote: > > On 08/27/2012 12:50 PM, Tom Rini wrote: > > > On Mon, Aug 27, 2012 at 12:14:30PM -0500, Scott Wood wrote: > > >> On 08/27/2012 12:07 PM, Tom Rini wrote: > > >>> On Mon, Aug 27

Re: [U-Boot] [PATCHv2 1/1] [RFC] DM: early_malloc for DM added.

2012-08-27 Thread Graeme Russ
Hi Tomas, None of my example code is compile tested... Regards, Graeme On Mon, Aug 27, 2012 at 10:42 PM, Tomas Hlavacek wrote: > Modular early_malloc for DM with support for more heaps and lightweight > first heap on stack. > > (Not intended for merging!) > > diff --git a/arch/arm/include/asm

[U-Boot] [PATCH v5 0/25] ARM: SPL: Make more generic, merge DaVinci and OMAP

2012-08-27 Thread Tom Rini
Hey all, The following patch series merges the davinci and omap-common SPL frameworks into a single framework, CONFIG_SPL_FRAMEWORK along with a few small cleanups to the code to make it a little smaller and more flexible. The end result is that davinci can now opt in on SPL-boots-Linux by just s

[U-Boot] [PATCH v5 01/25] Makefile: Move SPL files to clobber, remove from clean

2012-08-27 Thread Tom Rini
The 'clean' target has been removing all of spl but not u-boot itself. For consistency and ease of testing, only remove SPL binaries / maps in the clobber target, just like for full U-Boot Signed-off-by: Tom Rini --- Makefile | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-)

[U-Boot] [PATCH v5 04/25] omap-common: Fix typo in save_boot_params() in lowlevel_init.S

2012-08-27 Thread Tom Rini
Signed-off-by: Tom Rini --- arch/arm/cpu/armv7/omap-common/lowlevel_init.S |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/cpu/armv7/omap-common/lowlevel_init.S b/arch/arm/cpu/armv7/omap-common/lowlevel_init.S index ccc6bb6..48a296c 100644 --- a/arch/arm/cpu/armv

[U-Boot] [PATCH v5 02/25] spl_mmc: Make FAT checks / calls guarded with CONFIG_SPL_FAT_SUPPORT

2012-08-27 Thread Tom Rini
Signed-off-by: Tom Rini --- arch/arm/cpu/armv7/omap-common/spl_mmc.c |4 1 file changed, 4 insertions(+) diff --git a/arch/arm/cpu/armv7/omap-common/spl_mmc.c b/arch/arm/cpu/armv7/omap-common/spl_mmc.c index 2f921bb..7552f6c 100644 --- a/arch/arm/cpu/armv7/omap-common/spl_mmc.c +++ b/

[U-Boot] [PATCH v5 03/25] omap-common: SPL: Add CONFIG_SPL_DISPLAY_PRINT / spl_display_print()

2012-08-27 Thread Tom Rini
Only omap4/5 currently have a meaningful set of display text and overo had been adding a function to display nothing. Change how this works to be opt-in and only turned on for omap4/5 now. Signed-off-by: Tom Rini --- README |4 arch/arm/cpu/armv

[U-Boot] [PATCH v5 05/25] ARM: SPL: Rename omap_boot_device to spl_boot_device

2012-08-27 Thread Tom Rini
Signed-off-by: Tom Rini --- arch/arm/cpu/armv7/omap-common/boot-common.c |2 +- arch/arm/cpu/armv7/omap-common/lowlevel_init.S |4 ++-- arch/arm/cpu/armv7/omap-common/spl.c |2 +- arch/arm/cpu/armv7/omap-common/spl_mmc.c |2 +- arch/arm/cpu/armv7/omap3/board.c

[U-Boot] [PATCH v5 06/25] ARM: SPL: Rename omap_boot_mode to spl_boot_mode()

2012-08-27 Thread Tom Rini
Signed-off-by: Tom Rini --- arch/arm/cpu/armv7/omap-common/boot-common.c |2 +- arch/arm/cpu/armv7/omap-common/spl_mmc.c |2 +- arch/arm/cpu/armv7/omap-common/spl_nand.c|2 +- arch/arm/cpu/armv7/omap3/board.c |2 +- arch/arm/include/asm/omap_common.h

[U-Boot] [PATCH v5 07/25] ARM: SPL: Remove NAND_MODE_HW_ECC from spl_nand.c

2012-08-27 Thread Tom Rini
This detection code doesn't (and can't) do anything currently, so remove. Signed-off-by: Tom Rini --- arch/arm/cpu/armv7/omap-common/spl_nand.c | 13 +++-- arch/arm/cpu/armv7/omap3/board.c |3 --- arch/arm/include/asm/omap_common.h|1 - 3 files changed, 3 inse

[U-Boot] [PATCH v5 08/25] ARM: SPL: Only call mem_malloc_init if configured

2012-08-27 Thread Tom Rini
We can only attempt to setup a malloc pool if CONFIG_SYS_SPL_MALLOC_START is defined, and not all boards require it. Make the call depend on the define. Signed-off-by: Tom Rini --- arch/arm/cpu/armv7/omap-common/spl.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/cpu/armv7/o

[U-Boot] [PATCH v5 09/25] ARM: SPL: Add and

2012-08-27 Thread Tom Rini
Move the SPL prototypes from into and add for arch specific portions of CONFIG_SPL_FRAMEWORK. Signed-off-by: Tom Rini --- Changes in v2: - Fix checkpatch warning (u32* boot_params_ptr -> u32 *boot_params_ptr) arch/arm/cpu/armv7/am33xx/board.c |2 +- arch/arm/cpu/armv7/omap-c

[U-Boot] [PATCH v5 10/25] ARM: SPL: Make spl_mmc.c more generic

2012-08-27 Thread Tom Rini
Move the default omap/related-centric board_mmc_init to arch/arm/cpu/armv7/omap-common/boot-common.c and move the type defines to Signed-off-by: Tom Rini --- arch/arm/cpu/armv7/omap-common/boot-common.c | 16 arch/arm/cpu/armv7/omap-common/spl_mmc.c | 17 --

[U-Boot] [PATCH v5 11/25] ARM: SPL: Clean up spl.c / spl_nand.c slightly

2012-08-27 Thread Tom Rini
- Remove includes we don't need - Switch some printf statements to puts - Convert some printf statements to debug, introduce new puts statements - In most cases saying just "No mkimage signature, assuming u-boot.bin" or similar is sufficient. This also means the non-DEBUG case doesn't ne

[U-Boot] [PATCH v5 13/25] ARM: SPL: Move gpmc_init() to spl_board_init()

2012-08-27 Thread Tom Rini
This is an OMAP/related-specific function, move calling it to spl_board_init() and turn on CONFIG_SPL_BOARD_INIT on the boards that enabled NAND and didn't enable this already. Signed-off-by: Tom Rini --- arch/arm/cpu/armv7/omap-common/boot-common.c |7 +++ arch/arm/cpu/armv7/omap-commo

[U-Boot] [PATCH v5 12/25] ARM: SPL: Start hooking in the current SPI SPL support

2012-08-27 Thread Tom Rini
Signed-off-by: Tom Rini --- arch/arm/cpu/armv7/omap-common/spl.c |5 + arch/arm/include/asm/spl.h |3 +++ 2 files changed, 8 insertions(+) diff --git a/arch/arm/cpu/armv7/omap-common/spl.c b/arch/arm/cpu/armv7/omap-common/spl.c index 3a1029f..dc26750 100644 --- a/arch/arm

[U-Boot] [PATCH v5 15/25] SPL: Create arch/arm/lib/spl.c for board_init_f and jump_to_image_linux

2012-08-27 Thread Tom Rini
In SPL (CONFIG_SPL_FRAMEWORK) board_init_f must setup the stack pointer, clear the BSS and call board_init_r. We mark this as weak as some platforms may need to perform additional initalization at this point. We provide a gd that we know will be in a usable location, once the BSS has been cleared

[U-Boot] [PATCH v5 14/25] SPL: Move the omap SPL framework to common/spl

2012-08-27 Thread Tom Rini
Add a new flag, CONFIG_SPL_FRAMEWORK to opt into the common/spl SPL framework, enable on all of the previously using boards. We move the spl_ymodem.c portion to common/ and spl_mmc.c to drivers/mmc/. We leave the NAND one in-place as we plan to replace it later in this series. We use common/spl

[U-Boot] [PATCH v5 16/25] SPL: do not use fix value for u-boot size

2012-08-27 Thread Tom Rini
From: Stefano Babic If an u-boot image is not found, SPL thinks to load a bare u-boot.bin image with a maximum size of 200KB. Use CONFIG_SYS_MONITOR_LEN instead. Signed-off-by: Stefan Roese Signed-off-by: Stefano Babic Signed-off-by: Tom Rini --- Changes in v4: - Add Stefano's patch for CONFI

[U-Boot] [PATCH v5 17/25] SPL: Use image_get_xxx() functions to access header values

2012-08-27 Thread Tom Rini
From: Stefan Roese Signed-off-by: Stefan Roese Signed-off-by: Tom Rini --- Changes in v5: - Add Stefan's patch to use image_get_xxx() functions common/spl/spl.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/common/spl/spl.c b/common/spl/spl.c index a9073c6..

[U-Boot] [PATCH v5 18/25] SPL: NAND: Move arch/arm/cpu/armv7/omap-common/spl_nand.c to common/spl

2012-08-27 Thread Tom Rini
We move the spl_nand_load_image function to common/spl. This will allow for easier integration of SPL-boots-Linux code on other arches. Signed-off-by: Tom Rini --- Changes in v4: - Leave nand_spl_load.c alone, move the new load into nand_spl_simple.c Changes in v5: after talking with Scott Wo

[U-Boot] [PATCH v5 19/25] ARM: SPL: Convert davinci to CONFIG_SPL_FRAMEWORK

2012-08-27 Thread Tom Rini
- Convert the non-relocation part of board_init_f to spl_board_init, turn on CONFIG_SPL_BOARD_INIT in the configs. - Remove duplicated code. - Add spl_boot_device() that returns the statically chosen boot device. Signed-off-by: Tom Rini --- Changes in v2: - Add CONFIG_SYS_SPL_MALLOC_START / SIZ

[U-Boot] [PATCH v5 20/25] da850: Add README.da850

2012-08-27 Thread Tom Rini
This file documents when to build for da850evm and when to build for da850_am18xxevm. It also documents how to write the u-boot.ais file to persistent storage (such as SPI), in some cases as well as how to write a recovery image. Signed-off-by: Tom Rini --- Changes in v2: - Add README.da850_am18

[U-Boot] [PATCH v5 22/25] SPL: Add option to skip copying of the mkimage header

2012-08-27 Thread Tom Rini
From: Stefan Roese On some system (e.g. powerpc), the load-address and entry-point is located at address 0. So the current approach to load the image (payload) including the header to the address "load-address - 64" can't work here. This patch adds an flag to skip this copying including header t

  1   2   >