login as: root
root@192.168.1.15's password:
Linux debian-kirkwood-wide 3.3.2-kirkwood-dg #1 Mon Apr 23 17:09:27 CDT 2012 arm v5tel
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Fri Jun 1 20:39:11 2012 from prashant-laptop
root@debian-kirkwood-wide:~# cd /tmp/
root@debian-kirkwood-wide:/tmp# wget
http://dl.dropbox.com/u/1015928/Kirkwood/re scue/RescueV2.8.1-05282012.tar.gz
--1970-01-01 00:01:13--
http://dl.dropbox.com/u/1015928/Kirkwood/rescue/RescueV 2.8.1-05282012.tar.gz
Resolving dl.dropbox.com... 23.21.220.40, 50.16.214.200, 107.20.170.126, ...
Connecting to dl.dropbox.com|23.21.220.40|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 24867399 (24M) [application/x-tar]
Saving to: âRescueV2.8.1-05282012.tar.gzâ
100%[======================================>] 24,867,399 135K/s in 3m 33s
2012-06-01 21:10:04 (114 KB/s) - âRescueV2.8.1-05282012.tar.gzâ
root@debian-kirkwood-wide:/tmp# tar zxvf RescueV2.8.1-05282012.tar.gz
rootfs-mtd2.img
uImage-mtd1.img
root@debian-kirkwood-wide:/tmp# flash_eraseall /dev/mtd1
Erasing 128 Kibyte @ 400000 -- 100 % complete.
root@debian-kirkwood-wide:/tmp# nandwrite /dev/mtd1 uImage-mtd1.img
Writing data to block 0 at offset 0x0
Writing data to block 1 at offset 0x20000
Writing data to block 2 at offset 0x40000
Writing data to block 3 at offset 0x60000
Writing data to block 4 at offset 0x80000
Writing data to block 5 at offset 0xa0000
Writing data to block 6 at offset 0xc0000
Writing data to block 7 at offset 0xe0000
Writing data to block 8 at offset 0x100000
Writing data to block 9 at offset 0x120000
Writing data to block 10 at offset 0x140000
Writing data to block 11 at offset 0x160000
Writing data to block 12 at offset 0x180000
Writing data to block 13 at offset 0x1a0000
Writing data to block 14 at offset 0x1c0000
Writing data to block 15 at offset 0x1e0000
Writing data to block 16 at offset 0x200000
Writing data to block 17 at offset 0x220000
Writing data to block 18 at offset 0x240000
Writing data to block 19 at offset 0x260000
Writing data to block 20 at offset 0x280000
Writing data to block 21 at offset 0x2a0000
Writing data to block 22 at offset 0x2c0000
Writing data to block 23 at offset 0x2e0000
Writing data to block 24 at offset 0x300000
Writing data to block 25 at offset 0x320000
Writing data to block 26 at offset 0x340000
Writing data to block 27 at offset 0x360000
root@debian-kirkwood-wide:/tmp# flash_eraseall /dev/mtd2
Erasing 128 Kibyte @ 2000000 -- 100 % complete.
root@debian-kirkwood-wide:/tmp# ubiformat /dev/mtd2 -s 512 -f rootfs-mtd2.img -y
ubiformat: mtd2 (nand), size 33554432 bytes (32.0 MiB), 256 eraseblocks of 13107 2 bytes (128.0 KiB), min. I/O size 2048 bytes
libscan: scanning eraseblock 255 -- 100 % complete
ubiformat: 256 eraseblocks are supposedly empty
ubiformat: flashing eraseblock 218 -- 100 % complete
ubiformat: formatting eraseblock 255 -- 100 % complete
root@debian-kirkwood-wide:/tmp# fw_setenv set_bootargs_rescue 'setenv bootargs console=$console ubi.mtd=2 root=ubi0:rootfs ro rootfstype=ubifs $mtdparts'
root@debian-kirkwood-wide:/tmp# fw_setenv bootcmd_rescue 'run set_bootargs_rescue; nand read.e 0x800000 0x100000 0x400000; bootm 0x800000'
root@debian-kirkwood-wide:/tmp# fw_setenv bootcmd_pogo 'run bootcmd_rescue'
root@debian-kirkwood-wide:/tmp# fw_setenv rescue_installed 1
root@debian-kirkwood-wide:/tmp#
@
varkey, Thank you very much, setting the ArcNumber kind of fixed it! :yahoo: