Re: [U-Boot-Users] U-Boot and S3c2410

Wolfgang/Gerrit/Matt, Thanks for your help....
I think that I finally figured out how to boot the kernel. I looked at the definitions for ZTEXTADDR and ZRELADDR and found that they were at 0x30008000. So I made my load and entry points to be that address. I then offset my tftp address so that it would not overwrite 0x30008000.
Unfortunately, it dies after I get the message... Uncompressing Linux.... done, booting the kernel.
SMDK2410 # tftpboot 30a00000 myzImage.img TFTP from server 192.xxx.xx.xx; our IP address is 192.xxx.xx.xx Filename 'myzImage.img'. Load address: 0x30a00000 Loading: ################################################################# ################################################################# done Bytes transferred = 662556 (a1c1c hex) SMDK2410 # bootm ## Booting image at 30a00000 ... Image Name: 2.4.18 kernel Created: 2004-02-24 17:33:16 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 662492 Bytes = 647 kB Load Address: 30008000 Entry Point: 30008000 Verifying Checksum ... OK OK
Starting kernel ...
Uncompressing Linux................................................ done, bootin g the kernel.
From what I've read on this list it now looks like the kernel is getting the wrong info passed.
Thanks again, Dave
Wolfgang Denk wd@denx.de wrote:
< < In message 1077551762.4835.50.camel@nios you wrote: < > I'm far from an expert on the matter ;) < > But I would try to set the addresses to 0x30000000 then. The kernel will < < This depends on how the kernel was linked. < < > be expanded to RAM first and then a jump will be made to the address in < > the RAM to start executing the kernel. < > < > In my situation, I used 0x0 as start/entry. RAM starts on that address < > too. < < This is correct on PowerPC, but wrong on all other systems. < < The address to be used is defined in the Linux kernel's linker < commands / scripts; seach which value of PTEXTADDR gets defined in < "arch/arm/Makefile" for your board; in your "arch/arm/boot/Makefile" < you should then have a build target like this: < < uImage: compressed/piggy.gz < mkimage -A arm -O linux -T kernel -C gzip \ < -a $(PTEXTADDR) -e $(PTEXTADDR) \ < -n 'ARM Linux-$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)' \ < -d compressed/piggy.gz $@ < < < Best regards, < < Wolfgang Denk < < -- < Software Engineering: Embedded and Realtime Systems, Embedded Linux < Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd@denx.de < It may be that your whole purpose in life is simply to serve as a < warning to others. <
participants (1)
-
asnuaļ¼ eircom.net