Hi David, Thanks for the help.
I ran the command "cat /dev/mtdblock4 | hd |head", I got --------------------------------------------------------------------------------------------------------------------- 00000000 94 f0 b5 b3 01 62 6f 6f 74 63 6d 64 3d 62 6f 6f |.....bootcmd=boo| 00000010 74 6d 20 46 43 30 30 30 30 30 30 00 62 6f 6f 74 |tm FC000000.boot| 00000020 64 65 6c 61 79 3d 31 30 00 62 61 75 64 72 61 74 |delay=10.baudrat| 00000030 65 3d 31 31 35 32 30 30 00 6c 6f 61 64 73 5f 65 |e=115200.loads_e| 00000040 63 68 6f 3d 00 70 72 65 62 6f 6f 74 3d 72 75 6e |cho=.preboot=run| 00000050 20 69 6e 69 74 62 6f 6f 74 00 68 6f 73 74 6e 61 | initboot.hostna| 00000060 6d 65 3d 72 6f 61 63 68 00 6e 65 74 64 65 76 3d |me=roach.netdev=| 00000070 65 74 68 30 00 69 6e 69 74 5f 65 65 70 72 6f 6d |eth0.init_eeprom| 00000080 3d 65 63 68 6f 20 50 72 6f 67 72 61 6d 6d 69 6e |=echo Programmin| 00000090 67 20 45 45 50 52 4f 4d 20 66 6f 72 20 63 6f 6e |g EEPROM for con| ---------------------------------------------------------------------------------------------------------------------- Is it the right partition? If that is the right partition, then if I run 'cat /dev/zero > /dev/mtdblock4', are all the environment variables gone, or it just comes back to the default states? Could I still get the following prompt? ------------------------------------------------------------------ type run netboot to boot via dhcp+tftp+nfs type run soloboot to run from flash without network type run usbboot to boot using filesystem on usb type run bit to run tests Hit any key to stop autoboot: 0 --------------------------------------------------------------------- and then can I follow the instruction ( http://casper.berkeley.edu/wiki/ROACH_kernel_uboot_update) from there to update the uboot? Sorry for so many questions, I know nothing about uboot. Zhiwei On Thu, Jan 21, 2010 at 2:57 AM, David George <[email protected]>wrote: > Hi Zhiwei. > > If the bootcmd and bootdelay have been set up properly you should be able > to press anykey while the "Hit any key to stop autoboot: 10-9-8-7-etc" > message appears. I suspect you may have set the wrong environment variable > or perhaps the environment became corrupt. > > It should be possible to clear the environment from linux though. > > So hopefully following these steps will fix your problem: > > * boot linux > * cat /dev/zero > /dev/mtdblock4 > * reboot > > Be careful which partition you zap because it is possible to clobber uboot. > I would first check that it is the environment variables by running "cat > /dev/mtdblock4 | hd |head". > > Ensure that you never change the initboot and preboot commands. > > Cheers, > David > > Mark, >> >> I tried removing the usb stick, and it ended up with the error: >> >> Kernel panic - not syncing: VFS: Unable to mount root fs on >> unknown-block(2,0) >> Rebooting in 180 seconds.. >> >> I tried several times, it cannot even get to the busybox. >> >> Zhiwei >> >> >> On Wed, Jan 20, 2010 at 3:37 PM, Mark Wagner >> <[email protected]<mailto: >> [email protected]>> wrote: >> >> Hi Zhiwei, I'm not sure if this will help, but have you tried >> removing the usb stick? >> Mark >> >> On Wed, Jan 20, 2010 at 11:45 AM, Zhiwei Liu <[email protected] >> <mailto:[email protected]>> wrote: >> >> Jason, >> >> I was trying to update the uboot for my roach board following >> the instruction from: >> http://casper.berkeley.edu/wiki/ROACH_kernel_uboot_update >> But I cannot interrupt the booting process, it always boots >> from the USB stick. (I save the bootcmd environment to run >> usbboot) >> I tried every key to stop the booting process(ctrl-c, ctrld-d, >> ctrl-z, space, etc.), no one works. >> Is there any way I can interrupt the booting process, so I can >> type the uboot command, following the update procedure. >> Or is there any way I can clear the uboot environment without >> booting into the uboot. >> >> -- Zhiwei Liu >> >> >> >> >> >> -- >> Zhiwei Liu >> > > > -- > David George > Digital Design Engineer > Karoo Array Telescope > Tel: +27 21 531-7282 > Fax: +27 21 531-9761 > Email: [email protected] > Web: www.ska.ac.za > > -- Zhiwei Liu

