Welcome! Log In Create A New Profile

Advanced

Debian on WD MyCloud EX 4100

Posted by saschadd 
Re: Debian on WD MyCloud EX 4100
June 03, 2017 04:29PM
@hmartin,

Could you boot my uImage/zImage and peacemaker's uInitrd? does peacemaker's uImage/zImage have the DTB embedded in it?

I think the USB does not get powered up. So is back to my previous thinking that the DTS need USB regulator. Can you post the DTS that was compiled in peacemake's kernel?

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



Edited 2 time(s). Last edit at 06/03/2017 04:34PM by bodhi.
Re: Debian on WD MyCloud EX 4100
June 03, 2017 04:58PM
Quote
bodhi
Could you boot my uImage/zImage and peacemaker's uInitrd?

Okay... I mean the uInitrd from cschil doesn't include any kernel modules. I'm happy to experiment, but this is akin to me suggesting you remove modules ;-)

It's also LZMA compressed, yours is gzip compressed:
DECIMAL       HEXADECIMAL     DESCRIPTION
--------------------------------------------------------------------------------
0             0x0             uImage header, header size: 64 bytes, header CRC: 0xD72DF0B2, created: 2017-03-14 19:05:31, image size: 3344286 bytes, Data Address: 0x0, Entry Point: 0x0, data CRC: 0xA23DCED4, OS: Linux, CPU: ARM, image type: RAMDisk Image, compression type: lzma, image name: "Initrd"
64            0x40            LZMA compressed data, properties: 0x5D, dictionary size: 16777216 bytes, uncompressed size: -1 bytes


Quote
bodhi
does peacemaker's uImage/zImage have the DTB embedded in it?

I haven't compiled the kernel myself (yet). But the compilation instructions include appending DTB to the kernel. So I would assume they are the same, the DTB is embedded.

Quote
bodhi
I think the USB does not get powered up. So is back to my previous thinking that the DTS need USB regulator. Can you post the DTS that was compiled in peacemake's kernel?

My USB stick was not detected at all when I put it into the front USB port on the EX2100. Not even u-boot saw it. When I moved it to the back port, both u-boot and the kernel successfully mounted it.

Updating in a bit when I've tested your zImage and the uInitrd from cschil.

Edit: the DTS for the kernel is here: https://github.com/c-MM/mcm-daemon/blob/master/kernel/4.9.30/armada-385-wd.dts



Edited 1 time(s). Last edit at 06/03/2017 04:59PM by hmartin.
Re: Debian on WD MyCloud EX 4100
June 03, 2017 05:04PM
@hmartin,

Quote

My USB stick was not detected at all when I put it into the front USB port on the EX2100. Not even u-boot saw it. When I moved it to the back port, both u-boot and the kernel successfully mounted it.

Edit: the DTS for the kernel is here: https://github.com/c-MM/mcm-daemon/blob/master/kernel/4.9.30/armada-385-wd.dts

Thanks! that DTS is basically the same one I use, but older.

@saschadd, use the back USB port?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on WD MyCloud EX 4100
June 03, 2017 05:38PM
Quote
hmartin
Updating in a bit when I've tested your zImage and the uInitrd from cschil.

Bodhi, the issue seems to be with your kernel, not the initrd.

Booting your zImage/dtb with cschil's uInitrd, panic:
Marvell>> usb reset
(Re)start USB...
USB0:   Port (usbActive) : 0	Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
Marvell>> ext2load usb '0:1' 0x2000000 /boot/zImage-4.9.0-mvebu-tld-12
3904400 bytes read in 345 ms (10.8 MiB/s)
Marvell>> ext2load usb '0:1' 0x3900000 /boot/uInitrd-wd385
3344350 bytes read in 406 ms (7.9 MiB/s)
Marvell>> ext2load usb '0:1' 0x1000000 /boot/dts/armada-385-wd-ex4100.dtb
14861 bytes read in 599 ms (23.4 KiB/s)
Marvell>> setenv bootargs "console=ttyS0,115200 root=/bin/sh rootdelay=10 $mtdparts earlyprintk=serial"
Marvell>> setenv fdt_skip_update yes
Marvell>> bootz 0x2000000 0x3900000 0x1000000
## Loading init Ramdisk from Legacy Image at 03900000 ...
   Image Name:   Initrd
   Created:      2017-03-14  19:05:31 UTC
   Image Type:   ARM Linux RAMDisk Image (lzma compressed)
   Data Size:    3344286 Bytes = 3.2 MiB
   Load Address: 00000000
   Entry Point:  00000000
## Flattened Device Tree blob at 01000000
   Booting using the fdt blob at 0x01000000
   Loading Ramdisk to 3f69d000, end 3f9cd79e ... OK
   Loading Device Tree to 00ff9000, end 00fffa0c ... OK

   Skipping Device Tree update ('fdt_skip_update' = yes)

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.9.0-mvebu-tld-12 (root@tldDebianVM) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4) ) #2 SMP PREEMPT Wed Feb 1 02:31:29 PST 2017
[    0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt:Machine model: WD My Cloud EX4100
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 15 pages/cpu @ef7cd000 s30796 r8192 d22452 u61440
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260608
[    0.000000] Kernel command line: console=ttyS0,115200 root=/bin/sh rootdelay=10 mtdparts=armada-nand:5m(u-boot)ro,5m@5m(kernel),5m@10m(uRamdisk),441m@15m(image.cfs),15m@456m(rescue_fw),20m@471m(config),10m@491m(reserve1),10m@501m(reserve2) earlyprintk=serial
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 1022724K/1048576K available (8192K kernel code, 690K rwdata, 2052K rodata, 1024K init, 386K bss, 25852K reserved, 0K cma-reserved, 258876K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0900000   (9184 kB)
[    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
[    0.000000]       .data : 0xc0d00000 - 0xc0daca28   ( 691 kB)
[    0.000000]        .bss : 0xc0daca28 - 0xc0e0d4f8   ( 387 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] 	Build-time adjustment of leaf fanout to 32.
[    0.000000] 	RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=2
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] mvebu_mbus: [Firmware Warn]: deprecated mbus-mvebu Device Tree, suspend/resume will not work
[    0.000000] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000] L2C-310 D prefetch enabled, offset 1 lines
[    0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000] L2C-310 Coherent cache controller enabled, 16 ways, 1024 kB
[    0.000000] L2C-310 Coherent: CACHE_ID 0x410054c9, AUX_CTRL 0x56070001
[    0.000000] Switching to timer-based delay loop, resolution 40ns
[    0.000004] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 85899345900ns
[    0.007883] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.019111] Console: colour dummy device 80x30
[    0.023627] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[    0.034035] pid_max: default: 32768 minimum: 301
[    0.038803] Security Framework initialized
[    0.043004] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.049680] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.057257] CPU: Testing write buffer coherency: ok
[    0.062348] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.068092] Setting up static identity map for 0x100000 - 0x100058
[    0.074409] mvebu-soc-id: MVEBU SoC ID=0x6820, Rev=0x4
[    0.079682] mvebu-pmsu: Initializing Power Management Service Unit
[    0.283615] Booting CPU 1
[    0.286486] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.286544] Brought up 2 CPUs
[    0.295306] SMP: Total of 2 processors activated (100.00 BogoMIPS).
[    0.301626] CPU: All CPU(s) started in SVC mode.
[    0.306895] devtmpfs: initialized
[    0.312574] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.320557] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.330496] prandom: seed boundary self test passed
[    0.337459] prandom: 100 self tests passed
[    0.341620] pinctrl core: initialized pinctrl subsystem
[    0.347652] NET: Registered protocol family 16
[    0.352791] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.383465] cpuidle: using governor ladder
[    0.413432] cpuidle: using governor menu
[    0.417514] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.425589] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.431588] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.439748] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.504481] vgaarb: loaded
[    0.507508] SCSI subsystem initialized
[    0.511818] usbcore: registered new interface driver usbfs
[    0.517453] usbcore: registered new interface driver hub
[    0.522890] usbcore: registered new device driver usb
[    0.528241] media: Linux media interface: v0.10
[    0.532897] Linux video capture interface: v2.00
[    0.538525] clocksource: Switched to clocksource armada_370_xp_clocksource
[    0.574692] VFS: Disk quotas dquot_6.6.0
[    0.578774] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.594119] NET: Registered protocol family 2
[    0.598988] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.606129] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.612708] TCP: Hash tables configured (established 8192 bind 8192)
[    0.619167] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.625162] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.631692] NET: Registered protocol family 1
[    0.636389] RPC: Registered named UNIX socket transport module.
[    0.642384] RPC: Registered udp transport module.
[    0.647150] RPC: Registered tcp transport module.
[    0.651925] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.658568] Unpacking initramfs...
[    0.662043] Unable to handle kernel paging request at virtual address ff69d000
[    0.669326] pgd = c0004000
[    0.672103] [ff69d000] *pgd=2f3b9811, *pte=00000000, *ppte=00000000
[    0.678458] Internal error: Oops: 7 [#1] PREEMPT SMP ARM
[    0.683828] Modules linked in:
[    0.686964] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.9.0-mvebu-tld-12 #2
[    0.693975] Hardware name: Marvell Armada 380/385 (Device Tree)
[    0.699949] task: ef098680 task.stack: ef09a000
[    0.704546] PC is at unpack_to_rootfs+0xc4/0x2bc
[    0.709226] LR is at kmem_cache_alloc_trace+0x3c/0x19c
[    0.714425] pc : [<c0c01e70>]    lr : [<c0232bec>]    psr: 20000013
[    0.714425] sp : ef09beb0  ip : c0dd0df8  fp : 00000000
[    0.726016] r10: c0daca84  r9 : c0d9f0c8  r8 : 00000000
[    0.731300] r7 : 00000000  r6 : ff69d000  r5 : 0033079e  r4 : c0c518b8
[    0.737879] r3 : 00000000  r2 : 00000000  r1 : ef7d7330  r0 : 00000000
[    0.744459] Flags: nzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
[    0.751644] Control: 10c5387d  Table: 0000404a  DAC: 00000051
[    0.757446] Process swapper/0 (pid: 1, stack limit = 0xef09a220)
[    0.763507] Stack: (0xef09beb0 to 0xef09c000)
[    0.767928] bea0:                                     c0c63bd4 c0c5183c 00000000 c0171888
[    0.776152] bec0: 00000000 00000000 00000000 c01ecfd4 c0a069d8 c0daca80 c0daca7c 00000000
[    0.784376] bee0: 00000101 c0daca40 c0c63bd4 c0c5183c 00000000 c0c021b0 ffffe000 c0c02160
[    0.792599] bf00: 00000000 c01019bc ef0fd980 c0903c60 c0dd3aa4 cccccccd c0daca00 c029cc94
[    0.800823] bf20: efffcd4f efffcd5b c0b0065c c013f774 00000003 00000001 c0aff25c 00000005
[    0.809046] bf40: 00000005 c0b00670 00000100 c0b00670 c0d0dbc0 00000006 c0daca40 00000006
[    0.817269] bf60: c0daca40 c0c51830 00000101 c0daca40 c0c63bd4 c0c00e04 00000005 00000005
[    0.825492] bf80: 00000000 c0c005b4 00000000 c0834b6c 00000000 00000000 00000000 00000000
[    0.833715] bfa0: 00000000 c0834b74 00000000 c010c338 00000000 00000000 00000000 00000000
[    0.841937] bfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    0.850160] bfe0: 00000000 00000000 00000000 00000000 00000013 00000000 ffffffff ffffffff
[    0.858391] [<c0c01e70>] (unpack_to_rootfs) from [<c0c021b0>] (populate_rootfs+0x50/0xb4)
[    0.866617] [<c0c021b0>] (populate_rootfs) from [<c01019bc>] (do_one_initcall+0xa8/0x150)
[    0.874846] [<c01019bc>] (do_one_initcall) from [<c0c00e04>] (kernel_init_freeable+0x190/0x258)
[    0.883590] [<c0c00e04>] (kernel_init_freeable) from [<c0834b74>] (kernel_init+0x8/0x10c)
[    0.891818] [<c0834b74>] (kernel_init) from [<c010c338>] (ret_from_fork+0x14/0x3c)
[    0.899438] Code: e3530000 0a000053 e1c421d0 e1cd21f0 (e5d63000) 
[    0.905626] ---[ end trace cc5ec65b7b2a5d71 ]---
[    0.910334] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[    0.910334] 
[    0.919597] CPU1: stopping
[    0.922379] CPU: 1 PID: 0 Comm: swapper/1 Tainted: G      D         4.9.0-mvebu-tld-12 #2
[    0.930600] Hardware name: Marvell Armada 380/385 (Device Tree)
[    0.936584] [<c01160bc>] (unwind_backtrace) from [<c0110bb4>] (show_stack+0x10/0x14)
[    0.944378] [<c0110bb4>] (show_stack) from [<c04ba5a4>] (dump_stack+0x70/0x8c)
[    0.951654] [<c04ba5a4>] (dump_stack) from [<c0113f90>] (handle_IPI+0x16c/0x350)
[    0.959101] [<c0113f90>] (handle_IPI) from [<c0101520>] (gic_handle_irq+0x78/0x94)
[    0.966720] [<c0101520>] (gic_handle_irq) from [<c011160c>] (__irq_svc+0x6c/0xa8)
[    0.974250] Exception stack(0xef0c5f98 to 0xef0c5fe0)
[    0.979360] 5f80:                                                       00000001 00000000
[    0.987584] 5fa0: 00000000 c011e6c0 00000000 00000000 ef0c4000 c0d0412c 00000002 ef0c5ff0
[    0.995807] 5fc0: c0d04194 00000000 00000001 ef0c5fe8 c010d400 c010d404 60000013 ffffffff
[    1.004032] [<c011160c>] (__irq_svc) from [<c010d404>] (arch_cpu_idle+0x2c/0x38)
[    1.011478] [<c010d404>] (arch_cpu_idle) from [<c015ef04>] (cpu_startup_entry+0xf0/0x1d0)
[    1.019703] [<c015ef04>] (cpu_startup_entry) from [<0010166c>] (0x10166c)
[    1.026545] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[    1.026545]

Booting peacemaker's kernel with your uInitrd/dtb, success:
Marvell>> usb reset      
(Re)start USB...
USB0:   Port (usbActive) : 0	Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
Marvell>> ext2load usb '0:1' 0xa00000 /boot/uimage.bin
4327860 bytes read in 492 ms (8.4 MiB/s)
Marvell>> ext2load usb '0:1' 0xf00000 /boot/uInitrd                      
6210503 bytes read in 516 ms (11.5 MiB/s)
Marvell>> setenv bootargs "console=ttyS0,115200 root=/dev/sda1 rootdelay=10 $mtdparts earlyprintk=serial"
Marvell>> setenv fdt_skip_update yes
Marvell>> bootm 0xa00000 0xf00000
## Booting image at 00a00000 ...
## Booting kernel from Legacy Image at 00a00000 ...
   Image Name:   WD-385
   Created:      2017-01-20  15:39:17 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4327796 Bytes = 4.1 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 00f00000 ...
   Image Name:   initramfs-4.9.0-mvebu-tld-12
   Created:      2017-02-03  23:57:32 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    6210439 Bytes = 5.9 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.8.12 (mm@ovid) (gcc version 4.9.2 ( 4.9.2-10) ) #31 SMP Sun Dec 18 17:34:24 CET 2016
[    0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt:Machine model: Western Digital MyCloud EX2 Ultra
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 14 pages/cpu @ef7cc000 s28032 r8192 d21120 u57344
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260608
[    0.000000] Kernel command line: console=ttyS0,115200 libata.force=3.0G root=LABEL=rootfs earlyprintk console=ttyS0,115200 root=/dev/sda1 rootdelay=10 mtdparts=armada-nand:5m(u-boot)ro,5m@5m(kernel),5m@10m(uRamdisk),441m@15m(image.cfs),15m@456m(rescue_fw),20m@471m(config),10m@491m(reserve1),10m@501m(reserve2) earlyprintk=serial
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 1023324K/1048576K available (6144K kernel code, 390K rwdata, 1604K rodata, 1024K init, 355K bss, 25252K reserved, 0K cma-reserved, 262144K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0700000   (7136 kB)
[    0.000000]       .init : 0xc0900000 - 0xc0a00000   (1024 kB)
[    0.000000]       .data : 0xc0a00000 - 0xc0a61aac   ( 391 kB)
[    0.000000]        .bss : 0xc0a63000 - 0xc0abbdb8   ( 356 kB)
[    0.000000] Hierarchical RCU implementation.
[    0.000000] 	Build-time adjustment of leaf fanout to 32.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] mvebu_mbus: [Firmware Warn]: deprecated mbus-mvebu Device Tree, suspend/resume will not work
[    0.000000] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000] L2C-310 D prefetch enabled, offset 1 lines
[    0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000] L2C-310 Coherent cache controller enabled, 16 ways, 1024 kB
[    0.000000] L2C-310 Coherent: CACHE_ID 0x410054c9, AUX_CTRL 0x56070001
[    0.000000] Switching to timer-based delay loop, resolution 40ns
[    0.000004] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 85899345900ns
[    0.000012] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.000354] Console: colour dummy device 80x30
[    0.000368] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[    0.000375] pid_max: default: 32768 minimum: 301
[    0.000480] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000486] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000868] CPU: Testing write buffer coherency: ok
[    0.000993] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.001009] Setting up static identity map for 0x100000 - 0x100058
[    0.001195] mvebu-soc-id: MVEBU SoC ID=0x6820, Rev=0x4
[    0.001283] mvebu-pmsu: Initializing Power Management Service Unit
[    0.001950] Booting CPU 1
[    0.002147] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.002191] Brought up 2 CPUs
[    0.002198] SMP: Total of 2 processors activated (100.00 BogoMIPS).
[    0.002202] CPU: All CPU(s) started in SVC mode.
[    0.002678] devtmpfs: initialized
[    0.004881] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.004996] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.005030] xor: measuring software checksum speed
[    0.099773]    arm4regs  :  2089.200 MB/sec
[    0.199671]    8regs     :  1580.800 MB/sec
[    0.299570]    32regs    :  1672.000 MB/sec
[    0.399472]    neon      :  1543.600 MB/sec
[    0.399476] xor: using function: arm4regs (2089.200 MB/sec)
[    0.399483] pinctrl core: initialized pinctrl subsystem
[    0.399991] NET: Registered protocol family 16
[    0.400663] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.439473] cpuidle: using governor ladder
[    0.439606] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.439611] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.649475] raid6: int32x1  gen()   170 MB/s
[    0.819054] raid6: int32x1  xor()   192 MB/s
[    0.989027] raid6: int32x2  gen()   232 MB/s
[    1.158763] raid6: int32x2  xor()   219 MB/s
[    1.328696] raid6: int32x4  gen()   232 MB/s
[    1.498510] raid6: int32x4  xor()   181 MB/s
[    1.668234] raid6: int32x8  gen()   233 MB/s
[    1.838161] raid6: int32x8  xor()   177 MB/s
[    2.007915] raid6: neonx1   gen()   978 MB/s
[    2.177696] raid6: neonx1   xor()   753 MB/s
[    2.347544] raid6: neonx2   gen()  1089 MB/s
[    2.517352] raid6: neonx2   xor()   959 MB/s
[    2.687204] raid6: neonx4   gen()   748 MB/s
[    2.857017] raid6: neonx4   xor()   702 MB/s
[    3.026970] raid6: neonx8   gen()   434 MB/s
[    3.196672] raid6: neonx8   xor()   322 MB/s
[    3.196676] raid6: using algorithm neonx2 gen() 1089 MB/s
[    3.196680] raid6: .... xor() 959 MB/s, rmw enabled
[    3.196683] raid6: using intx1 recovery algorithm
[    3.196966] vgaarb: loaded
[    3.197118] SCSI subsystem initialized
[    3.197363] usbcore: registered new interface driver usbfs
[    3.197394] usbcore: registered new interface driver hub
[    3.197433] usbcore: registered new device driver usb
[    3.198386] clocksource: Switched to clocksource armada_370_xp_clocksource
[    3.210623] VFS: Disk quotas dquot_6.6.0
[    3.210671] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    3.215694] NET: Registered protocol family 2
[    3.216056] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    3.216109] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    3.216188] TCP: Hash tables configured (established 8192 bind 8192)
[    3.216236] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    3.216262] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    3.216362] NET: Registered protocol family 1
[    3.216596] RPC: Registered named UNIX socket transport module.
[    3.216601] RPC: Registered udp transport module.
[    3.216605] RPC: Registered tcp transport module.
[    3.216608] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    3.216723] Trying to unpack rootfs image as initramfs...
[    3.453759] Freeing initrd memory: 6068K (c0f00000 - c14ed000)
[    3.454009] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    3.455299] futex hash table entries: 512 (order: 3, 32768 bytes)
[    3.455771] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[    3.456079] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    3.458443] NET: Registered protocol family 38
[    3.458454] async_tx: api initialized (async)
[    3.458460] Key type asymmetric registered
[    3.458490] bounce: pool size: 64 pages
[    3.458535] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    3.458542] io scheduler noop registered (default)
[    3.459220] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    3.460166] mvebu-pcie soc:pcie-controller: PCI host bridge to bus 0000:00
[    3.460175] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    3.460182] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    3.460188] pci_bus 0000:00: root bus resource [bus 00-ff]
[    3.460467] PCI: bus0: Fast back to back transfers disabled
[    3.460475] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    3.460484] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    3.460558] PCI: bus1: Fast back to back transfers enabled
[    3.460629] PCI: bus2: Fast back to back transfers enabled
[    3.460655] pci 0000:00:01.0: PCI bridge to [bus 01]
[    3.460664] pci 0000:00:02.0: PCI bridge to [bus 02]
[    3.460778] mv_xor f1060800.xor: Marvell shared XOR driver
[    3.528806] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    3.529767] mv_xor f1060900.xor: Marvell shared XOR driver
[    3.598786] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    3.631123] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    3.632181] console [ttyS0] disabled
[    3.652267] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 23, base_baud = 12500000) is a 16550A
[    4.457806] console [ttyS0] enabled
[    4.481874] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 24, base_baud = 12500000) is a 16550A
[    4.496403] brd: module loaded
[    4.502447] loop: module loaded
[    4.505966] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    4.515080] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs 
[    4.524526] scsi host0: ahci-mvebu
[    4.528177] scsi host1: ahci-mvebu
[    4.531820] ata1: FORCE: PHY spd limit set to 3.0Gbps
[    4.536895] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 42
[    4.544861] ata2: FORCE: PHY spd limit set to 3.0Gbps
[    4.549946] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 42
[    4.558390] pxa3xx-nand f10d0000.flash: This platform can't do DMA on this device
[    4.566267] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xdc
[    4.572707] nand: Hynix H27U4G8F2DTR-BC
[    4.576559] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    4.584174] pxa3xx-nand f10d0000.flash: ECC strength 16, ECC step size 2048
[    4.591368] Bad block table found at page 262080, version 0x01
[    4.597551] Bad block table found at page 262016, version 0x01
[    4.603584] nand_read_bbt: bad block at 0x000001760000
[    4.608767] nand_read_bbt: bad block at 0x00000dec0000
[    4.613935] nand_read_bbt: bad block at 0x000017de0000
[    4.619150] 8 ofpart partitions found on MTD device pxa3xx_nand-0
[    4.625268] Creating 8 MTD partitions on "pxa3xx_nand-0":
[    4.630694] 0x000000000000-0x000000500000 : "U-Boot"
[    4.636215] 0x000000500000-0x000000a00000 : "uImage"
[    4.641697] 0x000000a00000-0x000000f00000 : "uRamdisk"
[    4.647339] 0x000000f00000-0x00000c800000 : "image.cfs"
[    4.653557] 0x00000c800000-0x00000d700000 : "rescue fw"
[    4.659319] 0x00000d700000-0x00000eb00000 : "config"
[    4.664830] 0x00000eb00000-0x00000f500000 : "reserve1"
[    4.670510] 0x00000f500000-0x00000ff00000 : "reserve2"
[    4.676506] libphy: Fixed MDIO Bus: probed
[    4.680833] libphy: orion_mdio_bus: probed
[    4.691298] mvneta f1034000.ethernet eth0: Using random mac address fa:0f:9f:ff:ff:ff
[    4.699252] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    4.705807] ehci-pci: EHCI PCI platform driver
[    4.710322] ehci-orion: EHCI orion driver
[    4.714637] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    4.719993] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 1
[    4.727575] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    4.736165] xhci-hcd f10f0000.usb3: irq 45, io mem 0xf10f0000
[    4.742383] hub 1-0:1.0: USB hub found
[    4.746169] hub 1-0:1.0: 1 port detected
[    4.750317] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    4.755659] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    4.763312] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    4.771856] hub 2-0:1.0: USB hub found
[    4.775644] hub 2-0:1.0: 1 port detected
[    4.779847] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    4.785201] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 3
[    4.792787] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    4.801375] xhci-hcd f10f8000.usb3: irq 46, io mem 0xf10f8000
[    4.807546] hub 3-0:1.0: USB hub found
[    4.811353] hub 3-0:1.0: 1 port detected
[    4.815481] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    4.820836] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    4.828417] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[    4.836908] hub 4-0:1.0: USB hub found
[    4.840702] hub 4-0:1.0: 1 port detected
[    4.844940] usbcore: registered new interface driver usb-storage
[    4.851398] armada38x-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[    4.859102] i2c /dev entries driver
[    4.863277] wt_power_off f1012100.poweroff: installing pm_power_off handler
[    4.870304] wt_power_off f1012100.poweroff: replacing arm_pm_restart (mvebu_restart)
[    4.878397] orion_wdt: Initial timeout 171 sec
[    4.882943] md: linear personality registered for level -1
[    4.888470] md: raid0 personality registered for level 0
[    4.890509] ata1: SATA link down (SStatus 0 SControl 320)
[    4.890543] ata2: SATA link down (SStatus 0 SControl 320)
[    4.904652] md: raid1 personality registered for level 1
[    4.909995] md: raid10 personality registered for level 10
[    4.915605] md: raid6 personality registered for level 6
[    4.920963] md: raid5 personality registered for level 5
[    4.926296] md: raid4 personality registered for level 4
[    4.931782] device-mapper: ioctl: 4.35.0-ioctl (2016-06-23) initialised: dm-devel@redhat.com
[    4.940367] device-mapper: raid: Loading target version 1.9.1
[    4.946297] ledtrig-cpu: registered to indicate activity on CPUs
[    4.953146] marvell-cesa f1090000.crypto: CESA device successfully registered
[    4.960485] usbcore: registered new interface driver usbhid
[    4.966080] usbhid: USB HID core driver
[    4.970297] NET: Registered protocol family 10
[    4.975330] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    4.982038] NET: Registered protocol family 17
[    4.986506] 8021q: 802.1Q VLAN Support v1.8
[    4.990866] ThumbEE CPU extension supported.
[    4.995156] Registering SWP/SWPB emulation handler
[    5.000827] armada38x-rtc f10a3800.rtc: setting system clock to 2017-06-03 22:32:14 UTC (1496529134)
[    5.011699] Freeing unused kernel memory: 1024K (c0900000 - c0a00000)
Loading, please wait...
[    5.054075] systemd-udevd[1318]: starting version 215
[    5.060004] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    5.108453] usb 1-1: new high-speed USB device number 2 using xhci-hcd
[    5.292107] usb-storage 1-1:1.0: USB Mass Storage device detected
[    5.298364] scsi host2: usb-storage 1-1:1.0
modprobe: can't change directory to '4.8.12': No such file or directory
[    6.310429] scsi 2:0:0:0: Direct-Access     Verbatim MICRO PLUS       PMAP PQ: 0 ANSI: 4
[    6.319115] sd 2:0:0:0: Attached scsi generic sg0 type 0
[    6.324969] sd 2:0:0:0: [sda] 15124992 512-byte logical blocks: (7.74 GB/7.21 GiB)
[    6.332762] sd 2:0:0:0: [sda] Write Protect is off
[    6.337717] sd 2:0:0:0: [sda] No Caching mode page found
[    6.343065] sd 2:0:0:0: [sda] Assuming drive cache: write through
[    6.351797]  sda: sda1
[    6.357215] sd 2:0:0:0: [sda] Attached SCSI removable disk
[    6.395520] random: fast init done
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
modprobe: can't change directory to '4.8.12': No such file or directory
Begin: Will now check root file system ... fsck from util-linux 2.25.2
fsck: error 2 (No such file or directory) while executing fsck.ext3 for /dev/sda1
fsck exited with status code 8
done.
Warning: File system check failed but did not detect errors
[   20.391092] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   20.408182] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[....] Starting the hotplug events dispatcher: udevd[   21.129672] systemd-udevd[1474]: starting version 215
. ok 
[ ok ] Synthesizing the initial hotplug events...done.
[ ok ] Waiting for /dev to be fully populated...done.
[ ok ] Activating swap...done.
[   22.632075] EXT4-fs (sda1): re-mounted. Opts: (null)
[ ok ] Activating lvm and md swap...done.
[....] Checking file systems...fsck from util-linux 2.25.2
done.
[ ok ] Cleaning up temporary files... /tmp.
[ ok ] Mounting local filesystems...done.
[ ok ] Activating swapfile swap...done.
[ ok ] Cleaning up temporary files....
[ ok ] Setting kernel variables ...done.
[   23.729466] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.3.1
Copyright 2004-2014 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/fa:0f:9f:ff:ff:ff
Sending on   LPF/eth0/fa:0f:9f:ff:ff:ff
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
[   27.909048] mvneta f1034000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[   27.916930] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPOFFER from 192.168.1.1
DHCPACK from 192.168.1.1
bound to 192.168.1.100 -- renewal in 18577 seconds.
done.
[ ok ] Starting rpcbind daemon....
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
2395 (syslogd)
. ok 
[ ok ] Starting NTP server: ntpd.
[ ok ] Starting periodic command scheduler: cron.
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[ ok ] Starting system message bus: dbus.
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
2394 (klogd)
. ok 
[   34.002319] random: crng init done

Debian GNU/Linux 8 debian ttyS0

debian login:

Here is the config of peacemaker's kernel: https://github.com/c-MM/mcm-daemon/blob/master/kernel/4.9.30/config.txt

Edit: this config is for 4.9.30, but the binary kernel from peacemaker is 4.8.12. I will compile 4.9.30 with the above config tomorrow and test again. I am way too tired, making stupid mistakes!



Edited 5 time(s). Last edit at 06/03/2017 05:43PM by hmartin.
Re: Debian on WD MyCloud EX 4100
June 03, 2017 06:06PM
@hmartin,

I see. There is nothing wrong with the kernel actually.

It's the bootcmd (bootz vs bootm, and the different load addresses). This stock u-boot really sucks :) Exists in here was a ramdisk relocation problem that was solved in 2016. And this bootm has a limitation of 8M (so that caused me to abandon a really good booting scheme).

But I think I got a good clue there from your run.

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



Edited 2 time(s). Last edit at 06/03/2017 06:12PM by bodhi.
Re: Debian on WD MyCloud EX 4100
June 03, 2017 06:32PM
@all,

Please try this. And post your serial console log.

1. Mount the USB rootfs on another Linux box or in stock OS. Assuming it is mounted at /media/sdb1.

cd /media/sdb1/boot
cp -a zImage-4.9.0-mvebu-tld-12  zImage.fdt
cat dts/armada-385-wd-ex4100.dtb  >> zImage.fdt
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-4.9.0-mvebu-tld-12 -d zImage.fdt  uImage
sync
umount /media/sdb1


2. Plug in the USB rootfs to the rear USB port, power up, interrupt serial console and

setenv bootdev usb
setenv device '0:1'
setenv load_initrd_addr 0xf00000
setenv load_image_addr 0xa00000
setenv load_initrd 'echo loading uInitrd ...; ext2load $bootdev $device $load_initrd_addr /boot/uInitrd'
setenv load_image 'echo loading Image ...; ext2load $bootdev $device $load_image_addr /boot/uImage'
setenv usb_set_bootargs 'setenv bootargs "console=ttyS0,115200 root=/dev/sda1 rootdelay=10 $mtdparts earlyprintk=serial"'
setenv usb_bootcmd 'echo Booting from USB ...; setenv fdt_skip_update yes; usb start; run load_image; run usb_set_bootargs; bootm $load_image_addr $load_initrd_addr'
setenv bootcmd_usb 'usb start; run usb_set_bootargs; run usb_bootcmd; reset'
printenv
run bootcmd_usb

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



Edited 3 time(s). Last edit at 06/03/2017 07:24PM by bodhi.
Re: Debian on WD MyCloud EX 4100
June 04, 2017 03:45AM
Hi bodhi,

I followed your instructions, but there is a Ramdisk error and u-boot falls back to loading rescue environment from NAND:
Marvell>> setenv bootdev usb
Marvell>> setenv device '0:1'
Marvell>> setenv load_initrd_addr 0xf00000
Marvell>> setenv load_image_addr 0xa00000
Marvell>> setenv load_initrd 'echo loading uInitrd ...; ext2load $bootdev $device $load_initrd_addr /boot/uInitrd'
Marvell>> setenv load_image 'echo loading Image ...; ext2load $bootdev $device $load_image_addr /boot/uImage.fdt'
Marvell>> setenv usb_set_bootargs 'setenv bootargs "console=ttyS0,115200 root=/dev/sda1 rootdelay=10 $mtdparts earlyprintk=serial"'
Marvell>> setenv usb_bootcmd 'echo Booting from USB ...; setenv fdt_skip_update yes; usb start; run load_image; run usb_set_bootargs; bootm $load_image_addr $load_initrd_addr'
Marvell>> setenv bootcmd_usb 'usb start; run usb_set_bootargs; run usb_bootcmd; reset'
Marvell>> run bootcmd_usb
(Re)start USB...
USB0:   Port (usbActive) : 0	Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
Booting from USB ...
(Re)start USB...
USB0:   Port (usbActive) : 0	Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
loading Image ...
3919325 bytes read in 477 ms (7.8 MiB/s)
## Booting image at 00a00000 ...
## Booting kernel from Legacy Image at 00a00000 ...
   Image Name:   Linux-4.9.0-mvebu-tld-12
   Created:      2017-06-04   8:35:55 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3919261 Bytes = 3.7 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
### Ramdisk error, Loading Rescure Firmware from NAND Flash ###

NAND read: device 0 offset 0x1c800800, size 0xf00000
 15728640 bytes read: OK
## Booting image at 00a00000 ...
## Booting kernel from Legacy Image at 00a00000 ...
   Image Name:   Linux-388
   Created:      2014-12-29  12:52:19 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3934273 Bytes = 3.8 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 00e00000 ...
   Image Name:   Ramdisk
   Created:      2014-12-30   8:33:02 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    6862567 Bytes = 6.5 MiB
   Load Address: 00e00000
   Entry Point:  00e00000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

I followed your instructions as requested (only changed uImage to uImage.fdt so I didn't have to replace the existing uImage file on disk):
$ cat zImage-4.9.0-mvebu-tld-12 dts/armada-385-wd-ex4100.dtb >> zImage.fdt
$ mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-4.9.0-mvebu-tld-12 -d zImage.fdt  uImage.fdt
Image Name:   Linux-4.9.0-mvebu-tld-12
Created:      Sun Jun  4 10:35:55 2017
Image Type:   ARM Linux Kernel Image (uncompressed)
Data Size:    3919261 Bytes = 3827.40 KiB = 3.74 MiB
Load Address: 00008000
Entry Point:  00008000
Re: Debian on WD MyCloud EX 4100
June 04, 2017 03:46AM
bodhi Wrote:
> @saschadd, use the back USB port?

tried the back ports with replaced /boot/uInitrd with this file https://github.com/cschil/WD-385-initrd/raw/master/uInitrd-wd385

back port 1 output

Marvell>> setenv bootdev usb
Marvell>> setenv device '0:1'
Marvell>> setenv dtb_file '/boot/dts/armada-385-wd-ex4100.dtb'
Marvell>> setenv load_dtb_addr 0x1000000
Marvell>> setenv load_initrd_addr 0x3900000
Marvell>> setenv load_image_addr 0x02000000
Marvell>> setenv load_dtb 'echo loading DTB $dtb_file ...; ext2load $bootdev $device $load_dtb_addr $dtb_file'
Marvell>> setenv load_initrd 'echo loading uInitrd ...; ext2load $bootdev $device $load_initrd_addr /boot/uInitrd'
Marvell>> setenv load_image 'echo loading Image ...; ext2load $bootdev $device $load_image_addr /boot/zImage'
Marvell>> setenv usb_set_bootargs 'setenv bootargs "console=ttyS0,115200 root=/dev/sda1 rootdelay=10 $mtdparts earlyprintk=serial"'
Marvell>> setenv usb_bootcmd 'echo Booting from USB ...; setenv fdt_skip_update yes; usb start; run load_image; run load_dtb; run usb_set_bootargs; bootz $load_image_addr -  $load_dtb_addr'
Marvell>> setenv bootcmd_usb 'usb start; run usb_set_bootargs; run usb_bootcmd; reset'
Marvell>> run bootcmd_usb
(Re)start USB...
USB0:   Port (usbActive) : 0    Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 4 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
Booting from USB ...
(Re)start USB...
USB0:   Port (usbActive) : 0    Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 4 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
loading Image ...
3904400 bytes read in 256 ms (14.5 MiB/s)
loading DTB /boot/dts/armada-385-wd-ex4100.dtb ...
14861 bytes read in 608 ms (23.4 KiB/s)
## Flattened Device Tree blob at 01000000
   Booting using the fdt blob at 0x01000000
   Loading Device Tree to 00ff9000, end 00fffa0c ... OK

   Skipping Device Tree update ('fdt_skip_update' = yes)
stopping USB..

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.9.0-mvebu-tld-12 (root@tldDebianVM) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4) ) #2 SMP PREEMPT Wed Feb 1 02:31:29 PST 2017
[    0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt:Machine model: WD My Cloud EX4100
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 15 pages/cpu @eefcd000 s30796 r8192 d22452 u61440
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 522752
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/sda1 rootdelay=10 mtdparts=armada-nand:5m(u-boot)ro,5m@5m(kernel),5m@10m(uRamdisk),441m@15m(image.cfs),15m@456m(rescue_fw),20m@471m(config),10m@491m(reserve1),10m@501m(reserve2) earlyprintk=serial
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 2066376K/2097152K available (8192K kernel code, 690K rwdata, 2052K rodata, 1024K init, 386K bss, 30776K reserved, 0K cma-reserved, 1310720K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0900000   (9184 kB)
[    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
[    0.000000]       .data : 0xc0d00000 - 0xc0daca28   ( 691 kB)
[    0.000000]        .bss : 0xc0daca28 - 0xc0e0d4f8   ( 387 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 32.
[    0.000000]  RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=2
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] mvebu_mbus: [Firmware Warn]: deprecated mbus-mvebu Device Tree, suspend/resume will not work
[    0.000000] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000] L2C-310 D prefetch enabled, offset 1 lines
[    0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000] L2C-310 Coherent cache controller enabled, 16 ways, 1024 kB
[    0.000000] L2C-310 Coherent: CACHE_ID 0x410054c9, AUX_CTRL 0x56070001
[    0.000000] Switching to timer-based delay loop, resolution 40ns
[    0.000003] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 85899345900ns
[    0.007881] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.019059] Console: colour dummy device 80x30
[    0.023572] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[    0.033976] pid_max: default: 32768 minimum: 301
[    0.038729] Security Framework initialized
[    0.042923] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.049596] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.057097] CPU: Testing write buffer coherency: ok
[    0.062165] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.067903] Setting up static identity map for 0x100000 - 0x100058
[    0.074208] mvebu-soc-id: MVEBU SoC ID=0x6828, Rev=0x4
[    0.079466] mvebu-pmsu: Initializing Power Management Service Unit
[    0.283911] Booting CPU 1
[    0.286756] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.286804] Brought up 2 CPUs
[    0.295561] SMP: Total of 2 processors activated (100.00 BogoMIPS).
[    0.301881] CPU: All CPU(s) started in SVC mode.
[    0.307111] devtmpfs: initialized
[    0.312396] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.320337] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.330263] prandom: seed boundary self test passed
[    0.336888] prandom: 100 self tests passed
[    0.341048] pinctrl core: initialized pinctrl subsystem
[    0.346969] NET: Registered protocol family 16
[    0.352010] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.393868] cpuidle: using governor ladder
[    0.423866] cpuidle: using governor menu
[    0.427932] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.436001] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.441980] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.450135] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.504834] vgaarb: loaded
[    0.507842] SCSI subsystem initialized
[    0.512078] usbcore: registered new interface driver usbfs
[    0.517709] usbcore: registered new interface driver hub
[    0.523132] usbcore: registered new device driver usb
[    0.528453] media: Linux media interface: v0.10
[    0.533088] Linux video capture interface: v2.00
[    0.538588] clocksource: Switched to clocksource armada_370_xp_clocksource
[    0.570021] VFS: Disk quotas dquot_6.6.0
[    0.574048] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.587879] NET: Registered protocol family 2
[    0.592697] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.599847] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.606397] TCP: Hash tables configured (established 8192 bind 8192)
[    0.612865] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.618874] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.625381] NET: Registered protocol family 1
[    0.630063] RPC: Registered named UNIX socket transport module.
[    0.636039] RPC: Registered udp transport module.
[    0.640819] RPC: Registered tcp transport module.
[    0.645583] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.652286] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.658962] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.667999] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.674226] audit: initializing netlink subsys (disabled)
[    0.679712] audit: type=2000 audit(0.670:1): initialized
[    0.685461] Initialise system trusted keyrings
[    0.690114] workingset: timestamp_bits=30 max_order=19 bucket_order=0
[    0.696670] zbud: loaded
[    0.699740] NFS: Registering the id_resolver key type
[    0.704858] Key type id_resolver registered
[    0.709119] Key type id_legacy registered
[    0.713199] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.719960] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.726494] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.733887] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.740504] orangefs_init: module version upstream loaded
[    0.747741] Key type asymmetric registered
[    0.751915] Asymmetric key parser 'x509' registered
[    0.756877] bounce: pool size: 64 pages
[    0.760854] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.768299] io scheduler noop registered
[    0.772299] io scheduler deadline registered
[    0.776644] io scheduler cfq registered (default)
[    0.782201] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    0.790614] mvebu-pcie soc:pcie-controller: PCI host bridge to bus 0000:00
[    0.797546] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    0.803883] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    0.810819] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.816730] PCI: bus0: Fast back to back transfers disabled
[    0.822378] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.830443] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.838608] PCI: bus1: Fast back to back transfers enabled
[    0.844269] PCI: bus2: Fast back to back transfers enabled
[    0.849862] pci 0000:00:01.0: PCI bridge to [bus 01]
[    0.854890] pci 0000:00:02.0: PCI bridge to [bus 02]
[    0.860337] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.918988] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    0.926597] mv_xor f1060900.xor: Marvell shared XOR driver
[    0.988982] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.039793] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.047412] console [ttyS0] disabled
[    1.071142] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 22, base_baud = 12500000) is a 16550A
[    1.080174] console [ttyS0] enabled
[    1.080174] console [ttyS0] enabled
[    1.087261] bootconsole [earlycon0] disabled
[    1.087261] bootconsole [earlycon0] disabled
[    1.096864] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.105971] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.115516] scsi host0: ahci-mvebu
[    1.119214] scsi host1: ahci-mvebu
[    1.122817] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 42
[    1.130783] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 42
[    1.138869] ahci-mvebu f10e0000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.147957] ahci-mvebu f10e0000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.157332] scsi host2: ahci-mvebu
[    1.170987] scsi host3: ahci-mvebu
[    1.174553] ata3: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x100 irq 43
[    1.182518] ata4: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x180 irq 43
[    1.190940] pxa3xx-nand f10d0000.flash: This platform can't do DMA on this device
[    1.198807] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xdc
[    1.205210] nand: Hynix H27U4G8F2DTR-BC
[    1.209113] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.216719] pxa3xx-nand f10d0000.flash: ECC strength 16, ECC step size 2048
[    1.223915] Bad block table found at page 262080, version 0x01
[    1.230104] Bad block table found at page 262016, version 0x01
[    1.236132] nand_read_bbt: bad block at 0x00000dcc0000
[    1.241303] nand_read_bbt: bad block at 0x00000fb00000
[    1.246463] nand_read_bbt: bad block at 0x000012180000
[    1.251629] nand_read_bbt: bad block at 0x0000139a0000
[    1.256790] nand_read_bbt: bad block at 0x000017880000
[    1.261955] nand_read_bbt: bad block at 0x0000178a0000
[    1.267115] nand_read_bbt: bad block at 0x00001a640000
[    1.272282] nand_read_bbt: bad block at 0x00001e9c0000
[    1.277474] 3 ofpart partitions found on MTD device pxa3xx_nand-0
[    1.283601] Creating 3 MTD partitions on "pxa3xx_nand-0":
[    1.289030] 0x000000000000-0x000000800000 : "U-Boot"
[    1.294691] 0x000000800000-0x000001000000 : "Linux"
[    1.310221] 0x000001000000-0x000040000000 : "Filesystem"
[    1.315557] mtd: partition "Filesystem" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x1f000000
[    1.339495] m25p80 spi0.0: unrecognized JEDEC id bytes: ff, ff, ff
[    1.346170] libphy: Fixed MDIO Bus: probed
[    1.350578] libphy: mdio_driver_register: mv88e6085
[    1.355621] libphy: orion_mdio_bus: probed
[    1.360750] mvneta_bm f10c8000.bm: Buffer Manager for network controller enabled
[    1.369780] mvneta f1070000.ethernet eth0: Using random mac address 8a:48:c5:2e:15:a9
[    1.379232] mvneta f1030000.ethernet eth1: Using random mac address 62:fe:a4:72:58:c3
[    1.387273] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.393859] ehci-pci: EHCI PCI platform driver
[    1.398363] ehci-orion: EHCI orion driver
[    1.402497] orion-ehci f1058000.usb: EHCI Host Controller
[    1.407930] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    1.415598] orion-ehci f1058000.usb: irq 38, io mem 0xf1058000
[    1.448597] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    1.454663] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.461502] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.468772] usb usb1: Product: EHCI Host Controller
[    1.469977] ata1: SATA link down (SStatus 0 SControl 300)
[    1.479119] usb usb1: Manufacturer: Linux 4.9.0-mvebu-tld-12 ehci_hcd
[    1.479886] ata2: SATA link down (SStatus 0 SControl 300)
[    1.491026] usb usb1: SerialNumber: f1058000.usb
[    1.495975] hub 1-0:1.0: USB hub found
[    1.499776] hub 1-0:1.0: 1 port detected
[    1.504150] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.509520] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    1.517112] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.519868] ata3: SATA link down (SStatus 0 SControl 300)
[    1.531147] xhci-hcd f10f0000.usb3: irq 46, io mem 0xf10f0000
[    1.537005] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    1.543839] ata4: SATA link down (SStatus 0 SControl 300)
[    1.549298] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.556550] usb usb2: Product: xHCI Host Controller
[    1.561456] usb usb2: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.567923] usb usb2: SerialNumber: f10f0000.usb3
[    1.572946] hub 2-0:1.0: USB hub found
[    1.576729] hub 2-0:1.0: 1 port detected
[    1.580841] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.586181] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
[    1.593756] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.601947] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    1.609483] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.616736] usb usb3: Product: xHCI Host Controller
[    1.621642] usb usb3: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.628111] usb usb3: SerialNumber: f10f0000.usb3
[    1.633114] hub 3-0:1.0: USB hub found
[    1.636893] hub 3-0:1.0: 1 port detected
[    1.641068] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.646419] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    1.654007] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.662598] xhci-hcd f10f8000.usb3: irq 47, io mem 0xf10f8000
[    1.668446] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002
[    1.675274] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.682533] usb usb4: Product: xHCI Host Controller
[    1.687431] usb usb4: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.693945] usb usb4: SerialNumber: f10f8000.usb3
[    1.698974] hub 4-0:1.0: USB hub found
[    1.702755] hub 4-0:1.0: 1 port detected
[    1.706852] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.712205] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5
[    1.719769] usb usb5: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.727951] usb usb5: New USB device found, idVendor=1d6b, idProduct=0003
[    1.734778] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.742037] usb usb5: Product: xHCI Host Controller
[    1.746935] usb usb5: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.753455] usb usb5: SerialNumber: f10f8000.usb3
[    1.758453] hub 5-0:1.0: USB hub found
[    1.762243] hub 5-0:1.0: 1 port detected
[    1.766426] usbcore: registered new interface driver usblp
[    1.772016] usbcore: registered new interface driver usb-storage
[    1.778222] mousedev: PS/2 mouse device common for all mice
[    1.784187] armada38x-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[    1.791867] i2c /dev entries driver
[    1.806671] orion_wdt: Initial timeout 171 sec
[    1.812300] marvell-cesa f1090000.crypto: CESA device successfully registered
[    1.819592] hidraw: raw HID events driver (C) Jiri Kosina
[    1.825188] usbcore: registered new interface driver usbhid
[    1.830797] usbhid: USB HID core driver
[    1.834761] drop_monitor: Initializing network drop monitor service
[    1.841099] Netfilter messages via NETLINK v0.30.
[    1.845831] ip_set: protocol 6
[    1.849078] NET: Registered protocol family 10
[    1.854115] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    1.860832] NET: Registered protocol family 17
[    1.865407] 8021q: 802.1Q VLAN Support v1.8
[    1.869805] Key type dns_resolver registered
[    1.874176] ThumbEE CPU extension supported.
[    1.878467] Registering SWP/SWPB emulation handler
[    1.883628] registered taskstats version 1
[    1.887744] Loading compiled-in X.509 certificates
[    1.892597] zswap: loaded using pool lzo/zbud
[    1.934764] Key type big_key registered
[    1.938642] usb 2-1: new high-speed USB device number 2 using xhci-hcd
[    1.945506] Key type encrypted registered
[    1.950474] armada38x-rtc f10a3800.rtc: setting system clock to 2017-06-04 08:33:09 UTC (1496565189)
[    1.960076] Waiting 10 sec before mounting root device...
[    2.108812] usb 2-1: New USB device found, idVendor=045b, idProduct=0209
[    2.115550] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.123080] hub 2-1:1.0: USB hub found
[    2.126912] hub 2-1:1.0: 4 ports detected
[    2.248777] usb 3-1: new SuperSpeed USB device number 2 using xhci-hcd
[    2.280186] usb 3-1: New USB device found, idVendor=045b, idProduct=0210
[    2.286917] usb 3-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.294573] hub 3-1:1.0: USB hub found
[    2.298615] hub 3-1:1.0: 4 ports detected
[   12.008695] VFS: Cannot open root device "sda1" or unknown-block(0,0): error -6
[   12.016035] Please append a correct "root=" boot option; here are the available partitions:
[   12.024509] 1f00            8192 mtdblock0 [   12.028534]  (driver?)
[   12.030916] 1f01            8192 mtdblock1 [   12.034940]  (driver?)
[   12.037310] 1f02          507904 mtdblock2 [   12.041342]  (driver?)
[   12.043713] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[   12.052013] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.9.0-mvebu-tld-12 #2
[   12.059003] Hardware name: Marvell Armada 380/385 (Device Tree)
[   12.064959] [<c01160bc>] (unwind_backtrace) from [<c0110bb4>] (show_stack+0x10/0x14)
[   12.072738] [<c0110bb4>] (show_stack) from [<c04ba5a4>] (dump_stack+0x70/0x8c)
[   12.079994] [<c04ba5a4>] (dump_stack) from [<c01eccd4>] (panic+0xc0/0x244)
[   12.086902] [<c01eccd4>] (panic) from [<c0c012b4>] (mount_block_root+0x1d8/0x250)
[   12.094419] [<c0c012b4>] (mount_block_root) from [<c0c01420>] (mount_root+0xf4/0x11c)
[   12.102283] [<c0c01420>] (mount_root) from [<c0c0156c>] (prepare_namespace+0x124/0x184)
[   12.110324] [<c0c0156c>] (prepare_namespace) from [<c0c00e74>] (kernel_init_freeable+0x200/0x258)
[   12.119236] [<c0c00e74>] (kernel_init_freeable) from [<c0834b74>] (kernel_init+0x8/0x10c)
[   12.127453] [<c0834b74>] (kernel_init) from [<c010c338>] (ret_from_fork+0x14/0x3c)
[   12.135058] CPU1: stopping
[   12.137778] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 4.9.0-mvebu-tld-12 #2
[   12.144767] Hardware name: Marvell Armada 380/385 (Device Tree)
[   12.150716] [<c01160bc>] (unwind_backtrace) from [<c0110bb4>] (show_stack+0x10/0x14)
[   12.158494] [<c0110bb4>] (show_stack) from [<c04ba5a4>] (dump_stack+0x70/0x8c)
[   12.165750] [<c04ba5a4>] (dump_stack) from [<c0113f90>] (handle_IPI+0x16c/0x350)
[   12.173178] [<c0113f90>] (handle_IPI) from [<c0101520>] (gic_handle_irq+0x78/0x94)
[   12.180781] [<c0101520>] (gic_handle_irq) from [<c011160c>] (__irq_svc+0x6c/0xa8)
[   12.188293] Exception stack(0xee8c5f98 to 0xee8c5fe0)
[   12.193364] 5f80:                                                       00000001 00000000
[   12.201577] 5fa0: 00000000 c011e6c0 00000000 00000000 ee8c4000 c0d0412c 00000002 ee8c5ff0
[   12.209788] 5fc0: c0d04194 00000000 00000001 ee8c5fe8 c010d400 c010d404 60000013 ffffffff
[   12.218002] [<c011160c>] (__irq_svc) from [<c010d404>] (arch_cpu_idle+0x2c/0x38)
[   12.225431] [<c010d404>] (arch_cpu_idle) from [<c015ef04>] (cpu_startup_entry+0xf0/0x1d0)
[   12.233645] [<c015ef04>] (cpu_startup_entry) from [<0010166c>] (0x10166c)
[   12.240465] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

back port 2 output

Marvell>> setenv bootdev usb
Marvell>> setenv device '0:1'
Marvell>> setenv dtb_file '/boot/dts/armada-385-wd-ex4100.dtb'
Marvell>> setenv load_dtb_addr 0x1000000
Marvell>> setenv load_initrd_addr 0x3900000
Marvell>> setenv load_image_addr 0x02000000
Marvell>> setenv load_dtb 'echo loading DTB $dtb_file ...; ext2load $bootdev $device $load_dtb_addr $dtb_file'
Marvell>> setenv load_initrd 'echo loading uInitrd ...; ext2load $bootdev $device $load_initrd_addr /boot/uInitrd'
Marvell>> setenv load_image 'echo loading Image ...; ext2load $bootdev $device $load_image_addr /boot/zImage'
Marvell>> setenv usb_set_bootargs 'setenv bootargs "console=ttyS0,115200 root=/dev/sda1 rootdelay=10 $mtdparts earlyprintk=serial"'
Marvell>> setenv usb_bootcmd 'echo Booting from USB ...; setenv fdt_skip_update yes; usb start; run load_image; run load_dtb; run usb_set_bootargs; bootz $load_image_addr -  $load_dtb_addr'
Marvell>> setenv bootcmd_usb 'usb start; run usb_set_bootargs; run usb_bootcmd; reset'
Marvell>> run bootcmd_usb
(Re)start USB...
USB0:   Port (usbActive) : 0    Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 4 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
Booting from USB ...
(Re)start USB...
USB0:   Port (usbActive) : 0    Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 4 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
loading Image ...
3904400 bytes read in 256 ms (14.5 MiB/s)
loading DTB /boot/dts/armada-385-wd-ex4100.dtb ...
14861 bytes read in 608 ms (23.4 KiB/s)
## Flattened Device Tree blob at 01000000
   Booting using the fdt blob at 0x01000000
   Loading Device Tree to 00ff9000, end 00fffa0c ... OK

   Skipping Device Tree update ('fdt_skip_update' = yes)
stopping USB..

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.9.0-mvebu-tld-12 (root@tldDebianVM) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4) ) #2 SMP PREEMPT Wed Feb 1 02:31:29 PST 2017
[    0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt:Machine model: WD My Cloud EX4100
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 15 pages/cpu @eefcd000 s30796 r8192 d22452 u61440
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 522752
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/sda1 rootdelay=10 mtdparts=armada-nand:5m(u-boot)ro,5m@5m(kernel),5m@10m(uRamdisk),441m@15m(image.cfs),15m@456m(rescue_fw),20m@471m(config),10m@491m(reserve1),10m@501m(reserve2) earlyprintk=serial
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 2066376K/2097152K available (8192K kernel code, 690K rwdata, 2052K rodata, 1024K init, 386K bss, 30776K reserved, 0K cma-reserved, 1310720K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0900000   (9184 kB)
[    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
[    0.000000]       .data : 0xc0d00000 - 0xc0daca28   ( 691 kB)
[    0.000000]        .bss : 0xc0daca28 - 0xc0e0d4f8   ( 387 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 32.
[    0.000000]  RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=2
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] mvebu_mbus: [Firmware Warn]: deprecated mbus-mvebu Device Tree, suspend/resume will not work
[    0.000000] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000] L2C-310 D prefetch enabled, offset 1 lines
[    0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000] L2C-310 Coherent cache controller enabled, 16 ways, 1024 kB
[    0.000000] L2C-310 Coherent: CACHE_ID 0x410054c9, AUX_CTRL 0x56070001
[    0.000000] Switching to timer-based delay loop, resolution 40ns
[    0.000003] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 85899345900ns
[    0.007881] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.019057] Console: colour dummy device 80x30
[    0.023570] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[    0.033974] pid_max: default: 32768 minimum: 301
[    0.038728] Security Framework initialized
[    0.042921] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.049595] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.057097] CPU: Testing write buffer coherency: ok
[    0.062168] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.067906] Setting up static identity map for 0x100000 - 0x100058
[    0.074208] mvebu-soc-id: MVEBU SoC ID=0x6828, Rev=0x4
[    0.079468] mvebu-pmsu: Initializing Power Management Service Unit
[    0.283911] Booting CPU 1
[    0.286757] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.286804] Brought up 2 CPUs
[    0.295563] SMP: Total of 2 processors activated (100.00 BogoMIPS).
[    0.301882] CPU: All CPU(s) started in SVC mode.
[    0.307118] devtmpfs: initialized
[    0.312386] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.320331] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.330257] prandom: seed boundary self test passed
[    0.336881] prandom: 100 self tests passed
[    0.341041] pinctrl core: initialized pinctrl subsystem
[    0.346967] NET: Registered protocol family 16
[    0.352009] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.393868] cpuidle: using governor ladder
[    0.423866] cpuidle: using governor menu
[    0.427933] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.436002] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.441982] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.450136] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.504841] vgaarb: loaded
[    0.507848] SCSI subsystem initialized
[    0.512070] usbcore: registered new interface driver usbfs
[    0.517701] usbcore: registered new interface driver hub
[    0.523125] usbcore: registered new device driver usb
[    0.528445] media: Linux media interface: v0.10
[    0.533081] Linux video capture interface: v2.00
[    0.538576] clocksource: Switched to clocksource armada_370_xp_clocksource
[    0.570053] VFS: Disk quotas dquot_6.6.0
[    0.574081] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.587937] NET: Registered protocol family 2
[    0.592755] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.599904] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.606454] TCP: Hash tables configured (established 8192 bind 8192)
[    0.612926] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.618935] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.625441] NET: Registered protocol family 1
[    0.630124] RPC: Registered named UNIX socket transport module.
[    0.636099] RPC: Registered udp transport module.
[    0.640880] RPC: Registered tcp transport module.
[    0.645645] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.652347] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.659024] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.668065] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.674290] audit: initializing netlink subsys (disabled)
[    0.679777] audit: type=2000 audit(0.670:1): initialized
[    0.685526] Initialise system trusted keyrings
[    0.690178] workingset: timestamp_bits=30 max_order=19 bucket_order=0
[    0.696736] zbud: loaded
[    0.699803] NFS: Registering the id_resolver key type
[    0.704921] Key type id_resolver registered
[    0.709182] Key type id_legacy registered
[    0.713262] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.720023] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.726557] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.733950] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.740566] orangefs_init: module version upstream loaded
[    0.747810] Key type asymmetric registered
[    0.751984] Asymmetric key parser 'x509' registered
[    0.756947] bounce: pool size: 64 pages
[    0.760923] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.768368] io scheduler noop registered
[    0.772368] io scheduler deadline registered
[    0.776713] io scheduler cfq registered (default)
[    0.782274] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    0.790687] mvebu-pcie soc:pcie-controller: PCI host bridge to bus 0000:00
[    0.797618] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    0.803954] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    0.810891] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.816805] PCI: bus0: Fast back to back transfers disabled
[    0.822452] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.830517] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.838681] PCI: bus1: Fast back to back transfers enabled
[    0.844340] PCI: bus2: Fast back to back transfers enabled
[    0.849933] pci 0000:00:01.0: PCI bridge to [bus 01]
[    0.854962] pci 0000:00:02.0: PCI bridge to [bus 02]
[    0.860406] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.918976] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    0.926586] mv_xor f1060900.xor: Marvell shared XOR driver
[    0.988969] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.039277] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.046947] console [ttyS0] disabled
[    1.070687] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 22, base_baud = 12500000) is a 16550A
[    1.079729] console [ttyS0] enabled
[    1.079729] console [ttyS0] enabled
[    1.086817] bootconsole [earlycon0] disabled
[    1.086817] bootconsole [earlycon0] disabled
[    1.096406] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.105513] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.115082] scsi host0: ahci-mvebu
[    1.118814] scsi host1: ahci-mvebu
[    1.122422] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 42
[    1.130387] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 42
[    1.138467] ahci-mvebu f10e0000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.147566] ahci-mvebu f10e0000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.156936] scsi host2: ahci-mvebu
[    1.160583] scsi host3: ahci-mvebu
[    1.164136] ata3: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x100 irq 43
[    1.172101] ata4: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x180 irq 43
[    1.180521] pxa3xx-nand f10d0000.flash: This platform can't do DMA on this device
[    1.188368] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xdc
[    1.194762] nand: Hynix H27U4G8F2DTR-BC
[    1.198621] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.206225] pxa3xx-nand f10d0000.flash: ECC strength 16, ECC step size 2048
[    1.213418] Bad block table found at page 262080, version 0x01
[    1.219610] Bad block table found at page 262016, version 0x01
[    1.225640] nand_read_bbt: bad block at 0x00000dcc0000
[    1.230810] nand_read_bbt: bad block at 0x00000fb00000
[    1.235971] nand_read_bbt: bad block at 0x000012180000
[    1.241136] nand_read_bbt: bad block at 0x0000139a0000
[    1.246297] nand_read_bbt: bad block at 0x000017880000
[    1.251463] nand_read_bbt: bad block at 0x0000178a0000
[    1.256623] nand_read_bbt: bad block at 0x00001a640000
[    1.261790] nand_read_bbt: bad block at 0x00001e9c0000
[    1.266981] 3 ofpart partitions found on MTD device pxa3xx_nand-0
[    1.273107] Creating 3 MTD partitions on "pxa3xx_nand-0":
[    1.278530] 0x000000000000-0x000000800000 : "U-Boot"
[    1.294203] 0x000000800000-0x000001000000 : "Linux"
[    1.309732] 0x000001000000-0x000040000000 : "Filesystem"
[    1.315068] mtd: partition "Filesystem" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x1f000000
[    1.338953] m25p80 spi0.0: unrecognized JEDEC id bytes: ff, ff, ff
[    1.345594] libphy: Fixed MDIO Bus: probed
[    1.349998] libphy: mdio_driver_register: mv88e6085
[    1.355037] libphy: orion_mdio_bus: probed
[    1.360233] mvneta_bm f10c8000.bm: Buffer Manager for network controller enabled
[    1.369244] mvneta f1070000.ethernet eth0: Using random mac address 9a:e6:76:9a:d9:a1
[    1.378757] mvneta f1030000.ethernet eth1: Using random mac address d2:86:35:e0:8c:14
[    1.386797] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.393377] ehci-pci: EHCI PCI platform driver
[    1.397878] ehci-orion: EHCI orion driver
[    1.402015] orion-ehci f1058000.usb: EHCI Host Controller
[    1.407448] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    1.415111] orion-ehci f1058000.usb: irq 38, io mem 0xf1058000
[    1.448586] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    1.454645] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.461475] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.468736] usb usb1: Product: EHCI Host Controller
[    1.469849] ata1: SATA link down (SStatus 0 SControl 300)
[    1.479075] usb usb1: Manufacturer: Linux 4.9.0-mvebu-tld-12 ehci_hcd
[    1.479899] ata2: SATA link down (SStatus 0 SControl 300)
[    1.490968] usb usb1: SerialNumber: f1058000.usb
[    1.495918] hub 1-0:1.0: USB hub found
[    1.499711] hub 1-0:1.0: 1 port detected
[    1.504082] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.509440] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    1.509830] ata3: SATA link down (SStatus 0 SControl 300)
[    1.519846] ata4: SATA link down (SStatus 0 SControl 300)
[    1.527863] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.536456] xhci-hcd f10f0000.usb3: irq 46, io mem 0xf10f0000
[    1.542314] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    1.549157] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.556409] usb usb2: Product: xHCI Host Controller
[    1.561314] usb usb2: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.567782] usb usb2: SerialNumber: f10f0000.usb3
[    1.572803] hub 2-0:1.0: USB hub found
[    1.576586] hub 2-0:1.0: 1 port detected
[    1.580698] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.586038] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
[    1.593609] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.601804] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    1.608997] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.616250] usb usb3: Product: xHCI Host Controller
[    1.621157] usb usb3: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.627624] usb usb3: SerialNumber: f10f0000.usb3
[    1.632630] hub 3-0:1.0: USB hub found
[    1.636410] hub 3-0:1.0: 1 port detected
[    1.640582] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.645927] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    1.653520] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.662117] xhci-hcd f10f8000.usb3: irq 47, io mem 0xf10f8000
[    1.667963] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002
[    1.674791] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.682049] usb usb4: Product: xHCI Host Controller
[    1.686947] usb usb4: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.693462] usb usb4: SerialNumber: f10f8000.usb3
[    1.698482] hub 4-0:1.0: USB hub found
[    1.702273] hub 4-0:1.0: 1 port detected
[    1.706372] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.711724] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5
[    1.719285] usb usb5: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.727467] usb usb5: New USB device found, idVendor=1d6b, idProduct=0003
[    1.734294] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.741553] usb usb5: Product: xHCI Host Controller
[    1.746451] usb usb5: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.752971] usb usb5: SerialNumber: f10f8000.usb3
[    1.757971] hub 5-0:1.0: USB hub found
[    1.761761] hub 5-0:1.0: 1 port detected
[    1.765945] usbcore: registered new interface driver usblp
[    1.771537] usbcore: registered new interface driver usb-storage
[    1.777741] mousedev: PS/2 mouse device common for all mice
[    1.783704] armada38x-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[    1.791382] i2c /dev entries driver
[    1.806177] orion_wdt: Initial timeout 171 sec
[    1.811845] marvell-cesa f1090000.crypto: CESA device successfully registered
[    1.819134] hidraw: raw HID events driver (C) Jiri Kosina
[    1.824732] usbcore: registered new interface driver usbhid
[    1.830341] usbhid: USB HID core driver
[    1.834306] drop_monitor: Initializing network drop monitor service
[    1.840642] Netfilter messages via NETLINK v0.30.
[    1.845375] ip_set: protocol 6
[    1.848628] NET: Registered protocol family 10
[    1.853649] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    1.860381] NET: Registered protocol family 17
[    1.864958] 8021q: 802.1Q VLAN Support v1.8
[    1.869356] Key type dns_resolver registered
[    1.873726] ThumbEE CPU extension supported.
[    1.878017] Registering SWP/SWPB emulation handler
[    1.883170] registered taskstats version 1
[    1.887286] Loading compiled-in X.509 certificates
[    1.892139] zswap: loaded using pool lzo/zbud
[    1.932506] Key type big_key registered
[    1.936578] Key type encrypted registered
[    1.940634] usb 2-1: new high-speed USB device number 2 using xhci-hcd
[    1.948183] armada38x-rtc f10a3800.rtc: setting system clock to 2017-06-04 08:40:03 UTC (1496565603)
[    1.957787] Waiting 10 sec before mounting root device...
[    2.108796] usb 2-1: New USB device found, idVendor=045b, idProduct=0209
[    2.115533] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.123056] hub 2-1:1.0: USB hub found
[    2.126886] hub 2-1:1.0: 4 ports detected
[    2.248766] usb 3-1: new SuperSpeed USB device number 2 using xhci-hcd
[    2.280177] usb 3-1: New USB device found, idVendor=045b, idProduct=0210
[    2.286908] usb 3-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.294562] hub 3-1:1.0: USB hub found
[    2.298604] hub 3-1:1.0: 4 ports detected
[   12.008688] VFS: Cannot open root device "sda1" or unknown-block(0,0): error -6
[   12.016029] Please append a correct "root=" boot option; here are the available partitions:
[   12.024499] 1f00            8192 mtdblock0 [   12.028525]  (driver?)
[   12.030908] 1f01            8192 mtdblock1 [   12.034932]  (driver?)
[   12.037302] 1f02          507904 mtdblock2 [   12.041335]  (driver?)
[   12.043706] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[   12.052006] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.9.0-mvebu-tld-12 #2
[   12.058996] Hardware name: Marvell Armada 380/385 (Device Tree)
[   12.064952] [<c01160bc>] (unwind_backtrace) from [<c0110bb4>] (show_stack+0x10/0x14)
[   12.072732] [<c0110bb4>] (show_stack) from [<c04ba5a4>] (dump_stack+0x70/0x8c)
[   12.079988] [<c04ba5a4>] (dump_stack) from [<c01eccd4>] (panic+0xc0/0x244)
[   12.086895] [<c01eccd4>] (panic) from [<c0c012b4>] (mount_block_root+0x1d8/0x250)
[   12.094411] [<c0c012b4>] (mount_block_root) from [<c0c01420>] (mount_root+0xf4/0x11c)
[   12.102275] [<c0c01420>] (mount_root) from [<c0c0156c>] (prepare_namespace+0x124/0x184)
[   12.110316] [<c0c0156c>] (prepare_namespace) from [<c0c00e74>] (kernel_init_freeable+0x200/0x258)
[   12.119227] [<c0c00e74>] (kernel_init_freeable) from [<c0834b74>] (kernel_init+0x8/0x10c)
[   12.127444] [<c0834b74>] (kernel_init) from [<c010c338>] (ret_from_fork+0x14/0x3c)
[   12.135047] CPU1: stopping
[   12.137767] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 4.9.0-mvebu-tld-12 #2
[   12.144757] Hardware name: Marvell Armada 380/385 (Device Tree)
[   12.150706] [<c01160bc>] (unwind_backtrace) from [<c0110bb4>] (show_stack+0x10/0x14)
[   12.158483] [<c0110bb4>] (show_stack) from [<c04ba5a4>] (dump_stack+0x70/0x8c)
[   12.165739] [<c04ba5a4>] (dump_stack) from [<c0113f90>] (handle_IPI+0x16c/0x350)
[   12.173168] [<c0113f90>] (handle_IPI) from [<c0101520>] (gic_handle_irq+0x78/0x94)
[   12.180771] [<c0101520>] (gic_handle_irq) from [<c011160c>] (__irq_svc+0x6c/0xa8)
[   12.188283] Exception stack(0xee8c5f98 to 0xee8c5fe0)
[   12.193354] 5f80:                                                       00000001 00000000
[   12.201566] 5fa0: 00000000 c011e6c0 00000000 00000000 ee8c4000 c0d0412c 00000002 ee8c5ff0
[   12.209779] 5fc0: c0d04194 00000000 00000001 ee8c5fe8 c010d400 c010d404 60000013 ffffffff
[   12.217992] [<c011160c>] (__irq_svc) from [<c010d404>] (arch_cpu_idle+0x2c/0x38)
[   12.225421] [<c010d404>] (arch_cpu_idle) from [<c015ef04>] (cpu_startup_entry+0xf0/0x1d0)
[   12.233634] [<c015ef04>] (cpu_startup_entry) from [<0010166c>] (0x10166c)
[   12.240455] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
Re: Debian on WD MyCloud EX 4100
June 04, 2017 03:53AM
Quote
saschadd
@saschadd, use the back USB port?

Is there any way to map the USB bus layout from within Linux or u-boot? I'm curious, since the front USB port doesn't work for me, if perhaps there is a USB hub located somewhere in the device.

I'm thinking that perhaps the rear USB port on the EX2100 is directly off the SoC, and the front port is off a USB hub. Or maybe they are just wired to different voltage regulators? It doesn't make logical sense, but I can't find another rational explanation for why my front USB port doesn't work, and why the ports on the EX4100 don't work.
Re: Debian on WD MyCloud EX 4100
June 04, 2017 04:05AM
bodhi Wrote:
-------------------------------------------------------
> @all,
>
> Please try this. And post your serial console log.
>
> 1. Mount the USB rootfs on another Linux box or in
> stock OS. Assuming it is mounted at /media/sdb1.
>
>
> cd /media/sdb1/boot
> cp -a zImage-4.9.0-mvebu-tld-12  zImage.fdt
> cat dts/armada-385-wd-ex4100.dtb  >> zImage.fdt
> mkimage -A arm -O linux -T kernel -C none -a 0x000
> 08000 -e 0x00008000 -n Linux-4.9.0-mvebu-tld-12 -d
> zImage.fdt  uImage
> sync
> umount /media/sdb1
>
>
>
> 2. Plug in the USB rootfs to the rear USB port, po
> wer up, interrupt serial console and
>
>
> setenv bootdev usb
> setenv device '0:1'
> setenv load_initrd_addr 0xf00000
> setenv load_image_addr 0xa00000
> setenv load_initrd 'echo loading uInitrd ...; ext2
> load $bootdev $device $load_initrd_addr /boot/uIni
> trd'
> setenv load_image 'echo loading Image ...; ext2loa
> d $bootdev $device $load_image_addr /boot/uImage'
> setenv usb_set_bootargs 'setenv bootargs "console=
> ttyS0,115200 root=/dev/sda1 rootdelay=10 $mtdparts
> earlyprintk=serial"'
> setenv usb_bootcmd 'echo Booting from USB ...; set
> env fdt_skip_update yes; usb start; run load_image
> ; run usb_set_bootargs; bootm $load_image_addr $lo
> ad_initrd_addr'
> setenv bootcmd_usb 'usb start; run usb_set_bootarg
> s; run usb_bootcmd; reset'
> printenv
> run bootcmd_usb
>


Did this and tried with replaced /boot/uInitrd with this file https://github.com/cschil/WD-385-initrd/raw/master/uInitrd-wd385 will try with your original one next

Marvell>> setenv bootdev usb
Marvell>> setenv device '0:1'
Marvell>> setenv load_initr 0xf00000
Marvell>> setenv load_imag 0xa00000
Marvell>> setenv load_initrd 'echo loading uInitrd ...; ext2load $bootdev $device $load_initrd_addr /boot/uInitrd'
Marvell>> setenv load_image 'echo loading Image ...; ext2load $bootdev $device $load_image_addr /boot/uImage'
Marvell>> setenv usb_set_bootargs 'setenv bootargs "console=ttyS0,115200 root=/dev/sda1 rootdelay=10 $mtdparts earlyprintk=serial"'
Marvell>> setenv usb_bootcmd 'echo Booting from USB ...; setenv fdt_skip_update yes; usb start; run load_image; run usb_set_bootargs; bootm $load_image_addr $load_initrd_addr'
Marvell>> setenv bootcmd_usb 'usb start; run usb_set_bootargs; run usb_bootcmd; reset'
Marvell>> printenv
CASset=max
MALLOC_len=5
MPmode=SMP
autoload=no
baudrate=115200
boot_order=hd_scr usb_scr mmc_scr hd_img usb_img mmc_img pxe net_img net_scr
bootargs=root=/dev/ram console=ttyS0,115200
bootargs_dflt=$console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel
bootargs_end=:10.4.50.254:255.255.255.0:Armada38x:eth0:none
bootargs_root=root=/dev/nfs rw
bootcmd=nand read.e 0xa00000 0x500000 0x500000;nand read.e 0xf00000 0xa00000 0x500000;bootm 0xa00000 0xf00000
bootcmd_auto=stage_boot $boot_order
bootcmd_fdt=tftpboot 0x2000000 $image_name;tftpboot $fdtaddr $fdtfile;setenv bootargs $console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel; bootz 0x2000000 - $fdtaddr;
bootcmd_fdt_boot=tftpboot 0x2000000 $image_name; setenv bootargs $console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel; bootz 0x2000000 - $fdtaddr;
bootcmd_fdt_edit=tftpboot $fdtaddr $fdtfile; fdt addr $fdtaddr; setenv bootcmd $bootcmd_fdt_boot
bootcmd_lgcy=tftpboot 0x2000000 $image_name; setenv bootargs $bootargs_dflt; bootm 0x2000000;
bootcmd_usb=usb start; run usb_set_bootargs; run usb_bootcmd; reset
bootdelay=1
bootdev=usb
cacheShare=no
console=console=ttyS0,115200
device=0:1
device_partition=0:1
disaMvPnp=no
eeeEnable=no
enaClockGating=no
enaCpuStream=no
enaFPU=yes
enaMonExt=no
enaWrAllo=no
eth1addr=00:50:43:28:09:3f
eth1mtu=1500
eth2addr=00:50:43:28:29:3f
eth2mtu=1500
eth3addr=00:50:43:09:29:28
eth3mtu=1500
ethact=egiga0
ethaddr=00:50:43:29:09:3f
ethmtu=1500
ethprime=egiga0
fdt_addr=2040000
fdt_skip_update=no
fdtaddr=0x1000000
fdtfile=armada-38x-modular.dtb
filesize=24
ide_path=/
image_name=uImage
initrd_name=uInitrd
ipaddr=2.66.66.203
kernel_addr_r=2080000
lcd0_enable=0
lcd0_params=640x480-16@60
lcd_panel=0
load_imag=0xa00000
load_image=echo loading Image ...; ext2load $bootdev $device $load_image_addr /boot/uImage
load_initr=0xf00000
load_initrd=echo loading uInitrd ...; ext2load $bootdev $device $load_initrd_addr /boot/uInitrd
loadaddr=0x02000000
loads_echo=0
mtddevname=u-boot
mtddevnum=0
mtdids=nand0=armada-nand
mtdparts=mtdparts=armada-nand:5m(u-boot)ro,5m@5m(kernel),5m@10m(uRamdisk),441m@15m(image.cfs),15m@456m(rescue_fw),20m@471m(config),10m@491m(reserve1),10m@501m(reserve2)
mvNetConfig=mv_net_config=4,(00:50:43:11:11:11,0:1:2:3),mtu=1500
mv_pon_addr=00:50:43:3f:29:28
nandEcc=nfcConfig=4bitecc
netbsd_en=no
netmask=255.255.255.0
netretry=no
partition=nand0,0
pcieTune=no
pexMode=RC
pxe_files_load=:default.arm-armadaxp-db:default.arm-armadaxp:default.arm
pxefile_addr_r=3100000
ramdisk_addr_r=2880000
rootpath=/srv/nfs/
sata_delay_reset=0
sata_dma_mode=yes
script_addr_r=3000000
script_name=boot.scr
serverip=2.66.66.32
standalone=fsload 0x2000000 $image_name;setenv bootargs $console $nandEcc $mtdparts root=/dev/mtdblock0 rw ip=$ipaddr:$serverip$bootargs_end; bootm 0x2000000;
stderr=serial
stdin=serial
stdout=serial
usb0Mode=host
usbActive=0
usbType=3
usb_bootcmd=echo Booting from USB ...; setenv fdt_skip_update yes; usb start; run load_image; run usb_set_bootargs; bootm $load_image_addr $load_initrd_addr
usb_set_bootargs=setenv bootargs "console=ttyS0,115200 root=/dev/sda1 rootdelay=10 $mtdparts earlyprintk=serial"
vxworks_en=no
yuk_ethaddr=00:00:00:EE:51:81

Environment size: 3807/524284 bytes
Marvell>> run bootcmd_usb
(Re)start USB...
USB0:   Port (usbActive) : 0    Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 4 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
Booting from USB ...
(Re)start USB...
USB0:   Port (usbActive) : 0    Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 4 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
loading Image ...
** No boot file defined **
## Booting image at 02000000 ...

NAND read: device 0 offset 0x1c800800, size 0xf00000
 15728640 bytes read: OK
## Booting image at 00a00000 ...
## Booting kernel from Legacy Image at 00a00000 ...
   Image Name:   Linux-388
   Created:      2014-12-26   7:32:50 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3934970 Bytes = 3.8 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK
stopping USB..

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Booting Linux on physical CPU 0x0
Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Initializing cgroup subsys cpuacct
Linux version 3.10.39 (kman@kmachine) (gcc version 4.6.4 (Linaro GCC branch-4.6.4. Marvell GCC Dev 201310-2126.3d181f66 64K MAXPAGESIZE ALIGN) ) #22 SMP Fri Dec 26 15:32:44 CST 2014 a388-2014T30p1 Build-003
CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c53c7d
CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
Machine: Marvell Armada 380/385/388 (Device Tree), model: Marvell Armada 385 Development Board
bootconsole [earlycon0] enabled
Memory policy: ECC disabled, Data cache writealloc
PERCPU: Embedded 1 pages/cpu @c09c8000 s8192 r8192 d16384 u32768
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65511
Kernel command line: console=ttyS0,115200 root=/dev/sda1 rootdelay=10 mtdparts=armada-nand:5m(u-boot)ro,5m@5m(kernel),5m@10m(uRamdisk),441m@15m(image.cfs),15m@456m(rescue_fw),20m@471m(config),10m@491m(reserve1),10m@501m(reserve2) earlyprintk=serial
PID hash table entries: 4096 (order: -1, 16384 bytes)
Dentry cache hash table entries: 131072 (order: 4, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 3, 262144 bytes)
Memory: 2048MB = 2048MB total
Memory: 2085984k/2085984k available, 11168k reserved, 1303552K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff8000   (  32 kB)
    fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    vmalloc : 0xf0800000 - 0xfff00000   ( 247 MB)
    lowmem  : 0xc0000000 - 0xf0700000   ( 775 MB)
    pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    modules : 0xbf000000 - 0xbfe00000   (  14 MB)
      .text : 0xc0008000 - 0xc06d24a0   (6954 kB)
      .init : 0xc06d8000 - 0xc071a000   ( 264 kB)
      .data : 0xc071a000 - 0xc0765aa0   ( 303 kB)
       .bss : 0xc0765aa0 - 0xc07abdb0   ( 281 kB)
Hierarchical RCU implementation.
        RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
NR_IRQS:16 nr_irqs:16 16

  LSP version: linux-3.10.39-2014_T3.0p1

sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 171798ms
L310 cache controller enabled
l2x0: 16 ways, CACHE_ID 0x410054c9, AUX_CTRL 0x16070000, Cache size: 1048576 B
Console: colour dummy device 80x30
Calibrating delay loop... 3188.32 BogoMIPS (lpj=15941632)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 4096
Initializing cgroup subsys devices
CPU: Testing write buffer coherency: ok
CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
Setting up static identity map for 0xc0531788 - 0xc05317e0
mvebu-pmsu: Initializing Power Management Service Unit
Initializing CPU Reset module
CPU1: Booted secondary processor
CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
Brought up 2 CPUs
SMP: Total of 2 processors activated (6376.65 BogoMIPS).
CPU: All CPU(s) started in SVC mode.
devtmpfs: initialized
xor: measuring software checksum speed
   arm4regs  :  1718.400 MB/sec
   8regs     :  1161.600 MB/sec
   32regs    :  1104.000 MB/sec
xor: using function: arm4regs (1718.400 MB/sec)
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
irq: Cannot allocate irq_descs @ IRQ195, assuming pre-allocated
irq: Cannot allocate irq_descs @ IRQ227, assuming pre-allocated
Initializing Suspend to RAM
bio: create slab <bio-0> at 0
raid6: int32x1    427 MB/s
raid6: int32x2    416 MB/s
raid6: int32x4    535 MB/s
raid6: int32x8    462 MB/s
raid6: using algorithm int32x4 (535 MB/s)
raid6: using intx1 recovery algorithm
mvebu-pcie pcie-controller.3: PCIe0.0: link down
mvebu-pcie pcie-controller.3: PCIe1.0: link down
mvebu-pcie pcie-controller.3: PCI host bridge to bus 0000:00
pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe8000000]
pci_bus 0000:00: root bus resource [bus 00-ff]
PCI: bus0: Fast back to back transfers disabled
pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
PCI: bus1: Fast back to back transfers enabled
PCI: bus2: Fast back to back transfers enabled
pci 0000:00:01.0: PCI bridge to [bus 01]
pci 0000:00:02.0: PCI bridge to [bus 02]
PCI: enabling device 0000:00:01.0 (0140 -> 0143)
PCI: enabling device 0000:00:02.0 (0140 -> 0143)
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
pps_core: LinuxPPS API ver. 1 registered
pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
PTP clock support registered
Switching to clocksource armada_370_xp_clocksource
NET: Registered protocol family 2
TCP established hash table entries: 8192 (order: 1, 65536 bytes)
TCP bind hash table entries: 8192 (order: 1, 65536 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP: reno registered
UDP hash table entries: 1024 (order: 0, 32768 bytes)
UDP-Lite hash table entries: 1024 (order: 0, 32768 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
bounce pool size: 64 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 8192 (order 0, 32768 bytes)
squashfs: version 4.0 (2009/01/31) Phillip Lougher
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
fuse init (API version 7.22)
SGI XFS with security attributes, large block/inode numbers, no debug enabled
msgmni has been set to 1528
async_tx: api initialized (async)
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
mv_xor f1060800.xor: Marvell shared XOR driver
mv_xor f1060800.xor: Marvell XOR: ( xor cpy intr )
mv_xor f1060800.xor: freeing 1 in use descriptors!
mv_xor f1060800.xor: Marvell XOR: ( crc32c )
mv_xor f1060900.xor: Marvell shared XOR driver
mv_xor f1060900.xor: Marvell XOR: ( xor cpy intr )
mv_xor f1060900.xor: freeing 1 in use descriptors!
mv_xor f1060900.xor: Marvell XOR: ( crc32c )
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 44) is a 16550A
console [ttyS0] enabled, bootconsole disabled
console [ttyS0] enabled, bootconsole disabled
f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 45) is a 16550A
brd: module loaded
loop: module loaded
ahci_mv f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
ahci_mv f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
scsi0 : ahci_mv_platform
scsi1 : ahci_mv_platform
ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 58
ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 58
ahci_mv f10e0000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
ahci_mv f10e0000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
scsi2 : ahci_mv_platform
scsi3 : ahci_mv_platform
ata3: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x100 irq 60
ata4: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x180 irq 60
armada-nand f10d0000.nand: Initialize HAL based NFC in 8bit mode with DMA Disabled using BCH 4bit ECC
NAND device: Manufacturer ID: 0xad, Chip ID: 0xdc (Hynix NAND 512MiB 3,3V 8-bit), 512MiB, page size: 2048, OOB size: 64
Bad block table found at page 262080, version 0x01
Bad block table found at page 262016, version 0x01
nand_read_bbt: bad block at 0x00000dcc0000
nand_read_bbt: bad block at 0x00000fb00000
nand_read_bbt: bad block at 0x000012180000
nand_read_bbt: bad block at 0x0000139a0000
nand_read_bbt: bad block at 0x000017880000
nand_read_bbt: bad block at 0x0000178a0000
nand_read_bbt: bad block at 0x00001a640000
nand_read_bbt: bad block at 0x00001e9c0000
8 cmdlinepart partitions found on MTD device armada-nand
Creating 8 MTD partitions on "armada-nand":
0x000000000000-0x000000500000 : "u-boot"
0x000000500000-0x000000a00000 : "kernel"
0x000000a00000-0x000000f00000 : "uRamdisk"
0x000000f00000-0x00001c800000 : "image.cfs"
0x00001c800000-0x00001d700000 : "rescue_fw"
0x00001d700000-0x00001eb00000 : "config"
0x00001eb00000-0x00001f500000 : "reserve1"
0x00001f500000-0x00001ff00000 : "reserve2"
  o 3 Giga ports supported
  o NETA acceleration mode 1
  o RX Queue support: 8 Queues * 128 Descriptors
  o TX Queue support: 8 Queues * 532 Descriptors
  o GSO supported
  o GRO supported
  o Receive checksum offload supported
  o Transmit checksum offload supported
  o Driver ERROR statistics enabled
  o Driver INFO statistics enabled
  o Driver DEBUG statistics enabled

port #0: is_sgmii=0, is_rgmii=1, phy_addr=0
  o Loading network interface(s) for port #0: cpu_mask=0x3, tx_csum_limit=9800

  o Port 0 is connected to Linux netdevice
    o egiga0, ifindex = 2, GbE port = 0
        giga p=0: mtu=1500, mac=00:50:43:02:02:01 (platform)

port #1: is_sgmii=1, is_rgmii=0, phy_addr=1
  o Loading network interface(s) for port #1: cpu_mask=0x3, tx_csum_limit=2048

  o Port 1 is connected to Linux netdevice
    o egiga1, ifindex = 3, GbE port = 1
        giga p=1: mtu=1500, mac=00:50:43:02:02:02 (platform)

libphy: orion_mdio_bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-pci: EHCI PCI platform driver
ehci-orion: EHCI orion driver
orion-ehci f1058000.usb: EHCI Host Controller
orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
orion-ehci f1058000.usb: irq 50, io mem 0xf1058000
orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
xhci-hcd f10f0000.usb3: xHCI Host Controller
xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
xhci-hcd f10f0000.usb3: irq 48, io mem 0xf10f0000
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
xhci-hcd f10f0000.usb3: xHCI Host Controller
xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 1 port detected
usbcore: registered new interface driver usb-storage
ata1: SATA link down (SStatus 0 SControl 300)
ata2: SATA link down (SStatus 0 SControl 300)
ata3: SATA link down (SStatus 0 SControl 300)
ata4: SATA link down (SStatus 0 SControl 300)
usb 3-1: new SuperSpeed USB device number 2 using xhci-hcd
usb 3-1: Parent hub missing LPM exit latency info.  Power management will be impacted.
hub 3-1:1.0: USB hub found
hub 3-1:1.0: 4 ports detected
usb 2-1: new high-speed USB device number 2 using xhci-hcd
hub 2-1:1.0: USB hub found
hub 2-1:1.0: 4 ports detected
mvebu-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
i2c /dev entries driver
md: linear personality registered for level -1
md: raid0 personality registered for level 0
md: raid1 personality registered for level 1
md: raid10 personality registered for level 10
md: raid6 personality registered for level 6
md: raid5 personality registered for level 5
md: raid4 personality registered for level 4
device-mapper: ioctl: 4.24.0-ioctl (2013-01-15) initialised: dm-devel@redhat.com
dm_crypt using the OCF package.
cpuidle: using governor ladder
armada-cesa-ocf f109d000.crypto: mv_get_cesa_resources: Total CESA HW channels supported 2
armada-cesa-ocf f109d000.crypto: mv_get_cesa_resources: CESA feature: chain(0)
mvCesaInit: channels=2, session=640, queue=64
armada-cesa-ocf f109d000.crypto: cesa_ocf_probe: CESA driver operate in ocf(0) mode
cesadev_init(c06f44b0)
TCP: cubic registered
NET: Registered protocol family 17
8021q: 802.1Q VLAN Support v1.8
VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
mvebu-rtc f10a3800.rtc: setting system clock to 2017-06-04 09:00:10 UTC (1496566810)
Waiting 10sec before mounting root device...
md: Waiting for all devices to be available before autodetect
md: If you don't use raid, use raid=noautodetect
md: Autodetecting RAID arrays.
md: Scanned 0 and added 0 devices.
md: autorun ...
md: ... autorun DONE.
VFS: Cannot open root device "sda1" or unknown-block(0,0): error -6
Please append a correct "root=" boot option; here are the available partitions:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
CPU0: stopping
CPU: 0 PID: 0 Comm: swapper/0 Not tainted 3.10.39 #22
[<c0015130>] (unwind_backtrace+0x0/0xfc) from [<c0011768>] (show_stack+0x10/0x18)
[<c0011768>] (show_stack+0x10/0x18) from [<c0013908>] (handle_IPI+0x100/0x134)
[<c0013908>] (handle_IPI+0x100/0x134) from [<c0008624>] (gic_handle_irq+0x5c/0x64)
[<c0008624>] (gic_handle_irq+0x5c/0x64) from [<c000dd40>] (__irq_svc+0x40/0x50)
Exception stack(0xc071bf70 to 0xc071bfb8)
bf60:                                     ffffffed 002b0000 c0727828 c0019b00
bf80: c071a000 c0726564 c0538bf4 c076599e c076599e 414fc091 00000001 00000000
bfa0: 01000000 c071bfb8 c000f344 c000f330 60000113 ffffffff
[<c000dd40>] (__irq_svc+0x40/0x50) from [<c000f330>] (arch_cpu_idle+0x28/0x48)
[<c000f330>] (arch_cpu_idle+0x28/0x48) from [<c0054230>] (cpu_startup_entry+0x4c/0x11c)
[<c0054230>] (cpu_startup_entry+0x4c/0x11c) from [<c06d8a20>] (start_kernel+0x2b0/0x308)
[<c06d8a20>] (start_kernel+0x2b0/0x308) from [<00008074>] (0x8074)
Re: Debian on WD MyCloud EX 4100
June 04, 2017 04:12AM
Second try with origian uInitrd on back port 1

Marvell>> setenv bootdev usb
Marvell>> setenv device '0:1'
Marvell>> setenv load_initrd_addr 0xf00000
Marvell>> setenv load_image_addr 0xa00000
Marvell>> setenv load_initrd 'echo loading uInitrd ...; ext2load $bootdev $device $load_initrd_addr /boot/uInitrd'
Marvell>> setenv load_image 'echo loading Image ...; ext2load $bootdev $device $load_image_addr /boot/uImage'
Marvell>> setenv usb_set_bootargs 'setenv bootargs "console=ttyS0,115200 root=/dev/sda1 rootdelay=10 $mtdparts earlyprintk=serial"'
Marvell>> setenv usb_bootcmd 'echo Booting from USB ...; setenv fdt_skip_update yes; usb start; run load_image; run usb_set_bootargs; bootm $load_image_addr $load_initrd_addr'
Marvell>> setenv bootcmd_usb 'usb start; run usb_set_bootargs; run usb_bootcmd; reset'
Marvell>> printenv
CASset=max
MALLOC_len=5
MPmode=SMP
autoload=no
baudrate=115200
boot_order=hd_scr usb_scr mmc_scr hd_img usb_img mmc_img pxe net_img net_scr
bootargs=root=/dev/ram console=ttyS0,115200
bootargs_dflt=$console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel
bootargs_end=:10.4.50.254:255.255.255.0:Armada38x:eth0:none
bootargs_root=root=/dev/nfs rw
bootcmd=nand read.e 0xa00000 0x500000 0x500000;nand read.e 0xf00000 0xa00000 0x500000;bootm 0xa00000 0xf00000
bootcmd_auto=stage_boot $boot_order
bootcmd_fdt=tftpboot 0x2000000 $image_name;tftpboot $fdtaddr $fdtfile;setenv bootargs $console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel; bootz 0x2000000 - $fdtaddr;
bootcmd_fdt_boot=tftpboot 0x2000000 $image_name; setenv bootargs $console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel; bootz 0x2000000 - $fdtaddr;
bootcmd_fdt_edit=tftpboot $fdtaddr $fdtfile; fdt addr $fdtaddr; setenv bootcmd $bootcmd_fdt_boot
bootcmd_lgcy=tftpboot 0x2000000 $image_name; setenv bootargs $bootargs_dflt; bootm 0x2000000;
bootcmd_usb=usb start; run usb_set_bootargs; run usb_bootcmd; reset
bootdelay=1
bootdev=usb
cacheShare=no
console=console=ttyS0,115200
device=0:1
device_partition=0:1
disaMvPnp=no
eeeEnable=no
enaClockGating=no
enaCpuStream=no
enaFPU=yes
enaMonExt=no
enaWrAllo=no
eth1addr=00:50:43:63:0f:0b
eth1mtu=1500
eth2addr=00:50:43:63:4d:0b
eth2mtu=1500
eth3addr=00:50:43:0f:4d:63
eth3mtu=1500
ethact=egiga0
ethaddr=00:50:43:4d:0f:0b
ethmtu=1500
ethprime=egiga0
fdt_addr=2040000
fdt_skip_update=no
fdtaddr=0x1000000
fdtfile=armada-38x-modular.dtb
filesize=24
ide_path=/
image_name=uImage
initrd_name=uInitrd
ipaddr=2.66.66.203
kernel_addr_r=2080000
lcd0_enable=0
lcd0_params=640x480-16@60
lcd_panel=0
load_image=echo loading Image ...; ext2load $bootdev $device $load_image_addr /boot/uImage
load_image_addr=0xa00000
load_initrd=echo loading uInitrd ...; ext2load $bootdev $device $load_initrd_addr /boot/uInitrd
load_initrd_addr=0xf00000
loadaddr=0x02000000
loads_echo=0
mtddevname=u-boot
mtddevnum=0
mtdids=nand0=armada-nand
mtdparts=mtdparts=armada-nand:5m(u-boot)ro,5m@5m(kernel),5m@10m(uRamdisk),441m@15m(image.cfs),15m@456m(rescue_fw),20m@471m(config),10m@491m(reserve1),10m@501m(reserve2)
mvNetConfig=mv_net_config=4,(00:50:43:11:11:11,0:1:2:3),mtu=1500
mv_pon_addr=00:50:43:0b:4d:63
nandEcc=nfcConfig=4bitecc
netbsd_en=no
netmask=255.255.255.0
netretry=no
partition=nand0,0
pcieTune=no
pexMode=RC
pxe_files_load=:default.arm-armadaxp-db:default.arm-armadaxp:default.arm
pxefile_addr_r=3100000
ramdisk_addr_r=2880000
rootpath=/srv/nfs/
sata_delay_reset=0
sata_dma_mode=yes
script_addr_r=3000000
script_name=boot.scr
serverip=2.66.66.32
standalone=fsload 0x2000000 $image_name;setenv bootargs $console $nandEcc $mtdparts root=/dev/mtdblock0 rw ip=$ipaddr:$serverip$bootargs_end; bootm 0x2000000;
stderr=serial
stdin=serial
stdout=serial
usb0Mode=host
usbActive=0
usbType=3
usb_bootcmd=echo Booting from USB ...; setenv fdt_skip_update yes; usb start; run load_image; run usb_set_bootargs; bootm $load_image_addr $load_initrd_addr
usb_set_bootargs=setenv bootargs "console=ttyS0,115200 root=/dev/sda1 rootdelay=10 $mtdparts earlyprintk=serial"
vxworks_en=no
yuk_ethaddr=00:00:00:EE:51:81

Environment size: 3819/524284 bytes
Marvell>> run bootcmd_usb
(Re)start USB...
USB0:   Port (usbActive) : 0    Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 4 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
Booting from USB ...
(Re)start USB...
USB0:   Port (usbActive) : 0    Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 4 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
loading Image ...
3919325 bytes read in 324 ms (11.5 MiB/s)
## Booting image at 00a00000 ...
## Booting kernel from Legacy Image at 00a00000 ...
   Image Name:   Linux-4.9.0-mvebu-tld-12
   Created:      2017-06-04   8:57:41 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3919261 Bytes = 3.7 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
### Ramdisk error, Loading Rescure Firmware from NAND Flash ###

NAND read: device 0 offset 0x1c800800, size 0xf00000
 15728640 bytes read: OK
## Booting image at 00a00000 ...
## Booting kernel from Legacy Image at 00a00000 ...
   Image Name:   Linux-388
   Created:      2014-12-26   7:32:50 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3934970 Bytes = 3.8 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 00e00000 ...
   Image Name:   Ramdisk
   Created:      2014-12-30   8:33:20 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7034148 Bytes = 6.7 MiB
   Load Address: 00e00000
   Entry Point:  00e00000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK
stopping USB..

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Booting Linux on physical CPU 0x0
Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Initializing cgroup subsys cpuacct
Linux version 3.10.39 (kman@kmachine) (gcc version 4.6.4 (Linaro GCC branch-4.6.4. Marvell GCC Dev 201310-2126.3d181f66 64K MAXPAGESIZE ALIGN) ) #22 SMP Fri Dec 26 15:32:44 CST 2014 a388-2014T30p1 Build-003
CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c53c7d
CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
Machine: Marvell Armada 380/385/388 (Device Tree), model: Marvell Armada 385 Development Board
bootconsole [earlycon0] enabled
Memory policy: ECC disabled, Data cache writealloc
PERCPU: Embedded 1 pages/cpu @c09c8000 s8192 r8192 d16384 u32768
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65511
Kernel command line: console=ttyS0,115200 root=/dev/sda1 rootdelay=10 mtdparts=armada-nand:5m(u-boot)ro,5m@5m(kernel),5m@10m(uRamdisk),441m@15m(image.cfs),15m@456m(rescue_fw),20m@471m(config),10m@491m(reserve1),10m@501m(reserve2) earlyprintk=serial
PID hash table entries: 4096 (order: -1, 16384 bytes)
Dentry cache hash table entries: 131072 (order: 4, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 3, 262144 bytes)
Memory: 2048MB = 2048MB total
Memory: 2079104k/2079104k available, 18048k reserved, 1303552K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff8000   (  32 kB)
    fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    vmalloc : 0xf0800000 - 0xfff00000   ( 247 MB)
    lowmem  : 0xc0000000 - 0xf0700000   ( 775 MB)
    pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    modules : 0xbf000000 - 0xbfe00000   (  14 MB)
      .text : 0xc0008000 - 0xc06d24a0   (6954 kB)
      .init : 0xc06d8000 - 0xc071a000   ( 264 kB)
      .data : 0xc071a000 - 0xc0765aa0   ( 303 kB)
       .bss : 0xc0765aa0 - 0xc07abdb0   ( 281 kB)
Hierarchical RCU implementation.
        RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
NR_IRQS:16 nr_irqs:16 16

  LSP version: linux-3.10.39-2014_T3.0p1

sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 171798ms
L310 cache controller enabled
l2x0: 16 ways, CACHE_ID 0x410054c9, AUX_CTRL 0x16070000, Cache size: 1048576 B
Console: colour dummy device 80x30
Calibrating delay loop... 3188.32 BogoMIPS (lpj=15941632)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 4096
Initializing cgroup subsys devices
CPU: Testing write buffer coherency: ok
CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
Setting up static identity map for 0xc0531788 - 0xc05317e0
mvebu-pmsu: Initializing Power Management Service Unit
Initializing CPU Reset module
CPU1: Booted secondary processor
CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
Brought up 2 CPUs
SMP: Total of 2 processors activated (6384.02 BogoMIPS).
CPU: All CPU(s) started in SVC mode.
devtmpfs: initialized
xor: measuring software checksum speed
   arm4regs  :  1721.600 MB/sec
   8regs     :  1158.400 MB/sec
   32regs    :  1104.000 MB/sec
xor: using function: arm4regs (1721.600 MB/sec)
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
irq: Cannot allocate irq_descs @ IRQ195, assuming pre-allocated
irq: Cannot allocate irq_descs @ IRQ227, assuming pre-allocated
Initializing Suspend to RAM
bio: create slab <bio-0> at 0
raid6: int32x1    427 MB/s
raid6: int32x2    416 MB/s
raid6: int32x4    535 MB/s
raid6: int32x8    462 MB/s
raid6: using algorithm int32x4 (535 MB/s)
raid6: using intx1 recovery algorithm
mvebu-pcie pcie-controller.3: PCIe0.0: link down
mvebu-pcie pcie-controller.3: PCIe1.0: link down
mvebu-pcie pcie-controller.3: PCI host bridge to bus 0000:00
pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe8000000]
pci_bus 0000:00: root bus resource [bus 00-ff]
PCI: bus0: Fast back to back transfers disabled
pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
PCI: bus1: Fast back to back transfers enabled
PCI: bus2: Fast back to back transfers enabled
pci 0000:00:01.0: PCI bridge to [bus 01]
pci 0000:00:02.0: PCI bridge to [bus 02]
PCI: enabling device 0000:00:01.0 (0140 -> 0143)
PCI: enabling device 0000:00:02.0 (0140 -> 0143)
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
pps_core: LinuxPPS API ver. 1 registered
pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
PTP clock support registered
Switching to clocksource armada_370_xp_clocksource
NET: Registered protocol family 2
TCP established hash table entries: 8192 (order: 1, 65536 bytes)
TCP bind hash table entries: 8192 (order: 1, 65536 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP: reno registered
UDP hash table entries: 1024 (order: 0, 32768 bytes)
UDP-Lite hash table entries: 1024 (order: 0, 32768 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
Trying to unpack rootfs image as initramfs...
rootfs image is not initramfs (no cpio magic); looks like an initrd
Freeing initrd memory: 6816K (c0e08000 - c14b0000)
bounce pool size: 64 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 8192 (order 0, 32768 bytes)
squashfs: version 4.0 (2009/01/31) Phillip Lougher
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
fuse init (API version 7.22)
SGI XFS with security attributes, large block/inode numbers, no debug enabled
msgmni has been set to 1528
async_tx: api initialized (async)
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
mv_xor f1060800.xor: Marvell shared XOR driver
mv_xor f1060800.xor: Marvell XOR: ( xor cpy intr )
mv_xor f1060800.xor: freeing 1 in use descriptors!
mv_xor f1060800.xor: Marvell XOR: ( crc32c )
mv_xor f1060900.xor: Marvell shared XOR driver
mv_xor f1060900.xor: Marvell XOR: ( xor cpy intr )
mv_xor f1060900.xor: freeing 1 in use descriptors!
mv_xor f1060900.xor: Marvell XOR: ( crc32c )
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 44) is a 16550A
console [ttyS0] enabled, bootconsole disabled
console [ttyS0] enabled, bootconsole disabled
f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 45) is a 16550A
brd: module loaded
loop: module loaded
ahci_mv f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
ahci_mv f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
scsi0 : ahci_mv_platform
scsi1 : ahci_mv_platform
ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 58
ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 58
ahci_mv f10e0000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
ahci_mv f10e0000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
scsi2 : ahci_mv_platform
scsi3 : ahci_mv_platform
ata3: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x100 irq 60
ata4: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x180 irq 60
armada-nand f10d0000.nand: Initialize HAL based NFC in 8bit mode with DMA Disabled using BCH 4bit ECC
NAND device: Manufacturer ID: 0xad, Chip ID: 0xdc (Hynix NAND 512MiB 3,3V 8-bit), 512MiB, page size: 2048, OOB size: 64
Bad block table found at page 262080, version 0x01
Bad block table found at page 262016, version 0x01
nand_read_bbt: bad block at 0x00000dcc0000
nand_read_bbt: bad block at 0x00000fb00000
nand_read_bbt: bad block at 0x000012180000
nand_read_bbt: bad block at 0x0000139a0000
nand_read_bbt: bad block at 0x000017880000
nand_read_bbt: bad block at 0x0000178a0000
nand_read_bbt: bad block at 0x00001a640000
nand_read_bbt: bad block at 0x00001e9c0000
8 cmdlinepart partitions found on MTD device armada-nand
Creating 8 MTD partitions on "armada-nand":
0x000000000000-0x000000500000 : "u-boot"
0x000000500000-0x000000a00000 : "kernel"
0x000000a00000-0x000000f00000 : "uRamdisk"
0x000000f00000-0x00001c800000 : "image.cfs"
0x00001c800000-0x00001d700000 : "rescue_fw"
0x00001d700000-0x00001eb00000 : "config"
0x00001eb00000-0x00001f500000 : "reserve1"
0x00001f500000-0x00001ff00000 : "reserve2"
  o 3 Giga ports supported
  o NETA acceleration mode 1
  o RX Queue support: 8 Queues * 128 Descriptors
  o TX Queue support: 8 Queues * 532 Descriptors
  o GSO supported
  o GRO supported
  o Receive checksum offload supported
  o Transmit checksum offload supported
  o Driver ERROR statistics enabled
  o Driver INFO statistics enabled
  o Driver DEBUG statistics enabled

port #0: is_sgmii=0, is_rgmii=1, phy_addr=0
  o Loading network interface(s) for port #0: cpu_mask=0x3, tx_csum_limit=9800

  o Port 0 is connected to Linux netdevice
    o egiga0, ifindex = 2, GbE port = 0
        giga p=0: mtu=1500, mac=00:50:43:02:02:01 (platform)

port #1: is_sgmii=1, is_rgmii=0, phy_addr=1
  o Loading network interface(s) for port #1: cpu_mask=0x3, tx_csum_limit=2048

  o Port 1 is connected to Linux netdevice
    o egiga1, ifindex = 3, GbE port = 1
        giga p=1: mtu=1500, mac=00:50:43:02:02:02 (platform)

libphy: orion_mdio_bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-pci: EHCI PCI platform driver
ehci-orion: EHCI orion driver
orion-ehci f1058000.usb: EHCI Host Controller
orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
orion-ehci f1058000.usb: irq 50, io mem 0xf1058000
orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
xhci-hcd f10f0000.usb3: xHCI Host Controller
xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
xhci-hcd f10f0000.usb3: irq 48, io mem 0xf10f0000
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
xhci-hcd f10f0000.usb3: xHCI Host Controller
xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 1 port detected
usbcore: registered new interface driver usb-storage
ata1: SATA link down (SStatus 0 SControl 300)
ata2: SATA link down (SStatus 0 SControl 300)
ata3: SATA link down (SStatus 0 SControl 300)
ata4: SATA link down (SStatus 0 SControl 300)
usb 3-1: new SuperSpeed USB device number 2 using xhci-hcd
usb 3-1: Parent hub missing LPM exit latency info.  Power management will be impacted.
hub 3-1:1.0: USB hub found
hub 3-1:1.0: 4 ports detected
usb 2-1: new high-speed USB device number 2 using xhci-hcd
hub 2-1:1.0: USB hub found
hub 2-1:1.0: 4 ports detected
mvebu-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
i2c /dev entries driver
md: linear personality registered for level -1
md: raid0 personality registered for level 0
md: raid1 personality registered for level 1
md: raid10 personality registered for level 10
md: raid6 personality registered for level 6
md: raid5 personality registered for level 5
md: raid4 personality registered for level 4
device-mapper: ioctl: 4.24.0-ioctl (2013-01-15) initialised: dm-devel@redhat.com
dm_crypt using the OCF package.
cpuidle: using governor ladder
armada-cesa-ocf f109d000.crypto: mv_get_cesa_resources: Total CESA HW channels supported 2
armada-cesa-ocf f109d000.crypto: mv_get_cesa_resources: CESA feature: chain(0)
mvCesaInit: channels=2, session=640, queue=64
armada-cesa-ocf f109d000.crypto: cesa_ocf_probe: CESA driver operate in ocf(0) mode
cesadev_init(c06f44b0)
TCP: cubic registered
NET: Registered protocol family 17
8021q: 802.1Q VLAN Support v1.8
VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
mvebu-rtc f10a3800.rtc: setting system clock to 2017-06-04 09:09:10 UTC (1496567350)
Waiting 10sec before mounting root device...
md: Waiting for all devices to be available before autodetect
md: If you don't use raid, use raid=noautodetect
md: Autodetecting RAID arrays.
md: Scanned 0 and added 0 devices.
md: autorun ...
md: ... autorun DONE.
RAMDISK: gzip image found at block 0
VFS: Mounted root (ext2 filesystem) on device 1:0.
linuxrcVFS: Cannot open root device "sda1" or unknown-block(0,0): error -6
Please append a correct "root=" boot option; here are the available partitions:
: applet not fouKernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
nd
CPU0: stopping
CPU: 0 PID: 0 Comm: swapper/0 Not tainted 3.10.39 #22
[<c0015130>] (unwind_backtrace+0x0/0xfc) from [<c0011768>] (show_stack+0x10/0x18)
[<c0011768>] (show_stack+0x10/0x18) from [<c0013908>] (handle_IPI+0x100/0x134)
[<c0013908>] (handle_IPI+0x100/0x134) from [<c0008624>] (gic_handle_irq+0x5c/0x64)
[<c0008624>] (gic_handle_irq+0x5c/0x64) from [<c000dd40>] (__irq_svc+0x40/0x50)
Exception stack(0xc071bf70 to 0xc071bfb8)
bf60:                                     ffffffed 002b0000 c0727828 c0019b00
bf80: c071a000 c0726564 c0538bf4 c076599e c076599e 414fc091 00000001 00000000
bfa0: 01000000 c071bfb8 c000f344 c000f330 60000113 ffffffff
[<c000dd40>] (__irq_svc+0x40/0x50) from [<c000f330>] (arch_cpu_idle+0x28/0x48)
[<c000f330>] (arch_cpu_idle+0x28/0x48) from [<c0054230>] (cpu_startup_entry+0x4c/0x11c)
[<c0054230>] (cpu_startup_entry+0x4c/0x11c) from [<c06d8a20>] (start_kernel+0x2b0/0x308)
[<c06d8a20>] (start_kernel+0x2b0/0x308) from [<00008074>] (0x8074)
Re: Debian on WD MyCloud EX 4100
June 04, 2017 05:08AM
Quote
saschadd
## Booting image at 00a00000 ...
## Booting kernel from Legacy Image at 00a00000 ...
   Image Name:   Linux-4.9.0-mvebu-tld-12
   Created:      2017-06-04   8:57:41 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3919261 Bytes = 3.7 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
### Ramdisk error, Loading Rescure Firmware from NAND Flash ###

NAND read: device 0 offset 0x1c800800, size 0xf00000
 15728640 bytes read: OK
## Booting image at 00a00000 ...
## Booting kernel from Legacy Image at 00a00000 ...
   Image Name:   Linux-388
   Created:      2014-12-26   7:32:50 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3934970 Bytes = 3.8 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 00e00000 ...
   Image Name:   Ramdisk
   Created:      2014-12-30   8:33:20 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7034148 Bytes = 6.7 MiB
   Load Address: 00e00000
   Entry Point:  00e00000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK
stopping USB..

Okay, so I'm not the only one getting this error.
Re: Debian on WD MyCloud EX 4100
June 04, 2017 05:14AM
Quote
bodhi
This stock u-boot really sucks :) Exists in here was a ramdisk relocation problem that was solved in 2016. And this bootm has a limitation of 8M (so that caused me to abandon a really good booting scheme).

Quote
bodhi
But we'll need to flash new stock u-boot. So it is not recommended without being able to kwboot it first.

Once we can kwboot the box, then I'll develop a new u-boot for it. It is practically the same as for the Xyzel NAS326.

With that said, I will hopefully figure out a way, but I'd prefer to work on that only after we booted Debian on USB. It is too early to think about saving envs.


bodhi, maybe you can explain to me why we're not working on a new u-boot for this instead of trying to make it work with the existing one.

We've already established through testing:
  • The EX2100/4100 can boot into Debian using the uInitrd from cschill
  • Limitations with stock u-boot prevent us from booting the mvebu Debian image you provided

If the goal is to get Debian working, then we can already do this using peacemaker's kernel and cschil's uInitrd. It's not perfect because it's not the same image as the rest of mvebu hardware, but it works.

I feel like we are sadly wasting our time trying to get your generic mvebu image to work on the EX2100/4100 with stock u-boot. It would be much more helpful I think, to work on a new u-boot which doesn't have these stupid limitations. Then we can easily distribute and boot a generic mvebu build.

Is there some reason why we cannot switch focus to new u-boot?
Re: Debian on WD MyCloud EX 4100
June 04, 2017 01:32PM
hmartin,

> Marvell>> setenv bootdev usb
> Marvell>> setenv device '0:1'
> Marvell>> setenv load_initrd_addr 0xf00000
> Marvell>> setenv load_image_addr 0xa00000
> Marvell>> setenv load_initrd 'echo loading uInitrd
> ...; ext2load $bootdev $device $load_initrd_addr /
> boot/uInitrd'
> Marvell>> setenv load_image 'echo loading Image ..
> .; ext2load $bootdev $device $load_image_addr /boo
> t/uImage.fdt'
> Marvell>> setenv usb_set_bootargs 'setenv bootargs
> "console=ttyS0,115200 root=/dev/sda1 rootdelay=10
> $mtdparts earlyprintk=serial"'
> Marvell>> setenv usb_bootcmd 'echo Booting from US
> B ...; setenv fdt_skip_update yes; usb start; run
> load_image; run usb_set_bootargs; bootm $load_imag
> e_addr $load_initrd_addr'
> Marvell>> setenv bootcmd_usb 'usb start; run usb_s
> et_bootargs; run usb_bootcmd; reset'
> Marvell>> run bootcmd_usb
> (Re)start USB...
> USB0: Port (usbActive) : 0 Interface (usbType =
> 3) : USB XHCI 1.00
> scanning bus 0 for devices... 2 USB Device(s) foun
> d
> scanning usb for storage devices... 1 Stora
> ge Device(s) found
> scanning usb for ethernet devices... 0 Ethe
> rnet Device(s) found
> Booting from USB ...
> (Re)start USB...
> USB0: Port (usbActive) : 0 Interface (usbType =
> 3) : USB XHCI 1.00
> scanning bus 0 for devices... 2 USB Device(s) foun
> d
> scanning usb for storage devices... 1 Stora
> ge Device(s) found
> scanning usb for ethernet devices... 0 Ethe
> rnet Device(s) found
> loading Image ...
> 3919325 bytes read in 477 ms (7.8 MiB/s)

uInitrd was not loaded here.

> ## Booting image at 00a00000 ...
> ## Booting kernel from Legacy Image at 00a00000 ..
> .
> Image Name: Linux-4.9.0-mvebu-tld-12
> Created: 2017-06-04 8:35:55 UTC
> Image Type: ARM Linux Kernel Image (uncompres
> sed)
> Data Size: 3919261 Bytes = 3.7 MiB
> Load Address: 00008000
> Entry Point: 00008000
> Verifying Checksum ... OK
> ### Ramdisk error,

So the error is expected.

Let's take a look at the envs to find out why this line was not executed?
load_initrd=echo loading uInitrd ...; ext2load $bootdev $device $load_initrd_addr /boot/uInitrd

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on WD MyCloud EX 4100
June 04, 2017 01:35PM
saschadd,

I think the EX4100 USB is different from the EX2100. hmartin log showed the USB drive was initialized, but yours did not.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on WD MyCloud EX 4100
June 04, 2017 01:38PM
Here was the problem. Perhaps my mistake in my instruction above.

Marvell>> setenv usb_bootcmd 'echo Booting from USB ...; setenv fdt_skip_update yes; usb start; run load_image; run usb_set_bootargs; bootm $load_image_addr $load_initrd_addr'

Should be
setenv usb_bootcmd 'echo Booting from USB ...; setenv fdt_skip_update yes; usb start; run load_image; load_initrd; run usb_set_bootargs; bootm $load_image_addr $load_initrd_addr'

Yes, sorry my mistake above! Let's me post a revised set of envs.

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



Edited 1 time(s). Last edit at 06/04/2017 01:41PM by bodhi.
Re: Debian on WD MyCloud EX 4100
June 04, 2017 01:43PM
@all,

Here is the revised instruction. Please try this and post your serial console log.

1. Mount the USB rootfs on another Linux box or in stock OS. Assuming it is mounted at /media/sdb1.

cd /media/sdb1/boot
cp -a zImage-4.9.0-mvebu-tld-12  zImage.fdt
cat dts/armada-385-wd-ex4100.dtb  >> zImage.fdt
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-4.9.0-mvebu-tld-12 -d zImage.fdt  uImage
sync
umount /media/sdb1


2. Plug in the USB rootfs to the rear USB port, power up, interrupt serial console and

setenv bootdev usb
setenv device '0:1'
setenv load_initrd_addr 0xf00000
setenv load_image_addr 0xa00000
setenv load_initrd 'echo loading uInitrd ...; ext2load $bootdev $device $load_initrd_addr /boot/uInitrd'
setenv load_image 'echo loading Image ...; ext2load $bootdev $device $load_image_addr /boot/uImage'
setenv usb_set_bootargs 'setenv bootargs "console=ttyS0,115200 root=/dev/sda1 rootdelay=10 $mtdparts earlyprintk=serial"'
setenv usb_bootcmd 'echo Booting from USB ...; setenv fdt_skip_update yes; usb start; run load_image; run load_initrd; run usb_set_bootargs; bootm $load_image_addr $load_initrd_addr'
setenv bootcmd_usb 'usb start; run usb_set_bootargs; run usb_bootcmd; reset'
printenv
run bootcmd_usb

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on WD MyCloud EX 4100
June 04, 2017 01:57PM
hmartin,

> bodhi, maybe you can explain to me why we're not w
> orking on a new u-boot for this instead of trying
> to make it work with the existing one.
>
> I feel like we are sadly wasting our time trying t
> o get your generic mvebu image to work on the EX21
> 00/4100 with stock u-boot. It would be much more h
> elpful I think, to work on a new u-boot which does
> n't have these stupid limitations. Then we can eas
> ily distribute and boot a generic mvebu build.
>
> Is there some reason why we cannot switch focus to
> new u-boot?

Sure, what you said is all true. Usually with a new box, I always work on u-boot first. Because only by doing that we can really understand all aspects of the hardware.

The exception to the Armada boxes (this EX4100/2100 and the NAS326): we cannot boot with UART running kwboot yet. It is not possible to test new u-boot without being able to run kwboot. It is just too risky to replace stock u-boot with something I am still testing. The risk of bricking is too high.

For box like the Clearfog, they hardwire a DIP switch to the board and set boot mode to UART when they want to load new u-boot to test it. We don't have this luxury with the Zyxel NAS 326 and WD MYCloud EX2100/4100.

So if you could, try to kwboot this box again. Search for a solution to do that. Once you can kwboot it, I'll roll new u-boot.

In the mean time, please do the test with my revised envs above. It's for the community benefit if we can boot with my release kernel as is (so we can have future kernel upgrade for MVEBU boxes).

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on WD MyCloud EX 4100
June 04, 2017 01:59PM
Quote
bodhi
2. Plug in the USB rootfs to the rear USB port, power up, interrupt serial console and

This time with uInitrd ;-)

Still a kernel panic:
Marvell>> setenv bootdev usb
Marvell>> setenv device '0:1'
Marvell>> setenv load_initrd_addr 0xf00000
Marvell>> setenv load_image_addr 0xa00000
Marvell>> setenv load_initrd 'echo loading uInitrd ...; ext2load $bootdev $device $load_initrd_addr /boot/uInitrd'
Marvell>> setenv load_image 'echo loading Image ...; ext2load $bootdev $device $load_image_addr /boot/uImage.fdt'
Marvell>> setenv usb_set_bootargs 'setenv bootargs "console=ttyS0,115200 root=/dev/sda1 rootdelay=10 $mtdparts earlyprintk=serial"'
Marvell>> setenv usb_bootcmd 'echo Booting from USB ...; setenv fdt_skip_update yes; usb start; run load_image; run load_initrd; run usb_set_bootargs; bootm $load_image_addr $load_initrd_addr'
Marvell>> setenv bootcmd_usb 'usb start; run usb_set_bootargs; run usb_bootcmd; reset'
Marvell>> run bootcmd_usb
(Re)start USB...
USB0:   Port (usbActive) : 0	Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
Booting from USB ...
(Re)start USB...
USB0:   Port (usbActive) : 0	Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
loading Image ...
3919325 bytes read in 473 ms (7.9 MiB/s)
loading uInitrd ...
6210503 bytes read in 518 ms (11.4 MiB/s)
## Booting image at 00a00000 ...
## Booting kernel from Legacy Image at 00a00000 ...
   Image Name:   Linux-4.9.0-mvebu-tld-12
   Created:      2017-06-04   8:35:55 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3919261 Bytes = 3.7 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 00f00000 ...
   Image Name:   initramfs-4.9.0-mvebu-tld-12
   Created:      2017-02-03  23:57:32 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    6210439 Bytes = 5.9 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.9.0-mvebu-tld-12 (root@tldDebianVM) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4) ) #2 SMP PREEMPT Wed Feb 1 02:31:29 PST 2017
[    0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt:Machine model: WD My Cloud EX4100
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 15 pages/cpu @ef7cd000 s30796 r8192 d22452 u61440
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260608
[    0.000000] Kernel command line:  console=ttyS0,115200 root=/dev/sda1 rootdelay=10 mtdparts=armada-nand:5m(u-boot)ro,5m@5m(kernel),5m@10m(uRamdisk),441m@15m(image.cfs),15m@456m(rescue_fw),20m@471m(config),10m@491m(reserve1),10m@501m(reserve2) earlyprintk=serial
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 1019952K/1048576K available (8192K kernel code, 690K rwdata, 2052K rodata, 1024K init, 386K bss, 28624K reserved, 0K cma-reserved, 262144K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0900000   (9184 kB)
[    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
[    0.000000]       .data : 0xc0d00000 - 0xc0daca28   ( 691 kB)
[    0.000000]        .bss : 0xc0daca28 - 0xc0e0d4f8   ( 387 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] 	Build-time adjustment of leaf fanout to 32.
[    0.000000] 	RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=2
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] mvebu_mbus: [Firmware Warn]: deprecated mbus-mvebu Device Tree, suspend/resume will not work
[    0.000000] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000] L2C-310 D prefetch enabled, offset 1 lines
[    0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000] L2C-310 Coherent cache controller enabled, 16 ways, 1024 kB
[    0.000000] L2C-310 Coherent: CACHE_ID 0x410054c9, AUX_CTRL 0x56070001
[    0.000000] Switching to timer-based delay loop, resolution 40ns
[    0.000003] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 85899345900ns
[    0.007883] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.019111] Console: colour dummy device 80x30
[    0.023627] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[    0.034034] pid_max: default: 32768 minimum: 301
[    0.038803] Security Framework initialized
[    0.043004] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.049679] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.057258] CPU: Testing write buffer coherency: ok
[    0.062350] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.068093] Setting up static identity map for 0x100000 - 0x100058
[    0.074411] mvebu-soc-id: MVEBU SoC ID=0x6820, Rev=0x4
[    0.079684] mvebu-pmsu: Initializing Power Management Service Unit
[    0.283617] Booting CPU 1
[    0.286488] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.286545] Brought up 2 CPUs
[    0.295306] SMP: Total of 2 processors activated (100.00 BogoMIPS).
[    0.301626] CPU: All CPU(s) started in SVC mode.
[    0.306896] devtmpfs: initialized
[    0.312533] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.320518] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.330456] prandom: seed boundary self test passed
[    0.337418] prandom: 100 self tests passed
[    0.341579] pinctrl core: initialized pinctrl subsystem
[    0.347617] NET: Registered protocol family 16
[    0.352759] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.383465] cpuidle: using governor ladder
[    0.413432] cpuidle: using governor menu
[    0.417514] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.425587] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.431586] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.439746] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.504487] vgaarb: loaded
[    0.507514] SCSI subsystem initialized
[    0.511812] usbcore: registered new interface driver usbfs
[    0.517447] usbcore: registered new interface driver hub
[    0.522881] usbcore: registered new device driver usb
[    0.528236] media: Linux media interface: v0.10
[    0.532890] Linux video capture interface: v2.00
[    0.538519] clocksource: Switched to clocksource armada_370_xp_clocksource
[    0.574688] VFS: Disk quotas dquot_6.6.0
[    0.578765] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.594113] NET: Registered protocol family 2
[    0.598981] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.606122] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.612702] TCP: Hash tables configured (established 8192 bind 8192)
[    0.619163] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.625160] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.631690] NET: Registered protocol family 1
[    0.636379] RPC: Registered named UNIX socket transport module.
[    0.642372] RPC: Registered udp transport module.
[    0.647138] RPC: Registered tcp transport module.
[    0.651913] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.658554] Unpacking initramfs...
[    0.662026] Initramfs unpacking failed: junk in compressed archive
[    0.671666] Freeing initrd memory: 6068K (c0f00000 - c14ed000)
[    0.677649] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.685304] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.691550] audit: initializing netlink subsys (disabled)
[    0.697029] audit: type=2000 audit(0.680:1): initialized
[    0.702725] Initialise system trusted keyrings
[    0.707384] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[    0.713972] zbud: loaded
[    0.717108] NFS: Registering the id_resolver key type
[    0.722243] Key type id_resolver registered
[    0.726490] Key type id_legacy registered
[    0.730582] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.737335] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.743903] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.751356] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.757970] orangefs_init: module version upstream loaded
[    0.765582] Key type asymmetric registered
[    0.769760] Asymmetric key parser 'x509' registered
[    0.774728] bounce: pool size: 64 pages
[    0.778717] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.786163] io scheduler noop registered
[    0.790163] io scheduler deadline registered
[    0.794510] io scheduler cfq registered (default)
[    0.852061] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    0.862427] libphy: Fixed MDIO Bus: probed
[    0.867262] libphy: mdio_driver_register: mv88e6085
[    0.872840] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.879453] ehci-pci: EHCI PCI platform driver
[    0.884053] ehci-orion: EHCI orion driver
[    0.888509] usbcore: registered new interface driver usblp
[    0.894136] usbcore: registered new interface driver usb-storage
[    0.900508] mousedev: PS/2 mouse device common for all mice
[    0.906714] i2c /dev entries driver
[    0.911545] hidraw: raw HID events driver (C) Jiri Kosina
[    0.917303] usbcore: registered new interface driver usbhid
[    0.922948] usbhid: USB HID core driver
[    0.927009] drop_monitor: Initializing network drop monitor service
[    0.933378] Netfilter messages via NETLINK v0.30.
[    0.938156] ip_set: protocol 6
[    0.941492] NET: Registered protocol family 10
[    0.946505] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    0.953497] NET: Registered protocol family 17
[    0.958171] 8021q: 802.1Q VLAN Support v1.8
[    0.962466] Key type dns_resolver registered
[    0.966896] ThumbEE CPU extension supported.
[    0.971252] Registering SWP/SWPB emulation handler
[    0.976621] registered taskstats version 1
[    0.980798] Loading compiled-in X.509 certificates
[    0.985684] zswap: loaded using pool lzo/zbud
[    1.033095] Key type big_key registered
[    1.037247] Key type encrypted registered
[    1.042454] hctosys: unable to open rtc device (rtc0)
[    3.968982] Unable to handle kernel paging request at virtual address f0000000
[    3.976257] pgd = c0004000
[    3.979034] [f0000000] *pgd=00000000
[    3.982691] Internal error: Oops: 5 [#1] PREEMPT SMP ARM
[    3.988061] Modules linked in:
[    3.991197] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.9.0-mvebu-tld-12 #2
[    3.998208] Hardware name: Marvell Armada 380/385 (Device Tree)
[    4.004183] task: ef099940 task.stack: ef09a000
[    4.008779] PC is at crc32_be+0x70/0x140
[    4.012767] LR is at 0x7
[    4.015373] pc : [<c04d5c50>]    lr : [<00000007>]    psr: 80000013
[    4.015373] sp : ef09bed4  ip : f0000000  fp : 00000000
[    4.026965] r10: 14feadfa  r9 : 6bbcfc92  r8 : 00001410
[    4.032248] r7 : 00001810  r6 : 00001010  r5 : 00001c10  r4 : b1f564b0
[    4.038828] r3 : c0933bf0  r2 : f0defde0  r1 : c11666d0  r0 : 4b16340d
[    4.045408] Flags: Nzcv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
[    4.052592] Control: 10c5387d  Table: 0000404a  DAC: 00000051
[    4.058394] Process swapper/0 (pid: 1, stack limit = 0xef09a220)
[    4.064455] Stack: (0xef09bed4 to 0xef09c000)
[    4.068875] bec0:                                              f0defde7 c0e02f74 00000000
[    4.077099] bee0: 00000101 c0daca40 c0c640ac c0c5183c 00000000 c0c3bda0 ffffe000 c0c3bd78
[    4.085322] bf00: 00000000 c01019bc ef0fd780 c0903c60 c0dd3aa4 cccccccd c0daca00 c029cc94
[    4.093545] bf20: efffcd52 efffcd5e c0b0065c c013f774 00000003 00000001 c0aff25c 00000007
[    4.101768] bf40: 00000007 c0b00670 00000100 c0b00670 c0d0dbc0 00000008 c0daca40 00000008
[    4.109991] bf60: c0daca40 c0c51838 00000101 c0daca40 c0c640ac c0c00e04 00000007 00000007
[    4.118214] bf80: 00000000 c0c005b4 00000000 c0834b6c 00000000 00000000 00000000 00000000
[    4.126437] bfa0: 00000000 c0834b74 00000000 c010c338 00000000 00000000 00000000 00000000
[    4.134659] bfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    4.142882] bfe0: 00000000 00000000 00000000 00000000 00000013 00000000 ffffffff bfff7fff
[    4.151115] [<c04d5c50>] (crc32_be) from [<c0c3bda0>] (of_fdt_raw_init+0x28/0x70)
[    4.158652] [<c0c3bda0>] (of_fdt_raw_init) from [<c01019bc>] (do_one_initcall+0xa8/0x150)
[    4.166880] [<c01019bc>] (do_one_initcall) from [<c0c00e04>] (kernel_init_freeable+0x190/0x258)
[    4.175625] [<c0c00e04>] (kernel_init_freeable) from [<c0834b74>] (kernel_init+0x8/0x10c)
[    4.183852] [<c0834b74>] (kernel_init) from [<c010c338>] (ret_from_fork+0x14/0x3c)
[    4.191471] Code: e3017810 e3018410 e154000c 0a000023 (e59c9000) 
[    4.197620] ---[ end trace 81d7979845743412 ]---
[    4.202455] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[    4.202455] 
[    4.211724] CPU1: stopping
[    4.214507] CPU: 1 PID: 0 Comm: swapper/1 Tainted: G      D         4.9.0-mvebu-tld-12 #2
[    4.222728] Hardware name: Marvell Armada 380/385 (Device Tree)
[    4.228712] [<c01160bc>] (unwind_backtrace) from [<c0110bb4>] (show_stack+0x10/0x14)
[    4.236506] [<c0110bb4>] (show_stack) from [<c04ba5a4>] (dump_stack+0x70/0x8c)
[    4.243782] [<c04ba5a4>] (dump_stack) from [<c0113f90>] (handle_IPI+0x16c/0x350)
[    4.251229] [<c0113f90>] (handle_IPI) from [<c0101520>] (gic_handle_irq+0x78/0x94)
[    4.258848] [<c0101520>] (gic_handle_irq) from [<c011160c>] (__irq_svc+0x6c/0xa8)
[    4.266377] Exception stack(0xef0c5f98 to 0xef0c5fe0)
[    4.271488] 5f80:                                                       00000001 00000000
[    4.279711] 5fa0: 00000000 c011e6c0 00000000 00000000 ef0c4000 c0d0412c 00000002 ef0c5ff0
[    4.287934] 5fc0: c0d04194 00000000 00000000 ef0c5fe8 c010d400 c010d404 60000013 ffffffff
[    4.296158] [<c011160c>] (__irq_svc) from [<c010d404>] (arch_cpu_idle+0x2c/0x38)
[    4.303605] [<c010d404>] (arch_cpu_idle) from [<c015ef04>] (cpu_startup_entry+0xf0/0x1d0)
[    4.311829] [<c015ef04>] (cpu_startup_entry) from [<0010166c>] (0x10166c)
[    4.318672] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[    4.318672]
Re: Debian on WD MyCloud EX 4100
June 04, 2017 02:05PM
Quote
bodhi
The exception to the Armada boxes (this EX4100/2100 and the NAS326): we cannot boot with UART running kwboot yet. It is not possible to test new u-boot without being able to run kwboot. It is just too risky to replace stock u-boot with something I am still testing. The risk of bricking is too high.

You make good points. I looked today about chain loading u-boot. I couldn't get the EX2100 to chain load the WD u-boot or the mainline u-boot, so it's difficult for me to say if the WD u-boot from source is correct or not.

I also looked at the WD u-boot source. You are correct that the board is missing dip switches to select boot. However I was thinking, what if we replaced the default boot device in u-boot from NAND to UART? It would mean kwboot via UART is required to start, but it would basically be impossible to brick. The only tricky part would be testing u-boot before flashing the modified version which would always boot from UART.

In u-boot-2013.01-2014_T3.0p2/board/mv_ebu/a38x/armada_38x_family/boardEnv/mvBoardEnvLib.c replace the contents of the function mvBoardBootDeviceGet to return MSAR_0_BOOT_UART

/*******************************************************************************
* mvBoardBootDeviceGet -   Get the Selected S@R boot device
*
* DESCRIPTION:
*   read board BOOT configuration from S@R and return Boot device accordingly
*
* INPUT:
*
* OUTPUT:  None.
*
* RETURN:
*       the selected MV_BOARD_BOOT_SRC
*
*******************************************************************************/
MV_BOARD_BOOT_SRC mvBoardBootDeviceGet()
{
        MV_U32 satrBootDeviceValue;
        MV_SATR_BOOT_TABLE satrBootEntry;

        satrBootDeviceValue = mvCtrlbootSrcGet();

        satrBootEntry = satrBootSrcTable[satrBootDeviceValue];

        if (-1 == (MV_U32)satrBootEntry.bootSrc)        /* return default for incorrect value */
                return MSAR_0_BOOT_SPI_FLASH;

        if (satrBootEntry.bootSrc != MSAR_0_BOOT_SPI_FLASH)
                return satrBootEntry.bootSrc;

        /* if boot source is SPI ,verify which CS (0/1) */
        if (mvBoardBootAttrGet(satrBootDeviceValue, 1) == MSAR_0_SPI0)
                return MSAR_0_BOOT_SPI_FLASH;
        else
                return MSAR_0_BOOT_SPI1_FLASH;
}

Another alternative would be to add a delay in the boot sequence, where u-boot delays for some seconds waiting for UART, before proceeding with NAND boot. But accomplishing this would be beyond my abilities without investing a lot more time to understanding the WD u-boot code.

Finally, you can buy the 360 clip for TSOP48, which you can use to read/write the NAND chip physically. It's not ideal because you need to invest about 50€ in the hardware, but it's well understood since people have been using it to mod PS3/Xbox/Wii for quite some time. I am willing to try a few more things in software before I spend the money on the chip clip.



Edited 1 time(s). Last edit at 06/04/2017 02:09PM by hmartin.
Re: Debian on WD MyCloud EX 4100
June 04, 2017 02:11PM
hmartin Wrote:

> Still a kernel panic:

Damn :) something about this box that I don't understand!

FWIW, I'm booting the NAS326 exactly the same way with bootm, without problem (using kernel 4.10.9).

Hold on, I'll switch it back to the released basic rootfs and try it on NAS326.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on WD MyCloud EX 4100
June 04, 2017 02:23PM
hmartin Wrote:
-------------------------------------------------------
>
Quote
bodhi
> The exception to the Armada boxes (this EX4100/210
> 0 and the NAS326): we cannot boot with UART runnin
> g kwboot yet. It is not possible to test new u-boo
> t without being able to run kwboot. It is just too
> risky to replace stock u-boot with something I am
> still testing. The risk of bricking is too high.
>
>
> You make good points. I looked today about chain l
> oading u-boot. I couldn't get the EX2100 to chain
> load the WD u-boot or the mainline u-boot, so it's
> difficult for me to say if the WD u-boot from sour
> ce is correct or not.

Chainload is not possible with a much newer u-boot from the running stock u-boot.

> I also looked at the WD u-boot source. You are cor
> rect that the board is missing dip switches to sel
> ect boot. However I was thinking, what if we repla
> ced the default boot device in u-boot from NAND to
> UART? It would mean kwboot via UART is required to
> start, but it would basically be impossible to bri
> ck. The only tricky part would be testing u-boot b
> efore flashing the modified version which would al
> ways boot from UART.

Not really. This UART setting won't help. The board does not have u-boot running when we kwboot it :). It's the BootROM that receives kwboot handshake and load our new u-boot coming on the serial line.

Please try this to see if you can display/set the Sample at Reset: at serial console prompt,

SatR
And then try various sub-commands to see if you can read or set the register to change boot mode.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on WD MyCloud EX 4100
June 04, 2017 03:04PM
Quote
bodhi
And then try various sub-commands to see if you can read or set the register to change boot mode.

No joy I'm afraid:
Marvell>> SatR read
mvBoardSatRRead: Error: Read from S@R failed
Error reading from TWSI
mvBoardSatRRead: Error: Read from S@R failed
Error reading from TWSI
mvBoardSatRRead: Error: Read from S@R failed
Error reading from TWSI
mvBoardSatRRead: Error: Read from S@R failed
Error reading from TWSI
mvBoardSatRRead: Error: Read from S@R failed
Error reading from TWSI
mvBoardSatRRead: Error: Read from S@R failed
Error reading from TWSI
mvBoardSatRRead: Error: Read from S@R failed
Error reading from TWSI
mvBoardSatRRead: Error: Read from S@R failed
Error reading from TWSI
mvBoardSatRRead: Error: Read from S@R failed
Error reading from TWSI
mvBoardSatRRead: Error: Read from S@R failed
Error reading from TWSI
mvBoardSatRRead: Error: Read from S@R failed
Error reading from TWSI
mvBoardSatRRead: Error: Read from S@R failed
Error reading from TWSI
mvBoardSatRRead: Error: Read from S@R failed
Error reading from TWSI
mvBoardSatRRead: Error: Read from S@R failed
Error reading from TWSI
mvBoardSatRRead: Error: Read from S@R failed
Error reading from TWSI
mvBoardSatRRead: Error: Read from S@R failed
Error reading from TWSI
mvBoardSatRRead: Error: Read from S@R failed
Error reading from TWSI

Trying to read a specific field:
Marvell>> SatR read bootsrc
mvBoardSatRRead: Error: Read from S@R failed
Error reading from TWSI

From the u-boot source:
        /* read */
        if (mvBoardTwsiSatRGet(satrInfo.devClassId , satrInfo.regOffset, &data) != MV_OK) {
                mvOsPrintf("%s: Error: Read from S@R failed\n", __func__);
                return MV_ERROR;
        }

:(
Re: Debian on WD MyCloud EX 4100
June 04, 2017 03:11PM
hmartin Wrote:
-------------------------------------------------------
>
Quote
bodhi
> And then try various sub-commands to see if you ca
> n read or set the register to change boot mode.
>
>
> No joy I'm afraid:
>
> Marvell>> SatR read
> mvBoardSatRRead: Error: Read from S@R failed
> Error reading from TWSI
> mvBoardSatRRead: Error: Read from S@R failed
> Error reading from TWSI
> mvBoardSatRRead: Error: Read from S@R failed
> Error reading from TWSI
> mvBoardSatRRead: Error: Read from S@R failed
> Error reading from TWSI
> mvBoardSatRRead: Error: Read from S@R failed
> Error reading from TWSI
> mvBoardSatRRead: Error: Read from S@R failed
> Error reading from TWSI
> mvBoardSatRRead: Error: Read from S@R failed
> Error reading from TWSI
> mvBoardSatRRead: Error: Read from S@R failed
> Error reading from TWSI
> mvBoardSatRRead: Error: Read from S@R failed
> Error reading from TWSI
> mvBoardSatRRead: Error: Read from S@R failed
> Error reading from TWSI
> mvBoardSatRRead: Error: Read from S@R failed
> Error reading from TWSI
> mvBoardSatRRead: Error: Read from S@R failed
> Error reading from TWSI
> mvBoardSatRRead: Error: Read from S@R failed
> Error reading from TWSI
> mvBoardSatRRead: Error: Read from S@R failed
> Error reading from TWSI
> mvBoardSatRRead: Error: Read from S@R failed
> Error reading from TWSI
> mvBoardSatRRead: Error: Read from S@R failed
> Error reading from TWSI
> mvBoardSatRRead: Error: Read from S@R failed
> Error reading from TWSI
>
>
> Trying to read a specific field:
>
> Marvell>> SatR read bootsrc
> mvBoardSatRRead: Error: Read from S@R failed
> Error reading from TWSI
>
>
> From the u-boot source:
>
> /* read */
> if (mvBoardTwsiSatRGet(satrInfo.devClassId
> , satrInfo.regOffset, &data) != MV_OK) {
> mvOsPrintf("%s: Error: Read from S
> @R failed\n", __func__);
> return MV_ERROR;
> }
>
>
> :(

It's the same behavior as Zyxel u-boot.

When you do kwboot, what do you see? can you post the log?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on WD MyCloud EX 4100
June 04, 2017 03:16PM
Quote
bodhi
When you do kwboot, what do you see? can you post the log?

Sure:
./kwboot -t -B 115200 /dev/ttyUSB0 -b u-boot-a38x-Yosemite_2014T3_PQ-nand-uart.bin 
Sending boot message. Please reboot the target.../
Sending boot image...
  0 % [+++++++++++++++++xmodem: Bad message

Trying to kwboot *any* other u-boot image just sits with Sending boot message. Please reboot the target.../ forever. Seriously, I've tried every other u-boot image. Also with -p flag, makes no difference.

Edit:
$ hexdump -C u-boot-a38x-Yosemite_2014T3_PQ-nand-uart.bin | head -10
00000000  69 01 00 00 7c 77 0d 00  01 01 80 13 80 13 01 00  |i...|w..........|

According to the kwboot documentation, 0x69 is required for UART images. -p flag is supposed to patch this into other u-boot images, but it never works on the EX2100.



Edited 1 time(s). Last edit at 06/04/2017 03:18PM by hmartin.
Re: Debian on WD MyCloud EX 4100
June 04, 2017 03:30PM
hmartin,

We've beaten this kwboot subject to death on the NAS326 thread :) I was hoping the WD setting is different. But it seems they followed the same approach, and show the same behavior.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on WD MyCloud EX 4100
June 04, 2017 03:51PM
Here is the NAS326 boot log.

M - 1.73
Booting from NAND flash

General initialization - Version: 1.0.0
Detected Device ID 6810
High speed PHY - Version: 2.0

Init RD NAS topology board SerDes lanes topology details:
 | Lane #  | Speed |  Type       |
 --------------------------------
 |   0    |  06   |  SATA0	|
 |   1    |  05   |  USB3 HOST0	|
 |   2    |  06   |  SATA1	|
 |   5    |  05   |  USB3 HOST1	|
 --------------------------------
High speed PHY - Ended Successfully
DDR3 Training Sequence - Ver TIP-1.26.0
mvSysEnvGetTopologyUpdateInfo: TWSI Read failed
DDR3 Training Sequence - Switching XBAR Window to FastPath Window 
DDR3 Training Sequence - Ended Successfully
Not detected suspend to RAM indication
BootROM: Image checksum verification PASSED

 __   __                      _ _
|  \/  | __ _ _ ____   _____| | |
| |\/| |/ _` | '__\ \ / / _ \ | |
| |  | | (_| | |   \ V /  __/ | |
|_|  |_|\__,_|_|    \_/ \___|_|_|
         _   _     ____              _
        | | | |   | __ )  ___   ___ | |_ 
        | | | |___|  _ \ / _ \ / _ \| __| 
        | |_| |___| |_) | (_) | (_) | |_ 
         \___/    |____/ \___/ \___/ \__| 
 ** LOADER **


U-Boot 2013.01-svn48797 (Jan 18 2016 - 03:10:12) Marvell version: 2014_T3.0p6

Board: RD-NAS-88F6820-DDR3
SoC:   MV88F6810 Rev A0
       running 1 CPUs
CPU:   ARM Cortex A9 MPCore (Rev 1) LE
       CPU 0
       CPU    @ 1332 [MHz]
       L2     @ 666 [MHz]
       TClock @ 200 [MHz]
       DDR    @ 666 [MHz]
       DDR 32 Bit Width, FastPath Memory Access, DLB Enabled, ECC Disabled
DRAM:  512 MiB

Map:   Code:			0x1fed0000:0x1ff95e28
       BSS:			0x1ffef2b4
       Stack:			0x1f9cff20
       Heap:			0x1f9d0000:0x1fed0000
       U-Boot Environment:	0x00200000:0x00280000 (NAND)

NAND:  256 MiB
MMC:   mv_sdh: 0
*** Booting kernel from kernel 1 @0x00000000; run bootcmd_custom;  ***
USB2.0 0: Host Mode
USB3.0 0: Host Mode
USB3.0 1: Host Mode
Board configuration detected:
Net:   
|  port  | Interface | PHY address  |
|--------|-----------|--------------|
| egiga0 |   RGMII   |     0x01     |
egiga0 [PRIME]
Hit any key to stop autoboot:  0 
Marvell>> setenv usb_bootcmd 'echo Booting from USB ...; setenv fdt_skip_update yes; run usb_init; ext2load usb 0:1 $load_image_addr /boot/uImage.nas326; ext2load usb 0:1 $load_initrd_addr /boot/uInitrd; run usb_set_bootargs; bootm $load_image_addr $load_initrd_addr'
Marvell>> setenv bootcmd_custom_usb 'run usb_bootcmd; reset'
Marvell>> printenv 
CASset=max
CONTRY_TYPE=FF
FEATURE_BIT=00
MALLOC_len=5
MODEL_ID=B303
MPmode=SMP
PRODUCT_NAME=STG-328
VENDOR_NAME=MitraStar Technology Corp.
autoload=no
baudrate=115200
boot_order=hd_scr usb_scr mmc_scr hd_img usb_img mmc_img pxe net_img net_scr
bootargs=console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=armada-nand:2m(u-boot),2m(env),2m(config),15m(kernel1),110m(rootfs1),15m(kernel2),-(rootfs2) earlyprintk=serial
bootargs_dflt=$console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel
bootargs_end=:10.4.50.254:255.255.255.0:Armada38x:eth0:none
bootargs_root=root=/dev/nfs rw
bootcmd=nand read 0x2000000 0x00000000; run bootcmd_custom;  0xF00000 && bootz 0x2000000
bootcmd_auto=stage_boot $boot_order
bootcmd_custom=run bootcmd_custom_usb
bootcmd_custom_sata=if run sata_bootcmd; then; else if run bootcmd_stock_1; then; else run bootcmd_stock_2; reset; fi; fi
bootcmd_custom_usb=run usb_bootcmd; reset
bootcmd_fdt=tftpboot 0x2000000 $image_name;tftpboot $fdtaddr $fdtfile;setenv bootargs $console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel; bootz 0x2000000 - $fdtaddr;
bootcmd_fdt_boot=tftpboot 0x2000000 $image_name; setenv bootargs $console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel; bootz 0x2000000 - $fdtaddr;
bootcmd_fdt_edit=tftpboot $fdtaddr $fdtfile; fdt addr $fdtaddr; setenv bootcmd $bootcmd_fdt_boot
bootcmd_lgcy=tftpboot 0x2000000 $image_name; setenv bootargs $bootargs_dflt; bootm 0x2000000;
bootcmd_stock_1=run set_bootargs_stock; echo Booting from NAND kernel 1 ...; nand read 0x2000000 0x00E00000 0xF00000 && bootz 0x2000000
bootcmd_stock_2=run set_bootargs_stock; echo Booting from NAND kernel 2 ...; nand read 0x2000000 0x08700000 0xF00000 && bootz 0x2000000
bootdelay=10
cacheShare=no
change_boot_part=1
console=console=ttyS0,115200
core_checksum_1=a50bde9e7b4ea619ad2680175b45e56a
core_checksum_2=a50bde9e7b4ea619ad2680175b45e56a
curr_bootfrom=1
device_partition=0:1
disaMvPnp=no
eeeEnable=no
enaClockGating=no
enaCpuStream=no
enaFPU=yes
enaMonExt=no
enaWrAllo=no
eth1addr=00:50:xx:xx:xx:xx
eth1mtu=1500
eth2addr= 00:50:xx:xx:xx:xx
eth2mtu=1500
eth3addr= 00:50:xx:xx:xx:xx
eth3mtu=1500
ethact=egiga0
ethaddr= 00:50:xx:xx:xx:xx
ethmtu=1500
ethprime=egiga0
fdt_addr=2040000
fdt_skip_update=yes
fdtaddr=0x1000000
fdtfile=armada-38x-modular.dtb
filesize=0x9c8fbe
fwversion_1=V5.11(AAZF.3)
fwversion_2=V5.11(AAZF.3)
ide_path=/
image_name=uImage
img_checksum_1=42996f6e0026bdb8c93c25fc6198a7b4
img_checksum_2=42996f6e0026bdb8c93c25fc6198a7b4
initrd_name=uInitrd
ipaddr=192.168.0.120
kernel_addr=${kernel_addr_1}
kernel_addr_1=0x00000000; run bootcmd_custom; 
kernel_addr_2=0x00000000; run bootcmd_custom; 
kernel_addr_r=2080000
kernel_mtd_1=3
kernel_mtd_2=5
lcd0_enable=0
lcd0_params=640x480-16@60
lcd_panel=0
load_dtb_addr=0x1000000
load_image_addr=0x02000000
load_initrd_addr=0x2900000
loadaddr=0x02000000
loads_echo=0
modelid_1=B303
modelid_2=B303
mtdids=nand0=armada-nand
mtdparts=mtdparts=armada-nand:2m(u-boot),2m(env),2m(config),15m(kernel1),110m(rootfs1),15m(kernel2),-(rootfs2)
mvNetConfig=mv_net_config=4,(00:50:43:11:11:11,0:1:2:3),mtu=1500
mv_pon_addr=00:50:43:25:a6:38
nandEcc=nfcConfig=4bitecc
netbsd_en=no
netmask=255.255.255.0
netretry=no
next_bootfrom=1
pcieTune=no
pexMode=RC
preboot=echo In Preboot ...
pxe_files_load=:default.arm-armadaxp-db:default.arm-armadaxp:default.arm
pxefile_addr_r=3100000
ramdisk_addr_r=2880000
revision_1=49397
revision_2=49397
romfile_checksum_1=BC12
romfile_checksum_2=BC12
rootpath=/srv/nfs/
sata_bootcmd=echo Booting from SATA ...; setenv fdt_skip_update yes; run sata_init; ext2load scsi 0:1 $load_image_addr /boot/zImage; ext2load scsi 0:1 $load_dtb_addr /boot/dts/armada-380-zyxel-nas326.dtb; ext2load scsi 0:1 $load_initrd_addr /boot/uInitrd; run sata_set_bootargs; bootz $load_image_addr $load_initrd_addr $load_dtb_addr
sata_delay_reset=0
sata_dma_mode=yes
sata_init=mw.l f1018100 20420000; mw.l f1018140 003ca800; sleep 3; scsi init
sata_set_bootargs=setenv bootargs "console=ttyS0,115200 root=LABEL=rootfs_sata rootdelay=10 $mtdparts earlyprintk=serial"
script_addr_r=3000000
script_name=boot.scr
serial_number=xxxxxx
serverip=192.168.0.220
set_bootargs_stock=setenv bootargs "console=ttyS0,115200 ubi.mtd=4,2048 rootfstype=ubifs root=ubi0:rootfs1 rw rootdelay=2"
standalone=fsload 0x2000000 $image_name;setenv bootargs $console $nandEcc $mtdparts root=/dev/mtdblock0 rw ip=$ipaddr:$serverip$bootargs_end; bootm 0x2000000;
stderr=serial
stdin=serial
stdout=serial
sysimg_mtd_1=4
sysimg_mtd_2=6
usb0Mode=host
usbActive=0
usbType=2
usb_bootcmd=echo Booting from USB ...; setenv fdt_skip_update yes; run usb_init; ext2load usb 0:1 $load_image_addr /boot/uImage.nas326; ext2load usb 0:1 $load_initrd_addr /boot/uInitrd; run usb_set_bootargs; bootm $load_image_addr $load_initrd_addr
usb_init=mw.l f1018100 20420000; mw.l f1018140 003E8800; sleep 3; usb start
usb_set_bootargs=setenv bootargs "console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts earlyprintk=serial"
vxworks_en=no
yuk_ethaddr=xxxxxxx
zld_checksum_1=9dd7a839e7b081cec191f520768e5016
zld_checksum_2=9dd7a839e7b081cec191f520768e5016

Environment size: 5809/524284 bytes
Marvell>> boot

NAND read: device 0 whole chip
Attempt to read outside the flash area
 0 bytes read: ERROR
Booting from USB ...
(Re)start USB...
USB0:   Port (usbActive) : 0	Interface (usbType = 2) : USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
3922698 bytes read in 360 ms (10.4 MiB/s)
6210503 bytes read in 359 ms (16.5 MiB/s)
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-4.9.0-mvebu-tld-1
   Created:      2017-06-04  20:37:01 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3922634 Bytes = 3.7 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 02900000 ...
   Image Name:   initramfs-4.9.0-mvebu-tld-12
   Created:      2017-02-03  23:57:32 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    6210439 Bytes = 5.9 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.9.0-mvebu-tld-12 (root@tldDebianVM) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4) ) #2 SMP PREEMPT Wed Feb 1 02:31:29 PST 2017
[    0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt:Machine model: Zyxel NAS326
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 15 pages/cpu @dfbd9000 s30796 r8192 d22452 u61440
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
[    0.000000] Kernel command line: console=ttyS0,115200 console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=armada-nand:2m(u-boot),2m(env),2m(config),15m(kernel1),110m(rootfs1),15m(kernel2),-(rootfs2) earlyprintk=serial
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 500180K/524288K available (8192K kernel code, 690K rwdata, 2052K rodata, 1024K init, 386K bss, 24108K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xe0800000 - 0xff800000   ( 496 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0900000   (9184 kB)
[    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
[    0.000000]       .data : 0xc0d00000 - 0xc0daca28   ( 691 kB)
[    0.000000]        .bss : 0xc0daca28 - 0xc0e0d4f8   ( 387 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] 	Build-time adjustment of leaf fanout to 32.
[    0.000000] 	RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=1
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] mvebu_mbus: [Firmware Warn]: deprecated mbus-mvebu Device Tree, suspend/resume will not work
[    0.000000] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000] L2C-310 D prefetch enabled, offset 1 lines
[    0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000] L2C-310 Coherent cache controller enabled, 16 ways, 1024 kB
[    0.000000] L2C-310 Coherent: CACHE_ID 0x410054c9, AUX_CTRL 0x56070001
[    0.000000] Switching to timer-based delay loop, resolution 40ns
[    0.000003] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 85899345900ns
[    0.007883] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.019116] Console: colour dummy device 80x30
[    0.023630] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[    0.034037] pid_max: default: 32768 minimum: 301
[    0.038797] Security Framework initialized
[    0.042995] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.049669] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.057235] CPU: Testing write buffer coherency: ok
[    0.062315] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.068057] Setting up static identity map for 0x100000 - 0x100058
[    0.074378] mvebu-soc-id: MVEBU SoC ID=0x6810, Rev=0x4
[    0.079655] mvebu-pmsu: Initializing Power Management Service Unit
[    0.203631] Brought up 1 CPUs
[    0.206672] SMP: Total of 1 processors activated (50.00 BogoMIPS).
[    0.212907] CPU: All CPU(s) started in SVC mode.
[    0.218073] devtmpfs: initialized
[    0.233708] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.241649] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.251612] prandom: seed boundary self test passed
[    0.258633] prandom: 100 self tests passed
[    0.262795] pinctrl core: initialized pinctrl subsystem
[    0.268810] NET: Registered protocol family 16
[    0.274100] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.303613] cpuidle: using governor ladder
[    0.333504] cpuidle: using governor menu
[    0.337594] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.345653] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.351659] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.359805] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.464539] vgaarb: loaded
[    0.467477] SCSI subsystem initialized
[    0.473814] usbcore: registered new interface driver usbfs
[    0.479682] usbcore: registered new interface driver hub
[    0.485164] usbcore: registered new device driver usb
[    0.490630] media: Linux media interface: v0.10
[    0.495481] Linux video capture interface: v2.00
[    0.501318] clocksource: Switched to clocksource armada_370_xp_clocksource
[    0.537506] VFS: Disk quotas dquot_6.6.0
[    0.541603] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.558661] NET: Registered protocol family 2
[    0.563901] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.571024] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[    0.577589] TCP: Hash tables configured (established 4096 bind 4096)
[    0.584389] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.590289] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.596729] NET: Registered protocol family 1
[    0.621439] RPC: Registered named UNIX socket transport module.
[    0.627416] RPC: Registered udp transport module.
[    0.632213] RPC: Registered tcp transport module.
[    0.636979] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.643612] Unpacking initramfs...
[    0.888457] Freeing initrd memory: 6068K (c2900000 - c2eed000)
[    0.894537] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.901233] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.910509] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.917035] audit: initializing netlink subsys (disabled)
[    0.922553] audit: type=2000 audit(0.910:1): initialized
[    0.928376] Initialise system trusted keyrings
[    0.943240] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    0.949793] zbud: loaded
[    0.962979] NFS: Registering the id_resolver key type
[    0.968100] Key type id_resolver registered
[    0.972380] Key type id_legacy registered
[    0.976461] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.983230] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.989779] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.997204] orangefs_debugfs_init: called with debug mask: :none: :0:
[    1.003867] orangefs_init: module version upstream loaded
[    1.011859] Key type asymmetric registered
[    1.016022] Asymmetric key parser 'x509' registered
[    1.021091] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    1.028567] io scheduler noop registered
[    1.032658] io scheduler deadline registered
[    1.037008] io scheduler cfq registered (default)
[    1.042730] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    1.051640] mvebu-pcie soc:pcie-controller: PCI host bridge to bus 0000:00
[    1.058571] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    1.065287] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    1.072246] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.078220] PCI: bus0: Fast back to back transfers disabled
[    1.083958] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.092104] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.100272] PCI: bus1: Fast back to back transfers enabled
[    1.106031] PCI: bus2: Fast back to back transfers enabled
[    1.111683] pci 0000:00:01.0: PCI bridge to [bus 01]
[    1.116714] pci 0000:00:02.0: PCI bridge to [bus 02]
[    1.122274] mv_xor f1060800.xor: Marvell shared XOR driver
[    1.181829] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.189443] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.251816] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.325628] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.334270] console [ttyS0] disabled
[    1.358417] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 22, base_baud = 12500000) is a 16550A
[    1.367602] console [ttyS0] enabled
[    1.367602] console [ttyS0] enabled
[    1.374717] bootconsole [earlycon0] disabled
[    1.374717] bootconsole [earlycon0] disabled
[    1.384408] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.393746] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs 
[    1.413636] scsi host0: ahci-mvebu
[    1.427476] scsi host1: ahci-mvebu
[    1.431159] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 41
[    1.439203] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 41
[    1.447786] pxa3xx-nand f10d0000.flash: This platform can't do DMA on this device
[    1.455743] nand: device found, Manufacturer ID: 0xc2, Chip ID: 0xda
[    1.462159] nand: Macronix MX30LF2G18AC
[    1.466085] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.473737] pxa3xx-nand f10d0000.flash: ECC strength 16, ECC step size 2048
[    1.480927] Bad block table found at page 131008, version 0x01
[    1.487289] Bad block table found at page 130944, version 0x01
[    1.493458] nand_read_bbt: bad block at 0x000003340000
[    1.498680] 7 ofpart partitions found on MTD device pxa3xx_nand-0
[    1.504828] Creating 7 MTD partitions on "pxa3xx_nand-0":
[    1.510257] 0x000000000000-0x000000200000 : "U-Boot"
[    1.526172] 0x000000200000-0x000000400000 : "U-Boot env"
[    1.542409] 0x000000400000-0x000000e00000 : "Config"
[    1.558295] 0x000000e00000-0x000001d00000 : "Kernel-1"
[    1.574448] 0x000001d00000-0x000008700000 : "RootFS-1"
[    1.590917] 0x000008700000-0x000009600000 : "Kernel-2"
[    1.607076] 0x000009600000-0x000010000000 : "RootFS-2"
[    1.624820] libphy: Fixed MDIO Bus: probed
[    1.630188] libphy: mdio_driver_register: mv88e6085
[    1.635709] libphy: orion_mdio_bus: probed
[    1.644057] mvneta f1070000.ethernet eth0: Using random mac address 96:47:bd:10:7a:13
[    1.653123] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.659700] ehci-pci: EHCI PCI platform driver
[    1.664408] ehci-orion: EHCI orion driver
[    1.668544] orion-ehci f1058000.usb: EHCI Host Controller
[    1.674147] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    1.681886] orion-ehci f1058000.usb: irq 37, io mem 0xf1058000
[    1.711333] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    1.717424] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.724272] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.731551] usb usb1: Product: EHCI Host Controller
[    1.736451] usb usb1: Manufacturer: Linux 4.9.0-mvebu-tld-12 ehci_hcd
[    1.742942] usb usb1: SerialNumber: f1058000.usb
[    1.748026] hub 1-0:1.0: USB hub found
[    1.751907] hub 1-0:1.0: 1 port detected
[    1.756423] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.761885] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    1.769500] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.778130] xhci-hcd f10f0000.usb3: irq 44, io mem 0xf10f0000
[    1.784070] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    1.790908] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.798196] usb usb2: Product: xHCI Host Controller
[    1.803115] usb usb2: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.809595] ata2: SATA link down (SStatus 0 SControl 300)
[    1.815054] usb usb2: SerialNumber: f10f0000.usb3
[    1.820190] hub 2-0:1.0: USB hub found
[    1.824072] hub 2-0:1.0: 1 port detected
[    1.828215] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.833589] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
[    1.841154] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.849371] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    1.856238] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.863562] usb usb3: Product: xHCI Host Controller
[    1.868462] usb usb3: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.874951] usb usb3: SerialNumber: f10f0000.usb3
[    1.880079] hub 3-0:1.0: USB hub found
[    1.883956] hub 3-0:1.0: 1 port detected
[    1.888160] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.893537] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    1.901128] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.909742] xhci-hcd f10f8000.usb3: irq 45, io mem 0xf10f8000
[    1.915646] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002
[    1.922491] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.929745] usb usb4: Product: xHCI Host Controller
[    1.934720] usb usb4: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.941190] usb usb4: SerialNumber: f10f8000.usb3
[    1.946331] hub 4-0:1.0: USB hub found
[    1.950184] hub 4-0:1.0: 1 port detected
[    1.954353] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.959695] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5
[    1.967238] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[    1.973636] usb usb5: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.981864] usb usb5: New USB device found, idVendor=1d6b, idProduct=0003
[    1.988683] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.995999] usb usb5: Product: xHCI Host Controller
[    2.000899] usb usb5: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    2.007398] usb usb5: SerialNumber: f10f8000.usb3
[    2.012515] hub 5-0:1.0: USB hub found
[    2.016371] hub 5-0:1.0: 1 port detected
[    2.020754] usbcore: registered new interface driver usblp
[    2.026479] usbcore: registered new interface driver usb-storage
[    2.032828] mousedev: PS/2 mouse device common for all mice
[    2.038993] armada38x-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[    2.047029] i2c /dev entries driver
[    2.062828] orion_wdt: Initial timeout 171 sec
[    2.070610] marvell-cesa f1090000.crypto: CESA device successfully registered
[    2.078048] hidraw: raw HID events driver (C) Jiri Kosina
[    2.083913] usbcore: registered new interface driver usbhid
[    2.089511] usbhid: USB HID core driver
[    2.093886] drop_monitor: Initializing network drop monitor service
[    2.100210] Netfilter messages via NETLINK v0.30.
[    2.105069] ip_set: protocol 6
[    2.108318] NET: Registered protocol family 10
[    2.112825] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    2.130221] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    2.137252] NET: Registered protocol family 17
[    2.142065] 8021q: 802.1Q VLAN Support v1.8
[    2.146291] Key type dns_resolver registered
[    2.150687] ThumbEE CPU extension supported.
[    2.155052] Registering SWP/SWPB emulation handler
[    2.160338] registered taskstats version 1
[    2.164615] Loading compiled-in X.509 certificates
[    2.169458] zswap: loaded using pool lzo/zbud
[    2.226194] Key type big_key registered
[    2.233800] Key type encrypted registered
[    2.238124] ata1.00: ATA-8: ST9250320AS, BS04, max UDMA/133
[    2.244788] v5.0-sata0: supplied by pwr_en_sata0
[    2.244826] v12.0-sata0: supplied by pwr_en_sata0
[    2.245030] v5.0-sata1: supplied by pwr_en_sata1
[    2.245065] v12.0-sata1: supplied by pwr_en_sata1
[    2.245946] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[    2.246256] armada38x-rtc f10a3800.rtc: setting system clock to 2017-06-04 20:43:29 UTC (1496609009)
[    2.246373] v5.0-sata0: disabling
[    2.246376] v12.0-sata0: disabling
[    2.246378] v5.0-sata1: disabling
[    2.246380] v12.0-sata1: disabling
[    2.295473] ata1.00: 488397168 sectors, multi 16: LBA48 NCQ (depth 31/32)
[    2.304144] ata1.00: configured for UDMA/133
[    2.308451] usb 1-1: New USB device found, idVendor=0781, idProduct=5506
[    2.308456] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.308459] usb 1-1: Product: Cruzer Titanium+
[    2.308462] usb 1-1: Manufacturer: SanDisk Corporation
[    2.308465] usb 1-1: SerialNumber: xxxxxxxxxxxx
[    2.315659] usb-storage 1-1:1.0: USB Mass Storage device detected
[    2.332776] scsi host2: usb-storage 1-1:1.0
[    2.368855] scsi 0:0:0:0: Direct-Access     ATA      ST9250320AS      BS04 PQ: 0 ANSI: 5
[    2.431770] sd 0:0:0:0: [sda] 488397168 512-byte logical blocks: (250 GB/233 GiB)
[    2.439868] sd 0:0:0:0: [sda] Write Protect is off
[    2.444769] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    2.515660]  sda: sda1
[    2.518755] sd 0:0:0:0: [sda] Attached SCSI removable disk
[    2.525074] Freeing unused kernel memory: 1024K (c0c00000 - c0d00000)
Loading, please wait...
[    2.572058] systemd-udevd[1341]: starting version 215
[    2.578073] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    2.699532] usbcore: registered new interface driver uas
[    2.713154] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    3.382302] scsi 2:0:0:0: Direct-Access     SanDisk  Cruzer           4.05 PQ: 0 ANSI: 2
[    3.402781] sd 2:0:0:0: [sdb] 8001165 512-byte logical blocks: (4.10 GB/3.81 GiB)
[    3.411367] sd 2:0:0:0: Attached scsi generic sg1 type 0
[    3.418318] sd 2:0:0:0: [sdb] Write Protect is off
[    3.423646] sd 2:0:0:0: [sdb] No Caching mode page found
[    3.428989] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[    3.442038]  sdb: sdb1
[    3.450277] sd 2:0:0:0: [sdb] Attached SCSI removable disk
[    3.462986] random: fast init done
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
modprobe: module ext3 not found in modules.dep
Begin: Will now check root file system ... fsck from util-linux 2.25.2
fsck: error 2 (No such file or directory) while executing fsck.ext3 for /dev/sdb1
fsck exited with status code 8
done.
Warning: File system check failed but did not detect errors
[   18.217038] EXT4-fs (sdb1): mounting ext3 file system using the ext4 subsystem
[   18.242133] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[....] Starting the hotplug events dispatcher: udevd[   19.029789] systemd-udevd[1540]: starting version 215
. ok 
[ ok ] Synthesizing the initial hotplug events...done.
[ ok ] Waiting for /dev to be fully populated...done.
[ ok ] Activating swap...done.
[   20.396318] EXT4-fs (sdb1): re-mounted. Opts: (null)
[ ok ] Activating lvm and md swap...done.
[....] Checking file systems...fsck from util-linux 2.25.2
done.
[ ok ] Cleaning up temporary files... /tmp.
[ ok ] Mounting local filesystems...done.
[ ok ] Activating swapfile swap...done.
[ ok ] Cleaning up temporary files....
[ ok ] Setting kernel variables ...done.
[   21.631417] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   22.651343] mvneta f1070000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[   22.659225] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.3.1
Copyright 2004-2014 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/96:47:bd:10:7a:13
Sending on   LPF/eth0/96:47:bd:10:7a:13
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
[   25.605262] random: crng init done
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPOFFER from 192.168.0.1
DHCPACK from 192.168.0.1
bound to 192.168.0.15 -- renewal in 302107 seconds.
done.
[ ok ] Starting rpcbind daemon....
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
2443 (syslogd)
. ok 
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[ ok ] Starting periodic command scheduler: cron.
[ ok ] Starting NTP server: ntpd.
[ ok ] Starting system message bus: dbus.
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
2446 (klogd)
. ok 

Debian GNU/Linux 8 nas326test ttyS0

nas326test login:

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



Edited 1 time(s). Last edit at 06/04/2017 03:55PM by bodhi.
Re: Debian on WD MyCloud EX 4100
June 04, 2017 03:59PM
http://forum.doozan.com/read.php?2,34103,34566#msg-34566

[    4.151115] [<c04d5c50>] (crc32_be) from [<c0c3bda0>] (of_fdt_raw_init+0x28/0x70)
[    4.158652] [<c0c3bda0>] (of_fdt_raw_init) from [<c01019bc>] (do_one_initcall+0xa8/0x150)

This is suspect. The checksum failed on something in the DTB file.

UPDATE:

Ah! The uInird got wiped out. So our initrd load address is not good.

[    0.658554] Unpacking initramfs...
[    0.662026] Initramfs unpacking failed: junk in compressed archive

I ran in to this problem with the NAS326 u-boot previously.

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



Edited 3 time(s). Last edit at 06/04/2017 04:12PM by bodhi.
Re: Debian on WD MyCloud EX 4100
June 04, 2017 04:02PM
Quote
bodhi
We've beaten this kwboot subject to death on the NAS326 thread :) I was hoping the WD setting is different. But it seems they followed the same approach, and show the same behavior.

I'm only 3 pages into the thread. So then the only way is to buy a chip clip and flash it directly to NAND...
Re: Debian on WD MyCloud EX 4100
June 04, 2017 04:09PM
hmartin Wrote:
-------------------------------------------------------
>
Quote
bodhi
> We've beaten this kwboot subject to death on the N
> AS326 thread :) I was hoping the WD setting is dif
> ferent. But it seems they followed the same approa
> ch, and show the same behavior.
>
>
> I'm only 3 pages into the thread. So then the only
> way is to buy a chip clip and flash it directly to
> NAND...

There are new delay parameters in latest kwboot, specifcally for Armada XP BootROM. We have not figured out what they are for Armada 38x BootROM.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
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: