Re: [U-Boot] [PATCH 1/4] mtd/nand : Add function board_nand_init_tail() for some special NAND controllers

2011-12-04 Thread Igor Grinberg
Hi, On 12/02/11 11:17, Shengzhou Liu wrote: > In some NAND controllers there is a size limitation of RAM buffer(2K bytes). > To support large-page NAND chips with greater than 2K pagesize, we need a > large > buffer, but we don't know pagesize before calling nand_scan_ident(), for more > flexible

Re: [U-Boot] [PATCH] imximage: Add support for NOR boot

2011-12-04 Thread stefano babic
Am 03/12/2011 13:48, schrieb Fabio Estevam: > From: Fabio Estevam > > Add support for NOR boot on imximage. > > Signed-off-by: Fabio Estevam Hi Fabio, > This command copies the u-boot image at the address 0x400, as required > -by the processor. > +by the processor when booting from SD/MMC.

Re: [U-Boot] [PATCH 5/9] drivers/usb/gadget/core.c: Fix GCC 4.6 warning

2011-12-04 Thread Remy Bohmer
Hi, 2011/12/3 Anatolij Gustschin : > Fix: > core.c: In function 'usbd_device_event_irq': > core.c:596:21: warning: variable 'state' set but not used > [-Wunused-but-set-variable] > > Signed-off-by: Anatolij Gustschin > Cc: Remy Bohmer > --- >  drivers/usb/gadget/core.c |    4 ++-- >  1 files cha

Re: [U-Boot] [PATCH 4/9] drivers/usb/musb/musb_udc.c: Fix GCC 4.6 warning

2011-12-04 Thread Remy Bohmer
Hi, 2011/12/3 Anatolij Gustschin : > Fix: > musb_udc.c: In function 'musb_peri_softconnect': > musb_udc.c:166:14: warning: variable 'intrtx' set but not used > [-Wunused-but-set-variable] > musb_udc.c:166:6: warning: variable 'intrrx' set but not used > [-Wunused-but-set-variable] > musb_udc.c:165

Re: [U-Boot] [PATCH v2 13/17] tegra: usb: Add support for Tegra USB peripheral

2011-12-04 Thread Remy Bohmer
Hi, 2011/12/3 Simon Glass : > This adds basic support for the Tegra2 USB controller. Board files should > call board_usb_init() to set things up. > > Configuration through FDT and CONFIG is supported. For FDT, the device > tree aliases set the order of the port, like this fragment: > >        alia

Re: [U-Boot] [PATCH v2 11/17] usb: Add support for data alignment

2011-12-04 Thread Remy Bohmer
Hi, 2011/12/3 Simon Glass : > CONFIG_USB_EHCI_DATA_ALIGN sets the required alignment of data for > USB packets (e.g. 4 means word-aligned). This is required for Tegra > to operate. > > Signed-off-by: Simon Glass > --- > Changes in v2: > - Tidy code style in USB buffer alignment code > - Display p

Re: [U-Boot] [PATCH 6/9] drivers/usb/gadget/ep0.c: Fix GCC 4.6 warning

2011-12-04 Thread Remy Bohmer
Hi, 2011/12/3 Anatolij Gustschin : > Fix: > ep0.c: In function 'ep0_get_descriptor': > ep0.c:187:8: warning: variable 'cp' set but not used > [-Wunused-but-set-variable] > > Signed-off-by: Anatolij Gustschin > Cc: Remy Bohmer > --- >  drivers/usb/gadget/ep0.c |    2 -- >  1 files changed, 0 inse

Re: [U-Boot] [PATCH 3/9] drivers/mtd/nand/nand_spl_load.c: Fix GCC 4.6 warning

2011-12-04 Thread Marek Vasut
> Fix: > nand_spl_load.c: In function 'nand_boot': > nand_spl_load.c:31:6: warning: variable 'ret' set but not used > [-Wunused-but-set-variable] > > Signed-off-by: Anatolij Gustschin > Cc: Heiko Schocher > Cc: Scott Wood > --- > drivers/mtd/nand/nand_spl_load.c | 13 ++--- > 1 files

Re: [U-Boot] [PATCH 2/9] drivers/mtd/nand/nand_spl_simple.c: Fix GCC 4.6 warnings

2011-12-04 Thread Marek Vasut
> Fix warnings for both cases: > > definded CONFIG_SYS_NAND_HW_ECC_OOBFIRST: > nand_spl_simple.c: In function 'nand_read_page': > nand_spl_simple.c:156:6: warning: variable 'stat' set but not used > [-Wunused-but-set-variable] > > not definded CONFIG_SYS_NAND_HW_ECC_OOBFIRST: > nand_spl_simple.c:

