ltib
[Top][All Lists]
Advanced

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

RE: [Ltib] generate uImage instead of zImage


From: Kevin Wells
Subject: RE: [Ltib] generate uImage instead of zImage
Date: Mon, 12 Jan 2009 22:24:03 +0100

I'm looking at this also. Using u-boot, I need a uImage type.

I've added a SYSCFG_KTARG with a default "uImage" value and I do see the make 
command pass "uImage" to the kernel build.
However, with the ARM arch, I'm still not getting a uImage type.

Similar to the several m68k platforms that require special uImage processing, 
I've added a line similar to the following in the common kernel spec template..

if [ $CPU = LPC3XXX ]
then
    mkimage -A arm -O linux -T kernel -C none -a 0x80008000 -e 0x80008000 -n 
"Linux kernel Image" -D$RPM_BUILD_ROOT/%(pfx)/boot/zImage 
$rpm_build_root/%(pfx)/boot/uImage
fi

Is there a way to get the uImage built for the ARM target with those addresses 
without modifying the common template?

Thanks much,
Kevin Wells
NXP


-----Original Message-----
From: address@hidden [mailto:address@hidden On Behalf Of Stuart Hughes
Sent: Monday, January 12, 2009 1:04 AM
To: Mr Junk
Cc: Estevam Fabio; LTIB mailing list
Subject: Re: [Ltib] generate uImage instead of zImage

Hi ml,

Normally the image type should be correct for the platform (which one
are you working on?).

This is computed in: dist/lfs-5.1/kernel/kernel-common.tmpl

If you need something else you can override it in your platform's
main.lkc.  For example if you look at config/platform/qs875s/main.lkc
you'll see the choice of target to be built depends on bootloader:

config SYSCFG_KTARG
    string
    default "zImage" if ! BOOTLOADER1
    default "uImage" if BOOTLOADER1

If you wanted to allow someone to type in this value, you could edit
your main.lkc and add something like:

config SYSCFG_KTARG
    string "kernel target to build"
    default "uImage"

Regards, Stuart


On Sun, 2009-01-11 at 17:23 -0800, Mr Junk wrote:
> None, but I figured out how to use mkimage so that is fine.
> 
> 
> At some point I would like to figure out how to get ltib to make a
> uImage instead of a zImage though.
> 
> 
> ml
> 
> On Jan 11, 2009, at 7:51 AM, Estevam Fabio wrote:
> 
> > Does the build fail? Which LTIB version are you using? Any error
> > message?
> >  
> > Regards,
> >  
> > Fabio Estevam
> > 
> > 
> > ____________________________________________________________________
> > From: Mr Junk [mailto:address@hidden
> > Sent: Sun 1/11/2009 01:23
> > To: Estevam Fabio-R49496
> > Cc: LTIB mailing list
> > Subject: Re: [Ltib] generate uImage instead of zImage
> > 
> > 
> > Thanks, but unfortunately that doesn't seem to work. ? 
> > 
> > 
> > On Jan 10, 2009, at 5:26 PM, Estevam Fabio wrote:
> > 
> > > export SYSCFG_KTARG=uImage
> > > ./ltib -p kernel -f
> > 
> > 
> 
> 
> _______________________________________________
> LTIB home page: http://bitshrine.org
> 
> Ltib mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/ltib



_______________________________________________
LTIB home page: http://bitshrine.org

Ltib mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/ltib




reply via email to

[Prev in Thread] Current Thread [Next in Thread]