Welcome! Log In Create A New Profile

Advanced

usb key not recognized on pogo E02

Posted by ringprince 
usb key not recognized on pogo E02
March 10, 2019 09:44PM
Hi all,

I've run debian on my pogo E02 successfully sereval years. Now, my USB key died. I thus prepared a new and bigger key with the newest rootfs I found. Problem is, the pogo E02 does not like the usb key. Here is the output of the netconsole:

U-Boot 2016.05-tld-1 (Jun 12 2016 - 13:23:43 -0700)
Pogo E02
gcc (Debian 4.9.2-10) 4.9.2
GNU ld (GNU Binutils for Debian) 2.25
Hit any key to stop autoboot:  0
starting 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
** File not found /rescueme **
** Unrecognized filesystem type **
ubi0: attaching mtd1
ubi0: scanning is finished
ubi0: attached mtd1 (name "mtd=3", size 91 MiB)
ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 129024 bytes
ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 512
ubi0: VID header offset: 512 (aligned 512), data offset: 2048
ubi0: good PEBs: 727, bad PEBs: 1, corrupted PEBs: 0
ubi0: user volume: 0, internal volumes: 1, max. volumes count: 128
ubi0: max/mean erase counter: 1/1, WL threshold: 4096, image sequence number: 0
ubi0: available PEBs: 704, total reserved PEBs: 23, PEBs reserved for bad PEB handling: 19
Error reading superblock on volume 'rootfs' errno=-22!
ubifsmount - mount UBIFS volume


Usage:
ubifsmount <volume-name>
    - mount 'volume-name' volume
1 bytes read in 253 ms (0 Bytes/s)
Found bootable drive on usb 0:1
3832036 bytes read in 410 ms (8.9 MiB/s)
EHCI timed out on TD - token=0x4e008d80
EHCI timed out on TD - token=0x4e008d80
EHCI timed out on TD - token=0x4e008d80
 ** ext4fs_devread read error - block
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.12.1-kirkwood-tld-1
   Created:      2019-03-10   9:13:58 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3831972 Bytes = 3.7 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK


Starting kernel ...

Your help is highly appreciated.

Best,
Andreas
Re: usb key not recognized on pogo E02
March 10, 2019 10:53PM
I've found some usb keys just aren't compatible. Mostly Kingston brand usb keys. I've had no issue with Sandisk branded ones.
Re: usb key not recognized on pogo E02
March 11, 2019 12:17AM
ringprince Wrote:
-------------------------------------------------------
> Hi all,
>
> I've run debian on my pogo E02 successfully
> sereval years. Now, my USB key died. I thus
> prepared a new and bigger key with the newest
> rootfs I found. Problem is, the pogo E02 does not
> like the usb key. Here is the output of the
> netconsole:
>
>
> U-Boot 2016.05-tld-1 (Jun 12 2016 - 13:23:43
> -0700)
> Pogo E02
> gcc (Debian 4.9.2-10) 4.9.2
> GNU ld (GNU Binutils for Debian) 2.25
> Hit any key to stop autoboot:  0
> starting 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
> ** File not found /rescueme **
> ** Unrecognized filesystem type **
> ubi0: attaching mtd1
> ubi0: scanning is finished
> ubi0: attached mtd1 (name "mtd=3", size 91 MiB)
> ubi0: PEB size: 131072 bytes (128 KiB), LEB size:
> 129024 bytes
> ubi0: min./max. I/O unit sizes: 2048/2048,
> sub-page size 512
> ubi0: VID header offset: 512 (aligned 512), data
> offset: 2048
> ubi0: good PEBs: 727, bad PEBs: 1, corrupted PEBs:
> 0
> ubi0: user volume: 0, internal volumes: 1, max.
> volumes count: 128
> ubi0: max/mean erase counter: 1/1, WL threshold:
> 4096, image sequence number: 0
> ubi0: available PEBs: 704, total reserved PEBs:
> 23, PEBs reserved for bad PEB handling: 19
> Error reading superblock on volume 'rootfs'
> errno=-22!
> ubifsmount - mount UBIFS volume
> 
> 
> Usage:
> ubifsmount <volume-name>
>     - mount 'volume-name' volume
> 1 bytes read in 253 ms (0 Bytes/s)
> Found bootable drive on usb 0:1
> 3832036 bytes read in 410 ms (8.9 MiB/s)
> EHCI timed out on TD - token=0x4e008d80
> EHCI timed out on TD - token=0x4e008d80
> EHCI timed out on TD - token=0x4e008d80
>  ** ext4fs_devread read error - block
> ## Booting kernel from Legacy Image at 00800000
> ...
>    Image Name:   Linux-4.12.1-kirkwood-tld-1
>    Created:      2019-03-10   9:13:58 UTC
>    Image Type:   ARM Linux Kernel Image
> (uncompressed)
>    Data Size:    3831972 Bytes = 3.7 MiB
>    Load Address: 00008000
>    Entry Point:  00008000
>    Verifying Checksum ... OK
> 
> 
> Starting kernel ...
>
>
> Your help is highly appreciated.
>
> Best,
> Andreas

Power up, Interrupt netconsole at countdown, and

printenv
usb start

Please post the entire log here.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: usb key not recognized on pogo E02
March 11, 2019 01:55PM
Thanks for the fast replies!

Here are the logs:

PogoE02> printenv

printenv
arcNumber=2097
baudrate=115200
bootcmd=usb start; run force_rescue_bootcmd; run ubifs_bootcmd; run usb_bootcmd; usb stop; run rescue_bootcmd; run pogo_bootcmd; reset
bootdelay=10
console=ttyS0,115200
ethact=egiga0
ethaddr=00:25:31:00:53:0E
force_rescue=0
force_rescue_bootcmd=if test $force_rescue -eq 1 || ext2load usb 0:1 0x1700000 /rescueme 1 || fatload usb 0:1 0x1700000 /rescueme.txt 1; then run rescue_bootcmd; fi
if_netconsole=ping $serverip
ipaddr=192.168.178.27
led_error=orange blinking
led_exit=green off
led_init=green blinking
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
nc_ready=1
ncip=192.168.178.29
partition=nand0,2
pogo_bootcmd=if fsload uboot-original-mtd0.kwb; then go 0x800200; fi
preboot=run preboot_nc
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
rescue_bootcmd=if test $rescue_installed -eq 1; then run rescue_set_bootargs; nand read.e 0x800000 0x100000 0x400000; bootm 0x800000; else run pogo_bootcmd; fi
rescue_installed=1
rescue_set_bootargs=setenv bootargs console=$console ubi.mtd=2 root=ubi0:rootfs ro rootfstype=ubifs $mtdparts $rescue_custom_params
serverip=192.168.178.29
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
stderr=nc
stdin=nc
stdout=nc
ubifs_bootcmd=run ubifs_set_bootargs; if ubi part data && ubifsmount rootfs && ubifsload 0x800000 /boot/uImage && ubifsload 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; fi
ubifs_mtd=3
ubifs_set_bootargs=setenv bootargs console=$console ubi.mtd=$ubifs_mtd root=ubi0:rootfs rootfstype=ubifs $mtdparts $ubifs_custom_params
usb_boot=mw 0x800000 0 1; ext2load usb $usb_device 0x800000 /boot/uImage; if ext2load usb $usb_device 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi
usb_bootcmd=run usb_init; run usb_set_bootargs; run usb_boot
usb_device=0:1
usb_init=run usb_scan
usb_root=/dev/sda1
usb_rootdelay=10
usb_rootfstype=ext2
usb_scan=usb_scan_done=0;for scan in $usb_scan_list; do run usb_scan_$scan; if test $usb_scan_done -eq 0 && ext2load usb $usb 0x800000 /boot/uImage 1; then usb_scan_done=1; echo "Found bootable drive on usb $usb"; setenv usb_device $usb; setenv usb_root /dev/$dev; fi; done
usb_scan_1=usb=0:1 dev=sda1
usb_scan_2=usb=1:1 dev=sdb1
usb_scan_3=usb=2:1 dev=sdc1
usb_scan_4=usb=3:1 dev=sdd1
usb_scan_list=1 2 3 4
usb_set_bootargs=setenv bootargs console=$console root=$usb_root rootdelay=$usb_rootdelay rootfstype=$usb_rootfstype $mtdparts $usb_custom_params

Environment size: 2780/131068 bytes


PogoE02> usb start

usb USB0:   start
starting USB...
USB EHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
Re: usb key not recognized on pogo E02
March 11, 2019 04:24PM
It looks OK.

So now the problem is with the

Quote

EHCI timed out on TD

Like alexr mentioned above. This problem is most likely the type of the USB flash drive that was not handled well by u-boot. We have seen this for many many years here. If you switch to (my favorite brand) Sandisk, it is very likely it will show no error like this.

However, I've incorporated a permanent fix for this using rayv patch in the later version. So if you can get pass this error with a different USB flash drive, then you can update u-boot, and then mos likely it will accept most of USB flash brands.

https://forum.doozan.com/read.php?3,12381

Quote

Last Updated 28 Oct 2017
Updated 06 Dec 2017 (replace Sheevaplug with newer version 2017.07-tld-2)

I've uploaded 2017.07-tld-1 U-Boot images for Pogo E02, GoFlexNet, GoFlex Home, Dockstar, Pogo V4/Mobile, iConnect, Netgear Stora, Sheevaplug, NSA320, NSA325, NSA310S/320S, NSA310, HP-T5325, and Dreamplug.

The HP Thin Client T5325 installation procedure is different from other Kirkwood u-boots, see this thread for installation instruction and download link..

The Marvell Dreamplug box installation procedure is different from other Kirkwood u-boots, see this thread for installation instruction and download link.

New/updated in 2017.07-tld-1 version:

- Rebase u-boot code to track mainline 2017.07.
- Incorporated patch to fix "EHCI timed out on TD" error with USB drives.
- SD cards: Use the mainline version of MMC driver for Pogo V4/Mobile and Sheevaplug
- Improve internal defautl envs.
- Fixed Sheevaplug "load" command in 2017.07-tld-2 version.

Credits:
-Thanks rayvt for the EHCI timed out on TD patch ! good works.
- Thanks Rayknight for reporting bug and testing the Sheevaplug 2017.07-tld-2 u-boot .

-bodhi
===========================
Forum Wiki
bodhi's corner
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: