Welcome! Log In Create A New Profile

Advanced

Debian on WD MyCloud EX 4100

Posted by saschadd 
Re: Debian on WD MyCloud EX 4100
June 05, 2017 08:53AM
Ignore this post unless you are using a patched version of kwboot. See below post

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

I don't think there are any delay values for kwboot that work with this product. I automated testing different delay lengths with kwboot.
$ ./kwboot -t -B 115200 /dev/ttyUSB0 -b u-boot-a38x-Yosemite_2014T3_PQ-nand-uart.bin -s $i -q $j

Edit: Since the timings seem to be a bit random (it may also be because my time to power on is not entirely deterministic) it's best to test this yourself to try and find ideal timings for your board.



Edited 2 time(s). Last edit at 06/05/2017 09:59AM by hmartin.
Attachments:
open | download - test.sh (590 bytes)
Re: Debian on WD MyCloud EX 4100
June 05, 2017 09:47AM
Holy shit. It works!

Apply the attached patch to kwboot.c in v2017.05 u-boot source. The patch is originally from https://lists.denx.de/pipermail/u-boot/2015-August/226105.html

But it seems the patch was never applied to kwboot in the u-boot mainline (or at least, I cannot find it in the git log kwboot.c).

The timing isn't perfect, I have to try a few times (edit: maybe 1 in 6 attempts is successful) before I can reproduce it, but I can definitely boot the u-boot I built from WD source (see the boot log below for build date, version, and "I run u-boot from kwboot!").

I tried u-boot-spl.kwb from v2017.05 but no luck.

$ ./kwboot -f -t -B 115200 /dev/ttyUSB0 -b u-boot-a38x-Yosemite_2014T3_PQ-nand-uart.bin -s 0 -q 1
Sending boot message. Please reboot the target...-�$�"Ufw�$�"U����$
Dfw�$�"U�\�$�"U����$�DUf�$�"Uw��"U����$4"U���$�"Uw�$�"U���$�DUf|fD�&T���$�"U�E�$�"Df3DD�DU�E7$�"U����$4"U���$�"U�E�4"U�/7@� ��$DUw�$�"U����$�DUff�$�"D��fD$U��
Sending boot image...
  0 % [......................................................................]
<this goes on for a while>
 99 % [...................................]
[Type Ctrl-\ + c to quit]

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


U-Boot 2013.01_v1.08 (Jun 05 2017 - 14:51:29) hmartin version: 2014_T3.0p6

Board: Yosemite DB6820
SoC:   MV88F6820 Rev A0
       running 2 CPUs
CPU:   ARM Cortex A9 MPCore (Rev 1) LE
       CPU 0
       CPU    @ 1332 [MHz]
       L2     @ 666 [MHz]
       TClock @ 200 [MHz]
       DDR    @ 666 [MHz]
       DDR 32 Bit Width, FastPath Memory Access, DLB Enabled, ECC Disabled
DRAM:  1 GiB

Map:   Code:			0x3fece000:0x3ff95d58
       BSS:			0x3ffef254
       Stack:			0x3f9cdf20
       Heap:			0x3f9ce000:0x3fece000
raise: Signal # 8 caught
raise: Signal # 8 caught
       U-Boot Environment:	0x00000000:0x00080000 (NAND)

NAND:  ID: dcad ,512 MiB
MMC:   mv_sdh: 0
PCI-e 0: Detected No Link.
USB2.0 0: Host Mode
USB3.0 0: Host Mode
USB3.0 1: Host Mode
Board configuration detected:
Creating 1 MTD partitions on "nand0":
0x00001f500000-0x00001ff00000 : "mtd=7"
UBI: attaching mtd1 to ubi0
UBI: physical eraseblock size:   131072 bytes (128 KiB)
UBI: logical eraseblock size:    126976 bytes
UBI: smallest flash I/O unit:    2048
UBI: VID header offset:          2048 (aligned 2048)
UBI: data offset:                4096
UBI: attached mtd1 to ubi0
UBI: MTD device name:            "mtd=7"
UBI: MTD device size:            10 MiB
UBI: number of good PEBs:        80
UBI: number of bad PEBs:         0
UBI: max. allowed volumes:       128
UBI: wear-leveling threshold:    4096
UBI: number of internal volumes: 1
UBI: number of user volumes:     1
UBI: available PEBs:             32
UBI: total number of reserved PEBs: 48
UBI: number of PEBs reserved for bad PEB handling: 2
UBI: max/mean erase counter: 2/0
UBIFS: mounted UBI device 0, volume 0, name "reserve2"
UBIFS: mounted read-only
UBIFS: file system size:   4063232 bytes (3968 KiB, 3 MiB, 32 LEBs)
UBIFS: journal size:       1015809 bytes (992 KiB, 0 MiB, 6 LEBs)
UBIFS: media format:       w4/r0 (latest is w4/r0)
UBIFS: default compressor: LZO
UBIFS: reserved for root:  200807 bytes (196 KiB)
Loading file '/mac_addr' to addr 0x02000000 with size 36 (0x00000024)...
Done
lan mac_addr :  00 90 a9 ff ff ff
Set lan 0 WakeOnLan ok
Set lan 2 WakeOnLan ok
I run u-boot from kwboot!
Enable HD1
Enable HD2
Net:   
|  port  | Interface | PHY address  |
|--------|-----------|--------------|
| egiga0 |   RGMII   |     0x00     |
| egiga1 |   RGMII   |   In-Band    |
| egiga2 |   SGMII   |     0x01     |
egiga0 [PRIME], egiga1, egiga2
Hit any key to stop autoboot:  0 
Marvell>> 1111

bodhi give me a u-boot build to test! :D



Edited 6 time(s). Last edit at 06/05/2017 10:07AM by hmartin.
Attachments:
open | download - kwboot.patch (1.6 KB)
open | download - kwboot-x86_64.gz (7.5 KB)
Re: Debian on WD MyCloud EX 4100
June 05, 2017 12:34PM
hmartin,

> Holy shit. It works!
>
> Apply the attached patch to kwboot.c in v2017.05 u
> -boot source. The patch is originally from https:/
> /lists.denx.de/pipermail/u-boot/2015-August/226105
> .html

>
> But it seems the patch was never applied to kwboot
> in the u-boot mainline (or at least, I cannot find
> it in the git log kwboot.c).

Cool :)

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on WD MyCloud EX 4100
June 05, 2017 12:36PM
bodhi Wrote:
-------------------------------------------------------
> hmartin,
>
> > Holy shit. It works!
> >
> > Apply the attached patch to kwboot.c in v2017.05
> u
> > -boot source. The patch is originally from https
> :/
> > /lists.denx.de/pipermail/u-boot/2015-August/2261
> 05
> > .html
>
> >
> > But it seems the patch was never applied to kwbo
> ot
> > in the u-boot mainline (or at least, I cannot fi
> nd
> > it in the git log kwboot.c).
>
> Cool :)


So this box works the same way the Armada XP does.

$ ./kwboot -f -t -B 115200 /dev/ttyUSB0 -b u-boot-a38x-Yosemite_2014T3_PQ-nand-uart.bin -s 0 -q 1

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on WD MyCloud EX 4100
June 05, 2017 01:21PM
Quote
bodhi
So this box works the same way the Armada XP does.

Maybe, I can't be sure. As I said, it's pretty hit and miss on the timing to kwboot. I think there may be more ideal timings to improve the success. So don't take '-s 0 -q 1' as the correct timings for the 385.

I did previously try 440 timing combinations with kwboot (before discovering and applying the patch) and none of them worked. So the uart fallback patch is a requirement to even think of successfully loading an image through kwboot.

Edit: -a flag (Armada XP) just sets '-s 1 -q 1' it does not modify the behaviour of kwboot to find the NAK. For that, you need the above patch plus the -f flag



Edited 1 time(s). Last edit at 06/05/2017 01:55PM by hmartin.
Re: Debian on WD MyCloud EX 4100
June 05, 2017 06:07PM
Please try:

setenv load_initrd_addr     0x2900000
setenv load_image_addr 0x02000000

And then use the rest of envs as same as before to boot.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on WD MyCloud EX 4100
June 06, 2017 03:37AM
bodhi Wrote:
-------------------------------------------------------
> Please try:
>
>
> setenv load_initrd_addr     0x2900000
> setenv load_image_addr 0x02000000
>
>
> And then use the rest of envs as same as before to
> boot.

Not sure if this was only meant for hmartin but tried that, following the output

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

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

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.9.0-mvebu-tld-12 (root@tldDebianVM) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4) ) #2 SMP PREEMPT Wed Feb 1 02:31:29 PST 2017
[    0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt:Machine model: WD My Cloud EX4100
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 15 pages/cpu @eefcd000 s30796 r8192 d22452 u61440
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 522752
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/sda1 rootdelay=10 mtdparts=armada-nand:5m(u-boot)ro,5m@5m(kernel),5m@10m(uRamdisk),441m@15m(image.cfs),15m@456m(rescue_fw),20m@471m(config),10m@491m(reserve1),10m@501m(reserve2) earlyprintk=serial
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 2066376K/2097152K available (8192K kernel code, 690K rwdata, 2052K rodata, 1024K init, 386K bss, 30776K reserved, 0K cma-reserved, 1310720K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0900000   (9184 kB)
[    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
[    0.000000]       .data : 0xc0d00000 - 0xc0daca28   ( 691 kB)
[    0.000000]        .bss : 0xc0daca28 - 0xc0e0d4f8   ( 387 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 32.
[    0.000000]  RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=2
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] mvebu_mbus: [Firmware Warn]: deprecated mbus-mvebu Device Tree, suspend/resume will not work
[    0.000000] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000] L2C-310 D prefetch enabled, offset 1 lines
[    0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000] L2C-310 Coherent cache controller enabled, 16 ways, 1024 kB
[    0.000000] L2C-310 Coherent: CACHE_ID 0x410054c9, AUX_CTRL 0x56070001
[    0.000000] Switching to timer-based delay loop, resolution 40ns
[    0.000003] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 85899345900ns
[    0.007881] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.019059] Console: colour dummy device 80x30
[    0.023573] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[    0.033977] pid_max: default: 32768 minimum: 301
[    0.038732] Security Framework initialized
[    0.042926] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.049599] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.057102] CPU: Testing write buffer coherency: ok
[    0.062172] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.067909] Setting up static identity map for 0x100000 - 0x100058
[    0.074213] mvebu-soc-id: MVEBU SoC ID=0x6828, Rev=0x4
[    0.079473] mvebu-pmsu: Initializing Power Management Service Unit
[    0.283910] Booting CPU 1
[    0.286756] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.286804] Brought up 2 CPUs
[    0.295562] SMP: Total of 2 processors activated (100.00 BogoMIPS).
[    0.301882] CPU: All CPU(s) started in SVC mode.
[    0.307111] devtmpfs: initialized
[    0.312397] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.320344] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.330270] prandom: seed boundary self test passed
[    0.336894] prandom: 100 self tests passed
[    0.341055] pinctrl core: initialized pinctrl subsystem
[    0.346979] NET: Registered protocol family 16
[    0.352023] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.393866] cpuidle: using governor ladder
[    0.423864] cpuidle: using governor menu
[    0.427929] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.435999] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.441978] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.450133] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.504831] vgaarb: loaded
[    0.507842] SCSI subsystem initialized
[    0.512072] usbcore: registered new interface driver usbfs
[    0.517705] usbcore: registered new interface driver hub
[    0.523129] usbcore: registered new device driver usb
[    0.528449] media: Linux media interface: v0.10
[    0.533085] Linux video capture interface: v2.00
[    0.538590] clocksource: Switched to clocksource armada_370_xp_clocksource
[    0.569997] VFS: Disk quotas dquot_6.6.0
[    0.574026] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.587896] NET: Registered protocol family 2
[    0.592718] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.599867] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.606417] TCP: Hash tables configured (established 8192 bind 8192)
[    0.612888] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.618896] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.625402] NET: Registered protocol family 1
[    0.630087] RPC: Registered named UNIX socket transport module.
[    0.636063] RPC: Registered udp transport module.
[    0.640843] RPC: Registered tcp transport module.
[    0.645608] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.652311] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.658986] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.668025] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.674251] audit: initializing netlink subsys (disabled)
[    0.679738] audit: type=2000 audit(0.670:1): initialized
[    0.685493] Initialise system trusted keyrings
[    0.690145] workingset: timestamp_bits=30 max_order=19 bucket_order=0
[    0.696701] zbud: loaded
[    0.699768] NFS: Registering the id_resolver key type
[    0.704887] Key type id_resolver registered
[    0.709147] Key type id_legacy registered
[    0.713227] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.719988] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.726524] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.733918] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.740538] orangefs_init: module version upstream loaded
[    0.747784] Key type asymmetric registered
[    0.751959] Asymmetric key parser 'x509' registered
[    0.756921] bounce: pool size: 64 pages
[    0.760898] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.768343] io scheduler noop registered
[    0.772344] io scheduler deadline registered
[    0.776689] io scheduler cfq registered (default)
[    0.782254] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    0.790675] mvebu-pcie soc:pcie-controller: PCI host bridge to bus 0000:00
[    0.797605] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    0.803941] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    0.810878] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.816794] PCI: bus0: Fast back to back transfers disabled
[    0.822441] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.830506] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.838672] PCI: bus1: Fast back to back transfers enabled
[    0.844333] PCI: bus2: Fast back to back transfers enabled
[    0.849927] pci 0000:00:01.0: PCI bridge to [bus 01]
[    0.854956] pci 0000:00:02.0: PCI bridge to [bus 02]
[    0.860401] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.918990] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    0.926598] mv_xor f1060900.xor: Marvell shared XOR driver
[    0.988984] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.039634] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.047294] console [ttyS0] disabled
[    1.071036] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 22, base_baud = 12500000) is a 16550A
[    1.080075] console [ttyS0] enabled
[    1.080075] console [ttyS0] enabled
[    1.087164] bootconsole [earlycon0] disabled
[    1.087164] bootconsole [earlycon0] disabled
[    1.096754] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.105860] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.115433] scsi host0: ahci-mvebu
[    1.119152] scsi host1: ahci-mvebu
[    1.122758] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 42
[    1.130725] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 42
[    1.138815] ahci-mvebu f10e0000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.147903] ahci-mvebu f10e0000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.157284] scsi host2: ahci-mvebu
[    1.160929] scsi host3: ahci-mvebu
[    1.164485] ata3: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x100 irq 43
[    1.172451] ata4: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x180 irq 43
[    1.180875] pxa3xx-nand f10d0000.flash: This platform can't do DMA on this device
[    1.188734] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xdc
[    1.195114] nand: Hynix H27U4G8F2DTR-BC
[    1.198978] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.206581] pxa3xx-nand f10d0000.flash: ECC strength 16, ECC step size 2048
[    1.213774] Bad block table found at page 262080, version 0x01
[    1.219965] Bad block table found at page 262016, version 0x01
[    1.225995] nand_read_bbt: bad block at 0x00000dcc0000
[    1.231165] nand_read_bbt: bad block at 0x00000fb00000
[    1.236326] nand_read_bbt: bad block at 0x000012180000
[    1.241492] nand_read_bbt: bad block at 0x0000139a0000
[    1.246653] nand_read_bbt: bad block at 0x000017880000
[    1.251818] nand_read_bbt: bad block at 0x0000178a0000
[    1.256978] nand_read_bbt: bad block at 0x00001a640000
[    1.262146] nand_read_bbt: bad block at 0x00001e9c0000
[    1.267337] 3 ofpart partitions found on MTD device pxa3xx_nand-0
[    1.273464] Creating 3 MTD partitions on "pxa3xx_nand-0":
[    1.278892] 0x000000000000-0x000000800000 : "U-Boot"
[    1.294561] 0x000000800000-0x000001000000 : "Linux"
[    1.310092] 0x000001000000-0x000040000000 : "Filesystem"
[    1.315428] mtd: partition "Filesystem" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x1f000000
[    1.339313] m25p80 spi0.0: unrecognized JEDEC id bytes: ff, ff, ff
[    1.345955] libphy: Fixed MDIO Bus: probed
[    1.350360] libphy: mdio_driver_register: mv88e6085
[    1.355402] libphy: orion_mdio_bus: probed
[    1.360547] mvneta_bm f10c8000.bm: Buffer Manager for network controller enabled
[    1.369577] mvneta f1070000.ethernet eth0: Using random mac address fa:90:2e:4d:d8:cd
[    1.379051] mvneta f1030000.ethernet eth1: Using random mac address c2:62:af:e4:d7:01
[    1.387093] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.393675] ehci-pci: EHCI PCI platform driver
[    1.398179] ehci-orion: EHCI orion driver
[    1.402316] orion-ehci f1058000.usb: EHCI Host Controller
[    1.407750] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    1.415416] orion-ehci f1058000.usb: irq 38, io mem 0xf1058000
[    1.458599] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    1.464655] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.469947] ata1: SATA link down (SStatus 0 SControl 300)
[    1.476918] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.480052] ata2: SATA link down (SStatus 0 SControl 300)
[    1.489604] usb usb1: Product: EHCI Host Controller
[    1.494503] usb usb1: Manufacturer: Linux 4.9.0-mvebu-tld-12 ehci_hcd
[    1.500976] usb usb1: SerialNumber: f1058000.usb
[    1.505923] hub 1-0:1.0: USB hub found
[    1.509716] hub 1-0:1.0: 1 port detected
[    1.509849] ata3: SATA link down (SStatus 0 SControl 300)
[    1.519521] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.519863] ata4: SATA link down (SStatus 0 SControl 300)
[    1.530296] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    1.537878] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.546471] xhci-hcd f10f0000.usb3: irq 46, io mem 0xf10f0000
[    1.552343] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    1.559171] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.566423] usb usb2: Product: xHCI Host Controller
[    1.571328] usb usb2: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.577795] usb usb2: SerialNumber: f10f0000.usb3
[    1.582809] hub 2-0:1.0: USB hub found
[    1.586593] hub 2-0:1.0: 1 port detected
[    1.590706] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.596046] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
[    1.603620] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.611810] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    1.618636] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.625889] usb usb3: Product: xHCI Host Controller
[    1.631299] usb usb3: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.637767] usb usb3: SerialNumber: f10f0000.usb3
[    1.642771] hub 3-0:1.0: USB hub found
[    1.646552] hub 3-0:1.0: 1 port detected
[    1.650724] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.656068] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    1.663660] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.672257] xhci-hcd f10f8000.usb3: irq 47, io mem 0xf10f8000
[    1.678107] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002
[    1.684935] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.692194] usb usb4: Product: xHCI Host Controller
[    1.697091] usb usb4: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.703603] usb usb4: SerialNumber: f10f8000.usb3
[    1.708632] hub 4-0:1.0: USB hub found
[    1.712412] hub 4-0:1.0: 1 port detected
[    1.716511] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.721865] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5
[    1.729426] usb usb5: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.737610] usb usb5: New USB device found, idVendor=1d6b, idProduct=0003
[    1.744438] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.751697] usb usb5: Product: xHCI Host Controller
[    1.756595] usb usb5: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.763115] usb usb5: SerialNumber: f10f8000.usb3
[    1.768112] hub 5-0:1.0: USB hub found
[    1.771901] hub 5-0:1.0: 1 port detected
[    1.776087] usbcore: registered new interface driver usblp
[    1.781677] usbcore: registered new interface driver usb-storage
[    1.787880] mousedev: PS/2 mouse device common for all mice
[    1.793839] armada38x-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[    1.801518] i2c /dev entries driver
[    1.816321] orion_wdt: Initial timeout 171 sec
[    1.821999] marvell-cesa f1090000.crypto: CESA device successfully registered
[    1.829289] hidraw: raw HID events driver (C) Jiri Kosina
[    1.834888] usbcore: registered new interface driver usbhid
[    1.840496] usbhid: USB HID core driver
[    1.844461] drop_monitor: Initializing network drop monitor service
[    1.850798] Netfilter messages via NETLINK v0.30.
[    1.855531] ip_set: protocol 6
[    1.858781] NET: Registered protocol family 10
[    1.863811] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    1.870527] NET: Registered protocol family 17
[    1.875104] 8021q: 802.1Q VLAN Support v1.8
[    1.879504] Key type dns_resolver registered
[    1.883876] ThumbEE CPU extension supported.
[    1.888167] Registering SWP/SWPB emulation handler
[    1.893321] registered taskstats version 1
[    1.897436] Loading compiled-in X.509 certificates
[    1.902290] zswap: loaded using pool lzo/zbud
[    1.945263] Key type big_key registered
[    1.949147] usb 2-1: new high-speed USB device number 2 using xhci-hcd
[    1.956015] Key type encrypted registered
[    1.960984] armada38x-rtc f10a3800.rtc: setting system clock to 2017-06-06 08:34:23 UTC (1496738063)
[    1.970585] Waiting 10 sec before mounting root device...
[    2.118798] usb 2-1: New USB device found, idVendor=045b, idProduct=0209
[    2.125535] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.133063] hub 2-1:1.0: USB hub found
[    2.136895] hub 2-1:1.0: 4 ports detected
[    2.258795] usb 3-1: new SuperSpeed USB device number 2 using xhci-hcd
[    2.290125] usb 3-1: New USB device found, idVendor=045b, idProduct=0210
[    2.296856] usb 3-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.304512] hub 3-1:1.0: USB hub found
[    2.308539] hub 3-1:1.0: 4 ports detected
[   12.008698] VFS: Cannot open root device "sda1" or unknown-block(0,0): error -6
[   12.016039] Please append a correct "root=" boot option; here are the available partitions:
[   12.024507] 1f00            8192 mtdblock0 [   12.028533]  (driver?)
[   12.030914] 1f01            8192 mtdblock1 [   12.034938]  (driver?)
[   12.037308] 1f02          507904 mtdblock2 [   12.041340]  (driver?)
[   12.043711] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[   12.052010] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.9.0-mvebu-tld-12 #2
[   12.059000] Hardware name: Marvell Armada 380/385 (Device Tree)
[   12.064957] [<c01160bc>] (unwind_backtrace) from [<c0110bb4>] (show_stack+0x10/0x14)
[   12.072736] [<c0110bb4>] (show_stack) from [<c04ba5a4>] (dump_stack+0x70/0x8c)
[   12.079992] [<c04ba5a4>] (dump_stack) from [<c01eccd4>] (panic+0xc0/0x244)
[   12.086898] [<c01eccd4>] (panic) from [<c0c012b4>] (mount_block_root+0x1d8/0x250)
[   12.094414] [<c0c012b4>] (mount_block_root) from [<c0c01420>] (mount_root+0xf4/0x11c)
[   12.102279] [<c0c01420>] (mount_root) from [<c0c0156c>] (prepare_namespace+0x124/0x184)
[   12.110320] [<c0c0156c>] (prepare_namespace) from [<c0c00e74>] (kernel_init_freeable+0x200/0x258)
[   12.119231] [<c0c00e74>] (kernel_init_freeable) from [<c0834b74>] (kernel_init+0x8/0x10c)
[   12.127448] [<c0834b74>] (kernel_init) from [<c010c338>] (ret_from_fork+0x14/0x3c)
[   12.135052] CPU1: stopping
[   12.137772] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 4.9.0-mvebu-tld-12 #2
[   12.144761] Hardware name: Marvell Armada 380/385 (Device Tree)
[   12.150710] [<c01160bc>] (unwind_backtrace) from [<c0110bb4>] (show_stack+0x10/0x14)
[   12.158487] [<c0110bb4>] (show_stack) from [<c04ba5a4>] (dump_stack+0x70/0x8c)
[   12.165742] [<c04ba5a4>] (dump_stack) from [<c0113f90>] (handle_IPI+0x16c/0x350)
[   12.173171] [<c0113f90>] (handle_IPI) from [<c0101520>] (gic_handle_irq+0x78/0x94)
[   12.180773] [<c0101520>] (gic_handle_irq) from [<c011160c>] (__irq_svc+0x6c/0xa8)
[   12.188286] Exception stack(0xee8c5f98 to 0xee8c5fe0)
[   12.193357] 5f80:                                                       00000001 00000000
[   12.201570] 5fa0: 00000000 c011e6c0 00000000 00000000 ee8c4000 c0d0412c 00000002 ee8c5ff0
[   12.209781] 5fc0: c0d04194 00000000 00000001 ee8c5fe8 c010d400 c010d404 60000013 ffffffff
[   12.217995] [<c011160c>] (__irq_svc) from [<c010d404>] (arch_cpu_idle+0x2c/0x38)
[   12.225423] [<c010d404>] (arch_cpu_idle) from [<c015ef04>] (cpu_startup_entry+0xf0/0x1d0)
[   12.233636] [<c015ef04>] (cpu_startup_entry) from [<0010166c>] (0x10166c)
[   12.240458] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

-
happy hacking,

saschadd
Re: Debian on WD MyCloud EX 4100
June 06, 2017 09:01AM
saschadd,

Thanks!

I see why your box does not have USB

> stopping USB..
>

At this point USB was stopped

> 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 (r
> oot@tldDebianVM) (gcc version 5.4.0 20160609 (Ubun
> tu/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] rev
> ision 1 (ARMv7), cr=10c5387d
> [ 0.000000] CPU: PIPT / VIPT nonaliasing data c
> ache, VIPT aliasing instruction cache
> [ 0.000000] OF: fdt:Machine model: WD My Cloud
> EX4100

So later on there was no USB disk drive recognized by the kernel.

[ 12.008698] VFS: Cannot open root device "sda1" or unknown-block(0,0): error -6

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on WD MyCloud EX 4100
June 06, 2017 09:07AM
@saschadd,

Try this again (I would like to see you get past the point where the initramfs was unpacked. And then if there was anything that stopped the USB in the envs). The Ex4100 u-boot might have stopped the USB, unlike the Ex2100 u-boot that appaently let USB be active the whole time.


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

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


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

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

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



Edited 2 time(s). Last edit at 06/06/2017 03:20PM by bodhi.
Re: Debian on WD MyCloud EX 4100
June 06, 2017 12:20PM
Quote
bodhi
And then use the rest of envs as same as before to boot.

I am unable to successfully boot with your DTB as the EX2100 only has one SATA controller and the kernel hangs (gets stuck indefinitely?) on initializing the second SATA controller which doesn't exist on this model.

Edit: Nevermind, I built the EX2U DTB (which works, albeit with only one Gigabit eth on the EX2100) from peacemaker myself. It boots to login prompt:

Marvell>> setenv bootdev usb
Marvell>> setenv device '0:1'
Marvell>> setenv dtb_file '/boot/dts/armada-385-wd.dtb'
Marvell>> setenv load_dtb_addr 0x1000000
Marvell>> setenv load_initrd_addr 0x2900000
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... 2 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
Booting from USB ...
(Re)start USB...
USB0:   Port (usbActive) : 0	Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
loading Image ...
3904400 bytes read in 362 ms (10.3 MiB/s)
loading DTB /boot/dts/armada-385-wd.dtb ...
16084 bytes read in 610 ms (25.4 KiB/s)
## Flattened Device Tree blob at 01000000
   Booting using the fdt blob at 0x01000000
   Loading Device Tree to 00ff9000, end 00fffed3 ... 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: Western Digital MyCloud EX2 Ultra
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 15 pages/cpu @ef7cc000 s30796 r8192 d22452 u61440
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260608
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/sda1 rootdelay=10 mtdparts=armada-nand:5m(u-boot)ro,5m@5m(kernel),5m@10m(uRamdisk),441m@15m(image.cfs),15m@456m(rescue_fw),20m@471m(config),10m@491m(reserve1),10m@501m(reserve2) earlyprintk=serial
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 1025988K/1048576K available (8192K kernel code, 690K rwdata, 2052K rodata, 1024K init, 386K bss, 22588K 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.038804] Security Framework initialized
[    0.043005] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.049680] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.057260] CPU: Testing write buffer coherency: ok
[    0.062353] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.068095] Setting up static identity map for 0x100000 - 0x100058
[    0.074526] mvebu-soc-id: MVEBU SoC ID=0x6820, Rev=0x4
[    0.079810] mvebu-pmsu: Initializing Power Management Service Unit
[    0.283605] Booting CPU 1
[    0.286476] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.286532] Brought up 2 CPUs
[    0.295293] SMP: Total of 2 processors activated (100.00 BogoMIPS).
[    0.301614] CPU: All CPU(s) started in SVC mode.
[    0.306879] devtmpfs: initialized
[    0.312699] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.320681] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.330620] prandom: seed boundary self test passed
[    0.337583] prandom: 100 self tests passed
[    0.341744] pinctrl core: initialized pinctrl subsystem
[    0.347779] NET: Registered protocol family 16
[    0.352923] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.383453] cpuidle: using governor ladder
[    0.413421] cpuidle: using governor menu
[    0.417502] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.425575] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.483826] vgaarb: loaded
[    0.486866] SCSI subsystem initialized
[    0.491166] usbcore: registered new interface driver usbfs
[    0.496821] usbcore: registered new interface driver hub
[    0.502256] usbcore: registered new device driver usb
[    0.507609] media: Linux media interface: v0.10
[    0.512253] Linux video capture interface: v2.00
[    0.517903] clocksource: Switched to clocksource armada_370_xp_clocksource
[    0.554146] VFS: Disk quotas dquot_6.6.0
[    0.558217] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.573523] NET: Registered protocol family 2
[    0.578394] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.585534] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.592129] TCP: Hash tables configured (established 8192 bind 8192)
[    0.598592] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.604587] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.611137] NET: Registered protocol family 1
[    0.615828] RPC: Registered named UNIX socket transport module.
[    0.621822] RPC: Registered udp transport module.
[    0.626588] RPC: Registered tcp transport module.
[    0.631377] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.638103] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.644782] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.654005] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.660227] audit: initializing netlink subsys (disabled)
[    0.665705] audit: type=2000 audit(0.650:1): initialized
[    0.671547] Initialise system trusted keyrings
[    0.676207] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[    0.682791] zbud: loaded
[    0.685940] NFS: Registering the id_resolver key type
[    0.691091] Key type id_resolver registered
[    0.695338] Key type id_legacy registered
[    0.699433] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.706186] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.712764] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.720206] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.726832] orangefs_init: module version upstream loaded
[    0.734434] Key type asymmetric registered
[    0.738610] Asymmetric key parser 'x509' registered
[    0.743579] bounce: pool size: 64 pages
[    0.747565] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.755037] io scheduler noop registered
[    0.759034] io scheduler deadline registered
[    0.763382] io scheduler cfq registered (default)
[    0.769092] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    0.777758] mvebu-pcie soc:pcie-controller: PCI host bridge to bus 0000:00
[    0.784722] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    0.791055] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    0.798004] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.803997] PCI: bus0: Fast back to back transfers disabled
[    0.809649] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.817708] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.825904] PCI: bus1: Fast back to back transfers enabled
[    0.831598] PCI: bus2: Fast back to back transfers enabled
[    0.837188] pci 0000:00:01.0: PCI bridge to [bus 01]
[    0.842244] pci 0000:00:02.0: PCI bridge to [bus 02]
[    0.847765] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.908370] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    0.915985] mv_xor f1060900.xor: Marvell shared XOR driver
[    0.978379] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.037643] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.045566] console [ttyS0] disabled
[    1.069324] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 23, base_baud = 12500000) is a 16550A
[    1.078357] console [ttyS0] enabled
[    1.078357] console [ttyS0] enabled
[    1.085445] bootconsole [earlycon0] disabled
[    1.085445] bootconsole [earlycon0] disabled
[    1.114793] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 24, base_baud = 12500000) is a 16550A
[    1.124828] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.133953] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs 
[    1.143643] scsi host0: ahci-mvebu
[    1.147390] scsi host1: ahci-mvebu
[    1.151065] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 42
[    1.159031] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 42
[    1.167525] pxa3xx-nand f10d0000.flash: This platform can't do DMA on this device
[    1.175453] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xdc
[    1.181847] nand: Hynix H27U4G8F2DTR-BC
[    1.185700] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.193328] pxa3xx-nand f10d0000.flash: ECC strength 16, ECC step size 2048
[    1.200538] Bad block table found at page 262080, version 0x01
[    1.206734] Bad block table found at page 262016, version 0x01
[    1.212792] nand_read_bbt: bad block at 0x000001760000
[    1.217973] nand_read_bbt: bad block at 0x00000dec0000
[    1.223142] nand_read_bbt: bad block at 0x000017de0000
[    1.228386] 8 ofpart partitions found on MTD device pxa3xx_nand-0
[    1.234507] Creating 8 MTD partitions on "pxa3xx_nand-0":
[    1.239943] 0x000000000000-0x000000500000 : "U-Boot"
[    1.255762] 0x000000500000-0x000000a00000 : "uImage"
[    1.271499] 0x000000a00000-0x000000f00000 : "uRamdisk"
[    1.287375] 0x000000f00000-0x00000c800000 : "image.cfs"
[    1.304159] 0x00000c800000-0x00000d700000 : "rescue fw"
[    1.320191] 0x00000d700000-0x00000eb00000 : "config"
[    1.325955] 0x00000eb00000-0x00000f500000 : "reserve1"
[    1.341905] 0x00000f500000-0x00000ff00000 : "reserve2"
[    1.358454] m25p80 spi0.0: unrecognized JEDEC id bytes: ff, ff, ff
[    1.365257] libphy: Fixed MDIO Bus: probed
[    1.369727] libphy: mdio_driver_register: mv88e6085
[    1.374806] libphy: orion_mdio_bus: probed
[    1.381151] mvneta f1034000.ethernet eth0: Using random mac address 3e:dd:6d:ff:ff:ff
[    1.389230] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.395798] ehci-pci: EHCI PCI platform driver
[    1.400336] ehci-orion: EHCI orion driver
[    1.404667] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.410041] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 1
[    1.417635] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.426256] xhci-hcd f10f0000.usb3: irq 45, io mem 0xf10f0000
[    1.432142] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.438985] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.446239] usb usb1: Product: xHCI Host Controller
[    1.451150] usb usb1: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.457618] usb usb1: SerialNumber: f10f0000.usb3
[    1.462747] hub 1-0:1.0: USB hub found
[    1.466537] hub 1-0:1.0: 1 port detected
[    1.470696] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.476039] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    1.483646] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.491852] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003
[    1.498692] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.499196] ata1: SATA link down (SStatus 0 SControl 300)
[    1.509151] ata2: SATA link down (SStatus 0 SControl 300)
[    1.516806] usb usb2: Product: xHCI Host Controller
[    1.521723] usb usb2: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.528200] usb usb2: SerialNumber: f10f0000.usb3
[    1.533277] hub 2-0:1.0: USB hub found
[    1.537062] hub 2-0:1.0: 1 port detected
[    1.541301] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.546649] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 3
[    1.554249] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.562865] xhci-hcd f10f8000.usb3: irq 46, io mem 0xf10f8000
[    1.568751] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002
[    1.575571] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.582889] usb usb3: Product: xHCI Host Controller
[    1.587788] usb usb3: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.594266] usb usb3: SerialNumber: f10f8000.usb3
[    1.599360] hub 3-0:1.0: USB hub found
[    1.603144] hub 3-0:1.0: 1 port detected
[    1.607267] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.612624] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    1.620208] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.628413] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003
[    1.635233] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.642507] usb usb4: Product: xHCI Host Controller
[    1.647405] usb usb4: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.653953] usb usb4: SerialNumber: f10f8000.usb3
[    1.659040] hub 4-0:1.0: USB hub found
[    1.662822] hub 4-0:1.0: 1 port detected
[    1.667052] usbcore: registered new interface driver usblp
[    1.672653] usbcore: registered new interface driver usb-storage
[    1.678918] mousedev: PS/2 mouse device common for all mice
[    1.685006] armada38x-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[    1.692998] i2c /dev entries driver
[    1.708628] orion_wdt: Initial timeout 171 sec
[    1.714999] marvell-cesa f1090000.crypto: CESA device successfully registered
[    1.722382] hidraw: raw HID events driver (C) Jiri Kosina
[    1.728155] usbcore: registered new interface driver usbhid
[    1.733753] usbhid: USB HID core driver
[    1.737762] drop_monitor: Initializing network drop monitor service
[    1.744108] Netfilter messages via NETLINK v0.30.
[    1.748879] ip_set: protocol 6
[    1.752146] NET: Registered protocol family 10
[    1.757191] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    1.764235] NET: Registered protocol family 17
[    1.768974] 8021q: 802.1Q VLAN Support v1.8
[    1.773202] Key type dns_resolver registered
[    1.777588] ThumbEE CPU extension supported.
[    1.781895] Registering SWP/SWPB emulation handler
[    1.787204] registered taskstats version 1
[    1.791349] Loading compiled-in X.509 certificates
[    1.796196] zswap: loaded using pool lzo/zbud
[    1.842852] usb 1-1: new high-speed USB device number 2 using xhci-hcd
[    1.849699] Key type big_key registered
[    1.853834] Key type encrypted registered
[    1.869055] armada38x-rtc f10a3800.rtc: setting system clock to 2017-06-06 17:30:32 UTC (1496770232)
[    1.878758] Waiting 10 sec before mounting root device...
[    2.021113] usb 1-1: New USB device found, idVendor=18a5, idProduct=0224
[    2.027848] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.035030] usb 1-1: Product: MICRO PLUS
[    2.038979] usb 1-1: Manufacturer: Verbatim
[    2.043180] usb 1-1: SerialNumber: FFFFFFFFFFFFFFFFF
[    2.048601] usb-storage 1-1:1.0: USB Mass Storage device detected
[    2.054854] scsi host2: usb-storage 1-1:1.0
[    3.130052] scsi 2:0:0:0: Direct-Access     Verbatim MICRO PLUS       PMAP PQ: 0 ANSI: 4
[    3.139362] sd 2:0:0:0: [sda] 15124992 512-byte logical blocks: (7.74 GB/7.21 GiB)
[    3.147119] sd 2:0:0:0: [sda] Write Protect is off
[    3.152119] sd 2:0:0:0: [sda] No Caching mode page found
[    3.157457] sd 2:0:0:0: [sda] Assuming drive cache: write through
[    3.166107]  sda: sda1
[    3.169853] sd 2:0:0:0: [sda] Attached SCSI removable disk
[   12.009004] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   12.025950] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[   12.033680] VFS: Mounted root (ext3 filesystem) readonly on device 8:1.
[   12.042500] devtmpfs: mounted
[   12.046220] Freeing unused kernel memory: 1024K (c0c00000 - c0d00000)
[   12.116488] random: fast init done
Mount failed for selinuxfs on /sys/fs/selinux:  No such file or directory
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[....] Starting the hotplug events dispatcher: udevd[   12.880426] systemd-udevd[1449]: starting version 215
. ok 
[ ok ] Synthesizing the initial hotplug events...done.
[....] Waiting for /dev to be fully populated...[   13.240292] usbcore: registered new interface driver uas
[   13.283148] sd 2:0:0:0: Attached scsi generic sg0 type 0
done.
[ ok ] Activating swap...done.
[   14.520063] EXT4-fs (sda1): re-mounted. Opts: (null)
[ ok ] Activating lvm and md swap...done.
[....] Checking file systems...fsck from util-linux 2.25.2
done.
[ ok ] Cleaning up temporary files... /tmp.
[ ok ] Mounting local filesystems...done.
[ ok ] Activating swapfile swap...done.
[ ok ] Cleaning up temporary files....
[ ok ] Setting kernel variables ...done.
[   15.819159] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.3.1
Copyright 2004-2014 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

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

Debian GNU/Linux 8 debian ttyS0

debian login: [   29.516525] random: crng init done



Edited 3 time(s). Last edit at 06/06/2017 12:35PM by hmartin.
Attachments:
open | download - armada-385-wd.dtb (15.7 KB)
Re: Debian on WD MyCloud EX 4100
June 06, 2017 12:22PM
bodhi Wrote:
-------------------------------------------------------
> @saschadd,
>
> Try this again (I would like to see you get past t
> he point where the initramfs was unpacked. And the
> n if there was anything that stopped the USB in th
> e envs). The Ex4100 u-boot might have stopped the
> USB, unlike the Ex2100 u-boot that appaently let U
> SB be active the whole time.
>
>
> 1. Mount the USB rootfs on another Linux box or in
> stock OS. Assuming it is mounted at /media/sdb1.
>
>
> cd /media/sdb1/boot
> cp -a zImage-4.9.0-mvebu-tld-12  zImage.fdt
> cat dts/armada-385-wd-ex4100.dtb  >> zImage.fdt
> mkimage -A arm -O linux -T kernel -C none -a 0x000
> 08000 -e 0x00008000 -n Linux-4.9.0-mvebu-tld-12 -d
> zImage.fdt  uImage
> sync
> umount /media/sdb1
>
>
>
> 2. Plug in the USB rootfs to the rear USB port, po
> wer up, interrupt serial console and
>
>
> setenv bootdev usb
> setenv device '0:1'
> setenv load_initrd_addr 0x2900000
> setenv load_image_addr 0x02000000
> setenv load_initrd 'echo loading uInitrd ...; ext2
> load $bootdev $device $load_initrd_addr /boot/uIni
> trd'
> setenv load_image 'echo loading Image ...; ext2loa
> d $bootdev $device $load_image_addr /boot/uImage'
> setenv usb_set_bootargs 'setenv bootargs "console=
> ttyS0,115200 root=/dev/sda1 rootdelay=10 $mtdparts
> earlyprintk=serial"'
> setenv usb_bootcmd 'echo Booting from USB ...; set
> env fdt_skip_update yes; usb start; run load_image
> ; run usb_set_bootargs; bootm $load_image_addr $lo
> ad_initrd_addr'
> setenv bootcmd_usb 'usb start; run usb_set_bootarg
> s; run usb_bootcmd; reset'
> printenv
> run bootcmd_usb
>

bodhi,

my last try was with that first modification or do i have to do it again after trying to boot?

the two envs were the ones i replaced.

EDIT: Wait, i have to try the rear usb port.
here the output from rear usb port

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

Environment size: 3817/524284 bytes
Marvell>> run bootcmd_usb
(Re)start USB...
USB0:   Port (usbActive) : 0    Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 4 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
Booting from USB ...
(Re)start USB...
USB0:   Port (usbActive) : 0    Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 4 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
loading Image ...
3919325 bytes read in 324 ms (11.5 MiB/s)
## Booting image at 02000000 ...
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-4.9.0-mvebu-tld-12
   Created:      2017-06-04   8:57:41 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3919261 Bytes = 3.7 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK
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: 2066384K/2097152K available (8192K kernel code, 690K rwdata, 2052K rodata, 1024K init, 386K bss, 30768K 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.019058] Console: colour dummy device 80x30
[    0.023572] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[    0.033976] pid_max: default: 32768 minimum: 301
[    0.038729] Security Framework initialized
[    0.042924] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.049597] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.057099] CPU: Testing write buffer coherency: ok
[    0.062168] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.067905] Setting up static identity map for 0x100000 - 0x100058
[    0.074208] mvebu-soc-id: MVEBU SoC ID=0x6828, Rev=0x4
[    0.079468] mvebu-pmsu: Initializing Power Management Service Unit
[    0.283913] Booting CPU 1
[    0.286759] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.286807] Brought up 2 CPUs
[    0.295566] SMP: Total of 2 processors activated (100.00 BogoMIPS).
[    0.301886] CPU: All CPU(s) started in SVC mode.
[    0.307116] devtmpfs: initialized
[    0.312419] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.320362] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.330287] prandom: seed boundary self test passed
[    0.336912] prandom: 100 self tests passed
[    0.341072] 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.427931] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.436000] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.441980] 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.504830] vgaarb: loaded
[    0.507841] SCSI subsystem initialized
[    0.512074] usbcore: registered new interface driver usbfs
[    0.517707] usbcore: registered new interface driver hub
[    0.523132] usbcore: registered new device driver usb
[    0.528452] media: Linux media interface: v0.10
[    0.533089] Linux video capture interface: v2.00
[    0.538591] clocksource: Switched to clocksource armada_370_xp_clocksource
[    0.570135] VFS: Disk quotas dquot_6.6.0
[    0.574162] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.587999] NET: Registered protocol family 2
[    0.592818] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.599966] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.606517] TCP: Hash tables configured (established 8192 bind 8192)
[    0.612986] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.618994] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.625502] NET: Registered protocol family 1
[    0.630188] RPC: Registered named UNIX socket transport module.
[    0.636164] RPC: Registered udp transport module.
[    0.640945] RPC: Registered tcp transport module.
[    0.645709] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.652412] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.659091] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.668132] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.674360] audit: initializing netlink subsys (disabled)
[    0.679845] audit: type=2000 audit(0.670:1): initialized
[    0.685595] Initialise system trusted keyrings
[    0.690251] workingset: timestamp_bits=30 max_order=19 bucket_order=0
[    0.696807] zbud: loaded
[    0.699876] NFS: Registering the id_resolver key type
[    0.704995] Key type id_resolver registered
[    0.709255] Key type id_legacy registered
[    0.713335] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.720096] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.726633] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.734030] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.740645] orangefs_init: module version upstream loaded
[    0.747873] Key type asymmetric registered
[    0.752047] Asymmetric key parser 'x509' registered
[    0.757010] bounce: pool size: 64 pages
[    0.760986] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.768431] io scheduler noop registered
[    0.772431] io scheduler deadline registered
[    0.776777] io scheduler cfq registered (default)
[    0.782335] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    0.790750] mvebu-pcie soc:pcie-controller: PCI host bridge to bus 0000:00
[    0.797682] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    0.804018] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    0.810954] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.816869] PCI: bus0: Fast back to back transfers disabled
[    0.822516] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.830581] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.838746] PCI: bus1: Fast back to back transfers enabled
[    0.844404] PCI: bus2: Fast back to back transfers enabled
[    0.849998] pci 0000:00:01.0: PCI bridge to [bus 01]
[    0.855027] pci 0000:00:02.0: PCI bridge to [bus 02]
[    0.860463] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.918992] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    0.926603] mv_xor f1060900.xor: Marvell shared XOR driver
[    0.988987] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.039693] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.047329] console [ttyS0] disabled
[    1.071056] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 22, base_baud = 12500000) is a 16550A
[    1.080096] console [ttyS0] enabled
[    1.080096] console [ttyS0] enabled
[    1.087184] bootconsole [earlycon0] disabled
[    1.087184] bootconsole [earlycon0] disabled
[    1.096758] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.105868] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.115434] scsi host0: ahci-mvebu
[    1.119161] scsi host1: ahci-mvebu
[    1.122769] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 42
[    1.130735] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 42
[    1.138830] ahci-mvebu f10e0000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.147918] ahci-mvebu f10e0000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.157301] scsi host2: ahci-mvebu
[    1.170957] scsi host3: ahci-mvebu
[    1.174524] ata3: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x100 irq 43
[    1.182487] ata4: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x180 irq 43
[    1.190919] pxa3xx-nand f10d0000.flash: This platform can't do DMA on this device
[    1.198813] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xdc
[    1.205217] nand: Hynix H27U4G8F2DTR-BC
[    1.209091] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.216696] pxa3xx-nand f10d0000.flash: ECC strength 16, ECC step size 2048
[    1.223887] Bad block table found at page 262080, version 0x01
[    1.230076] Bad block table found at page 262016, version 0x01
[    1.236104] nand_read_bbt: bad block at 0x00000dcc0000
[    1.241275] nand_read_bbt: bad block at 0x00000fb00000
[    1.246435] nand_read_bbt: bad block at 0x000012180000
[    1.251602] nand_read_bbt: bad block at 0x0000139a0000
[    1.256763] nand_read_bbt: bad block at 0x000017880000
[    1.261927] nand_read_bbt: bad block at 0x0000178a0000
[    1.267088] nand_read_bbt: bad block at 0x00001a640000
[    1.272254] nand_read_bbt: bad block at 0x00001e9c0000
[    1.277445] 3 ofpart partitions found on MTD device pxa3xx_nand-0
[    1.283571] Creating 3 MTD partitions on "pxa3xx_nand-0":
[    1.289001] 0x000000000000-0x000000800000 : "U-Boot"
[    1.294656] 0x000000800000-0x000001000000 : "Linux"
[    1.310190] 0x000001000000-0x000040000000 : "Filesystem"
[    1.315527] mtd: partition "Filesystem" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x1f000000
[    1.339389] m25p80 spi0.0: unrecognized JEDEC id bytes: ff, ff, ff
[    1.346038] libphy: Fixed MDIO Bus: probed
[    1.350448] libphy: mdio_driver_register: mv88e6085
[    1.355490] libphy: orion_mdio_bus: probed
[    1.360631] mvneta_bm f10c8000.bm: Buffer Manager for network controller enabled
[    1.369667] mvneta f1070000.ethernet eth0: Using random mac address 1a:c1:55:9f:ee:46
[    1.379080] mvneta f1030000.ethernet eth1: Using random mac address 1e:cf:36:20:5e:dc
[    1.387123] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.393704] ehci-pci: EHCI PCI platform driver
[    1.398206] ehci-orion: EHCI orion driver
[    1.402337] orion-ehci f1058000.usb: EHCI Host Controller
[    1.407771] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    1.415436] orion-ehci f1058000.usb: irq 38, io mem 0xf1058000
[    1.458599] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    1.464668] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.469952] ata1: SATA link down (SStatus 0 SControl 300)
[    1.476947] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.480091] ata2: SATA link down (SStatus 0 SControl 300)
[    1.489649] usb usb1: Product: EHCI Host Controller
[    1.494546] usb usb1: Manufacturer: Linux 4.9.0-mvebu-tld-12 ehci_hcd
[    1.501029] usb usb1: SerialNumber: f1058000.usb
[    1.505979] hub 1-0:1.0: USB hub found
[    1.509777] hub 1-0:1.0: 1 port detected
[    1.514152] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.519510] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    1.519874] ata3: SATA link down (SStatus 0 SControl 300)
[    1.532516] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.540099] ata4: SATA link down (SStatus 0 SControl 300)
[    1.546527] xhci-hcd f10f0000.usb3: irq 46, io mem 0xf10f0000
[    1.552400] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    1.559228] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.566480] usb usb2: Product: xHCI Host Controller
[    1.571385] usb usb2: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.577852] usb usb2: SerialNumber: f10f0000.usb3
[    1.582871] hub 2-0:1.0: USB hub found
[    1.586656] hub 2-0:1.0: 1 port detected
[    1.590770] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.596110] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
[    1.603686] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.611875] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    1.619321] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.626575] usb usb3: Product: xHCI Host Controller
[    1.631480] usb usb3: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.637948] usb usb3: SerialNumber: f10f0000.usb3
[    1.642951] hub 3-0:1.0: USB hub found
[    1.646731] hub 3-0:1.0: 1 port detected
[    1.650906] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.656250] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    1.663848] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.672439] xhci-hcd f10f8000.usb3: irq 47, io mem 0xf10f8000
[    1.678286] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002
[    1.685113] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.692372] usb usb4: Product: xHCI Host Controller
[    1.697270] usb usb4: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.703783] usb usb4: SerialNumber: f10f8000.usb3
[    1.708808] hub 4-0:1.0: USB hub found
[    1.712588] hub 4-0:1.0: 1 port detected
[    1.716687] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.722041] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5
[    1.729601] usb usb5: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.737783] usb usb5: New USB device found, idVendor=1d6b, idProduct=0003
[    1.744610] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.751869] usb usb5: Product: xHCI Host Controller
[    1.756766] usb usb5: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.763285] usb usb5: SerialNumber: f10f8000.usb3
[    1.768279] hub 5-0:1.0: USB hub found
[    1.772068] hub 5-0:1.0: 1 port detected
[    1.776251] usbcore: registered new interface driver usblp
[    1.781842] usbcore: registered new interface driver usb-storage
[    1.788043] mousedev: PS/2 mouse device common for all mice
[    1.794006] armada38x-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[    1.801686] i2c /dev entries driver
[    1.816488] orion_wdt: Initial timeout 171 sec
[    1.822158] marvell-cesa f1090000.crypto: CESA device successfully registered
[    1.829450] hidraw: raw HID events driver (C) Jiri Kosina
[    1.835045] usbcore: registered new interface driver usbhid
[    1.840655] usbhid: USB HID core driver
[    1.844621] drop_monitor: Initializing network drop monitor service
[    1.850958] Netfilter messages via NETLINK v0.30.
[    1.855691] ip_set: protocol 6
[    1.858937] NET: Registered protocol family 10
[    1.863972] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    1.870698] NET: Registered protocol family 17
[    1.875272] 8021q: 802.1Q VLAN Support v1.8
[    1.879672] Key type dns_resolver registered
[    1.884043] ThumbEE CPU extension supported.
[    1.888333] Registering SWP/SWPB emulation handler
[    1.893485] registered taskstats version 1
[    1.897600] Loading compiled-in X.509 certificates
[    1.902455] zswap: loaded using pool lzo/zbud
[    1.941133] Key type big_key registered
[    1.945203] Key type encrypted registered
[    1.949259] usb 2-1: new high-speed USB device number 2 using xhci-hcd
[    1.956804] armada38x-rtc f10a3800.rtc: setting system clock to 2017-06-06 17:27:13 UTC (1496770033)
[    1.966391] Waiting 10 sec before mounting root device...
[    2.118800] usb 2-1: New USB device found, idVendor=045b, idProduct=0209
[    2.125539] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.133073] hub 2-1:1.0: USB hub found
[    2.136903] hub 2-1:1.0: 4 ports detected
[    2.258819] usb 3-1: new SuperSpeed USB device number 2 using xhci-hcd
[    2.290146] usb 3-1: New USB device found, idVendor=045b, idProduct=0210
[    2.296877] usb 3-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.304537] hub 3-1:1.0: USB hub found
[    2.308563] hub 3-1:1.0: 4 ports detected
[   12.008699] VFS: Cannot open root device "sda1" or unknown-block(0,0): error -6
[   12.016040] Please append a correct "root=" boot option; here are the available partitions:
[   12.024515] 1f00            8192 mtdblock0 [   12.028540]  (driver?)
[   12.030923] 1f01            8192 mtdblock1 [   12.034946]  (driver?)
[   12.037316] 1f02          507904 mtdblock2 [   12.041348]  (driver?)
[   12.043718] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[   12.052018] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.9.0-mvebu-tld-12 #2
[   12.059008] Hardware name: Marvell Armada 380/385 (Device Tree)
[   12.064965] [<c01160bc>] (unwind_backtrace) from [<c0110bb4>] (show_stack+0x10/0x14)
[   12.072745] [<c0110bb4>] (show_stack) from [<c04ba5a4>] (dump_stack+0x70/0x8c)
[   12.080000] [<c04ba5a4>] (dump_stack) from [<c01eccd4>] (panic+0xc0/0x244)
[   12.086908] [<c01eccd4>] (panic) from [<c0c012b4>] (mount_block_root+0x1d8/0x250)
[   12.094425] [<c0c012b4>] (mount_block_root) from [<c0c01420>] (mount_root+0xf4/0x11c)
[   12.102290] [<c0c01420>] (mount_root) from [<c0c0156c>] (prepare_namespace+0x124/0x184)
[   12.110330] [<c0c0156c>] (prepare_namespace) from [<c0c00e74>] (kernel_init_freeable+0x200/0x258)
[   12.119242] [<c0c00e74>] (kernel_init_freeable) from [<c0834b74>] (kernel_init+0x8/0x10c)
[   12.127460] [<c0834b74>] (kernel_init) from [<c010c338>] (ret_from_fork+0x14/0x3c)
[   12.135064] CPU1: stopping
[   12.137785] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 4.9.0-mvebu-tld-12 #2
[   12.144774] Hardware name: Marvell Armada 380/385 (Device Tree)
[   12.150724] [<c01160bc>] (unwind_backtrace) from [<c0110bb4>] (show_stack+0x10/0x14)
[   12.158501] [<c0110bb4>] (show_stack) from [<c04ba5a4>] (dump_stack+0x70/0x8c)
[   12.165756] [<c04ba5a4>] (dump_stack) from [<c0113f90>] (handle_IPI+0x16c/0x350)
[   12.173185] [<c0113f90>] (handle_IPI) from [<c0101520>] (gic_handle_irq+0x78/0x94)
[   12.180788] [<c0101520>] (gic_handle_irq) from [<c011160c>] (__irq_svc+0x6c/0xa8)
[   12.188300] Exception stack(0xee8c5f98 to 0xee8c5fe0)
[   12.193371] 5f80:                                                       00000001 00000000
[   12.201583] 5fa0: 00000000 c011e6c0 00000000 00000000 ee8c4000 c0d0412c 00000002 ee8c5ff0
[   12.209796] 5fc0: c0d04194 00000000 00000001 ee8c5fe8 c010d400 c010d404 60000013 ffffffff
[   12.218009] [<c011160c>] (__irq_svc) from [<c010d404>] (arch_cpu_idle+0x2c/0x38)
[   12.225437] [<c010d404>] (arch_cpu_idle) from [<c015ef04>] (cpu_startup_entry+0xf0/0x1d0)
[   12.233650] [<c015ef04>] (cpu_startup_entry) from [<0010166c>] (0x10166c)
[   12.240471] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

One thing i noticed when the box booted to stock rom.
The stock rom wants to have a sata drive inserted before you can do anything with the box.
Well, this is an information the webgui gives when you try to open the webgui.
This might be useless info for our problem but maybe a sata drive is needed somehow?!

-
happy hacking,

saschadd



Edited 2 time(s). Last edit at 06/06/2017 12:36PM by saschadd.
Re: Debian on WD MyCloud EX 4100
June 06, 2017 01:09PM
Quote
saschadd
One thing i noticed when the box booted to stock rom.
The stock rom wants to have a sata drive inserted before you can do anything with the box.
Well, this is an information the webgui gives when you try to open the webgui.
This might be useless info for our problem but maybe a sata drive is needed somehow?!

My EX2100 does exactly the same thing. I've never had a WD NAS before, but I'll hazard a guess this is so they can install parts of the firmware to the hard drive so they don't risk ruining flash or running out of space (as it's quite limited).

Lack of a SATA hard disk is not preventing Debian from booting. Bodhi will likely have some ideas on how to fix the DTB to provide USB power.



Edited 1 time(s). Last edit at 06/06/2017 01:10PM by hmartin.
Re: Debian on WD MyCloud EX 4100
June 06, 2017 02:50PM
@saschadd,

My bad. Please try again (bold line is the modified env):

http://forum.doozan.com/read.php?2,34103,34599#msg-34599

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on WD MyCloud EX 4100
June 06, 2017 02:55PM
bodhi,

here the try with the last recommended envs on rear port

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

Environment size: 3839/524284 bytes
Marvell>> run bootcmd_usb
(Re)start USB...
USB0:   Port (usbActive) : 0    Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 4 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
Booting from USB ...
(Re)start USB...
USB0:   Port (usbActive) : 0    Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 4 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
loading Image ...
3919325 bytes read in 323 ms (11.6 MiB/s)
## Error: "load_initrd_addr" not defined
## Booting image at 02000000 ...
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-4.9.0-mvebu-tld-12
   Created:      2017-06-04   8:57:41 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3919261 Bytes = 3.7 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK
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: 2066384K/2097152K available (8192K kernel code, 690K rwdata, 2052K rodata, 1024K init, 386K bss, 30768K 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.019060] Console: colour dummy device 80x30
[    0.023574] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[    0.033978] pid_max: default: 32768 minimum: 301
[    0.038733] Security Framework initialized
[    0.042927] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.049600] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.057106] CPU: Testing write buffer coherency: ok
[    0.062175] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.067913] Setting up static identity map for 0x100000 - 0x100058
[    0.074216] mvebu-soc-id: MVEBU SoC ID=0x6828, Rev=0x4
[    0.079475] mvebu-pmsu: Initializing Power Management Service Unit
[    0.283912] Booting CPU 1
[    0.286759] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.286808] Brought up 2 CPUs
[    0.295567] SMP: Total of 2 processors activated (100.00 BogoMIPS).
[    0.301887] CPU: All CPU(s) started in SVC mode.
[    0.307121] devtmpfs: initialized
[    0.312424] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.320367] 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.346998] NET: Registered protocol family 16
[    0.352044] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.393869] cpuidle: using governor ladder
[    0.423868] 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.441981] 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.514830] vgaarb: loaded
[    0.517819] SCSI subsystem initialized
[    0.522043] usbcore: registered new interface driver usbfs
[    0.527661] usbcore: registered new interface driver hub
[    0.533085] usbcore: registered new device driver usb
[    0.538404] media: Linux media interface: v0.10
[    0.543040] Linux video capture interface: v2.00
[    0.548530] clocksource: Switched to clocksource armada_370_xp_clocksource
[    0.579970] VFS: Disk quotas dquot_6.6.0
[    0.583997] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.598000] NET: Registered protocol family 2
[    0.602800] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.609945] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.616496] TCP: Hash tables configured (established 8192 bind 8192)
[    0.622952] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.628956] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.635465] NET: Registered protocol family 1
[    0.640136] RPC: Registered named UNIX socket transport module.
[    0.646111] RPC: Registered udp transport module.
[    0.650886] RPC: Registered tcp transport module.
[    0.655651] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.662341] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.669015] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.678050] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.684264] audit: initializing netlink subsys (disabled)
[    0.689748] audit: type=2000 audit(0.680:1): initialized
[    0.695497] Initialise system trusted keyrings
[    0.700144] workingset: timestamp_bits=30 max_order=19 bucket_order=0
[    0.706698] zbud: loaded
[    0.709762] NFS: Registering the id_resolver key type
[    0.714880] Key type id_resolver registered
[    0.719141] Key type id_legacy registered
[    0.723221] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.729980] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.736515] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.743905] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.750521] orangefs_init: module version upstream loaded
[    0.757749] Key type asymmetric registered
[    0.761924] Asymmetric key parser 'x509' registered
[    0.766886] bounce: pool size: 64 pages
[    0.770862] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.778307] io scheduler noop registered
[    0.782304] io scheduler deadline registered
[    0.786649] io scheduler cfq registered (default)
[    0.792210] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    0.800627] mvebu-pcie soc:pcie-controller: PCI host bridge to bus 0000:00
[    0.807558] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    0.813894] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    0.820830] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.826743] PCI: bus0: Fast back to back transfers disabled
[    0.832391] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.840457] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.848623] PCI: bus1: Fast back to back transfers enabled
[    0.854282] PCI: bus2: Fast back to back transfers enabled
[    0.859876] pci 0000:00:01.0: PCI bridge to [bus 01]
[    0.864904] pci 0000:00:02.0: PCI bridge to [bus 02]
[    0.870350] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.928929] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    0.936538] mv_xor f1060900.xor: Marvell shared XOR driver
[    0.998921] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.048739] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.056384] console [ttyS0] disabled
[    1.080114] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 22, base_baud = 12500000) is a 16550A
[    1.089146] console [ttyS0] enabled
[    1.089146] console [ttyS0] enabled
[    1.096233] bootconsole [earlycon0] disabled
[    1.096233] bootconsole [earlycon0] disabled
[    1.105843] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.114951] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.124501] scsi host0: ahci-mvebu
[    1.128181] scsi host1: ahci-mvebu
[    1.131807] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 42
[    1.139772] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 42
[    1.147855] ahci-mvebu f10e0000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.156954] ahci-mvebu f10e0000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.166331] scsi host2: ahci-mvebu
[    1.169975] scsi host3: ahci-mvebu
[    1.173528] ata3: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x100 irq 43
[    1.181493] ata4: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x180 irq 43
[    1.189922] pxa3xx-nand f10d0000.flash: This platform can't do DMA on this device
[    1.197782] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xdc
[    1.204174] nand: Hynix H27U4G8F2DTR-BC
[    1.208026] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.215641] pxa3xx-nand f10d0000.flash: ECC strength 16, ECC step size 2048
[    1.222833] Bad block table found at page 262080, version 0x01
[    1.229025] Bad block table found at page 262016, version 0x01
[    1.235055] nand_read_bbt: bad block at 0x00000dcc0000
[    1.240223] nand_read_bbt: bad block at 0x00000fb00000
[    1.245384] nand_read_bbt: bad block at 0x000012180000
[    1.250552] nand_read_bbt: bad block at 0x0000139a0000
[    1.255713] nand_read_bbt: bad block at 0x000017880000
[    1.260880] nand_read_bbt: bad block at 0x0000178a0000
[    1.266040] nand_read_bbt: bad block at 0x00001a640000
[    1.271208] nand_read_bbt: bad block at 0x00001e9c0000
[    1.276400] 3 ofpart partitions found on MTD device pxa3xx_nand-0
[    1.282526] Creating 3 MTD partitions on "pxa3xx_nand-0":
[    1.287948] 0x000000000000-0x000000800000 : "U-Boot"
[    1.303628] 0x000000800000-0x000001000000 : "Linux"
[    1.319159] 0x000001000000-0x000040000000 : "Filesystem"
[    1.324495] mtd: partition "Filesystem" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x1f000000
[    1.348424] m25p80 spi0.0: unrecognized JEDEC id bytes: ff, ff, ff
[    1.355084] libphy: Fixed MDIO Bus: probed
[    1.359489] libphy: mdio_driver_register: mv88e6085
[    1.364529] libphy: orion_mdio_bus: probed
[    1.369669] mvneta_bm f10c8000.bm: Buffer Manager for network controller enabled
[    1.378714] mvneta f1070000.ethernet eth0: Using random mac address fa:2f:c7:23:d9:84
[    1.388185] mvneta f1030000.ethernet eth1: Using random mac address 7e:9e:c4:ea:2b:db
[    1.396250] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.402827] ehci-pci: EHCI PCI platform driver
[    1.407327] ehci-orion: EHCI orion driver
[    1.411460] orion-ehci f1058000.usb: EHCI Host Controller
[    1.416894] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    1.424558] orion-ehci f1058000.usb: irq 38, io mem 0xf1058000
[    1.458539] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    1.464598] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.471428] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.478689] usb usb1: Product: EHCI Host Controller
[    1.479797] ata1: SATA link down (SStatus 0 SControl 300)
[    1.489027] usb usb1: Manufacturer: Linux 4.9.0-mvebu-tld-12 ehci_hcd
[    1.489810] ata2: SATA link down (SStatus 0 SControl 300)
[    1.500920] usb usb1: SerialNumber: f1058000.usb
[    1.505865] hub 1-0:1.0: USB hub found
[    1.509659] hub 1-0:1.0: 1 port detected
[    1.514031] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.519390] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    1.519784] ata3: SATA link down (SStatus 0 SControl 300)
[    1.529801] ata4: SATA link down (SStatus 0 SControl 300)
[    1.537815] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.546407] xhci-hcd f10f0000.usb3: irq 46, io mem 0xf10f0000
[    1.552279] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    1.559107] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.566360] usb usb2: Product: xHCI Host Controller
[    1.571264] usb usb2: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.577731] usb usb2: SerialNumber: f10f0000.usb3
[    1.582746] hub 2-0:1.0: USB hub found
[    1.586531] hub 2-0:1.0: 1 port detected
[    1.590645] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.595984] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
[    1.603561] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.611750] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    1.619444] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.626697] usb usb3: Product: xHCI Host Controller
[    1.631603] usb usb3: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.638070] usb usb3: SerialNumber: f10f0000.usb3
[    1.643075] hub 3-0:1.0: USB hub found
[    1.646855] hub 3-0:1.0: 1 port detected
[    1.651028] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.656371] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    1.663960] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.672556] xhci-hcd f10f8000.usb3: irq 47, io mem 0xf10f8000
[    1.678406] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002
[    1.685234] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.692494] usb usb4: Product: xHCI Host Controller
[    1.697391] usb usb4: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.703903] usb usb4: SerialNumber: f10f8000.usb3
[    1.708930] hub 4-0:1.0: USB hub found
[    1.712710] hub 4-0:1.0: 1 port detected
[    1.716809] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.722163] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5
[    1.729723] usb usb5: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.737905] usb usb5: New USB device found, idVendor=1d6b, idProduct=0003
[    1.744733] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.751993] usb usb5: Product: xHCI Host Controller
[    1.756891] usb usb5: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.763409] usb usb5: SerialNumber: f10f8000.usb3
[    1.768402] hub 5-0:1.0: USB hub found
[    1.772193] hub 5-0:1.0: 1 port detected
[    1.776376] usbcore: registered new interface driver usblp
[    1.781966] usbcore: registered new interface driver usb-storage
[    1.788172] mousedev: PS/2 mouse device common for all mice
[    1.794131] armada38x-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[    1.801810] i2c /dev entries driver
[    1.816620] orion_wdt: Initial timeout 171 sec
[    1.822279] marvell-cesa f1090000.crypto: CESA device successfully registered
[    1.829567] hidraw: raw HID events driver (C) Jiri Kosina
[    1.835161] usbcore: registered new interface driver usbhid
[    1.840769] usbhid: USB HID core driver
[    1.844734] drop_monitor: Initializing network drop monitor service
[    1.851071] Netfilter messages via NETLINK v0.30.
[    1.855805] ip_set: protocol 6
[    1.859051] NET: Registered protocol family 10
[    1.864081] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    1.870797] NET: Registered protocol family 17
[    1.875377] 8021q: 802.1Q VLAN Support v1.8
[    1.879779] Key type dns_resolver registered
[    1.884152] ThumbEE CPU extension supported.
[    1.888442] Registering SWP/SWPB emulation handler
[    1.893604] registered taskstats version 1
[    1.897720] Loading compiled-in X.509 certificates
[    1.902574] zswap: loaded using pool lzo/zbud
[    1.943183] Key type big_key registered
[    1.947254] Key type encrypted registered
[    1.951310] usb 2-1: new high-speed USB device number 2 using xhci-hcd
[    1.958885] armada38x-rtc f10a3800.rtc: setting system clock to 2017-06-06 19:52:16 UTC (1496778736)
[    1.968440] Waiting 10 sec before mounting root device...
[    2.118738] usb 2-1: New USB device found, idVendor=045b, idProduct=0209
[    2.125476] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.133007] hub 2-1:1.0: USB hub found
[    2.136838] hub 2-1:1.0: 4 ports detected
[    2.258715] usb 3-1: new SuperSpeed USB device number 2 using xhci-hcd
[    2.290125] usb 3-1: New USB device found, idVendor=045b, idProduct=0210
[    2.296856] usb 3-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.304511] hub 3-1:1.0: USB hub found
[    2.308557] hub 3-1:1.0: 4 ports detected
[   12.008641] VFS: Cannot open root device "sda1" or unknown-block(0,0): error -6
[   12.015982] Please append a correct "root=" boot option; here are the available partitions:
[   12.024450] 1f00            8192 mtdblock0 [   12.028475]  (driver?)
[   12.030858] 1f01            8192 mtdblock1 [   12.034882]  (driver?)
[   12.037252] 1f02          507904 mtdblock2 [   12.041284]  (driver?)
[   12.043655] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[   12.051956] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.9.0-mvebu-tld-12 #2
[   12.058945] Hardware name: Marvell Armada 380/385 (Device Tree)
[   12.064902] [<c01160bc>] (unwind_backtrace) from [<c0110bb4>] (show_stack+0x10/0x14)
[   12.072681] [<c0110bb4>] (show_stack) from [<c04ba5a4>] (dump_stack+0x70/0x8c)
[   12.079936] [<c04ba5a4>] (dump_stack) from [<c01eccd4>] (panic+0xc0/0x244)
[   12.086844] [<c01eccd4>] (panic) from [<c0c012b4>] (mount_block_root+0x1d8/0x250)
[   12.094360] [<c0c012b4>] (mount_block_root) from [<c0c01420>] (mount_root+0xf4/0x11c)
[   12.102224] [<c0c01420>] (mount_root) from [<c0c0156c>] (prepare_namespace+0x124/0x184)
[   12.110265] [<c0c0156c>] (prepare_namespace) from [<c0c00e74>] (kernel_init_freeable+0x200/0x258)
[   12.119178] [<c0c00e74>] (kernel_init_freeable) from [<c0834b74>] (kernel_init+0x8/0x10c)
[   12.127394] [<c0834b74>] (kernel_init) from [<c010c338>] (ret_from_fork+0x14/0x3c)
[   12.134999] CPU1: stopping
[   12.137718] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 4.9.0-mvebu-tld-12 #2
[   12.144708] Hardware name: Marvell Armada 380/385 (Device Tree)
[   12.150657] [<c01160bc>] (unwind_backtrace) from [<c0110bb4>] (show_stack+0x10/0x14)
[   12.158435] [<c0110bb4>] (show_stack) from [<c04ba5a4>] (dump_stack+0x70/0x8c)
[   12.165690] [<c04ba5a4>] (dump_stack) from [<c0113f90>] (handle_IPI+0x16c/0x350)
[   12.173120] [<c0113f90>] (handle_IPI) from [<c0101520>] (gic_handle_irq+0x78/0x94)
[   12.180722] [<c0101520>] (gic_handle_irq) from [<c011160c>] (__irq_svc+0x6c/0xa8)
[   12.188235] Exception stack(0xee8c5f98 to 0xee8c5fe0)
[   12.193307] 5f80:                                                       00000001 00000000
[   12.201519] 5fa0: 00000000 c011e6c0 00000000 00000000 ee8c4000 c0d0412c 00000002 ee8c5ff0
[   12.209731] 5fc0: c0d04194 00000000 00000001 ee8c5fe8 c010d400 c010d404 60000013 ffffffff
[   12.217945] [<c011160c>] (__irq_svc) from [<c010d404>] (arch_cpu_idle+0x2c/0x38)
[   12.225374] [<c010d404>] (arch_cpu_idle) from [<c015ef04>] (cpu_startup_entry+0xf0/0x1d0)
[   12.233587] [<c015ef04>] (cpu_startup_entry) from [<0010166c>] (0x10166c)
[   12.240408] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
Re: Debian on WD MyCloud EX 4100
June 06, 2017 03:23PM
@saschadd,


>
> My bad. Please try again (bold line is the modifie
> d env):
>
> http://forum.doozan.com/read.php?2,34103,34599#msg
> -34599

Double bad :) my fat fingers, I had a typo above on the same bold line. Fixed it. Please try another run.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on WD MyCloud EX 4100
June 07, 2017 12:45AM
okay, next run

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

Environment size: 3840/524284 bytes
Marvell>> run bootcmd_usb
(Re)start USB...
USB0:   Port (usbActive) : 0    Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 4 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
Booting from USB ...
(Re)start USB...
USB0:   Port (usbActive) : 0    Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 4 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
loading Image ...
3919325 bytes read in 324 ms (11.5 MiB/s)
loading uInitrd ...
6210503 bytes read in 347 ms (17.1 MiB/s)
## Booting image at 02000000 ...
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-4.9.0-mvebu-tld-12
   Created:      2017-06-04   8:57:41 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3919261 Bytes = 3.7 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 02900000 ...
   Image Name:   initramfs-4.9.0-mvebu-tld-12
   Created:      2017-02-03  23:57:32 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    6210439 Bytes = 5.9 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK
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: 2060316K/2097152K available (8192K kernel code, 690K rwdata, 2052K rodata, 1024K init, 386K bss, 36836K reserved, 0K cma-reserved, 1310720K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0900000   (9184 kB)
[    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
[    0.000000]       .data : 0xc0d00000 - 0xc0daca28   ( 691 kB)
[    0.000000]        .bss : 0xc0daca28 - 0xc0e0d4f8   ( 387 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 32.
[    0.000000]  RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=2
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] mvebu_mbus: [Firmware Warn]: deprecated mbus-mvebu Device Tree, suspend/resume will not work
[    0.000000] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000] L2C-310 D prefetch enabled, offset 1 lines
[    0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000] L2C-310 Coherent cache controller enabled, 16 ways, 1024 kB
[    0.000000] L2C-310 Coherent: CACHE_ID 0x410054c9, AUX_CTRL 0x56070001
[    0.000000] Switching to timer-based delay loop, resolution 40ns
[    0.000003] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 85899345900ns
[    0.007881] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.019057] Console: colour dummy device 80x30
[    0.023570] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[    0.033974] pid_max: default: 32768 minimum: 301
[    0.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.057096] CPU: Testing write buffer coherency: ok
[    0.062168] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.067905] Setting up static identity map for 0x100000 - 0x100058
[    0.074209] mvebu-soc-id: MVEBU SoC ID=0x6828, Rev=0x4
[    0.079468] mvebu-pmsu: Initializing Power Management Service Unit
[    0.283913] Booting CPU 1
[    0.286759] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.286807] Brought up 2 CPUs
[    0.295564] SMP: Total of 2 processors activated (100.00 BogoMIPS).
[    0.301884] CPU: All CPU(s) started in SVC mode.
[    0.307115] devtmpfs: initialized
[    0.312397] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.320338] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.330264] prandom: seed boundary self test passed
[    0.336889] prandom: 100 self tests passed
[    0.341049] pinctrl core: initialized pinctrl subsystem
[    0.346976] NET: Registered protocol family 16
[    0.352015] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.393870] cpuidle: using governor ladder
[    0.423867] 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.450136] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.504844] vgaarb: loaded
[    0.507854] SCSI subsystem initialized
[    0.512082] usbcore: registered new interface driver usbfs
[    0.517716] usbcore: registered new interface driver hub
[    0.523141] usbcore: registered new device driver usb
[    0.528464] media: Linux media interface: v0.10
[    0.533110] Linux video capture interface: v2.00
[    0.538610] clocksource: Switched to clocksource armada_370_xp_clocksource
[    0.570039] VFS: Disk quotas dquot_6.6.0
[    0.574066] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.587953] NET: Registered protocol family 2
[    0.592776] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.599924] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.606475] TCP: Hash tables configured (established 8192 bind 8192)
[    0.612948] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.618956] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.625466] NET: Registered protocol family 1
[    0.630149] RPC: Registered named UNIX socket transport module.
[    0.636125] RPC: Registered udp transport module.
[    0.640901] RPC: Registered tcp transport module.
[    0.645666] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.652291] Unpacking initramfs...
[    0.859334] Freeing initrd memory: 6068K (c2900000 - c2eed000)
[    0.865309] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.872076] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.881233] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.887437] audit: initializing netlink subsys (disabled)
[    0.892951] audit: type=2000 audit(0.880:1): initialized
[    0.898750] Initialise system trusted keyrings
[    0.903384] workingset: timestamp_bits=30 max_order=19 bucket_order=0
[    0.909967] zbud: loaded
[    0.913030] NFS: Registering the id_resolver key type
[    0.918158] Key type id_resolver registered
[    0.922419] Key type id_legacy registered
[    0.926499] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.933273] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.939818] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.947198] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.953824] orangefs_init: module version upstream loaded
[    0.961017] Key type asymmetric registered
[    0.965179] Asymmetric key parser 'x509' registered
[    0.970167] bounce: pool size: 64 pages
[    0.974140] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.981599] io scheduler noop registered
[    0.985587] io scheduler deadline registered
[    0.989951] io scheduler cfq registered (default)
[    0.995519] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    1.003940] mvebu-pcie soc:pcie-controller: PCI host bridge to bus 0000:00
[    1.010903] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    1.017225] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    1.024163] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.030096] PCI: bus0: Fast back to back transfers disabled
[    1.035731] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.043802] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.051979] PCI: bus1: Fast back to back transfers enabled
[    1.057637] PCI: bus2: Fast back to back transfers enabled
[    1.063231] pci 0000:00:01.0: PCI bridge to [bus 01]
[    1.068260] pci 0000:00:02.0: PCI bridge to [bus 02]
[    1.073723] mv_xor f1060800.xor: Marvell shared XOR driver
[    1.139011] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.146618] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.209016] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.259475] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.267123] console [ttyS0] disabled
[    1.290883] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 22, base_baud = 12500000) is a 16550A
[    1.299921] console [ttyS0] enabled
[    1.299921] console [ttyS0] enabled
[    1.307008] bootconsole [earlycon0] disabled
[    1.307008] bootconsole [earlycon0] disabled
[    1.316601] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.325706] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.335265] scsi host0: ahci-mvebu
[    1.338979] scsi host1: ahci-mvebu
[    1.342582] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 42
[    1.350559] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 42
[    1.358651] ahci-mvebu f10e0000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.367739] ahci-mvebu f10e0000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.377129] scsi host2: ahci-mvebu
[    1.390784] scsi host3: ahci-mvebu
[    1.394351] ata3: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x100 irq 43
[    1.402314] ata4: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x180 irq 43
[    1.410755] pxa3xx-nand f10d0000.flash: This platform can't do DMA on this device
[    1.418589] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xdc
[    1.425033] nand: Hynix H27U4G8F2DTR-BC
[    1.428911] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.436514] pxa3xx-nand f10d0000.flash: ECC strength 16, ECC step size 2048
[    1.443706] Bad block table found at page 262080, version 0x01
[    1.449905] Bad block table found at page 262016, version 0x01
[    1.455932] nand_read_bbt: bad block at 0x00000dcc0000
[    1.461102] nand_read_bbt: bad block at 0x00000fb00000
[    1.466262] nand_read_bbt: bad block at 0x000012180000
[    1.471438] nand_read_bbt: bad block at 0x0000139a0000
[    1.476598] nand_read_bbt: bad block at 0x000017880000
[    1.481763] nand_read_bbt: bad block at 0x0000178a0000
[    1.486923] nand_read_bbt: bad block at 0x00001a640000
[    1.492098] nand_read_bbt: bad block at 0x00001e9c0000
[    1.497291] 3 ofpart partitions found on MTD device pxa3xx_nand-0
[    1.503417] Creating 3 MTD partitions on "pxa3xx_nand-0":
[    1.508856] 0x000000000000-0x000000800000 : "U-Boot"
[    1.524516] 0x000000800000-0x000001000000 : "Linux"
[    1.540066] 0x000001000000-0x000040000000 : "Filesystem"
[    1.545403] mtd: partition "Filesystem" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x1f000000
[    1.569274] m25p80 spi0.0: unrecognized JEDEC id bytes: ff, ff, ff
[    1.575928] libphy: Fixed MDIO Bus: probed
[    1.580350] libphy: mdio_driver_register: mv88e6085
[    1.585391] libphy: orion_mdio_bus: probed
[    1.595087] mvneta_bm f10c8000.bm: Buffer Manager for network controller enabled
[    1.604133] mvneta f1070000.ethernet eth0: Using random mac address 36:b7:ba:43:97:03
[    1.613539] mvneta f1030000.ethernet eth1: Using random mac address c6:38:fa:3b:6e:95
[    1.621602] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.628168] ehci-pci: EHCI PCI platform driver
[    1.632693] ehci-orion: EHCI orion driver
[    1.636815] orion-ehci f1058000.usb: EHCI Host Controller
[    1.642263] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    1.649947] orion-ehci f1058000.usb: irq 38, io mem 0xf1058000
[    1.678618] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    1.684678] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.689924] ata1: SATA link down (SStatus 0 SControl 300)
[    1.696964] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.699961] ata2: SATA link down (SStatus 0 SControl 300)
[    1.709669] usb usb1: Product: EHCI Host Controller
[    1.714567] usb usb1: Manufacturer: Linux 4.9.0-mvebu-tld-12 ehci_hcd
[    1.721049] usb usb1: SerialNumber: f1058000.usb
[    1.726001] hub 1-0:1.0: USB hub found
[    1.729803] hub 1-0:1.0: 1 port detected
[    1.734181] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.739540] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    1.739894] ata3: SATA link down (SStatus 0 SControl 300)
[    1.752548] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.761140] xhci-hcd f10f0000.usb3: irq 46, io mem 0xf10f0000
[    1.765173] ata4: SATA link down (SStatus 0 SControl 300)
[    1.772418] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    1.779261] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.786514] usb usb2: Product: xHCI Host Controller
[    1.791422] usb usb2: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.797890] usb usb2: SerialNumber: f10f0000.usb3
[    1.802908] hub 2-0:1.0: USB hub found
[    1.806692] hub 2-0:1.0: 1 port detected
[    1.810804] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.816145] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
[    1.823720] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.831910] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    1.838833] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.846086] usb usb3: Product: xHCI Host Controller
[    1.850994] usb usb3: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.857461] usb usb3: SerialNumber: f10f0000.usb3
[    1.862462] hub 3-0:1.0: USB hub found
[    1.866242] hub 3-0:1.0: 1 port detected
[    1.870419] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.875764] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    1.883357] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.891948] xhci-hcd f10f8000.usb3: irq 47, io mem 0xf10f8000
[    1.897795] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002
[    1.904622] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.911883] usb usb4: Product: xHCI Host Controller
[    1.916780] usb usb4: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.923291] usb usb4: SerialNumber: f10f8000.usb3
[    1.928313] hub 4-0:1.0: USB hub found
[    1.932105] hub 4-0:1.0: 1 port detected
[    1.936202] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.941553] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5
[    1.949116] usb usb5: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.957298] usb usb5: New USB device found, idVendor=1d6b, idProduct=0003
[    1.964124] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.971385] usb usb5: Product: xHCI Host Controller
[    1.976282] usb usb5: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.982802] usb usb5: SerialNumber: f10f8000.usb3
[    1.987797] hub 5-0:1.0: USB hub found
[    1.991588] hub 5-0:1.0: 1 port detected
[    1.995775] usbcore: registered new interface driver usblp
[    2.001366] usbcore: registered new interface driver usb-storage
[    2.007569] mousedev: PS/2 mouse device common for all mice
[    2.013536] armada38x-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[    2.021215] i2c /dev entries driver
[    2.036018] orion_wdt: Initial timeout 171 sec
[    2.041688] marvell-cesa f1090000.crypto: CESA device successfully registered
[    2.048978] hidraw: raw HID events driver (C) Jiri Kosina
[    2.054574] usbcore: registered new interface driver usbhid
[    2.060184] usbhid: USB HID core driver
[    2.064151] drop_monitor: Initializing network drop monitor service
[    2.070487] Netfilter messages via NETLINK v0.30.
[    2.075218] ip_set: protocol 6
[    2.078456] NET: Registered protocol family 10
[    2.083483] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    2.090279] NET: Registered protocol family 17
[    2.094856] 8021q: 802.1Q VLAN Support v1.8
[    2.099215] Key type dns_resolver registered
[    2.103585] ThumbEE CPU extension supported.
[    2.107876] Registering SWP/SWPB emulation handler
[    2.113030] registered taskstats version 1
[    2.117145] Loading compiled-in X.509 certificates
[    2.121997] zswap: loaded using pool lzo/zbud
[    2.167810] Key type big_key registered
[    2.171697] usb 2-1: new high-speed USB device number 2 using xhci-hcd
[    2.181739] Key type encrypted registered
[    2.186691] armada38x-rtc f10a3800.rtc: setting system clock to 2017-06-07 05:42:06 UTC (1496814126)
[    2.196874] Freeing unused kernel memory: 1024K (c0c00000 - c0d00000)
Loading, please wait...
[    2.235075] systemd-udevd[1323]: starting version 215
[    2.241101] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    2.338857] usb 2-1: New USB device found, idVendor=045b, idProduct=0209
[    2.345601] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.358403] hub 2-1:1.0: USB hub found
[    2.364007] hub 2-1:1.0: 4 ports detected
[    2.478826] usb 3-1: new SuperSpeed USB device number 2 using xhci-hcd
[    2.510293] usb 3-1: New USB device found, idVendor=045b, idProduct=0210
[    2.517027] usb 3-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.524772] hub 3-1:1.0: USB hub found
[    2.528787] hub 3-1:1.0: 4 ports detected
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Begin: Waiting for root file system ... Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
done.
Gave up waiting for root device.  Common problems:
 - Boot args (cat /proc/cmdline)
   - Check rootdelay= (did the system wait long enough?)
   - Check root= (did the [   42.642914] uhci_hcd: USB Universal Host Controller Interface driver
system wait for the right device?)
 - Missing m[   42.654074] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
odules (cat /proc/modules; ls /dev)
ALERT!  /dev/sda1 does not exist.  Dropping to a shell!
modprobe: module i8042 not found in modules.dep


BusyBox v1.22.1 (Debian 1:1.22.0-9+deb8u1) built-in shell (ash)
Enter 'help' for a list of built-in commands.

/bin/sh: can't access tty; job control turned off
(initramfs)
Re: Debian on WD MyCloud EX 4100
June 07, 2017 03:53AM
Excellent! This meant the load addresses were correct. The initrd problem we have seen previously have been solved.

[    0.652291] Unpacking initramfs...
[    0.859334] Freeing initrd memory: 6068K (c2900000 - c2eed000)

[    0.981599] io scheduler noop registered
[    0.985587] io scheduler deadline registered
[    0.989951] io scheduler cfq registered (default)
[    0.995519] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    1.003940] mvebu-pcie soc:pcie-controller: PCI host bridge to bus 0000:00

So now next problem is the USB power

[    2.338857] usb 2-1: New USB device found, idVendor=045b, idProduct=0209
[    2.345601] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.358403] hub 2-1:1.0: USB hub found
[    2.364007] hub 2-1:1.0: 4 ports detected
[    2.478826] usb 3-1: new SuperSpeed USB device number 2 using xhci-hcd
[    2.510293] usb 3-1: New USB device found, idVendor=045b, idProduct=0210
[    2.517027] usb 3-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.524772] hub 3-1:1.0: USB hub found
[    2.528787] hub 3-1:1.0: 4 ports detected

...

BusyBox v1.22.1 (Debian 1:1.22.0-9+deb8u1) built-in shell (ash)
Enter 'help' for a list of built-in commands.

/bin/sh: can't access tty; job control turned off
(initramfs)

Note that the USB storage device was not detected, so the kernel timed out and drop you to BusyBox in initramfs. In hmarin run, the USB storage device was elaborated OK.

So back to the activity shown in the log, this u-boot seems to stop the USB power, and let the stock kernel bring it back up. This behavior is similar to the NAS326.
OK
stopping USB..

Starting kernel ...

Next thing to look for is the GPIO number for USB Power in the GPL. I have the DTS coded, but need to fill in this number.

SATA subject:

The same for SATA. You could try to plug in SATA drive and see if it is detected. Looks like all SATA controllers are activated just like USB controllers were. But the power issue might be the same (i.e. need GPIO).

However, this looks great. It looks like SATA has power. Please try to plug in an HDD (any HDD, no need to put any data on it).
[    1.479797] ata1: SATA link down (SStatus 0 SControl 300)
[    1.489810] ata2: SATA link down (SStatus 0 SControl 300)

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



Edited 1 time(s). Last edit at 06/07/2017 04:02AM by bodhi.
Re: Debian on WD MyCloud EX 4100
June 07, 2017 04:17AM
bodhi,

does'nt the message

modprobe: module i8042 not found in modules.dep

point to what is missing to get usb working again?

tried with one of the sata disks inserted

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

Environment size: 3840/524284 bytes
Marvell>> run bootcmd_usb
(Re)start USB...
USB0:   Port (usbActive) : 0    Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 4 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
Booting from USB ...
(Re)start USB...
USB0:   Port (usbActive) : 0    Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 4 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
loading Image ...
3919325 bytes read in 323 ms (11.6 MiB/s)
loading uInitrd ...
6210503 bytes read in 347 ms (17.1 MiB/s)
## Booting image at 02000000 ...
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-4.9.0-mvebu-tld-12
   Created:      2017-06-04   8:57:41 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3919261 Bytes = 3.7 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 02900000 ...
   Image Name:   initramfs-4.9.0-mvebu-tld-12
   Created:      2017-02-03  23:57:32 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    6210439 Bytes = 5.9 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK
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: 2060316K/2097152K available (8192K kernel code, 690K rwdata, 2052K rodata, 1024K init, 386K bss, 36836K 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.019060] 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.038730] Security Framework initialized
[    0.042924] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.049597] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.057099] CPU: Testing write buffer coherency: ok
[    0.062170] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.067907] 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.283914] Booting CPU 1
[    0.286760] 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.307117] devtmpfs: initialized
[    0.312398] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.320341] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.330266] prandom: seed boundary self test passed
[    0.336891] prandom: 100 self tests passed
[    0.341051] pinctrl core: initialized pinctrl subsystem
[    0.346973] NET: Registered protocol family 16
[    0.352018] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.393869] cpuidle: using governor ladder
[    0.423867] cpuidle: using governor menu
[    0.427934] 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.450137] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.504831] vgaarb: loaded
[    0.507841] SCSI subsystem initialized
[    0.512067] usbcore: registered new interface driver usbfs
[    0.517699] usbcore: registered new interface driver hub
[    0.523123] usbcore: registered new device driver usb
[    0.528445] media: Linux media interface: v0.10
[    0.533090] Linux video capture interface: v2.00
[    0.538586] clocksource: Switched to clocksource armada_370_xp_clocksource
[    0.570060] VFS: Disk quotas dquot_6.6.0
[    0.574087] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.587923] NET: Registered protocol family 2
[    0.592745] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.599885] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.606435] TCP: Hash tables configured (established 8192 bind 8192)
[    0.612904] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.618911] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.625419] NET: Registered protocol family 1
[    0.630103] RPC: Registered named UNIX socket transport module.
[    0.636079] RPC: Registered udp transport module.
[    0.640859] RPC: Registered tcp transport module.
[    0.645624] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.652248] Unpacking initramfs...
[    0.860307] Freeing initrd memory: 6068K (c2900000 - c2eed000)
[    0.866283] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.873031] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.882196] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.888400] audit: initializing netlink subsys (disabled)
[    0.893913] audit: type=2000 audit(0.880:1): initialized
[    0.899703] Initialise system trusted keyrings
[    0.904336] workingset: timestamp_bits=30 max_order=19 bucket_order=0
[    0.910912] zbud: loaded
[    0.913976] NFS: Registering the id_resolver key type
[    0.919112] Key type id_resolver registered
[    0.923358] Key type id_legacy registered
[    0.927437] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.934200] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.940745] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.948130] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.954745] orangefs_init: module version upstream loaded
[    0.961987] Key type asymmetric registered
[    0.966149] Asymmetric key parser 'x509' registered
[    0.971123] bounce: pool size: 64 pages
[    0.975097] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.982551] io scheduler noop registered
[    0.986539] io scheduler deadline registered
[    0.990893] io scheduler cfq registered (default)
[    0.996457] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    1.004881] mvebu-pcie soc:pcie-controller: PCI host bridge to bus 0000:00
[    1.011828] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    1.018150] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    1.025085] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.031012] PCI: bus0: Fast back to back transfers disabled
[    1.036648] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.044716] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.052881] PCI: bus1: Fast back to back transfers enabled
[    1.058539] PCI: bus2: Fast back to back transfers enabled
[    1.064131] pci 0000:00:01.0: PCI bridge to [bus 01]
[    1.069169] pci 0000:00:02.0: PCI bridge to [bus 02]
[    1.074608] mv_xor f1060800.xor: Marvell shared XOR driver
[    1.138993] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.146601] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.208986] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.259786] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.267423] console [ttyS0] disabled
[    1.291153] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 22, base_baud = 12500000) is a 16550A
[    1.300186] console [ttyS0] enabled
[    1.300186] console [ttyS0] enabled
[    1.307273] bootconsole [earlycon0] disabled
[    1.307273] bootconsole [earlycon0] disabled
[    1.316854] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.325960] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.335528] scsi host0: ahci-mvebu
[    1.339243] scsi host1: ahci-mvebu
[    1.342850] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 42
[    1.350815] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 42
[    1.358902] ahci-mvebu f10e0000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.367989] ahci-mvebu f10e0000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.387371] scsi host2: ahci-mvebu
[    1.391019] scsi host3: ahci-mvebu
[    1.394575] ata3: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x100 irq 43
[    1.402537] ata4: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x180 irq 43
[    1.410989] pxa3xx-nand f10d0000.flash: This platform can't do DMA on this device
[    1.418876] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xdc
[    1.425257] nand: Hynix H27U4G8F2DTR-BC
[    1.429134] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.436740] pxa3xx-nand f10d0000.flash: ECC strength 16, ECC step size 2048
[    1.443931] Bad block table found at page 262080, version 0x01
[    1.450118] Bad block table found at page 262016, version 0x01
[    1.456146] nand_read_bbt: bad block at 0x00000dcc0000
[    1.461316] nand_read_bbt: bad block at 0x00000fb00000
[    1.466476] nand_read_bbt: bad block at 0x000012180000
[    1.471643] nand_read_bbt: bad block at 0x0000139a0000
[    1.476804] nand_read_bbt: bad block at 0x000017880000
[    1.481969] nand_read_bbt: bad block at 0x0000178a0000
[    1.487129] nand_read_bbt: bad block at 0x00001a640000
[    1.492295] nand_read_bbt: bad block at 0x00001e9c0000
[    1.497488] 3 ofpart partitions found on MTD device pxa3xx_nand-0
[    1.503615] Creating 3 MTD partitions on "pxa3xx_nand-0":
[    1.509043] 0x000000000000-0x000000800000 : "U-Boot"
[    1.524698] 0x000000800000-0x000001000000 : "Linux"
[    1.540234] 0x000001000000-0x000040000000 : "Filesystem"
[    1.545570] mtd: partition "Filesystem" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x1f000000
[    1.569412] m25p80 spi0.0: unrecognized JEDEC id bytes: ff, ff, ff
[    1.576061] libphy: Fixed MDIO Bus: probed
[    1.580470] libphy: mdio_driver_register: mv88e6085
[    1.585508] libphy: orion_mdio_bus: probed
[    1.595285] mvneta_bm f10c8000.bm: Buffer Manager for network controller enabled
[    1.604329] mvneta f1070000.ethernet eth0: Using random mac address 1a:88:7e:62:cb:4d
[    1.613726] mvneta f1030000.ethernet eth1: Using random mac address 6e:ab:d6:90:57:a2
[    1.621790] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.628356] ehci-pci: EHCI PCI platform driver
[    1.632882] ehci-orion: EHCI orion driver
[    1.637006] orion-ehci f1058000.usb: EHCI Host Controller
[    1.642465] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    1.650137] orion-ehci f1058000.usb: irq 38, io mem 0xf1058000
[    1.678595] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    1.684653] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.690001] ata1: SATA link down (SStatus 0 SControl 300)
[    1.696932] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.699893] ata2: SATA link down (SStatus 0 SControl 300)
[    1.709632] usb usb1: Product: EHCI Host Controller
[    1.714530] usb usb1: Manufacturer: Linux 4.9.0-mvebu-tld-12 ehci_hcd
[    1.721011] usb usb1: SerialNumber: f1058000.usb
[    1.725958] hub 1-0:1.0: USB hub found
[    1.729760] hub 1-0:1.0: 1 port detected
[    1.734134] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.739509] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    1.747101] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.749855] ata4: SATA link down (SStatus 0 SControl 300)
[    1.761130] xhci-hcd f10f0000.usb3: irq 46, io mem 0xf10f0000
[    1.766983] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    1.773810] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.781085] usb usb2: Product: xHCI Host Controller
[    1.785982] usb usb2: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.792458] usb usb2: SerialNumber: f10f0000.usb3
[    1.797468] hub 2-0:1.0: USB hub found
[    1.801263] hub 2-0:1.0: 1 port detected
[    1.805364] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.810718] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
[    1.818283] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.826474] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    1.833301] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.841020] usb usb3: Product: xHCI Host Controller
[    1.845919] usb usb3: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.852396] usb usb3: SerialNumber: f10f0000.usb3
[    1.857395] hub 3-0:1.0: USB hub found
[    1.861184] hub 3-0:1.0: 1 port detected
[    1.865346] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.870703] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    1.878287] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.886877] xhci-hcd f10f8000.usb3: irq 47, io mem 0xf10f8000
[    1.892736] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002
[    1.899562] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.906813] usb usb4: Product: xHCI Host Controller
[    1.911757] usb usb4: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.918225] usb usb4: SerialNumber: f10f8000.usb3
[    1.922965] ata3: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    1.929263] ata3.00: ATA-8: SAMSUNG HD103SJ, 1AJ10001, max UDMA/133
[    1.935558] ata3.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    1.942667] hub 4-0:1.0: USB hub found
[    1.946448] hub 4-0:1.0: 1 port detected
[    1.950559] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.955905] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5
[    1.963442] ata3.00: configured for UDMA/133
[    1.963472] usb usb5: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.963531] usb usb5: New USB device found, idVendor=1d6b, idProduct=0003
[    1.963535] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.963538] usb usb5: Product: xHCI Host Controller
[    1.963540] usb usb5: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.963543] usb usb5: SerialNumber: f10f8000.usb3
[    1.967882] hub 5-0:1.0: USB hub found
[    1.967898] hub 5-0:1.0: 1 port detected
[    1.968141] usbcore: registered new interface driver usblp
[    1.968209] usbcore: registered new interface driver usb-storage
[    1.982865] mousedev: PS/2 mouse device common for all mice
[    1.990212] armada38x-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[    1.990361] i2c /dev entries driver
[    2.014559] orion_wdt: Initial timeout 171 sec
[    2.015826] marvell-cesa f1090000.crypto: CESA device successfully registered
[    2.015932] hidraw: raw HID events driver (C) Jiri Kosina
[    2.020192] usbcore: registered new interface driver usbhid
[    2.020194] usbhid: USB HID core driver
[    2.020306] drop_monitor: Initializing network drop monitor service
[    2.020336] Netfilter messages via NETLINK v0.30.
[    2.020349] ip_set: protocol 6
[    2.026368] NET: Registered protocol family 10
[    2.039721] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    2.040376] NET: Registered protocol family 17
[    2.040486] 8021q: 802.1Q VLAN Support v1.8
[    2.040508] Key type dns_resolver registered
[    2.040592] ThumbEE CPU extension supported.
[    2.040598] Registering SWP/SWPB emulation handler
[    2.055110] registered taskstats version 1
[    2.055113] Loading compiled-in X.509 certificates
[    2.055149] zswap: loaded using pool lzo/zbud
[    2.131990] Key type big_key registered
[    2.139177] Key type encrypted registered
[    2.144159] armada38x-rtc f10a3800.rtc: setting system clock to 2017-06-07 09:11:26 UTC (1496826686)
[   2.153483] scsi 2:0:0:0: Direct-Access     ATA      SAMSUNG HD103SJ  0001 PQ: 0 ANSI: 5
[    2.178604] usb 2-1: new high-speed USB device number 2 using xhci-hcd
[    2.249003] sd 2:0:0:0: [sda] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB)
[    2.257027] sd 2:0:0:0: [sda] Write Protect is off
[    2.261914] sd 2:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    2.300605]  sda: sda1 sda2 sda3 sda4
[    2.305274] sd 2:0:0:0: [sda] Attached SCSI removable disk
[    2.311426] Freeing unused kernel memory: 1024K (c0c00000 - c0d00000)
Loading, please wait...
[    2.348931] usb 2-1: New USB device found, idVendor=045b, idProduct=0209
[    2.355687] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.363461] systemd-udevd[1336]: starting version 215
[    2.364333] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    2.381259] hub 2-1:1.0: USB hub found
[    2.385083] hub 2-1:1.0: 4 ports detected
[    2.457589] sd 2:0:0:0: Attached scsi generic sg0 type 0
[    2.488847] usb 3-1: new SuperSpeed USB device number 2 using xhci-hcd
[    2.520182] usb 3-1: New USB device found, idVendor=045b, idProduct=0210
[    2.526920] usb 3-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.537596] hub 3-1:1.0: USB hub found
[    2.542241] hub 3-1:1.0: 4 ports detected
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
modprobe: module linux_raid_member not found in modules.dep
Begin: Will now check root file system ... fsck from util-linux 2.25.2
[   12.809815] random: fast init done
done.
mount: mounting /dev/sda1 on /root failed: No such device
done.
Target filesystem doesn't have requested /sbin/init.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... mount: mounting /dev on /root/dev failed: No such file or directory
done.
No init found. Try passing init= bootarg.
modprobe: module i8042 not found in modules.dep
[   12.957634] uhci_hcd: USB Universal Host Controller Interface driver
[   12.967538] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver


BusyBox v1.22.1 (Debian 1:1.22.0-9+deb8u1) built-in shell (ash)
Enter 'help' for a list of built-in commands.

/bin/sh: can't access tty; job control turned off
(initramfs)
Re: Debian on WD MyCloud EX 4100
June 07, 2017 04:29AM
saschadd,

Cool :) we are getting somewhere!

Quote

does'nt the message

modprobe: module i8042 not found in modules.dep

point to what is missing to get usb working again?

No. This message is a catch-all msg when the root device was not detected. In our case, it is likely that the USB storage device was not detected.

A different story for SATA. it did get detected correctly.

Quote

[ 2.153483] scsi 2:0:0:0: Direct-Access ATA SAMSUNG HD103SJ 0001 PQ: 0 ANSI: 5
[ 2.178604] usb 2-1: new high-speed USB device number 2 using xhci-hcd
[ 2.249003] sd 2:0:0:0: [sda] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB)
[ 2.257027] sd 2:0:0:0: [sda] Write Protect is off
[ 2.261914] sd 2:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 2.300605] sda: sda1 sda2 sda3 sda4
[ 2.305274] sd 2:0:0:0: [sda] Attached SCSI removable disk


So, now if you put the rootfs on this SATA disk, it will boot into Debian and you'll get a running system. I'll need to write a new set of u-boot envs for you to do that.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on WD MyCloud EX 4100
June 07, 2017 04:35AM
saschadd,

With the SATA disk still attached, power up, interrupt serial console and

ide reset

and

scsi init

See which command initialize the disk. One of these 2 commands is needed.

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



Edited 1 time(s). Last edit at 06/07/2017 04:35AM by bodhi.
Re: Debian on WD MyCloud EX 4100
June 07, 2017 08:29AM
bodhi Wrote:
> So, now if you put the rootfs on this SATA disk, it will boot into Debian and you'll get a running system. I'll need to write a new set of u-boot envs for you to do that.

If this helps to get usb booting to work i would do that. I would prefer to boot from usb to set the harddrive to sleep when not needed. I noticed that on the nsa325v2 which i configured to boot from sata but i will switch this box to boot from usb because there is no sleep mode available for the harddiscs.

will have the time to test the sata commands this evening.
Re: Debian on WD MyCloud EX 4100
June 07, 2017 12:01PM
Quote
bodhi
So, now if you put the rootfs on this SATA disk, it will boot into Debian and you'll get a running system. I'll need to write a new set of u-boot envs for you to do that.

Maybe I'm being stupid, but what is the point of this? We have a proof of concept that Debian boots on the EX2100. The only issue with the EX4100 is USB power control, which I believe can be solved with changes to the DTB and more testing by saschadd.

The reason I see this as pointless is that you cannot saveenv on the stock u-boot, so the only way you'll be able to boot Debian is by interrupting the boot process and pasting in a bunch of stuff into u-boot.

So what is the plan? Manipulate the u-boot env vars from within Debian? Or do we start with u-boot development since kwboot is partially working.
Re: Debian on WD MyCloud EX 4100
June 07, 2017 12:16PM
bodhi,

here the output from testing ide and scsi

Marvell>> ide reset

Reset IDE:
Marvell Serial ATA Adapter
no device found

Marvell>> scsi init
AHCI init for unit0
SATA link 0 timeout.
SATA link 1 timeout.
AHCI init for unit1
Target spinup took 0 ms.
SATA link 1 timeout.

Error: SCSI Controller(s) 1B4B:9215 1B4B:9235 not found
scanning bus for devices...

SCSI seems to hang
Re: Debian on WD MyCloud EX 4100
June 07, 2017 12:26PM
Good to see, you making progress with the kwboot / Uboot via UART. :-)

Maybe we'll get a better / newer Uboot for the WD Devices, and can get a full debian (with "stock"-initrd) working.

-------------------------------------------------------------------------
GitHub https://github.com/cschil
Re: Debian on WD MyCloud EX 4100
June 07, 2017 01:23PM
@hmartin,

> Maybe I'm being stupid, but what is the point of t
> his?

You're just be impatient :)

> We have a proof of concept that Debian boots
> on the EX2100. The only issue with the EX4100 is U
> SB power control, which I believe can be solved wi
> th changes to the DTB and more testing by saschadd

We had not proven that we can run a full Debian system before, until we can load a system like saschadd did:
http://forum.doozan.com/read.php?2,34103,34617#msg-34617

Now we know that works with:

1. Debian-4.9.0-mvebu-tld-12-rootfs-bodhi.tar.bz2
2. The DTB embedded in uImage
3. The bootcmd is

load_image_addr=0x02000000
load_initrd_addr=0x2900000
bootm 0x02000000 0x2900000

So if SATA is easy to get working for the EX4100, sachadd should do that test.

> Manipulate the u-boot env var
> s from within Debian?

Yes. This should be possible. Now that we know kwboot works for the EX2100. It means you can set and save envs without worrying. But first you should repeat this test

Quote

1. Debian-4.9.0-mvebu-tld-12-rootfs-bodhi.tar.bz2
2. The DTB embedded in uImage
3. The bootcmd is

load_image_addr=0x02000000
load_initrd_addr=0x2900000
bootm 0x02000000 0x2900000

Next steps:

And then we work on the correct MTD definitions in bootargs. Once in Debian, verify the envs can be read and set (meaning MTD utils should work fully). After we've done these, we have a full Debian system running without serial console.

And then we can take our leisure time to work on u-boot, which is the most time consuming task.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on WD MyCloud EX 4100
June 07, 2017 02:38PM
Quote
bodhi
You're just be impatient :)

You're right. I'll try more to get a more recent u-boot working via kwboot. Maybe I can put my impatience to some good use.
Re: Debian on WD MyCloud EX 4100
June 07, 2017 02:42PM
bodhi Wrote:
-------------------------------------------------------
> So if SATA is easy to get working for the EX4100, sachadd should do that test.

so i prepare my sata drive for running the rootfs next?!

anything i should take care of while doing this or just like i did for the pendrive?
Re: Debian on WD MyCloud EX 4100
June 07, 2017 02:47PM
hmartin,

It is best to get Debian (OpenWrt in your case) running correctly first so we can figure out what is missing in the DTS, if any.

We have different target, but it is the goal to get Linux running. Even with old u-boot it is still an acceptable accomplishment.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on WD MyCloud EX 4100
June 07, 2017 02:54PM
saschadd,

> so i prepare my sata drive for running the rootfs
> next?!
>
> anything i should take care of while doing this or
> just like i did for the pendrive?

If you feel like trying this while I am looking for the USB GPIOs.

And yes, the rootfs should be the same procedure with the HDD drive as you did before. This time you need to copy the uImage that has DTB appended from the USB drive to the HDD drive /boot.

Or you can just clone it. Boot into stock and copy the USB rootfs content to the HDD Ext3 partition (make sure you're are being root, and label the HDD partition as rootfs).

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on WD MyCloud EX 4100
June 07, 2017 03:57PM
bodhi,

prepared another harddrive to boot from it and tested.
I boots to debian login prompt but i think the envs are not yet fully correct as i used the usb boot envs.

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

Environment size: 3840/524284 bytes
Marvell>> run bootcmd_usb
(Re)start USB...
USB0:   Port (usbActive) : 0    Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices... 0 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... 3 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
loading Image ...
** Bad device usb 0 **
loading uInitrd ...
** Bad device usb 0 **
## Booting image at 02000000 ...

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

Starting kernel ...

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

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

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

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

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

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

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

libphy: orion_mdio_bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-pci: EHCI PCI platform driver
ehci-orion: EHCI orion driver
orion-ehci f1058000.usb: EHCI Host Controller
orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
orion-ehci f1058000.usb: irq 50, io mem 0xf1058000
orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
xhci-hcd f10f0000.usb3: xHCI Host Controller
xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
xhci-hcd f10f0000.usb3: irq 48, io mem 0xf10f0000
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
xhci-hcd f10f0000.usb3: xHCI Host Controller
xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 1 port detected
usbcore: registered new interface driver usb-storage
ata2: SATA link down (SStatus 0 SControl 300)
ata1: SATA link down (SStatus 0 SControl 300)
ata4: SATA link down (SStatus 0 SControl 300)
usb 3-1: new SuperSpeed USB device number 2 using xhci-hcd
usb 3-1: Parent hub missing LPM exit latency info.  Power management will be impacted.
hub 3-1:1.0: USB hub found
hub 3-1:1.0: 4 ports detected
ata3: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
ata3.00: ATA-8: ST3250318AS, CC44, max UDMA/133
ata3.00: 488397168 sectors, multi 0: LBA48 NCQ (depth 31/32)
ata3.00: configured for UDMA/133
scsi 2:0:0:0: Direct-Access     ATA      ST3250318AS      CC44 PQ: 0 ANSI: 5
sd 2:0:0:0: [sda] 488397168 512-byte logical blocks: (250 GB/232 GiB)
sd 2:0:0:0: Attached scsi generic sg0 type 0
sd 2:0:0:0: [sda] Write Protect is off
sd 2:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
 sda: sda1
sd 2:0:0:0: [sda] Attached SCSI disk
usb 2-1: new high-speed USB device number 2 using xhci-hcd
hub 2-1:1.0: USB hub found
hub 2-1:1.0: 4 ports detected
mvebu-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
i2c /dev entries driver
md: linear personality registered for level -1
md: raid0 personality registered for level 0
md: raid1 personality registered for level 1
md: raid10 personality registered for level 10
md: raid6 personality registered for level 6
md: raid5 personality registered for level 5
md: raid4 personality registered for level 4
device-mapper: ioctl: 4.24.0-ioctl (2013-01-15) initialised: dm-devel@redhat.com
dm_crypt using the OCF package.
cpuidle: using governor ladder
armada-cesa-ocf f109d000.crypto: mv_get_cesa_resources: Total CESA HW channels supported 2
armada-cesa-ocf f109d000.crypto: mv_get_cesa_resources: CESA feature: chain(0)
mvCesaInit: channels=2, session=640, queue=64
armada-cesa-ocf f109d000.crypto: cesa_ocf_probe: CESA driver operate in ocf(0) mode
cesadev_init(c06f44b0)
TCP: cubic registered
NET: Registered protocol family 17
8021q: 802.1Q VLAN Support v1.8
VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
mvebu-rtc f10a3800.rtc: setting system clock to 2017-06-07 20:50:18 UTC (1496868618)
Waiting 10sec before mounting root device...
md: Waiting for all devices to be available before autodetect
md: If you don't use raid, use raid=noautodetect
md: Autodetecting RAID arrays.
md: Scanned 0 and added 0 devices.
md: autorun ...
md: ... autorun DONE.
RAMDISK: gzip image found at block 0
VFS: Mounted root (ext2 filesystem) on device 1:0.
linuxrc: applet not found
kjournald starting.  Commit interval 5 seconds
EXT3-fs (sda1): mounted filesystem with ordered data mode
VFS: Mounted root (ext3 filesystem) readonly on device 8:1.
Trying to move old root to /initrd ... /initrd does not exist. Ignored.
Unmounting old root
Trying to free ramdisk memory ... okay
devtmpfs: mounted
Freeing unused kernel memory: 256K (c06d8000 - c0718000)
Mount failed for selinuxfs on /sys/fs/selinux:  No such file or directory
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[....] Starting the hotplug events dispatcher: udevdsystemd-udevd[1327]: starting version 215
. ok
[ ok ] Synthesizing the initial hotplug events...done.
[ ok ] Waiting for /dev to be fully populated...done.
[ ok ] Activating swap...done.
[....] Checking root file system...fsck from util-linux 2.25.2
rootfs: clean, 34127/15269888 files, 1138503/61049390 blocks
done.
EXT3-fs (sda1): using internal journal
[ ok ] Activating lvm and md swap...done.
[....] Checking file systems...fsck from util-linux 2.25.2
done.
[ ok ] Cleaning up temporary files... /tmp.
[ ok ] Mounting local filesystems...done.
[ ok ] Activating swapfile swap...done.
[ ok ] Cleaning up temporary files....
[ ok ] Setting kernel variables ...done.
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.3.1
Copyright 2004-2014 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Cannot find device "eth0"
Bind socket to interface: No such device

If you think you have received this message due to a bug rather
than a configuration issue please read the section on submitting
bugs on either our web page at www.isc.org or in the README file
before submitting a bug.  These pages explain the proper
process and the information we find helpful for debugging..

exiting.
Failed to bring up eth0.
done.
rpcbind: cannot create socket for udp6
rpcbind: cannot create socket for tcp6
[ ok ] Starting rpcbind daemon....
[FAIL] Starting NFS common utilities: statd idmapd failed!
[ ok ] Cleaning up temporary files....
[FAIL] startpar: service(s) returned failure: nfs-common ... failed!
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
2283 (syslogd)
. ok
[ ok ] Starting NTP server: ntpd.
[ ok ] Starting periodic command scheduler: cron.
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[ ok ] Starting system message bus: dbus.
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
2284 (klogd)
. ok

Debian GNU/Linux 8 debian ttyS0

debian login:
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: