Boot from USB while Sata connected

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

Boot from USB while Sata connected

Postby dew024 » Tue Jan 15, 2013 10:01 pm

hey guys,

i have a problem with booting my goflex from usb while sata is connected.
uboot is working fine. it's choose the usb stick, found the kernel and boot

nc log:
$this->bbcode_second_pass_quote('', '
')U-Boot 2010.09 (Feb 16 2011 - 18:42:02)
UBIT v0.6 by Jeff Doozan and Peter Carmichael
(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... 1 Storage Device(s) found
Hit any key to stop autoboot: 0
UBIFS error (pid 0): ubifs_get_sb: cannot open "ubi:fast", error -19
Error reading superblock on volume 'ubi:fast'!
UBIFS not mounted, use ubifs mount to mount volume first!
Loading file "/boot/uImage" from usb device 0:1 (usbda1)
2869588 bytes read
Loading file "/uInitrd" from usb device 0:1 (usbda1)
** File not found /uInitrd
Loading file "/boot/uInitrd" from usb device 0:1 (usbda1)
** File not found /boot/uInitrd
## Booting kernel from Legacy Image at 00680000 ...
Image Name: Linux-3.1.10-15-ARCH
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2869524 Bytes = 2.7 MiB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK

Starting kernel ...


the kernel gets panic. i think it's because the kernel mounts sata disk befor usb stick and expecting rootfs on first sata disk.

nc log:
$this->bbcode_second_pass_quote('', '
')[ 35.663410] Unable to handle kernel paging request at virtual address 00303030
[ 35.670694] pgd = c0004000
[ 35.673450] [00303030] *pgd=00000000
[ 35.677074] Internal error: Oops: 5 [#1] PREEMPT
[ 35.681713] Modules linked in:
[ 35.684792] CPU: 0 Not tainted (3.1.10-15-ARCH #1)
[ 35.689959] PC is at mount_block_root+0x200/0x280
[ 35.694690] LR is at mount_block_root+0x1e0/0x280
[ 35.846204] [<c0021a48>] (do_exit+0x88/0x7a0) from [<c000b8e0>] (die+0x1d4/0x200)
[ 35.853762] [<c000b8e0>] (die+0x1d4/0x200) from [<c03cc4ac>] (__do_kernel_fault.part.2+0x54/0x74)
[ 35.862708] [<c03cc4ac>] (__do_kernel_fault.part.2+0x54/0x74) from [<c03d3c58>] (do_page_fault.part.3+0x274/0x2b0)
[ 35.873145] [<c03d3c58>] (do_page_fault.part.3+0x274/0x2b0) from [<c03d3cc0>] (do_page_fault+0x2c/0x94)
[ 35.882621] [<c03d3cc0>] (do_page_fault+0x2c/0x94) from [<c00083cc>] (do_DataAbort+0x34/0x98)
[ 35.891218] [<c00083cc>] (do_DataAbort+0x34/0x98) from [<c03d2478>] (__dabt_svc+0x38/0x60)
[ 35.899545] Exception stack(0xc7829f38 to 0xc7829f80)
[ 35.904647] 9f20: 00000039 c049f418



usb stick is labeld as rootfs
booting without the sata disc connected works.
ideas how to fix?
dew024
 
Posts: 1
Joined: Tue Jan 15, 2013 9:46 pm

Re: Boot from USB while Sata connected

Postby WarheadsSE » Tue Jan 15, 2013 10:23 pm

Probably a naming convention problem. By the time it is booted, it looks like /dev/sda1 is the sata disk. I don't remember which uboot environment bit needs setting, but it should be moved to /dev/sdb1
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Boot from USB while Sata connected

Postby moonman » Tue Jan 15, 2013 10:26 pm

Is your sata hdd labeled "rootfs". If so, you will have to remove this label from it.

If you want to be able to boot from sata, and from USB when it's inserted without removing your sata, read through viewtopic.php?f=18&t=3355 , The issue is addressed there and partition label is not hardcoded into initrd anymore.
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: Boot from USB while Sata connected

Postby moonman » Tue Jan 15, 2013 10:28 pm

$this->bbcode_second_pass_quote('WarheadsSE', 'P')robably a naming convention problem. By the time it is booted, it looks like /dev/sda1 is the sata disk. I don't remember which uboot environment bit needs setting, but it should be moved to /dev/sdb1


I don't think it works with Ubit becuase it has initrd and uses "label" (hardcoded into initrd) to choose rootfs partition.
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
Top

Re: Boot from USB while Sata connected

Postby WarheadsSE » Wed Jan 16, 2013 12:39 am

You're missing the point of what I am saying then. Because it has a line about if usb1 then /dev/sda1
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: Baidu [Spider] and 7 guests