I accidentally change the /etc/fstab file when I telnet in. I comment out all the items and it become like this:
# /etc/fstab: static file system information.
#
# <file system> <mount pt> <type> <options> <dump> <pass>
#/dev/root / ext3 rw,noauto 0 1
#none /proc proc defaults 0 0
#devpts /dev/pts devpts defaults,gid=5,mode=620 0 0
#none /sys sysfs defaults 0 0
#/dev/mtdblock/2 /usr/local/etc yaffs2 rw,noauto 0
#none /tmp ramfs defaults 0 0
Now the screen only shows the Box Office logo.
I connect to the UART and I can see the bootloader is running but there are lots of errors like this:
DB FILENAME = /tmp/ramfs/Setup
[DataObject.cpp 494] ---- Create new DB Start -/usr/local/etc/dvdplayer/Setup---
-
[DataObject.cpp 507] Can't open database: [14] /tmp/ramfs/Setup
DB FILENAME = /tmp/ramfs/Setup
DB FILENAME = /tmp/ramfs/Setup
.....
It will reboot after a short while and keeps in the endless rebooting cycle. Although I can tap Enter to issue commends. I tried to change the /etc/fstab, but it won't allow me to change it. (Maybe there is no mount volume). The commend I used is as follows:
sed -i '5,9 s/#//' /etc/fstab
sed: no temp file
I also tried the update the bootcode using TFTP method. The bootcode is flashed successfully, but it goes into the endless rebooting cycle after it powered on, even though I plug in the USB stick with install.img in the root directory.
I just wondering if there is any way that I can recover it? Can I TFTP the entire install.img to the FLASH?


Reply With Quote

