[U-Boot-Users] boot kernel from flash

朱成 zhucheng at longcheer.net
Sun May 8 11:21:05 CEST 2005


hi,all
i want to boot kernel from flash on TI p2-sample rev.6 board.
i used:

1.	erase 0x100000 0x3fffff		(0x100000--0x3fffff is flash room for kernel)
2.	loadb 0x100000
3.	using kermit to transfer uImage from ttyS0
4.	using "iminfo 0x100000", and i found "Bad Magic Number"
5.	setenv bootcmd bootm 0x100000
6.	boot, but i found 
	"## Booting image at 00100000 ...
	Bad Magic Number"

i used this uImage file to boot kernel from memory, so kernel image is
right! and i tried to use "tftp 0x100000" to download image to flash,and
the result is identical.


and i did more testing:
1.	tftp 0x10000000		(0x10000000 is ram address)
2.	erase 0x100000 0x3fffff
3.	cp.b 0x10000000 0x100000 $(filesize)
4.	bootm 0x100000

the kernel boot successed! but if i rebooted, and "bootm 0x100000", the kernel stoped when mounted nfsroot fs.
the boot information was:
..............................
<6>Freeing initrd memory: 4096K
Freeing initrd memory: 4096K
<5>Looking up port of RPC 100003/2 on 172.16.6.79
Looking up port of RPC 100003/2 on 172.16.6.79

(172.16.6.79 is nfsroot server)

so, what's wrong with it?

thank you!








More information about the U-Boot mailing list