My Pogoplug E02 have Bad Block. I followed instrution from this post http://forum.doozan.com/read.php?3,5728,5748#msg-5748 and got it to work/boot off a USB drive. However, I cannot get back into the stock OS. I can ping the ip but cannot ssh in. Also the mac address show on the router is incorrect. I did set the mac address in the environment. The mac address is correct when booted into ALARM. I mounted mtd2 and verified rcS "/etc/init.d/hbmgr.sh start" is not commented out. I would like to able to boot into orignal pogoplug if possible.
Appreciate any guidance :-)
Here is what i did
Appreciate any guidance :-)
Here is what i did
## Unknown uBoot detected on mtd0: 150f323cc589d1535d6e06c2038d0aa7 ## ## The installer could not detect the version of your current uBoot ## This may happen if you have installed a different uBoot on ## /dev/mtd0 or if you have bad blocks on /dev/mtd0 ## ## If you have bad blocks on mtd0, you should not try to install uBoot. ## ## If you have installed a diffirent uBoot on mtd0, and understand the ## risks, you can re-run the installer with the --no-uboot-check parameter ## ## Installation cancelled. Pogoplug:/tmp$ /usr/sbin/flash_erase /dev/mtd0 0 5 Erase Total 5 Units Performing Flash Erase of length 131072 at offset 0x40000 MTD Erase failure: Input/output error Pogoplug:/tmp$ /usr/sbin/nandwrite /dev/mtd0 uboot.mtd0.kwb Writing data to block 0 at offset 0x0 Writing data to block 1 at offset 0x20000 Writing data to block 2 at offset 0x40000 Bad block at 40000, 1 block(s) from 40000 will be skipped Writing data to block 3 at offset 0x60000 Writing data to block 4 at offset 0x80000 Pogoplug:/tmp$ /usr/sbin/nanddump -nof /tmp/uBoot1.dump -l 0x40000 /dev/mtd0 Block size 131072, page size 2048, OOB size 64 Dumping data starting at 0x00000000 and ending at 0x00040000... Pogoplug:/tmp$ /usr/sbin/nanddump -nof /tmp/uBoot2.dump -l 0x40000 -s 0x60000 /dev/mtd0 Block size 131072, page size 2048, OOB size 64 Dumping data starting at 0x00060000 and ending at 0x000a0000... Pogoplug:/tmp$ cat uBoot1.dump uBoot2.dump > uBoot.dump Pogoplug:/tmp$ diff -s uboot.mtd0.kwb uBoot.dump Files uboot.mtd0.kwb and uBoot.dump are identical # flash the uboot environment wget -O /tmp/uboot.environment http://jeff.doozan.com/debian/uboot/files/environment/uboot.environment Pogoplug:/tmp$ /usr/sbin/flash_erase /dev/mtd0 0xc0000 1 Erase Total 1 Units Performing Flash Erase of length 131072 at offset 0xc0000 done Pogoplug:/tmp$ /usr/sbin/nandwrite -s 786432 /dev/mtd0 /tmp/uboot.environment Writing data to block 6 at offset 0xc0000 Pogoplug:/tmp$ /usr/sbin/fw_printenv /usr/sbin/fw_setenv ethaddr 00:25:31:xx:xx:xx -Boot 2011.12 (Feb 20 2012 - 21:21:59) Pogoplug E02 arm-none-linux-gnueabi-gcc (Sourcery G++ Lite 2009q3-67) 4.4.1 GNU ld (Sourcery G++ Lite 2009q3-67) 2.19.51.20090709 Hit any key to stop autoboot: 0 (Re)start USB... USB: Register 10011 NbrPorts 1 USB EHCI 1.00 scanning bus for devices... 4 USB Device(s) found scanning bus for storage devices... 0 Storage Device(s) found ** Block device usb 0 not supported ** Invalid boot device ** Creating 1 MTD partitions on "nand0": 0x000002500000-0x000008000000 : "mtd=3" UBI: attaching mtd1 to ubi0 UBI: physical eraseblock size: 131072 bytes (128 KiB) UBI: logical eraseblock size: 129024 bytes UBI: smallest flash I/O unit: 2048 UBI: sub-page size: 512 UBI: VID header offset: 512 (aligned 512) UBI: data offset: 2048 UBI: attached mtd1 to ubi0 UBI: MTD device name: "mtd=3" UBI: MTD device size: 91 MiB UBI: number of good PEBs: 728 UBI: number of bad PEBs: 0 UBI: max. allowed volumes: 128 UBI: wear-leveling threshold: 4096 UBI: number of internal volumes: 1 UBI: number of user volumes: 0 UBI: available PEBs: 717 UBI: total number of reserved PEBs: 11 UBI: number of PEBs reserved for bad PEB handling: 7 UBI: max/mean erase counter: 1/1 UBIFS error (pid 0): ubifs_get_sb: cannot open "ubi:rootfs", error -19 Error reading superblock on volume 'ubi:rootfs'! ** Block device usb 0 not supported ** Block device usb 1 not supported ** Block device usb 2 not supported ** Block device usb 3 not supported ** Block device usb 0 not supported ** Block device usb 0 not supported Wrong Image Format for bootm command ERROR: can't get kernel image! stopping USB.. ### JFFS2 loading 'uboot-original-mtd0.kwb' to 0x800000 Scanning JFFS2 FS: ........ done. ### JFFS2 load complete: 524288 bytes loaded to 0x800000 ## Starting application at 0x00800200 ...