[U-Boot-Users] generating a u-boot Linux image for PXA255
Greg Lindberg
gl4jalopi at earthlink.net
Fri Jun 24 17:39:56 CEST 2005
Thanks, just what I needed.
Best Regards,
Greg Lindberg
> -----Original Message-----
> From: u-boot-users-admin at lists.sourceforge.net
> [mailto:u-boot-users-admin at lists.sourceforge.net]On Behalf Of Wolfgang
> Denk
> Sent: Friday, June 24, 2005 8:14 AM
> To: Greg Lindberg
> Cc: U-Boot-Users at lists.sourceforge.net
> Subject: Re: [U-Boot-Users] generating a u-boot Linux image for PXA255
>
>
> In message <MPEAJFOFNNOAIMOHBACIGECLEBAA.gl4jalopi at earthlink.net>
> you wrote:
> >
> > I found a number of boards using the PXA255 processor, I've
> gotten u-boot up
> > a running on an InHand FingerTip3 board, that was not the problem.
>
> Argh.. sorry. I've been completely off track. I thought you were
> asking foir a linker script. Sorry...
>
> > What I asked for was scripts for running mkimage against a
> kernel for the
> > PXA255, I wasn't sure about all of the switches and thought that someone
> > might already have a script that might save me (and others) some time
> > getting the switches right. I still haven't gotten any
> information about
>
> -> make uImage
> ...
> arm-linux-ld -p -X -T arch/arm/vmlinux.lds
> arch/arm/kernel/head-armv.o arch/arm/kernel/init_task.o
> init/main.o init/version.o init/do_mounts.o \
> --start-group \
> arch/arm/kernel/kernel.o arch/arm/mm/mm.o
> arch/arm/mach-pxa/pxa.o kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o \
> drivers/serial/serial.o drivers/char/char.o
> drivers/block/block.o drivers/misc/misc.o drivers/net/net.o
> drivers/usb/gadget/built-in.o drivers/media/media.o \
> net/network.o \
> arch/arm/nwfpe/math-emu.o arch/arm/lib/lib.a
> /work/wd/linuxarm/lib/lib.a \
> --end-group \
> -o vmlinux
> arm-linux-nm vmlinux | grep -v '\(compiled\)\|\(\.o$\)\|\( [aUw]
> \)\|\(\.\.ng$\)\|\(LASH[RL]DI\)' | sort > System.map
> make[1]: Entering directory `/work/wd/linuxarm/arch/arm/boot'
> make[1]: warning: jobserver unavailable: using -j1. Add `+' to
> parent make rule.
> make[2]: Entering directory `/work/wd/linuxarm/arch/arm/boot/compressed'
> arm-linux-objcopy -O binary -R .note -R .comment -S
> /work/wd/linuxarm/vmlinux piggy
> gzip -9 < piggy > piggy.gz
> make[2]: Leaving directory `/work/wd/linuxarm/arch/arm/boot/compressed'
> mkimage -A arm -O linux -T kernel -C gzip -a 0xa0008000\
> -e 0xa0008000 -n 'ARM Linux-2.4.27' \
> -d compressed/piggy.gz uImage
> Image Name: ARM Linux-2.4.27
> Created: Fri Jun 24 17:11:17 2005
> Image Type: ARM Linux Kernel Image (gzip compressed)
> Data Size: 561664 Bytes = 548.50 kB = 0.54 MB
> Load Address: 0xA0008000
> Entry Point: 0xA0008000
> make[1]: Leaving directory `/work/wd/linuxarm/arch/arm/boot'
>
>
> > running mkimage for an PXA255 target, although I think that I
> have figured
> > out how the switches should be set. It would be nice if the
> section in the
> > readme that mentions mkimage listed the values of the different switches
> > that are supported so that it wasn't necessary to go paw
> through the source
> > code to find them.
>
> You can just "ask" mkimage:
>
> -> mkimage -?
> Usage: mkimage -l image
> -l ==> list image header information
> mkimage -A arch -O os -T type -C comp -a addr -e ep -n
> name -d data_file[:data_file...] image
> -A ==> set architecture to 'arch'
> -O ==> set operating system to 'os'
> -T ==> set image type to 'type'
> -C ==> set compression type 'comp'
> -a ==> set load address to 'addr' (hex)
> -e ==> set entry point to 'ep' (hex)
> -n ==> set image name to 'name'
> -d ==> use image data from 'datafile'
> -x ==> set XIP (execute in place)
> -> mkimage -A ?
>
> Invalid CPU Type - valid names are: alpha, arm, x86, ia64, m68k,
> microblaze, mips, mips64, ppc, s390, sh, sparc, sparc64
> ...
> -> mkimage -T ?
>
> Invalid Image Type - valid names are: filesystem, firmware,
> kernel, multi, ramdisk, script, standalone
> ...
>
> etc.
>
> Best regards,
>
> Wolfgang Denk
>
> --
> Software Engineering: Embedded and Realtime Systems, Embedded Linux
> Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
> Fascinating, a totally parochial attitude.
> -- Spock, "Metamorphosis", stardate 3219.8
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
> from IBM. Find simple to follow Roadmaps, straightforward articles,
> informative Webcasts and more! Get everything you need to get up to
> speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
> _______________________________________________
> U-Boot-Users mailing list
> U-Boot-Users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/u-boot-users
More information about the U-Boot
mailing list