Welcome! Log In Create A New Profile

Advanced

help: recovering old goflex home

Posted by metric 
help: recovering old goflex home
March 06, 2016 12:57AM
Old goflex home, It was running stable with a SATA drive. I made a mistake of installing archlinux, something went wrong, bricked the device. Now I managed to install new u-boot but I cannot boot from Debian-4.4.0-kirkwood-tld-1-rootfs-bodhi.tar.bz2 installed to a USB drive.

I did not have the default environment saved before. As I cannot boot in to the OS, I cannot do the step 8 of programming the default environment. I even tried

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... 1 Storage Device(s) found
GoFlexHome> usb storage
  Device 0: Vendor: FLASH Rev: 1.00 Prod: Drive 3S_USB20
            Type: Removable Hard Disk
            Capacity: 1910.8 MB = 1.8 GB (3913375 x 512)
GoFlexHome> usbboot device 0

Loading from usb device 0, partition 1: Name: usbda1  Type: U-Boot
** Unknown image type
GoFlexHome>
on the u-boot console. It does not work. What could be wrong? How do I recover the device?

Here is the output of my serial console. It does show GoFlexHome prompt with new new uboot loaded. I can run uboot console commands but that is all.

GoFlexHome> reset
resetting ...


U-Boot 2015.10-tld-1 (Nov 06 2015 - 15:53:00 -0800)
Seagate GoFlex Home

SoC:   Kirkwood 88F6281_A1
DRAM:  128 MiB (ECC not enabled)
WARNING: Caches not enabled
NAND:  256 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
88E1116 Initialized on egiga0
GoFlexHome>

Here is my hand coded environment
GoFlexHome> printenv
arcNumber=3338
baudrate=115200
bootdelay=10
bootdev=usb
device=0:1
devices=usb ide mmc
disks=0 1 2 3
ethact=egiga0
ethaddr=00:10:25:25:52:52
if_netconsole=ping 192.168.0.12
ipaddr=192.168.0.254
led_error=orange blinking
led_exit=green off
led_init=green blinking
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
nc_ready=0
net_dhcp_s=1
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 ext2load $dev $disknum:1 0x800000 /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.0.12
stderr=serial
stdin=serial
stdout=serial
usb_device=0:1
usb_init=usb start; setenv usb_root LABEL=rootfs
usb_rootfstype=ext3

Environment size: 1062/131068 bytes
GoFlexHome> 

Re: help: recovering old goflex home
March 06, 2016 11:50AM
Please make sure bootcmd runs the code or set the environment to the default.

-syong
Re: help: recovering old goflex home
March 06, 2016 02:07PM
Syong,

Can you please give me the code example?
Re: help: recovering old goflex home
March 06, 2016 02:23PM
To restore the default envs as it were flashed to NAND initially.

I've created a script for this purpose.

1 .Download the attached script: uboot.2014.07-tld-3.environment.scr.
2. Copy it to the USB Debian rootfs /boot folder.

3. Plug in the USB Debian rootfs to the GFHome, power up, interrupt serial console and then execute these commands:

usb start
ext2load usb 0:1 0x800000 /boot/uboot.2014.07-tld-3.environment.scr 
source 0x800000
printenv

4. Verify that the envs look like default envs. Note that the script commands only overwrite the envs with the same name, but do not erase previous envs with different name. So it might look a little messy with some old evns still remained, but those will be ignored.
arcNumber=2097
bootcmd_exec=mw 0x800000 0 1; run load_uimage; if run load_initrd; then if run load_dtb; then bootm 0x800000 0x1100000 0x1c00000; else bootm 0x800000 0x1100000; fi; else if run load_dtb; then bootm 0x800000 - 0x1c00000; else bootm 0x800000; 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
ethaddr=52:3b:20:9c:11:51
if_netconsole=ping $serverip
ipaddr=192.168.0.231
led_error=orange blinking
led_exit=green off
led_init=green blinking
dtb_file=/boot/dts/kirkwood-pogo_e02.dtb
load_dtb=echo loading DTB $dtb_file ...; ext2load $bootdev $device 0x1c00000 $dtb_file
load_initrd=echo loading uInitrd ...; ext2load $bootdev $device 0x1100000 /boot/uInitrd
load_uimage=echo loading uImage ...; ext2load $bootdev $device 0x800000 /boot/uImage
machid=0x831
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 ext2load $dev $disknum:1 0x800000 /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.0.220
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_import=echo importing envs ...; env import -t 0x810000
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 0x810000 /boot/uEnv.txt; then setenv uenv_loaded 1; fi
usb_ready_retry=15

5. Adjust your ipaddr, serverip (to whatever appropriate for your LAN), and the dtb_file name:

setenv dtb_file '/boot/dts/kirkwood-goflexhome.dtb'
setenv serverip 'xx.xx.xx.xx'
setenv ipaddr  'xx.xx.xx.xx'

Note: there is no need to adjust arcNumber and machid, if booting with Debian rootfs 3.18.5 or newer. If booting with rootfs 3.16 or earlier then these 2 envs should be adjusted to the appropriate ones.

6. And then
boot

7. After successfully booted into Debian. You can either reflash the defaul envs image, or repeat the procedure above, but before the final boot command, do a saveenv:

saveenv
boot

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 2 time(s). Last edit at 03/07/2016 04:03AM by bodhi.
Attachments:
open | download - uboot.2014.07-tld-3.environment.scr (2.8 KB)
Re: help: recovering old goflex home
March 06, 2016 10:38PM
@metric, I have no goflex. Here is the code example for my pogo v4. The hush shell should'nt be hard.

A code example for my pogo v4.

@bodhi, Thanks for the detailed instructions. I have tried your newest u-boot, kernel, and rootfs. All are working perfectly well.

-syong
Re: help: recovering old goflex home
March 14, 2016 12:01AM
@bodhi @syong

Thank you for the help. I did not get time to work on this project this week-end as I had hoped. I will keep you posted.
Re: help: recovering old goflex home
March 26, 2016 06:29PM
removed to reduce confusion - see next post



Edited 3 time(s). Last edit at 03/26/2016 07:22PM by metric.
Re: help: recovering old goflex home
March 26, 2016 06:38PM
metric,

Please post the entire dmesg. The snipet is never helpful.

Make sure you have labeled the USB ext3 partition as rootfs. This missing label might have been the only reason the rootfs can not be mounted.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: help: recovering old goflex home
March 26, 2016 07:21PM
@Bodhi
I confirmed that the partition is labelled as rootfs.

I did untar your image then did following per your instructions in the other thread for my goflex home
cp -a zImage-4.4.0-kirkwood-tld-1  zImage.fdt
cat dts/kirkwood-goflexhome.dtb >> zImage.fdt
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-4.4.0-kirkwood-tld-1 -d zImage.fdt  uImage
mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-4.4.0-kirkwood-tld-1 -d initrd.img-4.4.0-kirkwood-tld-1 uInitrd
sync



Here is the entire console output. I did reset and let it boot. It did not work, then I did manual boot and it showed the same problem.

GoFlexHome> reset
resetting ...


U-Boot 2015.10-tld-1 (Nov 06 2015 - 15:53:00 -0800)
Seagate GoFlex Home

SoC:   Kirkwood 88F6281_A1
DRAM:  128 MiB (ECC not enabled)
WARNING: Caches not enabled
NAND:  256 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
88E1116 Initialized on egiga0
Hit any key to stop autoboot:  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	63        	3913312   	00031ad2-01	83
loading envs from usb 0 ...
** File not found /boot/uEnv.txt **

no IDE devices available
Unknown command 'mmc' - try 'help'
Scan device usb
device usb 0:1
1 bytes read in 231 ms (0 Bytes/s)
Found bootable drive on usb 0
10605 bytes read in 952 ms (10.7 KiB/s)
3165501 bytes read in 510 ms (5.9 MiB/s)
7179935 bytes read in 777 ms (8.8 MiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.4.0-kirkwood-tld-1
   Created:      2016-03-27   0:06:06 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3165437 Bytes = 3 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... Bad Data CRC
ERROR: can't get kernel image!
GoFlexHome> printenv
arcNumber=2097
baudrate=115200
bootargs=console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec
bootcmd_exec=mw 0x800000 0 1;run load_dtb; run load_uimage; if run load_initrd; then bootm 0x800000 0x1100000 0x1c00000; else bootm 0x800000 - 0x1c00000; fi
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdelay=10
bootdev=usb
console=ttyS0,115200
device=0:1
devices=usb ide mmc
disks=0 1 2 3
dtb_file=/boot/dts/kirkwood-goflexhome.dtb
ethact=egiga0
ethaddr=00:1A:7B:2C:D2:D8
filesize=6d8e9f
if_netconsole=ping $serverip
init_ide=ide reset
init_mmc=mmc rescan
init_usb=usb start
ipaddr=192.168.1.25
led_error=orange blinking
led_exit=green off
led_init=green blinking
load_dtb=ext2load usb 0:1 0x1c00000 /boot/dts/kirkwood-goflexhome.dtb
load_initrd=ext2load $bootdev $device 0x1100000 /boot/uInitrd
load_uimage=ext2load $bootdev $device 0x800000 /boot/uImage
machid=0x831
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
nc_ready=0
net_dhcp_s=1
partition=nand0,2
preboot_nc=run if_netconsole start_netconsole
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 ext2load $dev $disknum:1 0x800000 /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
scan_ide=ide reset
scan_mmc=mmc rescan
scan_usb=usb start
serverip=192.168.1.127
set_bootargs=setenv bootargs console=$console 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_import=echo importing envs ...; env import -t 0x810000
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_loaded=0
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 0x810000 /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_boot=run load_dtb; run load_uimage; if run load_initrd; then bootm 0x800000 0x1100000 0x1c00000; else bootm 0x800000 - 0x1c00000; fi
usb_device=0:1
usb_init=usb start; setenv usb_root LABEL=rootfs
usb_ready_retry=15
usb_rootfstype=ext3

Environment size: 3080/131068 bytes
GoFlexHome> boot

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	63        	3913312   	00031ad2-01	83
loading envs from usb 0 ...
** File not found /boot/uEnv.txt **

no IDE devices available
Unknown command 'mmc' - try 'help'
Scan device usb
device usb 0:1
1 bytes read in 231 ms (0 Bytes/s)
Found bootable drive on usb 0
10605 bytes read in 952 ms (10.7 KiB/s)
3165501 bytes read in 507 ms (6 MiB/s)
7179935 bytes read in 767 ms (8.9 MiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.4.0-kirkwood-tld-1
   Created:      2016-03-27   0:06:06 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3165437 Bytes = 3 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-4.4.0-kirkwood-tld-1
   Created:      2016-03-27   0:07:53 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7179871 Bytes = 6.8 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 0743e000, end 07b16e5f ... OK
   Loading Device Tree to 07438000, end 0743d96c ... OK
Using machid 0x831 from environment

Starting kernel ...

Uncompressing Linux... done, booting the 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.0-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Mon Jan 25 20:35:24 PST 2016
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] 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: 120644K/131072K available (6007K kernel code, 573K rwdata, 1992K rodata, 296K init, 312K bss, 10428K 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 - 0xc07d7ef4   (8000 kB)
[    0.000000]       .init : 0xc07d8000 - 0xc0822000   ( 296 kB)
[    0.000000]       .data : 0xc0822000 - 0xc08b169c   ( 574 kB)
[    0.000000]        .bss : 0xc08b169c - 0xc08ff9d0   ( 313 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] 	Build-time adjustment of leaf fanout to 32.
[    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.008265] Console: colour dummy device 80x30
[    0.012838] Calibrating delay loop... 1191.11 BogoMIPS (lpj=5955584)
[    0.100923] pid_max: default: 32768 minimum: 301
[    0.105744] Security Framework initialized
[    0.110054] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.116797] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.124798] Initializing cgroup subsys io
[    0.128985] Initializing cgroup subsys devices
[    0.133555] Initializing cgroup subsys freezer
[    0.138173] Initializing cgroup subsys net_cls
[    0.142800] CPU: Testing write buffer coherency: ok
[    0.148312] Setting up static identity map for 0x8200 - 0x8258
[    0.154545] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[    0.163620] devtmpfs: initialized
[    0.171741] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.182221] prandom: seed boundary self test passed
[    0.191034] prandom: 100 self tests passed
[    0.195259] pinctrl core: initialized pinctrl subsystem
[    0.202039] NET: Registered protocol family 16
[    0.207036] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.238042] cpuidle: using governor ladder
[    0.268040] cpuidle: using governor menu
[    0.272477] Feroceon L2: Enabling L2
[    0.276195] Feroceon L2: Cache support initialised.
[    0.281617] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.297271] No ATAGs?
[    0.329540] vgaarb: loaded
[    0.332971] usbcore: registered new interface driver usbfs
[    0.338699] usbcore: registered new interface driver hub
[    0.344192] usbcore: registered new device driver usb
[    0.350481] clocksource: Switched to clocksource orion_clocksource
[    0.412540] NET: Registered protocol family 2
[    0.417825] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.425047] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.431549] TCP: Hash tables configured (established 1024 bind 1024)
[    0.438080] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.444063] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.450663] NET: Registered protocol family 1
[    0.455483] RPC: Registered named UNIX socket transport module.
[    0.461569] RPC: Registered udp transport module.
[    0.466383] RPC: Registered tcp transport module.
[    0.471208] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.478142] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.485877] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.492216] audit: initializing netlink subsys (disabled)
[    0.497763] audit: type=2000 audit(0.480:1): initialized
[    0.503590] Initialise system trusted keyring
[    0.508393] zbud: loaded
[    0.511355] VFS: Disk quotas dquot_6.6.0
[    0.515434] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.523117] NFS: Registering the id_resolver key type
[    0.528304] Key type id_resolver registered
[    0.532645] Key type id_legacy registered
[    0.536775] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.543620] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.550305] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.558013] Key type big_key registered
[    0.573369] Key type asymmetric registered
[    0.577580] Asymmetric key parser 'x509' registered
[    0.582744] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.590271] io scheduler noop registered
[    0.594486] io scheduler deadline registered
[    0.598924] io scheduler cfq registered (default)
[    0.605141] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    0.613357] irq: Cannot allocate irq_descs @ IRQ33, assuming pre-allocated
[    0.620812] irq: Cannot allocate irq_descs @ IRQ65, assuming pre-allocated
[    0.628337] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.671179] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    0.678838] mv_xor f1060900.xor: Marvell shared XOR driver
[    0.721173] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    0.729084] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.737006] console [ttyS0] disabled
[    0.740803] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 25, base_baud = 12500000) is a 16550A
[    0.749926] console [ttyS0] enabled
[    0.749926] console [ttyS0] enabled
[    0.757064] bootconsole [earlycon0] disabled
[    0.757064] bootconsole [earlycon0] disabled
[    0.767151] nand: device found, Manufacturer ID: 0x98, Chip ID: 0xda
[    0.773575] nand: Toshiba NAND 256MiB 3,3V 8-bit
[    0.778214] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    0.785843] Scanning device for bad blocks
[    1.011463] libphy: Fixed MDIO Bus: probed
[    1.015908] libphy: orion_mdio_bus: probed
[    1.020793] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    2.101180] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:1A:7B:2C:D2:D8
[    2.110060] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.116678] ehci-pci: EHCI PCI platform driver
[    2.121236] ehci-orion: EHCI orion driver
[    2.125438] orion-ehci f1050000.ehci: EHCI Host Controller
[    2.131011] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    2.138862] orion-ehci f1050000.ehci: irq 29, io mem 0xf1050000
[    2.160516] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    2.166794] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    2.173643] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.180917] usb usb1: Product: EHCI Host Controller
[    2.185815] usb usb1: Manufacturer: Linux 4.4.0-kirkwood-tld-1 ehci_hcd
[    2.192477] usb usb1: SerialNumber: f1050000.ehci
[    2.197945] hub 1-0:1.0: USB hub found
[    2.201806] hub 1-0:1.0: 1 port detected
[    2.206720] mousedev: PS/2 mouse device common for all mice
[    2.213048] rtc-mv f1010300.rtc: rtc core: registered f1010300.rtc as rtc0
[    2.220136] i2c /dev entries driver
[    2.225150] hidraw: raw HID events driver (C) Jiri Kosina
[    2.231046] drop_monitor: Initializing network drop monitor service
[    2.237599] NET: Registered protocol family 17
[    2.242365] Key type dns_resolver registered
[    2.247519] registered taskstats version 1
[    2.251719] Loading compiled-in X.509 certificates
[    2.256595] zswap: loaded using pool lzo/zbud
[    2.262103] Key type encrypted registered
[    2.266662] rtc-mv f1010300.rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
[    2.276675] Waiting 10 sec before mounting root device...
[    2.520518] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    2.672872] usb 1-1: New USB device found, idVendor=0c76, idProduct=0004
[    2.679625] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.686831] usb 1-1: Product: Drive 3S_USB20  
[    2.691312] usb 1-1: Manufacturer: FLASH   
[    2.695515] usb 1-1: SerialNumber: 5C4972BA041E4
[   12.290693] VFS: Cannot open root device "sda1" or unknown-block(0,0): error -6
[   12.298038] Please append a correct "root=" boot option; here are the available partitions:
[   12.306489] 1f00          262144 mtdblock0  (driver?)
[   12.311620] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[   12.319921] CPU: 0 PID: 1 Comm: swapper Not tainted 4.4.0-kirkwood-tld-1 #1
[   12.326909] Hardware name: Marvell Kirkwood (Flattened Device Tree)
[   12.333228] [<c0016784>] (unwind_backtrace) from [<c00129f8>] (show_stack+0x10/0x14)
[   12.341011] [<c00129f8>] (show_stack) from [<c00c2200>] (panic+0x80/0x214)
[   12.347927] [<c00c2200>] (panic) from [<c07d9280>] (mount_block_root+0x204/0x24c)
[   12.355449] [<c07d9280>] (mount_block_root) from [<c07d93b4>] (mount_root+0xec/0x118)
[   12.363313] [<c07d93b4>] (mount_root) from [<c07d9504>] (prepare_namespace+0x124/0x184)
[   12.371355] [<c07d9504>] (prepare_namespace) from [<c07d8e9c>] (kernel_init_freeable+0x208/0x258)
[   12.380280] [<c07d8e9c>] (kernel_init_freeable) from [<c05b16b4>] (kernel_init+0x8/0xe4)
[   12.388413] [<c05b16b4>] (kernel_init) from [<c000f090>] (ret_from_fork+0x14/0x24)
[   12.396024] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)



Edited 2 time(s). Last edit at 03/26/2016 07:34PM by metric.
Re: help: recovering old goflex home
March 27, 2016 02:45AM
metric,

> I confirmed that the partition is labelled as
> rootfs.

Excellent.

Quote

I did untar your image then did following per your instructions in the other thread for my goflex home
cp -a zImage-4.4.0-kirkwood-tld-1 zImage.fdt
cat dts/kirkwood-goflexhome.dtb >> zImage.fdt
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-4.4.0-kirkwood-tld-1 -d zImage.fdt uImage
mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-4.4.0-kirkwood-tld-1 -d initrd.img-4.4.0-kirkwood-tld-1 uInitrd
sync

and

Quote

dtb_file=/boot/dts/kirkwood-goflexhome.dtb

This is where the problem was.

> 10605 bytes read in 952 ms (10.7 KiB/s)
> 3165501 bytes read in 510 ms (5.9 MiB/s)
> 7179935 bytes read in 777 ms (8.8 MiB/s)

Note the 3 lines in boot sequence above, the DTB file was loaded in the 3rd line (because the u-boot env dtb_file indicated there is DTB file to boot with) . So the step you've done in appending the DTB was unecessary and actually messed up the uImage file. Your u-boot envs are set up to boot with FDT kernel, in that it will find and load this DTB, so the uImage must be the one that has no DTB emmbedded in it.

So you should remove the newly generated uImage and restore it with the orginal. If you have not saved it, then untar the rootfs tarball to a temporary directory and copy the uImage from there.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: help: recovering old goflex home
March 27, 2016 08:18PM
Success! Thank you.

Just untarred the image to the fresh SD card reboot and Voila! it boots. Next step, making it boot from SATA port with wd red drive and make a real file server ;-).

I was planning to use debootstrap to install brand new debian system. Anything I should take care of first?



Edited 1 time(s). Last edit at 03/27/2016 08:36PM by metric.
Re: help: recovering old goflex home
April 03, 2016 04:04AM
I have failing serial cable (I suspect bad headers soldering on my part). So I was trying to use netconsole but it is not working. Do I need to turn on any switch in the environment? I have checked my serverip and the goflex ip.
Re: help: recovering old goflex home
April 03, 2016 07:12AM
You can order this expensive PL2303HX T23 USB To TTL Switching Module from China + Free S/H to some countries. The only caveat is it will take sometimes to deliver to your postal box.
Re: help: recovering old goflex home
April 03, 2016 02:55PM
metric,

To turn on netconsole:

In Debian, set the env
fw_setenv preboot 'run preboot_nc'

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: help: recovering old goflex home
April 04, 2016 02:03AM
@habibie - I have a working cable, the problem is with my board that did not come with the headers. I soldered them and did not do a good job :-(

@bodhi - Netconsole worked. Now trying to boot a legacy kernel on a usb hard drive. This is a working drive from another dockstar with doozan's u-boot that I never upgraded. I see following problems. Does this mean that the new uboot will only take fdt kernel and will need dtb file all the time? i.e. use your kernel upgrades and not the official Debian kernel package from now on? If so, how do I upgrade just the kernel using this device & the drive? I now have a working usb flash with your rootfs but the hard drive has the entire system with the data and extra applications, custom configs etc.. I do not wish to reformat if there is a choice. (I will have to copy the data and configs somewhere else and bring it back)

U-Boot 2015.10-tld-1 (Nov 06 2015 - 15:53:00 -0800)
Seagate GoFlex Home
gcc (Debian 4.9.2-10) 4.9.2
GNU ld (GNU Binutils for Debian) 2.25
Hit any key to stop autoboot:  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	63        	7952112   	000732bc-01	83 Boot
  2	7952175   	1959930   	000732bc-02	82
  3	9912105   	615225240 	000732bc-03	83
loading envs from usb 0 ...
** File not found /boot/uEnv.txt **

no IDE devices available
Unknown command 'mmc' - try 'help'
Scan device usb
device usb 0:1
1 bytes read in 279 ms (0 Bytes/s)
Found bootable drive on usb 0
** File not found /boot/dts/kirkwood-goflexhome.dtb **
1613392 bytes read in 330 ms (4.7 MiB/s)
7410420 bytes read in 533 ms (13.3 MiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   kernel 3.2.0-4-kirkwood
   Created:      2014-11-01  15:20:06 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1613328 Bytes = 1.5 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   ramdisk 3.2.0-4-kirkwood
   Created:      2014-11-01  15:20:07 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7410356 Bytes = 7.1 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
ERROR: Did not find a cmdline Flattened Device Tree
Could not find a valid device tree

Re: help: recovering old goflex home
April 04, 2016 02:32AM
metric,

> @bodhi - Netconsole worked.

Great!

> Now trying to boot a
> legacy kernel on a usb hard drive. This is a
> working drive from another dockstar with doozan's
> u-boot that I never upgraded. I see following
> problems.

> Does this mean that the new uboot will
> only take fdt kernel and will need dtb file all
> the time?

No, this u-boot can boot either type of kernel.

> i.e. use your kernel upgrades and not
> the official Debian kernel package from now on?

There is no Goflex Home support in mainline kernel. The closest you can use is the Goflex Net. But LED behavior is different.

> so, how do I upgrade just the kernel using this
> device & the drive? I now have a working usb flash
> with your rootfs but the hard drive has the entire
> system with the data and extra applications,
> custom configs etc.. I do not wish to reformat if
> there is a choice. (I will have to copy the data
> and configs somewhere else and bring it back)

There is no need to do anything like that when you upgrade any kernel (my custom kernel or mainline).

Just run dpkg as instructed in my installation thread. And the new kernel will be installed in the same rootfs. Packages do not change. Except that the kernel is new, so when you do apt-get upgrade you will get new package versions. Your settings, data,... remain intact.

Your box is flexible. Because if you decide to go back to mainline kernel, you coud just do apt-get dist-upgrade, and then use the GoFlex Home DTB that I provide, then it will work. (There are more details that I obmitted here, but basically that's the method).

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 04/04/2016 02:35AM by bodhi.
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: