Pogoplug E02 won't boot in certain usb drive config

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

Pogoplug E02 won't boot in certain usb drive config

Postby Ethereal » Wed Jan 16, 2013 11:29 pm

When I have my usb hard drive (3tb WD) connected as well as my boot USB flash drive, and presumably uboot finds the WD drive first, uboot gets stuck at the rescueme step. The following is the entirety of netconsole output:

$this->bbcode_second_pass_code('', '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: 0
(Re)start USB...
USB: Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 4 USB Device(s) found
scanning bus for storage devices... 2 Storage Device(s) found
Loading file "/rescueme" from usb device 0:1 (usbda1)')

With the flash usb only or in some other usb port configs with both devices, it boots fine.

Any ideas?

Here is my environment:

$this->bbcode_second_pass_code('', 'Pogoplug:~$ /usr/sbin/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_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
mtdids=nand0=orion_nand
partition=nand0,2
stdin=serial
stdout=serial
stderr=serial
rescue_installed=0
rescue_set_bootargs=setenv bootargs console=$console ubi.mtd=2 root=ubi0:rootfs ro rootfstype=ubifs $mtdparts $rescue_custom_params
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
pogo_bootcmd=if fsload uboot-original-mtd0.kwb; then go 0x800200; fi
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
ubifs_mtd=3
ubifs_set_bootargs=setenv bootargs console=$console ubi.mtd=$ubifs_mtd root=ubi0:rootfs rootfstype=ubifs $mtdparts $ubifs_custom_params
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
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_list=1 2 3 4
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_device=0:1
usb_root=/dev/sda1
usb_rootfstype=ext2
usb_rootdelay=10
usb_set_bootargs=setenv bootargs console=$console root=$usb_root rootdelay=$usb_rootdelay rootfstype=$usb_rootfstype $mtdparts $usb_custom_params
usb_bootcmd=run usb_init; run usb_set_bootargs; run usb_boot
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
bootcmd=usb start; run force_rescue_bootcmd; run ubifs_bootcmd; run usb_bootcmd; usb stop; run rescue_bootcmd; run pogo_bootcmd; reset
ethaddr=00:25:31:03:03:A3
arcNumber=2097
serverip=10.0.1.119
if_netconsole=ping $serverip
ipaddr=10.0.1.118
preboot=run if_netconsole start_netconsole
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
usb_init=run usb_scan; setenv usb_root LABEL=ROOTFS
usb_custom_params=loglevel=7 netconsole=6666@10.0.1.118/eth0,6666@10.0.1.119/08:00:27:15:E8:06')
Ethereal
 
Posts: 11
Joined: Wed Jan 16, 2013 11:21 pm

Re: Pogoplug E02 won't boot in certain usb drive config

Postby moonman » Thu Jan 17, 2013 4:14 am

Does your flash drive have any of these files in the root of the device: rescueme, rescueme.txt

Insert your boot device into the very bottom usb port at the back. It gets initialized first
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: Pogoplug E02 won't boot in certain usb drive config

Postby Ethereal » Thu Jan 17, 2013 12:39 pm

$this->bbcode_second_pass_quote('moonman', 'D')oes your flash drive have any of these files in the root of the device: rescueme, rescueme.txt

Insert your boot device into the very bottom usb port at the back. It gets initialized first

Neither drive has any rescue stuff on it. The external HDD is GPT with a singe ext3 partition on it. Could uboot be having issues reading it and getting stuck? The boot process does work when the boot drive is plugged into the bottom port on the back, but I was trying to find a way to ensure successful boot in any configuration. I'm writing a guide and want it to be as user-proof as possible ;)
Ethereal
 
Posts: 11
Joined: Wed Jan 16, 2013 11:21 pm

Re: Pogoplug E02 won't boot in certain usb drive config

Postby pepedog » Thu Jan 17, 2013 1:52 pm

I think you want a hybrid mbr
viewtopic.php?f=18&t=2611&start=30#p14953
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Pogoplug E02 won't boot in certain usb drive config

Postby Ethereal » Thu Jan 17, 2013 3:09 pm

$this->bbcode_second_pass_quote('pepedog', 'I') think you want a hybrid mbr
viewtopic.php?f=18&t=2611&start=30#p14953

Want? No! It may solve this issue but I'd rather just call out putting the root usb in the right port. Thanks for the link though, I was wondering about that!

I think though, the question is why does uboot get hung up on it? The solution may be to add a check in the uboot boot process for GPT and pass on that drive if present.
Ethereal
 
Posts: 11
Joined: Wed Jan 16, 2013 11:21 pm

Re: Pogoplug E02 won't boot in certain usb drive config

Postby WarheadsSE » Thu Jan 17, 2013 3:17 pm

You assume the built uboot has knowledge of GPT.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Pogoplug E02 won't boot in certain usb drive config

Postby Ethereal » Sun Jan 27, 2013 2:48 am

$this->bbcode_second_pass_quote('WarheadsSE', 'Y')ou assume the built uboot has knowledge of GPT.

Well, no... but it would be as easy as something like "if partition table type is not recognized, then skip the drive"...

Anyone know who or where to file uboot bug reports? Is there a tracker or something?
Also, if I wanted to dabble in compiling it myself and attempting to make a patch any idea where I would start?
Ethereal
 
Posts: 11
Joined: Wed Jan 16, 2013 11:21 pm
Top


Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 285 guests