Pogoplug E02 Bad Block, with questions about installing the U-Boot software September 01, 2014 08:22AM |
Registered: 10 years ago Posts: 18 |
Re: Pogoplug E02 Bad Block, with questions about installing the U-Boot software September 01, 2014 04:33PM |
Admin Registered: 13 years ago Posts: 19,006 |
[ 1.050000] Bad eraseblock 3 at 0x00060000 [ 1.060000] Bad eraseblock 15 at 0x001e0000 [ 1.070000] Bad eraseblock 225 at 0x01c20000 [ 1.110000] Bad eraseblock 983 at 0x07ae0000
cd /tmp tar -xf uboot.2014.07.tld-1. pogo_e02.bodhi.tarList the image to confirm that it is extracted, and it is 512k:
ls -lh uboot.2014.07.tld-1.pogo_e02.mtd0.kwb
flash_erase /dev/mtd0 0 5
nandwrite /dev/mtd0 uboot.2014.07.tld-1.pogo_e02.mtd0.kwb
Re: Pogoplug E02 Bad Block, with questions about installing the U-Boot software September 06, 2014 07:18PM |
Registered: 10 years ago Posts: 18 |
Pogoplug:/tmp$ ls -lh uboot.2014.07.tld-1.pogo_e02.mtd0.kwb -rw-r--r-- 1 root root 512.0k Jan 8 11:46 uboot.2014.07.tld-1.pogo_e02.mtd0.kwb
Pogoplug:/tmp$ ./flash_erase /dev/mtd0 0 5 Erase Total 5 Units Performing Flash Erase of length 131072 at offset 0x60000 MTD Erase failure: Input/output error
Re: Pogoplug E02 Bad Block, with questions about installing the U-Boot software September 06, 2014 08:30PM |
Admin Registered: 13 years ago Posts: 19,006 |
> Pogoplug:/tmp$ ls -lh > uboot.2014.07.tld-1.pogo_e02.mtd0.kwb > -rw-r--r-- 1 root root 512.0k Jan 8 > 11:46 uboot.2014.07.tld-1.pogo_e02.mtd0.kwb >>
> Pogoplug:/tmp$ ./flash_erase /dev/mtd0 0 5 > Erase Total 5 Units > Performing Flash Erase of length 131072 at offset > 0x60000 > MTD Erase failure: Input/output error >>
nandwrite /dev/mtd0 uboot.2014.07.tld-1.pogo_e02.mtd0.kwb
Re: Pogoplug E02 Bad Block, with questions about installing the U-Boot software September 07, 2014 12:13PM |
Registered: 10 years ago Posts: 18 |
Pogoplug:/tmp$ ./nandwrite /dev/mtd0 uboot.2014.07.tld-1.pogo_e02.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 Writing data to block 3 at offset 0x60000 Bad block at 60000, 1 block(s) from 60000 will be skipped Writing data to block 4 at offset 0x80000 pwrite: Input/output error Erasing failed write from 00080000-0009ffff Writing data to block 5 at offset 0xa0000 pwrite: Input/output error Erasing failed write from 000a0000-000bffff Writing data to block 6 at offset 0xc0000 pwrite: Input/output error Erasing failed write from 000c0000-000dffff Writing data to block 7 at offset 0xe0000 pwrite: Input/output error Erasing failed write from 000e0000-000fffff Data was only partially written due to error : Input/output error Pogoplug:/tmp$
Re: Pogoplug E02 Bad Block, with questions about installing the U-Boot software September 07, 2014 03:51PM |
Admin Registered: 13 years ago Posts: 19,006 |
flash_erase /dev/mtd0 0 8 nandwrite /dev/mtd0 uboot.2014.07.tld-1.pogo_e02.mtd0.kwb
Re: Pogoplug E02 Bad Block, with questions about installing the U-Boot software September 07, 2014 04:47PM |
Registered: 10 years ago Posts: 18 |
Pogoplug:/tmp$ ./flash_erase /dev/mtd0 0 8 Erase Total 8 Units Performing Flash Erase of length 131072 at offset 0x60000 MTD Erase failure: Input/output error
Pogoplug:/tmp$ ./nandwrite /dev/mtd0 uboot.2014.07.tld-1.pogo_e02.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 Writing data to block 3 at offset 0x60000 Bad block at 60000, 1 block(s) from 60000 will be skipped Writing data to block 4 at offset 0x80000
Re: Pogoplug E02 Bad Block, with questions about installing the U-Boot software September 07, 2014 06:02PM |
Admin Registered: 13 years ago Posts: 19,006 |
Quote
And there were no pogoplugs harmed by lack of electricity during this work. ;)
cd /tmp nanddump -nof /tmp/uBoot1.dump -l 0x60000 /dev/mtd0 Block size 131072, page size 2048, OOB size 64 Dumping data starting at 0x00000000 and ending at 0x00060000... nanddump -nof /tmp/uBoot2.dump -l 0x20000 -s 0x80000 /dev/mtd0 Block size 131072, page size 2048, OOB size 64 Dumping data starting at 0x00080000 and ending at 0x000a0000... cat uBoot1.dump uBoot2.dump > uBoot.dump diff -s uboot.2014.07.tld-1.pogo_e02.mtd0.kwb uBoot.dump Files uboot.2014.07.tld-1.pogo_e02.mtd0.kwb and uBoot.dump are identical
Re: Pogoplug E02 Bad Block, with questions about installing the U-Boot software September 07, 2014 07:21PM |
Registered: 10 years ago Posts: 18 |
Pogoplug:/tmp$ ./nanddump -nof /tmp/uBoot1.dump -l 0x60000 /dev/mtd0 Block size 131072, page size 2048, OOB size 64 Dumping data starting at 0x00000000 and ending at 0x00060000... Pogoplug:/tmp$ ./nanddump -nof /tmp/uBoot2.dump -l 0x20000 -s 0x80000 /dev/mtd0 Block size 131072, page size 2048, OOB size 64 Dumping data starting at 0x00080000 and ending at 0x000a0000... Pogoplug:/tmp$ cat uBoot1.dump uBoot2.dump > uBoot.dump Pogoplug:/tmp$ diff -s uboot.2014.07.tld-1.pogo_e02.mtd0.kwb uBoot.dump Files uboot.2014.07.tld-1.pogo_e02.mtd0.kwb and uBoot.dump are identical
Pogoplug:/tmp$ 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/mtd0 0xc0000 0x20000 0x20000 Pogoplug:/tmp$ cat /proc/mtd dev: size erasesize name mtd0: 00100000 00020000 "u-boot" mtd1: 00400000 00020000 "uImage" mtd2: 02000000 00020000 "root" mtd3: 05b00000 00020000 "data"
#Partition your USB flash/hard drive /sbin/fdisk /dev/sda
Re: Pogoplug E02 Bad Block, with questions about installing the U-Boot software September 07, 2014 11:41PM |
Admin Registered: 13 years ago Posts: 19,006 |
Quote
B. Flashing default u-boot envs image
This section describes how to flash a default set of u-boot envs. The bootcmd in this setup is set to boot from USB, MMC, and SATA in this order (USB will be tried first, if unsuccessful then MMC will be tried, and then if unsuccessfull SATA will be tried).
a. Download the default u-boot envs at Dropbox:
uboot.2014.07-tld-1.environment.img.bodhi.tar
md5
c5921e3ea0a07a859878339ffb771088
b. Extract the archive to /tmp
cd /tmp tar -xf uboot.2014.07-tld-1.environment.img.bodhi.tar
c. Skip.
d. Flash u-boot envs to NAND location 0xC0000.
Be extra careful with the next 2 commands, you should see output that look like below. If there is error, then do not reboot, post your problem here so we can help.
/usr/sbin/flash_erase /dev/mtd0 0xc0000 1 Erase Total 1 Units Performing Flash Erase of length 131072 at offset 0xc0000 done /usr/sbin/nandwrite -s 786432 /dev/mtd0 uboot.2014.07-tld-1.environment.img Writing data to block 6 at offset 0xc0000
e. Modify the following u-boot variables using fw_setenv:
Warning: arcNumber and/or machid should only be changed if you have a kernel that supports the box you're installing for. If not sure, leave these envs as they are. See the latest kernel & rootfs thread for how to create rootfs or installing kernel that supports these boxes.
for Pogo E02:
fw_setenv arcNumber 3542 fw_setenv machid dd6
Restore the ethaddr (if you don't have this saved somewhere then look on the Pogo case or cardboard box):
fw_setenv ethaddr 'xx:xx:xx:xx:xx:xx'
f. For sanity check, list you envs again
fw_printenv
If there is error in listing u-boot envs, stop here and post your problem so we can help.
g. Done.
Re: Pogoplug E02 Bad Block, with questions about installing the U-Boot software September 08, 2014 08:34AM |
Registered: 10 years ago Posts: 18 |
Pogoplug:/usr/sbin$ ./fw_printenv ipaddr=192.168.0.231 serverip=192.168.0.220 mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data) baudrate=115200 bootcmd=run bootcmd_usb; run bootcmd_mmc; run bootcmd_sata; reset bootcmd_mmc=run mmc_init; run set_bootargs_mmc; run mmc_boot bootcmd_sata=run sata_init; run set_bootargs_sata; run sata_boot; bootcmd_usb=run usb_init; run set_bootargs_usb; run usb_boot; bootdelay=10 console=ttyS0,115200 device=0:1 ethact=egiga0 if_netconsole=ping $serverip led_error=orange blinking led_exit=green off led_init=green blinking mainlineLinux=yes mmc_boot=mw 0x800000 0 1; run mmc_load_uimage; if run mmc_load_uinitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi mmc_init=mmc rescan mmc_load_uimage=ext2load mmc $device 0x800000 /boot/uImage mmc_load_uinitrd=ext2load mmc $device 0x1100000 /boot/uInitrd mmc_root=/dev/mmcblk0p1 mtdids=nand0=orion_nand partition=nand0,2 preboot_nc=run if_netconsole start_netconsole rootdelay=10 rootfstype=ext3 sata_boot=mw 0x800000 0 1; run sata_load_uimage; if run sata_load_uinitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi sata_init=ide reset sata_load_uimage=ext2load ide $device 0x800000 /boot/uImage sata_load_uinitrd=ext2load ide $device 0x1100000 /boot/uInitrd sata_root=/dev/sda1 set_bootargs_mmc=setenv bootargs console=$console root=$mmc_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts set_bootargs_sata=setenv bootargs console=$console root=$sata_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts set_bootargs_usb=setenv bootargs console=$console root=$usb_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version; stderr=serial stdin=serial stdout=serial usb_boot=mw 0x800000 0 1; run usb_load_uimage; if run usb_load_uinitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi usb_init=usb start usb_load_uimage=ext2load usb $device 0x800000 /boot/uImage usb_load_uinitrd=ext2load usb $device 0x1100000 /boot/uInitrd usb_root=/dev/sda1 arcNumber=3542 machid=dd6 ethaddr=00:25:31:04:82:16
Re: Pogoplug E02 Bad Block, with questions about installing the U-Boot software September 08, 2014 04:16PM |
Admin Registered: 13 years ago Posts: 19,006 |
Re: Pogoplug E02 Bad Block, with questions about installing the U-Boot software September 08, 2014 04:48PM |
Admin Registered: 13 years ago Posts: 19,006 |
Re: Pogoplug E02 Bad Block, with questions about installing the U-Boot software September 09, 2014 07:15PM |
Registered: 10 years ago Posts: 18 |
Re: Pogoplug E02 Bad Block, with questions about installing the U-Boot software September 09, 2014 08:14PM |
Admin Registered: 13 years ago Posts: 19,006 |