[ECOS] Re: Re: unable to execute linux kernel with Redboot

Mark Salter msalter@redhat.com
Mon Sep 4 15:08:00 GMT 2006

On Mon, 2006-09-04 at 12:34 +0200, Claudio Scordino wrote:

>      I'm having the same problem with my IXDP465 board with RedBoot 2.02.
> My documentation suggests to use
> load -r -v -b 0x01600000 zImage
> load -r -v -b 0x00800000 ramdisk.gz
> which does not work.
> My linux-2.6.x/arch/arm/boot/compressed/Makefile sets ZTEXTADDR to 0, so
> based on Mark's instructions, my RedBoot commands would be something like 
> RedBoot> load -r -b 0x0000 zImage
> RedBoot> exec -b 0x0000 -l 0 -c "console=ttyS0,115200" 0x000000
> which is very odd, and probably makes no sense.

No it doesn't and I hope I didn't suggest it. :)

Zero ZTEXTADDR is normal for the position independent decompressor.

There is a CDL option to set the default exec address of the kernel. For
IXDP465 it is:

    inferred_value 0x6000000

I don't recall why we ended up with that, but the address is largely
arbitrary. To override this, you have to specify the desired address
on the exec commandline. The exec command will try to move the kernel
from the -b <addr> address to the exec address. This isn't really
necessary with a self decompressing image as the decompressor will
do this for you. Just specify "-l 0" to prevent this move. So, I
think something like this will work for you:

   RedBoot> load -r -b 0x1600000 zImage
   RedBoot> exec -b 0x1600000 -l 0 -c "console=ttyS0,115200" 0x1600000


Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

More information about the Ecos-discuss mailing list