Re: [U-Boot] [PATCH 4/9] drivers/usb/musb/musb_udc.c: Fix GCC 4.6 warning

2011-12-04 Thread Marek Vasut
> Fix: > musb_udc.c: In function 'musb_peri_softconnect': > musb_udc.c:166:14: warning: variable 'intrtx' set but not used > [-Wunused-but-set-variable] > musb_udc.c:166:6: warning: variable 'intrrx' set but not used > [-Wunused-but-set-variable] > musb_udc.c:165:5: warning: variable 'intrusb' set

Re: [U-Boot] [PATCH 1/9] common/menu.c: Fix build warning

2011-12-04 Thread Marek Vasut
> Fix: > menu.c: In function 'menu_item_print': > menu.c:91: warning: passing argument 1 of 'putc' makes integer from > pointer without a cast > > Signed-off-by: Anatolij Gustschin > --- > common/menu.c |2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/common/menu.c

Re: [U-Boot] [PATCH 5/9] drivers/usb/gadget/core.c: Fix GCC 4.6 warning

2011-12-04 Thread Marek Vasut
> Fix: > core.c: In function 'usbd_device_event_irq': > core.c:596:21: warning: variable 'state' set but not used > [-Wunused-but-set-variable] > > Signed-off-by: Anatolij Gustschin > Cc: Remy Bohmer > --- > drivers/usb/gadget/core.c |4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(

Re: [U-Boot] [PATCH 6/9] drivers/usb/gadget/ep0.c: Fix GCC 4.6 warning

2011-12-04 Thread Marek Vasut
> Fix: > ep0.c: In function 'ep0_get_descriptor': > ep0.c:187:8: warning: variable 'cp' set but not used > [-Wunused-but-set-variable] > > Signed-off-by: Anatolij Gustschin > Cc: Remy Bohmer > --- > drivers/usb/gadget/ep0.c |2 -- > 1 files changed, 0 insertions(+), 2 deletions(-) > > diff

Re: [U-Boot] [PATCH 7/9] arch/arm/cpu/armv7/omap-common/spl.c: Fix GCC 4.2 warnings

2011-12-04 Thread Marek Vasut
> Fix: > spl.c: In function 'jump_to_image_no_args': > spl.c:103: warning: assignment makes pointer from integer without a cast > spl.c:105: warning: dereferencing type-punned pointer will break > strict-aliasing rules > > Signed-off-by: Anatolij Gustschin > Cc: sricharan > Cc: Tom Rini > --- >

Re: [U-Boot] [PATCH 8/9] arch/arm/cpu/armv7/omap-common/clocks-common.c: Fix GCC 4.6 warnings

2011-12-04 Thread Marek Vasut
> Fix: > clocks-common.c: In function 'setup_dplls': > clocks-common.c:256:6: warning: variable 'sysclk_ind' set but not used > [-Wunused-but-set-variable] > clocks-common.c: In function 'setup_non_essential_dplls': > clocks-common.c:292:6: warning: variable 'sysclk_ind' set but not used > [-Wunuse

Re: [U-Boot] [PATCH 9/9] arch/arm/include/asm/arch-omap5/clocks.h: Fix GCC 4.2 warnings

2011-12-04 Thread Marek Vasut
> Fix: > clocks.c: In function 'setup_post_dividers': > clocks.c:175: warning: comparison is always true due to limited range of > data type > clocks.c:177: warning: comparison is always true due to limited range of > data type > clocks.c:179: warning: comparison is always true due to limited range

Re: [U-Boot] [PATCH] MAKEALL: Add -l option to only list build targets

2011-12-04 Thread Marek Vasut
> Should it be an equality operator instead of an assigning one? i.e: > > [ "$ONLY_LIST" == "y" ] && return 1) Please don't top post 2) It's the same thing ... = and == in shell scripting. M > > On Sat, Dec 3, 2011 at 3:57 PM, Mike Frysinger wrote: > > On Saturday 03 December 2011 02:32:03 Ma

Re: [U-Boot] [PATCH 1/9] common/menu.c: Fix build warning

2011-12-04 Thread Anatolij Gustschin
Hi Marek, On Sun, 4 Dec 2011 12:27:26 +0100 Marek Vasut wrote: ... > > diff --git a/common/menu.c b/common/menu.c > > index ca1baef..5e0817c 100644 > > --- a/common/menu.c > > +++ b/common/menu.c > > @@ -88,7 +88,7 @@ static inline void *menu_item_print(struct menu *m, > >

Re: [U-Boot] [PATCH 9/9] arch/arm/include/asm/arch-omap5/clocks.h: Fix GCC 4.2 warnings

2011-12-04 Thread Anatolij Gustschin
On Sun, 4 Dec 2011 12:30:40 +0100 Marek Vasut wrote: > > Fix: > > clocks.c: In function 'setup_post_dividers': > > clocks.c:175: warning: comparison is always true due to limited range of > > data type > > clocks.c:177: warning: comparison is always true due to limited range of > > data type > >

Re: [U-Boot] [PATCH] MIPS: fix endianess handling

2011-12-04 Thread Wolfgang Denk
Dear Daniel Schwierzeck, In message <4edb5f86.40...@googlemail.com> you wrote: > > Wolfgang, is there any reason why standalone apps are linked without > LDFLAGS (especially PLATFORM_LDFLAGS)? None that I know, at least. In general, standalone applications are a rarely used special feature, and

Re: [U-Boot] [PATCH] MIPS: fix endianess handling

2011-12-04 Thread Wolfgang Denk
Dear Shinya Kuribayashi, In message <4edb8475.1080...@pobox.com> you wrote: > > >> -pb1000 mipsmips32 pb1x00 > >> - au1x00 pb1x00:PB1000 > >> +pb1000 mipsmips32 pb1x00 > >> -

Re: [U-Boot] [PATCH 3/3] i.MX28: Move SPL to arch/arm/cpu/arm926ejs/mx28

2011-12-04 Thread Stefano Babic
On 02/12/2011 14:47, Marek Vasut wrote: > This moves SPL to common location so it can be reused by multiple boards. > Also, > this commit adjusts M28 SoM to avoid breakage due to the move. > > Signed-off-by: Marek Vasut > Cc: Wolfgang Denk > Cc: Detlev Zundel > Cc: Stefano Babic > --- Applie

Re: [U-Boot] [PATCH 2/3] M28: Fix typo

2011-12-04 Thread Stefano Babic
On 02/12/2011 14:47, Marek Vasut wrote: > Signed-off-by: Marek Vasut > Cc: Wolfgang Denk > Cc: Detlev Zundel > Cc: Stefano Babic > --- Applied to u-boot-imx, next branch. Best regards, Stefano Babic -- = DENX Software Engin

Re: [U-Boot] [PATCH 1/3 RESEND] M28: Document that units has to be set to sectors on SD bootcard

2011-12-04 Thread Stefano Babic
On 02/12/2011 14:47, Marek Vasut wrote: > Signed-off-by: Marek Vasut > Cc: Stefano Babic > Cc: Wolfgang Denk > --- Applied to u-boot-imx, next branch. Best regards, Stefano Babic -- = DENX Software Engineering GmbH, MD:

Re: [U-Boot] [PATCH 1/3 RESEND] M28: Document that units has to be set to sectors on SD bootcard

2011-12-04 Thread Marek Vasut
> On 02/12/2011 14:47, Marek Vasut wrote: > > Signed-off-by: Marek Vasut > > Cc: Stefano Babic > > Cc: Wolfgang Denk > > --- > > Applied to u-boot-imx, next branch. > > Best regards, > Stefano Babic Thank you! M ___ U-Boot mailing list U-Boot@lists

Re: [U-Boot] [PATCH 3/3] i.MX28: Move SPL to arch/arm/cpu/arm926ejs/mx28

2011-12-04 Thread Fabio Estevam
Hi Marek, On Fri, Dec 2, 2011 at 11:47 AM, Marek Vasut wrote: >  rename board/denx/m28evk/mem_init.c => > arch/arm/cpu/arm926ejs/mx28/spl_mem_init.c (99%) The RAM timings are specific to the board and RAM model (DDR2 or mDDR), memory clock, etc, so I don´t think we can use the same RAM setting

Re: [U-Boot] [PATCH 2/9] drivers/mtd/nand/nand_spl_simple.c: Fix GCC 4.6 warnings

2011-12-04 Thread Heiko Schocher
Hello Anatolij, Anatolij Gustschin wrote: > Fix warnings for both cases: > > definded CONFIG_SYS_NAND_HW_ECC_OOBFIRST: > nand_spl_simple.c: In function 'nand_read_page': > nand_spl_simple.c:156:6: warning: variable 'stat' set but not used > [-Wunused-but-set-variable] > > not definded CONFIG_SYS

Re: [U-Boot] [PATCH 3/9] drivers/mtd/nand/nand_spl_load.c: Fix GCC 4.6 warning

2011-12-04 Thread Heiko Schocher
Hello Anatolij, Anatolij Gustschin wrote: > Fix: > nand_spl_load.c: In function 'nand_boot': > nand_spl_load.c:31:6: warning: variable 'ret' set but not used > [-Wunused-but-set-variable] > > Signed-off-by: Anatolij Gustschin > Cc: Heiko Schocher > Cc: Scott Wood > --- > drivers/mtd/nand/nand

Re: [U-Boot] [PATCH 1/9] common/menu.c: Fix build warning

2011-12-04 Thread Heiko Schocher
Hello Anatolij, Anatolij Gustschin wrote: > Fix: > menu.c: In function 'menu_item_print': > menu.c:91: warning: passing argument 1 of 'putc' makes integer from > pointer without a cast > > Signed-off-by: Anatolij Gustschin > --- > common/menu.c |2 +- > 1 files changed, 1 insertions(+), 1 d

Re: [U-Boot] [PATCH] MIPS: fix endianess handling

2011-12-04 Thread Shinya Kuribayashi
On 12/4/11 9:02 PM, Daniel Schwierzeck wrote: diff --git a/boards.cfg b/boards.cfg index c83d861..2cd917e 100644 --- a/boards.cfg +++ b/boards.cfg @@ -324,13 +324,13 @@ dbau1000 mipsmips32 dbau1x00- dbau1100 mipsmips32

Re: [U-Boot] [PATCH 3/3] i.MX28: Move SPL to arch/arm/cpu/arm926ejs/mx28

2011-12-04 Thread Marek Vasut
> Hi Marek, > > On Fri, Dec 2, 2011 at 11:47 AM, Marek Vasut wrote: > > rename board/denx/m28evk/mem_init.c => > > arch/arm/cpu/arm926ejs/mx28/spl_mem_init.c (99%) > > The RAM timings are specific to the board and RAM model (DDR2 or > mDDR), memory clock, etc, so I don´t think we can use the sa

[U-Boot] [PATCH] sandbox: Add tap based networking

2011-12-04 Thread Matthias Weisser
This patch adds support for networking to sandbox architecture using tap. A tap device "tap0" has to be created e.g. using openvpn $ openvpn --mktun --dev tap0 u-boot should then be able to detect the network device on startup. To test the network related commands the following commands can be us

Re: [U-Boot] [PATCH v4] Add board_pre_console_putc to deal with early console output

2011-12-04 Thread Stefano Babic
On 02/12/2011 19:16, Simon Glass wrote: > It actually started as a last-ditch panic message printer. It morphed > into the general pre-console putc after discussions on the list (with > Graeme). > > It can happen that your early board code does not know what clocks to > use, or can't find a conso

Re: [U-Boot] having trouble booting a simple kernel on a TQM860 board

2011-12-04 Thread Robert P. J. Day
On Fri, 2 Dec 2011, Scott Wood wrote: > On 12/02/2011 05:19 PM, Robert P. J. Day wrote: > > and, at this point, i would think that all i need to do is: > > > > => bootm 40 > > ## Booting image at 0040 ... > >Image Name: Linux-2.6.37 > >Created: 2011-12-02 23:08:06 UTC > >

Re: [U-Boot] [PATCH v4] Add board_pre_console_putc to deal with early console output

2011-12-04 Thread Simon Glass
Hi Stefan, On Sun, Dec 4, 2011 at 10:56 AM, Stefano Babic wrote: > On 02/12/2011 19:16, Simon Glass wrote: > >> It actually started as a last-ditch panic message printer. It morphed >> into the general pre-console putc after discussions on the list (with >> Graeme). >> >> It can happen that your

Re: [U-Boot] [PATCH v4] Add board_pre_console_putc to deal with early console output

2011-12-04 Thread Graeme Russ
Hi Simon, On Mon, Dec 5, 2011 at 2:34 PM, Simon Glass wrote: > Hi Stefan, > > On Sun, Dec 4, 2011 at 10:56 AM, Stefano Babic wrote: >> On 02/12/2011 19:16, Simon Glass wrote: >> >>> It actually started as a last-ditch panic message printer. It morphed >>> into the general pre-console putc after

[U-Boot] [PATCH v2] global_data: unify global flag defines

2011-12-04 Thread Mike Frysinger
All the global flag defines are the same across all arches. So unify them in one place, and add a simple way for arches to extend for their needs. Signed-off-by: Mike Frysinger --- v2 - rebased onto head after x86 patch has been merged arch/arm/include/asm/global_data.h| 14 +

[U-Boot] [PATCH v2] cmd_bdinfo: simplify local static funcs a bit

2011-12-04 Thread Mike Frysinger
If we move the local funcs to the top of the file, and use the __maybe_unused define, we can drop a lot of ugly ifdef logic and duplicated prototypes. Acked-by: Simon Glass Signed-off-by: Mike Frysinger --- v2 - rebased onto current master common/cmd_bdinfo.c | 89 ++-

Re: [U-Boot] [PATCH v2] global_data: unify global flag defines

2011-12-04 Thread Graeme Russ
Hi Mike, On Mon, Dec 5, 2011 at 2:43 PM, Mike Frysinger wrote: > All the global flag defines are the same across all arches.  So unify them > in one place, and add a simple way for arches to extend for their needs. > > Signed-off-by: Mike Frysinger > --- > v2 >        - rebased onto head after x

Re: [U-Boot] [PATCH v4] Add board_pre_console_putc to deal with early console output

2011-12-04 Thread Simon Glass
Hi Graeme, On Sun, Dec 4, 2011 at 7:40 PM, Graeme Russ wrote: > Hi Simon, > > On Mon, Dec 5, 2011 at 2:34 PM, Simon Glass wrote: >> Hi Stefan, >> >> On Sun, Dec 4, 2011 at 10:56 AM, Stefano Babic wrote: >>> On 02/12/2011 19:16, Simon Glass wrote: >>> It actually started as a last-ditch pan

Re: [U-Boot] [PATCH v4] Add board_pre_console_putc to deal with early console output

2011-12-04 Thread Graeme Russ
Hi Simon, On Mon, Dec 5, 2011 at 3:31 PM, Simon Glass wrote: > Hi Graeme, > > On Sun, Dec 4, 2011 at 7:40 PM, Graeme Russ wrote: >> Hi Simon, >> >> On Mon, Dec 5, 2011 at 2:34 PM, Simon Glass wrote: >>> Hi Stefan, >>> >>> On Sun, Dec 4, 2011 at 10:56 AM, Stefano Babic wrote: On 02/12/2011

Re: [U-Boot] [PATCH] MIPS: fix endianess handling

2011-12-04 Thread Daniel Schwierzeck
On 12/04/2011 04:06 PM, Wolfgang Denk wrote: Dear Daniel Schwierzeck, In message<4edb5f86.40...@googlemail.com> you wrote: Wolfgang, is there any reason why standalone apps are linked without LDFLAGS (especially PLATFORM_LDFLAGS)? None that I know, at least. In general, standalone applicat

Re: [U-Boot] [PATCH] MIPS: fix endianess handling

2011-12-04 Thread Daniel Schwierzeck
On 12/04/2011 04:08 PM, Wolfgang Denk wrote: Dear Shinya Kuribayashi, In message<4edb8475.1080...@pobox.com> you wrote: -pb1000 mipsmips32 pb1x00 - au1x00 pb1x00:PB1000 +pb1000 mipsmips32 pb

Re: [U-Boot] [PATCH v2] global_data: unify global flag defines

2011-12-04 Thread Mike Frysinger
On Sunday 04 December 2011 22:47:59 Graeme Russ wrote: > On Mon, Dec 5, 2011 at 2:43 PM, Mike Frysinger wrote: > > +/* > > + * Base for arches to start adding their own: > > + * #define GD_FLG_FOO (GD_FLG_ARCH_BASE << 0) > > + * #define GD_FLG_BAR (GD_FLG_ARCH_BASE << 1) > > + * #define GD_FLG_CO

Re: [U-Boot] [PATCH v2] global_data: unify global flag defines

2011-12-04 Thread Graeme Russ
Hi Mike, On Mon, Dec 5, 2011 at 5:39 PM, Mike Frysinger wrote: > On Sunday 04 December 2011 22:47:59 Graeme Russ wrote: >> On Mon, Dec 5, 2011 at 2:43 PM, Mike Frysinger wrote: >> > +/* >> > + * Base for arches to start adding their own: >> > + * #define GD_FLG_FOO  (GD_FLG_ARCH_BASE << 0) >> > +

Re: [U-Boot] [RFC PATCH 1/7] reboard: define CONFIG_SYS_LEGACY_BOARD everywhere

2011-12-04 Thread Aneesh V
Simon, On Wednesday 30 November 2011 03:39 AM, Simon Glass wrote: +omap, samsung, imx maintainers Hi Mike, On Tue, Nov 29, 2011 at 1:40 PM, Mike Frysinger wrote: On Tuesday 29 November 2011 15:08:09 Simon Glass wrote: On Mon, Nov 28, 2011 at 7:11 PM, Mike Frysinger wrote: On Monday 21 Nove