Recovery System ready for use September 15, 2010 05:58PM |
Admin Registered: 14 years ago Posts: 304 |
cd /tmp wget http://jeff.doozan.com/debian/rescue/install_rescue.sh chmod +x install_rescue.sh ./install_rescue.sh
cd /usr/src wget http://buildroot.uclibc.org/downloads/buildroot-2010.08.tar.gz tar -xzvf buildroot-2010.08.tar.gz cd buildroot-2010.08 wget http://jeff.doozan.com/debian/rescue/buildroot-dockstar.tgz tar -xzvf buildroot-dockstar.tgz cp custom/buildroot-config .config make
cd output/images cat <<END >rootfs.cfg [ubifs] mode=ubi image=rootfs.ubifs vol_id=0 vol_type=dynamic vol_name=rootfs vol_flags=autoresize END ubinize -o rootfs-mtd2.img -m 2048 -p 128KiB -s 512 rootfs.cfg dd if=uImage of=uImage-mtd1.img bs=512K conv=sync
nguyen
Re: Recovery System ready for use September 16, 2010 01:04AM |
Vlad
Re: Recovery System ready for use September 16, 2010 04:36AM |
Re: Recovery System ready for use September 16, 2010 05:58AM |
Registered: 14 years ago Posts: 43 |
debian:/tmp$ wget http://jeff.doozan.com/debian/rescue/install_rescue.sh --2010-09-16 10:55:59-- http://jeff.doozan.com/debian/rescue/install_rescue.sh Resolving jeff.doozan.com... 69.163.187.226 Connecting to jeff.doozan.com|69.163.187.226|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 8334 (8.1K) [application/x-sh] Saving to: `install_rescue.sh' 100%[======================================>] 8,334 41.1K/s in 0.2s 2010-09-16 10:56:00 (41.1 KB/s) - `install_rescue.sh' saved [8334/8334] debian:/tmp$ chmod +x install_rescue.sh debian:/tmp$ ./install_rescue.sh This script will install a rescue system on your NAND. It will OVERWRITE ALL OF THE POGOPLUG FILES. This script will replace the kernel on on mtd1 and the rootfs on mtd2. This installer will only work on a Seagate Dockstar or Pogoplug Pink. Do not run this installer on any other device. By typing ok, you agree to assume all liabilities and risks associated with running this installer. If you agree, type 'ok' and press ENTER to continue: ok # Installing ubiformat... --2010-09-16 10:56:35-- http://.md5/ Resolving .md5... failed: Name or service not known. wget: unable to resolve host address `.md5' http://: Invalid host name. http://: Invalid host name. mount: / is busy ## Could not install ubiformat, exiting. debian:/tmp$
Re: Recovery System ready for use September 16, 2010 06:59AM |
Registered: 14 years ago Posts: 33 |
Johannes
Re: Recovery System ready for use September 16, 2010 07:05AM |
Re: Recovery System ready for use September 16, 2010 07:13AM |
Registered: 14 years ago Posts: 43 |
debian:/tmp$ ./install_rescue.sh This script will install a rescue system on your NAND. It will OVERWRITE ALL OF THE POGOPLUG FILES. This script will replace the kernel on on mtd1 and the rootfs on mtd2. This installer will only work on a Seagate Dockstar or Pogoplug Pink. Do not run this installer on any other device. By typing ok, you agree to assume all liabilities and risks associated with running this installer. If you agree, type 'ok' and press ENTER to continue: ok # Installing flash_eraseall... --2010-09-16 12:10:34-- http://jeff.doozan.com/debian/uboot/flash_eraseall.md5 Resolving jeff.doozan.com... 69.163.187.226 Connecting to jeff.doozan.com|69.163.187.226|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 49 [text/plain] Saving to: `/usr/sbin/flash_eraseall.md5' 100%[======================================>] 49 --.-K/s in 0s 2010-09-16 12:10:34 (1.73 MB/s) - `/usr/sbin/flash_eraseall.md5' saved [49/49] --2010-09-16 12:10:34-- http://jeff.doozan.com/debian/uboot/flash_eraseall Resolving jeff.doozan.com... 69.163.187.226 Connecting to jeff.doozan.com|69.163.187.226|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 11648 (11K) [text/plain] Saving to: `/usr/sbin/flash_eraseall' 100%[======================================>] 11,648 57.1K/s in 0.2s 2010-09-16 12:10:35 (57.1 KB/s) - `/usr/sbin/flash_eraseall' saved [11648/11648] mount: / is busy # Successfully installed flash_eraseall. Block size 131072, page size 2048, OOB size 64 Dumping data starting at 0x00000000 and ending at 0x00080000... ## Verifying new uBoot... --2010-09-16 12:10:36-- http://jeff.doozan.com/debian/uboot/uboot.mtd0.kwb.md5 Resolving jeff.doozan.com... 69.163.187.226 Connecting to jeff.doozan.com|69.163.187.226|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 49 [text/plain] Saving to: `/tmp/uboot.md5' 100%[======================================>] 49 --.-K/s in 0s 2010-09-16 12:10:37 (1.74 MB/s) - `/tmp/uboot.md5' saved [49/49] ## uBoot is good # Downloading Rescue System --2010-09-16 12:10:37-- http://jeff.doozan.com/debian/rescue/uImage-mtd1.img.md5 Resolving jeff.doozan.com... 69.163.187.226 Connecting to jeff.doozan.com|69.163.187.226|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 50 [text/plain] Saving to: `/tmp/uImage-mtd1.img.md5' 100%[======================================>] 50 --.-K/s in 0s 2010-09-16 12:10:37 (1.76 MB/s) - `/tmp/uImage-mtd1.img.md5' saved [50/50] --2010-09-16 12:10:37-- http://jeff.doozan.com/debian/rescue/uImage-mtd1.img Resolving jeff.doozan.com... 69.163.187.226 Connecting to jeff.doozan.com|69.163.187.226|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 3145728 (3.0M) [text/plain] Saving to: `/tmp/uImage-mtd1.img' 100%[======================================>] 3,145,728 708K/s in 5.4s 2010-09-16 12:10:43 (567 KB/s) - `/tmp/uImage-mtd1.img' saved [3145728/3145728] --2010-09-16 12:10:43-- http://jeff.doozan.com/debian/rescue/rootfs-mtd2.img.md5 Resolving jeff.doozan.com... 69.163.187.226 Connecting to jeff.doozan.com|69.163.187.226|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 50 [text/plain] Saving to: `/tmp/rootfs-mtd2.img.md5' 100%[======================================>] 50 --.-K/s in 0s 2010-09-16 12:10:44 (1.85 MB/s) - `/tmp/rootfs-mtd2.img.md5' saved [50/50] --2010-09-16 12:10:44-- http://jeff.doozan.com/debian/rescue/rootfs-mtd2.img Resolving jeff.doozan.com... 69.163.187.226 Connecting to jeff.doozan.com|69.163.187.226|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 25296896 (24M) [text/plain] Saving to: `/tmp/rootfs-mtd2.img' 100%[======================================>] 25,296,896 696K/s in 36s 2010-09-16 12:11:20 (691 KB/s) - `/tmp/rootfs-mtd2.img' saved [25296896/25296896] # Installing Rescue System Erasing 128 Kibyte @ 400000 -- 100 % complete. 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 Erasing 128 Kibyte @ 2000000 -- 100 % complete. /usr/sbin/ubiformat /dev/mtd2 -s 512 -f /tmp/rootfs-mtd2.img -y ./install_rescue.sh: line 297: /usr/sbin/ubiformat: Permission denied Read error on /dev/mtd0: Cannot allocate memory # Rescue System installation has completed successfully. debian:/tmp$
Re: Recovery System ready for use September 16, 2010 08:07AM |
Admin Registered: 14 years ago Posts: 304 |
/usr/sbin/ubiformat /dev/mtd2 -s 512 -f /tmp/rootfs-mtd2.img -y
Re: Recovery System ready for use September 16, 2010 08:26AM |
Registered: 14 years ago Posts: 43 |
debian:/tmp$ wget http://jeff.doozan.com/debian/rescue/install_rescue.sh --2010-09-16 13:19:27-- http://jeff.doozan.com/debian/rescue/install_rescue.sh Resolving jeff.doozan.com... 69.163.187.226 Connecting to jeff.doozan.com|69.163.187.226|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 7824 (7.6K) [application/x-sh] Saving to: `install_rescue.sh' 100%[======================================>] 7,824 37.8K/s in 0.2s 2010-09-16 13:19:28 (37.8 KB/s) - `install_rescue.sh' saved [7824/7824] debian:/tmp$ chmod +x install_rescue.sh debian:/tmp$ ./install_rescue.sh This script will install a rescue system on your NAND. It will OVERWRITE ALL OF THE POGOPLUG FILES. This script will replace the kernel on on mtd1 and the rootfs on mtd2. This installer will only work on a Seagate Dockstar or Pogoplug Pink. Do not run this installer on any other device. By typing ok, you agree to assume all liabilities and risks associated with running this installer. If you agree, type 'ok' and press ENTER to continue: ok Block size 131072, page size 2048, OOB size 64 Dumping data starting at 0x00000000 and ending at 0x00080000... ## Verifying new uBoot... --2010-09-16 13:19:38-- http://jeff.doozan.com/debian/uboot/uboot.mtd0.kwb.md5 Resolving jeff.doozan.com... 69.163.187.226 Connecting to jeff.doozan.com|69.163.187.226|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 49 [text/plain] Saving to: `/tmp/uboot.md5' 100%[======================================>] 49 --.-K/s in 0s 2010-09-16 13:19:39 (1.76 MB/s) - `/tmp/uboot.md5' saved [49/49] ## uBoot is good # Downloading Rescue System --2010-09-16 13:19:39-- http://jeff.doozan.com/debian/rescue/uImage-mtd1.img.md5 Resolving jeff.doozan.com... 69.163.187.226 Connecting to jeff.doozan.com|69.163.187.226|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 50 [text/plain] Saving to: `/tmp/uImage-mtd1.img.md5' 100%[======================================>] 50 --.-K/s in 0s 2010-09-16 13:19:39 (1.75 MB/s) - `/tmp/uImage-mtd1.img.md5' saved [50/50] --2010-09-16 13:19:39-- http://jeff.doozan.com/debian/rescue/uImage-mtd1.img Resolving jeff.doozan.com... 69.163.187.226 Connecting to jeff.doozan.com|69.163.187.226|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 3145728 (3.0M) [text/plain] Saving to: `/tmp/uImage-mtd1.img' 100%[======================================>] 3,145,728 688K/s in 5.5s 2010-09-16 13:19:45 (559 KB/s) - `/tmp/uImage-mtd1.img' saved [3145728/3145728] --2010-09-16 13:19:45-- http://jeff.doozan.com/debian/rescue/rootfs-mtd2.img.md5 Resolving jeff.doozan.com... 69.163.187.226 Connecting to jeff.doozan.com|69.163.187.226|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 50 [text/plain] Saving to: `/tmp/rootfs-mtd2.img.md5' 100%[======================================>] 50 --.-K/s in 0s 2010-09-16 13:19:46 (1.74 MB/s) - `/tmp/rootfs-mtd2.img.md5' saved [50/50] --2010-09-16 13:19:46-- http://jeff.doozan.com/debian/rescue/rootfs-mtd2.img Resolving jeff.doozan.com... 69.163.187.226 Connecting to jeff.doozan.com|69.163.187.226|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 25296896 (24M) [text/plain] Saving to: `/tmp/rootfs-mtd2.img' 100%[======================================>] 25,296,896 693K/s in 37s 2010-09-16 13:20:23 (675 KB/s) - `/tmp/rootfs-mtd2.img' saved [25296896/25296896] # Installing Rescue System Erasing 128 Kibyte @ 400000 -- 100 % complete. 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 Erasing 128 Kibyte @ 2000000 -- 100 % complete. /usr/sbin/ubiformat /dev/mtd2 -s 512 -f /tmp/rootfs-mtd2.img -y ./install_rescue.sh: line 270: /usr/sbin/ubiformat: Permission denied # Rescue System installation has completed successfully. debian:/tmp$
´debian:/tmp$ /usr/sbin/ubiformat /dev/mtd2 -s 512 -f /tmp/rootfs-mtd2.img -y -bash: /usr/sbin/ubiformat: Permission denied
debian:/tmp$ ls -la /usr/sbin/ubiformat -rw-r--r-- 1 root root 0 Sep 16 10:56 /usr/sbin/ubiformat debian:/tmp$ chmod 744 /usr/sbin/ubiformat debian:/tmp$ ls -la /usr/sbin/ubiformat -rwxr--r-- 1 root root 0 Sep 16 10:56 /usr/sbin/ubiformat debian:/tmp$ /usr/sbin/ubiformat /dev/mtd2 -s 512 -f /tmp/rootfs-mtd2.img -y debian:/tmp$
debian:/tmp$ rm * debian:/tmp$ wget http://jeff.doozan.com/debian/rescue/install_rescue.sh --2010-09-16 13:24:38-- http://jeff.doozan.com/debian/rescue/install_rescue.sh Resolving jeff.doozan.com... 69.163.187.226 Connecting to jeff.doozan.com|69.163.187.226|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 7824 (7.6K) [application/x-sh] Saving to: `install_rescue.sh' 100%[======================================>] 7,824 38.2K/s in 0.2s 2010-09-16 13:24:39 (38.2 KB/s) - `install_rescue.sh' saved [7824/7824] debian:/tmp$ chmod +x install_rescue.sh debian:/tmp$ ./install_rescue.sh This script will install a rescue system on your NAND. It will OVERWRITE ALL OF THE POGOPLUG FILES. This script will replace the kernel on on mtd1 and the rootfs on mtd2. This installer will only work on a Seagate Dockstar or Pogoplug Pink. Do not run this installer on any other device. By typing ok, you agree to assume all liabilities and risks associated with running this installer. If you agree, type 'ok' and press ENTER to continue: ok Block size 131072, page size 2048, OOB size 64 Dumping data starting at 0x00000000 and ending at 0x00080000... ## Verifying new uBoot... --2010-09-16 13:24:54-- http://jeff.doozan.com/debian/uboot/uboot.mtd0.kwb.md5 Resolving jeff.doozan.com... 69.163.187.226 Connecting to jeff.doozan.com|69.163.187.226|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 49 [text/plain] Saving to: `/tmp/uboot.md5' 100%[======================================>] 49 --.-K/s in 0s 2010-09-16 13:24:55 (1.73 MB/s) - `/tmp/uboot.md5' saved [49/49] ## uBoot is good # Downloading Rescue System --2010-09-16 13:24:55-- http://jeff.doozan.com/debian/rescue/uImage-mtd1.img.md5 Resolving jeff.doozan.com... 69.163.187.226 Connecting to jeff.doozan.com|69.163.187.226|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 50 [text/plain] Saving to: `/tmp/uImage-mtd1.img.md5' 100%[======================================>] 50 --.-K/s in 0s 2010-09-16 13:24:55 (1.83 MB/s) - `/tmp/uImage-mtd1.img.md5' saved [50/50] --2010-09-16 13:24:55-- http://jeff.doozan.com/debian/rescue/uImage-mtd1.img Resolving jeff.doozan.com... 69.163.187.226 Connecting to jeff.doozan.com|69.163.187.226|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 3145728 (3.0M) [text/plain] Saving to: `/tmp/uImage-mtd1.img' 100%[======================================>] 3,145,728 692K/s in 5.4s 2010-09-16 13:25:01 (569 KB/s) - `/tmp/uImage-mtd1.img' saved [3145728/3145728] --2010-09-16 13:25:01-- http://jeff.doozan.com/debian/rescue/rootfs-mtd2.img.md5 Resolving jeff.doozan.com... 69.163.187.226 Connecting to jeff.doozan.com|69.163.187.226|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 50 [text/plain] Saving to: `/tmp/rootfs-mtd2.img.md5' 100%[======================================>] 50 --.-K/s in 0s 2010-09-16 13:25:02 (1.73 MB/s) - `/tmp/rootfs-mtd2.img.md5' saved [50/50] --2010-09-16 13:25:02-- http://jeff.doozan.com/debian/rescue/rootfs-mtd2.img Resolving jeff.doozan.com... 69.163.187.226 Connecting to jeff.doozan.com|69.163.187.226|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 25296896 (24M) [text/plain] Saving to: `/tmp/rootfs-mtd2.img' 100%[======================================>] 25,296,896 705K/s in 38s 2010-09-16 13:25:40 (646 KB/s) - `/tmp/rootfs-mtd2.img' saved [25296896/25296896] # Installing Rescue System Erasing 128 Kibyte @ 400000 -- 100 % complete. 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 Erasing 128 Kibyte @ 2000000 -- 100 % complete. /usr/sbin/ubiformat /dev/mtd2 -s 512 -f /tmp/rootfs-mtd2.img -y # Rescue System installation has completed successfully. debian:/tmp$
Re: Recovery System ready for use September 16, 2010 08:38AM |
Admin Registered: 14 years ago Posts: 304 |
Re: Recovery System ready for use September 16, 2010 08:40AM |
Registered: 14 years ago Posts: 43 |
# Installing Rescue System Erasing 128 Kibyte @ 400000 -- 100 % complete. 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 Erasing 128 Kibyte @ 2000000 -- 100 % complete. /usr/sbin/ubiformat /dev/mtd2 -s 512 -f /tmp/rootfs-mtd2.img -y ubiformat: mtd2 (nand), size 33554432 bytes (32.0 MiB), 256 eraseblocks of 131072 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 192 -- 100 % complete ubiformat: formatting eraseblock 255 -- 100 % complete # Rescue System installation has completed successfully. debian:/tmp$
Re: Recovery System ready for use September 16, 2010 08:49AM |
Admin Registered: 14 years ago Posts: 304 |
Re: Recovery System ready for use September 16, 2010 09:09AM |
Registered: 14 years ago Posts: 43 |
login as: root root@debian's password: rescue:~# top
Waty
Re: Recovery System ready for use September 16, 2010 09:47AM |
flatline
Re: Recovery System ready for use September 16, 2010 10:36AM |
thomas
Re: Recovery System ready for use September 16, 2010 02:15PM |
# Installing Rescue System Erasing 128 Kibyte @ 400000 -- 100 % complete. 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 Erasing 128 Kibyte @ 2000000 -- 100 % complete. ubiformat: mtd2 (nand), size 33554432 bytes (32.0 MiB), 256 eraseblocks of 131072 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 192 -- 100 % complete ubiformat: formatting eraseblock 255 -- 100 % complete Warning: Bad CRC, using default environment MTD erase error on /dev/mtd2: Invalid argument Error: can't write fw_env to flash Warning: Bad CRC, using default environment MTD erase error on /dev/mtd2: Invalid argument Error: can't write fw_env to flash Warning: Bad CRC, using default environment MTD erase error on /dev/mtd2: Invalid argument Error: can't write fw_env to flash # Rescue System installation has completed successfully.Thanks in advance
Re: Recovery System ready for use September 16, 2010 02:53PM |
Admin Registered: 14 years ago Posts: 304 |
thomas
Re: Recovery System ready for use September 16, 2010 04:15PM |
Have you tried booting the rescue system?don't work
ERROR: can't get kernel image! stopping USB.. ### JFFS2 loading 'uboot-original-mtd0.kwb' to 0x800000 Scanning JFFS2 FS: done. find_inode failed for name=uboot-original-mtd0.kwb load: Failed to find inode ### JFFS2 LOAD ERROR<0> for uboot-original-mtd0.kwb! ## Starting application at 0x00800200 ...i have mounted the rootfs and it looks good, files and folders are available.
Re: Recovery System ready for use September 16, 2010 04:17PM |
Admin Registered: 14 years ago Posts: 304 |
rescue:~# ls /bin /sbin /usr/bin /usr/sbin /bin: addgroup echo login rmdir xfs_copy adduser egrep ls run-parts xfs_db ash false lsattr sed xfs_estimate busybox fdflush mkdir setarch xfs_freeze cat fgrep mknod sh xfs_fsr catv getopt mktemp sleep xfs_growfs chattr grep more stty xfs_info chgrp gunzip mount su xfs_io chmod gzip mountpoint sync xfs_logprint chown hostname mt tar xfs_mdrestore cp ip mv touch xfs_metadump cpio ipaddr netstat true xfs_mkfile date iplink nice umount xfs_ncheck dd iproute pidof uname xfs_quota delgroup iprule ping usleep xfs_rtcp deluser iptunnel pipe_progress vi zcat df kill printenv watch dmesg linux32 ps xfs_admin dnsdomainname linux64 pwd xfs_bmap dumpkmap ln rm xfs_check /sbin: devmem lvextend pvcreate vgcfgbackup dmsetup lvm pvdisplay vgcfgrestore fdisk lvmchange pvmove vgchange freeramdisk lvmdiskscan pvremove vgck fsck lvmsadc pvresize vgconvert fsck.xfs lvmsar pvs vgcreate getty lvreduce pvscan vgdisplay halt lvremove reboot vgexport hdparm lvrename rmmod vgextend hwclock lvresize route vgimport ifconfig lvs runlevel vgmerge ifdown lvscan setconsole vgmknodes ifup makedevs start-stop-daemon vgreduce init mdev sulogin vgremove insmod mkfs.ntfs swapoff vgrename klogd mkfs.xfs swapon vgs ldconfig mkswap switch_root vgscan loadkmap modprobe sysctl vgsplit losetup mount.ntfs-3g syslogd watchdog lsmod nameif tune2fs xfs_repair lvchange pivot_root udhcpc zcip lvcreate poweroff usbmount lvdisplay pvchange vconfig /usr/bin: [ length seq [[ less setkeycodes ar links setserial arping lockfile-create setsid awk lockfile-remove sftp basename lockfile-touch sha1sum bunzip2 logger sha256sum bzcat logname sha512sum chattr lsattr slogin chrt lspci sort chvt lsusb ssh cksum lzcat ssh-add clear lzma ssh-agent cmp md5sum ssh-keygen crontab mesg ssh-keyscan curl mkfifo sshfs cut nano strings dc nc sudo deallocvt ncftp tail diff ncftpbatch tee dirname ncftpget telnet dos2unix ncftpls test du ncftpput tftp eject ncftpspooler time env nohup top ether-wake nslookup tr expr ntfs-3g traceroute fdformat ntfs-3g.probe tty file ntfscat uniq find ntfscluster unix2dos fold ntfscmp unlzma free ntfsfix unxz fuser ntfsinfo unzip fusermount ntfsls update-alternatives gio-querymodules ntpdate uptime head od uudecode hexdump openssl uuencode hostid openvt uuidgen iconv passwd vlock id patch wc install printf wget ipcrm readlink which ipcs realpath who iperf renice whoami ipkg-cl reset xargs killall resize xz killall5 rsync xzcat last scp yes ldd screen /usr/sbin: badblocks flashcp mkfs.ext4 setlogcons blkid fsck mkfs.ext4dev smartctl chroot fsck.ext2 mkfs.jffs2 smartd crond fsck.ext3 mklost+found sshd dnsd fsck.ext4 mkntfs tune2fs dumpe2fs fsck.ext4dev mtd_debug ubiattach e2freefrag fw_printenv mtdinfo ubicrc32 e2fsck fw_setenv nanddump ubidetach e2label ifplugd nandtest ubiformat e2undo ifplugstatus nandwrite ubimkvol ethtool inetd ntfsclone ubinfo filefrag loadfont ntfscp ubinize findfs logsave ntfslabel ubirename flash_erase lsusb ntfsresize ubirmvol flash_eraseall mdadm ntfsundelete ubirsvol flash_info mke2fs ntpd ubiupdatevol flash_lock mkfs.ext2 rdate uuidd flash_unlock mkfs.ext3 readprofile visudo
rescue:~# df Filesystem Size Used Available Use% Mounted on ubi0:rootfs 27.0M 22.1M 4.9M 82% / tmpfs 60.2M 48.0K 60.1M 0% /tmp
Re: Recovery System ready for use September 16, 2010 04:28PM |
Admin Registered: 14 years ago Posts: 304 |
fw_setenv set_bootargs_rescue 'setenv bootargs console=$console ubi.mtd=2 root=ubi0:rootfs ro rootfstype=ubifs $mtdparts' fw_setenv bootcmd_rescue 'run set_bootargs_rescue; nand read.e 0x800000 0x100000 0x400000; bootm 0x800000' fw_setenv bootcmd_pogo 'run bootcmd_rescue'
Johannes
Re: Recovery System ready for use September 16, 2010 05:00PM |
thomas
Re: Recovery System ready for use September 17, 2010 01:02AM |
dockstar ~ # fw_printenv Warning: Bad CRC, using default environment bootcmd=bootp; setenv bootargs root=/dev/nfs nfsroot=${serverip}:${rootpath} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off; bootm bootdelay=5 baudrate=115200and the fw_env.conf is not avaiable, i'm here on gentoo ,forgot to say.
dockstar ~ # cat /etc/fw_env.conf cat: /etc/fw_env.conf: No such file or directoryThanks in advance
olla
Re: Recovery System ready for use September 17, 2010 01:03AM |
thomas
Re: Recovery System ready for use September 17, 2010 01:19AM |
cat: /etc/fw_env.conf: No such file or directory dockstar ~ # cat /etc/fw_env.config # Configuration file for fw_(printenv/saveenv) utility. # Up to two entries are valid, in this case the redundant # environment sector is assumed present. # Notice, that the "Number of sectors" is ignored on NOR. # MTD device name Device offset Env. size Flash sector size Number of sectors /dev/mtd1 0x0000 0x4000 0x4000 /dev/mtd2 0x0000 0x4000 0x4000 # NAND example #/dev/mtd0 0x4000 0x4000 0x20000 2
dockstar ~ # cat /mnt/etc/fw_env.config # MTD device name Device offset Env. size Flash sector size Number of sectors /dev/mtd0 0xc0000 0x20000 0x20000
Johannes
Re: Recovery System ready for use September 17, 2010 04:18AM |
thomas
Re: Recovery System ready for use September 17, 2010 04:45AM |
.. Writing data to block 27 at offset 0x360000 Erasing 128 Kibyte @ 2000000 -- 100 % complete. ubiformat: mtd2 (nand), size 33554432 bytes (32.0 MiB), 256 eraseblocks of 131072 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 199 -- 100 % complete ubiformat: formatting eraseblock 255 -- 100 % complete # Rescue System installation has completed successfully.
.. Starting kernel ... Uncompressing Linux........................................................................................................................... [ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Linux version 2.6.32.18-dockstar (root@stfu.tcbnet) (gcc version 4.3.5 (Buildroot 2010.08) ) #1 Thu Sep 16 16:04:06 EDT 2010
Andy
Re: Recovery System ready for use September 17, 2010 07:09AM |
Andy
Re: Recovery System ready for use September 17, 2010 07:21AM |
qingz
Re: Recovery System ready for use September 17, 2010 03:43PM |
Lothar
Re: Recovery System ready for use September 21, 2010 12:44PM |