Welcome! Log In Create A New Profile

Advanced

GoFlexHome RIP

Posted by balanga 
GoFlexHome RIP
December 04, 2017 09:24AM
After attempting to update the environment on my GoFlexHome today I ran reboot from the Debian command prompt hoping to see the new environment when it restarted.... but it never did...the green LED never restarted flashing so I guess the unit is dead.

Any ideas on whether it is salvageable?
Re: GoFlexHome RIP
December 04, 2017 01:47PM
If you have sata and USB, and your system is on USB, give it some time, maybe a few hours, system is busy fscking.



Edited 1 time(s). Last edit at 12/04/2017 01:47PM by daviddyer.
Re: GoFlexHome RIP
December 04, 2017 02:18PM
It seems as though the system had gone into some deep sleep... In desperation I tried running

./kwboot -d -t -B 115200 /dev/cuaU0 -b uboot.2017.05-tld-2.goflexhome.mtd0.kwb -p

and lo and behold my GoFlexHome unit sparked into life after the image had been successfully downloaded...
Sending boot image...
  0 % [......................................................................]
  1 % [......................................................................]
  3 % [......................................................................]
  5 % [......................................................................]
  6 % [......................................................................]
  8 % [......................................................................]
 10 % [......................................................................]
 11 % [......................................................................]
 13 % [......................................................................]
 15 % [......................................................................]
 17 % [......................................................................]
 18 % [......................................................................]
 20 % [......................................................................]
 22 % [......................................................................]
 23 % [......................................................................]
 25 % [......................................................................]
 27 % [......................................................................]
 29 % [......................................................................]
 30 % [......................................................................]
 32 % [......................................................................]
 34 % [......................................................................]
 35 % [......................................................................]
 37 % [......................................................................]
 39 % [......................................................................]
 41 % [......................................................................]
 42 % [......................................................................]
 44 % [......................................................................]
 46 % [......................................................................]
 47 % [......................................................................]
 49 % [......................................................................]
 51 % [......................................................................]
 53 % [......................................................................]
 54 % [......................................................................]
 56 % [......................................................................]
 58 % [......................................................................]
 59 % [......................................................................]
 61 % [......................................................................]
 63 % [......................................................................]
 64 % [......................................................................]
 66 % [......................................................................]
 68 % [......................................................................]
 70 % [......................................................................]
 71 % [......................................................................]
 73 % [......................................................................]
 75 % [......................................................................]
 76 % [......................................................................]
 78 % [......................................................................]
 80 % [......................................................................]
 82 % [......................................................................]
 83 % [......................................................................]
 85 % [......................................................................]
 87 % [......................................................................]
 88 % [......................................................................]
 90 % [......................................................................]
 92 % [......................................................................]
 94 % [......................................................................]
 95 % [......................................................................]
 97 % [......................................................................]
 99 % [....................................]
[Type Ctrl-\ + c to quit]


U-Boot 2017.05-tld-2 (Jul 26 2017 - 02:37:42 -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: 10  0 
GoFlexHome> printenv
api_address=7b12860
arcNumber=3338
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec
bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm $load_uimage_addr; fi; fi
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdelay=10
bootdev=usb
device=0:1
devices=usb ide mmc
disks=0 1 2 3
dtb_file=/boot/dts/kirkwood-goflexhome.dtb
ethact=egiga0
ethaddr=00:10:75:2E:AE:0F
if_netconsole=ping $serverip
ipaddr=192.168.1.23
led_error=orange blinking
led_exit=green off
led_init=green blinking
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file
load_dtb_addr=0x1c00000
load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd
load_initrd_addr=0x1100000
load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage
load_uimage_addr=0x800000
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
mtpparts=orion_nand:1M(u-boot),-(rootfs)
partition=nand0,2
preboot_nc=run if_netconsole start_netconsole
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start";  setenv scan_ide "ide reset";  setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done
serverip=192.168.1.55
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
stderr=serial
stdin=serial
stdout=serial
uenv_addr=0x810000
uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize
uenv_init_devices=setenv init_usb "usb start";  setenv init_ide "ide reset";  setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done;
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices;  do for disknum in 0; do run uenv_read_disk; done; done;
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi
uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read;  fi; else if $devtype part $disknum; then run uenv_read; fi;  fi
usb_ready_retry=15

Environment size: 2910/131068 bytes
GoFlexHome> 
Re: GoFlexHome RIP
December 04, 2017 02:25PM
If I allow it to autoboot it boots up to a Debian login prompt, but only if I start by running kwboot.
If I just switch the system on the LED does not start flashing at all..

Sending boot image...
  0 % [......................................................................]
  1 % [......................................................................]
  3 % [......................................................................]
  5 % [......................................................................]
  6 % [......................................................................]
  8 % [......................................................................]
 10 % [......................................................................]
 11 % [......................................................................]
 13 % [......................................................................]
 15 % [......................................................................]
 17 % [......................................................................]
 18 % [......................................................................]
 20 % [......................................................................]
 22 % [......................................................................]
 23 % [......................................................................]
 25 % [......................................................................]
 27 % [......................................................................]
 29 % [......................................................................]
 30 % [......................................................................]
 32 % [......................................................................]
 34 % [......................................................................]
 35 % [......................................................................]
 37 % [......................................................................]
 39 % [......................................................................]
 41 % [......................................................................]
 42 % [......................................................................]
 44 % [......................................................................]
 46 % [......................................................................]
 47 % [......................................................................]
 49 % [......................................................................]
 51 % [......................................................................]
 53 % [......................................................................]
 54 % [......................................................................]
 56 % [......................................................................]
 58 % [......................................................................]
 59 % [......................................................................]
 61 % [......................................................................]
 63 % [......................................................................]
 64 % [......................................................................]
 66 % [......................................................................]
 68 % [......................................................................]
 70 % [......................................................................]
 71 % [......................................................................]
 73 % [......................................................................]
 75 % [......................................................................]
 76 % [......................................................................]
 78 % [......................................................................]
 80 % [......................................................................]
 82 % [......................................................................]
 83 % [......................................................................]
 85 % [......................................................................]
 87 % [......................................................................]
 88 % [......................................................................]
 90 % [......................................................................]
 92 % [......................................................................]
 94 % [......................................................................]
 95 % [......................................................................]
 97 % [......................................................................]
 99 % [....................................]
[Type Ctrl-\ + c to quit]


U-Boot 2017.05-tld-2 (Jul 26 2017 - 02:37:42 -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: 10  9  8  7  6  5  4  3  2  1  0 
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 
Use USB retry period from the environment: 15 second(s)
1 Storage Device(s) found

Reset IDE: ide_preinit failed
Unknown command 'mmc' - try 'help'

Partition Map for USB device 0  --   Partition Type: DOS

Part	Start Sector	Num Sectors	UUID		Type
  1	2048      	15278144  	41e49ae4-01	83 Boot

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0
loading envs from usb 0 ...
747 bytes read in 800 ms (0 Bytes/s)

no IDE devices available
Unknown command 'mmc' - try 'help'
importing envs ...
running scan_disk ...
Scan device usb
device usb 0:1
1 bytes read in 569 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
3821592 bytes read in 847 ms (4.3 MiB/s)
loading uInitrd ...
7245696 bytes read in 1059 ms (6.5 MiB/s)
loading DTB /boot/dts/kirkwood-goflexhome.dtb ...
10603 bytes read in 3536 ms (2 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.12.1-kirkwood-tld-1
   Created:      2017-07-20   8:11:24 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3821528 Bytes = 3.6 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-4.12.1-kirkwood-tld-1
   Created:      2017-07-24   0:18:23 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7245632 Bytes = 6.9 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01c00000
   Booting using the fdt blob at 0x1c00000
   Loading Kernel Image ... OK
   Loading Ramdisk to 07422000, end 07b0af40 ... OK
   Loading Device Tree to 0741c000, end 0742196a ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.12.1-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt: Machine model: Seagate GoFlex Home
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
[    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: 109428K/131072K available (8192K kernel code, 716K rwdata, 1972K rodata, 1024K init, 288K bss, 21644K 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 - 0xc0900000   (9184 kB)
[    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
[    0.000000]       .data : 0xc0d00000 - 0xc0db3274   ( 717 kB)
[    0.000000]        .bss : 0xc0db9b9c - 0xc0e01e60   ( 289 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000008] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000043] Switching to timer-based delay loop, resolution 5ns
[    0.000509] Console: colour dummy device 80x30
[    0.000544] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.000566] pid_max: default: 32768 minimum: 301
[    0.000763] Security Framework initialized
[    0.000883] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000903] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001766] CPU: Testing write buffer coherency: ok
[    0.002809] Setting up static identity map for 0x100000 - 0x100058
[    0.003068] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[    0.006348] devtmpfs: initialized
[    0.010348] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.010375] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.010776] prandom: seed boundary self test passed
[    0.014532] prandom: 100 self tests passed
[    0.014544] pinctrl core: initialized pinctrl subsystem
[    0.015717] NET: Registered protocol family 16
[    0.016187] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.017786] cpuidle: using governor ladder
[    0.017857] cpuidle: using governor menu
[    0.018284] Feroceon L2: Enabling L2
[    0.018331] Feroceon L2: Cache support initialised.
[    0.018682] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.023423] No ATAGs?
[    0.032572] vgaarb: loaded
[    0.032904] SCSI subsystem initialized
[    0.033372] usbcore: registered new interface driver usbfs
[    0.033448] usbcore: registered new interface driver hub
[    0.033530] usbcore: registered new device driver usb
[    0.034657] clocksource: Switched to clocksource orion_clocksource
[    0.124321] VFS: Disk quotas dquot_6.6.0
[    0.124413] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.135127] NET: Registered protocol family 2
[    0.135880] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.135910] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.135930] TCP: Hash tables configured (established 1024 bind 1024)
[    0.136019] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.136043] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.136220] NET: Registered protocol family 1
[    0.136640] RPC: Registered named UNIX socket transport module.
[    0.136653] RPC: Registered udp transport module.
[    0.136660] RPC: Registered tcp transport module.
[    0.136668] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.136911] Unpacking initramfs...
[    0.797132] Freeing initrd memory: 7076K
[    0.797274] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.798237] audit: initializing netlink subsys (disabled)
[    0.798733] Initialise system trusted keyrings
[    0.798790] Key type blacklist registered
[    0.798888] audit: type=2000 audit(0.793:1): state=initialized audit_enabled=0 res=1
[    0.798983] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    0.799053] zbud: loaded
[    0.800044] NFS: Registering the id_resolver key type
[    0.800071] Key type id_resolver registered
[    0.800079] Key type id_legacy registered
[    0.800097] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.800107] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.800306] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.800505] fuse init (API version 7.26)
[    0.800867] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.801141] orangefs_init: module version upstream loaded
[    0.801154] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[    2.554663] random: fast init done
[    6.676310] Key type asymmetric registered
[    6.676327] Asymmetric key parser 'x509' registered
[    6.676396] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    6.676408] io scheduler noop registered
[    6.676416] io scheduler deadline registered
[    6.676496] io scheduler cfq registered (default)
[    6.677819] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    6.679659] mv_xor f1060800.xor: Marvell shared XOR driver
[    6.735432] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    6.735660] mv_xor f1060900.xor: Marvell shared XOR driver
[    6.795414] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    6.795851] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    6.797119] console [ttyS0] disabled
[    6.797190] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 25, base_baud = 12500000) is a 16550A
[    7.396742] console [ttyS0] enabled
[    7.408812] loop: module loaded
[    7.412495] sata_mv f1080000.sata: slots 32 ports 1
[    7.419037] scsi host0: sata_mv
[    7.422428] ata1: SATA max UDMA/133 irq 32
[    7.427265] nand: device found, Manufacturer ID: 0x98, Chip ID: 0xda
[    7.433691] nand: Toshiba NAND 256MiB 3,3V 8-bit
[    7.438362] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    7.445992] Scanning device for bad blocks
[    7.669246] 4 cmdlinepart partitions found on MTD device orion_nand
[    7.675582] Creating 4 MTD partitions on "orion_nand":
[    7.680776] 0x000000000000-0x000000100000 : "u-boot"
[    7.687020] 0x000000100000-0x000000500000 : "uImage"
[    7.693262] 0x000000500000-0x000002500000 : "rootfs"
[    7.699726] 0x000002500000-0x000010000000 : "data"
[    7.708434] libphy: Fixed MDIO Bus: probed
[    7.713457] libphy: orion_mdio_bus: probed
[    7.722781] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    7.755016] ata1: SATA link down (SStatus 0 SControl F300)
[    8.826431] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:10:75:2e:ae:0f
[    8.835336] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    8.841914] ehci-pci: EHCI PCI platform driver
[    8.846463] ehci-orion: EHCI orion driver
[    8.850689] orion-ehci f1050000.ehci: EHCI Host Controller
[    8.856262] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    8.864122] orion-ehci f1050000.ehci: irq 29, io mem 0xf1050000
[    8.894692] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    8.900993] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    8.907843] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    8.915121] usb usb1: Product: EHCI Host Controller
[    8.920018] usb usb1: Manufacturer: Linux 4.12.1-kirkwood-tld-1 ehci_hcd
[    8.926771] usb usb1: SerialNumber: f1050000.ehci
[    8.932137] hub 1-0:1.0: USB hub found
[    8.936002] hub 1-0:1.0: 1 port detected
[    8.940533] usbcore: registered new interface driver usb-storage
[    8.946956] mousedev: PS/2 mouse device common for all mice
[    8.953100] rtc-mv f1010300.rtc: rtc core: registered f1010300.rtc as rtc0
[    8.960203] i2c /dev entries driver
[    8.965261] hidraw: raw HID events driver (C) Jiri Kosina
[    8.971036] drop_monitor: Initializing network drop monitor service
[    8.977628] NET: Registered protocol family 17
[    8.982180] Key type dns_resolver registered
[    8.987271] registered taskstats version 1
[    8.991391] Loading compiled-in X.509 certificates
[    8.996288] zswap: loaded using pool lzo/zbud
[    9.010906] Key type big_key registered
[    9.024358] Key type encrypted registered
[    9.029891] rtc-mv f1010300.rtc: setting system clock to 2013-01-04 08:20:46 UTC (1357287646)
[    9.041901] Freeing unused kernel memory: 1024K
Loading, please wait...
starting version 232
[    9.294769] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    9.535904] usb 1-1: New USB device found, idVendor=0951, idProduct=1665
[    9.542666] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    9.562436] usb 1-1: Product: DataTraveler 2.0
[    9.571785] usb 1-1: Manufacturer: Kingston
[    9.580801] usb 1-1: SerialNumber: 001731F2AB3E1FC0B95E08EA
[    9.592660] usb-storage 1-1:1.0: USB Mass Storage device detected
[    9.610344] scsi host1: usb-storage 1-1:1.0
[    9.767222] usbcore: registered new interface driver uas
Begin: Loading essential drivers ... done.
[   10.646851] scsi 1:0:0:0: Direct-Access     Kingston DataTraveler 2.0 0000 PQ: 0 ANSI: 4
[   10.661205] sd 1:0:0:0: [sda] 15280192 512-byte logical blocks: (7.82 GB/7.29 GiB)
[   10.675322] sd 1:0:0:0: [sda] Write Protect is off
[   10.684843] sd 1:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[   10.704283]  sda: sda1
[   10.714294] sd 1:0:0:0: [sda] Attached SCSI removable disk
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Warning: fsck not present, so skipping root file system
[   19.887961] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   19.896847] EXT4-fs (sda1): INFO: recovery required on readonly filesystem
[   19.903771] EXT4-fs (sda1): write access will be enabled during recovery
[   26.902451] EXT4-fs (sda1): recovery complete
[   26.910684] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.

INIT: version 2.88 booting

[info] Using makefile-style concurrent boot in runlevel S.
[....] Starting the hotplug events dispatcher: udevd[   28.315579] systemd-udevd[272]: starting version 215
[?25l[?1c7[ ok 8[?25h[?0c.
[....] Synthesizing the initial hotplug events...[?25l[?1c7[ ok 8[?25h[?0cdone.
[....] Waiting for /dev to be fully populated...[?25l[?1c7[ ok 8[?25h[?0cdone.
[....] Activating swap...[?25l[?1c7[ ok 8[?25h[?0cdone.
[   29.963908] EXT4-fs (sda1): re-mounted. Opts: (null)
[....] Checking root file system...fsck from util-linux 2.25.2
rootfs: clean, 17286/477664 files, 285813/1909768 blocks
[?25l[?1c7[ ok 8[?25h[?0cdone.
[   30.213235] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[   30.597703] random: crng init done
[....] Activating lvm and md swap...[?25l[?1c7[ ok 8[?25h[?0cdone.
[....] Checking file systems...fsck from util-linux 2.25.2
[?25l[?1c7[ ok 8[?25h[?0cdone.
[....] Loading kernel modules...[?25l[?1c7[ ok 8[?25h[?0cdone.
[....] Cleaning up temporary files... /tmp[?25l[?1c7[ ok 8[?25h[?0c.
[....] Mounting local filesystems...[?25l[?1c7[ ok 8[?25h[?0cdone.
[....] Activating swapfile swap...[?25l[?1c7[ ok 8[?25h[?0cdone.
[....] Cleaning up temporary files...[?25l[?1c7[ ok 8[?25h[?0c.
[....] Setting kernel variables ...[?25l[?1c7[ ok 8[?25h[?0cdone.
[   35.730169] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 100 Mb/s, full duplex, flow control disabled
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.3.1
Copyright 2004-2014 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/00:10:75:2e:ae:0f
Sending on   LPF/eth0/00:10:75:2e:ae:0f
Sending on   Socket/fallback
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPACK from 192.168.1.1
bound to 192.168.1.29 -- renewal in 36462 seconds.
[?25l[?1c7[ ok 8[?25h[?0cdone.
rpcbind: cannot create socket for udp6

rpcbind: cannot create socket for tcp6

[....] Starting rpcbind daemon...[?25l[?1c7[ ok 8[?25h[?0c.
[....] Starting NFS common utilities: statd idmapd[?25l[?1c7[ ok 8[?25h[?0c.
[....] Cleaning up temporary files...[?25l[?1c7[ ok 8[?25h[?0c.

INIT: Entering runlevel: 2

[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
1226 (syslogd)
[?25l[?1c7[ ok 8[?25h[?0c.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1229 (klogd)
[?25l[?1c7[ ok 8[?25h[?0c.
[....] Starting web server: apache2[?25l[?1c7[ ok 8[?25h[?0c.
[....] Starting NTP server: ntpd[?25l[?1c7[ ok 8[?25h[?0c.
[....] Starting NFS common utilities: statd idmapd[?25l[?1c7[ ok 8[?25h[?0c.
[....] Starting system message bus: dbus[?25l[?1c7[ ok 8[?25h[?0c.
[....] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon[?25l[?1c7[ ok 8[?25h[?0c.
[....] Not starting NFS kernel daemon: no exports. ...[?25l[?1c7[warn8[?25h[?0c (warning).
[....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c.


Debian GNU/Linux 8 debian ttyS0

debian login:

I guess I must have done something untoward with the environment.
Re: GoFlexHome RIP
December 04, 2017 03:47PM
balanga,


Run picocom (or cu), power up the GoFlex Home, interrupt serial console and

printenv
boot

Please post the entire serial console log here (from picocom/cu command until the Debian prompt, or when it stops booting).

-bodhi
===========================
Forum Wiki
bodhi's corner



Edited 1 time(s). Last edit at 12/04/2017 03:53PM by bodhi.
Re: GoFlexHome RIP
December 05, 2017 01:07AM
bodhi,

As I mentioned in my second post there is NO output via the serial console when I power on. Neither does the LED flash. That is why I thought the unit was dead. It was only by chance that I thought of running kwboot which seemed to breathe some life into the unit. In that post I provided the console log after running:-
./kwboot -d -t -B 115200 /dev/ttyUSB0 -b uboot.2017.05-tld-2.goflexhome.mtd0.kwb -p
The first log shows printenv after stopping at the autoboot prompt. The second shows the log after allowing autoboot to boot to the Debian login prompt. The unit will only boot up via kwboot!
Re: GoFlexHome RIP
December 05, 2017 01:14AM
balanga Wrote:
-------------------------------------------------------
> bodhi,
>
> As I mentioned in my second post there is
> NO output via the serial console when I
> power on.

I did not see where you said that in the 2nd post?

Did you run picocom or cu?

-bodhi
===========================
Forum Wiki
bodhi's corner



Edited 1 time(s). Last edit at 12/05/2017 01:14AM by bodhi.
Re: GoFlexHome RIP
December 05, 2017 09:34AM
I ran cu on both FreeBSD and Ubuntu - no respose. Nothing on the serial console, no flashling LED. That's why I thought the unit had died. I was surprised to see kwboot sending an image, and noticed that when it finished that the LED started flashing and then the U-Boot signature came up. I stopped autoboot and ran printenv:-

GoFlexHome> printenv
api_address=7b12860
arcNumber=3338
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec
bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm $load_uimage_addr; fi; fi
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdelay=10
bootdev=usb
device=0:1
devices=usb ide mmc
disks=0 1 2 3
dtb_file=/boot/dts/kirkwood-goflexhome.dtb
ethact=egiga0
ethaddr=00:10:75:2E:AE:0F
if_netconsole=ping $serverip
ipaddr=192.168.1.23
led_error=orange blinking
led_exit=green off
led_init=green blinking
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file
load_dtb_addr=0x1c00000
load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd
load_initrd_addr=0x1100000
load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage
load_uimage_addr=0x800000
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
mtpparts=orion_nand:1M(u-boot),-(rootfs)
partition=nand0,2
preboot_nc=run if_netconsole start_netconsole
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start";  setenv scan_ide "ide reset";  setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done
serverip=192.168.1.55
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
stderr=serial
stdin=serial
stdout=serial
uenv_addr=0x810000
uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize
uenv_init_devices=setenv init_usb "usb start";  setenv init_ide "ide reset";  setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done;
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices;  do for disknum in 0; do run uenv_read_disk; done; done;
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi
uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read;  fi; else if $devtype part $disknum; then run uenv_read; fi;  fi
usb_ready_retry=15

Environment size: 2910/131068 bytes
GoFlexHome>

Are you able to decipher that to work out what I must have done to create this situation?

I was merely trying to do what you asked me to do, but it seems I might have pasted some commands at the GoFlexHome> prompt by mistake.
Re: GoFlexHome RIP
December 05, 2017 11:01AM
I think this is the line I must have screwed up:-
fw_setenv mtdparts 'xxxxxxxxx'
Re: GoFlexHome RIP
December 05, 2017 03:22PM
balanga,

> Nothing on the serial console, no flashling LED.
> That's why I thought the unit had died.

> Are you able to decipher that to work out what I
> must have done to create this situation?

Yes. It was not the ethaddr. That would have been OK to boot (internal envs has a good local ethaddr).

What happened was somehow the u-boot in mtd0 was corrupted. When the unit silently stuck and no output coming out of serial console, it meant u-boot could not run.

To fix this, you need to boot with kwboot, all the way into Debian rootfs, and reflash the u-boot image (don't reflash u-boot envs image). So do this first. You already have booted this rootfs before.

After you run the command to flash u-boot image, please post the log of the flashing session here. If the box NAND is ok, then there should be no error during flashing.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: GoFlexHome RIP
December 06, 2017 01:47AM
Sending boot message. Please reboot the target...#-#\#|#/#-#\#|
Sending boot image...
  0 % [......................+...............................................]
  1 % [......................................................................]
  3 % [......................................................................]
  5 % [......................................................................]
  6 % [......................................................................]
  8 % [......................................................................]
 10 % [......................................................................]
 11 % [......................................................................]
 13 % [......................................................................]
 15 % [......................................................................]
 17 % [......................................................................]
 18 % [......................................................................]
 20 % [......................................................................]
 22 % [......................................................................]
 23 % [......................................................................]
 25 % [......................................................................]
 27 % [......................................................................]
 29 % [......................................................................]
 30 % [......................................................................]
 32 % [......................................................................]
 34 % [......................................................................]
 35 % [......................................................................]
 37 % [......................................................................]
 39 % [......................................................................]
 41 % [......................................................................]
 42 % [......................................................................]
 44 % [......................................................................]
 46 % [......................................................................]
 47 % [......................................................................]
 49 % [......................................................................]
 51 % [......................................................................]
 52 % [......................................................................]
 54 % [......................................................................]
 56 % [......................................................................]
 58 % [......................................................................]
 59 % [......................................................................]
 61 % [......................................................................]
 63 % [......................................................................]
 64 % [......................................................................]
 66 % [......................................................................]
 68 % [......................................................................]
 70 % [......................................................................]
 71 % [......................................................................]
 73 % [......................................................................]
 75 % [......................................................................]
 76 % [......................................................................]
 78 % [......................................................................]
 80 % [......................................................................]
 82 % [......................................................................]
 83 % [......................................................................]
 85 % [......................................................................]
 87 % [......................................................................]
 88 % [......................................................................]
 90 % [......................................................................]
 92 % [......................................................................]
 93 % [......................................................................]
 95 % [......................................................................]
 97 % [......................................................................]
 99 % [.....................................]
[Type Ctrl-\ + c to quit]
#

U-Boot 2017.05-tld-2 (Jul 26 2017 - 02:37:42 -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: 10 ### 0 
GoFlexHome> usb start
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 
Use USB retry period from the environment: 15 second(s)
1 Storage Device(s) found
GoFlexHome> load usb 1# #0:1 800000 /boot/uImage
3821592 bytes read in 854 ms (4.3 MiB/s)
GoFlexHome> load usb 0:1 800000 /boot/uImage###################00000 /boot/uImage ###################100000 /boot/uImage##################100000 /boot/uImage####################################00000 /boot/uImage##################################                                  ##################################load usb 0:1 800000 /boot/uImage
3821592 bytes read in 843 ms (4.3 MiB/s)
GoFlexHome> load usb 0:1 800000 /boot/uImage###################1800000 /boot/uImage###################1800000 /boot/uImage###################00000 /boot/uImage ###################00000 /boot/uInmage####image####tmage####rmage####dmage####age ####ge ###e ## #
7245696 bytes read in 1048 ms (6.6 MiB/s)
GoFlexHome> load usb 0:1 1100000 /boot/uInitrd####################c100000 /boot/uInitrd####################00000 /boot/uInitrd ####################00000 /boot/kuInitrd#######iuInitrd#######ruInitrd#######kuInitrd#######wuInitrd#######ouInitrd#######ouInitrd#######duInitrd#######-uInitrd#######guInitrd#######ouInitrd#######fuInitrd#######luInitrd#######euInitrd#######xuInitrd#######huInitrd#######ouInitrd#######muInitrd#######euInitrd#######.uInitrd#######duInitrd#######tuInitrd#######buInitrd#######Initrd #######nitrd ######itrd #####trd ####rd ###d ## #
10603 bytes read in 769 ms (12.7 KiB/s)
GoFlexHome> bootm 800000 1100000 1c00000
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.12.1-kirkwood-tld-1
   Created:      2017-07-20   8:11:24 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3821528 Bytes = 3.6 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-4.12.1-kirkwood-tld-1
   Created:      2017-07-24   0:18:23 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7245632 Bytes = 6.9 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01c00000
   Booting using the fdt blob at 0x1c00000
   Loading Kernel Image ... OK
   Loading Ramdisk to 07422000, end 07b0af40 ... OK
   Loading Device Tree to 0741c000, end 0742196a ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0

[    0.000000] Linux version 4.12.1-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017

[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f

[    0.000000] CPU: VIVT data cache, VIVT instruction cache

[    0.000000] OF: fdt: Machine model: Seagate GoFlex Home

[    0.000000] bootconsole [earlycon0] enabled

[    0.000000] Memory policy: Data cache writeback

[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512

[    0.000000] Kernel command line: console=ttyS0,115200n8 earlyprintk root=/dev/sda1 rootdelay=10

[    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: 109428K/131072K available (8192K kernel code, 716K rwdata, 1972K rodata, 1024K init, 288K bss, 21644K 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 - 0xc0900000   (9184 kB)

[    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)

[    0.000000]       .data : 0xc0d00000 - 0xc0db3274   ( 717 kB)

[    0.000000]        .bss : 0xc0db9b9c - 0xc0e01e60   ( 289 kB)

[    0.000000] Preemptible hierarchical RCU implementation.

[    0.000000] NR_IRQS:16 nr_irqs:16 16

[    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns

[    0.000008] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns

[    0.007981] Switching to timer-based delay loop, resolution 5ns

[    0.014471] Console: colour dummy device 80x30

[    0.019090] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)

[    0.029797] pid_max: default: 32768 minimum: 301

[    0.034717] Security Framework initialized

[    0.039080] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)

[    0.045816] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)

[    0.053892] CPU: Testing write buffer coherency: ok

[    0.059961] Setting up static identity map for 0x100000 - 0x100058

[    0.066503] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3

[    0.075115] devtmpfs: initialized

[    0.082544] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns

[    0.092600] futex hash table entries: 256 (order: -1, 3072 bytes)

[    0.099262] prandom: seed boundary self test passed

[    0.108040] prandom: 100 self tests passed

[    0.112251] pinctrl core: initialized pinctrl subsystem

[    0.118814] NET: Registered protocol family 16

[    0.123820] DMA: preallocated 256 KiB pool for atomic coherent allocations

[    0.132429] cpuidle: using governor ladder

[    0.136700] cpuidle: using governor menu

[    0.141194] Feroceon L2: Enabling L2

[    0.144907] Feroceon L2: Cache support initialised.

[    0.150285] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set

[    0.165538] No ATAGs?

[    0.174680] vgaarb: loaded

[    0.180231] SCSI subsystem initialized

[    0.184541] usbcore: registered new interface driver usbfs

[    0.190252] usbcore: registered new interface driver hub

[    0.195745] usbcore: registered new device driver usb

[    0.202039] clocksource: Switched to clocksource orion_clocksource

[    0.298031] VFS: Disk quotas dquot_6.6.0

[    0.302206] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)

[    0.319902] NET: Registered protocol family 2

[    0.325159] TCP established hash table entries: 1024 (order: 0, 4096 bytes)

[    0.332291] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)

[    0.338770] TCP: Hash tables configured (established 1024 bind 1024)

[    0.345342] UDP hash table entries: 256 (order: 0, 4096 bytes)

[    0.351303] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)

[    0.357876] NET: Registered protocol family 1

[    0.362776] RPC: Registered named UNIX socket transport module.

[    0.368807] RPC: Registered udp transport module.

[    0.373687] RPC: Registered tcp transport module.

[    0.378495] RPC: Registered tcp NFSv4.1 backchannel transport module.

[    0.385312] Unpacking initramfs...

[    1.049007] Freeing initrd memory: 7076K

[    1.053248] NetWinder Floating Point Emulator V0.97 (double precision)

[    1.060843] audit: initializing netlink subsys (disabled)

[    1.066879] Initialise system trusted keyrings

[    1.071479] Key type blacklist registered

[    1.075665] audit: type=2000 audit(1.054:1): state=initialized audit_enabled=0 res=1

[    1.083734] workingset: timestamp_bits=30 max_order=15 bucket_order=0

[    1.090351] zbud: loaded

[    1.094031] NFS: Registering the id_resolver key type

[    1.099214] Key type id_resolver registered

[    1.103559] Key type id_legacy registered

[    1.107681] nfs4filelayout_init: NFSv4 File Layout Driver Registering...

[    1.114534] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).

[    1.121199] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.

[    1.128580] fuse init (API version 7.26)

[    1.132987] orangefs_debugfs_init: called with debug mask: :none: :0:

[    1.139807] orangefs_init: module version upstream loaded

[    1.145346] SGI XFS with ACLs, security attributes, realtime, no debug enabled

[    2.562045] random: fast init done

[    7.031041] Key type asymmetric registered

[    7.035566] Asymmetric key parser 'x509' registered

[    7.040610] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)

[    7.048284] io scheduler noop registered

[    7.052370] io scheduler deadline registered

[    7.056819] io scheduler cfq registered (default)

[    7.063027] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver

[    7.072369] mv_xor f1060800.xor: Marvell shared XOR driver

[    7.132815] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )

[    7.140717] mv_xor f1060900.xor: Marvell shared XOR driver

[    7.202811] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )

[    7.210920] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled

[    7.218690] console [ttyS0] disabled

[    7.222497] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 25, base_baud = 12500000) is a 16550A

[    7.231618] console [ttyS0] enabled
[    7.231618] console [ttyS0] enabled

[    7.238754] bootconsole [earlycon0] disabled
[    7.238754] bootconsole [earlycon0] disabled

[    7.256044] loop: module loaded
[    7.259727] sata_mv f1080000.sata: slots 32 ports 1
[    7.266268] scsi host0: sata_mv
[    7.269662] ata1: SATA max UDMA/133 irq 32
[    7.274502] nand: device found, Manufacturer ID: 0x98, Chip ID: 0xda
[    7.280933] nand: Toshiba NAND 256MiB 3,3V 8-bit
[    7.285606] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    7.293242] Scanning device for bad blocks
[    7.516433] 3 ofpart partitions found on MTD device orion_nand
[    7.522335] Creating 3 MTD partitions on "orion_nand":
[    7.527521] 0x000000000000-0x000000100000 : "u-boot"
[    7.533774] 0x000000100000-0x000000700000 : "uImage"
[    7.540035] 0x000000600000-0x00000de00000 : "root"
[    7.548679] libphy: Fixed MDIO Bus: probed
[    7.553714] libphy: orion_mdio_bus: probed
[    7.563031] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    7.605864] ata1: SATA link down (SStatus 0 SControl F300)
[    8.663777] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:10:75:2e:ae:0f
[    8.672678] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    8.679260] ehci-pci: EHCI PCI platform driver
[    8.683815] ehci-orion: EHCI orion driver
[    8.688051] orion-ehci f1050000.ehci: EHCI Host Controller
[    8.693627] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    8.701482] orion-ehci f1050000.ehci: irq 29, io mem 0xf1050000
[    8.732074] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    8.738347] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    8.745194] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    8.752475] usb usb1: Product: EHCI Host Controller
[    8.757372] usb usb1: Manufacturer: Linux 4.12.1-kirkwood-tld-1 ehci_hcd
[    8.764123] usb usb1: SerialNumber: f1050000.ehci
[    8.769596] hub 1-0:1.0: USB hub found
[    8.773461] hub 1-0:1.0: 1 port detected
[    8.778095] usbcore: registered new interface driver usb-storage
[    8.784522] mousedev: PS/2 mouse device common for all mice
[    8.790669] rtc-mv f1010300.rtc: rtc core: registered f1010300.rtc as rtc0
[    8.797779] i2c /dev entries driver
[    8.802792] hidraw: raw HID events driver (C) Jiri Kosina
[    8.808569] drop_monitor: Initializing network drop monitor service
[    8.815173] NET: Registered protocol family 17
[    8.819717] Key type dns_resolver registered
[    8.824780] registered taskstats version 1
[    8.828901] Loading compiled-in X.509 certificates
[    8.833799] zswap: loaded using pool lzo/zbud
[    8.848391] Key type big_key registered
[    8.861799] Key type encrypted registered
[    8.867329] rtc-mv f1010300.rtc: setting system clock to 2013-01-05 18:29:32 UTC (1357410572)
[    8.879337] Freeing unused kernel memory: 1024K
Loading, please wait...
starting version 232
[    9.132138] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    9.373268] usb 1-1: New USB device found, idVendor=0951, idProduct=1665
[    9.380030] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    9.399648] usb 1-1: Product: DataTraveler 2.0
[    9.409480] usb 1-1: Manufacturer: Kingston
[    9.417412] usb 1-1: SerialNumber: 001731F2AB3E1FC0B95E08EA
[    9.430383] usb-storage 1-1:1.0: USB Mass Storage device detected
[    9.446541] scsi host1: usb-storage 1-1:1.0
[    9.582907] usbcore: registered new interface driver uas
Begin: Loading essential drivers ... done.
[   10.494341] scsi 1:0:0:0: Direct-Access     Kingston DataTraveler 2.0 0000 PQ: 0 ANSI: 4
[   10.508699] sd 1:0:0:0: [sda] 15280192 512-byte logical blocks: (7.82 GB/7.29 GiB)
[   10.522702] sd 1:0:0:0: [sda] Write Protect is off
[   10.532202] sd 1:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[   10.551767]  sda: sda1
[   10.565162] sd 1:0:0:0: [sda] Attached SCSI removable disk
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Warning: fsck not present, so skipping root file system
[   19.694076] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   19.702965] EXT4-fs (sda1): INFO: recovery required on readonly filesystem
[   19.709889] EXT4-fs (sda1): write access will be enabled during recovery
[   25.230422] EXT4-fs (sda1): recovery complete
[   25.238673] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.

INIT: version 2.88 booting
[#[36minfo#[39;49m] Using makefile-style concurrent boot in runlevel S.
[....] Starting the hotplug events dispatcher: udevd[   26.653568] systemd-udevd[266]: starting version 215
#[?25l#[?1c#7#[1G[#[32m ok #[39;49m#8#[?25h#[?0c.
[....] Synthesizing the initial hotplug events...#[?25l#[?1c#7#[1G[#[32m ok #[39;49m#8#[?25h#[?0cdone.
[....] Waiting for /dev to be fully populated...#[?25l#[?1c#7#[1G[#[32m ok #[39;49m#8#[?25h#[?0cdone.
[....] Activating swap...#[?25l#[?1c#7#[1G[#[32m ok #[39;49m#8#[?25h#[?0cdone.
[   28.156798] EXT4-fs (sda1): re-mounted. Opts: (null)
[....] Checking root file system...fsck from util-linux 2.25.2
rootfs: clean, 17286/477664 files, 285815/1909768 blocks
#[?25l#[?1c#7#[1G[#[32m ok #[39;49m#8#[?25h#[?0cdone.
[   28.411099] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[....] Activating lvm and md swap...#[?25l#[?1c#7#[1G[#[32m ok #[39;49m#8#[?25h#[?0cdone.
[....] Checking file systems...fsck from util-linux 2.25.2
#[?25l#[?1c#7#[1G[#[32m ok #[39;49m#8#[?25h#[?0cdone.
[   29.324319] random: crng init done
[....] Loading kernel modules...#[?25l#[?1c#7#[1G[#[32m ok #[39;49m#8#[?25h#[?0cdone.
[....] Cleaning up temporary files... /tmp#[?25l#[?1c#7#[1G[#[32m ok #[39;49m#8#[?25h#[?0c.
[....] Mounting local filesystems...#[?25l#[?1c#7#[1G[#[32m ok #[39;49m#8#[?25h#[?0cdone.
[....] Activating swapfile swap...#[?25l#[?1c#7#[1G[#[32m ok #[39;49m#8#[?25h#[?0cdone.
[....] Cleaning up temporary files...#[?25l#[?1c#7#[1G[#[32m ok #[39;49m#8#[?25h#[?0c.
[....] Setting kernel variables ...#[?25l#[?1c#7#[1G[#[32m ok #[39;49m#8#[?25h#[?0cdone.
^@[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.3.1
Copyright 2004-2014 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/00:10:75:2e:ae:0f
Sending on   LPF/eth0/00:10:75:2e:ae:0f
Sending on   Socket/fallback
DHCPREQUEST on eth0 to 255.255.255.255 port 67
[   33.970003] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 100 Mb/s, full duplex, flow control disabled
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPACK from 192.168.1.1
bound to 192.168.1.29 -- renewal in 36535 seconds.
#[?25l#[?1c#7#[1G[#[32m ok #[39;49m#8#[?25h#[?0cdone.
rpcbind: cannot create socket for udp6
rpcbind: cannot create socket for tcp6
[....] Starting rpcbind daemon...#[?25l#[?1c#7#[1G[#[32m ok #[39;49m#8#[?25h#[?0c.
[....] Starting NFS common utilities: statd idmapd#[?25l#[?1c#7#[1G[#[32m ok #[39;49m#8#[?25h#[?0c.
[....] Cleaning up temporary files...#[?25l#[?1c#7#[1G[#[32m ok #[39;49m#8#[?25h#[?0c.

INIT: Entering runlevel: 2
[#[36minfo#[39;49m] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
1219 (syslogd)
#[?25l#[?1c#7#[1G[#[32m ok #[39;49m#8#[?25h#[?0c.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1218 (klogd)
#[?25l#[?1c#7#[1G[#[32m ok #[39;49m#8#[?25h#[?0c.
[....] Starting web server: apache2#[?25l#[?1c#7#[1G[#[32m ok #[39;49m#8#[?25h#[?0c.
[....] Starting NTP server: ntpd#[?25l#[?1c#7#[1G[#[32m ok #[39;49m#8#[?25h#[?0c.
[....] Starting NFS common utilities: statd idmapd#[?25l#[?1c#7#[1G[#[32m ok #[39;49m#8#[?25h#[?0c.
[....] Starting system message bus: dbus#[?25l#[?1c#7#[1G[#[32m ok #[39;49m#8#[?25h#[?0c.
[....] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon#[?25l#[?1c#7#[1G[#[32m ok #[39;49m#8#[?25h#[?0c.
[....] Not starting NFS kernel daemon: no exports. ...#[?25l#[?1c#7#[1G[#[33mwarn#[39;49m#8#[?25h#[?0c #[33m(warning).#[39;49m
[....] Starting OpenBSD Secure Shell server: sshd#[?25l#[?1c#7#[1G[#[32m ok #[39;49m#8#[?25h#[?0c.

Debian GNU/Linux 8 debian ttyS0

debian login: root
Password: 
Last login: Tue Dec  5 14:39:38 PST 2017 on ttyS0
Linux debian 4.12.1-kirkwood-tld-1 #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017 armv5tel

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
root@debian:~# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:10:75:2e:ae:0f  
          inet addr:192.168.1.29  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:129 errors:0 dropped:0 overruns:0 frame:0
          TX packets:73 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:10361 (10.1 KiB)  TX bytes:6826 (6.6 KiB)
          Interrupt:35 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

root@debian:~# cat /etc/fw_env.config 
# Configuration file for fw_(printenv/saveenv) utility.
# Up to two entries are valid, in this case the redundant
# environment sector is assumed present.
# Notice, that the "Number of sectors" is ignored on NOR.

# MTD device name	Device offset	Env. size	Flash sector size	Number of sectors
/dev/mtd0		0xc0000		0x20000		0x20000
root@debian:~# cat /proc/mtd 
dev:    size   erasesize  name
mtd0: 00100000 00020000 "u-boot"
mtd1: 00600000 00020000 "uImage"
mtd2: 0d800000 00020000 "root"
root@debian:~# fw_printenv ethaddr
ethaddr=00:10:75:2E:AE:0F
root@debian:~# fw_printenv > my_current.in# ## #env
root@debian:~# pwd
/root
root@debian:~# pwd###fw_printenv > my_current.env# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #v
bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm $load_uimage_addr; fi; fi
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdelay=10
bootdev=usb
device=0:1
devices=usb ide mmc
disks=0 1 2 3
ethact=egiga0
if_netconsole=ping $serverip
led_error=orange blinking
led_exit=green off
led_init=green blinking
load_dtb_addr=0x1c00000
load_initrd_addr=0x1100000
load_uimage_addr=0x800000
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file
load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd
load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
partition=nand0,2
preboot_nc=run if_netconsole start_netconsole
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start";  setenv scan_ide "ide reset";  setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
stderr=serial
stdin=serial
stdout=serial
uenv_addr=0x810000
uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize
uenv_init_devices=setenv init_usb "usb start";  setenv init_ide "ide reset";  setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done;
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices;  do for disknum in 0; do run uenv_read_disk; done; done;
uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read;  fi; else if $devtype part $disknum; then run uenv_read; fi;  fi
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi
usb_ready_retry=15
arcNumber=3338
ethaddr=00:10:75:2E:AE:0F
mtpparts=orion_nand:1M(u-boot),-(rootfs)
dtb_file=/boot/dts/kirkwood-goflexhome.dtb
serverip=192.168.1.55
ipaddr=192.168.1.23
root@debian:~# nanddump --noecc --omitoob -l 0x80000 -f mtd0 /dev/mtd0
Block size 131072, page size 2048, OOB size 64
Dumping data starting at 0x00000000 and ending at 0x00080000...
root@debian:~# fw_printenv > current_envs.txt
root@debian:~# dmesg | grep -i 'bad'
[    7.293242] Scanning device for bad blocks
root@debian:~# cd /tmp
root@debian:/tmp# ls -al
total 524
drwxrwxrwt  2 root root     60 Dec  5 23:36 #[0m#[30;42m.#[0m
drwxr-xr-x 21 root root   4096 Feb 16  2015 #[01;34m..#[0m
-rw-rw-r--  1 root root 532480 Dec  5 23:07 uboot.2017.07-tld-1.goflexhome.bodhi.tar
root@debian:/tmp# tar -xf uboot.2017.07-tld-1.goflexhome.bodhi.tar
root@debian:/tmp# tar -xf uboot.2017.07-tld-1.goflexhome.bodhi.tar
root@debian:/tmp# ls -al#[K
total 1036
drwxrwxrwt  2 root root     80 Dec  5 23:37 #[0m#[30;42m.#[0m
drwxr-xr-x 21 root root   4096 Feb 16  2015 #[01;34m..#[0m
-rw-rw-r--  1 root root 532480 Dec  5 23:07 uboot.2017.07-tld-1.goflexhome.bodhi.tar
-rw-r--r--  1 root root 524288 Sep  5 00:24 uboot.2017.07-tld-1.goflexhome.mtd0.kwb
root@debian:/tmp# flash_erase /dev/mtd0 0 4

Erasing 128 Kibyte @ 0 --  0 % complete 
Erasing 128 Kibyte @ 20000 -- 25 % complete 
Erasing 128 Kibyte @ 40000 -- 50 % complete 
Erasing 128 Kibyte @ 60000 -- 75 % complete 
Erasing 128 Kibyte @ 60000 -- 100 % complete 
root@debian:/tmp# nandwrite /dev/mtd0 uboot.2017.07-tld-1.goflexhome.mtd0.kwb
Writing data to block 0 at offset 0x0
Writing data to block 1 at offset 0x20000
Writing data to block 2 at offset 0x40000
Writing data to block 3 at offset 0x60000
root@debian:/tmp# cat /etc/fw_env.config
# Configuration file for fw_(printenv/saveenv) utility.
# Up to two entries are valid, in this case the redundant
# environment sector is assumed present.
# Notice, that the "Number of sectors" is ignored on NOR.

# MTD device name	Device offset	Env. size	Flash sector size	Number of sectors
/dev/mtd0		0xc0000		0x20000		0x20000
root@debian:/tmp#
Re: GoFlexHome RIP
December 06, 2017 02:10AM
Cool!

root@debian:/tmp# flash_erase /dev/mtd0 0 4

Erasing 128 Kibyte @ 0 --  0 % complete 
Erasing 128 Kibyte @ 20000 -- 25 % complete 
Erasing 128 Kibyte @ 40000 -- 50 % complete 
Erasing 128 Kibyte @ 60000 -- 75 % complete 
Erasing 128 Kibyte @ 60000 -- 100 % complete 

root@debian:/tmp# nandwrite /dev/mtd0 uboot.2017.07-tld-1.goflexhome.mtd0.kwb
Writing data to block 0 at offset 0x0
Writing data to block 1 at offset 0x20000
Writing data to block 2 at offset 0x40000
Writing data to block 3 at offset 0x60000

root@debian:/tmp# cat /etc/fw_env.config
# Configuration file for fw_(printenv/saveenv) utility.
# Up to two entries are valid, in this case the redundant
# environment sector is assumed present.
# Notice, that the "Number of sectors" is ignored on NOR.

# MTD device name	Device offset	Env. size	Flash sector size	Number of sectors
/dev/mtd0		0xc0000		0x20000		0x20000
root@debian:/tmp#


But you did not flash the new u-boot for FreeBSD

root@debian:/tmp# nandwrite /dev/mtd0 uboot.2017.07-tld-1.goflexhome.mtd0.kwb
should have been

nandwrite /dev/mtd0 uboot.2017.05-tld-2.goflexhome.mtd0.kwb

-bodhi
===========================
Forum Wiki
bodhi's corner



Edited 2 time(s). Last edit at 12/06/2017 02:11AM by bodhi.
Re: GoFlexHome RIP
December 06, 2017 02:21AM
Can I safely reboot after I have flashed using uboot.2017.05-tld-2.goflexhome.mtd0.kwb ?

And can this be done whilst I have Debian running or do I need to start again by booting via kwboot?



Edited 1 time(s). Last edit at 12/06/2017 02:23AM by balanga.
Re: GoFlexHome RIP
December 06, 2017 02:43AM
balanga Wrote:
-------------------------------------------------------
> Can I safely reboot after I have flashed using
> uboot.2017.05-tld-2.goflexhome.mtd0.kwb ?

Yes. If you flashed it and see no error, then it is OK to reboot.


> And can this be done whilst I have Debian running
>

Yes.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: GoFlexHome RIP
December 06, 2017 04:08AM
Unfortunately after rebooting I can't access the unit, not even via kwboot, so I guess it is well and truly bricked... :(
Re: GoFlexHome RIP
December 06, 2017 04:48AM
balanga,

> Unfortunately after rebooting I can't access the
> unit, not even via kwboot, so I guess it is well
> and truly bricked... :(

It is very hard to brick this box, unless you fried the serial port, or have some problem with the wires. As long as the serial connection is working, it will boot with kwboot. So check the wires and try again.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: GoFlexHome RIP
December 07, 2017 04:58AM
I checked the wires, bought a new USB/serial connector and used a different USB port, but still can't get kwboot to communicate....

Not sure what else to try.... Maybe JTAG, but I don't know the first thing about it, or even if a GoFlexHome unit can be 'JTAGed'.
Re: GoFlexHome RIP
December 07, 2017 05:03AM
Look in the WIki post:

https://forum.doozan.com/read.php?2,23630

Quote

Serial Console & JTAG console

Repair Pogo E02 with Raspberry PI (JTAG) and OpenOCD
Serial Port connector - what are people using to make it work
Serial Console hookup - GoFlex Net (external link)
Serial Console hookup - Pogoplug E02 and Pogoplug Pro V3 (external link)
OSX Serial/Net Console
Use Phone Jack - Phone Jack Serial Console Pics
Adding serial connector to Pogoplug Mobile (external link)
WD Mycloud EX2100/4100 Serial Console pic1, also pic2, pic3
Dreamplug Serial Console

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: GoFlexHome RIP
March 17, 2019 06:40PM
This particular 'sad' GoFlex Home unit has been sitting on a shelf for over a year, but just out of interest I connected it up yesterday, and it started blinking!

It seems as though it has sprung back into life, but I'm not really sure what state it is in. Wiring it up to a serial port and running kwboot was unsuccessful, but I did note that the blinking green led changed to a steady orange after 50 secs from power on and stayed like that for 10 secs before turning to steady green.

Following judicious use of ping, arp, arping and nmap I managed to establish that it had nc configured and eventually managed to find a means of stopping auto boot. But since I don't have serial access I can't tell what happens after it says:-

Starting kernel ...

It disappears and probably hangs during booting as I cannot even ping it afterwards.

I did manage to capture a log

Script started on Sun Mar 17 23:22:35 2019
Command: nc -u -p 6666 192.168.1.22 6666
 88E1116 Initialized on egiga0
host 192.168.1.2 is alive
host 192.168.1.2 is alive
host 192.168.1.2 is alive
host 192.168.1.2 is alive
host 192.168.1.2 is alive

U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:21:31 -0700)
Seagate GoFlex Home
gcc (Debian 6.3.0-18) 6.3.0 20170516
GNU ld (GNU Binutils for Debian) 2.28
Hit any key to stop autoboot: 10

GoFlexHome> 
GoFlexHome> printenv
printenv
arcNumber=3338
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec
bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm $load_uimage_addr; fi; fi
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdelay=10
bootdev=usb
device=0:1
devices=usb ide mmc
disks=0 1 2 3
dtb_file=/boot/dts/kirkwood-goflexhome.dtb
ethact=egiga0
ethaddr=00:10:75:2d:b9:ec
if_netconsole=ping $serverip
ipaddr=192.168.1.22
led_error=orange blinking
led_exit=green off
led_init=green blinking
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file
load_dtb_addr=0x1c00000
load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd
load_initrd_addr=0x1100000
load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage
load_uimage_addr=0x800000
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
nc_ready=1
ncip=192.168.1.2
partition=nand0,2
preboot=run preboot_nc
preboot_nc=setenv nc_ready 0; for pingstat in 1 2 3 4 5; do; sleep 1; if run if_netconsole; then setenv nc_ready 1; fi; done; if test $nc_ready -eq 1; then run start_netconsole; fi
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start";  setenv scan_ide "ide reset";  setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done
serverip=192.168.1.2
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
stderr=nc
stdin=nc
stdout=nc
uenv_addr=0x810000
uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize
uenv_init_devices=setenv init_usb "usb start";  setenv init_ide "ide reset";  setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done;
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices;  do for disknum in 0; do run uenv_read_disk; done; done;
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi
uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read;  fi; else if $devtype part $disknum; then run uenv_read; fi;  fi
usb_ready_retry=15

Environment size: 3024/131068 bytes
GoFlexHome> exit
exit
exit not allowed from main input shell.
GoFlexHome> reset
reset
resetting ...
88E1116 Initialized on egiga0
host 192.168.1.2 is alive
host 192.168.1.2 is alive
host 192.168.1.2 is alive
host 192.168.1.2 is alive
host 192.168.1.2 is alive

U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:21:31 -0700)
Seagate GoFlex Home
gcc (Debian 6.3.0-18) 6.3.0 20170516
GNU ld (GNU Binutils for Debian) 2.28
Hit any key to stop autoboot: 10  9  8  7  6  5  4  3  2  1  0 
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 
Use USB retry period from the environment: 15 second(s)
1 Storage Device(s) found

Reset IDE: ide_preinit failed
Unknown command 'mmc' - try 'help'

Partition Map for USB device 0  --   Partition Type: DOS

Part	Start Sector	Num Sectors	UUID		Type
  1	2048      	15278144  	52c0d6a7-01	83

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0
loading envs from usb 0 ...
85 bytes read in 784 ms (0 Bytes/s)

no IDE devices available
Unknown command 'mmc' - try 'help'
importing envs ...
running scan_disk ...
Scan device mmc
Unknown command 'mmc' - try 'help'
device mmc 0:1
** Bad device mmc 0 **
device mmc 1:1
** Bad device mmc 1 **
device mmc 2:1
** Bad device mmc 2 **
device mmc 3:1
** Bad device mmc 3 **
device mmc 4:1
** Bad device mmc 4 **
device mmc 5:1
** Bad device mmc 5 **
device mmc 6:1
** Bad device mmc 6 **
device mmc 7:1
** Bad device mmc 7 **
Scan device usb
device usb 0:1
1 bytes read in 692 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
3821592 bytes read in 1092 ms (3.3 MiB/s)
loading uInitrd ...
7245696 bytes read in 1228 ms (5.6 MiB/s)
loading DTB /boot/dts/kirkwood-goflexhome.dtb ...
10603 bytes read in 3183 ms (2.9 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.12.1-kirkwood-tld-1
   Created:      2017-07-20   8:11:24 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3821528 Bytes = 3.6 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-4.12.1-kirkwood-tld-1
   Created:      2017-07-24   0:18:23 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7245632 Bytes = 6.9 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01c00000
   Booting using the fdt blob at 0x1c00000


Starting kernel ...
^\
Command exit status: 3
Script done on Sun Mar 17 23:30:10 2019

I need to try and adjust this somehow if possible to find out what is going on.

Having said that I'm left wondering if this unit was the one that died.

The u-boot ID seems wrong, although from this post

https://forum.doozan.com/read.php?3,44329,44504#msg-44504

it looks as though I may have screwed it up.

Anyway, I have a unit which I thought had been bricked but have discovered I have NC access so recovery might be possible but not via kwboot.
Re: GoFlexHome RIP
March 17, 2019 07:30PM
Yes, it is alive :)

Will show you how to fix this.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: GoFlexHome RIP
March 17, 2019 07:45PM
Well, if you have good uboot, it is never bricked... Bricked means you have to go through kwboot or jtag (or sata boot for some devices) to fix it... which happened to me long long ago when I just got a serial cable....oh... with the serial cable, I was the king... I could do whatever...wait, why there was no led activity when I powered on my dockstar?..
Re: GoFlexHome RIP
March 17, 2019 11:10PM
David,

> whatever...wait, why there was no led activity
> when I powered on my dockstar?..

Perphaps you are running a different version of Dockstar u-boot? it should flash green until the kernel is loading.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: GoFlexHome RIP
March 17, 2019 11:25PM
balanga,

> Following judicious use of ping, arp, arping and
> nmap I managed to establish that it had nc
> configured and eventually managed to find a means
> of stopping auto boot. But since I don't have
> serial access I can't tell what happens after it
> says:-
>
> Starting kernel ...
>
> It disappears and probably hangs during booting as
> I cannot even ping it afterwards.

You u-boot has nothing wrong other than you can only use netconsole for now. The booting problem must be with your rootfs.

Let try to get your serial console back before you fix the rootfs.

Use 2 terminals. One for netconsole and one for serial console. Keep the existing netconsole on the same terminal you are using now.. Connect serial console wires to the GF Home and another box (or using this same box that runs netconsole is OK too).

Power up the GoFlex Home, interrupt netconsole on the 1st terninal.

Go to 2nd terminal, that you can start serial console server (minicom/picom/screen/cu). Start it, and let it sit there.

Go back to 1st terminal, enther these commands at u-boot prompt:

setenv stderr serial
setenv stdout serial
setenv stdin serial

You might temporarily lost netconsole input connection after the 3rd command.

Go back to the 2nd terminal and press <Enter> a few times. If you see the u-boot prompt then you've gained the serial console control back. Go ahead and boot

boot

-bodhi
===========================
Forum Wiki
bodhi's corner



Edited 1 time(s). Last edit at 03/17/2019 11:27PM by bodhi.
Re: GoFlexHome RIP
March 18, 2019 05:00AM
bodhi,

bodhi Wrote:
-------------------------------------------------------

> You u-boot has nothing wrong other than you can
> only use netconsole for now. The booting problem
> must be with your rootfs.
>
> Let try to get your serial console back before you
> fix the rootfs.

The serial console is definitely broken. I spent some time trying. The same cable and connector works fine on another unit, but on this one there must be something damaged around the pin holes.

Whatever I do, I need to be careful, because the only access is via nc.

I note that when booting with the Debian USB stick which works fine on the other GoFlex Home unit, this one does go to a steady green so is attempting to start the kernel. I'll attempt to compare the two sets of envars and see how they differ. They run different u-Boots, so am not sure if that would cause an issue.
Re: GoFlexHome RIP
March 18, 2019 03:50PM
> I note that when booting with the Debian USB stick
> which works fine on the other GoFlex Home unit,
> this one does go to a steady green

We went through this before. Netconsole stops output at that point.

Most likely it has booted into Debian. You just need find this box new dynamic IP in the network or trying pinging it.

ping debian.local

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: GoFlexHome RIP
March 18, 2019 10:19PM
Alternatively, you could set a fixed IP address on the usb rootfs and boot it knowing what IP it should come up as.

Could also be a faulty usb port on the box, maybe try a sata rootfs and see if it comes up.
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: