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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxx>
> > Cc: Magnus Damm <magnus.damm@xxxxxxxxx>
> > ---
> >  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.

_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox


[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux