Help -- PogoPlug not booting from USB drive

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

Help -- PogoPlug not booting from USB drive

Postby ppritchard » Fri Aug 31, 2012 2:39 pm

I have a PogoPlug E02 with a USB hard drive. I have just finished following the installation instructions carefully (http://archlinuxarm.org/platforms/armv5 ... 2-pinkgray). Everything seems to have installed properly. After I reboot, though, I had to enter the old root password for the box, and it seems to still be running the old OS, as though it didn't boot from the USB drive.

What should I try next?
ppritchard
 
Posts: 8
Joined: Fri Aug 31, 2012 2:31 pm

Re: Help -- PogoPlug not booting from USB drive

Postby sambul13 » Fri Aug 31, 2012 2:46 pm

Try troubleshooting boot with netconsole and post its output here.
sambul13
 
Posts: 258
Joined: Sat Aug 18, 2012 10:32 pm

Re: Help -- PogoPlug not booting from USB drive

Postby ppritchard » Fri Aug 31, 2012 3:46 pm

Thanks...I'm new to archlinux. How do I install netconsole on the PogoPlug?
ppritchard
 
Posts: 8
Joined: Fri Aug 31, 2012 2:31 pm

Re: Help -- PogoPlug not booting from USB drive

Postby sambul13 » Fri Aug 31, 2012 3:53 pm

Its installed with Uboot and also built-in into ArchLinux ARM. You just need to configure it on both ends. No need to install it to original Pogo OS (its a scaled down Linux release), but it may be already there. :)
sambul13
 
Posts: 258
Joined: Sat Aug 18, 2012 10:32 pm

Re: Help -- PogoPlug not booting from USB drive

Postby ppritchard » Fri Aug 31, 2012 5:57 pm

Reading through this thread, it looked like I needed to use fw_setenv to configure uboot. I found fw_setenv in /usr/sbin, and ran the commands:

$this->bbcode_second_pass_code('', 'fw_setenv serverip 192.168.1.2
fw_setenv ipaddr 192.168.1.100
fw_setenv if_netconsole 'ping $serverip'
fw_setenv start_netconsole 'setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;'
fw_setenv preboot 'run if_netconsole start_netconsole'')

(I adjusted the IP addresses to fit my network).

On my PC, I ran:

$this->bbcode_second_pass_code('', 'nc -l -u -p 6666')

Then I rebooted the PogoPlug. The following is what was displayed:

$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... EHCI timed out on TD - token=0x80008c80
3 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: 727
UBI: number of bad PEBs: 1
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: 716
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: ........ done.
### JFFS2 load complete: 524288 bytes loaded to 0x800000
## Starting application at 0x00800200 ...
')

Any help interpreting that would be appreciated! What is the issue?
ppritchard
 
Posts: 8
Joined: Fri Aug 31, 2012 2:31 pm

Re: Help -- PogoPlug not booting from USB drive

Postby ppritchard » Fri Aug 31, 2012 6:15 pm

BTW, the USB drive I am using if 500GB. Per the installation instructions, you should create one partition for the whole thing. is there any size limitation on the USB boot device (should I make a smaller partition)?
ppritchard
 
Posts: 8
Joined: Fri Aug 31, 2012 2:31 pm

Re: Help -- PogoPlug not booting from USB drive

Postby sambul13 » Fri Aug 31, 2012 6:35 pm

What USB enclosure do you use? Load your USB drive in Parted Magic or Gparted on your PC or inside a Virtual Machine, and look what you get their. ;) Then delete all partitions, create 1st partition 2Gb EXT2 for ArchLinux install, 2nd partition 256MB SWAP, and the rest of the drive use at your discretion - can create EXT4, NTFS or XFS partition(s) for your media files.

If you plan to hook up the drive to Windows as well for faster media transfer compare to network, look here for more ideas.
Last edited by sambul13 on Sun Sep 02, 2012 1:35 am, edited 3 times in total.
sambul13
 
Posts: 258
Joined: Sat Aug 18, 2012 10:32 pm

Re: Help -- PogoPlug not booting from USB drive

Postby ppritchard » Fri Aug 31, 2012 8:25 pm

I tried setting the partition sizes as you recommended, but it still had the same issue at boot. Setting the partition sizes that way was a good idea regardless.

I read some more posts and tried this:

$this->bbcode_second_pass_code('', 'fw_setenv usb_init 'usb stop; usb start; run usb_scan'')

And it booted into alarm. So it looks like I am up and running now! Thanks for the useful help.
ppritchard
 
Posts: 8
Joined: Fri Aug 31, 2012 2:31 pm

Re: Help -- PogoPlug not booting from USB drive

Postby moonman » Sat Sep 01, 2012 7:44 am

Rootfs partition should be < 20 gigs. I dont know whay it isn't fixed in the guide yet.
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: 3387
Joined: Sat Jan 15, 2011 3:36 am

Re: Help -- PogoPlug not booting from USB drive

Postby karog » Sat Sep 01, 2012 1:43 pm

$this->bbcode_second_pass_quote('moonman', 'R')ootfs partition should be < 20 gigs. I dont know whay it isn't fixed in the guide yet.

Not necessarily. I have a 1 GB ext2 boot partition followed by a 146GB ext4 rootfs partition.
karog
 
Posts: 300
Joined: Thu Jan 05, 2012 7:55 pm

Next

Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 5 guests