This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Re: unable to execute linux kernel with Redboot


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:

cdl_option CYGHWR_REDBOOT_ARM_LINUX_EXEC_ADDRESS_DEFAULT {
    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


--Mark




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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]