[SOLVED] plug E02 refuses to boot with bootable USB stick in

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

[SOLVED] plug E02 refuses to boot with bootable USB stick in

Postby aann » Wed Sep 12, 2012 1:58 am

Hi all
got plug v2 E02....
wanted to install the archlinux and followed the instructions for Pogoplug v2 (Pink/Gray) on http://archlinuxarm.org/platforms/armv5/pogoplug-v2-pinkgray
successfully installed install_uboot_mtd0.sh so now I have ALARM grabbing itself an IP from the router... but
1. plug would not boot with the bootable "rootfs" labeled USB stick in it (made solely on the plug).
2. plug would not boot with the bootable "rootfs" labeled USB stick in it (made on a knopix bootable CD under root (sudo su))
3. plug would boot with any bootable non-"rootfs" labeled USB stick (i used my XBMCbuntu stick - booted into alarm fine)
4. tried 3 different sticks (2 transcend and 1 lexar) - same result
have not tried logging the boot yet as I need to figure out how to unblock UDP broadcasts on my tomato router....

anyone had any similar issues?
thanks much for your help folks
EDIT: the plug's label says E02 but the device's box was saying POGO-P21... scripts confirmed that it was Marvell based one.
Last edited by aann on Tue Sep 18, 2012 6:17 am, edited 1 time in total.
aann
 
Posts: 7
Joined: Mon Sep 03, 2012 3:05 am

Re: plug E02 refuses to boot with bootable USB stick in

Postby moonman » Wed Sep 12, 2012 3:02 am

On tomato to get UDP broadcast on a wireless you need to go to firewall settings and check box "IGMP proxy"

On plug v2 you don't need to label the stick rootfs. Did you try booting with only one stick inserted or were there any other devices. Also, pogoplug v2 does not have netconsole enabled to you can't really use netconsole to troubleshoot.

I did not fully understand your #3. You say you used XBMCbuntu stick to boot into alarm or into XBMCbuntu?
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: plug E02 refuses to boot with bootable USB stick in

Postby aann » Wed Sep 12, 2012 3:14 am

thanks moonman
#3 - i was able to boot into ALARM even having xbmcbuntu stick in the plug. no other sticks were in the plug.

in all cases there was no other sticks used in the plug apart from the supposed to be bootable one.
aann
 
Posts: 7
Joined: Mon Sep 03, 2012 3:05 am

Re: plug E02 refuses to boot with bootable USB stick in

Postby WarheadsSE » Wed Sep 12, 2012 5:16 am

Not possible. You must have booted into the stock OS in NAND.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: plug E02 refuses to boot with bootable USB stick in

Postby aann » Thu Sep 13, 2012 2:31 am

$this->bbcode_second_pass_quote('WarheadsSE', 'N')ot possible. You must have booted into the stock OS in NAND.

do you mean uboot was not installed? what version of busybox am i supposed to be getting in case of successful uboot script installation?
here is current busybox output
$this->bbcode_second_pass_code('', 'login as: root
root@192.168.1.115's password:
Pogoplug:~$ busybox
BusyBox v1.7.0 (2008-02-26 19:25:17 IST) multi-call binary...
')
aann
 
Posts: 7
Joined: Mon Sep 03, 2012 3:05 am

Re: plug E02 refuses to boot with bootable USB stick in

Postby moonman » Thu Sep 13, 2012 4:35 am

See if fw_printenv is installed.

$this->bbcode_second_pass_code('', 'fw_printenv')
if it doesnt find it, then
$this->bbcode_second_pass_code('', 'find / -name fw_printenv')
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: plug E02 refuses to boot with bootable USB stick in

Postby aann » Thu Sep 13, 2012 7:19 pm

here are the results. note - no drives were inserted in the plug at the moment
any more diags I can run to clarify the situation?
thanks for your help

login as: root
root@192.168.1.115's password:
Pogoplug:~$ fw_printenv
-bash: fw_printenv: command not found
Pogoplug:~$ find / -name fw_printenv
/usr/sbin/fw_printenv

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_init=run usb_scan
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:04:6F:53
arcNumber=2097
serverip=192.168.1.10
ipaddr=192.168.1.115
if_netconsole=ping $serverip
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
preboot=run if_netconsole start_netconsole
Pogoplug:~$
aann
 
Posts: 7
Joined: Mon Sep 03, 2012 3:05 am

Re: plug E02 refuses to boot with bootable USB stick in

Postby moonman » Thu Sep 13, 2012 11:14 pm

Ok, so it looks like netconsole is activated with the new u-boot. You would have to setup netconsole and see what it says. Just listen on port 6666 without an ip address:

$this->bbcode_second_pass_code('', 'nc -lu 6666')
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: plug E02 refuses to boot with bootable USB stick in

Postby aann » Fri Sep 14, 2012 11:45 am

here it is moonman - no USB inserted yet
C:\>nc -lu -p 6666

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... 2 USB Device(s) found
scanning bus for storage devices... 0 Storage Device(s) found
** Block device usb 0 not supported

** Invalid boot device **
Creating 1 MTD partitions on "nand0":
0x000002500000-0x000008000000 : "mtd=3"
UBI: attaching mtd1 to ubi0
UBI: physical eraseblock size: 131072 bytes (128 KiB)
UBI: logical eraseblock size: 129024 bytes
UBI: smallest flash I/O unit: 2048
UBI: sub-page size: 512
UBI: VID header offset: 512 (aligned 512)
UBI: data offset: 2048
UBI: attached mtd1 to ubi0
UBI: MTD device name: "mtd=3"
UBI: MTD device size: 91 MiB
UBI: number of good PEBs: 726
UBI: number of bad PEBs: 2
UBI: max. allowed volumes: 128
UBI: wear-leveling threshold: 4096
UBI: number of internal volumes: 1
UBI: number of user volumes: 0
UBI: available PEBs: 715
UBI: total number of reserved PEBs: 11
UBI: number of PEBs reserved for bad PEB handling: 7
UBI: max/mean erase counter: 1/1
UBIFS error (pid 0): ubifs_get_sb: cannot open "ubi:rootfs", error -19
Error reading superblock on volume 'ubi:rootfs'!
** Block device usb 0 not supported
** Block device usb 1 not supported
** Block device usb 2 not supported
** Block device usb 3 not supported
** Block device usb 0 not supported
** Block device usb 0 not supported
Wrong Image Format for bootm command
ERROR: can't get kernel image!
stopping USB..
### JFFS2 loading 'uboot-original-mtd0.kwb' to 0x800000
Scanning JFFS2 FS: ....... read_nand_cached: error reading nand off 0x1500000 s
ize 8192 bytes
.. done.

*********************************** bootable flash inserted and pogo restarted****************************
### JFFS2 load complete: 524288 bytes loaded to 0x800000
## Starting application at 0x00800200 ...

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... 3 USB Device(s) found
scanning bus for storage devices... 1 Storage Device(s) found
Loading file "/rescueme" from usb device 0:1 (usbda1)
** File not found /rescueme
reading /rescueme.txt

** Unable to read "/rescueme.txt" from usb 0:1 **
Creating 1 MTD partitions on "nand0":
0x000002500000-0x000008000000 : "mtd=3"
UBI: attaching mtd1 to ubi0
UBI: physical eraseblock size: 131072 bytes (128 KiB)
UBI: logical eraseblock size: 129024 bytes
UBI: smallest flash I/O unit: 2048
UBI: sub-page size: 512
UBI: VID header offset: 512 (aligned 512)
UBI: data offset: 2048
UBI: attached mtd1 to ubi0
UBI: MTD device name: "mtd=3"
UBI: MTD device size: 91 MiB
UBI: number of good PEBs: 726
UBI: number of bad PEBs: 2
UBI: max. allowed volumes: 128
UBI: wear-leveling threshold: 4096
UBI: number of internal volumes: 1
UBI: number of user volumes: 0
UBI: available PEBs: 715
UBI: total number of reserved PEBs: 11
UBI: number of PEBs reserved for bad PEB handling: 7
UBI: max/mean erase counter: 1/1
UBIFS error (pid 0): ubifs_get_sb: cannot open "ubi:rootfs", error -19
Error reading superblock on volume 'ubi:rootfs'!
Loading file "/boot/uImage" from usb device 0:1 (usbda1)
1 bytes read
Found bootable drive on usb 0:1
Loading file "/boot/uImage" from usb device 0:1 (usbda1)
2856016 bytes read
Loading file "/boot/uInitrd" from usb device 0:1 (usbda1)
** File not found /boot/uInitrd
## Booting kernel from Legacy Image at 00800000 ...
Image Name: Linux-3.1.10-13-ARCH
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2855952 Bytes = 2.7 MiB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK

Starting kernel ...

###########and this is where the orange light stays forever on################
aann
 
Posts: 7
Joined: Mon Sep 03, 2012 3:05 am

Re: plug E02 refuses to boot with bootable USB stick in

Postby moonman » Sat Sep 15, 2012 10:29 am

You may have wrong permissions on the drive... Follow this step by step guide and reinstall everything. At step 5 though, you need to create an ext2 partition and NOT ext3.
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

Next

Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 3 guests