Dockstar not booting

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

Dockstar not booting

Postby ubipa » Tue Dec 24, 2013 4:46 pm

I'm in need of some help with getting Arch to boot on a Seagate Dockstar. The device has been booting debian off a usb flash drive for awhile and I wanted to switch to Arch to use as a Plex server. It looks like uboot is working but I have been unable to get Arch to work. I followed the directions here:

http://archlinuxarm.org/platforms/armv5/seagate-dockstar

Here is the fw_printenv print out

$this->bbcode_second_pass_code('', 'Pogoplug:/usr/sbin$ /usr/sbin/fw_printenv
ethact=egiga0
bootdelay=3
baudrate=115200
mainlineLinux=yes
console=ttyS0,115200
led_init=green blinking
led_exit=green off
led_error=orange blinking
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
mtdids=nand0=orion_nand
partition=nand0,2
stdin=serial
stdout=serial
stderr=serial
rescue_installed=0
rescue_set_bootargs=setenv bootargs console=$console ubi.mtd=2 root=ubi0:rootfs ro rootfstype=ubifs $mtdparts $rescue_custom_params
rescue_bootcmd=if test $rescue_installed -eq 1; then run rescue_set_bootargs; nand read.e 0x800000 0x100000 0x400000; bootm 0x800000; else run pogo_bootcmd; fi
pogo_bootcmd=if fsload uboot-original-mtd0.kwb; then go 0x800200; fi
force_rescue=0
force_rescue_bootcmd=if test $force_rescue -eq 1 || ext2load usb 0:1 0x1700000 /rescueme 1 || fatload usb 0:1 0x1700000 /rescueme.txt 1; then run rescue_bootcmd; fi
ubifs_mtd=3
ubifs_set_bootargs=setenv bootargs console=$console ubi.mtd=$ubifs_mtd root=ubi0:rootfs rootfstype=ubifs $mtdparts $ubifs_custom_params
ubifs_bootcmd=run ubifs_set_bootargs; if ubi part data && ubifsmount rootfs && ubifsload 0x800000 /boot/uImage && ubifsload 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; fi
usb_scan=usb_scan_done=0;for scan in $usb_scan_list; do run usb_scan_$scan; if test $usb_scan_done -eq 0 && ext2load usb $usb 0x800000 /boot/uImage 1; then usb_scan_done=1; echo "Found bootable drive on usb $usb"; setenv usb_device $usb; setenv usb_root /dev/$dev; fi; done
usb_scan_list=1 2 3 4
usb_scan_1=usb=0:1 dev=sda1
usb_scan_2=usb=1:1 dev=sdb1
usb_scan_3=usb=2:1 dev=sdc1
usb_scan_4=usb=3:1 dev=sdd1
usb_device=0:1
usb_root=/dev/sda1
usb_rootdelay=10
usb_set_bootargs=setenv bootargs console=$console root=$usb_root rootdelay=$usb_rootdelay rootfstype=$usb_rootfstype $mtdparts $usb_custom_params
usb_bootcmd=run usb_init; run usb_set_bootargs; run usb_boot
usb_boot=mw 0x800000 0 1; ext2load usb $usb_device 0x800000 /boot/uImage; if ext2load usb $usb_device 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi
bootcmd=usb start; run force_rescue_bootcmd; run ubifs_bootcmd; run usb_bootcmd; usb stop; run rescue_bootcmd; run pogo_bootcmd; reset
ethaddr=00:10:75:1A:B3:D8
arcNumber=2998
usb_init=run usb_scan ; setenv usb_root LABEL=rootfs
usb_rootfstype=ext3
serverip=192.168.1.2
ipaddr=192.168.1.100
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
')

And here is the net console output from uboot:
$this->bbcode_second_pass_code('', 'Seagate FreeAgent DockStar
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... 3 USB Device(s) found
scanning bus for storage devices... 1 Storage Device(s) found
Loading file "/rescueme" from usb device 0:1 (usbda1)
** File not found /rescueme
reading /rescueme.txt

** Unable to read "/rescueme.txt" from usb 0:1 **
Creating 1 MTD partitions on "nand0":
0x000002500000-0x000020000000 : "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: 475 MiB
UBI: number of good PEBs: 3799
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: 3758
UBI: total number of reserved PEBs: 41
UBI: number of PEBs reserved for bad PEB handling: 37
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'!
Loading file "/boot/uImage" from usb device 0:1 (usbda1)
1 bytes read
Found bootable drive on usb 0:1
Loading file "/boot/uImage" from usb device 0:1 (usbda1)
2889400 bytes read
Loading file "/boot/uInitrd" from usb device 0:1 (usbda1)
** File not found /boot/uInitrd
## Booting kernel from Legacy Image at 00800000 ...
Image Name: Linux-3.1.10-22-ARCH
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2889336 Bytes = 2.8 MiB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK

Starting kernel ...')

Any help would be very appreciated. I've tried multiple flash drives and a usb HD without any luck. Checked the drives with e2fsck and no problems. I'm starting to wonder if there's an issue with the Arch package.
ubipa
 
Posts: 4
Joined: Tue Dec 24, 2013 4:39 pm

Re: Dockstar not booting

Postby hydro » Tue Dec 24, 2013 6:16 pm

The install guide is still inconsistent: An ext2 filesystem is created (step 7) but the kernel is advised to mount it as ext3 (step 4). Try the Pogoplug v2 guide instead.
VDR on DockStar / Pogoplug E02: http://linux.bplaced.net/
hydro
 
Posts: 210
Joined: Wed Jun 15, 2011 2:03 pm
Location: Germany

Re: Dockstar not booting

Postby ubipa » Tue Dec 24, 2013 6:30 pm

Happy Holidays! Thanks for the reply. I did notice the ext2 inconsistency. The USB FS was made w the journal flag. I can't figure it out. There's nothing showing up on the ip scanner and the USB activity indicator doesn't even give me a blink after uboot.
ubipa
 
Posts: 4
Joined: Tue Dec 24, 2013 4:39 pm

Re: Dockstar not booting

Postby hydro » Wed Dec 25, 2013 10:00 am

$this->bbcode_second_pass_quote('ubipa', 'T')here's nothing showing up on the ip scanner

Use static settings instead of dhcp: Mount the flash drive, backup /etc/netctl/eth0 and replace it with a static profile. Here is mine on a Pogoplug v2. Adapt to your network settings. Don't miss the last line.
$this->bbcode_second_pass_code('', '
Description='A basic static ethernet connection'
Interface=eth0
Connection=ethernet
IP=static
Address=('192.168.0.106/24')
Gateway='192.168.0.1'
DNS=('192.168.0.1')
DNSDomain="localdomain"
ExecUpPost='/usr/bin/ntpd -gq || true'
')
If you have a Linux that uses systemd you can also look at the DockStar's journal (flash drive mounted on /mnt)
$this->bbcode_second_pass_code('', 'journalctl -D /mnt/var/log/journal/')

$this->bbcode_second_pass_quote('ubipa', 't')he USB activity indicator doesn't even give me a blink after uboot.

Boot with no other USB device attached (I assume you already do so). Enable kernel netconsole. Use port 6666 as described. Kernel messages will follow after uBoot messages.
VDR on DockStar / Pogoplug E02: http://linux.bplaced.net/
hydro
 
Posts: 210
Joined: Wed Jun 15, 2011 2:03 pm
Location: Germany

Re: Dockstar not booting

Postby ubipa » Wed Dec 25, 2013 3:30 pm

Thanks for the reply! Merry Xmas... if you celebrate it!

It took me a bit to figure out how to setup netconsole in the kernel.

Here's the output:

$this->bbcode_second_pass_code('', '[ 17.458949] netconsole: network logging started
[ 17.463588] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[ 17.470209] Waiting 10sec before mounting root device...
[ 27.478902] VFS: Cannot open root device "LABEL=rootfs" or unknown-block(0,0)
[ 27.486095] Please append a correct "root=" boot option; here are the available partitions:
[ 27.494539] 0800 3910656 sda driver: sd
[ 27.499240] 0801 3909317 sda1 00000000-0000-0000-0000-000000000000
[ 27.506355] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[ 27.514714] [<c000d290>] (unwind_backtrace+0x0/0xe0) from [<c03d2b34>] (panic+0x58/0x198)
[ 27.522975] [<c03d2b34>] (panic+0x58/0x198) from [<c0539c2c>] (mount_block_root+0x230/0x280)
[ 27.531571] [<c0539c2c>] (mount_block_root+0x230/0x280) from [<c0539f3c>] (prepare_namespace+0x160/0x1c0)
[ 27.541225] [<c0539f3c>] (prepare_namespace+0x160/0x1c0) from [<c05398c8>] (kernel_init+0x11c/0x14c)
[ 27.550441] [<c05398c8>] (kernel_init+0x11c/0x14c) from [<c000945c>] (kernel_thread_exit+0x0/0x8)')

It looks like the kernel isn't booting. Any help on how I would append a boot option and why it wouldn't be able to mount the root file system?
ubipa
 
Posts: 4
Joined: Tue Dec 24, 2013 4:39 pm

Re: Dockstar not booting

Postby hydro » Wed Dec 25, 2013 4:22 pm

I must admit I didn't look too closely to the output of fw_printenv in your first posting.
$this->bbcode_second_pass_code('', '
usb_init=run usb_scan ; setenv usb_root LABEL=rootfs
')
If you do change the usb_root variable like that then a) the flash drive's root filesystem must be labeled rootfs and b) there must be an initial ramdisk, because the kernel itself cannot detect a device by label. By default Arch Linux ARM does not provide a uInitrd and netconsole output tells me you didn't create one. What can we do?

Solution A: reset uBoot environment
- boot the original Linux residing in the NAND (or boot Debian)
- reset usb_init using fw_setenv usb_init 'run usb_scan'
- shutdown, then boot with the ALARM flash drive attached

Solution B: get missing uInitrd
- fetch the uInitrd I created a few weeks ago and place it in the directory /boot on the flash drive (next to uImage).
- unmout, then label the flash drives's filesystem using tune2fs -L rootfs /dev/sdx1 (replace x)
- boot DockStar with the ALARM flash drive attached

You can later create your own uInitrd as described here.
VDR on DockStar / Pogoplug E02: http://linux.bplaced.net/
hydro
 
Posts: 210
Joined: Wed Jun 15, 2011 2:03 pm
Location: Germany

Re: Dockstar not booting

Postby ubipa » Wed Dec 25, 2013 5:13 pm

That did the trick, thanks!! It was a remnant of running my previous debian setup. I appreciate the help.

Kernel Netconsole output:

[code][ 14.350788] netconsole: network logging started
[ 14.355427] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[ 14.362083] Waiting 10sec before mounting root device...
[ 24.369327] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[ 24.429586] EXT4-fs (sda1): recovery complete
[ 24.435574] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[ 24.443350] VFS: Mounted root (ext3 filesystem) on device 8:1.
[ 24.453369] devtmpfs: mounted
[ 24.457023] Freeing init memory: 172K
[ 24.988014] systemd[1]: systemd 204 running in system mode. (+PAM -LIBWRAP -AUDIT -SELINUX -IMA -SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ)
[ 25.069596] systemd[1]: Inserted module 'autofs4'
[ 25.122469] NET: Registered protocol family 10
[ 25.130790] systemd[1]: Inserted module 'ipv6'
[ 25.137120] systemd[1]: Set hostname to <alarm>./code]
ubipa
 
Posts: 4
Joined: Tue Dec 24, 2013 4:39 pm


Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 55 guests