[PATCH 1/1] arm: add Android boot image support

Jean-Christophe PLAGNIOL-VILLARD plagnioj at jcrosoft.com
Thu Apr 12 07:29:35 EDT 2012


On 12:01 Thu 12 Apr     , Sascha Hauer wrote:
> On Wed, Apr 11, 2012 at 07:42:34AM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote:
> > The Android Image contains 3 components and params
> > 
> >  - kernel
> >  - initrd
> >  - second stage (optional)
> > 
> >  - tags addr
> >  - bootargs
> > 
> > In fast boot the initrd is mandatory, in barebox we are less restrictive
> > use the initrd only if present
> > 
> > add to env params:
> > image_noverwrite_bootargs
> > 	Disable overwrite of the bootargs with the one present in aimage
> > 
> > aimage_noverwrite_tags
> > 	Disable overwrite of the tags addr with the one present in aimage
> > 
> > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>
> > Cc: Magnus Damm <magnus.damm at gmail.com>
> > ---
> >  arch/arm/lib/bootm.c |  147 ++++++++++++++++++++++++++++++++++++++++++++++++++
> >  commands/Kconfig     |    7 +++
> >  include/aimage.h     |   74 +++++++++++++++++++++++++
> >  3 files changed, 228 insertions(+), 0 deletions(-)
> >  create mode 100644 include/aimage.h
> > 
> > diff --git a/arch/arm/lib/bootm.c b/arch/arm/lib/bootm.c
> 
> Can we have this in a seperate file? You made Android support optional
> already and support is only registered when the option is enabled, but
> the code is compiled even without the option.
IIRC the struct is droped by the garbage collector as it's never used

the idea is to compile it always but drop it is not used

without the option

# ls -al build/tny-a9263/barebox.bin 
-rwxr-xr-x 1 root root 259056 Apr 12 18:29 build/tny-a9263/barebox.bin

with it
# ls -al build/tny-a9263/barebox.bin 
-rwxr-xr-x 1 root root 259960 Apr 12 19:45 build/tny-a9263/barebox.bin

Best Regards,
J.



More information about the barebox mailing list