[U-Boot] [PATCH 02/16] arch/arm/lib/bootm.c: Optionally use existing atags

2011-12-17 Thread Pali Rohár
This patch adapts the bootm command so that it can use an existing atags command set up by a previous bootloader. If the environment variable "atagaddr" is unset, bootm behaves as normal. If "atagaddr" is set, bootm will use atags address from environment variable and also append new boot args (if

Re: [U-Boot] [PATCH 02/16] arch/arm/lib/bootm.c: Optionally use existing atags

2011-12-18 Thread Mike Frysinger
On Saturday 17 December 2011 12:03:04 Pali Rohár wrote: > + s = getenv ("atagaddr"); no space before the "(" > #if defined (CONFIG_SETUP_MEMORY_TAGS) || \ > defined (CONFIG_CMDLINE_TAG) || \ > defined (CONFIG_INITRD_TAG) || \ > defined (CONFIG_SERIAL_TAG) || \ > defined (

Re: [U-Boot] [PATCH 02/16] arch/arm/lib/bootm.c: Optionally use existing atags

2011-12-18 Thread Pali Rohár
On Sunday 18 December 2011 13:54:21 Mike Frysinger wrote: > On Saturday 17 December 2011 12:03:04 Pali Rohár wrote: > > + s = getenv ("atagaddr"); > > no space before the "(" > > > #if defined (CONFIG_SETUP_MEMORY_TAGS) || \ > > > > defined (CONFIG_CMDLINE_TAG) || \ > > defined (CONFIG