[RESOLVED] Cold reboots into factory OS

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

[RESOLVED] Cold reboots into factory OS

Postby frugal » Fri Jul 15, 2011 1:43 pm

I have a Pogoplug E02 and installed Arch on a 2 GB Kingston DataTraveler according to the instructions provided on this site. If I shut it down (shutdown -h now) and turn off the power to it (switch on surge suppressor), when the power is turned back on, it boots into the factory OS. If I then ssh in and tell it to reboot, it reliably comes up in Arch. Repeated "warm" reboots always boot correctly into Arch.

Did I miss something in the instructions or is this a "some usb flash drives work and some don't" problem.

Thanks,

Mike
Last edited by frugal on Mon Jul 18, 2011 1:37 am, edited 1 time in total.
frugal
 
Posts: 4
Joined: Fri Jul 15, 2011 1:25 pm

Re: Cold reboots into factory OS

Postby kmihelich » Fri Jul 15, 2011 11:51 pm

You likely need to increase the usb_rootdelay variable in uboot. From the stock firmware you should have the fw_setenv command, or access it directly by /sbin/fw_setenv.. do this:
fw_setenv usb_rootdelay 15
Arch Linux ARM exists and continues to grow through community support, please donate today!
kmihelich
Developer
 
Posts: 1133
Joined: Tue Jul 20, 2010 6:55 am
Location: aka leming #archlinuxarm

Re: Cold reboots into factory OS

Postby frugal » Sat Jul 16, 2011 2:33 am

$this->bbcode_second_pass_quote('kmihelich', 'Y')ou likely need to increase the usb_rootdelay variable in uboot. From the stock firmware you should have the fw_setenv command, or access it directly by /sbin/fw_setenv.. do this:
fw_setenv usb_rootdelay 15


Thanks for your suggestions!

First, I didn't find fw_setenv in /sbin when booted into Arch. If fact, 'which fw_setenv' didn't find it anywhere in my user or root paths (originally).

Next, when rebooted in the factory OS, I couldn't find it there either.

Following an FAQ in the Pogoplug installation instructions, I rebooted into Arch and reran install_uboot_mtd0.sh. Now, 'which fw_setenv' found it at /usr/sbin/fw_setenv. I ran 'fw_setenv usb_rootdelay 15' and tried another cold boot and it still went into the factory OS.

Now the good news: I neglected to mention that, in addition to the boot flash drive, I have a 1TB portable desktop USB hard drive plugged into the pogoplug. It appears to be the cause of the problem. When the drive is not plugged into the pogo, cold boots work fine and go directly into Arch as expected. When it is plugged in, cold boots fail consistently.

There is no boot information on this drive, just two data partitions, one ext4 and the other was formatted ntfs but the 'mount' command shows as type fuseblk. As mentioned above, this is a desktop drive so it has it's own powersupply.

Oh, I'll also mention that the boot flash drive is plugged into the front port and the hard drive is plugged into the bottom rear usb port. The other two usb ports are unused.

Sorry I forgot to mention this drive originally. Do you have any suggestions on why adding this drive would cause it to fail to boot into Arch?

Thanks,

Mike
frugal
 
Posts: 4
Joined: Fri Jul 15, 2011 1:25 pm

Re: Cold reboots into factory OS

Postby kmihelich » Sat Jul 16, 2011 2:47 am

Arch Linux ARM exists and continues to grow through community support, please donate today!
kmihelich
Developer
 
Posts: 1133
Joined: Tue Jul 20, 2010 6:55 am
Location: aka leming #archlinuxarm

Re: Cold reboots into factory OS

Postby frugal » Sun Jul 17, 2011 8:14 pm

$this->bbcode_second_pass_quote('kmihelich', 'T')his would help:

viewtopic.php?f=23&t=1357&p=7685


I spent a lot of time yesterday trying to get this to work with no success. Has anyone used this on a pogoplug E02?

It seems for this to work, uboot needs to support GPT and according to this post Jeff Doozan's uboot specified in the Arch Pogoplug V2 instructions doesn't seem to have GPT support compiled in. (Please let me know if this is wrong)

I guess I could rebuild uboot with it turned on, but I think first I'll spend a little time looking for other solutions.

Mike
frugal
 
Posts: 4
Joined: Fri Jul 15, 2011 1:25 pm

Re: Cold reboots into factory OS

Postby kmihelich » Sun Jul 17, 2011 8:39 pm

The trick with that method is that it's bootloader-agnostic. You still need it to reliably find the kernel (that post was done on a Sheeva where you flash the kernel to NAND, so it doesn't matter there), but once you do have it grabbing the kernel, you just need to have a properly formatted GPT disk, know the UUID for the partition (not udev disk uuid) and pass that in root=.

It's also been mentioned elsewhere here that the USB port nearest the ethernet will initialize first.
Arch Linux ARM exists and continues to grow through community support, please donate today!
kmihelich
Developer
 
Posts: 1133
Joined: Tue Jul 20, 2010 6:55 am
Location: aka leming #archlinuxarm

Re: Cold reboots into factory OS

Postby frugal » Mon Jul 18, 2011 12:34 am

It was a simpler problem than I thought. I found this post that described how to set up a netconsole to get details on the boot process. One of the guys there mentioned cold boot problems with DataTraveler flash drives. Another post on that site for usb drives that do or don't work on Pogoplugs or Dockstars had many comments about these drives and some other's failing primarly on cold boots.

So the answer turned out to be trivial: I used clonezilla to image my backup of the old flash drive to an 8GB HP flash drive I had and ran it through its paces with warm and cold boots with and without the external drive. No failures so far.

Thank you for your help. I've learned a lot in the process. I don't seem to need GPT now, but let's see what happens when the Pogo is fully populated with:

1) external disk for file and web server functions
2) usb-rs232 connection to Outback solar power system
3) usb-rs232 connection to La Crosse 2317 weather station
4) usb to Brultech 1220 home power monitor
5) usb to Brultech 1240 home power monitor
6) usb to 1-wire network with pulse counting water meter

I currently have a Linksys NSLU2 managing 2, 3, 4, & 6. A $45 Pogoplug E02 should be a big improvement.

Mike

P.S. How do I mark this [RESOLVED]?
frugal
 
Posts: 4
Joined: Fri Jul 15, 2011 1:25 pm

Re: Cold reboots into factory OS

Postby WarheadsSE » Mon Jul 18, 2011 1:21 am

Edit your first post's Subject
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm


Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 9 guests