Pogoplug V4 won't boot with hard drive attached

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

Pogoplug V4 won't boot with hard drive attached

Postby tascheitrum » Wed Dec 24, 2014 9:18 pm

Happy Holidays everyone! First off, I don't know if this is the correct forum location for this thread, if its not please tell me, and I can delete/move it to the correct topic.

I figured I'd set up a samba share for my parents while I was home with a pogoplug V4. I have everything running smoothly with ALARM and an 8GB flash drive (plugged into the top USB port) as the root file system, using http://archlinuxarm.org/platforms/armv5 ... g-series-4 instructions. But when i have a hard drive plugged another USB slot, and reboot the device it hangs at boot. I've seen this problem with other pogoplugs (V2's) and have seen a lot of fixes for it, but couldn't find any information or fixes for the V4, specifying the boot order for U-Boot. Any help would be greatly appreciated as I wanted to get this set up for them before I left in a week.

Any help would be greatly appreciated
tascheitrum
 
Posts: 3
Joined: Wed Dec 24, 2014 9:05 pm

Re: Pogoplug V4 won't boot with hard drive attached

Postby bodhi » Thu Dec 25, 2014 12:03 am

$this->bbcode_second_pass_quote('tascheitrum', 'H')appy Holidays everyone! First off, I don't know if this is the correct forum location for this thread, if its not please tell me, and I can delete/move it to the correct topic.

I figured I'd set up a samba share for my parents while I was home with a pogoplug V4. I have everything running smoothly with ALARM and an 8GB flash drive (plugged into the top USB port) as the root file system, using http://archlinuxarm.org/platforms/armv5 ... g-series-4 instructions. But when i have a hard drive plugged another USB slot, and reboot the device it hangs at boot. I've seen this problem with other pogoplugs (V2's) and have seen a lot of fixes for it, but couldn't find any information or fixes for the V4, specifying the boot order for U-Boot. Any help would be greatly appreciated as I wanted to get this set up for them before I left in a week.

Any help would be greatly appreciated


To ensure booting the correct drive, you will need to use initrd. Search the forum for posts about initrd and uInitrd. And then use a label for the rootfs (if it's not already labeled rootfs)
$this->bbcode_second_pass_code('', 'tune2fs -L rootfs /media/sdxx (where the media/sdxx is the mount letter of the rootfs)
')
and then add this arg to bootargs
$this->bbcode_second_pass_code('', 'root=LABEL=rootfs')
-bodhi
bodhi
 
Posts: 225
Joined: Sat Aug 13, 2011 10:06 am

Re: Pogoplug V4 won't boot with hard drive attached

Postby tascheitrum » Thu Dec 25, 2014 4:19 am

So i searched the forums for initrd and found this thread,
http://archlinuxarm.org/forum/viewtopic.php?f=53&t=5329&p=30106&hilit=initrd#p30106
which links to this blog post
http://mhassan.me/2012/06/27/booting-pogoplug-from-the-right-usb-disk/

But i feel like i don't have everything set up correctly, as its still not booting when hard drive is plugged in. I'm trying to figure out how to activate netconsole at boot so i can give you some of the logs.

--Edit--

I also used this tutorial to flash a new Uboot (with new parameters) to no avail http://blog.qnology.com/2014/07/hacking-pogoplug-v4-series-4-and-mobile.html (I only followed the Uboot flashing and parameters flashing part of this, as I already have a working ALARM filesystem on my USB drive, and i also made sure to only follow the instructions for a USB install, rather than booting from an SD card)

I tried it with the uboot parameters listed in the tutorial, and also with adding what you suggested to the bootargs, "root=LABEL=rootfs"
(I have the partition label set to rootfs as well)

I'm stumped, I feel like the uboot parameters aren't even being read?
tascheitrum
 
Posts: 3
Joined: Wed Dec 24, 2014 9:05 pm

Re: Pogoplug V4 won't boot with hard drive attached

Postby Socaltom » Thu Dec 25, 2014 8:48 pm

Most likely the issue is that the Thumb drive is much slower to wake up vs the HD, so it tries to boot the hard drive. My suggestion would be to make a small boot partition on the HD, and boot from there.
Tom
used to be owned by me
Pink Pogo V2, Black Pogo V3, Zyxel NAS 325 v1,
used to be Adminstrator for
Goflex net, Black V3, Black V2
Now I have a couple of raspberry pi ( 3+ and 4)
Socaltom
 
Posts: 571
Joined: Thu Apr 07, 2011 2:21 pm
Location: The left side

Re: Pogoplug V4 won't boot with hard drive attached

Postby bodhi » Fri Dec 26, 2014 9:04 pm

@tascheitrum,

If you have flashed new u-boot. The ALARM rootfs must be adjusted:

$this->bbcode_second_pass_code('', 'cat /etc/fw_env.config
# MTD device name Device offset Env. size Flash sector size Number of sectors
/dev/mtd0 0xc0000 0x20000 0x20000
')
Does the output looks like above? if not, copy that line and paste it in, comment out the old settings in case you need to restore it. And then,
$this->bbcode_second_pass_code('', 'fw_printenv
')
And if you'd like, post the list of envs here.
bodhi
 
Posts: 225
Joined: Sat Aug 13, 2011 10:06 am

Re: Pogoplug V4 won't boot with hard drive attached

Postby tascheitrum » Sun Dec 28, 2014 5:49 pm

Hi Bodhi,

I believe I already have that in the fw config but I will check when I get back. I was able to find a solution to my problem, though not optimal. It will boot from an SD card first every time (so far) so i just copied all my ALARM files onto an SD card.

I will try to still figure out the booting from a specific USB drive for the sake of fixing the problem.

Thank you for your help so far! I appreciate the responses!

--edit--

yes, i have this line in /etc/fw_env.conf
$this->bbcode_second_pass_code('', ' /dev/mtd0 0xc0000 0x20000 0x20000')

and here are my env variables

$this->bbcode_second_pass_code('', '
baudrate=115200
bootcmd=run bootcmd_usb; run bootcmd_mmc; run bootcmd_sata; reset
bootcmd_mmc=run mmc_init; run set_bootargs_mmc; run mmc_boot
bootcmd_sata=run sata_init; run set_bootargs_sata; run sata_boot;
bootcmd_usb=run usb_init; run set_bootargs_usb; run usb_boot;
bootdelay=10
console=ttyS0,115200
device=0:1
ethact=egiga0
led_error=orange blinking
led_exit=green off
led_init=green blinking
mainlineLinux=yes
mmc_boot=mw 0x800000 0 1; run mmc_load_uimage; if run mmc_load_uinitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi
mmc_init=mmc rescan
mmc_load_uimage=ext2load mmc $device 0x800000 /boot/uImage
mmc_load_uinitrd=ext2load mmc $device 0x1100000 /boot/uInitrd
mmc_root=/dev/mmcblk0p1
mtdids=nand0=orion_nand
partition=nand0,2
preboot_nc=run if_netconsole start_netconsole
rootdelay=10
rootfstype=ext3
sata_boot=mw 0x800000 0 1; run sata_load_uimage; if run sata_load_uinitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi
sata_init=ide reset
sata_load_uimage=ext2load ide $device 0x800000 /boot/uImage
sata_load_uinitrd=ext2load ide $device 0x1100000 /boot/uInitrd
sata_root=/dev/sda1
set_bootargs_mmc=setenv bootargs console=$console root=$mmc_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts
set_bootargs_sata=setenv bootargs console=$console root=$sata_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts
set_bootargs_usb=setenv bootargs console=$console root=$usb_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts
stderr=serial
stdin=serial
stdout=serial
usb_boot=mw 0x800000 0 1; run usb_load_uimage; if run usb_load_uinitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi
usb_init=usb start
usb_load_uimage=ext2load usb $device 0x800000 /boot/uImage
usb_load_uinitrd=ext2load usb $device 0x1100000 /boot/uInitrd
usb_root=/dev/sda1
ethaddr=00:25:31:04:f1:98
arcNumber=3960
machid=F78
usb_rootfstype=ext3
mtdparts=mtdparts=orion_nand:2M(u-boot),3M(uImage),3M(uImage2),8M(failsafe),112M(root)
setenv=usb_root=LABEL=rootfs rw
serverip=192.168.1.43
ipaddr=192.168.1.45
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
')
tascheitrum
 
Posts: 3
Joined: Wed Dec 24, 2014 9:05 pm

Re: Pogoplug V4 won't boot with hard drive attached

Postby bodhi » Mon Dec 29, 2014 5:43 pm

@tascheitrum,

Your envs look good for USB booting. So I would make sure to check the following:
- Boot only with USB drive attached.
- The USB drive should have only 1 partition, which should be formatted as Ext3, and labeled rootfs.
- Arch rootfs was copied or untarred to USB, while you're logging in as root user (not sudo).

bodhi
bodhi
 
Posts: 225
Joined: Sat Aug 13, 2011 10:06 am


Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 35 guests