goflex home - don't start from harddisk

This forum is for topics dealing with problems with software specifically in the ARMv5 repo.

goflex home - don't start from harddisk

Postby hdhwx42 » Sun Feb 14, 2016 11:28 am

Hello all,
Arch Linux doesn't start from harddisk.

I installed ArchLinux on my GoFlexHome for a few years. At that time the installation from scratch worked fine.
I've used my GoFlex Home as backup-server.
For a few days the harddisk dies. Now I try to install Archlinux on a new harddisk -- 3TB.

I created a RescueUSB:
* the Goflex home boots with the flashdrive (with or without harddrive plugged in)
* LED is green
* ssh works fine

1) I used this instruction: http://archlinuxarm.org/support/reinstallation
2) I installed ArchLinux: http://archlinuxarm.org/os/ArchLinuxARM-kirkwood-latest.tar.gz more than one time - but archlinux doesn't boot from the harddisk -- LED ist green blinking
3) unfortunately -- my frustiating level arised and I did the installation documented here: http://archlinuxarm.org/platforms/armv5/seagate-goflex-home and downloaded and flashed the U-Boot again.
4) but nothing changes -- LED ist still blinking.

I have no serial hardware -- and I'm not firm enough to setup netconsole -- I don't want brick my Goflex Home.
May someone can help.
Thanks in advance
hdhwx42
 
Posts: 6
Joined: Sun Feb 14, 2016 11:05 am

Re: goflex home - don't start from harddisk

Postby wobble » Sun Feb 14, 2016 12:52 pm

I don't own a GFH, but the TLDR of what I understand from this thread is: The installation instructions install an old version of uboot that can't handle disks > 2 TB so you have to upgrade uboot before it will boot from the hd.
wobble
 
Posts: 31
Joined: Fri Dec 04, 2015 2:15 pm

Re: goflex home - don't start from harddisk

Postby hdhwx42 » Sun Feb 14, 2016 6:07 pm

Hi wobble,

thanks for your info.

Due to this I updated to U-Boot 2015.10-1: http://www.luthiano.com/Instalando-Arch-Linux-ARM-no-Seagate-GoFlex-Home/.

After reboot the LED switched to solid GREEN.
But I cannot find the GoFlexHome in my LAN.

The boot process looks like this:
a) LED flashes GREEN
b) after a while LED ist ORANGE (approx. 1sec)
c) then LED is solid GREEN
d) and the WHITE LED flashes a little bit and goes out

The boot process is the same either harddrive or USBstick is inserted.

My situation is more bad, isn't it?

Thanks for help.
hdhwx42
 
Posts: 6
Joined: Sun Feb 14, 2016 11:05 am

Re: goflex home - don't start from harddisk

Postby hecatae » Sun Feb 21, 2016 10:11 am

@hdhwx42

can you install the rescue system, see viewtopic.php?f=30&t=8383
hecatae
 
Posts: 32
Joined: Tue Nov 18, 2014 9:17 pm

Re: goflex home - don't start from harddisk

Postby hdhwx42 » Sun Mar 06, 2016 11:13 am

Hello all,

sorry for my late reply. Ich ordered a serial cable and got it last friday.
Now I have access to the serial interface. I can see the boot process but have no idea what is going wrong (see ERRORs) and how I can solve the problem -- hope somebody can help.

Regards
hdhwx42

a) First the info about the firmware:
$this->bbcode_second_pass_quote('', '
')U-Boot 2015.10-1 (Nov 28 2015 - 01:54:16 -0700) Arch Linux ARM
Seagate GoFlex Home

SoC: Kirkwood 88F6281_A1
DRAM: 128 MiB (ECC not enabled)
WARNING: Caches not enabled
NAND: 256 MiB
In: serial
Out: serial
Err: serial
Net: egiga0
88E1116 Initialized on egiga0
IDE: Bus 0: ..OK Bus 1: not available
Device 0: Model: HGST HDN724030ALE640 Firm: MJ8OA5E0 Ser#: PK1234P9J6PJEX
Type: Hard Disk
Supports 48-bit addressing
Capacity: 2861588.4 MB = 2794.5 GB (5860533168 x 512)
No link on egiga0
ping failed; host 10.10.10.5 is not alive
Hit any key to stop autoboot: 0
GoFlexHome>



b) Second the rest of the boot process:
$this->bbcode_second_pass_quote('', '
')starting USB...
USB0: USB EHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found

Reset IDE: Bus 0: OK Bus 1: not available
Device 0: Model: HGST HDN724030ALE640 Firm: MJ8OA5E0 Ser#: PK1234P9J6PJEX
Type: Hard Disk
Supports 48-bit addressing
Capacity: 2861588.4 MB = 2794.5 GB (5860533168 x 512)

USB device 0: unknown device

IDE device 0: Model: HGST HDN724030ALE640 Firm: MJ8OA5E0 Ser#: PK1234P9J6PJEX
Type: Hard Disk
Supports 48-bit addressing
Capacity: 2861588.4 MB = 2794.5 GB (5860533168 x 512)
... is now current device
ide found on device 0
Checking for: /boot/uEnv.txt ...
** File not found /boot/zImage **
4549504 bytes read in 707 ms (6.1 MiB/s)
loading /boot/dtbs/kirkwood-goflexhome.dtb ...
** File not found /boot/dtbs/kirkwood-goflexhome.dtb **
2624408 bytes read in 405 ms (6.2 MiB/s)
Booting uImage with initrd
## Booting kernel from Legacy Image at 00810000 ...
Image Name: Linux-4.4.1-1-ARCH
Created: 2016-02-02 14:06:13 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 4549440 Bytes = 4.3 MiB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
Loading Kernel Image ... OK

Starting kernel ...

[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 4.4.1-1-ARCH (builduser@leming) (gcc version 5.3.0 (GCC) ) #1 PREEMPT Tue Feb 2 07:05:54 MST 2016
[ 0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[ 0.000000] CPU: VIVT data cache, VIVT instruction cache
[ 0.000000] Machine: Seagate GoFlex Home
[ 0.000000] Memory policy: Data cache writeback
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32480
[ 0.000000] Kernel command line: console=ttyS0,115200 mtdparts=orion_nand:1M(u-boot),-(rootfs) root=PARTUUID=00000000-01 rw rootwait
[ 0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Memory: 117192K/131072K available (6548K kernel code, 545K rwdata, 1868K rodata, 300K init, 725K bss, 13880K reserved, 0K cma-reserved)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ 0.000000] vmalloc : 0xc8800000 - 0xff800000 ( 880 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xc8000000 ( 128 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .text : 0xc0008000 - 0xc08404b8 (8418 kB)
[ 0.000000] .init : 0xc0841000 - 0xc088c000 ( 300 kB)
[ 0.000000] .data : 0xc088c000 - 0xc09147ec ( 546 kB)
[ 0.000000] .bss : 0xc09147ec - 0xc09c9d18 ( 726 kB)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] Build-time adjustment of leaf fanout to 32.
[ 0.000000] NR_IRQS:114
[ 0.000014] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[ 14.006173] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[ 14.006360] Console: colour dummy device 80x30
[ 14.006386] Calibrating delay loop... 1191.11 BogoMIPS (lpj=5955584)
[ 14.096259] pid_max: default: 32768 minimum: 301
[ 14.096350] Security Framework initialized
[ 14.096420] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 14.096437] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 14.097164] Initializing cgroup subsys io
[ 14.097198] Initializing cgroup subsys memory
[ 14.097247] Initializing cgroup subsys devices
[ 14.097272] Initializing cgroup subsys freezer
[ 14.097292] Initializing cgroup subsys net_cls
[ 14.097309] Initializing cgroup subsys perf_event
[ 14.097328] Initializing cgroup subsys net_prio
[ 14.097406] CPU: Testing write buffer coherency: ok
[ 14.097869] Setting up static identity map for 0x81e0 - 0x8238
[ 14.099770] devtmpfs: initialized
[ 14.102115] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 14.102534] pinctrl core: initialized pinctrl subsystem
[ 14.103278] NET: Registered protocol family 16
[ 14.103770] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 14.126263] cpuidle: using governor ladder
[ 14.156260] cpuidle: using governor menu
[ 14.156438] Kirkwood: MV88F6281-A1, TCLK=200000000.
[ 14.156464] Feroceon L2: Enabling L2
[ 14.156503] Feroceon L2: Cache support initialised.
[ 14.197717] vgaarb: loaded
[ 14.198043] SCSI subsystem initialized
[ 14.198531] usbcore: registered new interface driver usbfs
[ 14.198607] usbcore: registered new interface driver hub
[ 14.198666] usbcore: registered new device driver usb
[ 14.198816] pps_core: LinuxPPS API ver. 1 registered
[ 14.198826] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 14.198858] PTP clock support registered
[ 14.199933] clocksource: Switched to clocksource orion_clocksource
[ 14.238419] FS-Cache: Loaded
[ 14.251514] NET: Registered protocol family 2
[ 14.252318] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 14.252347] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 14.252366] TCP: Hash tables configured (established 1024 bind 1024)
[ 14.252441] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 14.252464] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 14.252661] NET: Registered protocol family 1
[ 14.252991] RPC: Registered named UNIX socket transport module.
[ 14.253003] RPC: Registered udp transport module.
[ 14.253010] RPC: Registered tcp transport module.
[ 14.253016] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 14.253312] Trying to unpack rootfs image as initramfs...
[ 14.457060] Freeing initrd memory: 2564K (c1100000 - c1381000)
[ 14.458911] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 14.471730] VFS: Disk quotas dquot_6.6.0
[ 14.471994] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 14.474033] FS-Cache: Netfs 'nfs' registered for caching
[ 14.474961] NFS: Registering the id_resolver key type
[ 14.475018] Key type id_resolver registered
[ 14.475028] Key type id_legacy registered
[ 14.475122] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[ 14.476437] fuse init (API version 7.23)
[ 14.478679] aufs 4.4-20160118
[ 14.484040] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[ 14.484063] io scheduler noop registered
[ 14.484076] io scheduler deadline registered
[ 14.484359] io scheduler cfq registered
[ 14.484618] io scheduler bfq registered (default)
[ 14.484626] BFQ I/O-scheduler: v7r11
[ 14.484834] mv_xor mv_xor.0: Marvell shared XOR driver
[ 14.521222] mv_xor mv_xor.0: Marvell XOR (Registers Mode): ( xor cpy )
[ 14.521469] mv_xor mv_xor.1: Marvell shared XOR driver
[ 14.561177] mv_xor mv_xor.1: Marvell XOR (Registers Mode): ( xor cpy )
[ 14.566766] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 14.567864] console [ttyS0] disabled
[ 14.587994] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33, base_baud = 12500000) is a 16550A
[ 15.152437] console [ttyS0] enabled
[ 15.171801] brd: module loaded
[ 15.182573] loop: module loaded
[ 15.186098] sata_mv sata_mv.0: cannot get optional clkdev
[ 15.191701] sata_mv sata_mv.0: slots 32 ports 1
[ 15.197969] scsi host0: sata_mv
[ 15.201530] ata1: SATA max UDMA/133 irq 21
[ 15.206377] nand: device found, Manufacturer ID: 0x98, Chip ID: 0xda
[ 15.212908] nand: Toshiba NAND 256MiB 3,3V 8-bit
[ 15.217552] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[ 15.225184] Scanning device for bad blocks
[ 15.447247] 2 cmdlinepart partitions found on MTD device orion_nand
[ 15.453556] Creating 2 MTD partitions on "orion_nand":
[ 15.458724] 0x000000000000-0x000000100000 : "u-boot"
[ 15.464236] 0x000000100000-0x000010000000 : "rootfs"
[ 15.482879] libphy: orion_mdio_bus: probed
[ 15.487106] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[ 15.719963] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[ 15.759994] ata1.00: ATA-8: HGST HDN724030ALE640, MJ8OA5E0, max UDMA/133
[ 15.766729] ata1.00: 5860533168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[ 15.849996] ata1.00: configured for UDMA/133
[ 15.880287] scsi 0:0:0:0: Direct-Access ATA HGST HDN724030AL A5E0 PQ: 0 ANSI: 5
[ 15.889398] sd 0:0:0:0: [sda] 5860533168 512-byte logical blocks: (3.00 TB/2.72 TiB)
[ 15.897587] sd 0:0:0:0: Attached scsi generic sg0 type 0
[ 15.909955] sd 0:0:0:0: [sda] 4096-byte physical blocks
[ 15.920188] sd 0:0:0:0: [sda] Write Protect is off
[ 15.930031] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 15.966730] sda: sda1 sda2
[ 15.981066] sd 0:0:0:0: [sda] Attached SCSI disk
[ 16.649848] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:10:75:2f:14:27
[ 16.658773] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 16.665358] ehci-pci: EHCI PCI platform driver
[ 16.669891] ehci-orion: EHCI orion driver
[ 16.674024] orion-ehci orion-ehci.0: EHCI Host Controller
[ 16.679475] orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
[ 16.687241] orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
[ 16.709965] orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
[ 16.716908] hub 1-0:1.0: USB hub found
[ 16.720762] hub 1-0:1.0: 1 port detected
[ 16.725429] usbcore: registered new interface driver uas
[ 16.730953] usbcore: registered new interface driver usb-storage
[ 16.737037] usbcore: registered new interface driver ums-alauda
[ 16.743083] usbcore: registered new interface driver ums-cypress
[ 16.749164] usbcore: registered new interface driver ums-datafab
[ 16.755275] usbcore: registered new interface driver ums_eneub6250
[ 16.761566] usbcore: registered new interface driver ums-freecom
[ 16.767652] usbcore: registered new interface driver ums-isd200
[ 16.773673] usbcore: registered new interface driver ums-jumpshot
[ 16.779837] usbcore: registered new interface driver ums-karma
[ 16.785763] usbcore: registered new interface driver ums-onetouch
[ 16.791974] usbcore: registered new interface driver ums-realtek
[ 16.798056] usbcore: registered new interface driver ums-sddr09
[ 16.804076] usbcore: registered new interface driver ums-sddr55
[ 16.810092] usbcore: registered new interface driver ums-usbat
[ 16.816374] mousedev: PS/2 mouse device common for all mice
[ 16.822543] rtc-mv rtc-mv: rtc core: registered rtc-mv as rtc0
[ 16.828508] i2c /dev entries driver
[ 16.832645] sdhci: Secure Digital Host Controller Interface driver
[ 16.838848] sdhci: Copyright(c) Pierre Ossman
[ 16.843330] sdhci-pltfm: SDHCI platform and OF driver helper
[ 16.849666] ledtrig-cpu: registered to indicate activity on CPUs
[ 16.855856] usbcore: registered new interface driver r8712u
[ 16.861734] gre: GRE over IPv4 demultiplexor driver
[ 16.866681] NET: Registered protocol family 17
[ 16.871293] Key type dns_resolver registered
[ 16.876583] registered taskstats version 1
[ 16.901626] Key type encrypted registered
[ 16.906283] console [netcon0] enabled
[ 16.910158] netconsole: network logging started
[ 16.914834] rtc-mv rtc-mv: setting system clock to 2016-03-06 11:00:27 UTC (1457262027)
[ 16.924896] Freeing unused kernel memory: 300K (c0841000 - c088c000)
:: running early hook [udev]
[ 16.983431] random: systemd-tmpfile urandom read with 13 bits of entropy available
starting version 228
:: running hook [udev]
:: Triggering uevents...
Waiting 10 seconds for device /dev/disk/by-partuuid/00000000-01 ...
ERROR: device 'PARTUUID=00000000-01' not found. Skipping fsck.
ERROR: Unable to find root device 'PARTUUID=00000000-01'.
You are being dropped to a recovery shell
Type 'exit' to try and continue booting
sh: can't access tty; job control turned off
hdhwx42
 
Posts: 6
Joined: Sun Feb 14, 2016 11:05 am

Re: goflex home - don't start from harddisk

Postby moonman » Sun Mar 06, 2016 8:39 pm

Fix PARTUUID on your bootable media.
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: 3387
Joined: Sat Jan 15, 2011 3:36 am

Re: goflex home - don't start from harddisk

Postby hdhwx42 » Mon Mar 07, 2016 10:59 am

Hello moonman,
yes you are right -- but how does it work?

I found this https://archlinuxarm.org/forum/viewtopic.php?f=58&t=9798&p=50505&hilit=PARTUUID#p50455.

Does this work on the recovery shell?
$this->bbcode_second_pass_code('', 'rootfs=`mount | sed -n 's/^\([^ ]*\).* \/ .*/\1/p'`
rootuuid=`blkid $rootfs | sed -n 's/^.*\(PARTUUID=\)\"\(.*\)\"$/\1\2/p'`
echo root=${rootuuid} > /boot/uEnv.txt')

Thanks for your advice.

Regards
hdhwx42
hdhwx42
 
Posts: 6
Joined: Sun Feb 14, 2016 11:05 am

Re: goflex home - don't start from harddisk

Postby hdhwx42 » Mon Mar 07, 2016 3:37 pm

And I found this:

http://thedaneshproject.com/posts/find-partition-uuid-arch-linux/

I'll try this and will give feedback.

Regards
hdhwx42
 
Posts: 6
Joined: Sun Feb 14, 2016 11:05 am

Re: goflex home - don't start from harddisk

Postby moonman » Mon Mar 07, 2016 5:53 pm

There was a thread on this forum somewhere. PARTUUID is not the same thing as UUID. Your PARTUUID is messed up as it cannot be all zeroes. One way to fix is to fix PARTUUID by using fdisk advanced menu, second is to add UUID in uEnv.txt
e.g.
$this->bbcode_second_pass_quote('', 'r')oot=UUID=xxxxxxxxxxxxx

The problem with the second way is that uboot will not detect UUID change if you ever decide to change your bootable drive.
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: 3387
Joined: Sat Jan 15, 2011 3:36 am
Top

Re: goflex home - don't start from harddisk

Postby summers » Wed Mar 09, 2016 10:00 pm

Woah, my code apearing else where :) My command will typically only work once you have got inside a linux os ... or more specifically it sets up root to be the root file system of the linux you are currently in. So its only useful if you have found a way of booting into the standard arch linux os ... mind you, if you know your root partition, and just set the first line to that, the second will give what you need in uEnv.txt

As you have access to the uart, you should (I think) be able to do:

set root /dev/sdan

Where n is is your root parition, so probably

set root /dev/sda1
or
set root /dev/sda2

You'll need to interupt uboot to type it.

Then to boot - hmm tries to remeber what it set to on your uboot, probably bootcmd, or maybe startboot.
summers
 
Posts: 984
Joined: Sat Sep 06, 2014 12:56 pm

Next

Return to ARMv5

Who is online

Users browsing this forum: No registered users and 23 guests