bodhi , Thanks for all your help. Side question, when i do ./nanddump -nof /tmp/mtd2 /dev/mtd2 I get the entire 32MB mtd2 image for backup. Is there a command to dump only the actual roofs data? Say if mtd2 block become bad, then the OS likely get corrupted too. The backup probably not restoreable too due to not enough blocks to write. Is the dump extractable?by musselmanb - uBoot
look like i have hope. looking back at my own post (it is nice to have something i can look at it over and over again), uBoot didn't use block 5. It erase block 0-5, not counting block 5. To verify i dump each block individually and confirm that uboot written in block 0,1,3,4. Pogoplug:/tmp$ ./flash_erase /dev/mtd0 0xa0000 1 Erase Total 1 Units Performing Flash Erase of length 131072by musselmanb - uBoot
Block 2 is bad 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, 1by musselmanb - uBoot
Since it is a clone, all settings remain the same. Pogoplug:~$ 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 sectorsby musselmanb - uBoot
i got it working except the mac address 1st backup from a working pogoplug # mkdir ~/backup1 # cd ~/backup1 # wget http://download.doozan.com/uboot/nandwrite # wget http://download.doozan.com/uboot/nanddump # wget http://download.doozan.com/uboot/flash_erase # chmod +x nandwrite # chmod +x nanddump # chmod +x flash_erase # ./nanddump -nof mtd2 /dev/mtd2 Block size 131072, page sby musselmanb - uBoot
bodhi, Let me know if these are correct steps Boot into linux and make backup to root of usb mkdir ~/backup cd ~/backup nanddump -nf ~/backup/mtd0.oob /dev/mtd0 nanddump -nf ~/backup/mtd1.oob /dev/mtd1 nanddump -nf ~/backup/mtd2.oob /dev/mtd2 nanddump -nf ~/backup/mtd3.oob /dev/mtd3 nanddump -nof ~/backup/mtd0 /dev/mtd0 nanddump -nof ~/backup/mtd1 /dev/mtd1 nanddump -nof ~/backupby musselmanb - uBoot
bodhi, I brought this from ebay advertised as new. I was able to ssh in with default root/ceadmin to flash the uboot. The weird part is when Pogo OS is running, I get a different mac address on my router 00:50:43:00:02:02. When boot from usb, I get the correct mac 00:25:31:24:50:33 set in the env. The mac was correct at the first boot to ssh in. After uboot manual flash, I rebooted and noby musselmanb - uBoot
I made a copy of uboot-original-mtd0.kwb from another working E02 to the root of the usb. Booted to linux and do a md5 to compare. They appear to be identical. Also ls show only 1 uboot-original-mtd0.kwb file. # ls -l total 513 drwxr-xr-x 2 root root 0 Nov 3 2009 bin drwxr-xr-x 5 root root 0 Feb 26 2008 dev drwxr-xr-x 4 root root 0 Dec 31 1999 etc drwxr-xr-x 2 root rby musselmanb - uBoot
don't know if I did it right. Mount command not found. However, from the ls command I see an extra uboot-original-mtd0.kwb file with zero byte. U-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: 10 u-boot>> ls ls Scanning Jby musselmanb - uBoot
Here you go U-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: 10 0 u-boot>> ubi part rootfs ubi part rootfs Creating 1 MTD partitions on "nand0": 0x000000500000-0x000002500000 : "mtd=2" UBI: attachingby musselmanb - uBoot
bodhi, Thanks for your guide from your old post. I am able to get usb to boot. It is nice to be able to use the stock OS to troubleshoot failed to boot thumb drive 1. fw_printenv output # fw_printenv ethact=egiga0 bootdelay=3 baudrate=115200 mainlineLinux=yes console=ttyS0,115200 led_init=green blinking led_exit=green off led_error=orange blinking mtdparts=mtdparts=orion_nanby musselmanb - uBoot
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 ALAby musselmanb - uBoot