Welcome! Log In Create A New Profile

Advanced

GoflexNet: can not boot from SATA with kernel linux-4.2.0-kirkwood-tld-1-bodhi.tar.bz2

Posted by Enno 
Hi all.

first of all sorry for the lengthy post, but I have no idea how to cook it down.

A while ago I modded my GoflexNet according to Jeffs description ending up with a kernel from Linux-3.11.1-kirkwood-tld-1
(after fruitlessly trying to get a self compiled one working) and an appropriate initrd booting a Gentoo rootfs on sata port 0
(ext3@/dev/sda1).
I have a serial console hardwired, so accessing UBOOT is no Problem.

Problem was I also have a data partition (btrfs) and the harddisc at the second SATA port.
Since the btrfs tools are (by now) much newer than the kernel, I run into problems after balancing the btrfs. Those should be fixed with a newer kernel.

I upgraded UBOOT (http://forum.doozan.com/read.php?3,12381) and then the kernel (http://forum.doozan.com/read.php?2,12096).

The UBOOT upgrade went fine.

For the kernel i prepared 2 kernels (method 4a) and 4b)) and upgraded my initrd.
Unfortunately both kernels do not boot from SATA, the kernel does not even init the SATA and therfore can not find the rootfs and panics.

Fortunately I made a backup of the old kernel+initrd, so i can still (manually) boot the old kernel.

Here is the backup version manually booting (already with the new UBOOT):
U-Boot 2015.10-tld-1 (Nov 06 2015 - 15:49:48 -0800)
Seagate GoFlex Net

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 
GoFlexNet> printenv bootargs
bootargs=console=ttyS0,115200 root=/dev/sda1 rootdelay=10 rootfstype=ext2 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data) earlyprintk mem=128M
GoFlexNet> ide reset

Reset IDE: Bus 0: OK Bus 1: OK 
  Device 0: Model: PATRIOT MEMORY 32GB SSD  Firm: 02.10104 Ser#: MK0508460C5EC0047 
            Type: Hard Disk
            Capacity: 30560.0 MB = 29.8 GB (62586880 x 512)
  Device 1: Model: ST9500325AS  Firm: 0001SDM1 Ser#: 6VE2026J
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 476940.0 MB = 465.7 GB (976773168 x 512)

GoFlexNet> ext2load ide 0:1 0x800000 /boot/bak/uImage
2218808 bytes read in 845 ms (2.5 MiB/s)

GoFlexNet> ext2load ide 0:1 0x1100000 /boot/bak/uInitrd 
21207056 bytes read in 7853 ms (2.6 MiB/s)

GoFlexNet> bootm 0x800000 0x1100000
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-3.11.1-kirkwood-tld-1
   Created:      2013-09-30  19:05:45 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2218744 Bytes = 2.1 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-3.11.1-kirkwood-tld-2
   Created:      1970-01-01   1:34:37 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    21206992 Bytes = 20.2 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK

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 3.11.1-kirkwood-tld-1 (root@tldDebian) (gcc version 4.6.3 (Debian 4.6.3-14) ) #1 PREEMPT Fri Sep 27 01:50:15 PDT 2013
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine: Seagate GoFlex Net
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: ECC disabled, 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=/dev/sda1 rootdelay=10 rootfstype=ext2 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data) earlyprintk mv_sata.msi=1 sata_mv.msi=1 mem=128M
[    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: 102676K/131072K available (4192K kernel code, 309K rwdata, 1368K rodata, 187K init, 420K bss, 28396K reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xc8800000 - 0xff000000   ( 872 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc05761a0   (5561 kB)
[    0.000000]       .init : 0xc0577000 - 0xc05a5cdc   ( 188 kB)
[    0.000000]       .data : 0xc05a6000 - 0xc05f3538   ( 310 kB)
[    0.000000]        .bss : 0xc05f3538 - 0xc065c5cc   ( 421 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] NR_IRQS:114
[    0.000000] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 21474ms
[    0.000000] Console: colour dummy device 80x30
[   15.560998] Calibrating delay loop... 1191.11 BogoMIPS (lpj=5955584)
[   15.649135] pid_max: default: 32768 minimum: 301
[   15.653947] Security Framework initialized
[   15.658237] Mount-cache hash table entries: 512
[   15.663477] Initializing cgroup subsys devices
[   15.668080] Initializing cgroup subsys freezer
[   15.672636] Initializing cgroup subsys net_cls
[   15.677211] Initializing cgroup subsys blkio
[   15.681655] CPU: Testing write buffer coherency: ok
[   15.687058] Setting up static identity map for 0xc03f6900 - 0xc03f693c
[   15.695528] devtmpfs: initialized
[   15.701337] pinctrl core: initialized pinctrl subsystem
[   15.707062] regulator-dummy: no parameters
[   15.711572] NET: Registered protocol family 16
[   15.716629] DMA: preallocated 256 KiB pool for atomic coherent allocations
[   15.724438] Kirkwood: MV88F6281-A1, TCLK=200000000.
[   15.729472] Feroceon L2: Enabling L2
[   15.733186] Feroceon L2: Cache support initialised.
[   15.742026] bio: create slab <bio-0> at 0
[   15.746582] vgaarb: loaded
[   15.749511] usbcore: registered new interface driver usbfs
[   15.755147] usbcore: registered new interface driver hub
[   15.760677] usbcore: registered new device driver usb
[   15.766533] Switched to clocksource orion_clocksource
[   15.786109] NET: Registered protocol family 2
[   15.791254] TCP established hash table entries: 1024 (order: 1, 8192 bytes)
[   15.798450] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[   15.804927] TCP: Hash tables configured (established 1024 bind 1024)
[   15.811472] TCP: reno registered
[   15.814807] UDP hash table entries: 256 (order: 0, 4096 bytes)
[   15.820785] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[   15.827378] NET: Registered protocol family 1
[   15.832117] RPC: Registered named UNIX socket transport module.
[   15.838187] RPC: Registered udp transport module.
[   15.842994] RPC: Registered tcp transport module.
[   15.847815] RPC: Registered tcp NFSv4.1 backchannel transport module.
[   15.854575] Unpacking initramfs...
[   17.696903] Freeing initrd memory: 20704K (c1101000 - c2539000)
[   17.703084] NetWinder Floating Point Emulator V0.97 (double precision)
[   17.710354] audit: initializing netlink socket (disabled)
[   17.715902] type=2000 audit(2.150:1): initialized
[   17.721594] VFS: Disk quotas dquot_6.5.2
[   17.725671] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[   17.732699] NFS: Registering the id_resolver key type
[   17.737958] Key type id_resolver registered
[   17.742245] Key type id_legacy registered
[   17.746364] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[   17.753000] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[   17.760384] msgmni has been set to 240
[   17.766092] alg: No test for stdrng (krng)
[   17.770421] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[   17.778014] io scheduler noop registered
[   17.782044] io scheduler deadline registered
[   17.786427] io scheduler cfq registered (default)
[   17.791473] mv_xor mv_xor.0: Marvell shared XOR driver
[   17.836588] mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
[   17.876593] mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
[   17.881851] mv_xor mv_xor.1: Marvell shared XOR driver
[   17.926592] mv_xor mv_xor.1: Marvell XOR: ( xor cpy )
[   17.966592] mv_xor mv_xor.1: Marvell XOR: ( xor cpy )
[   17.971998] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[   17.999028] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
[   18.005953] console [ttyS0] enabled, bootconsole disabled
[   18.005953] console [ttyS0] enabled, bootconsole disabled
[   18.017893] ONFI param page 0 valid
[   18.021396] ONFI flash detected
[   18.024557] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xda (Micron MT29F2G08AAD), 256MiB, page size: 2048, OOB size: 64
[   18.035695] Scanning device for bad blocks
[   18.107089] Bad eraseblock 639 at 0x000004fe0000
[   18.134177] Bad eraseblock 853 at 0x000006aa0000
[   18.175250] Bad eraseblock 1200 at 0x000009600000
[   18.247442] Bad eraseblock 1842 at 0x00000e640000
[   18.273740] 4 cmdlinepart partitions found on MTD device orion_nand
[   18.280046] Creating 4 MTD partitions on "orion_nand":
[   18.285206] 0x000000000000-0x000000100000 : "u-boot"
[   18.290442] 0x000000100000-0x000000500000 : "uImage"
[   18.295630] 0x000000500000-0x000002500000 : "rootfs"
[   18.300890] 0x000002500000-0x000010000000 : "data"
[   18.306170] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   18.312743] ehci-pci: EHCI PCI platform driver
[   18.317261] ehci-orion: EHCI orion driver
[   18.321334] orion-ehci orion-ehci.0: EHCI Host Controller
[   18.326794] orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
[   18.334505] orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
[   18.356566] orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
[   18.362585] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[   18.369427] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   18.376701] usb usb1: Product: EHCI Host Controller
[   18.381604] usb usb1: Manufacturer: Linux 3.11.1-kirkwood-tld-1 ehci_hcd
[   18.388350] usb usb1: SerialNumber: orion-ehci.0
[   18.393409] hub 1-0:1.0: USB hub found
[   18.397218] hub 1-0:1.0: 1 port detected
[   18.401566] mousedev: PS/2 mouse device common for all mice
[   19.416642] rtc-mv rtc-mv: internal RTC not ticking
[   19.421634] i2c /dev entries driver
[   19.425207] cpuidle: using governor ladder
[   19.429342] cpuidle: using governor menu
[   19.434133] drop_monitor: Initializing network drop monitor service
[   19.440732] TCP: cubic registered
[   19.444066] NET: Registered protocol family 17
[   19.448653] Key type dns_resolver registered
[   19.453446] registered taskstats version 1
[   19.458403] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[   19.465489] Freeing unused kernel memory: 184K (c0577000 - c05a5000)
Mounting /proc, /sys and /dev...
[   22.597011] SCSI subsystem initialized
[   22.934337] sata_mv sata_mv.0: cannot get optional clkdev
[   22.939948] sata_mv sata_mv.0: slots 32 ports 2
[   22.946725] scsi0 : sata_mv
[   22.949777] scsi1 : sata_mv
[   22.952730] ata1: SATA max UDMA/133 irq 21
[   22.956941] ata2: SATA max UDMA/133 irq 21
[   23.466578] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[   23.486662] ata1.00: ATA-8: PATRIOT MEMORY 32GB SSD, 02.10104, max UDMA/100
[   23.493661] ata1.00: 62586880 sectors, multi 0: LBA 
[   23.516650] ata1.00: configured for UDMA/100
[   23.536916] scsi 0:0:0:0: Direct-Access     ATA      PATRIOT MEMORY 3 02.1 PQ: 0 ANSI: 5
[   23.545518] sd 0:0:0:0: [sda] 62586880 512-byte logical blocks: (32.0 GB/29.8 GiB)
[   23.553872] sd 0:0:0:0: [sda] Write Protect is off
[   23.558849] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[   23.569498]  sda: sda1
[   23.572989] sd 0:0:0:0: [sda] Attached SCSI disk
[   24.056575] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[   24.376603] ata2.00: ATA-8: ST9500325AS, 0001SDM1, max UDMA/133
[   24.382553] ata2.00: 976773168 sectors, multi 16: LBA48 NCQ (depth 31/32)
[   24.446609] ata2.00: configured for UDMA/133
[   24.466859] scsi 1:0:0:0: Direct-Access     ATA      ST9500325AS      0001 PQ: 0 ANSI: 5
[   24.475390] sd 1:0:0:0: [sdb] 976773168 512-byte logical blocks: (500 GB/465 GiB)
[   24.483444] sd 1:0:0:0: [sdb] Write Protect is off
[   24.488402] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   24.522671]  sdb: sdb1 sdb2
[   24.526760] sd 1:0:0:0: [sdb] Attached SCSI disk
[   24.821912] libphy: orion_mdio_bus: probed
[   24.863357] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[   24.871586] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address b6:d0:5e:0f:a1:17
[   24.961446] orion_wdt: Initial timeout 21 sec
[   25.098796] alg: hash: Test 1 failed for mv-hmac-sha1
[   25.103879] 00000000: 0c aa 9f d5 37 c3 79 3a 91 d9 21 5f 42 2b 2c 24
[   25.110508] 00000010: b7 c3 16 0c
[   25.179031] NET: Registered protocol family 10
INIT: version 2.88 booting

   OpenRC 0.18.4 is starting up Gentoo Linux (armv5tel)
...

And here the non-booting version 4b)
U-Boot 2015.10-tld-1 (Nov 06 2015 - 15:49:48 -0800)
Seagate GoFlex Net

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 
GoFlexNet> 
GoFlexNet> ide reset

Reset IDE: Bus 0: OK Bus 1: OK 
  Device 0: Model: PATRIOT MEMORY 32GB SSD  Firm: 02.10104 Ser#: MK0508460C5EC0047 
            Type: Hard Disk
            Capacity: 30560.0 MB = 29.8 GB (62586880 x 512)
  Device 1: Model: ST9500325AS  Firm: 0001SDM1 Ser#: 6VE2026J
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 476940.0 MB = 465.7 GB (976773168 x 512)

GoFlexNet> ext2load ide 0:1 0x800000 /boot/uImage-Linux-4.2.0-kirkwood-tld-1.fdt
3159097 bytes read in 1221 ms (2.5 MiB/s)

GoFlexNet> ext2load ide 0:1 0x1100000 /boot/uInitrd
25592912 bytes read in 9489 ms (2.6 MiB/s)

GoFlexNet> bootm 0x800000 0x1100000
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.2.0-kirkwood-tld-1+dtb
   Created:      2016-01-04  15:54:47 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3159033 Bytes = 3 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-4.2.0-kirkwood-tld-1
   Created:      2016-01-04  15:41:10 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    25592848 Bytes = 24.4 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK

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.2.0-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Mon Aug 31 23:12:00 PDT 2015
[    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 Net
[    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: 95636K/131072K available (6019K kernel code, 571K rwdata, 1988K rodata, 284K init, 312K bss, 35436K 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 - 0xff000000   ( 872 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc07da1b4   (8009 kB)
[    0.000000]       .init : 0xc07db000 - 0xc0822000   ( 284 kB)
[    0.000000]       .data : 0xc0822000 - 0xc08b0e24   ( 572 kB)
[    0.000000]        .bss : 0xc08b0e24 - 0xc08ff1a4   ( 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.000009] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.008400] Console: colour dummy device 80x30
[    0.012969] Calibrating delay loop... 1191.11 BogoMIPS (lpj=5955584)
[    0.100932] pid_max: default: 32768 minimum: 301
[    0.105774] Security Framework initialized
[    0.110098] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.116844] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.124838] Initializing cgroup subsys blkio
[    0.129286] Initializing cgroup subsys devices
[    0.133851] Initializing cgroup subsys freezer
[    0.138458] Initializing cgroup subsys net_cls
[    0.143096] CPU: Testing write buffer coherency: ok
[    0.148575] Setting up static identity map for 0x8200 - 0x8258
[    0.154805] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[    0.163889] devtmpfs: initialized
[    0.172850] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.183341] prandom: seed boundary self test passed
[    0.192157] prandom: 100 self tests passed
[    0.196379] pinctrl core: initialized pinctrl subsystem
[    0.203219] NET: Registered protocol family 16
[    0.208271] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.238050] cpuidle: using governor ladder
[    0.268048] cpuidle: using governor menu
[    0.272499] Feroceon L2: Enabling L2
[    0.276212] Feroceon L2: Cache support initialised.
[    0.281633] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.297300] No ATAGs?
[    0.329571] vgaarb: loaded
[    0.333029] usbcore: registered new interface driver usbfs
[    0.338760] usbcore: registered new interface driver hub
[    0.344257] usbcore: registered new device driver usb
[    0.350559] clocksource: Switched to clocksource orion_clocksource
[    0.414312] NET: Registered protocol family 2
[    0.419448] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.426674] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.433179] TCP: Hash tables configured (established 1024 bind 1024)
[    0.439712] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.445695] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.452303] NET: Registered protocol family 1
[    0.457124] RPC: Registered named UNIX socket transport module.
[    0.463209] RPC: Registered udp transport module.
[    0.468022] RPC: Registered tcp transport module.
[    0.472847] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.479683] Unpacking initramfs...
[    0.485680] Initramfs unpacking failed: no cpio magic
[    0.561869] Freeing initrd memory: 24996K (c1100000 - c2969000)
[    0.568024] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.575866] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.582133] Initialise system trusted keyring
[    0.586714] audit: initializing netlink subsys (disabled)
[    0.592292] audit: type=2000 audit(0.580:1): initialized
[    0.598401] zpool: loaded
[    0.601166] zbud: loaded
[    0.604107] VFS: Disk quotas dquot_6.6.0
[    0.608194] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.615913] NFS: Registering the id_resolver key type
[    0.621161] Key type id_resolver registered
[    0.625444] Key type id_legacy registered
[    0.629574] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.636421] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.643134] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.650861] Key type big_key registered
[    0.666407] Key type asymmetric registered
[    0.670720] Asymmetric key parser 'x509' registered
[    0.675794] bounce: pool size: 64 pages
[    0.679805] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.687511] io scheduler noop registered
[    0.691605] io scheduler deadline registered
[    0.696037] io scheduler cfq registered (default)
[    0.702268] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    0.710377] irq: Cannot allocate irq_descs @ IRQ33, assuming pre-allocated
[    0.717833] irq: Cannot allocate irq_descs @ IRQ65, assuming pre-allocated
[    0.725410] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.771268] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy )
[    0.811261] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy )
[    0.818466] mv_xor f1060900.xor: Marvell shared XOR driver
[    0.861249] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy )
[    0.901261] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy )
[    0.908736] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.916675] console [ttyS0] disabled
[    0.920409] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 25, base_baud = 12500000) is a 16550A
[    0.929597] console [ttyS0] enabled
[    0.929597] console [ttyS0] enabled
[    0.936735] bootconsole [earlycon0] disabled
[    0.936735] bootconsole [earlycon0] disabled
[    0.946911] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xda
[    0.953337] nand: Micron MT29F2G08AAD
[    0.957017] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    0.964654] Scanning device for bad blocks
[    1.037171] Bad eraseblock 639 at 0x000004fe0000
[    1.064659] Bad eraseblock 853 at 0x000006aa0000
[    1.106351] Bad eraseblock 1200 at 0x000009600000
[    1.179652] Bad eraseblock 1842 at 0x00000e640000
[    1.208707] libphy: Fixed MDIO Bus: probed
[    1.213238] libphy: orion_mdio_bus: probed
[    1.218128] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    2.301242] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:10:75:26:62:62
[    2.310282] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.316901] ehci-pci: EHCI PCI platform driver
[    2.321459] ehci-orion: EHCI orion driver
[    2.325668] orion-ehci f1050000.ehci: EHCI Host Controller
[    2.331239] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    2.339095] orion-ehci f1050000.ehci: irq 29, io mem 0xf1050000
[    2.360596] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    2.366867] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    2.373716] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.380996] usb usb1: Product: EHCI Host Controller
[    2.385895] usb usb1: Manufacturer: Linux 4.2.0-kirkwood-tld-1 ehci_hcd
[    2.392557] usb usb1: SerialNumber: f1050000.ehci
[    2.398018] hub 1-0:1.0: USB hub found
[    2.401874] hub 1-0:1.0: 1 port detected
[    2.406732] mousedev: PS/2 mouse device common for all mice
[    3.420589] rtc-mv f1010300.rtc: internal RTC not ticking
[    3.426220] i2c /dev entries driver
[    3.432280] hidraw: raw HID events driver (C) Jiri Kosina
[    3.438107] drop_monitor: Initializing network drop monitor service
[    3.444705] NET: Registered protocol family 17
[    3.449316] Key type dns_resolver registered
[    3.454510] Loading compiled-in X.509 certificates
[    3.459351] registered taskstats version 1
[    3.463560] zswap: loading zswap
[    3.466812] zswap: using zbud pool
[    3.470231] zswap: using lzo compressor
[    3.475378] Key type encrypted registered
[    3.479926] hctosys: unable to open rtc device (rtc0)
[    3.486588] Waiting 10 sec before mounting root device...
[   13.500779] VFS: Cannot open root device "sda1" or unknown-block(0,0): error -6
[   13.508122] Please append a correct "root=" boot option; here are the available partitions:
[   13.516569] 1f00          262144 mtdblock0  (driver?)
[   13.521694] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[   13.529995] CPU: 0 PID: 1 Comm: swapper Not tainted 4.2.0-kirkwood-tld-1 #1
[   13.536984] Hardware name: Marvell Kirkwood (Flattened Device Tree)
[   13.543311] [<c0015ebc>] (unwind_backtrace) from [<c0012324>] (show_stack+0x10/0x14)
[   13.551096] [<c0012324>] (show_stack) from [<c05b13c0>] (panic+0x80/0x208)
[   13.558012] [<c05b13c0>] (panic) from [<c07dc284>] (mount_block_root+0x204/0x24c)
[   13.565533] [<c07dc284>] (mount_block_root) from [<c07dc3b8>] (mount_root+0xec/0x118)
[   13.573406] [<c07dc3b8>] (mount_root) from [<c07dc508>] (prepare_namespace+0x124/0x184)
[   13.581447] [<c07dc508>] (prepare_namespace) from [<c07dbea0>] (kernel_init_freeable+0x20c/0x25c)
[   13.590367] [<c07dbea0>] (kernel_init_freeable) from [<c05b0af8>] (kernel_init+0x8/0xe4)
[   13.598503] [<c05b0af8>] (kernel_init) from [<c000ef20>] (ret_from_fork+0x14/0x34)
[   13.606114] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
The file uImage-Linux-4.2.0-kirkwood-tld-1.fdt was created with the mkimage command given by the kernel page after appending the dts/krikwood-goflexnet.dtb file to the zImage
(and using a longer name...)

Here is method 4a) non-working (additional dtb file)
U-Boot 2015.10-tld-1 (Nov 06 2015 - 15:49:48 -0800)
Seagate GoFlex Net

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 

GoFlexNet> ide reset

Reset IDE: Bus 0: OK Bus 1: OK 
  Device 0: Model: PATRIOT MEMORY 32GB SSD  Firm: 02.10104 Ser#: MK0508460C5EC0047 
            Type: Hard Disk
            Capacity: 30560.0 MB = 29.8 GB (62586880 x 512)
  Device 1: Model: ST9500325AS  Firm: 0001SDM1 Ser#: 6VE2026J
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 476940.0 MB = 465.7 GB (976773168 x 512)

GoFlexNet> ext2load ide 0:1 0x2f00000 /boot/dts/kirkwood-goflexnet.dtb
11897 bytes read in 33 ms (351.6 KiB/s)

GoFlexNet> ext2load ide 0:1 0x800000 /boot/uImage
3159097 bytes read in 1224 ms (2.5 MiB/s)

GoFlexNet> ext2load ide 0:1 0x1100000 /boot/uInitrd
25592912 bytes read in 9489 ms (2.6 MiB/s)

GoFlexNet> bootm 0x800000 0x1100000 0x2f00000
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.2.0-kirkwood-tld-1
   Created:      2016-01-04  15:54:47 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3159033 Bytes = 3 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-4.2.0-kirkwood-tld-1
   Created:      2016-01-04  15:41:10 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    25592848 Bytes = 24.4 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 02f00000
   Booting using the fdt blob at 0x2f00000
   Loading Kernel Image ... OK
   Loading Ramdisk to 062af000, end 07b17410 ... OK
   Loading Device Tree to 062a9000, end 062aee78 ... OK

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.2.0-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Mon Aug 31 23:12:00 PDT 2015
[    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 Net
[    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: 120632K/131072K available (6019K kernel code, 571K rwdata, 1988K rodata, 284K init, 312K bss, 10440K 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 - 0xff000000   ( 872 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc07da1b4   (8009 kB)
[    0.000000]       .init : 0xc07db000 - 0xc0822000   ( 284 kB)
[    0.000000]       .data : 0xc0822000 - 0xc08b0e24   ( 572 kB)
[    0.000000]        .bss : 0xc08b0e24 - 0xc08ff1a4   ( 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.008394] Console: colour dummy device 80x30
[    0.012969] Calibrating delay loop... 1191.11 BogoMIPS (lpj=5955584)
[    0.100923] pid_max: default: 32768 minimum: 301
[    0.105762] Security Framework initialized
[    0.110090] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.116833] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.124826] Initializing cgroup subsys blkio
[    0.129267] Initializing cgroup subsys devices
[    0.133834] Initializing cgroup subsys freezer
[    0.138448] Initializing cgroup subsys net_cls
[    0.143086] CPU: Testing write buffer coherency: ok
[    0.148566] Setting up static identity map for 0x8200 - 0x8258
[    0.154804] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[    0.163868] devtmpfs: initialized
[    0.172810] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.183306] prandom: seed boundary self test passed
[    0.192122] prandom: 100 self tests passed
[    0.196342] pinctrl core: initialized pinctrl subsystem
[    0.203188] NET: Registered protocol family 16
[    0.208237] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.238041] cpuidle: using governor ladder
[    0.268038] cpuidle: using governor menu
[    0.272486] Feroceon L2: Enabling L2
[    0.276204] Feroceon L2: Cache support initialised.
[    0.281622] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.297296] No ATAGs?
[    0.329572] vgaarb: loaded
[    0.333021] usbcore: registered new interface driver usbfs
[    0.338759] usbcore: registered new interface driver hub
[    0.344258] usbcore: registered new device driver usb
[    0.350568] clocksource: Switched to clocksource orion_clocksource
[    0.414287] NET: Registered protocol family 2
[    0.419423] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.426658] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.433162] TCP: Hash tables configured (established 1024 bind 1024)
[    0.439694] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.445676] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.452285] NET: Registered protocol family 1
[    0.457109] RPC: Registered named UNIX socket transport module.
[    0.463192] RPC: Registered udp transport module.
[    0.468004] RPC: Registered tcp transport module.
[    0.472829] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.479764] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.487519] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.493817] Initialise system trusted keyring
[    0.498390] audit: initializing netlink subsys (disabled)
[    0.504002] audit: type=2000 audit(0.490:1): initialized
[    0.510072] zpool: loaded
[    0.512831] zbud: loaded
[    0.515763] VFS: Disk quotas dquot_6.6.0
[    0.519852] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.527557] NFS: Registering the id_resolver key type
[    0.532798] Key type id_resolver registered
[    0.537084] Key type id_legacy registered
[    0.541237] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.548061] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.554761] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.562473] Key type big_key registered
[    0.577966] Key type asymmetric registered
[    0.582284] Asymmetric key parser 'x509' registered
[    0.587350] bounce: pool size: 64 pages
[    0.591535] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.599057] io scheduler noop registered
[    0.603146] io scheduler deadline registered
[    0.607580] io scheduler cfq registered (default)
[    0.613808] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    0.621961] irq: Cannot allocate irq_descs @ IRQ33, assuming pre-allocated
[    0.629363] irq: Cannot allocate irq_descs @ IRQ65, assuming pre-allocated
[    0.636938] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.681273] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy )
[    0.721265] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy )
[    0.728463] mv_xor f1060900.xor: Marvell shared XOR driver
[    0.771259] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy )
[    0.811259] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy )
[    0.818728] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.826663] console [ttyS0] disabled
[    0.830392] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 25, base_baud = 12500000) is a 16550A
[    0.839580] console [ttyS0] enabled
[    0.839580] console [ttyS0] enabled
[    0.846719] bootconsole [earlycon0] disabled
[    0.846719] bootconsole [earlycon0] disabled
[    0.856884] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xda
[    0.863301] nand: Micron MT29F2G08AAD
[    0.866983] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    0.874620] Scanning device for bad blocks
[    0.947101] Bad eraseblock 639 at 0x000004fe0000
[    0.974574] Bad eraseblock 853 at 0x000006aa0000
[    1.016269] Bad eraseblock 1200 at 0x000009600000
[    1.089559] Bad eraseblock 1842 at 0x00000e640000
[    1.118608] libphy: Fixed MDIO Bus: probed
[    1.123143] libphy: orion_mdio_bus: probed
[    1.128038] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    2.211261] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:10:75:26:62:62
[    2.220299] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.226920] ehci-pci: EHCI PCI platform driver
[    2.231476] ehci-orion: EHCI orion driver
[    2.235684] orion-ehci f1050000.ehci: EHCI Host Controller
[    2.241248] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    2.249103] orion-ehci f1050000.ehci: irq 29, io mem 0xf1050000
[    2.270603] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    2.276877] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    2.283724] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.290997] usb usb1: Product: EHCI Host Controller
[    2.295895] usb usb1: Manufacturer: Linux 4.2.0-kirkwood-tld-1 ehci_hcd
[    2.302558] usb usb1: SerialNumber: f1050000.ehci
[    2.308020] hub 1-0:1.0: USB hub found
[    2.311878] hub 1-0:1.0: 1 port detected
[    2.316729] mousedev: PS/2 mouse device common for all mice
[    3.330598] rtc-mv f1010300.rtc: internal RTC not ticking
[    3.336240] i2c /dev entries driver
[    3.342283] hidraw: raw HID events driver (C) Jiri Kosina
[    3.348109] drop_monitor: Initializing network drop monitor service
[    3.354705] NET: Registered protocol family 17
[    3.359300] Key type dns_resolver registered
[    3.364499] Loading compiled-in X.509 certificates
[    3.369345] registered taskstats version 1
[    3.373555] zswap: loading zswap
[    3.376804] zswap: using zbud pool
[    3.380224] zswap: using lzo compressor
[    3.385378] Key type encrypted registered
[    3.389933] hctosys: unable to open rtc device (rtc0)
[    3.396594] Waiting 10 sec before mounting root device...
[   13.410785] VFS: Cannot open root device "sda1" or unknown-block(0,0): error -6
[   13.418131] Please append a correct "root=" boot option; here are the available partitions:
[   13.426578] 1f00          262144 mtdblock0  (driver?)
[   13.431703] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[   13.440004] CPU: 0 PID: 1 Comm: swapper Not tainted 4.2.0-kirkwood-tld-1 #1
[   13.446993] Hardware name: Marvell Kirkwood (Flattened Device Tree)
[   13.453322] [<c0015ebc>] (unwind_backtrace) from [<c0012324>] (show_stack+0x10/0x14)
[   13.461107] [<c0012324>] (show_stack) from [<c05b13c0>] (panic+0x80/0x208)
[   13.468022] [<c05b13c0>] (panic) from [<c07dc284>] (mount_block_root+0x204/0x24c)
[   13.475543] [<c07dc284>] (mount_block_root) from [<c07dc3b8>] (mount_root+0xec/0x118)
[   13.483416] [<c07dc3b8>] (mount_root) from [<c07dc508>] (prepare_namespace+0x124/0x184)
[   13.491465] [<c07dc508>] (prepare_namespace) from [<c07dbea0>] (kernel_init_freeable+0x20c/0x25c)
[   13.500385] [<c07dbea0>] (kernel_init_freeable) from [<c05b0af8>] (kernel_init+0x8/0xe4)
[   13.508512] [<c05b0af8>] (kernel_init) from [<c000ef20>] (ret_from_fork+0x14/0x34)
[   13.516125] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[   88.930594] random: nonblocking pool is initialized

my env is a hopeless mess now. the important parts are:
arcNumber=3089
bootcmd=ide reset;sleep 3;ext2load ide 0:1 0x800000 /boot/bak/uImage;ext2load ide 0:1 0x1100000 /boot/baksetenv bootcmd 'ide reset; sleep 3;ext2load ide 0:1 0x800000 /boot/bak/uImage;ext2load ide 0:1 0x1100000 /boot/bak/uInitrd; sleep 3; ext2load ide 0:1 0x800000 /boot/bak/uImage; ext2load ide 0:1 0x1100000 /boot/bak/uInitrd; bootm 0x800000 0x1100000
bootargs=console=ttyS0,115200 root=/dev/sda1 rootdelay=10 rootfstype=ext2 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data) earlyprintk mem=128M
(ethaddr is set as well as all default env settings. I know this is not the recommend way to boot but a the moment it boots the backup kernel in a reliable way. once the new kernel boots from sata, i switch back to a proper env. except someone tells my i need a certain env setting to allow the kernel to detect the sata.)

the initrd 'just' contains a copy of /lib/modules and for reasons I forgot also the stuff normally going to /boot (zImage, System.map, etc...)
and may not be needed at all. (too tired for experiments now. i needed it at some stage for the old kernel and left it at that. just upgraded to newer modules)

except for the unusual big initrd i can not find any reason why sata would be expected to not be working

Any thought is welcome!

Enno
Re: GoflexNet: can not boot from SATA with kernel linux-4.2.0-kirkwood-tld-1-bodhi.tar.bz2
January 05, 2016 04:22AM
Enno,

> my env is a hopeless mess now.

It is :) I would not even attempt to fix it.

What you should do is boot into the rootfs that you still can boot. Save the current envs to a text file (in case you want to reference it). And then flash the default u-boot envs (you did this during u-boot installation). The default u-boot envs will allow you to boot with SATA rootfs without changing anything.

Note that the SATA rootfs must be prepared exactly as the rootfs thread stated (single partition Ext3). And:

- u-boot requirements r1-r4 for "B. Flashing default u-boot envs image" section must be satisified.
- Use 4a to boot with DTB file.

After you are running OK, then worry about Ext4. It is really quite simple to transition to Ext4 from an existing running system.

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



Edited 1 time(s). Last edit at 01/05/2016 04:23AM by bodhi.
Hi bodhi,

thanks for all your effort you put into this.

EXT4 and a cleaned env don't concern me now.

Problem is not that UBOOT does not find the kernel, but that the kernel does not try to init the sata (and therfore can not access sda1 and panics).

I have backups of my env, so I'm not so reluctant to try/mod something.

I just tested a few variations:
  • stripped down env with the device and partition for the kernel files hardcoded. this reliably boots the 3.11 kernel which detect sata and all is good. trying to boot the 4.2.0 kernel works up to the point where the kernel is loaded, does NOT init the sata and then panics.
    (tried method 4a and 4b)
  • the uboot-default env ("env default" command) this only searches usb so does not find the kernel. If I mod the 'usb' parameter to 'ide' and insert an 'ide reset;sleep 3' before scanning the devices, it finds the kernel and the kernel fails to init the sata.
  • the env from before the uboot upgrade. i expect this to work with method 4b). It boots Jeff's recovery system (a 2.6-something kernel with the rootfs inside the flash) (the backup may not be as recent as i thought)
  • the default env from uboot.2014.07-tld-3.environment.bodhi.tar with obvious adoptions (ethaddr, ipaddr, load adress of the dtb file)
    This finds the kernel on the correct device, loads it, boots it and then the kernel fails to find the sata.

Here is the bootlog (using recommended default env):
U-Boot 2015.10-tld-1 (Nov 06 2015 - 15:49:48 -0800)
Seagate GoFlex Net

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... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found

Reset IDE: Bus 0: OK Bus 1: OK 
  Device 0: Model: PATRIOT MEMORY 32GB SSD  Firm: 02.10104 Ser#: MK0508460C5EC0047 
            Type: Hard Disk
            Capacity: 30560.0 MB = 29.8 GB (62586880 x 512)
  Device 1: Model: ST9500325AS  Firm: 0001SDM1 Ser#: 6VE2026J
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 476940.0 MB = 465.7 GB (976773168 x 512)
Unknown command 'mmc' - try 'help'

no USB devices available

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

Part	Start Sector	Num Sectors	UUID		Type
  1	32        	62586848  	00000000-01	83 Boot


Partition Map for IDE device 1  --   Partition Type: DOS

Part	Start Sector	Num Sectors	UUID		Type
  1	32        	62586848  	00000000-01	83 Boot
  2	62586880  	914186288 	00000000-02	83
loading envs from ide 0 ...
104 bytes read in 10 ms (9.8 KiB/s)
Unknown command 'mmc' - try 'help'
importing envs ...
## Warning: Input data exceeds 1048576 bytes - truncated
## Info: input data size = 1048578 = 0x100002
running scan_disk ...
Scan device usb
device usb 0:1
** Bad device usb 0 **
device usb 1:1
** Bad device usb 1 **
device usb 2:1
** Bad device usb 2 **
device usb 3:1
** Bad device usb 3 **
Scan device ide

Reset IDE: Bus 0: OK Bus 1: OK 
  Device 0: Model: PATRIOT MEMORY 32GB SSD  Firm: 02.10104 Ser#: MK0508460C5EC0047 
            Type: Hard Disk
            Capacity: 30560.0 MB = 29.8 GB (62586880 x 512)
  Device 1: Model: ST9500325AS  Firm: 0001SDM1 Ser#: 6VE2026J
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 476940.0 MB = 465.7 GB (976773168 x 512)
device ide 0:1
1 bytes read in 17 ms (0 Bytes/s)
Found bootable drive on ide 0
loading uImage ...
3159097 bytes read in 1196 ms (2.5 MiB/s)
loading uInitrd ...
25592912 bytes read in 9493 ms (2.6 MiB/s)
loading DTB /boot/dts/kirkwood-goflexnet.dtb ...
11897 bytes read in 33 ms (351.6 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.2.0-kirkwood-tld-1+dtb
   Created:      2016-01-04  22:05:37 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3159033 Bytes = 3 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-4.2.0-kirkwood-tld-1
   Created:      2016-01-04  15:41:10 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    25592848 Bytes = 24.4 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 02f00000
   Booting using the fdt blob at 0x2f00000
   Loading Kernel Image ... OK
   Loading Ramdisk to 062af000, end 07b17410 ... OK
   Loading Device Tree to 062a9000, end 062aee78 ... OK

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.2.0-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Mon Aug 31 23:12:00 PDT 2015
[    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 Net
[    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: 120632K/131072K available (6019K kernel code, 571K rwdata, 1988K rodata, 284K init, 312K bss, 10440K 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 - 0xff000000   ( 872 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc07da1b4   (8009 kB)
[    0.000000]       .init : 0xc07db000 - 0xc0822000   ( 284 kB)
[    0.000000]       .data : 0xc0822000 - 0xc08b0e24   ( 572 kB)
[    0.000000]        .bss : 0xc08b0e24 - 0xc08ff1a4   ( 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.008393] Console: colour dummy device 80x30
[    0.012969] Calibrating delay loop... 1191.11 BogoMIPS (lpj=5955584)
[    0.100924] pid_max: default: 32768 minimum: 301
[    0.105764] Security Framework initialized
[    0.110090] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.116833] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.124831] Initializing cgroup subsys blkio
[    0.129278] Initializing cgroup subsys devices
[    0.133842] Initializing cgroup subsys freezer
[    0.138450] Initializing cgroup subsys net_cls
[    0.143087] CPU: Testing write buffer coherency: ok
[    0.148567] Setting up static identity map for 0x8200 - 0x8258
[    0.154794] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[    0.163862] devtmpfs: initialized
[    0.172786] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.183276] prandom: seed boundary self test passed
[    0.192087] prandom: 100 self tests passed
[    0.196308] pinctrl core: initialized pinctrl subsystem
[    0.203151] NET: Registered protocol family 16
[    0.208203] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.238043] cpuidle: using governor ladder
[    0.268040] cpuidle: using governor menu
[    0.272488] Feroceon L2: Enabling L2
[    0.276203] Feroceon L2: Cache support initialised.
[    0.281623] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.297298] No ATAGs?
[    0.329571] vgaarb: loaded
[    0.333021] usbcore: registered new interface driver usbfs
[    0.338759] usbcore: registered new interface driver hub
[    0.344258] usbcore: registered new device driver usb
[    0.350567] clocksource: Switched to clocksource orion_clocksource
[    0.414279] NET: Registered protocol family 2
[    0.419410] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.426642] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.433146] TCP: Hash tables configured (established 1024 bind 1024)
[    0.439678] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.445658] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.452270] NET: Registered protocol family 1
[    0.457095] RPC: Registered named UNIX socket transport module.
[    0.463184] RPC: Registered udp transport module.
[    0.467996] RPC: Registered tcp transport module.
[    0.472821] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.479754] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.487513] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.493809] Initialise system trusted keyring
[    0.498382] audit: initializing netlink subsys (disabled)
[    0.503992] audit: type=2000 audit(0.490:1): initialized
[    0.510066] zpool: loaded
[    0.512823] zbud: loaded
[    0.515755] VFS: Disk quotas dquot_6.6.0
[    0.519844] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.527557] NFS: Registering the id_resolver key type
[    0.532798] Key type id_resolver registered
[    0.537084] Key type id_legacy registered
[    0.541237] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.548061] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.554760] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.562473] Key type big_key registered
[    0.577968] Key type asymmetric registered
[    0.582293] Asymmetric key parser 'x509' registered
[    0.587358] bounce: pool size: 64 pages
[    0.591546] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.599066] io scheduler noop registered
[    0.603157] io scheduler deadline registered
[    0.607590] io scheduler cfq registered (default)
[    0.613818] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    0.621969] irq: Cannot allocate irq_descs @ IRQ33, assuming pre-allocated
[    0.629370] irq: Cannot allocate irq_descs @ IRQ65, assuming pre-allocated
[    0.636948] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.681272] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy )
[    0.721261] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy )
[    0.728454] mv_xor f1060900.xor: Marvell shared XOR driver
[    0.771261] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy )
[    0.811256] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy )
[    0.818725] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.826658] console [ttyS0] disabled
[    0.830391] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 25, base_baud = 12500000) is a 16550A
[    0.839582] console [ttyS0] enabled
[    0.839582] console [ttyS0] enabled
[    0.846719] bootconsole [earlycon0] disabled
[    0.846719] bootconsole [earlycon0] disabled
[    0.856882] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xda
[    0.863302] nand: Micron MT29F2G08AAD
[    0.866984] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    0.874621] Scanning device for bad blocks
[    0.947100] Bad eraseblock 639 at 0x000004fe0000
[    0.974575] Bad eraseblock 853 at 0x000006aa0000
[    1.016266] Bad eraseblock 1200 at 0x000009600000
[    1.089559] Bad eraseblock 1842 at 0x00000e640000
[    1.118592] libphy: Fixed MDIO Bus: probed
[    1.123125] libphy: orion_mdio_bus: probed
[    1.128016] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    2.211286] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:10:75:26:62:62
[    2.220321] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.226936] ehci-pci: EHCI PCI platform driver
[    2.231494] ehci-orion: EHCI orion driver
[    2.235704] orion-ehci f1050000.ehci: EHCI Host Controller
[    2.241276] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    2.249129] orion-ehci f1050000.ehci: irq 29, io mem 0xf1050000
[    2.270603] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    2.276873] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    2.283724] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.290997] usb usb1: Product: EHCI Host Controller
[    2.295896] usb usb1: Manufacturer: Linux 4.2.0-kirkwood-tld-1 ehci_hcd
[    2.302558] usb usb1: SerialNumber: f1050000.ehci
[    2.308016] hub 1-0:1.0: USB hub found
[    2.311868] hub 1-0:1.0: 1 port detected
[    2.316724] mousedev: PS/2 mouse device common for all mice
[    3.330597] rtc-mv f1010300.rtc: internal RTC not ticking
[    3.336241] i2c /dev entries driver
[    3.342290] hidraw: raw HID events driver (C) Jiri Kosina
[    3.348116] drop_monitor: Initializing network drop monitor service
[    3.354715] NET: Registered protocol family 17
[    3.359310] Key type dns_resolver registered
[    3.364510] Loading compiled-in X.509 certificates
[    3.369353] registered taskstats version 1
[    3.373562] zswap: loading zswap
[    3.376813] zswap: using zbud pool
[    3.380233] zswap: using lzo compressor
[    3.385373] Key type encrypted registered
[    3.389932] hctosys: unable to open rtc device (rtc0)
[    3.396591] Waiting 10 sec before mounting root device...
[   13.410782] VFS: Cannot open root device "sda1" or unknown-block(0,0): error -6
[   13.418131] Please append a correct "root=" boot option; here are the available partitions:
[   13.426578] 1f00          262144 mtdblock0  (driver?)
[   13.431703] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[   13.440004] CPU: 0 PID: 1 Comm: swapper Not tainted 4.2.0-kirkwood-tld-1 #1
[   13.446993] Hardware name: Marvell Kirkwood (Flattened Device Tree)
[   13.453313] [<c0015ebc>] (unwind_backtrace) from [<c0012324>] (show_stack+0x10/0x14)
[   13.461097] [<c0012324>] (show_stack) from [<c05b13c0>] (panic+0x80/0x208)
[   13.468014] [<c05b13c0>] (panic) from [<c07dc284>] (mount_block_root+0x204/0x24c)
[   13.475534] [<c07dc284>] (mount_block_root) from [<c07dc3b8>] (mount_root+0xec/0x118)
[   13.483407] [<c07dc3b8>] (mount_root) from [<c07dc508>] (prepare_namespace+0x124/0x184)
[   13.491448] [<c07dc508>] (prepare_namespace) from [<c07dbea0>] (kernel_init_freeable+0x20c/0x25c)
[   13.500367] [<c07dbea0>] (kernel_init_freeable) from [<c05b0af8>] (kernel_init+0x8/0xe4)
[   13.508495] [<c05b0af8>] (kernel_init) from [<c000ef20>] (ret_from_fork+0x14/0x34)
[   13.516106] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

Is there anything magic inside the initrd which i may have broken?

Just for completeness: here is the output of printenv after loading the recommended default values (+obvious adoptions to ethaddr, arcNumber, ...):
GoFlexNet> printenv
arcNumber=3089
baudrate=115200
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec
bootcmd_exec=mw 0x800000 0 1; run load_uimage; if run load_initrd; then if run load_dtb; then bootm 0x800000 0x1100000 0x2f00000; else bootm 0x800000 0x1100000; fi; else if run load_dtb; then bootm 0x800000 - 0x2f00000; else bootm 0x800000; fi; 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-goflexnet.dtb
ethact=egiga0
ethaddr=00:10:75:26:62:62
if_netconsole=ping $serverip
ipaddr=192.168.1.3
led_error=orange blinking
led_exit=green off
led_init=green blinking
load_dtb=echo loading DTB $dtb_file ...; ext2load $bootdev $device 0x2f00000 $dtb_file
load_initrd=echo loading uInitrd ...; ext2load $bootdev $device 0x1100000 /boot/uInitrd
load_uimage=echo loading uImage ...; ext2load $bootdev $device 0x800000 /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 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.1.99
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk $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=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_ready_retry=15

Environment size: 2718/131068 bytes
(actually I'm not too happy with the root=LABEL=rootfs part, I like to be explicit and would rather specify /dev/sda1 here. But I can not imagine this to be the showstopper here.)

Even with this envs, I can still manually boot the bakup kernel with these lines:
GoFlexNet> ide reset
GoFlexNet> ext2load ide 0:1 0x800000 /boot/bak/uImage
GoFlexNet> ext2load ide 0:1 0x1100000 /boot/bak/uInitrd
GoFlexNet> run set_bootargs
GoFlexNet> bootm 0x800000 0x1100000

and this one finds the sata and boots from sda1 as expected. But the 4.2.0 does not work ... Shall I try a different version?

clueles,

Enno
Hi bodhi,

just to be precise:
There is one partition on disk sda => sda1
sda1 has a label of rootfs and is of type ext3
in this partition resides the rootfs and contains /boot/uImage and /boot/uInitrd symlinks pointing to the files-to-be-used inside /boot.
also I have a backup of /boot (from before i started trying to upgrade) which is stored in /boot/bak/
(so there is a symlink /boot/bak/uInitrd pointing to the uIninitrd-3.11-something.. in the same directory)
so requirements r1..r4 are fulfilled.
(there is a second disk (sdb) which contains a stale backup of the rootfs (with /boot empty) and a data partition as btrfs).

I do not think the symlinks are part of the problem (I like them, because they (in principle) allow to select the kernel-to-be-booted from the running os, no need to meddle with the serial console.)

coclusion so far:
- no matter what mess or version of envs I use, it can load the kernel, but the 4.2.0 kernel fails to init the sata, whereas the 3.11 kernel works.
- newer uboot allows to load dtb files and boot kernel with this information (no need to embed the dtb)
- 4a vs. 4b does not seem to matter, both do not detect the sata
- the 3.11 kernel (no dtb) (as far as i remember) uses arcNumber=3089 to know if it should search for sata
- is there a new env variable doing something similiar for dtb kernels?
- except for machid, arcNumber and bootargs: are there further env vars which magically influence the loaded kernel upon bootm ?
- when i try to load the 3.11 kernel without initrd, it fails to detect sata. why? did i mess up some magic inside when exchanging the 3.11 kernel parts with 4.2.0 kernel parts in the initrd? (everything else I left as it was...). especially interesting since the bootargs do not imply any USE of the initrd (I would expect root=/dev/ram0 to initially start booting from the initrd, but root=/dev/sda1, so initrd is not used explicitly. Is it maybe still used to, say, load a module or two in an implicit way? But why does it fail to do so when the modules are all there?)

frustrated.

Enno
Re: GoflexNet: can not boot from SATA with kernel linux-4.2.0-kirkwood-tld-1-bodhi.tar.bz2
January 05, 2016 10:26AM
Enno,

You are making it way too complicated than it should be!

> (there is a second disk (sdb) which contains a
> stale backup of the rootfs (with /boot empty) and
> a data partition as btrfs).

> Is there anything magic inside the initrd which i may have broken?

There is no magic in uInitrd at all! The reason you're having booting problem: multiple partitions without proper setup. See this post for explanation:
http://forum.doozan.com/read.php?3,19093

Forget about your btrfs for now. Get it boot with a single disk drive, singe Ext3 partition with rootfs label. This is quite simple if you leave the u-boot default envs intact after flashing it. (Note that what you said above "env default" was not what I meant by u-boot default envs which was set by flashing the default envs image). The necessary changes are ethaddr, dtb,.. that were described in the installation instruction.

After you can boot with a single disk, single Ext3 partition as instructed in r1-r4, come back and I'll help you continue to boot with the second disk with btrfs.

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

you are right that the neither the second disc nor the btrfs are part of the problem, so I physically removed the second disc.

setup is now: one disc with one partition (which is ext2 (no journal)) labelled "rootfs".
containing my rootfs and under /boot has uImage and uInitrd fitting to your kernel image 4.2.0-kirkwood-tld-1

Again, uboot finds the rigth/one partion, loads the kernel, the kernel starts up, but does not try to init the sata.

U-Boot 2015.10-tld-1 (Nov 06 2015 - 15:49:48 -0800)
Seagate GoFlex Net

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... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found

Reset IDE: Bus 0: OK Bus 1: not available  
  Device 0: Model: PATRIOT MEMORY 32GB SSD  Firm: 02.10104 Ser#: MK0508460C5EC0047 
            Type: Hard Disk
            Capacity: 30560.0 MB = 29.8 GB (62586880 x 512)
Unknown command 'mmc' - try 'help'

no USB devices available

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

Part	Start Sector	Num Sectors	UUID		Type
  1	32        	62586848  	00000000-01	83 Boot
loading envs from ide 0 ...
104 bytes read in 10 ms (9.8 KiB/s)
Unknown command 'mmc' - try 'help'
importing envs ...
## Info: input data size = 35490 = 0x8AA2
running scan_disk ...
Scan device usb
device usb 0:1
** Bad device usb 0 **
device usb 1:1
** Bad device usb 1 **
device usb 2:1
** Bad device usb 2 **
device usb 3:1
** Bad device usb 3 **
Scan device ide

Reset IDE: Bus 0: OK Bus 1: not available  
  Device 0: Model: PATRIOT MEMORY 32GB SSD  Firm: 02.10104 Ser#: MK0508460C5EC0047 
            Type: Hard Disk
            Capacity: 30560.0 MB = 29.8 GB (62586880 x 512)
device ide 0:1
1 bytes read in 18 ms (0 Bytes/s)
Found bootable drive on ide 0
loading uImage ...
3147200 bytes read in 1180 ms (2.5 MiB/s)
loading uInitrd ...
25592912 bytes read in 9495 ms (2.6 MiB/s)
loading DTB /boot/dts/kirkwood-goflexnet.dtb ...
11897 bytes read in 34 ms (340.8 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.2.0-kirkwood-tld-1
   Created:      2016-01-04  14:49:41 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3147136 Bytes = 3 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-4.2.0-kirkwood-tld-1
   Created:      2016-01-04  15:41:10 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    25592848 Bytes = 24.4 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 02f00000
   Booting using the fdt blob at 0x2f00000
   Loading Kernel Image ... OK
   Loading Ramdisk to 062af000, end 07b17410 ... OK
   Loading Device Tree to 062a9000, end 062aee78 ... OK

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.2.0-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Mon Aug 31 23:12:00 PDT 2015
[    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 Net
[    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,115200 root=LABEL=rootfs rootdelay=10 earlyprintk 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: 95636K/131072K available (6019K kernel code, 571K rwdata, 1988K rodata, 284K init, 312K bss, 35436K 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 - 0xff000000   ( 872 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc07da1b4   (8009 kB)
[    0.000000]       .init : 0xc07db000 - 0xc0822000   ( 284 kB)
[    0.000000]       .data : 0xc0822000 - 0xc08b0e24   ( 572 kB)
[    0.000000]        .bss : 0xc08b0e24 - 0xc08ff1a4   ( 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.000009] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.008394] Console: colour dummy device 80x30
[    0.012969] Calibrating delay loop... 1191.11 BogoMIPS (lpj=5955584)
[    0.100923] pid_max: default: 32768 minimum: 301
[    0.105761] Security Framework initialized
[    0.110093] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.116836] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.124830] Initializing cgroup subsys blkio
[    0.129277] Initializing cgroup subsys devices
[    0.133843] Initializing cgroup subsys freezer
[    0.138457] Initializing cgroup subsys net_cls
[    0.143095] CPU: Testing write buffer coherency: ok
[    0.148578] Setting up static identity map for 0x8200 - 0x8258
[    0.154814] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[    0.163904] devtmpfs: initialized
[    0.172892] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.183384] prandom: seed boundary self test passed
[    0.192201] prandom: 100 self tests passed
[    0.196420] pinctrl core: initialized pinctrl subsystem
[    0.203267] NET: Registered protocol family 16
[    0.208350] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.238041] cpuidle: using governor ladder
[    0.268039] cpuidle: using governor menu
[    0.272509] Feroceon L2: Enabling L2
[    0.276221] Feroceon L2: Cache support initialised.
[    0.281642] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.297323] No ATAGs?
[    0.329570] vgaarb: loaded
[    0.333026] usbcore: registered new interface driver usbfs
[    0.338760] usbcore: registered new interface driver hub
[    0.344258] usbcore: registered new device driver usb
[    0.350577] clocksource: Switched to clocksource orion_clocksource
[    0.414305] NET: Registered protocol family 2
[    0.419439] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.426667] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.433172] TCP: Hash tables configured (established 1024 bind 1024)
[    0.439705] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.445685] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.452295] NET: Registered protocol family 1
[    0.457118] RPC: Registered named UNIX socket transport module.
[    0.463200] RPC: Registered udp transport module.
[    0.468013] RPC: Registered tcp transport module.
[    0.472839] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.479676] Unpacking initramfs...
[    0.485675] Initramfs unpacking failed: no cpio magic
[    0.561876] Freeing initrd memory: 24996K (c62af000 - c7b18000)
[    0.568041] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.575872] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.582141] Initialise system trusted keyring
[    0.586723] audit: initializing netlink subsys (disabled)
[    0.592299] audit: type=2000 audit(0.580:1): initialized
[    0.598404] zpool: loaded
[    0.601165] zbud: loaded
[    0.604103] VFS: Disk quotas dquot_6.6.0
[    0.608186] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.615919] NFS: Registering the id_resolver key type
[    0.621168] Key type id_resolver registered
[    0.625453] Key type id_legacy registered
[    0.629583] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.636430] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.643144] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.650880] Key type big_key registered
[    0.666423] Key type asymmetric registered
[    0.670737] Asymmetric key parser 'x509' registered
[    0.675810] bounce: pool size: 64 pages
[    0.679821] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.687525] io scheduler noop registered
[    0.691612] io scheduler deadline registered
[    0.696044] io scheduler cfq registered (default)
[    0.702268] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    0.710375] irq: Cannot allocate irq_descs @ IRQ33, assuming pre-allocated
[    0.717829] irq: Cannot allocate irq_descs @ IRQ65, assuming pre-allocated
[    0.725404] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.771289] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy )
[    0.811277] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy )
[    0.818474] mv_xor f1060900.xor: Marvell shared XOR driver
[    0.861267] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy )
[    0.901277] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy )
[    0.908746] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.916691] console [ttyS0] disabled
[    0.920426] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 25, base_baud = 12500000) is a 16550A
[    0.929613] console [ttyS0] enabled
[    0.929613] console [ttyS0] enabled
[    0.936754] bootconsole [earlycon0] disabled
[    0.936754] bootconsole [earlycon0] disabled
[    0.946930] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xda
[    0.953354] nand: Micron MT29F2G08AAD
[    0.957035] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    0.964671] Scanning device for bad blocks
[    1.037157] Bad eraseblock 639 at 0x000004fe0000
[    1.064626] Bad eraseblock 853 at 0x000006aa0000
[    1.106301] Bad eraseblock 1200 at 0x000009600000
[    1.179594] Bad eraseblock 1842 at 0x00000e640000
[    1.206276] 4 cmdlinepart partitions found on MTD device orion_nand
[    1.212591] Creating 4 MTD partitions on "orion_nand":
[    1.217757] 0x000000000000-0x000000100000 : "u-boot"
[    1.223882] 0x000000100000-0x000000500000 : "uImage"
[    1.229877] 0x000000500000-0x000002500000 : "rootfs"
[    1.235986] 0x000002500000-0x000010000000 : "data"
[    1.243294] libphy: Fixed MDIO Bus: probed
[    1.247739] libphy: orion_mdio_bus: probed
[    1.252707] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    2.331283] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:10:75:26:62:62
[    2.340344] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.346966] ehci-pci: EHCI PCI platform driver
[    2.351528] ehci-orion: EHCI orion driver
[    2.355737] orion-ehci f1050000.ehci: EHCI Host Controller
[    2.361307] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    2.369155] orion-ehci f1050000.ehci: irq 29, io mem 0xf1050000
[    2.390613] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    2.396867] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    2.403720] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.410993] usb usb1: Product: EHCI Host Controller
[    2.415892] usb usb1: Manufacturer: Linux 4.2.0-kirkwood-tld-1 ehci_hcd
[    2.422559] usb usb1: SerialNumber: f1050000.ehci
[    2.428044] hub 1-0:1.0: USB hub found
[    2.431906] hub 1-0:1.0: 1 port detected
[    2.436804] mousedev: PS/2 mouse device common for all mice
[    3.450610] rtc-mv f1010300.rtc: internal RTC not ticking
[    3.456245] i2c /dev entries driver
[    3.462230] hidraw: raw HID events driver (C) Jiri Kosina
[    3.468021] drop_monitor: Initializing network drop monitor service
[    3.474605] NET: Registered protocol family 17
[    3.479219] Key type dns_resolver registered
[    3.484416] Loading compiled-in X.509 certificates
[    3.489260] registered taskstats version 1
[    3.493472] zswap: loading zswap
[    3.496721] zswap: using zbud pool
[    3.500142] zswap: using lzo compressor
[    3.505281] Key type encrypted registered
[    3.509837] hctosys: unable to open rtc device (rtc0)
[    3.516511] Waiting 10 sec before mounting root device...
[   13.530781] VFS: Cannot open root device "LABEL=rootfs" or unknown-block(0,0): error -6
[   13.538825] Please append a correct "root=" boot option; here are the available partitions:
[   13.547271] 1f00            1024 mtdblock0  (driver?)
[   13.552400] 1f01            4096 mtdblock1  (driver?)
[   13.557480] 1f02           32768 mtdblock2  (driver?)
[   13.562601] 1f03          224256 mtdblock3  (driver?)
[   13.567682] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[   13.575984] CPU: 0 PID: 1 Comm: swapper Not tainted 4.2.0-kirkwood-tld-1 #1
[   13.582973] Hardware name: Marvell Kirkwood (Flattened Device Tree)
[   13.589301] [<c0015ebc>] (unwind_backtrace) from [<c0012324>] (show_stack+0x10/0x14)
[   13.597086] [<c0012324>] (show_stack) from [<c05b13c0>] (panic+0x80/0x208)
[   13.604002] [<c05b13c0>] (panic) from [<c07dc284>] (mount_block_root+0x204/0x24c)
[   13.611522] [<c07dc284>] (mount_block_root) from [<c07dc3b8>] (mount_root+0xec/0x118)
[   13.619397] [<c07dc3b8>] (mount_root) from [<c07dc508>] (prepare_namespace+0x124/0x184)
[   13.627445] [<c07dc508>] (prepare_namespace) from [<c07dbea0>] (kernel_init_freeable+0x20c/0x25c)
[   13.636365] [<c07dbea0>] (kernel_init_freeable) from [<c05b0af8>] (kernel_init+0x8/0xe4)
[   13.644502] [<c05b0af8>] (kernel_init) from [<c000ef20>] (ret_from_fork+0x14/0x34)
[   13.652112] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

any thoughts?

Enno
Re: GoflexNet: can not boot from SATA with kernel linux-4.2.0-kirkwood-tld-1-bodhi.tar.bz2
January 05, 2016 12:45PM
1. You still did not have ext3 partition
2. And are you sure the partition label is rootfs ?

If after you made sure the above were correct and it stil did not boot, then interrupt serial console and get the listing of u-boot envs
printenv
and post here.


Further thought, have you tried to boot with USB and then plug in the SATA HDD?

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



Edited 1 time(s). Last edit at 01/05/2016 12:49PM by bodhi.
Hi bodhi,

I just converted the rootfs partition to ext3 to exclude this to be a problem.
Still the kernel does not try to detect the sata.

There is exactly one disc with exactly one partition which is also a primary one and it is the first one (p1) and is of type ext3
(would a fdisk screenshot help to clarify?)

I'm pretty sure the partition is labelled rootfs.
goflexnet enno # file -sL /dev/sd*
/dev/sda:  DOS/MBR boot sector; partition 1 : ID=0x83, active, start-CHS (0x0,1,1), end-CHS (0x3ff,255,32), startsector 32, 62586848 sectors
/dev/sda1: Linux rev 1.0 ext3 filesystem data, UUID=a02db894-e897-4911-b5aa-adf74cfafce1, volume name "rootfs" (large files)
goflexnet enno # blkid /dev/sda1
/dev/sda1: LABEL="rootfs" UUID="a02db894-e897-4911-b5aa-adf74cfafce1" SEC_TYPE="ext2" TYPE="ext3"

Also the problem is NOT about UBOOT not finding the right partition or not loading the (right) kernel. (well, there is only one)

The problem is about the KERNEL-4.2.0 not initialising sata during startup and therefore not finding any sata partitions (well, there is only one).
(whereas the 3.11.1-kirkwood-tld-1 works. but that didn't use devicetree files.)

My problem seems related to http://forum.doozan.com/read.php?2,12096,24412#msg-24412
but embedding the dtb file did not help in my case (unfortunately).

Output of printenv.
U-Boot 2015.10-tld-1 (Nov 06 2015 - 15:49:48 -0800)
Seagate GoFlex Net

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 
GoFlexNet> printenv
arcNumber=3089
baudrate=115200
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec
bootcmd_exec=mw 0x800000 0 1; run load_uimage; if run load_initrd; then if run load_dtb; then bootm 0x800000 0x1100000 0x2f00000; else bootm 0x800000 0x1100000; fi; else if run load_dtb; then bootm 0x800000 - 0x2f00000; else bootm 0x800000; fi; 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-goflexnet.dtb
ethact=egiga0
ethaddr=00:10:75:26:62:62
if_netconsole=ping $serverip
ipaddr=192.168.1.3
led_error=orange blinking
led_exit=green off
led_init=green blinking
load_dtb=echo loading DTB $dtb_file ...; ext2load $bootdev $device 0x2f00000 $dtb_file
load_initrd=echo loading uInitrd ...; ext2load $bootdev $device 0x1100000 /boot/uInitrd
load_uimage=echo loading uImage ...; ext2load $bootdev $device 0x800000 /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 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.1.99
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk $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=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_ready_retry=15

Environment size: 2718/131068 bytes
I highlighted my changes to the default uboot upgarde procedure from from http://forum.doozan.com/read.php?3,12381 using uboot.2015.10-tld-1.goflexnet.bodhi.tar for the uboot and uboot.2014.07-tld-3.environment.bodhi.tar for the envs. (both files are linked on that post)

The loading address of the dtb file is shifted from 0x1C00000 to 0x2F00000 to not overwrite my rather large uInitrd.
Except for magic memory barriers/holes this should be no problem
(Since the dtb file is small, i could also try to squeeze it else. any suggestions?)

still puzzled.

Enno.

I'll try tomorrow to put the kernel on an usb drive and boot from that. But I expect no difference.
Re: GoflexNet: can not boot from SATA with kernel linux-4.2.0-kirkwood-tld-1-bodhi.tar.bz2
January 05, 2016 10:54PM
Enno,

OK so we covered all bases upto the kernel booting.

I took a closer look at your dmesg boot log. Indeed it showed no SATA! This might be due to the SATA brand that you are using. I think booting with USB will be better to troubleshoot this problem.

- Use the basic rootfs as downloaded. Don't change anything.You mentioned your uInitrd is too big, this indicated your rootfs has been modified. This is very likely where the problem was.
- Make sure you are using the DTB for the GoFlex Net.
- Boot with USB while the SSD is plugged in, and if not successful, repeat while SDD is not plugged in.
- Look at dmesg to see if sata_mv driver is running and initialize this SSD at some point.

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



Edited 1 time(s). Last edit at 01/06/2016 04:47AM by bodhi.
Hi bodhi,

thanks for looking at this.

I'm unsure if claiming an unusual sata device helps, as it boots fine with the 3.11.1 kernel.
regardless i tested an ordinary hdd (cloned my disc sector-wise), which gives the same results.

I promised to test booting via usb.
For this used an usb-to-sata converter to boot my disc via usb (so nothing is attached to sata).
the kernel loads but even fails to find anything at the usb side. (sata also gets not initialized).

UBOOT detects the rigth partition, loads the kernel and that fails to see usb OR sata....


I strongly suspect the kernel getting the wrong dtb information. as there a chance they get overwritten somehow after uboot loaded them to memory? I'm referring to lines like:
   Loading Ramdisk to 062af000, end 07b17410 ... OK
   Loading Device Tree to 062a9000, end 062aee78 ... OK
so Uboot is shuffling data around before booting the kernel.... if than the kernel finds an invalid dtb block, it may not know anything about sata/usb/gpio and stuff. (contra: the console is still working (up to the panic) , so it's either configured/detected in a different way or the dtb info is not fully corrupt.)

Then I downloaded the following files (from http://forum.doozan.com/read.php?2,12096):
Debian-3.18.5-kirkwood-tld-1-rootfs-bodhi.tar.bz2 and linux-4.2.0-kirkwood-tld-1-bodhi.tar.bz2
and prepared an usb-stick (/dev/sdc) with 1 primary ext3 partition labelled 'rootfs' and untarred the rootfs file there.
goflexnet / # blkid /dev/sdc*
/dev/sdc: PTTYPE="dos"
/dev/sdc1: LABEL="rootfs" UUID="0e630de5-af89-45ad-8564-7408868f4068" SEC_TYPE="ext2" TYPE="ext3"
Then I updated the kernel files according to that post (untarring in /boot, recreating uImage and uInitrd, etc...).

And it boots fine! (this also means that changing the loading address of the dtb file is no problem.)

Now I have a working reference!

So I copied my uImage /which was created from the same kernel image) to /boot and rebooted.
Again this works like charm. (as expected)

Using my uInitrd the kernel panics as the sata does not get initialized.

So the problem is my initrd.

any links on how this should look like to work?
(I'm going to dissect the differences anyway, but if it is known what needs to be there this would save some time.)

I'm unfamiliar with debian, thats why my rootfs is gentoo.
And I really would like to be able to boot my Gentoo system on my GoflexNet.

Again, thanks for you help!

Enno

PS.: still the question arise: is the size of my uInitrd the problem, or the content?
Also: where in the booting process is it used at all? as root=LABEL=rootfs (formerly root=/dev/sda1) the kernel should not need to tocuh the initrd at all.... strange.
Hi bodhi,

it works now. with the uInitrd from the debian 'stick', i can now boot my gentoo with the newer kernel!
enno@goflexnet ~ $ uname -a
Linux goflexnet 4.2.0-kirkwood-tld-1 #1 PREEMPT Mon Aug 31 23:12:00 PDT 2015 armv5tel Marvell Kirkwood (Flattened Device Tree) GNU/Linux

Thanks you so much!

Enno

PS.: No i need to learn how to recreate a working initrd and a working kernel. (any hints?)
Now I should learn how to recreate a working initrd and a working kernel. (any hints?)

Enno
Re: GoflexNet: can not boot from SATA with kernel linux-4.2.0-kirkwood-tld-1-bodhi.tar.bz2
January 06, 2016 06:28AM
Enno Wrote:
-------------------------------------------------------
> Now I should learn how to recreate a
> working initrd and a working kernel. (any hints?)
>
> Enno

Cool! Just what I expected. It's a big clue when you said it's too big.

Regenerate initrd after you add whatever needed (btrfs,...) then look at the size. Pls post that file and size here.

To regenerate initrd (this will regenerate a new initrd image base on the running kernel):
update-initramfs -u
And then to regenerate uInitrd, use the mkimage command as specified in the kernel/rootfs thread.

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



Edited 1 time(s). Last edit at 01/06/2016 08:38AM 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: