Welcome! Log In Create A New Profile

Advanced

Debian on WD MyCloud EX 4100

Posted by saschadd 
Re: Debian on WD MyCloud EX 4100
May 29, 2017 11:30PM
saschadd,

Here is the armada-385-wd-ex4100.dtb (attached in this post).

Note: you 'll have only 2 SATA drives in this version.

Please try.

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



Edited 1 time(s). Last edit at 05/30/2017 04:07AM by bodhi.
Attachments:
open | download - armada-385-wd-ex4100.dtb (14.5 KB)
Re: Debian on WD MyCloud EX 4100
May 30, 2017 01:39PM
bodhi,

welcome back. ;)

> Here is the armada-385-wd-ex4100.dtb (attached in this post).
thank you, already tried it.

Just a little side note: the processor is an ARMADA 388 1.6 GHz dual-core processor.
Maybe this is important or have you misstyped the name of the file?!

Following the envs i used and the boot log

setenv bootdev usb
setenv device '0:1'
setenv dtb_file '/boot/dts/armada-385-wd-ex4100.dtb'
setenv load_dtb_addr 0x1000000
setenv load_initrd_addr 0x2900000
setenv load_image_addr 0x02000000
setenv load_dtb 'echo loading DTB $dtb_file ...; ext2load $bootdev $device $load_dtb_addr $dtb_file'
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/zImage'
setenv usb_set_bootargs 'setenv bootargs "console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts earlyprintk=serial"'
setenv usb_bootcmd 'echo Booting from USB ...; setenv fdt_skip_update yes; usb start; run load_image; run load_dtb; run load_initrd; run usb_set_bootargs; bootz $load_image_addr $load_initrd_addr $load_dtb_addr'
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 626 ms (5.9 MiB/s)
loading DTB /boot/dts/armada-385-wd-ex4100.dtb ...
14861 bytes read in 599 ms (23.4 KiB/s)
loading uInitrd ...
6210503 bytes read in 943 ms (6.3 MiB/s)
## 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
## Flattened Device Tree blob at 01000000
   Booting using the fdt blob at 0x01000000
   Loading Ramdisk to 7f3e0000, end 7f9cc387 ... OK
   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=LABEL=rootfs 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: 2060308K/2097152K available (8192K kernel code, 690K rwdata, 2052K rodata, 1024K init, 386K bss, 36844K reserved, 0K cma-reserved, 1304652K 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.019056] Console: colour dummy device 80x30
[    0.023569] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[    0.033973] pid_max: default: 32768 minimum: 301
[    0.038727] 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.062169] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.067908] Setting up static identity map for 0x100000 - 0x100058
[    0.074211] mvebu-soc-id: MVEBU SoC ID=0x6828, Rev=0x4
[    0.079470] mvebu-pmsu: Initializing Power Management Service Unit
[    0.283915] Booting CPU 1
[    0.286760] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.286809] Brought up 2 CPUs
[    0.295567] SMP: Total of 2 processors activated (100.00 BogoMIPS).
[    0.301886] CPU: All CPU(s) started in SVC mode.
[    0.307127] devtmpfs: initialized
[    0.312423] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.320368] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.330294] prandom: seed boundary self test passed
[    0.336918] prandom: 100 self tests passed
[    0.341079] pinctrl core: initialized pinctrl subsystem
[    0.346996] NET: Registered protocol family 16
[    0.352040] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.393870] cpuidle: using governor ladder
[    0.423868] cpuidle: using governor menu
[    0.427934] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.436003] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.441983] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.450138] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.504836] vgaarb: loaded
[    0.507847] SCSI subsystem initialized
[    0.512073] usbcore: registered new interface driver usbfs
[    0.517705] usbcore: registered new interface driver hub
[    0.523129] usbcore: registered new device driver usb
[    0.528452] media: Linux media interface: v0.10
[    0.533098] Linux video capture interface: v2.00
[    0.538593] clocksource: Switched to clocksource armada_370_xp_clocksource
[    0.569953] VFS: Disk quotas dquot_6.6.0
[    0.573980] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.587811] NET: Registered protocol family 2
[    0.592631] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.599780] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.606331] TCP: Hash tables configured (established 8192 bind 8192)
[    0.612800] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.618815] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.625321] NET: Registered protocol family 1
[    0.630003] RPC: Registered named UNIX socket transport module.
[    0.635978] RPC: Registered udp transport module.
[    0.640758] RPC: Registered tcp transport module.
[    0.645523] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.652146] Unpacking initramfs...
[    0.655620] Unable to handle kernel paging request at virtual address 3f3e0000
[    0.662902] pgd = c0004000
[    0.665680] [3f3e0000] *pgd=00000000
[    0.669356] Internal error: Oops: 5 [#1] PREEMPT SMP ARM
[    0.674726] Modules linked in:
[    0.677860] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.9.0-mvebu-tld-12 #2
[    0.684870] Hardware name: Marvell Armada 380/385 (Device Tree)
[    0.690844] task: ee898680 task.stack: ee89a000
[    0.695439] PC is at unpack_to_rootfs+0xc4/0x2bc
[    0.700118] LR is at kmem_cache_alloc_trace+0x3c/0x19c
[    0.705316] pc : [<c0c01e70>]    lr : [<c0232bec>]    psr: 20000013
[    0.705316] sp : ee89beb0  ip : c0dd0df8  fp : 00000000
[    0.716906] r10: c0daca84  r9 : c0d9f0c8  r8 : 00000000
[    0.722189] r7 : 00000000  r6 : 3f3e0000  r5 : 005ec387  r4 : c0c518b8
[    0.728767] r3 : 00000000  r2 : 00000000  r1 : eefd7330  r0 : 00000000
[    0.735347] Flags: nzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
[    0.742531] Control: 10c5387d  Table: 0000404a  DAC: 00000051
[    0.748331] Process swapper/0 (pid: 1, stack limit = 0xee89a220)
[    0.754392] Stack: (0xee89beb0 to 0xee89c000)
[    0.758811] bea0:                                     c0c63bd4 c0c5183c 00000000 c0171888
[    0.767034] bec0: 00000000 00000000 00000000 c01ecfd4 c0a069d8 c0daca80 c0daca7c 00000000
[    0.775256] bee0: 00000101 c0daca40 c0c63bd4 c0c5183c 00000000 c0c021b0 ffffe000 c0c02160
[    0.783478] bf00: 00000000 c01019bc ee8fd500 c0903c60 c0dd3aa4 cccccccd c0daca00 c029cc94
[    0.791700] bf20: efffccd4 efffcce0 c0b0065c c013f774 00000003 00000001 c0aff25c 00000005
[    0.799922] bf40: 00000005 c0b00670 00000100 c0b00670 c0d0dbc0 00000006 c0daca40 00000006
[    0.808144] bf60: c0daca40 c0c51830 00000101 c0daca40 c0c63bd4 c0c00e04 00000005 00000005
[    0.816365] bf80: 00000000 c0c005b4 00000000 c0834b6c 00000000 00000000 00000000 00000000
[    0.824587] bfa0: 00000000 c0834b74 00000000 c010c338 00000000 00000000 00000000 00000000
[    0.832808] bfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    0.841030] bfe0: 00000000 00000000 00000000 00000000 00000013 00000000 ffffffff ffffffff
[    0.849258] [<c0c01e70>] (unpack_to_rootfs) from [<c0c021b0>] (populate_rootfs+0x50/0xb4)
[    0.857483] [<c0c021b0>] (populate_rootfs) from [<c01019bc>] (do_one_initcall+0xa8/0x150)
[    0.865710] [<c01019bc>] (do_one_initcall) from [<c0c00e04>] (kernel_init_freeable+0x190/0x258)
[    0.874453] [<c0c00e04>] (kernel_init_freeable) from [<c0834b74>] (kernel_init+0x8/0x10c)
[    0.882679] [<c0834b74>] (kernel_init) from [<c010c338>] (ret_from_fork+0x14/0x3c)
[    0.890297] Code: e3530000 0a000053 e1c421d0 e1cd21f0 (e5d63000)
[    0.896486] ---[ end trace f8c0dc3a5f518f99 ]---
[    0.901190] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[    0.901190]
[    0.910454] CPU1: stopping
[    0.913235] CPU: 1 PID: 0 Comm: swapper/1 Tainted: G      D         4.9.0-mvebu-tld-12 #2
[    0.921455] Hardware name: Marvell Armada 380/385 (Device Tree)
[    0.927436] [<c01160bc>] (unwind_backtrace) from [<c0110bb4>] (show_stack+0x10/0x14)
[    0.935228] [<c0110bb4>] (show_stack) from [<c04ba5a4>] (dump_stack+0x70/0x8c)
[    0.942503] [<c04ba5a4>] (dump_stack) from [<c0113f90>] (handle_IPI+0x16c/0x350)
[    0.949948] [<c0113f90>] (handle_IPI) from [<c0101520>] (gic_handle_irq+0x78/0x94)
[    0.957566] [<c0101520>] (gic_handle_irq) from [<c011160c>] (__irq_svc+0x6c/0xa8)
[    0.965094] Exception stack(0xee8c5f98 to 0xee8c5fe0)
[    0.970204] 5f80:                                                       00000001 00000000
[    0.978426] 5fa0: 00000000 c011e6c0 00000000 00000000 ee8c4000 c0d0412c 00000002 ee8c5ff0
[    0.986648] 5fc0: c0d04194 00000000 00000080 ee8c5fe8 c010d400 c010d404 60000013 ffffffff
[    0.994871] [<c011160c>] (__irq_svc) from [<c010d404>] (arch_cpu_idle+0x2c/0x38)
[    1.002317] [<c010d404>] (arch_cpu_idle) from [<c015ef04>] (cpu_startup_entry+0xf0/0x1d0)
[    1.010539] [<c015ef04>] (cpu_startup_entry) from [<0010166c>] (0x10166c)
[    1.017381] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[    1.017381]


> Note: you 'll have only 2 SATA drives in this version.

Do you think it is possible to get all 4 drives working later on?

-
happy hacking,

saschadd
Re: Debian on WD MyCloud EX 4100
May 30, 2017 02:55PM
saschadd,

Your boot log showed 88F6820 (unless its u-boot was wrong).

Quote
Marvell HW specs
 ARMADA 380 (88F6810) – Single-core ARM CPU
 ARMADA 385 (88F6820) – Dual-core ARM CPU
 ARMADA 388 (88F6828) – Dual-core ARM CPU

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on WD MyCloud EX 4100
May 30, 2017 03:14PM
bodhi Wrote:
-------------------------------------------------------
> saschadd,
>
> Your boot log showed 88F6820 (unless its u-boot wa
> s wrong).
>
>
Quote
Marvell HW specs
>  ARMADA 380 (88F6810) – Single-core ARM CPU
>  ARMADA 385 (88F6820) – Dual-core ARM CPU
>  ARMADA 388 (88F6828) – Dual-core ARM CPU
>

The board seems to be 88F6820 but the CPU is 88F6828 i think

Board: DB-88F6820-BP
SoC:   MV88F6828 Rev A0
       running 2 CPUs
CPU:   ARM Cortex A9 MPCore (Rev 1) LE
       CPU 0
       CPU    @ 1600 [MHz]
       L2     @ 800 [MHz]
       TClock @ 200 [MHz]
       DDR    @ 800 [MHz]
       DDR 32 Bit Width, FastPath Memory Access, DLB Enabled, ECC Disabled
DRAM:  2 GiB

-
happy hacking,

saschadd
Re: Debian on WD MyCloud EX 4100
May 30, 2017 03:19PM
saschadd Wrote:
-------------------------------------------------------
> bodhi Wrote:
> --------------------------------------------------
> -----
> > saschadd,
> >
> > Your boot log showed 88F6820 (unless its u-boot
> wa
> > s wrong).
> >
> >
Quote
Marvell HW specs
> >  ARMADA 380 (88F6810) – Single-core ARM CPU
> >  ARMADA 385 (88F6820) – Dual-core ARM CPU
> >  ARMADA 388 (88F6828) – Dual-core ARM CPU
> >
>
> The board seems to be 88F6820 but the CPU is 88F68
> 28 i think
>
>
> Board: DB-88F6820-BP
> SoC:   MV88F6828 Rev A0
> running 2 CPUs
> CPU:   ARM Cortex A9 MPCore (Rev 1) LE
> CPU 0
> CPU    @ 1600 [MHz]
> L2     @ 800 [MHz]
> TClock @ 200 [MHz]
> DDR    @ 800 [MHz]
> DDR 32 Bit Width, FastPath Memory Access, D
> LB Enabled, ECC Disabled
> DRAM:  2 GiB

I see, I've misread it :)

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on WD MyCloud EX 4100
May 30, 2017 03:32PM
This does not look right

setenv load_initrd_addr   0x02900000
setenv load_image_addr 0x02000000

Probably my typo.

Update:

No. I took it back. It is not a typo.

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



Edited 1 time(s). Last edit at 05/30/2017 03:33PM by bodhi.
Re: Debian on WD MyCloud EX 4100
May 30, 2017 03:50PM
Let's try


setenv bootdev usb
setenv device '0:1'
setenv dtb_file '/boot/dts/armada-385-wd-ex4100.dtb'
setenv load_dtb_addr 0x1000000
setenv load_initrd_addr 0x3900000
setenv load_image_addr 0x02000000
setenv load_dtb 'echo loading DTB $dtb_file ...; ext2load $bootdev $device $load_dtb_addr $dtb_file'
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/zImage'
setenv usb_set_bootargs 'setenv bootargs "console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts earlyprintk=serial"'
setenv usb_bootcmd 'echo Booting from USB ...; setenv fdt_skip_update yes; usb start; run load_image; run load_dtb; run load_initrd; run usb_set_bootargs; bootz $load_image_addr $load_initrd_addr $load_dtb_addr'
setenv bootcmd_usb 'usb start; run usb_set_bootargs; run usb_bootcmd; reset'

and boot

run bootcmd_usb

Update:

BTW, 4 SATA drives should be possible.

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



Edited 1 time(s). Last edit at 05/30/2017 03:51PM by bodhi.
Re: Debian on WD MyCloud EX 4100
May 30, 2017 04:30PM
Hi all,

This might be common knowledge already, but I think I found the dtb that Western Digital is using for the EX2100/4100:

  if [ "$PROJECT_NAME" = "Yellowstone" ]; then
    echo -e "\033[32m ***********************\033[0m"
    echo -e "\033[32m *  build Yellowstone  *\033[0m"
    echo -e "\033[32m ***********************\033[0m"
    cp arch/arm/boot/dts/Yellowstone/* arch/arm/boot/dts/
  elif [ "$PROJECT_NAME" = "Yosemite" ]; then
    echo -e "\033[32m ***********************\033[0m"
    echo -e "\033[32m *    build Yosemite   *\033[0m"
    echo -e "\033[32m ***********************\033[0m"
    cp arch/arm/boot/dts/Yosemite/* arch/arm/boot/dts/
  else
    echo "Not support"
    exit 0
  fi

You can find it in linux-3.10.39-2014_T3.0/arch/arm/boot/dts/Yellowstone/

I'm not entirely sure whether the EX2100/4100 is Yellowstone or Yosemite, but Yellowstone has two SATA controllers defined in the dts, while Yosemite has only one. Also the dts for Yosemite seems to be broken, it won't compile when I try.

I tried to compile the DTB myself from the WD source and boot my EX2100 using bodhi's 4.9.0, but I end up with the same kernel panic as saschadd. I am using tftp to load the kernel/initrd/dtb.

EDIT: derp, didn't see page 2 of this thread. bodhi any chance for a 385 DTB? I'm using the EX2100. I tried the DTB for EX4100 (load addresses for the EX2100) and got the same kernel panic as before.



Edited 2 time(s). Last edit at 05/30/2017 04:36PM by hmartin.
Re: Debian on WD MyCloud EX 4100
May 30, 2017 04:47PM
Hi hmartin,

> This might be common knowledge already, but I thin
> k I found the dtb that Western Digital is using fo
> r the EX2100/4100:

Cool :) This might help in coming up with the new DTS.

> EDIT: derp, didn't see page 2 of this thread. bodh
> i any chance for a 385 DTB? I'm using the EX2100.
> I tried the DTB for EX4100 (load addresses for the
> EX2100) and got the same kernel panic as before.

385 and 388 are the same right now in mainline version. This is what I used (verbatim, except the RAM). However, the RAM capacity passed by u-boot took precedent. So it really does not matter.

The panic might be the initrd load address (I modified it above to see if it was the reason). This error occurs during the unpacking initramfs.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on WD MyCloud EX 4100
May 30, 2017 04:51PM
> The panic might be the initrd load address (I modified it above to see if it was the reason). This error occurs during the unpacking initramfs.

Nope, still dies even if I use 0x3900000 for initrd.

Here's how I'm booting:
tftpboot 0x2000000 zImage-4.9.0-mvebu-tld-12
tftpboot 0x3900000 uInitrd-4.9.0-mvebu-tld-12
tftpboot 0x1000000 armada-385-wd-ex4100.dtb
setenv bootargs "console=ttyS0,115200 root=/bin/sh rootdelay=10 $mtdparts earlyprintk=serial"
setenv fdt_skip_update yes
bootz 0x2000000 0x3900000 0x1000000

(Neutered the root= portion since I only care once initramfs starts complaining it can't find a root partition)

The panic:
[    0.648578] Unpacking initramfs...
[    0.652068] Unable to handle kernel paging request at virtual address ff3e1000
[    0.659340] pgd = c0004000
[    0.662117] [ff3e1000] *pgd=00000000
[    0.665772] Internal error: Oops: 5 [#1] PREEMPT SMP ARM
[    0.671142] Modules linked in:
[    0.674278] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.9.0-mvebu-tld-12 #2
[    0.681289] Hardware name: Marvell Armada 380/385 (Device Tree)
[    0.687264] task: ef098040 task.stack: ef09a000
[    0.691860] PC is at unpack_to_rootfs+0xc4/0x2bc
[    0.696541] LR is at kmem_cache_alloc_trace+0x3c/0x19c
[    0.701740] pc : [<c0c01e70>]    lr : [<c0232bec>]    psr: 20000013
[    0.701740] sp : ef09beb0  ip : c0dd0df8  fp : 00000000
[    0.713331] r10: c0daca84  r9 : c0d9f0c8  r8 : 00000000
[    0.718615] r7 : 00000000  r6 : ff3e1000  r5 : 005ec387  r4 : c0c518b8
[    0.725194] r3 : 00000000  r2 : 00000000  r1 : ef7d7330  r0 : 00000000
[    0.731774] Flags: nzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
[    0.738958] Control: 10c5387d  Table: 0000404a  DAC: 00000051
[    0.744760] Process swapper/0 (pid: 1, stack limit = 0xef09a220)
[    0.750821] Stack: (0xef09beb0 to 0xef09c000)
[    0.755242] bea0:                                     c0c63bd4 c0c5183c 00000000 c0171888
[    0.763465] bec0: 00000000 00000000 00000000 c01ecfd4 c0a069d8 c0daca80 c0daca7c 00000000
[    0.771689] bee0: 00000101 c0daca40 c0c63bd4 c0c5183c 00000000 c0c021b0 ffffe000 c0c02160
[    0.779912] bf00: 00000000 c01019bc ef0fd400 c0903c60 c0dd3aa4 cccccccd c0daca00 c029cc94
[    0.788135] bf20: efffcd4f efffcd5b c0b0065c c013f774 00000003 00000001 c0aff25c 00000005
[    0.796358] bf40: 00000005 c0b00670 00000100 c0b00670 c0d0dbc0 00000006 c0daca40 00000006
[    0.804581] bf60: c0daca40 c0c51830 00000101 c0daca40 c0c63bd4 c0c00e04 00000005 00000005
[    0.812804] bf80: 00000000 c0c005b4 00000000 c0834b6c 00000000 00000000 00000000 00000000
[    0.821026] bfa0: 00000000 c0834b74 00000000 c010c338 00000000 00000000 00000000 00000000
[    0.829249] bfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    0.837472] bfe0: 00000000 00000000 00000000 00000000 00000013 00000000 ffffffff ffff7fff
[    0.845702] [<c0c01e70>] (unpack_to_rootfs) from [<c0c021b0>] (populate_rootfs+0x50/0xb4)
[    0.853927] [<c0c021b0>] (populate_rootfs) from [<c01019bc>] (do_one_initcall+0xa8/0x150)
[    0.862156] [<c01019bc>] (do_one_initcall) from [<c0c00e04>] (kernel_init_freeable+0x190/0x258)
[    0.870901] [<c0c00e04>] (kernel_init_freeable) from [<c0834b74>] (kernel_init+0x8/0x10c)
[    0.879128] [<c0834b74>] (kernel_init) from [<c010c338>] (ret_from_fork+0x14/0x3c)
[    0.886748] Code: e3530000 0a000053 e1c421d0 e1cd21f0 (e5d63000) 
[    0.892900] ---[ end trace 87f01d6b8b54e0e7 ]---
[    0.897645] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[    0.897645] 
[    0.906910] CPU1: stopping
Re: Debian on WD MyCloud EX 4100
May 31, 2017 01:10PM
saschadd & hmartin,

Stock u-boot behavior is a little bit weird to me.

What will we see when booting without initrd? we will not be able to mount the rootfs, but let's see if the problem is in where the initramfs was loaded.

setenv bootdev usb
setenv device '0:1'
setenv dtb_file '/boot/dts/armada-385-wd-ex4100.dtb'
setenv load_dtb_addr 0x1000000
setenv load_initrd_addr 0x3900000
setenv load_image_addr 0x02000000
setenv load_dtb 'echo loading DTB $dtb_file ...; ext2load $bootdev $device $load_dtb_addr $dtb_file'
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/zImage'
setenv usb_set_bootargs 'setenv bootargs "console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts earlyprintk=serial"'
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'
setenv bootcmd_usb 'usb start; run usb_set_bootargs; run usb_bootcmd; reset'
run bootcmd_usb

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on WD MyCloud EX 4100
May 31, 2017 02:07PM
Hi bodhi,

That was pretty anti-climactic...
Marvell>> tftpboot 0x02000000 zImage-4.9.0-mvebu-tld-12
Using egiga0 device
TFTP from server 192.168.11.114; our IP address is 192.168.11.110
Filename 'zImage-4.9.0-mvebu-tld-12'.
Load address: 0x2000000
Loading: #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 ######
	 7.7 MiB/s
done
Bytes transferred = 3904400 (3b9390 hex)
Marvell>> tftpboot 0x1000000 armada-385-wd-ex4100.dtb
Using egiga0 device
TFTP from server 192.168.11.114; our IP address is 192.168.11.110
Filename 'armada-385-wd-ex4100.dtb'.
Load address: 0x1000000
Loading: ##
	 2.8 MiB/s
done
Bytes transferred = 14861 (3a0d hex)
Marvell>> setenv bootargs "root=LABEL=rootfs rootdelay=10 $mtdparts console=ttyS0,115200 earlyprintk=serial"
Marvell>> setenv fdt_skip_update yes
Marvell>> bootz 0x02000000 -  0x1000000
## 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)

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: root=LABEL=rootfs 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) console=ttyS0,115200 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: 1025992K/1048576K available (8192K kernel code, 690K rwdata, 2052K rodata, 1024K init, 386K bss, 22584K 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.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.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.057255] CPU: Testing write buffer coherency: ok
[    0.062347] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.068089] Setting up static identity map for 0x100000 - 0x100058
[    0.074407] mvebu-soc-id: MVEBU SoC ID=0x6820, Rev=0x4
[    0.079680] mvebu-pmsu: Initializing Power Management Service Unit
[    0.283614] Booting CPU 1
[    0.286485] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.286542] Brought up 2 CPUs
[    0.295303] SMP: Total of 2 processors activated (100.00 BogoMIPS).
[    0.301624] CPU: All CPU(s) started in SVC mode.
[    0.306889] devtmpfs: initialized
[    0.312546] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.320532] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.330471] prandom: seed boundary self test passed
[    0.337433] prandom: 100 self tests passed
[    0.341594] pinctrl core: initialized pinctrl subsystem
[    0.347628] NET: Registered protocol family 16
[    0.352769] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.383463] cpuidle: using governor ladder
[    0.413431] cpuidle: using governor menu
[    0.417513] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.425586] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.431584] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.439744] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.494457] vgaarb: loaded
[    0.497509] SCSI subsystem initialized
[    0.501824] usbcore: registered new interface driver usbfs
[    0.507474] usbcore: registered new interface driver hub
[    0.512909] usbcore: registered new device driver usb
[    0.518268] media: Linux media interface: v0.10
[    0.522912] Linux video capture interface: v2.00
[    0.528564] clocksource: Switched to clocksource armada_370_xp_clocksource
[    0.564667] VFS: Disk quotas dquot_6.6.0
[    0.568735] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.584028] NET: Registered protocol family 2
[    0.588901] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.596043] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.602638] TCP: Hash tables configured (established 8192 bind 8192)
[    0.609098] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.615093] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.621644] NET: Registered protocol family 1
[    0.626336] RPC: Registered named UNIX socket transport module.
[    0.632333] RPC: Registered udp transport module.
[    0.637098] RPC: Registered tcp transport module.
[    0.641889] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.648622] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.655299] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.664519] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.670742] audit: initializing netlink subsys (disabled)
[    0.676220] audit: type=2000 audit(0.660:1): initialized
[    0.682078] Initialise system trusted keyrings
[    0.686728] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[    0.693312] zbud: loaded
[    0.696445] NFS: Registering the id_resolver key type
[    0.701597] Key type id_resolver registered
[    0.705844] Key type id_legacy registered
[    0.709936] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.716689] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.723267] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.730711] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.737337] orangefs_init: module version upstream loaded
[    0.745001] Key type asymmetric registered
[    0.749177] Asymmetric key parser 'x509' registered
[    0.754146] bounce: pool size: 64 pages
[    0.758128] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.765602] io scheduler noop registered
[    0.769600] io scheduler deadline registered
[    0.773948] io scheduler cfq registered (default)
[    0.779676] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    0.788351] mvebu-pcie soc:pcie-controller: PCI host bridge to bus 0000:00
[    0.795316] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    0.801649] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    0.808597] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.814579] PCI: bus0: Fast back to back transfers disabled
[    0.820232] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.828290] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.836493] PCI: bus1: Fast back to back transfers enabled
[    0.842188] PCI: bus2: Fast back to back transfers enabled
[    0.847777] pci 0000:00:01.0: PCI bridge to [bus 01]
[    0.852831] pci 0000:00:02.0: PCI bridge to [bus 02]
[    0.858352] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.919032] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    0.926666] mv_xor f1060900.xor: Marvell shared XOR driver
[    0.989040] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.048174] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.056085] console [ttyS0] disabled
[    1.079845] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 22, base_baud = 12500000) is a 16550A
[    1.088886] console [ttyS0] enabled
[    1.088886] console [ttyS0] enabled
[    1.095975] bootconsole [earlycon0] disabled
[    1.095975] bootconsole [earlycon0] disabled
[    1.105691] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.114805] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs 
[    1.124547] scsi host0: ahci-mvebu
[    1.128291] scsi host1: ahci-mvebu
[    1.131952] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 42
[    1.139933] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 42

And then there was no more console output (the power LED was still flashing blue)

Given the lack of output, it's rather difficult to figure out what's happening after the above...

I tried with the DTB that Western Digital provides in their kernel source and got this result:
Marvell>> tftpboot 0x02000000 zImage-4.9.0-mvebu-tld-12
Using egiga0 device
TFTP from server 192.168.11.114; our IP address is 192.168.11.110
Filename 'zImage-4.9.0-mvebu-tld-12'.
Load address: 0x2000000
Loading: #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 ######
	 7.7 MiB/s
done
Bytes transferred = 3904400 (3b9390 hex)
Marvell>> tftpboot 0x1000000 armada-385-db.dtb
Using egiga0 device
TFTP from server 192.168.11.114; our IP address is 192.168.11.110
Filename 'armada-385-db.dtb'.
Load address: 0x1000000
Loading: #
	 2.5 MiB/s
done
Bytes transferred = 13148 (335c hex)
Marvell>> setenv bootargs "root=LABEL=rootfs rootdelay=10 $mtdparts console=ttyS0,115200 earlyprintk=serial"
Marvell>> setenv fdt_skip_update yes
Marvell>> bootz 0x02000000 -  0x1000000
## Flattened Device Tree blob at 01000000
   Booting using the fdt blob at 0x01000000
   Loading Device Tree to 00ff9000, end 00fff35b ... 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: Marvell Armada 385 Development Board
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 15 pages/cpu @ef7ce000 s30796 r8192 d22452 u61440
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260608
[    0.000000] Kernel command line: root=LABEL=rootfs 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) console=ttyS0,115200 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: 1025996K/1048576K available (8192K kernel code, 690K rwdata, 2052K rodata, 1024K init, 386K bss, 22580K 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] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[    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 0x46070001
[    0.000000] sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every 21474836475000000ns
[    0.000000] Console: colour dummy device 80x30
[    0.010000] Calibrating delay loop... 2655.84 BogoMIPS (lpj=13279232)
[    0.070000] pid_max: default: 32768 minimum: 301
[    0.070000] Security Framework initialized
[    0.080000] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.080000] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.090000] CPU: Testing write buffer coherency: ok
[    0.100000] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.100000] Setting up static identity map for 0x100000 - 0x100058
[    0.110000] mvebu-pmsu: Initializing Power Management Service Unit
[    0.150000] Brought up 1 CPUs
[    0.150000] SMP: Total of 1 processors activated (2655.84 BogoMIPS).
[    0.160000] CPU: All CPU(s) started in SVC mode.
[    0.160000] devtmpfs: initialized
[    0.180000] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.180000] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.190000] prandom: seed boundary self test passed
[    0.200000] prandom: 100 self tests passed
[    0.200000] pinctrl core: initialized pinctrl subsystem
[    0.210000] NET: Registered protocol family 16
[    0.220000] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.250000] cpuidle: using governor ladder
[    0.270000] cpuidle: using governor menu
[    0.270000] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.280000] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.370000] vgaarb: loaded
[    0.370000] SCSI subsystem initialized
[    0.380000] usbcore: registered new interface driver usbfs
[    0.380000] usbcore: registered new interface driver hub
[    0.390000] usbcore: registered new device driver usb
[    0.390000] media: Linux media interface: v0.10
[    0.400000] Linux video capture interface: v2.00
[    0.430000] VFS: Disk quotas dquot_6.6.0
[    0.440000] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.450000] NET: Registered protocol family 2
[    0.460000] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.470000] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.470000] TCP: Hash tables configured (established 8192 bind 8192)
[    0.480000] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.480000] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.490000] NET: Registered protocol family 1
[    0.520000] RPC: Registered named UNIX socket transport module.
[    0.520000] RPC: Registered udp transport module.
[    0.530000] RPC: Registered tcp transport module.
[    0.530000] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.540000] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.540000] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.550000] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.560000] audit: initializing netlink subsys (disabled)
[    0.570000] audit: type=2000 audit(0.570:1): initialized
[    0.570000] Initialise system trusted keyrings
[    0.590000] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[    0.590000] zbud: loaded
[    0.600000] NFS: Registering the id_resolver key type
[    0.600000] Key type id_resolver registered
[    0.600000] Key type id_legacy registered
[    0.610000] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.620000] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.620000] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.630000] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.640000] orangefs_init: module version upstream loaded
[    0.640000] jitterentropy: Initialization failed with host not compliant with requirements: 2
[    0.650000] Key type asymmetric registered
[    0.660000] Asymmetric key parser 'x509' registered
[    0.660000] bounce: pool size: 64 pages
[    0.660000] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.670000] io scheduler noop registered
[    0.680000] io scheduler deadline registered
[    0.680000] io scheduler cfq registered (default)
[    0.690000] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    0.690000] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.760000] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    0.760000] mv_xor f1060900.xor: Marvell shared XOR driver
[    0.830000] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    0.880000] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    0.900000] console [ttyS0] disabled
[    0.910000] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 34, base_baud = 12500000) is a 16550A
[    0.920000] console [ttyS0] enabled
[    0.920000] console [ttyS0] enabled
[    0.930000] bootconsole [earlycon0] disabled
[    0.930000] bootconsole [earlycon0] disabled
[    0.950000] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 35, base_baud = 12500000) is a 16550A
[    0.960000] m25p80 spi0.0: unrecognized JEDEC id bytes: ff, ff, ff
[    0.970000] libphy: Fixed MDIO Bus: probed
[    0.980000] libphy: mdio_driver_register: mv88e6085
[    0.980000] libphy: orion_mdio_bus: probed
[    1.020000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.020000] ehci-pci: EHCI PCI platform driver
[    1.030000] ehci-orion: EHCI orion driver
[    1.030000] orion-ehci f1058000.usb: EHCI Host Controller
[    1.040000] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    1.040000] orion-ehci f1058000.usb: irq 38, io mem 0xf1058000
[    1.080000] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    1.080000] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.090000] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.100000] usb usb1: Product: EHCI Host Controller
[    1.100000] usb usb1: Manufacturer: Linux 4.9.0-mvebu-tld-12 ehci_hcd
[    1.110000] usb usb1: SerialNumber: f1058000.usb
[    1.110000] hub 1-0:1.0: USB hub found
[    1.120000] hub 1-0:1.0: 1 port detected
[    1.120000] usbcore: registered new interface driver usblp
[    1.130000] usbcore: registered new interface driver usb-storage
[    1.130000] mousedev: PS/2 mouse device common for all mice
[    1.140000] i2c /dev entries driver
[    1.150000] hidraw: raw HID events driver (C) Jiri Kosina
[    1.160000] usbcore: registered new interface driver usbhid
[    1.170000] usbhid: USB HID core driver
[    1.170000] drop_monitor: Initializing network drop monitor service
[    1.180000] Netfilter messages via NETLINK v0.30.
[    1.180000] ip_set: protocol 6
[    1.180000] NET: Registered protocol family 10
[    1.200000] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    1.200000] NET: Registered protocol family 17
[    1.210000] 8021q: 802.1Q VLAN Support v1.8
[    1.210000] Key type dns_resolver registered
[    1.220000] ThumbEE CPU extension supported.
[    1.220000] Registering SWP/SWPB emulation handler
[    1.230000] registered taskstats version 1
[    1.230000] Loading compiled-in X.509 certificates
[    1.230000] zswap: loaded using pool lzo/zbud
[    1.240000] DRBG: Continuing without Jitter RNG
[    1.240000] Key type big_key registered
[    1.250000] Key type encrypted registered
[    1.250000] hctosys: unable to open rtc device (rtc0)
[    1.260000] Waiting 10 sec before mounting root device...
[   11.360000] VFS: Cannot open root device "LABEL=rootfs" or unknown-block(0,0): error -6
[   11.360000] Please append a correct "root=" boot option; here are the available partitions:
[   11.370000] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[   11.370000] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.9.0-mvebu-tld-12 #2
[   11.370000] Hardware name: Marvell Armada 380/385 (Device Tree)
[   11.370000] [<c01160bc>] (unwind_backtrace) from [<c0110bb4>] (show_stack+0x10/0x14)
[   11.370000] [<c0110bb4>] (show_stack) from [<c04ba5a4>] (dump_stack+0x70/0x8c)
[   11.370000] [<c04ba5a4>] (dump_stack) from [<c01eccd4>] (panic+0xc0/0x244)
[   11.370000] [<c01eccd4>] (panic) from [<c0c012b4>] (mount_block_root+0x1d8/0x250)
[   11.370000] [<c0c012b4>] (mount_block_root) from [<c0c01420>] (mount_root+0xf4/0x11c)
[   11.370000] [<c0c01420>] (mount_root) from [<c0c0156c>] (prepare_namespace+0x124/0x184)
[   11.370000] [<c0c0156c>] (prepare_namespace) from [<c0c00e74>] (kernel_init_freeable+0x200/0x258)
[   11.370000] [<c0c00e74>] (kernel_init_freeable) from [<c0834b74>] (kernel_init+0x8/0x10c)
[   11.370000] [<c0834b74>] (kernel_init) from [<c010c338>] (ret_from_fork+0x14/0x3c)
[   11.370000] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

I haven't had much luck building the kernel from Western Digital's source code. Their build script is pretty... broken. I have a uImage of 3.10.39 that works-ish. It gets to here:
console [ttyS0] enabled
f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 45) is a 16550A
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

And then there is no more output to the console. But I suspect this is because it's trying to insert modules from the initrd on nand and this is failing due to the version mismatch. I still haven't figured out what voodoo WD are using in their build script to make the initrd...

Attached are the dts and dtb from WD's 3.10.39 source.

Could you share your kernel .config and the dts for armada-385-wd-ex4100.dtb?



Edited 1 time(s). Last edit at 05/31/2017 02:11PM by hmartin.
Attachments:
open | download - armada-385-db.zip (4.9 KB)
Re: Debian on WD MyCloud EX 4100
May 31, 2017 02:08PM
bodhi,

i tried just your last envs as hmartin testet the others.
at first i thought "thats it" but then kernel panic again. but it looks a bit more successful to me. ; )
here the complete console output so that you can see which envs i set [if i posted sensitive infos in it please let me know to remove it, thanks]
(see the red part, i dont know if thats normal but it is scanning usb twice.)

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=LABEL=rootfs 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 626 ms (5.9 MiB/s)
loading DTB /boot/dts/armada-385-wd-ex4100.dtb ...
14861 bytes read in 599 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=LABEL=rootfs 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.023573] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[    0.033977] pid_max: default: 32768 minimum: 301
[    0.038731] Security Framework initialized
[    0.042925] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.049598] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.057101] CPU: Testing write buffer coherency: ok
[    0.062170] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.067908] Setting up static identity map for 0x100000 - 0x100058
[    0.074211] mvebu-soc-id: MVEBU SoC ID=0x6828, Rev=0x4
[    0.079470] mvebu-pmsu: Initializing Power Management Service Unit
[    0.283913] Booting CPU 1
[    0.286759] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.286808] Brought up 2 CPUs
[    0.295566] SMP: Total of 2 processors activated (100.00 BogoMIPS).
[    0.301885] CPU: All CPU(s) started in SVC mode.
[    0.307118] devtmpfs: initialized
[    0.312406] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.320351] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.330278] prandom: seed boundary self test passed
[    0.336903] prandom: 100 self tests passed
[    0.341063] pinctrl core: initialized pinctrl subsystem
[    0.346989] NET: Registered protocol family 16
[    0.352026] 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.504835] vgaarb: loaded
[    0.507847] SCSI subsystem initialized
[    0.512076] usbcore: registered new interface driver usbfs
[    0.517708] usbcore: registered new interface driver hub
[    0.523132] usbcore: registered new device driver usb
[    0.528452] media: Linux media interface: v0.10
[    0.533088] Linux video capture interface: v2.00
[    0.538589] 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.587877] NET: Registered protocol family 2
[    0.592696] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.599845] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.606395] TCP: Hash tables configured (established 8192 bind 8192)
[    0.612864] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.618873] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.625378] NET: Registered protocol family 1
[    0.630062] RPC: Registered named UNIX socket transport module.
[    0.636038] RPC: Registered udp transport module.
[    0.640818] RPC: Registered tcp transport module.
[    0.645582] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.652285] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.658964] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.668003] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.674230] audit: initializing netlink subsys (disabled)
[    0.679715] audit: type=2000 audit(0.670:1): initialized
[    0.685463] Initialise system trusted keyrings
[    0.690118] workingset: timestamp_bits=30 max_order=19 bucket_order=0
[    0.696674] zbud: loaded
[    0.699740] NFS: Registering the id_resolver key type
[    0.704857] Key type id_resolver registered
[    0.709118] Key type id_legacy registered
[    0.713198] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.719959] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.726493] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.733883] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.740501] orangefs_init: module version upstream loaded
[    0.747738] Key type asymmetric registered
[    0.751913] 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.768300] io scheduler noop registered
[    0.772299] io scheduler deadline registered
[    0.776644] io scheduler cfq registered (default)
[    0.782210] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    0.790620] mvebu-pcie soc:pcie-controller: PCI host bridge to bus 0000:00
[    0.797551] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    0.803887] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    0.810822] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.816738] PCI: bus0: Fast back to back transfers disabled
[    0.822385] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.830451] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.838618] PCI: bus1: Fast back to back transfers enabled
[    0.844279] PCI: bus2: Fast back to back transfers enabled
[    0.849873] pci 0000:00:01.0: PCI bridge to [bus 01]
[    0.854901] pci 0000:00:02.0: PCI bridge to [bus 02]
[    0.860345] 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.988981] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.039211] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.046868] console [ttyS0] disabled
[    1.070599] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 22, base_baud = 12500000) is a 16550A
[    1.079634] console [ttyS0] enabled
[    1.079634] console [ttyS0] enabled
[    1.086721] bootconsole [earlycon0] disabled
[    1.086721] bootconsole [earlycon0] disabled
[    1.096308] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.105415] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.114964] scsi host0: ahci-mvebu
[    1.118670] scsi host1: ahci-mvebu
[    1.122273] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 42
[    1.130237] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 42
[    1.138323] ahci-mvebu f10e0000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.147423] ahci-mvebu f10e0000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.156795] scsi host2: ahci-mvebu
[    1.160437] scsi host3: ahci-mvebu
[    1.163993] ata3: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x100 irq 43
[    1.171957] ata4: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x180 irq 43
[    1.180386] pxa3xx-nand f10d0000.flash: This platform can't do DMA on this device
[    1.188235] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xdc
[    1.194627] nand: Hynix H27U4G8F2DTR-BC
[    1.198471] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.206084] pxa3xx-nand f10d0000.flash: ECC strength 16, ECC step size 2048
[    1.213279] Bad block table found at page 262080, version 0x01
[    1.219471] Bad block table found at page 262016, version 0x01
[    1.225501] nand_read_bbt: bad block at 0x00000dcc0000
[    1.230670] nand_read_bbt: bad block at 0x00000fb00000
[    1.235830] nand_read_bbt: bad block at 0x000012180000
[    1.240998] nand_read_bbt: bad block at 0x0000139a0000
[    1.246159] nand_read_bbt: bad block at 0x000017880000
[    1.251325] nand_read_bbt: bad block at 0x0000178a0000
[    1.256486] nand_read_bbt: bad block at 0x00001a640000
[    1.261654] nand_read_bbt: bad block at 0x00001e9c0000
[    1.266846] 3 ofpart partitions found on MTD device pxa3xx_nand-0
[    1.272971] Creating 3 MTD partitions on "pxa3xx_nand-0":
[    1.278394] 0x000000000000-0x000000800000 : "U-Boot"
[    1.294068] 0x000000800000-0x000001000000 : "Linux"
[    1.309602] 0x000001000000-0x000040000000 : "Filesystem"
[    1.314938] mtd: partition "Filesystem" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x1f000000
[    1.338821] m25p80 spi0.0: unrecognized JEDEC id bytes: ff, ff, ff
[    1.345459] libphy: Fixed MDIO Bus: probed
[    1.349863] libphy: mdio_driver_register: mv88e6085
[    1.354902] libphy: orion_mdio_bus: probed
[    1.359920] mvneta_bm f10c8000.bm: Buffer Manager for network controller enabled
[    1.368960] mvneta f1070000.ethernet eth0: Using random mac address 16:1d:1f:dd:27:ce
[    1.378425] mvneta f1030000.ethernet eth1: Using random mac address 4a:c9:34:df:45:1b
[    1.386488] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.393065] ehci-pci: EHCI PCI platform driver
[    1.397565] ehci-orion: EHCI orion driver
[    1.401701] orion-ehci f1058000.usb: EHCI Host Controller
[    1.407135] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    1.414798] orion-ehci f1058000.usb: irq 38, io mem 0xf1058000
[    1.458598] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    1.464656] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.469855] ata1: SATA link down (SStatus 0 SControl 300)
[    1.476920] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.479960] ata2: SATA link down (SStatus 0 SControl 300)
[    1.489605] usb usb1: Product: EHCI Host Controller
[    1.494504] usb usb1: Manufacturer: Linux 4.9.0-mvebu-tld-12 ehci_hcd
[    1.500977] usb usb1: SerialNumber: f1058000.usb
[    1.505923] hub 1-0:1.0: USB hub found
[    1.509715] hub 1-0:1.0: 1 port detected
[    1.509846] ata3: SATA link down (SStatus 0 SControl 300)
[    1.519517] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.519863] ata4: SATA link down (SStatus 0 SControl 300)
[    1.530291] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    1.537872] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.546465] xhci-hcd f10f0000.usb3: irq 46, io mem 0xf10f0000
[    1.552336] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    1.559164] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.566417] usb usb2: Product: xHCI Host Controller
[    1.571321] usb usb2: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.577789] usb usb2: SerialNumber: f10f0000.usb3
[    1.582805] hub 2-0:1.0: USB hub found
[    1.586589] hub 2-0:1.0: 1 port detected
[    1.590700] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.596040] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
[    1.603616] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.611806] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    1.618633] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.625885] usb usb3: Product: xHCI Host Controller
[    1.631684] usb usb3: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.638151] usb usb3: SerialNumber: f10f0000.usb3
[    1.643158] hub 3-0:1.0: USB hub found
[    1.646938] hub 3-0:1.0: 1 port detected
[    1.651111] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.656454] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    1.664046] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.672642] xhci-hcd f10f8000.usb3: irq 47, io mem 0xf10f8000
[    1.678492] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002
[    1.685320] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.692580] usb usb4: Product: xHCI Host Controller
[    1.697477] usb usb4: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.703991] usb usb4: SerialNumber: f10f8000.usb3
[    1.709013] hub 4-0:1.0: USB hub found
[    1.712793] hub 4-0:1.0: 1 port detected
[    1.716888] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.722243] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5
[    1.729804] usb usb5: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.737987] usb usb5: New USB device found, idVendor=1d6b, idProduct=0003
[    1.744814] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.752073] usb usb5: Product: xHCI Host Controller
[    1.756970] usb usb5: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.763491] usb usb5: SerialNumber: f10f8000.usb3
[    1.768485] hub 5-0:1.0: USB hub found
[    1.772276] hub 5-0:1.0: 1 port detected
[    1.776459] usbcore: registered new interface driver usblp
[    1.782051] usbcore: registered new interface driver usb-storage
[    1.788252] mousedev: PS/2 mouse device common for all mice
[    1.794212] armada38x-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[    1.801890] i2c /dev entries driver
[    1.816689] orion_wdt: Initial timeout 171 sec
[    1.822331] marvell-cesa f1090000.crypto: CESA device successfully registered
[    1.829621] hidraw: raw HID events driver (C) Jiri Kosina
[    1.835218] usbcore: registered new interface driver usbhid
[    1.840825] usbhid: USB HID core driver
[    1.844789] drop_monitor: Initializing network drop monitor service
[    1.851126] Netfilter messages via NETLINK v0.30.
[    1.855858] ip_set: protocol 6
[    1.859107] NET: Registered protocol family 10
[    1.864139] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    1.870853] NET: Registered protocol family 17
[    1.875433] 8021q: 802.1Q VLAN Support v1.8
[    1.879832] Key type dns_resolver registered
[    1.884204] ThumbEE CPU extension supported.
[    1.888495] Registering SWP/SWPB emulation handler
[    1.893658] registered taskstats version 1
[    1.897773] Loading compiled-in X.509 certificates
[    1.902627] zswap: loaded using pool lzo/zbud
[    1.944956] Key type big_key registered
[    1.948838] usb 2-1: new high-speed USB device number 2 using xhci-hcd
[    1.955701] Key type encrypted registered
[    1.960673] armada38x-rtc f10a3800.rtc: setting system clock to 2017-05-31 18:59:30 UTC (1496257170)
[    1.970279] Waiting 10 sec before mounting root device...
[    2.118797] usb 2-1: New USB device found, idVendor=045b, idProduct=0209
[    2.125536] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.133063] hub 2-1:1.0: USB hub found
[    2.136894] hub 2-1:1.0: 4 ports detected
[    2.258791] usb 3-1: new SuperSpeed USB device number 2 using xhci-hcd
[    2.290121] usb 3-1: New USB device found, idVendor=045b, idProduct=0210
[    2.296852] usb 3-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.304511] hub 3-1:1.0: USB hub found
[    2.308539] hub 3-1:1.0: 4 ports detected
[   12.008693] VFS: Cannot open root device "LABEL=rootfs" or unknown-block(0,0): error -6
[   12.016732] Please append a correct "root=" boot option; here are the available partitions:
[   12.025200] 1f00            8192 mtdblock0 [   12.029236]  (driver?)
[   12.031608] 1f01            8192 mtdblock1 [   12.035631]  (driver?)
[   12.038000] 1f02          507904 mtdblock2 [   12.042033]  (driver?)
[   12.044403] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[   12.052703] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.9.0-mvebu-tld-12 #2
[   12.059693] Hardware name: Marvell Armada 380/385 (Device Tree)
[   12.065651] [<c01160bc>] (unwind_backtrace) from [<c0110bb4>] (show_stack+0x10/0x14)
[   12.073430] [<c0110bb4>] (show_stack) from [<c04ba5a4>] (dump_stack+0x70/0x8c)
[   12.080685] [<c04ba5a4>] (dump_stack) from [<c01eccd4>] (panic+0xc0/0x244)
[   12.087593] [<c01eccd4>] (panic) from [<c0c012b4>] (mount_block_root+0x1d8/0x250)
[   12.095108] [<c0c012b4>] (mount_block_root) from [<c0c01420>] (mount_root+0xf4/0x11c)
[   12.102972] [<c0c01420>] (mount_root) from [<c0c0156c>] (prepare_namespace+0x124/0x184)
[   12.111014] [<c0c0156c>] (prepare_namespace) from [<c0c00e74>] (kernel_init_freeable+0x200/0x258)
[   12.119926] [<c0c00e74>] (kernel_init_freeable) from [<c0834b74>] (kernel_init+0x8/0x10c)
[   12.128142] [<c0834b74>] (kernel_init) from [<c010c338>] (ret_from_fork+0x14/0x3c)
[   12.135747] CPU1: stopping
[   12.138467] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 4.9.0-mvebu-tld-12 #2
[   12.145457] Hardware name: Marvell Armada 380/385 (Device Tree)
[   12.151407] [<c01160bc>] (unwind_backtrace) from [<c0110bb4>] (show_stack+0x10/0x14)
[   12.159184] [<c0110bb4>] (show_stack) from [<c04ba5a4>] (dump_stack+0x70/0x8c)
[   12.166439] [<c04ba5a4>] (dump_stack) from [<c0113f90>] (handle_IPI+0x16c/0x350)
[   12.173868] [<c0113f90>] (handle_IPI) from [<c0101520>] (gic_handle_irq+0x78/0x94)
[   12.181470] [<c0101520>] (gic_handle_irq) from [<c011160c>] (__irq_svc+0x6c/0xa8)
[   12.188982] Exception stack(0xee8c5f98 to 0xee8c5fe0)
[   12.194054] 5f80:                                                       00000001 00000000
[   12.202267] 5fa0: 00000000 c011e6c0 00000000 00000000 ee8c4000 c0d0412c 00000002 ee8c5ff0
[   12.210479] 5fc0: c0d04194 00000000 00000001 ee8c5fe8 c010d400 c010d404 60000013 ffffffff
[   12.218693] [<c011160c>] (__irq_svc) from [<c010d404>] (arch_cpu_idle+0x2c/0x38)
[   12.226121] [<c010d404>] (arch_cpu_idle) from [<c015ef04>] (cpu_startup_entry+0xf0/0x1d0)
[   12.234334] [<c015ef04>] (cpu_startup_entry) from [<0010166c>] (0x10166c)
[   12.241155] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
Re: Debian on WD MyCloud EX 4100
May 31, 2017 02:17PM
Veeeery interesting. Two different tests and two different results! Every QA tester's best nightmare.

Since my output stopped after the first SATA controller was initialized, and saschadd's output clearly shows successful initialization, I'm wondering if the issue is that the dtb you've provided is intended for the EX4100 with 2 SATA controllers, and I've got the EX2100.

Could it be getting hung up on the second SATA controller which is missing on my unit?

As you can see, I have more success with the WD provided dtb.

Edit: question for saschadd, if you use the DTB I attached to the post above yours, do you get one SATA controller (f10a8000.sata) initialized and then the kernel panic about VFS?



Edited 1 time(s). Last edit at 05/31/2017 02:22PM by hmartin.
Re: Debian on WD MyCloud EX 4100
May 31, 2017 02:49PM
hmartin,

> Edit: question for saschadd, if you use the DTB I attached to the post above yours, do you get one SATA controller (f10a8000.sata) initialized and then the kernel panic about VFS?

Tested your file, here is the output

Marvell>> setenv bootdev usb
Marvell>> setenv device '0:1'
Marvell>> setenv dtb_file '/boot/dts/armada-385-db.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=LABEL=rootfs 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 625 ms (6 MiB/s)
loading DTB /boot/dts/armada-385-db.dtb ...
13148 bytes read in 609 ms (20.5 KiB/s)
## Flattened Device Tree blob at 01000000
   Booting using the fdt blob at 0x01000000
   Loading Device Tree to 00ff9000, end 00fff35b ... 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: Marvell Armada 385 Development Board
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 15 pages/cpu @eefce000 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=LABEL=rootfs 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: 2066380K/2097152K available (8192K kernel code, 690K rwdata, 2052K rodata, 1024K init, 386K bss, 30772K 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] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[    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 0x46070001
[    0.000000] sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every 21474836475000000ns
[    0.000000] Console: colour dummy device 80x30
[    0.010000] Calibrating delay loop... 3188.32 BogoMIPS (lpj=15941632)
[    0.070000] pid_max: default: 32768 minimum: 301
[    0.070000] Security Framework initialized
[    0.080000] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.080000] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.090000] CPU: Testing write buffer coherency: ok
[    0.100000] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.100000] Setting up static identity map for 0x100000 - 0x100058
[    0.110000] mvebu-pmsu: Initializing Power Management Service Unit
[    0.150000] Brought up 1 CPUs
[    0.150000] SMP: Total of 1 processors activated (3188.32 BogoMIPS).
[    0.160000] CPU: All CPU(s) started in SVC mode.
[    0.160000] devtmpfs: initialized
[    0.180000] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.180000] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.190000] prandom: seed boundary self test passed
[    0.200000] prandom: 100 self tests passed
[    0.200000] pinctrl core: initialized pinctrl subsystem
[    0.210000] NET: Registered protocol family 16
[    0.210000] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.250000] cpuidle: using governor ladder
[    0.270000] cpuidle: using governor menu
[    0.270000] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.280000] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.370000] vgaarb: loaded
[    0.370000] SCSI subsystem initialized
[    0.380000] usbcore: registered new interface driver usbfs
[    0.380000] usbcore: registered new interface driver hub
[    0.390000] usbcore: registered new device driver usb
[    0.390000] media: Linux media interface: v0.10
[    0.400000] Linux video capture interface: v2.00
[    0.430000] VFS: Disk quotas dquot_6.6.0
[    0.430000] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.450000] NET: Registered protocol family 2
[    0.450000] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.460000] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.470000] TCP: Hash tables configured (established 8192 bind 8192)
[    0.470000] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.480000] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.480000] NET: Registered protocol family 1
[    0.510000] RPC: Registered named UNIX socket transport module.
[    0.510000] RPC: Registered udp transport module.
[    0.520000] RPC: Registered tcp transport module.
[    0.520000] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.530000] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.530000] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.540000] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.550000] audit: initializing netlink subsys (disabled)
[    0.550000] audit: type=2000 audit(0.550:1): initialized
[    0.560000] Initialise system trusted keyrings
[    0.580000] workingset: timestamp_bits=30 max_order=19 bucket_order=0
[    0.580000] zbud: loaded
[    0.590000] NFS: Registering the id_resolver key type
[    0.590000] Key type id_resolver registered
[    0.590000] Key type id_legacy registered
[    0.600000] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.610000] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.610000] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.620000] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.630000] orangefs_init: module version upstream loaded
[    0.630000] jitterentropy: Initialization failed with host not compliant with requirements: 2
[    0.640000] Key type asymmetric registered
[    0.650000] Asymmetric key parser 'x509' registered
[    0.650000] bounce: pool size: 64 pages
[    0.650000] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.660000] io scheduler noop registered
[    0.670000] io scheduler deadline registered
[    0.670000] io scheduler cfq registered (default)
[    0.680000] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    0.680000] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.750000] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    0.750000] mv_xor f1060900.xor: Marvell shared XOR driver
[    0.820000] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    0.870000] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    0.880000] console [ttyS0] disabled
[    0.900000] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 34, base_baud = 12500000) is a 16550A
[    0.910000] console [ttyS0] enabled
[    0.910000] console [ttyS0] enabled
[    0.910000] bootconsole [earlycon0] disabled
[    0.910000] bootconsole [earlycon0] disabled
[    0.930000] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 35, base_baud = 12500000) is a 16550A
[    0.940000] m25p80 spi0.0: unrecognized JEDEC id bytes: ff, ff, ff
[    0.950000] libphy: Fixed MDIO Bus: probed
[    0.960000] libphy: mdio_driver_register: mv88e6085
[    0.960000] libphy: orion_mdio_bus: probed
[    1.000000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.000000] ehci-pci: EHCI PCI platform driver
[    1.010000] ehci-orion: EHCI orion driver
[    1.010000] orion-ehci f1058000.usb: EHCI Host Controller
[    1.020000] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    1.020000] orion-ehci f1058000.usb: irq 38, io mem 0xf1058000
[    1.060000] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    1.060000] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.070000] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.080000] usb usb1: Product: EHCI Host Controller
[    1.080000] usb usb1: Manufacturer: Linux 4.9.0-mvebu-tld-12 ehci_hcd
[    1.090000] usb usb1: SerialNumber: f1058000.usb
[    1.090000] hub 1-0:1.0: USB hub found
[    1.100000] hub 1-0:1.0: 1 port detected
[    1.100000] usbcore: registered new interface driver usblp
[    1.110000] usbcore: registered new interface driver usb-storage
[    1.110000] mousedev: PS/2 mouse device common for all mice
[    1.120000] i2c /dev entries driver
[    1.130000] hidraw: raw HID events driver (C) Jiri Kosina
[    1.140000] usbcore: registered new interface driver usbhid
[    1.150000] usbhid: USB HID core driver
[    1.150000] drop_monitor: Initializing network drop monitor service
[    1.160000] Netfilter messages via NETLINK v0.30.
[    1.160000] ip_set: protocol 6
[    1.160000] NET: Registered protocol family 10
[    1.180000] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    1.180000] NET: Registered protocol family 17
[    1.190000] 8021q: 802.1Q VLAN Support v1.8
[    1.190000] Key type dns_resolver registered
[    1.200000] ThumbEE CPU extension supported.
[    1.200000] Registering SWP/SWPB emulation handler
[    1.200000] registered taskstats version 1
[    1.210000] Loading compiled-in X.509 certificates
[    1.210000] zswap: loaded using pool lzo/zbud
[    1.220000] DRBG: Continuing without Jitter RNG
[    1.220000] Key type big_key registered
[    1.230000] Key type encrypted registered
[    1.230000] hctosys: unable to open rtc device (rtc0)
[    1.240000] Waiting 10 sec before mounting root device...
[   11.360000] VFS: Cannot open root device "LABEL=rootfs" or unknown-block(0,0): error -6
[   11.360000] Please append a correct "root=" boot option; here are the available partitions:
[   11.370000] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[   11.370000] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.9.0-mvebu-tld-12 #2
[   11.370000] Hardware name: Marvell Armada 380/385 (Device Tree)
[   11.370000] [<c01160bc>] (unwind_backtrace) from [<c0110bb4>] (show_stack+0x10/0x14)
[   11.370000] [<c0110bb4>] (show_stack) from [<c04ba5a4>] (dump_stack+0x70/0x8c)
[   11.370000] [<c04ba5a4>] (dump_stack) from [<c01eccd4>] (panic+0xc0/0x244)
[   11.370000] [<c01eccd4>] (panic) from [<c0c012b4>] (mount_block_root+0x1d8/0x250)
[   11.370000] [<c0c012b4>] (mount_block_root) from [<c0c01420>] (mount_root+0xf4/0x11c)
[   11.370000] [<c0c01420>] (mount_root) from [<c0c0156c>] (prepare_namespace+0x124/0x184)
[   11.370000] [<c0c0156c>] (prepare_namespace) from [<c0c00e74>] (kernel_init_freeable+0x200/0x258)
[   11.370000] [<c0c00e74>] (kernel_init_freeable) from [<c0834b74>] (kernel_init+0x8/0x10c)
[   11.370000] [<c0834b74>] (kernel_init) from [<c010c338>] (ret_from_fork+0x14/0x3c)
[   11.370000] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
Re: Debian on WD MyCloud EX 4100
May 31, 2017 02:59PM
All,

Very good tests :)

Just briefly scanning the boot log, I think I'm on the right track thinking that the loading of uInitrd that caused problem.

saschadd log is a good indicator that the kernel and the DTB file are correctly executed.
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=LABEL=rootfs 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 626 ms (5.9 MiB/s)
loading DTB /boot/dts/armada-385-wd-ex4100.dtb ...
14861 bytes read in 599 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=LABEL=rootfs 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.023573] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[    0.033977] pid_max: default: 32768 minimum: 301
[    0.038731] Security Framework initialized
[    0.042925] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.049598] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.057101] CPU: Testing write buffer coherency: ok
[    0.062170] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.067908] Setting up static identity map for 0x100000 - 0x100058
[    0.074211] mvebu-soc-id: MVEBU SoC ID=0x6828, Rev=0x4
[    0.079470] mvebu-pmsu: Initializing Power Management Service Unit
[    0.283913] Booting CPU 1
[    0.286759] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.286808] Brought up 2 CPUs
[    0.295566] SMP: Total of 2 processors activated (100.00 BogoMIPS).
[    0.301885] CPU: All CPU(s) started in SVC mode.
[    0.307118] devtmpfs: initialized
[    0.312406] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.320351] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.330278] prandom: seed boundary self test passed
[    0.336903] prandom: 100 self tests passed
[    0.341063] pinctrl core: initialized pinctrl subsystem
[    0.346989] NET: Registered protocol family 16
[    0.352026] 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.504835] vgaarb: loaded
[    0.507847] SCSI subsystem initialized
[    0.512076] usbcore: registered new interface driver usbfs
[    0.517708] usbcore: registered new interface driver hub
[    0.523132] usbcore: registered new device driver usb
[    0.528452] media: Linux media interface: v0.10
[    0.533088] Linux video capture interface: v2.00
[    0.538589] 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.587877] NET: Registered protocol family 2
[    0.592696] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.599845] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.606395] TCP: Hash tables configured (established 8192 bind 8192)
[    0.612864] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.618873] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.625378] NET: Registered protocol family 1
[    0.630062] RPC: Registered named UNIX socket transport module.
[    0.636038] RPC: Registered udp transport module.
[    0.640818] RPC: Registered tcp transport module.
[    0.645582] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.652285] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.658964] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.668003] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.674230] audit: initializing netlink subsys (disabled)
[    0.679715] audit: type=2000 audit(0.670:1): initialized
[    0.685463] Initialise system trusted keyrings
[    0.690118] workingset: timestamp_bits=30 max_order=19 bucket_order=0
[    0.696674] zbud: loaded
[    0.699740] NFS: Registering the id_resolver key type
[    0.704857] Key type id_resolver registered
[    0.709118] Key type id_legacy registered
[    0.713198] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.719959] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.726493] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.733883] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.740501] orangefs_init: module version upstream loaded
[    0.747738] Key type asymmetric registered
[    0.751913] 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.768300] io scheduler noop registered
[    0.772299] io scheduler deadline registered
[    0.776644] io scheduler cfq registered (default)
[    0.782210] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    0.790620] mvebu-pcie soc:pcie-controller: PCI host bridge to bus 0000:00
[    0.797551] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    0.803887] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    0.810822] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.816738] PCI: bus0: Fast back to back transfers disabled
[    0.822385] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.830451] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.838618] PCI: bus1: Fast back to back transfers enabled
[    0.844279] PCI: bus2: Fast back to back transfers enabled
[    0.849873] pci 0000:00:01.0: PCI bridge to [bus 01]
[    0.854901] pci 0000:00:02.0: PCI bridge to [bus 02]
[    0.860345] 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.988981] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.039211] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.046868] console [ttyS0] disabled
[    1.070599] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 22, base_baud = 12500000) is a 16550A
[    1.079634] console [ttyS0] enabled
[    1.079634] console [ttyS0] enabled
[    1.086721] bootconsole [earlycon0] disabled
[    1.086721] bootconsole [earlycon0] disabled
[    1.096308] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.105415] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.114964] scsi host0: ahci-mvebu
[    1.118670] scsi host1: ahci-mvebu
[    1.122273] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 42
[    1.130237] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 42
[    1.138323] ahci-mvebu f10e0000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.147423] ahci-mvebu f10e0000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.156795] scsi host2: ahci-mvebu
[    1.160437] scsi host3: ahci-mvebu
[    1.163993] ata3: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x100 irq 43
[    1.171957] ata4: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x180 irq 43
[    1.180386] pxa3xx-nand f10d0000.flash: This platform can't do DMA on this device
[    1.188235] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xdc
[    1.194627] nand: Hynix H27U4G8F2DTR-BC
[    1.198471] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.206084] pxa3xx-nand f10d0000.flash: ECC strength 16, ECC step size 2048
[    1.213279] Bad block table found at page 262080, version 0x01
[    1.219471] Bad block table found at page 262016, version 0x01
[    1.225501] nand_read_bbt: bad block at 0x00000dcc0000
[    1.230670] nand_read_bbt: bad block at 0x00000fb00000
[    1.235830] nand_read_bbt: bad block at 0x000012180000
[    1.240998] nand_read_bbt: bad block at 0x0000139a0000
[    1.246159] nand_read_bbt: bad block at 0x000017880000
[    1.251325] nand_read_bbt: bad block at 0x0000178a0000
[    1.256486] nand_read_bbt: bad block at 0x00001a640000
[    1.261654] nand_read_bbt: bad block at 0x00001e9c0000
[    1.266846] 3 ofpart partitions found on MTD device pxa3xx_nand-0
[    1.272971] Creating 3 MTD partitions on "pxa3xx_nand-0":
[    1.278394] 0x000000000000-0x000000800000 : "U-Boot"
[    1.294068] 0x000000800000-0x000001000000 : "Linux"
[    1.309602] 0x000001000000-0x000040000000 : "Filesystem"
[    1.314938] mtd: partition "Filesystem" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x1f000000
[    1.338821] m25p80 spi0.0: unrecognized JEDEC id bytes: ff, ff, ff
[    1.345459] libphy: Fixed MDIO Bus: probed
[    1.349863] libphy: mdio_driver_register: mv88e6085
[    1.354902] libphy: orion_mdio_bus: probed
[    1.359920] mvneta_bm f10c8000.bm: Buffer Manager for network controller enabled
[    1.368960] mvneta f1070000.ethernet eth0: Using random mac address 16:1d:1f:dd:27:ce
[    1.378425] mvneta f1030000.ethernet eth1: Using random mac address 4a:c9:34:df:45:1b
[    1.386488] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.393065] ehci-pci: EHCI PCI platform driver
[    1.397565] ehci-orion: EHCI orion driver
[    1.401701] orion-ehci f1058000.usb: EHCI Host Controller
[    1.407135] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    1.414798] orion-ehci f1058000.usb: irq 38, io mem 0xf1058000
[    1.458598] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    1.464656] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.469855] ata1: SATA link down (SStatus 0 SControl 300)
[    1.476920] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.479960] ata2: SATA link down (SStatus 0 SControl 300)
[    1.489605] usb usb1: Product: EHCI Host Controller
[    1.494504] usb usb1: Manufacturer: Linux 4.9.0-mvebu-tld-12 ehci_hcd
[    1.500977] usb usb1: SerialNumber: f1058000.usb
[    1.505923] hub 1-0:1.0: USB hub found
[    1.509715] hub 1-0:1.0: 1 port detected
[    1.509846] ata3: SATA link down (SStatus 0 SControl 300)
[    1.519517] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.519863] ata4: SATA link down (SStatus 0 SControl 300)
[    1.530291] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    1.537872] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.546465] xhci-hcd f10f0000.usb3: irq 46, io mem 0xf10f0000
[    1.552336] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    1.559164] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.566417] usb usb2: Product: xHCI Host Controller
[    1.571321] usb usb2: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.577789] usb usb2: SerialNumber: f10f0000.usb3
[    1.582805] hub 2-0:1.0: USB hub found
[    1.586589] hub 2-0:1.0: 1 port detected
[    1.590700] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.596040] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
[    1.603616] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.611806] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    1.618633] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.625885] usb usb3: Product: xHCI Host Controller
[    1.631684] usb usb3: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.638151] usb usb3: SerialNumber: f10f0000.usb3
[    1.643158] hub 3-0:1.0: USB hub found
[    1.646938] hub 3-0:1.0: 1 port detected
[    1.651111] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.656454] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    1.664046] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.672642] xhci-hcd f10f8000.usb3: irq 47, io mem 0xf10f8000
[    1.678492] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002
[    1.685320] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.692580] usb usb4: Product: xHCI Host Controller
[    1.697477] usb usb4: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.703991] usb usb4: SerialNumber: f10f8000.usb3
[    1.709013] hub 4-0:1.0: USB hub found
[    1.712793] hub 4-0:1.0: 1 port detected
[    1.716888] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.722243] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5
[    1.729804] usb usb5: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.737987] usb usb5: New USB device found, idVendor=1d6b, idProduct=0003
[    1.744814] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.752073] usb usb5: Product: xHCI Host Controller
[    1.756970] usb usb5: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.763491] usb usb5: SerialNumber: f10f8000.usb3
[    1.768485] hub 5-0:1.0: USB hub found
[    1.772276] hub 5-0:1.0: 1 port detected
[    1.776459] usbcore: registered new interface driver usblp
[    1.782051] usbcore: registered new interface driver usb-storage
[    1.788252] mousedev: PS/2 mouse device common for all mice
[    1.794212] armada38x-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[    1.801890] i2c /dev entries driver
[    1.816689] orion_wdt: Initial timeout 171 sec
[    1.822331] marvell-cesa f1090000.crypto: CESA device successfully registered
[    1.829621] hidraw: raw HID events driver (C) Jiri Kosina
[    1.835218] usbcore: registered new interface driver usbhid
[    1.840825] usbhid: USB HID core driver
[    1.844789] drop_monitor: Initializing network drop monitor service
[    1.851126] Netfilter messages via NETLINK v0.30.
[    1.855858] ip_set: protocol 6
[    1.859107] NET: Registered protocol family 10
[    1.864139] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    1.870853] NET: Registered protocol family 17
[    1.875433] 8021q: 802.1Q VLAN Support v1.8
[    1.879832] Key type dns_resolver registered
[    1.884204] ThumbEE CPU extension supported.
[    1.888495] Registering SWP/SWPB emulation handler
[    1.893658] registered taskstats version 1
[    1.897773] Loading compiled-in X.509 certificates
[    1.902627] zswap: loaded using pool lzo/zbud
[    1.944956] Key type big_key registered
[    1.948838] usb 2-1: new high-speed USB device number 2 using xhci-hcd
[    1.955701] Key type encrypted registered
[    1.960673] armada38x-rtc f10a3800.rtc: setting system clock to 2017-05-31 18:59:30 UTC (1496257170)
[    1.970279] Waiting 10 sec before mounting root device...
[    2.118797] usb 2-1: New USB device found, idVendor=045b, idProduct=0209
[    2.125536] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.133063] hub 2-1:1.0: USB hub found
[    2.136894] hub 2-1:1.0: 4 ports detected
[    2.258791] usb 3-1: new SuperSpeed USB device number 2 using xhci-hcd
[    2.290121] usb 3-1: New USB device found, idVendor=045b, idProduct=0210
[    2.296852] usb 3-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.304511] hub 3-1:1.0: USB hub found
[    2.308539] hub 3-1:1.0: 4 ports detected
[   12.008693] VFS: Cannot open root device "LABEL=rootfs" or unknown-block(0,0): error -6
[   12.016732] Please append a correct "root=" boot option; here are the available partitions:
[   12.025200] 1f00            8192 mtdblock0 [   12.029236]  (driver?)
[   12.031608] 1f01            8192 mtdblock1 [   12.035631]  (driver?)
[   12.038000] 1f02          507904 mtdblock2 [   12.042033]  (driver?)
[   12.044403] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[   12.052703] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.9.0-mvebu-tld-12 #2
[   12.059693] Hardware name: Marvell Armada 380/385 (Device Tree)
[   12.065651] [<c01160bc>] (unwind_backtrace) from [<c0110bb4>] (show_stack+0x10/0x14)
[   12.073430] [<c0110bb4>] (show_stack) from [<c04ba5a4>] (dump_stack+0x70/0x8c)
[   12.080685] [<c04ba5a4>] (dump_stack) from [<c01eccd4>] (panic+0xc0/0x244)
[   12.087593] [<c01eccd4>] (panic) from [<c0c012b4>] (mount_block_root+0x1d8/0x250)
[   12.095108] [<c0c012b4>] (mount_block_root) from [<c0c01420>] (mount_root+0xf4/0x11c)
[   12.102972] [<c0c01420>] (mount_root) from [<c0c0156c>] (prepare_namespace+0x124/0x184)
[   12.111014] [<c0c0156c>] (prepare_namespace) from [<c0c00e74>] (kernel_init_freeable+0x200/0x258)
[   12.119926] [<c0c00e74>] (kernel_init_freeable) from [<c0834b74>] (kernel_init+0x8/0x10c)
[   12.128142] [<c0834b74>] (kernel_init) from [<c010c338>] (ret_from_fork+0x14/0x3c)
[   12.135747] CPU1: stopping
[   12.138467] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 4.9.0-mvebu-tld-12 #2
[   12.145457] Hardware name: Marvell Armada 380/385 (Device Tree)
[   12.151407] [<c01160bc>] (unwind_backtrace) from [<c0110bb4>] (show_stack+0x10/0x14)
[   12.159184] [<c0110bb4>] (show_stack) from [<c04ba5a4>] (dump_stack+0x70/0x8c)
[   12.166439] [<c04ba5a4>] (dump_stack) from [<c0113f90>] (handle_IPI+0x16c/0x350)
[   12.173868] [<c0113f90>] (handle_IPI) from [<c0101520>] (gic_handle_irq+0x78/0x94)
[   12.181470] [<c0101520>] (gic_handle_irq) from [<c011160c>] (__irq_svc+0x6c/0xa8)
[   12.188982] Exception stack(0xee8c5f98 to 0xee8c5fe0)
[   12.194054] 5f80:                                                       00000001 00000000
[   12.202267] 5fa0: 00000000 c011e6c0 00000000 00000000 ee8c4000 c0d0412c 00000002 ee8c5ff0
[   12.210479] 5fc0: c0d04194 00000000 00000001 ee8c5fe8 c010d400 c010d404 60000013 ffffffff
[   12.218693] [<c011160c>] (__irq_svc) from [<c010d404>] (arch_cpu_idle+0x2c/0x38)
[   12.226121] [<c010d404>] (arch_cpu_idle) from [<c015ef04>] (cpu_startup_entry+0xf0/0x1d0)
[   12.234334] [<c015ef04>] (cpu_startup_entry) from [<0010166c>] (0x10166c)
[   12.241155] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

Now the issue is how to mount the rootfs. Without initrd, the kernel can't mount the rootfs with LABEL. So let do this if you can:

- Temporarily remove any HDD that you have attached.
- and revise the uboot envs to boot this way

Update 1:

This boot log is a really good one. Everything seems to be correct.

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



Edited 2 time(s). Last edit at 05/31/2017 03:21PM by bodhi.
Re: Debian on WD MyCloud EX 4100
May 31, 2017 03:05PM
Quote
bodhi
Now the issue is how to mount the rootfs. Without initrd, the kernel can't mount the rootfs with LABEL. So let do this if you can:

- Temporarily remove any HDD that you have attached.
- and revise the uboot envs to boot this way

... Let me modify this post again in a moment.

No problem, I am booting from tftp, so there are no SATA drives anyway. Hence I could put the rootfs on a USB stick and use /dev/sda. If the drivers for ext3/4 and usb are compiled into the kernel and not modules, then no initrd is required.

I am actually here for other motives. I want a working mainline kernel and then I plan to build LEDE or OpenEmbedded to flash to NAND. Getting Debian working is just a stepping stone for me :)
Re: Debian on WD MyCloud EX 4100
May 31, 2017 03:12PM
hmartin,

> Could you share your kernel .config and the dts fo
> r armada-385-wd-ex4100.dtb?

Sure. You already have the kernel .config in the tarball. I'll post the DTS.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on WD MyCloud EX 4100
May 31, 2017 03:14PM
hmartin,

> No problem, I am booting from tftp, so there are n
> o SATA drives anyway. Hence I could put the rootfs
> on a USB stick and use /dev/sda. If the drivers fo
> r ext3/4 and usb are compiled into the kernel and
> not modules, then no initrd is required.
>
> I am actually here for other motives. I want a wor
> king mainline kernel and then I plan to build LEDE
> or OpenEmbedded to flash to NAND. Getting Debian w
> orking is just a stepping stone for me :)

Hey that's cool :) Once we get Debian, OpenWrt will be a given to work.

And you are right of course. But I'll like to keep the Armada kernel the same for all boxes (e.g. NAS326), hence the initramfs is needed for many other modules.

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



Edited 1 time(s). Last edit at 05/31/2017 03:16PM by bodhi.
Re: Debian on WD MyCloud EX 4100
May 31, 2017 03:20PM
- Temporarily remove any HDD that you have attached.
- and revise the uboot envs to boot this way (the bold line is the modified env).

setenv bootdev usb
setenv device '0:1'
setenv dtb_file '/boot/dts/armada-385-wd-ex4100.dtb'
setenv load_dtb_addr 0x1000000
setenv load_initrd_addr 0x3900000
setenv load_image_addr 0x02000000
setenv load_dtb 'echo loading DTB $dtb_file ...; ext2load $bootdev $device $load_dtb_addr $dtb_file'
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/zImage'
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_dtb; run usb_set_bootargs; bootz $load_image_addr -  $load_dtb_addr'
setenv bootcmd_usb 'usb start; run usb_set_bootargs; run usb_bootcmd; reset'
run bootcmd_usb

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on WD MyCloud EX 4100
May 31, 2017 03:29PM
bodhi,

not yet ;) [my box has been empty all the time, no sata drives inserted, just the usb stick on the front usb]

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 626 ms (5.9 MiB/s)
loading DTB /boot/dts/armada-385-wd-ex4100.dtb ...
14861 bytes read in 599 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.007882] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.019057] Console: colour dummy device 80x30
[    0.023571] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[    0.033975] 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.057098] CPU: Testing write buffer coherency: ok
[    0.062170] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.067908] Setting up static identity map for 0x100000 - 0x100058
[    0.074211] mvebu-soc-id: MVEBU SoC ID=0x6828, Rev=0x4
[    0.079471] mvebu-pmsu: Initializing Power Management Service Unit
[    0.283913] Booting CPU 1
[    0.286758] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.286807] Brought up 2 CPUs
[    0.295565] SMP: Total of 2 processors activated (100.00 BogoMIPS).
[    0.301884] CPU: All CPU(s) started in SVC mode.
[    0.307116] devtmpfs: initialized
[    0.312400] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.320345] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.330271] prandom: seed boundary self test passed
[    0.336895] prandom: 100 self tests passed
[    0.341055] pinctrl core: initialized pinctrl subsystem
[    0.346974] NET: Registered protocol family 16
[    0.352008] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.393869] cpuidle: using governor ladder
[    0.423867] 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.504837] vgaarb: loaded
[    0.507845] SCSI subsystem initialized
[    0.512070] usbcore: registered new interface driver usbfs
[    0.517702] usbcore: registered new interface driver hub
[    0.523127] usbcore: registered new device driver usb
[    0.528448] media: Linux media interface: v0.10
[    0.533084] Linux video capture interface: v2.00
[    0.538587] clocksource: Switched to clocksource armada_370_xp_clocksource
[    0.569946] VFS: Disk quotas dquot_6.6.0
[    0.573976] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.587825] NET: Registered protocol family 2
[    0.592644] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.599793] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.606344] TCP: Hash tables configured (established 8192 bind 8192)
[    0.612814] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.618830] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.625338] NET: Registered protocol family 1
[    0.630019] RPC: Registered named UNIX socket transport module.
[    0.635995] RPC: Registered udp transport module.
[    0.640775] RPC: Registered tcp transport module.
[    0.645540] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.652244] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.658921] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.667962] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.674186] audit: initializing netlink subsys (disabled)
[    0.679673] audit: type=2000 audit(0.670:1): initialized
[    0.685426] Initialise system trusted keyrings
[    0.690077] workingset: timestamp_bits=30 max_order=19 bucket_order=0
[    0.696633] zbud: loaded
[    0.699703] NFS: Registering the id_resolver key type
[    0.704820] Key type id_resolver registered
[    0.709082] Key type id_legacy registered
[    0.713161] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.719922] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.726457] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.733851] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.740467] orangefs_init: module version upstream loaded
[    0.747759] Key type asymmetric registered
[    0.751935] Asymmetric key parser 'x509' registered
[    0.756898] bounce: pool size: 64 pages
[    0.760876] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.768322] io scheduler noop registered
[    0.772322] io scheduler deadline registered
[    0.776667] io scheduler cfq registered (default)
[    0.782229] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    0.790645] mvebu-pcie soc:pcie-controller: PCI host bridge to bus 0000:00
[    0.797575] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    0.803912] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    0.810849] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.816766] PCI: bus0: Fast back to back transfers disabled
[    0.822414] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.830479] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.838645] PCI: bus1: Fast back to back transfers enabled
[    0.844304] PCI: bus2: Fast back to back transfers enabled
[    0.849898] pci 0000:00:01.0: PCI bridge to [bus 01]
[    0.854927] pci 0000:00:02.0: PCI bridge to [bus 02]
[    0.860369] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.918987] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    0.926596] mv_xor f1060900.xor: Marvell shared XOR driver
[    0.988980] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.039783] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.047422] console [ttyS0] disabled
[    1.071153] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 22, base_baud = 12500000) is a 16550A
[    1.080186] console [ttyS0] enabled
[    1.080186] console [ttyS0] enabled
[    1.087274] bootconsole [earlycon0] disabled
[    1.087274] bootconsole [earlycon0] disabled
[    1.096869] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.105976] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.115526] scsi host0: ahci-mvebu
[    1.119227] scsi host1: ahci-mvebu
[    1.122832] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 42
[    1.130797] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 42
[    1.138884] ahci-mvebu f10e0000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.147972] ahci-mvebu f10e0000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.157349] scsi host2: ahci-mvebu
[    1.160993] scsi host3: ahci-mvebu
[    1.164548] ata3: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x100 irq 43
[    1.172513] ata4: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x180 irq 43
[    1.180940] pxa3xx-nand f10d0000.flash: This platform can't do DMA on this device
[    1.188804] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xdc
[    1.195185] nand: Hynix H27U4G8F2DTR-BC
[    1.199047] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.206651] pxa3xx-nand f10d0000.flash: ECC strength 16, ECC step size 2048
[    1.213845] Bad block table found at page 262080, version 0x01
[    1.220037] Bad block table found at page 262016, version 0x01
[    1.226066] nand_read_bbt: bad block at 0x00000dcc0000
[    1.231236] nand_read_bbt: bad block at 0x00000fb00000
[    1.236396] nand_read_bbt: bad block at 0x000012180000
[    1.241563] nand_read_bbt: bad block at 0x0000139a0000
[    1.246724] nand_read_bbt: bad block at 0x000017880000
[    1.251890] nand_read_bbt: bad block at 0x0000178a0000
[    1.257050] nand_read_bbt: bad block at 0x00001a640000
[    1.262218] nand_read_bbt: bad block at 0x00001e9c0000
[    1.267410] 3 ofpart partitions found on MTD device pxa3xx_nand-0
[    1.273536] Creating 3 MTD partitions on "pxa3xx_nand-0":
[    1.278965] 0x000000000000-0x000000800000 : "U-Boot"
[    1.294630] 0x000000800000-0x000001000000 : "Linux"
[    1.310165] 0x000001000000-0x000040000000 : "Filesystem"
[    1.315501] mtd: partition "Filesystem" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x1f000000
[    1.329381] m25p80 spi0.0: unrecognized JEDEC id bytes: ff, ff, ff
[    1.336054] libphy: Fixed MDIO Bus: probed
[    1.340467] libphy: mdio_driver_register: mv88e6085
[    1.345506] libphy: orion_mdio_bus: probed
[    1.350636] mvneta_bm f10c8000.bm: Buffer Manager for network controller enabled
[    1.359662] mvneta f1070000.ethernet eth0: Using random mac address 1a:0c:38:60:ae:e5
[    1.369119] mvneta f1030000.ethernet eth1: Using random mac address 5e:93:df:08:1f:41
[    1.377159] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.383747] ehci-pci: EHCI PCI platform driver
[    1.388252] ehci-orion: EHCI orion driver
[    1.392386] orion-ehci f1058000.usb: EHCI Host Controller
[    1.397820] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    1.405487] orion-ehci f1058000.usb: irq 38, io mem 0xf1058000
[    1.438598] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    1.444654] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.451485] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.458745] usb usb1: Product: EHCI Host Controller
[    1.463643] usb usb1: Manufacturer: Linux 4.9.0-mvebu-tld-12 ehci_hcd
[    1.469978] ata1: SATA link down (SStatus 0 SControl 300)
[    1.475551] usb usb1: SerialNumber: f1058000.usb
[    1.479874] ata2: SATA link down (SStatus 0 SControl 300)
[    1.485922] hub 1-0:1.0: USB hub found
[    1.489715] hub 1-0:1.0: 1 port detected
[    1.494092] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.499450] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    1.507030] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.509842] ata3: SATA link down (SStatus 0 SControl 300)
[    1.519855] ata4: SATA link down (SStatus 0 SControl 300)
[    1.526466] xhci-hcd f10f0000.usb3: irq 46, io mem 0xf10f0000
[    1.532324] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    1.539165] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.546418] usb usb2: Product: xHCI Host Controller
[    1.551324] usb usb2: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.557792] usb usb2: SerialNumber: f10f0000.usb3
[    1.562811] hub 2-0:1.0: USB hub found
[    1.566596] hub 2-0:1.0: 1 port detected
[    1.570711] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.576050] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
[    1.583626] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.591815] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    1.599373] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.606627] usb usb3: Product: xHCI Host Controller
[    1.611535] usb usb3: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.618003] usb usb3: SerialNumber: f10f0000.usb3
[    1.623009] hub 3-0:1.0: USB hub found
[    1.626788] hub 3-0:1.0: 1 port detected
[    1.630960] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.636312] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    1.643898] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.652491] xhci-hcd f10f8000.usb3: irq 47, io mem 0xf10f8000
[    1.658339] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002
[    1.665165] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.672426] usb usb4: Product: xHCI Host Controller
[    1.677323] usb usb4: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.683837] usb usb4: SerialNumber: f10f8000.usb3
[    1.688865] hub 4-0:1.0: USB hub found
[    1.692645] hub 4-0:1.0: 1 port detected
[    1.696745] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.702098] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5
[    1.709660] usb usb5: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.717841] usb usb5: New USB device found, idVendor=1d6b, idProduct=0003
[    1.724668] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.731929] usb usb5: Product: xHCI Host Controller
[    1.736827] usb usb5: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.743345] usb usb5: SerialNumber: f10f8000.usb3
[    1.748342] hub 5-0:1.0: USB hub found
[    1.752133] hub 5-0:1.0: 1 port detected
[    1.756314] usbcore: registered new interface driver usblp
[    1.761907] usbcore: registered new interface driver usb-storage
[    1.768108] mousedev: PS/2 mouse device common for all mice
[    1.774073] armada38x-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[    1.781751] i2c /dev entries driver
[    1.796551] orion_wdt: Initial timeout 171 sec
[    1.802183] marvell-cesa f1090000.crypto: CESA device successfully registered
[    1.809474] hidraw: raw HID events driver (C) Jiri Kosina
[    1.815074] usbcore: registered new interface driver usbhid
[    1.820681] usbhid: USB HID core driver
[    1.824648] drop_monitor: Initializing network drop monitor service
[    1.830986] Netfilter messages via NETLINK v0.30.
[    1.835721] ip_set: protocol 6
[    1.838969] NET: Registered protocol family 10
[    1.844001] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    1.850722] NET: Registered protocol family 17
[    1.855294] 8021q: 802.1Q VLAN Support v1.8
[    1.859693] Key type dns_resolver registered
[    1.864065] ThumbEE CPU extension supported.
[    1.868356] Registering SWP/SWPB emulation handler
[    1.873519] registered taskstats version 1
[    1.877634] Loading compiled-in X.509 certificates
[    1.882486] zswap: loaded using pool lzo/zbud
[    1.920147] Key type big_key registered
[    1.924213] Key type encrypted registered
[    1.928612] usb 2-1: new high-speed USB device number 2 using xhci-hcd
[    1.935826] armada38x-rtc f10a3800.rtc: setting system clock to 2017-05-31 20:24:18 UTC (1496262258)
[    1.945424] Waiting 10 sec before mounting root device...
[    2.098806] usb 2-1: New USB device found, idVendor=045b, idProduct=0209
[    2.105544] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.113073] hub 2-1:1.0: USB hub found
[    2.116903] hub 2-1:1.0: 4 ports detected
[    2.238774] usb 3-1: new SuperSpeed USB device number 2 using xhci-hcd
[    2.270181] usb 3-1: New USB device found, idVendor=045b, idProduct=0210
[    2.276912] usb 3-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.284567] hub 3-1:1.0: USB hub found
[    2.288613] hub 3-1:1.0: 4 ports detected
[   12.008692] VFS: Cannot open root device "sda1" or unknown-block(0,0): error -6
[   12.016033] Please append a correct "root=" boot option; here are the available partitions:
[   12.024509] 1f00            8192 mtdblock0 [   12.028534]  (driver?)
[   12.030917] 1f01            8192 mtdblock1 [   12.034941]  (driver?)
[   12.037311] 1f02          507904 mtdblock2 [   12.041343]  (driver?)
[   12.043715] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[   12.052015] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.9.0-mvebu-tld-12 #2
[   12.059005] Hardware name: Marvell Armada 380/385 (Device Tree)
[   12.064961] [<c01160bc>] (unwind_backtrace) from [<c0110bb4>] (show_stack+0x10/0x14)
[   12.072741] [<c0110bb4>] (show_stack) from [<c04ba5a4>] (dump_stack+0x70/0x8c)
[   12.079996] [<c04ba5a4>] (dump_stack) from [<c01eccd4>] (panic+0xc0/0x244)
[   12.086903] [<c01eccd4>] (panic) from [<c0c012b4>] (mount_block_root+0x1d8/0x250)
[   12.094418] [<c0c012b4>] (mount_block_root) from [<c0c01420>] (mount_root+0xf4/0x11c)
[   12.102282] [<c0c01420>] (mount_root) from [<c0c0156c>] (prepare_namespace+0x124/0x184)
[   12.110323] [<c0c0156c>] (prepare_namespace) from [<c0c00e74>] (kernel_init_freeable+0x200/0x258)
[   12.119235] [<c0c00e74>] (kernel_init_freeable) from [<c0834b74>] (kernel_init+0x8/0x10c)
[   12.127452] [<c0834b74>] (kernel_init) from [<c010c338>] (ret_from_fork+0x14/0x3c)
[   12.135055] CPU1: stopping
[   12.137776] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 4.9.0-mvebu-tld-12 #2
[   12.144766] Hardware name: Marvell Armada 380/385 (Device Tree)
[   12.150715] [<c01160bc>] (unwind_backtrace) from [<c0110bb4>] (show_stack+0x10/0x14)
[   12.158492] [<c0110bb4>] (show_stack) from [<c04ba5a4>] (dump_stack+0x70/0x8c)
[   12.165748] [<c04ba5a4>] (dump_stack) from [<c0113f90>] (handle_IPI+0x16c/0x350)
[   12.173177] [<c0113f90>] (handle_IPI) from [<c0101520>] (gic_handle_irq+0x78/0x94)
[   12.180780] [<c0101520>] (gic_handle_irq) from [<c011160c>] (__irq_svc+0x6c/0xa8)
[   12.188291] Exception stack(0xee8c5f98 to 0xee8c5fe0)
[   12.193362] 5f80:                                                       00000001 00000000
[   12.201574] 5fa0: 00000000 c011e6c0 00000000 00000000 ee8c4000 c0d0412c 00000002 ee8c5ff0
[   12.209786] 5fc0: c0d04194 00000000 00000001 ee8c5fe8 c010d400 c010d404 60000013 ffffffff
[   12.217999] [<c011160c>] (__irq_svc) from [<c010d404>] (arch_cpu_idle+0x2c/0x38)
[   12.225428] [<c010d404>] (arch_cpu_idle) from [<c015ef04>] (cpu_startup_entry+0xf0/0x1d0)
[   12.233640] [<c015ef04>] (cpu_startup_entry) from [<0010166c>] (0x10166c)
[   12.240462] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
Re: Debian on WD MyCloud EX 4100
May 31, 2017 03:41PM
saschadd,

> USB0: Port (usbActive) : 0 Interface (usbType
> = 3) : USB XHCI 1.00
> scanning bus 0 for devices... 4 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... 4 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

I see. Does this EX4100 have USB 2.0 port? You are using USB 3.0.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on WD MyCloud EX 4100
May 31, 2017 03:47PM
has only 3 usb 3.0 ports :( no usb 2.0 ports there
but i am using an usb 2.0 stick
Re: Debian on WD MyCloud EX 4100
May 31, 2017 03:54PM
Quote
bodhi
I see. Does this EX4100 have USB 2.0 port? You are using USB 3.0.

Neither EX2100 or EX4100 have a USB 2.0 port, all populated USB ports are USB 3.0

Is this simply a problem because the xhci module isn't loaded soon enough in the boot process to find the USB stick? Or is there a more fundamental reason USB 3.0 isn't working?
Re: Debian on WD MyCloud EX 4100
May 31, 2017 04:44PM
hmartin Wrote:
-------------------------------------------------------
>
Quote
bodhi
> I see. Does this EX4100 have USB 2.0 port? You are
> using USB 3.0.
>
>
> Neither EX2100 or EX4100 have a USB 2.0 port, all
> populated USB ports are USB 3.0
>
> Is this simply a problem because the xhci module i
> sn't loaded soon enough in the boot process to fin
> d the USB stick? Or is there a more fundamental re
> ason USB 3.0 isn't working?

XHCI is built into the kernel. So it is not the slowness of module loading. This works fine in the NAS326 box. I'll compare with the NAS326 log to see if anything stands out.

Perhaps trying to use another USB stick?

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on WD MyCloud EX 4100
May 31, 2017 05:03PM
> XHCI is built into the kernel. So it is not the sl
> owness of module loading. This works fine in the N
> AS326 box. I'll compare with the NAS326 log to se
> e if anything stands out.
>

I need to review 4.9 kernel config. Perhaps you guys need to install 4.10.9 kernel.

Update:

Nope. XHCI is the same in 4.9 and 4.10.9.

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



Edited 1 time(s). Last edit at 05/31/2017 05:05PM by bodhi.
Re: Debian on WD MyCloud EX 4100
May 31, 2017 05:14PM
Use a USB 3.0 stick or a different stick might help.

[    2.098806] usb 2-1: New USB device found, idVendor=045b, idProduct=0209
[    2.105544] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.113073] hub 2-1:1.0: USB hub found
[    2.116903] hub 2-1:1.0: 4 ports detected
[    2.238774] usb 3-1: new SuperSpeed USB device number 2 using xhci-hcd
[    2.270181] usb 3-1: New USB device found, idVendor=045b, idProduct=0210
[    2.276912] usb 3-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.284567] hub 3-1:1.0: USB hub found
[    2.288613] hub 3-1:1.0: 4 ports detected

If even that is not working, I need to check the DTS definition for USB.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on WD MyCloud EX 4100
May 31, 2017 05:23PM
OK. I think I know why. Most likely because there is no power regulator for the USB yet.

Update:

Yup. That was it. There is no power to the USB ports right now (I had to implement that for the NAS326 DTS starting from a reference board 38x DTS).

So this current DTS and one from hmartin zip file will not power up the USB ports.

I'll modify the DTS and upload it.

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



Edited 2 time(s). Last edit at 05/31/2017 05:34PM by bodhi.
Re: Debian on WD MyCloud EX 4100
June 01, 2017 01:24AM
Quote
bodhi
So this current DTS and one from hmartin zip file will not power up the USB ports.

I'll modify the DTS and upload it.

I also noticed that the DTS from WD source does not find any mtd device, so it would seem the nand definition is incorrect. Reviewing the boot log from saschadd and my own, no mtdblocks are found on either the EX2100 or EX4100 with the DTB from WD source.

Looking forward to the new DTS drop :D
Re: Debian on WD MyCloud EX 4100
June 01, 2017 04:14AM
All,

Quote

bodhi Wrote:
-------------------------------------------------------
> OK. I think I know why. Most likely because there
> is no power regulator for the USB yet.
>
> Update:
>
> Yup. That was it. There is no power to the USB por
> ts right now (I had to implement that for the NAS3
> 26 DTS starting from a reference board 38x DTS).
>
> So this current DTS and one from hmartin zip file
> will not power up the USB ports.
>
> I'll modify the DTS and upload it.

Just for small chance that my thesis was wrong, please try a USB 3.0 stick to see if the behavior is different or not.

And to add the regulator we need to find the GPIO for USB power in the WD GPL tarball. The keyword to search for is PWREN_USB_REG_OFFSET.

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



Edited 2 time(s). Last edit at 06/01/2017 04:27AM by bodhi.
Author:

Your Email:


Subject:


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