2015.10 U-Boot for Pogoplug V3 (OXNAS OX820) May 07, 2014 04:36AM |
Admin Registered: 13 years ago Posts: 18,997 |
Quote
Flashing uBoot to mtd0 could potentially brick your box! please have serial console, or JTAG set up before hand to recover from any mistake or bad flash. The instruction to flash uBoot image to mtd0 is included here. But please proceed only at your own risk. However, there is a recovery path if any thing goes wrong. But it will require the box to be opened and then a SATA HDD attached to the hidden SATA port inside.
uboot.2015.10-tld-2.ox820.mtd0.img uboot.spl.2013.10.ox820.850mhz.mtd0.img uboot.2015.10-tld-2.ox820.environment uboot.2015.10-tld-2.ox820.environment.img
# pogoplug v3 /dev/mtd0 0x00100000 0x20000 0x20000cat /proc/mtd
dev: size erasesize name mtd0: 00e00000 00020000 "boot" mtd1: 07200000 00020000 "data"
nanddump --noecc --omitoob -f mtd0 /dev/mtd0Save envs:
fw_printenv > current_envs.txt
blparam > current_envs.txt
dmesg | grep -i 'bad' [ 2.413231] Scanning device for bad blocks [ 2.417731] Bad eraseblock 3 at 0x000000060000
cd /tmp tar -xf uboot.2015.10-tld-2.ox820.bodhi.tar
/usr/sbin/flash_erase /dev/mtd0 0x0 6Expected output
Erasing 128 Kibyte @ a0000 -- 100 % complete
/usr/sbin/nandwrite /dev/mtd0 uboot.spl.2013.10.ox820.850mhz.mtd0.imgExpected output
Writing data to block 0 at offset 0x0
/usr/sbin/nandwrite -s 262144 /dev/mtd0 uboot.2015.10-tld-2.ox820.mtd0.imgExpected output
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
/usr/sbin/flash_erase /dev/mtd0 0x00100000 1Expected output
Erasing 128 Kibyte @ 100000 -- 100 % complete
/usr/sbin/nandwrite -s 1048576 /dev/mtd0 uboot.2015.10-tld-2.ox820.environment.imgExpected output
Writing data to block 8 at offset 0x100000
fw_setenv preboot 'run preboot_nc' fw_setenv ipaddr '192.168.0.xxx' fw_setenv serverip '192.168.0.yyy'where the 192.168.0.xxx is the Pogo V3 IP address, and 192.168.0.yyy is the IP address of the netconsole server where it will monitor the output from the Pogo V3 (adjust them to the real values in your own local network settings).
fw_printenv ethaddr
fw_setenv dtb_file '/boot/dts/ox820-pogoplug-classic.dtb'For other OXNAS boxes that migh work with this u-boot see the rootfs installation Step 4, or kernel upgrade Step 6.
U-Boot SPL 2013.10-tld-4 (Sep 07 2014 - 14:10:12) U-Boot 2015.10-tld-2 (Oct 21 2017 - 22:00:02 -0700) OXNAS OX820
dtb_file=/boot/dts/ox820-pogoplug-classic.dtb devices=usb ide disks=0 1 2 3 4 5 6 7
# pogoplug v3 /dev/mtd0 0x00100000 0x20000 0x20000cat /proc/mtd
dev: size erasesize name mtd0: 00e00000 00020000 "boot" mtd1: 07200000 00020000 "data"
nanddump --noecc --omitoob -f mtd0 /dev/mtd0Save envs:
fw_printenv > current_envs.txt or blparam > current_envs.txt
dmesg | grep -i 'bad' [ 2.413231] Scanning device for bad blocks [ 2.417731] Bad eraseblock 3 at 0x000000060000
cd /tmp tar -xf uboot.2015.10-tld-1.ox820.bodhi.tar
/usr/sbin/flash_erase /dev/mtd0 0x0 6Expected output
Erasing 128 Kibyte @ a0000 -- 100 % complete
/usr/sbin/nandwrite /dev/mtd0 uboot.spl.2013.10.ox820.850mhz.mtd0.imgExpected output
Writing data to block 0 at offset 0x0
/usr/sbin/nandwrite -s 262144 /dev/mtd0 uboot.2015.10-tld-1.ox820.mtd0.imgExpected output
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
/usr/sbin/flash_erase /dev/mtd0 0x00100000 1Expected output
Erasing 128 Kibyte @ 100000 -- 100 % complete
/usr/sbin/nandwrite -s 1048576 /dev/mtd0 uboot.2013.10-tld-5.ox820.environment.imgExpected output
Writing data to block 8 at offset 0x100000
fw_setenv preboot_nc 'setenv nc_ready 0; for pingstat in 1 2 3 4 5; do; sleep 1; if run if_netconsole; then setenv nc_ready 1; fi; done; if test $nc_ready -eq 1; then run start_netconsole; fi' fw_setenv preboot 'run preboot_nc' fw_setenv ipaddr '192.168.0.xxx' fw_setenv serverip '192.168.0.yyy'where the 192.168.0.xxx is the Pogo V3 IP address, and 192.168.0.yyy is the IP address of the netconsole server where it will monitor the output from the Pogo V3 (adjust them to the real values in your own local network settings).
fw_printenv ethaddr
U-Boot SPL 2013.10-tld-4 (Sep 07 2014 - 14:10:12) U-Boot 2015.10-tld-1 (Nov 21 2015 - 01:17:59 -0800) OXNAS OX820
dtb_file=/boot/dts/ox820-pogoplug-classic.dtb devices=usb devices=usb ide disks=0 1 2 3 4 5 6 7
cat /etc/fw_env.config # pogoplug v3 /dev/mtd0 0x00100000 0x20000 0x20000 cat /proc/mtd dev: size erasesize name mtd0: 00e00000 00020000 "boot" mtd1: 07200000 00020000 "data"
nanddump -nf mtd0 /dev/mtd0
dmesg | grep -i 'bad' [ 2.413231] Scanning device for bad blocks [ 2.417731] Bad eraseblock 3 at 0x000000060000
cd /tmp tar -xf uboot.2013.10-tld-3.ox820.bodhi.tar
/usr/sbin/flash_erase /dev/mtd0 0x0 6 Erasing 128 Kibyte @ a0000 -- 100 % complete
/usr/sbin/nandwrite /dev/mtd0 uboot.spl.2013.10.ox820.mtd0.img Writing data to block 0 at offset 0x0
/usr/sbin/nandwrite -s 262144 /dev/mtd0 uboot.2013.10-tld-3.ox820.mtd0.img 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
/usr/sbin/flash_erase /dev/mtd0 0x00100000 1 Erasing 128 Kibyte @ 100000 -- 100 % complete
/usr/sbin/nandwrite -s 1048576 /dev/mtd0 pogopro_uboot_env.img Writing data to block 8 at offset 0x100000
fw_setenv preboot 'run preboot_nc' fw_setenv ipaddr '192.168.0.xxx' fw_setenv serverip '192.168.0.yyy'where the 192.168.0.xxx is the Pogo V3 IP address, and 192.168.0.yyy is the IP address of the netconsole server where it will monitor the output from the Pogo V3 (adjust them to the real values in your own local network settings).
fw_printenv autoload=no baudrate=115200 bootargs=console=ttyS0,115200n8 bootdelay=10 console=console=ttyS0,115200n8 ethact=mii0 ethaddr=5e:2b:15:71:ec:b6 ipaddr=192.168.0.222 mtdids=nand0=41000000.nand mtdparts=mtdparts=41000000.nand:14m(boot),-(data) serverip=192.168.0.220 stderr=serial stdin=serial stdout=serial usb_device=0:1 if_netconsole=ping $serverip preboot_nc=run if_netconsole start_netconsole start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=/dev/sda1 rootdelay=10 uinitrd_addr=0x60e00000 uimage_addr=0x60500000 dtb_addr=0x62c00000 dt_load_dtb=ext2load usb 0:1 $dtb_addr /boot/dts/ox820-pogoplug-pro.dtb dt_load_initrd=ext2load usb 0:1 $uinitrd_addr /boot/uInitrd dt_load_uimage=ext2load usb 0:1 $uimage_addr /boot/uImage dt_bootm=bootm $uimage_addr $uinitrd_addr $dtb_addr dt_usb_boot=run dt_load_uimage; run dt_load_initrd; run dt_load_dtb; run dt_bootm dt_usb_bootcmd=run usb_set_bootargs; run dt_usb_boot dt_bootcmd_usb=usb start; run dt_usb_bootcmd; usb stop; reset bootcmd=run dt_bootcmd_usb
fw_printenv ethaddr cat /etc/network/interfaces | grep -i hwaddress
U-Boot SPL 2013.10 (Apr 27 2014 - 19:08:27) U-Boot 2013.10-tld-3 (May 15 2014 - 14:54:14) for OXNAS
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) May 16, 2014 04:30PM |
Admin Registered: 13 years ago Posts: 18,997 |
gulizi
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) June 11, 2014 10:21PM |
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) June 11, 2014 10:27PM |
Registered: 10 years ago Posts: 8 |
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) June 11, 2014 11:53PM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) June 12, 2014 09:34AM |
Registered: 12 years ago Posts: 232 |
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) June 13, 2014 12:19AM |
Registered: 10 years ago Posts: 8 |
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) June 13, 2014 01:23AM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) June 13, 2014 09:45AM |
Registered: 10 years ago Posts: 8 |
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) June 13, 2014 10:09AM |
Admin Registered: 13 years ago Posts: 18,997 |
mtd0: 00e00000 00020000 "boot" mtd1: 07200000 00020000 "data"
mtd0: 08000000 00020000 "NAND 128MiB 3,3V 8-bit" mtd1: 00e00000 00020000 "boot" mtd2: 07200000 00020000 "rootfs"
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) June 13, 2014 10:35AM |
Registered: 10 years ago Posts: 8 |
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) June 13, 2014 04:00PM |
Registered: 10 years ago Posts: 8 |
Brom
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) June 21, 2014 11:02AM |
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) June 21, 2014 11:40AM |
Admin Registered: 13 years ago Posts: 18,997 |
Quote
Does that mean that I can skip step 9 and 10 with an older kernel or do I need a different file to flash?
Brom
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) June 21, 2014 11:56AM |
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) July 13, 2014 10:35AM |
Registered: 11 years ago Posts: 214 |
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) July 13, 2014 01:42PM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) July 23, 2014 10:46PM |
Registered: 11 years ago Posts: 165 |
> mtd0: 00e00000 00020000 "boot" > mtd1: 07200000 00020000 "data" >>
> mtd0: 08000000 00020000 "NAND 128MiB 3,3V 8-bit" > mtd1: 00e00000 00020000 "boot" > mtd2: 07200000 00020000 "rootfs" >>
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) July 25, 2014 12:27AM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) July 26, 2014 03:35AM |
Registered: 11 years ago Posts: 214 |
U-Boot SPL 2013.10-g3a0f380-dirty (Jul 26 2014 - 10:18:57) Boot device: SATA Attempting to set PLLA to 800 MHz ... plla_ctrl0 : 0000030a plla_ctrl1 : 00400000 plla_ctrl2 : 007f0068 plla_ctrl3 : 00000193 PLLA Set Bus 0: OK Device 0: Failed to mount ext2 filesystem...-shv
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) July 26, 2014 03:53AM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) July 26, 2014 04:27AM |
Registered: 11 years ago Posts: 214 |
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) July 26, 2014 02:35PM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) July 26, 2014 04:17PM |
Registered: 11 years ago Posts: 214 |
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) July 26, 2014 04:53PM |
Admin Registered: 13 years ago Posts: 18,997 |
> /boot/uImage_2.6.31.14_OX820_1.2_shv.Pro;
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) July 27, 2014 02:01AM |
Registered: 11 years ago Posts: 214 |
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) July 27, 2014 03:24AM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) July 27, 2014 11:08AM |
Registered: 11 years ago Posts: 214 |
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) July 27, 2014 02:38PM |
Admin Registered: 13 years ago Posts: 18,997 |
jman
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) July 31, 2014 09:50PM |
28.420162] libphy: stmmac-0:00 - Link is Up - 1000/Full [ 83.255096] __nand_correct_data: uncorrectable ECC error [ 83.260364] __nand_correct_data: uncorrectable ECC error__nand_correct_data: uncorrectable ECC error