Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) March 07, 2015 10:02PM |
Registered: 9 years ago Posts: 429 |
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) March 08, 2015 04:53PM |
Admin Registered: 13 years ago Posts: 18,821 |
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) March 08, 2015 05:26PM |
Registered: 9 years ago Posts: 429 |
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) March 08, 2015 06:00PM |
Admin Registered: 13 years ago Posts: 18,821 |
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) March 08, 2015 06:24PM |
Admin Registered: 13 years ago Posts: 18,821 |
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) March 08, 2015 06:28PM |
Admin Registered: 13 years ago Posts: 18,821 |
OX820> printenv autoload=no baudrate=115200 bootargs=console=ttyS0,115200n8 bootcmd=run bootcmd_uenv; run dt_bootcmd_usb; reset bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi bootdelay=10 console=console=ttyS0,115200n8 devices=usb ide dt_bootcmd_usb=usb start; run dt_usb_bootcmd; usb stop; reset dt_bootm=bootm $uimage_addr $uinitrd_addr $dtb_addr 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_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 dtb_addr=0x62c00000 ethact=mii0 ethaddr=5e:2b:15:71:ec:b6 if_netconsole=ping $serverip ipaddr=192.168.0.222 mtdids=nand0=41000000.nand mtdparts=mtdparts=41000000.nand:14m(boot),-(data) preboot=run safeboot preboot_nc=run if_netconsole start_netconsole serverip=192.168.0.220 start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version stderr=serial stdin=serial stdout=serial uenv_import=echo importing envs ...; env import -t 0x60500000 uenv_init_devices=setenv init_usb "usb start"; setenv init_ide "ide reset"; setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done; uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices; do for disknum in 0; do run uenv_read_disk; done; done; uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 0x60500000 /boot/uEnv.txt; then setenv uenv_loaded 1; fi uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read; fi; else if $devtype part $disknum; then run uenv_read; fi; fi uimage_addr=0x60500000 uinitrd_addr=0x60e00000 usb_device=0:1 usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=/dev/sda1 rootdelay=10 Environment size: 2001/131068 bytes
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) March 08, 2015 09:42PM |
Admin Registered: 13 years ago Posts: 18,821 |
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) March 12, 2015 01:17AM |
Registered: 9 years ago Posts: 12 |
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) March 12, 2015 01:52AM |
Admin Registered: 13 years ago Posts: 18,821 |
> dt_bootcmd_ide=ide start; run dt_ide_bootcmd; ide > stop; reset >>
> dt_bootcmd_ide=ide reset; run dt_ide_bootcmd; > reset >
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) April 08, 2015 10:11AM |
Registered: 11 years ago Posts: 1,303 |
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) April 08, 2015 03:38PM |
Admin Registered: 13 years ago Posts: 18,821 |
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) April 08, 2015 04:38PM |
Registered: 11 years ago Posts: 1,303 |
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) April 11, 2015 07:40AM |
Registered: 11 years ago Posts: 1,303 |
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) April 11, 2015 03:13PM |
Admin Registered: 13 years ago Posts: 18,821 |
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) April 11, 2015 09:16PM |
Registered: 11 years ago Posts: 1,303 |
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) May 17, 2015 04:08PM |
Registered: 9 years ago Posts: 11 |
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) May 17, 2015 04:22PM |
Admin Registered: 13 years ago Posts: 18,821 |
Quote
Updated 05 Mar 2015
I've uploaded the uboot.2013.10-tld-4 u-Boot image for Pogoplug V3 Oxnas. This u-boot supports the following latest U-Boot features (among others):
- Ability to customize u-boot envs in a script (uEnv.txt) during boot, without committing changes to NAND (see section A below for instruction). This feature also can be used for rescue purpose where the u-boot envs were messed up, or when the NAND envs block is bad.
Quote
A. How to use the uEnv.txt script
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) May 17, 2015 06:15PM |
Admin Registered: 13 years ago Posts: 18,821 |
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_usband then execute boot to boot the box:
OX820> boot
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) May 18, 2015 05:07PM |
Registered: 9 years ago Posts: 11 |
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) May 18, 2015 07:07PM |
Admin Registered: 13 years ago Posts: 18,821 |
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) June 03, 2015 07:52PM |
Registered: 9 years ago Posts: 20 |
autoload=no baudrate=115200 bootargs=console=ttyS0,115200n8 bootdelay=10 console=console=ttyS0,115200n8 ethact=mii0 mtdids=nand0=41000000.nand mtdparts=mtdparts=41000000.nand:14m(boot),-(data) 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_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 ethaddr=00:25:31:01:d6:b2 dt_load_dtb=ext2load usb 0:1 $dtb_addr $fdt_file preboot=run preboot_nc ipaddr=192.168.42.92 serverip=192.168.42.74 fdt_file=/boot/dts/ox820-pogoplug-pro.dtbAny hints and help appreciated - thanks!
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) June 03, 2015 11:00PM |
Admin Registered: 13 years ago Posts: 18,821 |
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) June 04, 2015 02:21AM |
Registered: 9 years ago Posts: 20 |
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) June 16, 2015 02:08PM |
Registered: 9 years ago Posts: 3 |
U-Boot 2013.10-tld-5 (Mar 07 2015 - 16:50:17) for OXNAS gcc (Debian 4.9.1-19) 4.9.1 GNU ld (GNU Binutils for Debian) 2.24.90.20141023 Hit any key to stop autoboot: 0 (Re)start USB... USB0: USB EHCI 1.00 scanning bus 0 for devices... cannot reset port 4!? 2 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found ** Bad device usb 0 ** ** Bad device usb 0 ** ** Bad device usb 0 ** Wrong Image Format for bootm command Led: ORANGE (Failed) ERROR: can't get kernel image! stopping USB.. resetting ...If I run
usb starttwice without a reset, it works consistently the second time on the black Pogoplug (with the USB device on any port). It also works on ports 1-3 (but not the front-facing port 4) of the pink Pogoplug.
OX820> usb start u s b s t a r t (Re)start USB... USB0: USB EHCI 1.00 scanning bus 0 for devices... cannot reset port 4!? 2 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found OX820> usb start u s b s t a r t (Re)start USB... USB0: USB EHCI 1.00 scanning bus 0 for devices... 3 USB Device(s) found scanning usb for storage devices... 1 Storage Device(s) foundThe EHCI controller works fine in Linux. I don't know much about the platform details, but something doesn't seem right here. Any relevant U-Boot build params (clock related, etc.) that could affect reliability of the USB controller?
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) June 17, 2015 12:35AM |
Admin Registered: 13 years ago Posts: 18,821 |
> U-Boot 2013.10-tld-5 (Mar 07 2015 - 16:50:17) for > OXNAS > gcc (Debian 4.9.1-19) 4.9.1 > GNU ld (GNU Binutils for Debian) 2.24.90.20141023 > Hit any key to stop autoboot: 0 > (Re)start USB... > USB0: USB EHCI 1.00 > scanning bus 0 for devices... cannot reset port > 4!? > 2 USB Device(s) found > scanning usb for storage devices... 0 > Storage Device(s) found > ** Bad device usb 0 ** > ** Bad device usb 0 ** > ** Bad device usb 0 ** > Wrong Image Format for bootm command > > Led: ORANGE (Failed) > ERROR: can't get kernel image! > stopping USB.. > resetting ... >> If I run
usb starttwice without a
> OX820> usb start > u s b s t a r t > (Re)start USB... > USB0: USB EHCI 1.00 > scanning bus 0 for devices... cannot reset port > 4!? > 2 USB Device(s) found > scanning usb for storage devices... 0 Storage > Device(s) found > OX820> usb start > u s b s t a r t > (Re)start USB... > USB0: USB EHCI 1.00 > scanning bus 0 for devices... 3 USB Device(s) > found > scanning usb for storage devices... 1 Storage > Device(s) found >> The EHCI controller works fine in Linux. I don't
setenv usb_ready_retry 15- and then
boot
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) June 17, 2015 05:28PM |
Registered: 9 years ago Posts: 3 |
> > U-Boot 2013.10-tld-5 (Mar 07 2015 - 16:50:17) > for > > OXNAS > > gcc (Debian 4.9.1-19) 4.9.1 > > GNU ld (GNU Binutils for Debian) > 2.24.90.20141023 > > Hit any key to stop autoboot: 0 > > (Re)start USB... > > USB0: USB EHCI 1.00 > > scanning bus 0 for devices... cannot reset port > > 4!? > > 2 USB Device(s) found > > scanning usb for storage devices... 0 > > Storage Device(s) found > > ** Bad device usb 0 ** > > ** Bad device usb 0 ** > > ** Bad device usb 0 ** > > Wrong Image Format for bootm command > > > > Led: ORANGE (Failed) > > ERROR: can't get kernel image! > > stopping USB.. > > resetting ... > >> > If I run
usb starttwice without a
> > OX820> usb start > > u s b s t a r t > > (Re)start USB... > > USB0: USB EHCI 1.00 > > scanning bus 0 for devices... cannot reset port > > 4!? > > 2 USB Device(s) found > > scanning usb for storage devices... 0 Storage > > Device(s) found > > OX820> usb start > > u s b s t a r t > > (Re)start USB... > > USB0: USB EHCI 1.00 > > scanning bus 0 for devices... 3 USB Device(s) > > found > > scanning usb for storage devices... 1 Storage > > Device(s) found > >> > The EHCI controller works fine in Linux. I
> setenv usb_ready_retry 15 >> - and then
> boot >>
OX820> printenv p r i n t e n v autoload=no baudrate=115200 bootargs=console=ttyS0,115200 root=/dev/sda1 rootdelay=10 bootcmd=run dt_bootcmd_usb bootdelay=5 console=console=ttyS0,115200n8 dt_bootcmd_usb=usb start; run dt_usb_bootcmd; usb stop; reset dt_bootm=bootm $uimage_addr $uinitrd_addr $dtb_addr dt_load_dtb=ext2load usb 0:1 $dtb_addr $fdt_file dt_load_initrd=ext2load usb 0:1 $uinitrd_addr /boot/uInitrd dt_load_uimage=ext2load usb 0:1 $uimage_addr /boot/uImage 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 dtb_addr=0x62c00000 ethact=mii0 ethaddr=00:25:31:02:8d:42 fdt_file=/boot/dts/ox820-pogoplug-classic.dtb if_netconsole=ping $serverip ipaddr=192.168.0.158 mtdids=nand0=41000000.nand mtdparts=mtdparts=41000000.nand:14m(boot),-(data) ncip=192.168.0.4 preboot=run preboot_nc preboot_nc=run if_netconsole start_netconsole serverip=192.168.0.4 start_netconsole=setenv ncip $serverip; setenv bootdelay 5; setenv stdin nc; setenv stdout nc; setenv stderr nc; version stderr=nc stdin=nc stdout=nc uimage_addr=0x60500000 uinitrd_addr=0x60e00000 usb_device=0:1 usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=/dev/sda1 rootdelay=10 Environment size: 1271/131068 bytes OX820> setenv setenv usb_ready_retry 15 s e t e n v s e t e n v u s b _ r e a d y _ r e t r y 1 5 OX820> run bootcmd r u n b o o t c m d (Re)start USB... USB0: USB EHCI 1.00 scanning bus 0 for devices... 4 USB Device(s) found scanning usb for storage devices... 1 Storage Device(s) found 4170064 bytes read in 374 ms (10.6 MiB/s) EHCI timed out on TD - token=0xc008d80 EHCI timed out on TD - token=0x80008d80 EHCI timed out on TD - token=0x80008d80 EHCI timed out on TD - token=0x80008d80 EHCI timed out on TD - token=0x80008d80 EHCI timed out on TD - token=0x80008d80 EHCI timed out on TD - token=0x80008d80 EHCI timed out on TD - token=0xc008d80 EHCI timed out on TD - token=0x80008d80 EHCI timed out on TD - token=0x80008d80 EHCI timed out on TD - token=0x80008d80 EHCI timed out on TD - token=0x80008d80 EHCI timed out on TD - token=0x80008d80 ** ext4fs_devread read error - block EHCI timed out on TD - token=0x80008d80 EHCI timed out on TD - token=0x80008d80 EHCI timed out on TD - token=0x80008d80 EHCI timed out on TD - token=0x80008d80 EHCI timed out on TD - token=0x80008d80 EHCI timed out on TD - token=0x80008d80 ** Can't read partition table on 0:0 ** ** Invalid partition 1 ** ## Booting kernel from Legacy Image at 60500000 ... Image Name: Linux-3.18.5-oxnas-tld-1 Created: 2015-06-15 22:44:20 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 4170000 Bytes = 4 MiB Load Address: 60008000 Entry Point: 60008000 Verifying Checksum ... OK ## Loading init Ramdisk from Legacy Image at 60e00000 ... Image Name: initramfs-3.18.5-oxnas-tld-1 Created: 2015-06-15 22:44:21 UTC Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 1977442 Bytes = 1.9 MiB Load Address: 60000000 Entry Point: 60000000 Verifying Checksum ... Bad Data CRC Led: ORANGE (Failed) Ramdisk image is corrupt or invalid stopping USB.. resetting ...
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) June 17, 2015 05:31PM |
Registered: 9 years ago Posts: 3 |
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) June 17, 2015 06:21PM |
Registered: 11 years ago Posts: 165 |
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) June 17, 2015 11:59PM |
Admin Registered: 13 years ago Posts: 18,821 |
dibbsy
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) July 03, 2015 06:29PM |
4. You are running stock kernel, and have gained SHH access to the box, and have downloaded u-boot-tools and mtd-utils (fw_setenv, flash_erase, nandwrite …) to work with NAND mtds. And plan to run a USB rootfs that came from any of the above 3.
[ 4380.990000] uncorrectable error : [ 4380.990000] uncorrectable error : 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=115200