From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?=E6=9C=B1?= =?UTF-8?Q?=E6=88=90?= Date: Sun, 08 May 2005 17:21:05 +0800 Subject: [U-Boot-Users] boot kernel from flash In-Reply-To: <200505061233.j46CXY8R016074@ismp.csie.ncku.edu.tw> References: <200505061233.j46CXY8R016074@ismp.csie.ncku.edu.tw> Message-ID: <1115544065.6600.7.camel@localhost> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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!