UBIT v0.6 boot from sda2

Discussion about U-Boot and the kernel.

UBIT v0.6 boot from sda2

Postby vargalex » Sat Jul 09, 2011 9:38 pm

Hi!

I have a GoFlex net device. I followed the install instructions, but I have a preformatted SATA drive. So, I installed the Arch Linux ARM linux onto the second partition (first partition is swap) reformatted as ext3 from pogoplug. After a reboot the device cannot booting up. How can I boot from the second partition?

My UBIT log:

$this->bbcode_second_pass_code('', '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... 1 USB Device(s) found
scanning bus for storage devices... 0 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!
** Block device usb 0 not supported
** Block device usb 0 not supported

** Invalid boot device **

** Invalid boot device **
** Block device usb 1 not supported
** Block device usb 1 not supported

** Invalid boot device **

** Invalid boot device **
** Block device usb 2 not supported
** Block device usb 2 not supported

** Invalid boot device **

** Invalid boot device **
** Block device usb 3 not supported
** Block device usb 3 not supported

** Invalid boot device **

** Invalid boot device **

Reset IDE: Bus 0: not available Bus 1: OK
Device 1: Model: WDC WD5000BEVT-00A0RT0 Firm: 01.01A01 Ser#: WD-WXK1E50DUL27
Type: Hard Disk
Supports 48-bit addressing
Capacity: 476940.0 MB = 465.7 GB (976773168 x 512)
** Bad partition 1 **
** Bad partition 1 **
No Powersaving mode 7F
Error (no IRQ) dev 0 blk 0: status 0x7f
** Can't read from device 0 **

** Unable to use ide 0:1 for fatload **
No Powersaving mode 7F
Error (no IRQ) dev 0 blk 0: status 0x7f
** Can't read from device 0 **

** Unable to use ide 0:1 for fatload **
Loading file "/boot/uImage" from ide device 1:1 (hdb1)
Failed to mount ext2 filesystem...
** Bad ext2 partition or disk - ide 1:1 **
Loading file "/uInitrd" from ide device 1:1 (hdb1)
Failed to mount ext2 filesystem...
** Bad ext2 partition or disk - ide 1:1 **
reading /boot/uImage

** Unable to read "/boot/uImage" from ide 1:1 **
reading /uInitrd

** Unable to read "/uInitrd" from ide 1:1 **
UBIFS error (pid 0): ubifs_get_sb: cannot open "ubi:ramdisk", error -19
Error reading superblock on volume 'ubi:ramdisk'!
UBIFS not mounted, use ubifs mount to mount volume first!
Marvell>>')
vargalex
 
Posts: 15
Joined: Tue May 03, 2011 11:15 am

Re: UBIT v0.6 boot from sda2

Postby kmihelich » Sat Jul 09, 2011 10:13 pm

Label the second partition as "rootfs" (tune2fs -L "rootfs" /dev/whatever). If that doesn't work, repartition, reformat, re-extract.
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: UBIT v0.6 boot from sda2

Postby vargalex » Sat Jul 09, 2011 10:26 pm

$this->bbcode_second_pass_quote('kmihelich', 'L')abel the second partition as "rootfs" (tune2fs -L "rootfs" /dev/whatever). If that doesn't work, repartition, reformat, re-extract.

Hi!

The label is "rootfs". I have already reformatted, checked with e2fsck. I dont know, why want the UBIT mount as ext2 partition?
vargalex
 
Posts: 15
Joined: Tue May 03, 2011 11:15 am

Re: UBIT v0.6 boot from sda2

Postby pepedog » Sat Jul 09, 2011 10:31 pm

I thought partition 1 had to be fat for fatload and contain just /boot/uImage copied from rootfs
If you need a swap, search this forum for swapon
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: UBIT v0.6 boot from sda2

Postby kmihelich » Sat Jul 09, 2011 10:33 pm

Yeah, you likely need to repartition. You can use ext3 with ubit.
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: UBIT v0.6 boot from sda2

Postby vargalex » Sat Jul 09, 2011 10:36 pm

$this->bbcode_second_pass_quote('kmihelich', 'Y')eah, you likely need to repartition. You can use ext3 with ubit.

Yes, I know. But looks so, that the system must installed on the first partition. (Works with an USB flash drive.)
Last edited by vargalex on Sat Jul 09, 2011 10:41 pm, edited 1 time in total.
vargalex
 
Posts: 15
Joined: Tue May 03, 2011 11:15 am

Re: UBIT v0.6 boot from sda2

Postby vargalex » Sat Jul 09, 2011 10:40 pm

$this->bbcode_second_pass_quote('pepedog', 'I') thought partition 1 had to be fat for fatload and contain just /boot/uImage copied from rootfs
If you need a swap, search this forum for swapon

Hi!

I can set up a swap partition (/dev/sda1), when I use an USB flash drive (/dev/sdb1) for the system. But I don't wan to repartioning (reformatting) the whole HDD.
vargalex
 
Posts: 15
Joined: Tue May 03, 2011 11:15 am
Top

Re: UBIT v0.6 boot from sda2

Postby kmihelich » Sat Jul 09, 2011 10:45 pm

If you refuse to repartition and format, you're likely stuck with booting from a flash drive then.
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: UBIT v0.6 boot from sda2

Postby pepedog » Sat Jul 09, 2011 10:48 pm

You don't need to trash whole drive, just partition 1.

Look at your ubit log
** Unable to use ide 0:1 for fatload **
Because it doesn't load that then no kernel to get ext2 working
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: UBIT v0.6 boot from sda2

Postby vargalex » Sat Jul 09, 2011 10:56 pm

$this->bbcode_second_pass_quote('pepedog', 'Y')ou don't need to trash whole drive, just partition 1.

Look at your ubit log
** Unable to use ide 0:1 for fatload **
Because it doesn't load that then no kernel to get ext2 working

Hi!

Yes, this can be a solution. But why should be the label of the boot partition "rootfs", if the system can boot only from the first partition (I understand only, when I more then one drive have)?
vargalex
 
Posts: 15
Joined: Tue May 03, 2011 11:15 am
Top

Next

Return to U-Boot/Kernel

Who is online

Users browsing this forum: No registered users and 4 guests