What Does a Linux Image Expect From U-boot?

Wells, Charles Charles.Wells at nielsenmedia.com
Tue Feb 11 03:22:53 EST 2003


Tom,

Thanks.  I'll look into this.

Regards,
Charlie

-----Original Message-----
From: Tom Rini [mailto:trini at kernel.crashing.org]
Sent: Friday, February 07, 2003 7:18 PM
To: Wells, Charles
Cc: linuxppc-embedded at lists.linuxppc.org
Subject: Re: What Does a Linux Image Expect From U-boot?



On Fri, Feb 07, 2003 at 03:47:11PM -0500, Wells, Charles wrote:

> My strategy has been to put whatever code is necessary at the beginning of
> "linux/arch/ppc/boot/simple/head.S" to make the compressed image think it
> just got control from u-boot.  Since I have the SDRAM setup at location
> 0x00000000 and the FLASH and IMMR are up high out of the way, this seems
> reasonable.

You're headed down the wrong path, arch/ppc/boot/simple and U-Boot (and
PPCBoot of course) are mutlally exclusive.  What you want to do is look
at the embed_config file and define an embed_config function (iirc) to
fill out the bd_t struct with the appropriate values.  Then just 'make
zImage' and, depending on how your firmware works, load the image into
memory w/o the ELF header and jump to where it was loaded.

--
Tom Rini
http://gate.crashing.org/~trini/


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-embedded mailing list