- Code: Select all
# cmdline
admin@GK_netonix:/www# tftp 10.1.10.7 -g -r wispswitch-1.3.3.bin -l /tmp/wispswitch-1.3.3.bin
admin@GK_netonix:/www# ls /tmp
TZ fstab lock resolv.conf run sfpstatus wispswitch-1.3.3.bin
config lacpportstatus.json log resolv.conf.auto running-config.json state
admin@GK_netonix:/# firmware_upgrade /tmp/wispswitch-1.3.3.bin
tar: removing leading '/' from member names
Unpacking firmware ...
Running preflash script ...
Unlocking /dev/mtd8 ...
Writing from redboot_recovery_config to /dev/mtd8 ...
Could not open mtd device: linux
Can't open device for writing!
Error flashing kernel
ruh-roh, no? Sounds bad. Here's how my filesystem is mounted.
- Code: Select all
admin@GK_netonix:/# mount
rootfs on / type rootfs (rw)
/dev/root on /rom type squashfs (ro)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev)
tmpfs on /dev type tmpfs (rw)
devpts on /dev/pts type devpts (rw,mode=600)
/dev/mtdblock6 on /jffs type jffs2 (rw)
mini_fo:/jffs on / type mini_fo (rw)
admin@GK_netonix:/#
Tried a reboot. Same issue. How screwed am I? How would I mount/recover that flash partition? Here's what I have:
- Code: Select all
admin@GK_netonix:/www# cat /proc/mtd
dev: size erasesize name
mtd0: 00040000 00040000 "RedBoot"
mtd1: 00040000 00040000 "config"
mtd2: 00140000 00040000 "linux_recovery"
mtd3: 00200000 00040000 "rootfs_recovery"
mtd4: 00140000 00040000 "linux"
mtd5: 00600000 00040000 "rootfs"
mtd6: 00440000 00040000 "rootfs_data"
mtd7: 00040000 00040000 "FIS directory"
mtd8: 00001000 00001000 "RedBoot config"
mtd9: 00040000 00040000 "Redundant FIS"