[Solved]Seagate GoFlex Failed after installing the ArchLinux

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

[Solved]Seagate GoFlex Failed after installing the ArchLinux

Postby tomkuang » Sat Aug 08, 2020 6:21 am

Hi Group

I was so bored during this pandemic thing so decided to do sth that I wanted to do but never had chance, to re-arrange my family photos. There I came to the old GoFlex Home and found its USB port supports only limited file format. Long story short, I decided to install a proper linux on it. Everything went smooth until reboot. After reboot, nothing happened, only blinking green lights. I hooked it up with a serial cable, and tried the method in this posthttps://archlinuxarm.org/forum/viewtopic.php?f=53&t=14482&sid=35991b54c7fdc4feddd2c1c4935378b2#p63671. It seems like I successfully write the NAND and set the MAC correctly following the post. However, the unit still won't start. It displays this after reboot:

Code: Select all
U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:21:31 -0700)
Seagate GoFlex Home

SoC:   Kirkwood 88F6281_A1
DRAM:  128 MiB
WARNING: Caches not enabled
NAND:  256 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
88E1116 Initialized on egiga0
Hit any key to stop autoboot:  3  2  1  0

Reset IDE: Bus 0: ….OK Bus 1: not available 
  Device 0: Model: ST2000DL003-9VT166 Firm: CC98 Ser#: 5YD45PSQ
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1907729.0 MB = 1863.0 GB (3907029168 x 512)
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

Partition Map for IDE device 0  —   Partition Type: DOS

Part   Start Sector   Num Sectors   UUID      Type
  1   63           39086082     00000000-01   83
  2   39086145     3867937920   00000000-02   83
## Unknown partition table type 0
Attempting to boot from usb 0:1…
** Bad device usb 0 **
Checking if uenvcmd is set …
Running default loadzimage …
** Bad device usb 0 **
Running default loaduimage …
** Bad device usb 0 **


printenv
Code: Select all
GoFlexHome> printenv
baudrate=115200
bootcmd=ide reset; usb start; setenv letter 9;for type in ide usb; do for disk in 0; do if ${type} part ${disk};then setexpr letter $letter + 1;run load;fi;done;done;
bootdelay=3
bootm=echo Booting from ${disk} …; run setargs; bootm ${loadaddr};
bootz=echo Booting from ${disk} …; run setargs; bootz ${loadaddr} - ${fdt_addr};
console=ttyS0
ethact=egiga0
ethaddr=00:10:20:30:40:50
fdt_addr=0x800000
fdt_file=/boot/dtbs/kirkwood-goflexnet.dtb
fileaddr=800000
filesize=80000
importbootenv=echo Importing environment (uEnv.txt)…; env import -t $loadaddr $filesize
letter=a
load=echo Attempting to boot from ${type} ${disk}:1…;if run loadbootenv; then run importbootenv;fi;echo Checking if uenvcmd is set …;if test -n $uenvcmd; then echo Running uenvcmd …;run uenvcmd;fi;echo Running default loadzimage …;if run loadzimage; then run loadfdt;run bootz;fi;echo Running default loaduimage …;if run loaduimage; then run bootm;fi;
loadaddr=0x810000
loadbootenv=load ${type} ${disk}:1 ${loadaddr} /boot/uEnv.txt
loadfdt=load ${type} ${disk}:1 ${fdt_addr} ${fdt_file}
loaduimage=load ${type} ${disk}:1 ${loadaddr} ${uimage}
loadzimage=load ${type} ${disk}:1 ${loadaddr} ${zimage}
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),-(rootfs)
setargs=setenv bootargs console=${console},${baudrate} ${optargs} root=/dev/sd${letter}1 rw rootwait ${mtdparts}
uimage=/boot/uImage
zimage=/boot/zImage

Environment size: 1479/131068 bytes
GoFlexHome>
baudrate=115200
bootcmd=ide reset; usb start; setenv letter 9;for type in ide usb; do for disk in 0; do if ${type} part ${disk};then setexpr letter $letter + 1;run load;fi;done;done;
bootdelay=3
bootm=echo Booting from ${disk} …; run setargs; bootm ${loadaddr};
bootz=echo Booting from ${disk} …; run setargs; bootz ${loadaddr} - ${fdt_addr};
console=ttyS0
ethact=egiga0
ethaddr=00:10:20:30:40:50
fdt_addr=0x800000
fdt_file=/boot/dtbs/kirkwood-goflexnet.dtb
fileaddr=800000
filesize=80000
importbootenv=echo Importing environment (uEnv.txt)…; env import -t $loadaddr $filesize
letter=a
load=echo Attempting to boot from ${type} ${disk}:1…;if run loadbootenv; then run importbootenv;fi;echo Checking if uenvcmd is set …;if test -n $uenvcmd; then echo Running uenvcmd …;run uenvcmd;fi;echo Running default loadzimage …;if run loadzimage; then run loadfdt;run bootz;fi;echo Running default loaduimage …;if run loaduimage; then run bootm;fi;
loadaddr=0x810000
loadbootenv=load ${type} ${disk}:1 ${loadaddr} /boot/uEnv.txt
loadfdt=load ${type} ${disk}:1 ${fdt_addr} ${fdt_file}
loaduimage=load ${type} ${disk}:1 ${loadaddr} ${uimage}
loadzimage=load ${type} ${disk}:1 ${loadaddr} ${zimage}
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),-(rootfs)
setargs=setenv bootargs console=${console},${baudrate} ${optargs} root=/dev/sd${letter}1 rw rootwait ${mtdparts}
uimage=/boot/uImage
zimage=/boot/zImage

Environment size: 1479/131068 bytes


any idea what should I try next?

Thanks a lot!
tomkuang
 
Posts: 7
Joined: Sat Aug 08, 2020 5:55 am

Re: Seagate GoFlex Failed after installing the ArchLinux

Postby moonman » Sat Aug 08, 2020 7:30 pm

You have bodhi's U-Boot, not ours - I'm not that familiar with it. After a quick glance through its environment it seems it should boot up ArchLinuxARM by default without issues though.

2 options:

1. Take out the SATA drive from the enclosure, hook it up to a PC running linux, create a single partition (MBR or GPT - either will work for your drive, if you do upgrade to >=3TB drive, it will have to be GPT), format with ext4 and extract http://os.archlinuxarm.org/os/ArchLinux ... est.tar.gz to it. Put it back into the enclosure and it should boot up.

2. If you don't want to take the drive out of the enclosure, you can do the same as above, but with a USB flash drive. Once you are booted off the flash drive, you can then install using the same procedure, but onto the SATA drive instead.
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: 3302
Joined: Sat Jan 15, 2011 3:36 am

Re: Seagate GoFlex Failed after installing the ArchLinux

Postby summers » Sun Aug 09, 2020 9:51 am

Strange. Looks like it can see the partitions, but not access it. In uboot you hopefully have the
Code: Select all
ext4ls
command, which means you can at least examine the partition, and see what uboot sees.

As moonman says, its probably that the partition has been incorrectly created. Did you disable the various extents you need to for uboot to access and ext4 partition, think its 64bit and one other thing you have to disable ...

Yup what you need to disable is
Code: Select all
mkfs.ext4 -O ^metadata_csum,^64bit /dev/sdX1


And make sure the whole distribution is on a single partition (e.g. your uboot env is set up, to not work with a separate boot partition).
summers
 
Posts: 870
Joined: Sat Sep 06, 2014 12:56 pm

Re: Seagate GoFlex Failed after installing the ArchLinux

Postby tomkuang » Mon Aug 10, 2020 12:24 am

Thanks! I got the USB disk and booted from it (green light stable now. However, I still can't SSH into it because I couldn't find it from my router. Monitored it's boot process through serial cable, seems like it got Kernel Panic due to "No working init found." I suspect some file got corrupted when I copy to USB. Any idea where I should change the init?

Full boot log here:

Code: Select all
U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:21:31 -0700)
Seagate GoFlex Home

SoC:   Kirkwood 88F6281_A1
DRAM:  128 MiB
WARNING: Caches not enabled
NAND:  256 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
88E1116 Initialized on egiga0
Hit any key to stop autoboot:  3  2  1  0

Reset IDE: Bus 0: ….OK Bus 1: not available 
  Device 0: Model: ST2000DL003-9VT166 Firm: CC98 Ser#: 5YD45PSQ
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1907729.0 MB = 1863.0 GB (3907029168 x 512)
starting USB…
USB0:   USB EHCI 1.00
scanning bus 0 for devices… 2 USB Device(s) found
       scanning usb for storage devices… 1 Storage Device(s) found

Partition Map for IDE device 0  —   Partition Type: DOS

Part   Start Sector   Num Sectors   UUID      Type
  1   63           39086082     00000000-01   83
  2   39086145     3867937920   00000000-02   83

Partition Map for USB device 0  —   Partition Type: EFI

Part   Start LBA   End LBA      Name
   Attributes
   Type GUID
   Partition GUID
  1   0x00000800   0x01dcf7ff   “”
   attrs:   0x0000000000000000
   type:   0fc63daf-8483-4772-8e79-3d69d8477de4
   type:   linux
   guid:   8dbbcc8a-0a17-4a5d-abd9-854760fa9358
Attempting to boot from usb 0:1…
** File not found /boot/uEnv.txt **
Checking if uenvcmd is set …
Running default loadzimage …
** File not found /boot/zImage **
Running default loaduimage …
4623320 bytes read in 527 ms (8.4 MiB/s)
Booting from 0 …
## Booting kernel from Legacy Image at 00810000 …
   Image Name:   Linux-4.4.219-1-ARCH
   Created:      2020-04-17   6:27:50 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4623256 Bytes = 4.4 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.219-1-ARCH (builduser@leming) (gcc version 9.2.0 (GCC) ) #1 PREEMPT Fri Apr 17 06:42:50 UTC 2020
[    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 root=/dev/sda1 rw rootwait mtdparts=orion_nand:1M(u-boot),-(rootfs)
[    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: 119668K/131072K available (6618K kernel code, 548K rwdata, 1892K rodata, 296K init, 720K bss, 11404K 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 - 0xc0857b74   (8511 kB)
[    0.000000]       .init : 0xc0858000 - 0xc08a2000   ( 296 kB)
[    0.000000]       .data : 0xc08a2000 - 0xc092b2dc   ( 549 kB)
[    0.000000]        .bss : 0xc092b2dc - 0xc09df468   ( 721 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.000012] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    9.724518] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    9.724706] Console: colour dummy device 80x30
[    9.724732] Calibrating delay loop… 1191.11 BogoMIPS (lpj=5955584)
[    9.814602] pid_max: default: 32768 minimum: 301
[    9.814698] Security Framework initialized
[    9.814774] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    9.814791] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    9.815514] Initializing cgroup subsys io
[    9.815548] Initializing cgroup subsys memory
[    9.815601] Initializing cgroup subsys devices
[    9.815627] Initializing cgroup subsys freezer
[    9.815650] Initializing cgroup subsys net_cls
[    9.815672] Initializing cgroup subsys perf_event
[    9.815694] Initializing cgroup subsys net_prio
[    9.815775] CPU: Testing write buffer coherency: ok
[    9.816249] Setting up static identity map for 0x81e0 - 0x8238
[    9.818249] devtmpfs: initialized
[    9.820702] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    9.820739] futex hash table entries: 256 (order: -1, 3072 bytes)
[    9.821231] pinctrl core: initialized pinctrl subsystem
[    9.822003] NET: Registered protocol family 16
[    9.822515] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    9.844607] cpuidle: using governor ladder
[    9.874607] cpuidle: using governor menu
[    9.874796] Kirkwood: MV88F6281-A1, TCLK=200000000.
[    9.874821] Feroceon L2: Enabling L2
[    9.874859] Feroceon L2: Cache support initialised.
[    9.916123] vgaarb: loaded
[    9.916452] SCSI subsystem initialized
[    9.916952] usbcore: registered new interface driver usbfs
[    9.917028] usbcore: registered new interface driver hub
[    9.917088] usbcore: registered new device driver usb
[    9.917251] pps_core: LinuxPPS API ver. 1 registered
[    9.917261] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    9.917292] PTP clock support registered
[    9.918322] clocksource: Switched to clocksource orion_clocksource
[    9.958517] FS-Cache: Loaded
[    9.971443] NET: Registered protocol family 2
[    9.972242] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    9.972267] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    9.972287] TCP: Hash tables configured (established 1024 bind 1024)
[    9.972360] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    9.972382] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    9.972584] NET: Registered protocol family 1
[    9.972917] RPC: Registered named UNIX socket transport module.
[    9.972928] RPC: Registered udp transport module.
[    9.972935] RPC: Registered tcp transport module.
[    9.972941] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    9.987690] VFS: Disk quotas dquot_6.6.0
[    9.987950] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    9.990060] FS-Cache: Netfs ‘nfs’ registered for caching
[    9.991164] NFS: Registering the id_resolver key type
[    9.991215] Key type id_resolver registered
[    9.991224] Key type id_legacy registered
[    9.991314] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    9.992618] fuse init (API version 7.23)
[    9.994802] aufs 4.4-20170911
[   10.000337] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[   10.000361] io scheduler noop registered
[   10.000374] io scheduler deadline registered
[   10.000643] io scheduler cfq registered
[   10.000894] io scheduler bfq registered (default)
[   10.000902] BFQ I/O-scheduler: v7r11
[   10.001108] mv_xor mv_xor.0: Marvell shared XOR driver
[   10.039495] mv_xor mv_xor.0: Marvell XOR (Registers Mode): ( xor cpy )
[   10.039732] mv_xor mv_xor.1: Marvell shared XOR driver
[   10.079485] mv_xor mv_xor.1: Marvell XOR (Registers Mode): ( xor cpy )
[   10.085086] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[   10.086196] console [ttyS0] disabled
[   10.106306] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33, base_baud = 12500000) is a 16550A
[   10.658705] console [ttyS0] enabled
[   10.677870] brd: module loaded
[   10.688669] loop: module loaded
[   10.692175] sata_mv sata_mv.0: cannot get optional clkdev
[   10.697669] sata_mv sata_mv.0: slots 32 ports 1
[   10.704005] scsi host0: sata_mv
[   10.707517] ata1: SATA max UDMA/133 irq 21
[   10.712430] nand: device found, Manufacturer ID: 0x98, Chip ID: 0xda
[   10.718962] nand: Toshiba NAND 256MiB 3,3V 8-bit
[   10.723605] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[   10.731239] Scanning device for bad blocks
[   10.953229] 2 cmdlinepart partitions found on MTD device orion_nand
[   10.959540] Creating 2 MTD partitions on “orion_nand”:
[   10.964707] 0x000000000000-0x000000100000 : “u-boot”
[   10.970211] 0x000000100000-0x000010000000 : “rootfs”
[   10.982776] libphy: orion_mdio_bus: probed
[   10.986991] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[   11.228349] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[   11.268378] ata1.00: ATA-8: ST2000DL003-9VT166, CC98, max UDMA/133
[   11.274588] ata1.00: 3907029168 sectors, multi 0: LBA48
[   11.358383] ata1.00: configured for UDMA/133
[   11.388671] scsi 0:0:0:0: Direct-Access     ATA      ST2000DL003-9VT1 CC98 PQ: 0 ANSI: 5
[   11.397758] sd 0:0:0:0: [sda] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
[   11.405937] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   11.418340] sd 0:0:0:0: [sda] 4096-byte physical blocks
[   11.428571] sd 0:0:0:0: [sda] Write Protect is off
[   11.438414] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn’t support DPO or FUA
[   11.473238]  sda: sda1 sda2
[   11.479621] sd 0:0:0:0: [sda] Attached SCSI disk
[   12.145957] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:10:75:2c:22:3b
[   12.154880] ehci_hcd: USB 2.0 ‘Enhanced’ Host Controller (EHCI) Driver
[   12.161463] ehci-pci: EHCI PCI platform driver
[   12.165999] ehci-orion: EHCI orion driver
[   12.170127] orion-ehci orion-ehci.0: EHCI Host Controller
[   12.175579] orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
[   12.183345] orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
[   12.208351] orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
[   12.215300] hub 1-0:1.0: USB hub found
[   12.219151] hub 1-0:1.0: 1 port detected
[   12.223797] usbcore: registered new interface driver uas
[   12.229322] usbcore: registered new interface driver usb-storage
[   12.235409] usbcore: registered new interface driver ums-alauda
[   12.241458] usbcore: registered new interface driver ums-cypress
[   12.247545] usbcore: registered new interface driver ums-datafab
[   12.253655] usbcore: registered new interface driver ums_eneub6250
[   12.259938] usbcore: registered new interface driver ums-freecom
[   12.266021] usbcore: registered new interface driver ums-isd200
[   12.272043] usbcore: registered new interface driver ums-jumpshot
[   12.278212] usbcore: registered new interface driver ums-karma
[   12.284145] usbcore: registered new interface driver ums-onetouch
[   12.290357] usbcore: registered new interface driver ums-realtek
[   12.296438] usbcore: registered new interface driver ums-sddr09
[   12.302460] usbcore: registered new interface driver ums-sddr55
[   12.308475] usbcore: registered new interface driver ums-usbat
[   12.314757] mousedev: PS/2 mouse device common for all mice
[   12.320881] rtc-mv rtc-mv: rtc core: registered rtc-mv as rtc0
[   12.326846] i2c /dev entries driver
[   12.330955] sdhci: Secure Digital Host Controller Interface driver
[   12.337158] sdhci: Copyright(c) Pierre Ossman
[   12.341635] sdhci-pltfm: SDHCI platform and OF driver helper
[   12.347944] ledtrig-cpu: registered to indicate activity on CPUs
[   12.354135] usbcore: registered new interface driver r8712u
[   12.359996] gre: GRE over IPv4 demultiplexor driver
[   12.364945] NET: Registered protocol family 17
[   12.369578] Key type dns_resolver registered
[   12.374878] registered taskstats version 1
[   12.380872] Key type encrypted registered
[   12.385474] console [netcon0] enabled
[   12.389231] netconsole: network logging started
[   12.393891] rtc-mv rtc-mv: setting system clock to 2035-03-02 01:08:35 UTC (2056410515)
[   12.403809] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   12.459250] EXT4-fs (sda1): recovery complete
[   12.463639] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[   12.471421] VFS: Mounted root (ext3 filesystem) on device 8:1.
[   12.482071] devtmpfs: error mounting -2
[   12.486787] Freeing unused kernel memory: 296K
[   12.491362] Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
[   12.504554] CPU: 0 PID: 1 Comm: swapper Not tainted 4.4.219-1-ARCH #1
[   12.511019] Hardware name: Seagate GoFlex Home
[   12.515502] [<c000fd58>] (unwind_backtrace) from [<c000d3dc>] (show_stack+0x10/0x14)
[   12.523289] [<c000d3dc>] (show_stack) from [<c00cc95c>] (panic+0x9c/0x21c)
[   12.530204] [<c00cc95c>] (panic) from [<c064bde4>] (kernel_init+0xb4/0xe0)
[   12.537117] [<c064bde4>] (kernel_init) from [<c000a4e8>] (ret_from_fork+0x14/0x2c)
[   12.544721] —[ end Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
[   81.738342] random: nonblocking pool is initialized
tomkuang
 
Posts: 7
Joined: Sat Aug 08, 2020 5:55 am

Re: Seagate GoFlex Failed after installing the ArchLinux

Postby summers » Mon Aug 10, 2020 6:45 am

Looks like you have two partitions, I'm guessing boot and root. Anyway your root is probably sda2 but you are passing sda1. This means kernel can't find the correct filesystem.

You uboot is really set up to boot from a single root filesystem, so you should keep /boot as part of that filesystem and not a separate partition.
summers
 
Posts: 870
Joined: Sat Sep 06, 2014 12:56 pm

Re: Seagate GoFlex Failed after installing the ArchLinux

Postby tomkuang » Mon Aug 10, 2020 5:34 pm

summers wrote:Looks like you have two partitions, I'm guessing boot and root. Anyway your root is probably sda2 but you are passing sda1. This means kernel can't find the correct filesystem.

You uboot is really set up to boot from a single root filesystem, so you should keep /boot as part of that filesystem and not a separate partition.


Enlightened by what you said, I have successfully started it up by removing the hard drive (and left the USB alone to boot). Given that I can only boot it with one device, I can't do the rescue task on original HD through booted Goflex Home. The only option left is to pop the case open and reformat and copy everything on the harddisk directly.

Thanks a lot!
tomkuang
 
Posts: 7
Joined: Sat Aug 08, 2020 5:55 am

Re: Seagate GoFlex Failed after installing the ArchLinux

Postby summers » Mon Aug 10, 2020 8:39 pm

If you set root via PARTUUID then it should boot the usb even with the hdd in place...
summers
 
Posts: 870
Joined: Sat Sep 06, 2014 12:56 pm

Re: Seagate GoFlex Failed after installing the ArchLinux

Postby moonman » Tue Aug 11, 2020 6:58 am

The sata port on these is hot pluggable. You can boot up and pop the drive back in after.
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: 3302
Joined: Sat Jan 15, 2011 3:36 am

Re: Seagate GoFlex Failed after installing the ArchLinux

Postby tomkuang » Wed Aug 12, 2020 12:44 am

After numerals efforts, things went back to square one now.

Long story short, I can boot from USB with HD plugged in, or even boot from USB and then hot-plugin HD. I can even SSH into it after boot from USB. ArchLinux seems run no problem from USB. I tried different partition tools and different file systems (MBR or GPT, ext3 or ext4); I also tried different tar tools (tar,bsdtar,Apple build-in ones, etc) to extract files on to the HDD. It just won't let me boot from HDD. I almost came to a conclusion that it must be some small things that I overlooked, could be partition type, or size, or access, or something that I might just did it without even thinking. Please help!

First, here's my start log with HDD only
Code: Select all
U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:21:31 -0700)
Seagate GoFlex Home

SoC:   Kirkwood 88F6281_A1
DRAM:  128 MiB
WARNING: Caches not enabled
NAND:  256 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
88E1116 Initialized on egiga0
Hit any key to stop autoboot:  3  2  1  0

Reset IDE: Bus 0: …OK Bus 1: not available 
  Device 0: Model: ST2000DL003-9VT166 Firm: CC98 Ser#: 5YD45PSQ
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1907729.0 MB = 1863.0 GB (3907029168 x 512)
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

Partition Map for IDE device 0  —   Partition Type: DOS

Part   Start Sector   Num Sectors   UUID      Type
  1   2048         41943040     47c3842a-01   83
  2   41945088     3865084080   47c3842a-02   83
## Unknown partition table type 0
Attempting to boot from usb 0:1…
** Bad device usb 0 **
Checking if uenvcmd is set …
Running default loadzimage …
** Bad device usb 0 **
Running default loaduimage …
** Bad device usb 0 **


This leads me thinking partition wrong. Now I insert USB and type usb reset and boo. It boot from USB without problem. Now I can log into ArchLinux.

fdisk -l
Code: Select all
Disk /dev/ram0: 8 MiB, 8388608 bytes, 16384 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram1: 8 MiB, 8388608 bytes, 16384 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram2: 8 MiB, 8388608 bytes, 16384 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram3: 8 MiB, 8388608 bytes, 16384 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram4: 8 MiB, 8388608 bytes, 16384 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram5: 8 MiB, 8388608 bytes, 16384 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram6: 8 MiB, 8388608 bytes, 16384 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram7: 8 MiB, 8388608 bytes, 16384 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram8: 8 MiB, 8388608 bytes, 16384 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram9: 8 MiB, 8388608 bytes, 16384 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram10: 8 MiB, 8388608 bytes, 16384 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram11: 8 MiB, 8388608 bytes, 16384 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram12: 8 MiB, 8388608 bytes, 16384 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram13: 8 MiB, 8388608 bytes, 16384 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram14: 8 MiB, 8388608 bytes, 16384 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram15: 8 MiB, 8388608 bytes, 16384 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/sda: 1.84 TiB, 2000398934016 bytes, 3907029168 sectors
Disk model: ST2000DL003-9VT1
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x47c3842a

Device     Boot    Start        End    Sectors  Size Id Type
/dev/sda1           2048   41945087   41943040   20G 83 Linux
/dev/sda2       41945088 3907029167 3865084080  1.8T 83 Linux


Disk /dev/sdb: 14.93 GiB, 16005464064 bytes, 31260672 sectors
Disk model: Cruzer Fit     
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xaa07c8a0

Device     Boot Start      End  Sectors  Size Id Type
/dev/sdb1        2048 31260671 31258624 14.9G 83 Linux


fdisk /dev/sda1
Code: Select all
Welcome to fdisk (util-linux 2.35.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.

The device contains ‘ext3’ signature and it will be removed by a write command. See fdisk(8) man page and —wipe option for more details.

Device does not contain a recognized partition table.
Created a new DOS disklabel with disk identifier 0x606db4b2.

Command (m for help): p
Disk /dev/sda1: 20 GiB, 21474836480 bytes, 41943040 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x606db4b2


mount
Code: Select all
/dev/sda1 on / type ext3 (rw,relatime,data=ordered)
devtmpfs on /dev type devtmpfs (rw,relatime,size=59832k,nr_inodes=14958,mode=755)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,mode=755)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=29,pgrp=1,timeout=0,minproto=5,maxproto=5,direct)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
tracefs on /sys/kernel/tracing type tracefs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev)
fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)
tmpfs on /run/user/0 type tmpfs (rw,nosuid,nodev,relatime,size=11996k,mode=700)


My steps after boot were as following
1, Start fdisk to partition the SATA drive:
/sbin/fdisk /dev/sda
At the fdisk prompt, delete old partitions and create a new one:
Type o. This will clear out any partitions on the drive.
Type p to list partitions. There should be no partitions left.
Now type n, then p for primary, 1 for the first partition on the drive, and then press ENTER, to accept the default value for the beginning of the partition and +20G for the next prompt.
Create a partition for the remainder of the drive. Type n, then p for primary, 2 for the second partition on the drive, and then press ENTER to accept the rest of the default values.
Exit by typing w.
2, Create the ext3 filesystem:
chmod +x mke2fs
./mke2fs -j /dev/sda1
3, Install ArchLinux
chmod +x bsdtar
(copy pre-downloaded ArchLinuxARM-kirkwood-latest.tar.gz on it)
./bsdtar -xpf ArchLinuxARM-kirkwood-latest.tar.gz
4, Reboot
5, Back to step 1 because it won't boot :cry:

Anyone seen something unusual or need more detail?

Thanks a lot!
tomkuang
 
Posts: 7
Joined: Sat Aug 08, 2020 5:55 am

Re: Seagate GoFlex Failed after installing the ArchLinux

Postby summers » Thu Aug 13, 2020 10:20 am

As you have access to uboot, I'd be tempted just to type the commands by hand in uboot, and understand which bit is failing. So suggest boot with the just hdd installed.

Then
Code: Select all
ide reset
ext4ls ide 0:1 /
or something like that - hopefully you'll find the boot files in
Code: Select all
ext4ls ide 0:1 /boot
.

Once you have found files, load them: Kernel:
Code: Select all
load ide 0:1 ${loadaddr} /boot/zImage

Device Tree:
Code: Select all
load ide 0:1 ${fdtaddr} /boot/dtbs/kirkwood-goflexnet.dtb

Set up the root location
Code: Select all
part uuid ide 0:1 uuid
setenv root PARTUUID=${uuid}
setenv bootargs console=${console} ${mtdparts} root=${root} rw rootwait ${optargs} ${ncargs}

Initrd:
Code: Select all
load ide 0:1 ${rdaddr} /boot/initramfs-linux-img

Note, this needs to be the last command before "bootz" as it will set "${filesize}".
Then try and boot:
Code: Select all
bootz ${loadaddr} ${rdaddr}:${filesize} ${fdtaddr}

Now any of these commands could fail. When it fails - understand what has failed, then either correct the command, or correct the set up on the HDD.

This *seems* to me the easiest way of finding your problem, error messages tell a story, so thats what you need to listen to ...
summers
 
Posts: 870
Joined: Sat Sep 06, 2014 12:56 pm

Next

Return to ARMv5

Who is online

Users browsing this forum: No registered users and 3 guests