Welcome! Log In Create A New Profile

Advanced

Debian on WD MyCloud EX 4100

Posted by saschadd 
Re: Debian on WD MyCloud EX 4100
July 02, 2017 06:11PM
saschadd,

> 1. Shutdown and power up without the USB drive. It
> should boot to stock.
> working : )
>
> 2. kwboot with tld-6, without USB drive. It should
> boot to stock.
> working : )
>
> 3. kwboot with tld-6, with USB drive attached. It
> should boot to Debian.
> working : )
>
> 4. kwboot with tld-6, without USB drive. Interrupt
> serial console, and temporarily remove bootcmd_cus
> tom. It should boot to stock.
> working : )

Awesome :)

Let me prepare the NAND version and upload it.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
Re: Debian on WD MyCloud EX 4100
July 03, 2017 02:30AM
Download at Dropbox:

uboot.2014T30p6-tld-6.wd-mycloud-ex4100.bodhi.tar

md5:
c9dc826d545317fa6367902d2511630a
sha256:
b85afb164eb767fb63997ac3d5db877079bb752e1cc286fdbe1063691cc1dc39


Instruction:

1. Download the tarball and copy it to your Debian rootfs, or stock rootfs. Extract it.

2. If in stock OS, check for availability of flash_erase and nandwrite

which flash_erase nandwrite

3. Check for bad block. There should be no bad block in the 1st MB (block 0 to 7).

dmesg | grep -i 'Bad eraseblock'

4. Check for correct mtd0

cat /proc/mtd

Expected output for mtd0
dev:    size   erasesize  name
mtd0: 00500000 00020000 "U-Boot"


5. Flash

flash_erase /dev/mtd0 0 8
nandwrite /dev/mtd0 u-boot-a38x-Yellowstone_2014T30p6_bodhi-tld-6.mtd0.kwb

If there was error in the above 2 commands. Stop here and post your entire log from step 1.

If there is no error, you can reboot. With USB rootfs attached, and with serial console running, observe the boot process, and post the entire serial console log (from u-boot banner until the Debian shell login prompt) here.

Login into Debian, and get the output of:

cat /proc/mtd
fw_printenv

UPDATED 06-July-2017

I've attached the patch for u-boot-a38x-Yellowstone_2014T30p6_bodhi-tld-6 here. This can be used for other WD boxes such as the MyCloud EX2100 (for bootcmd), and the Mirror Gen 2 (for boocmd and USB power).

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner



Edited 1 time(s). Last edit at 07/06/2017 05:32PM by bodhi.
Attachments:
open | download - u-boot-2013.01-2014_T3.0p2-tld-6.patch (5.3 KB)
Re: Debian on WD MyCloud EX 4100
July 03, 2017 03:17AM
bodhi,

i think you got it! : )
booted to debian as stock was missing which, flash_erase and nandwrite.
All went well as described.
Following the output from boot after flashing

picocom -b 115200 -d 8 /dev/ttyAMA0                    picocom v1.7

port is        : /dev/ttyAMA0
flowcontrol    : none
baudrate is    : 115200
parity is      : none
databits are   : 8
escape is      : C-a
local echo is  : no
noinit is      : no
noreset is     : no
nolock is      : no
send_cmd is    : sz -vv
receive_cmd is : rz -vv
imap is        :
omap is        :
emap is        : crcrlf,delbs,

Terminal ready

BootROM - 1.73
Booting from NAND flash

mvBoardIdGet: TWSI Read for Marvell Board ID failed (57)
        Using default board ID



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

Initialize DB-88F6820-BP board topology
board SerDes lanes topology details:
 | Lane #  | Speed |  Type       |
 --------------------------------
 |   0    |  06   |  SATA0      |
 |   1    |  00   |  SGMII1     |
 |   2    |  06   |  SATA1      |
 |   3    |  06   |  SATA3      |
 |   4    |  05   |  USB3 HOST0 |
 |   5    |  06   |  SATA2      |
 --------------------------------
High speed PHY - Ended Successfully
DDR3 Training Sequence - Ver TIP-1.26.0
mvSysEnvGetTopologyUpdateInfo: TWSI Read failed
DDR3 1 Training Sequence - Switching XBAR Window to FastPath Window
DDR3 Training Sequence - Ended Successfully
BootROM: Image checksum verification PASSED

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


U-Boot 2013.01_v1.06 (Jun 30 2017 - 16:08:19) Marvell version: 2014_T3.0p6 - bodhi-tld-6

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

Map:   Code:                    0x7fece000:0x7ff960f0
       BSS:                     0x7ffef654
       Stack:                   0x7f9cdf20
       Heap:                    0x7f9ce000:0x7fece000
       U-Boot Environment:      0x00100000:0x00180000 Address: 0x00100000(NAND)

NAND:  ID: dcad ,512 MiB
MMC:   mv_sdh: 0
bootcmd: run bootcmd_custom; setenv bootargs root=/dev/ram console=ttyS0,115200; nand read.e 0xa00000 0x500000 0x500000;nand read.e 0xf00000 0xa00000 0x500000;bootm 0xa00000 0xf00000
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: 3/1
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 e5 19 1e
Set lan 0 WakeOnLan ok
Set lan 1 WakeOnLan ok
MicroP Enable HD
Enable HD1
Enable HD2
Enable HD3
Enable HD4
Net:
|  port  | Interface | PHY address  |
|--------|-----------|--------------|
| egiga0 |   RGMII   |     0x00     |
| egiga1 |   SGMII   |     0x01     |
egiga0 [PRIME], egiga1
Hit any key to stop autoboot:  0
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
(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 ...
3919689 bytes read in 282 ms (13.3 MiB/s)
loading uInitrd ...
6210503 bytes read in 368 ms (16.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-12   5:14:22 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3919625 Bytes = 3.7 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 02900000 ...
   Image Name:   initramfs-4.9.0-mvebu-tld-12
   Created:      2017-02-03  23:57:32 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    6210439 Bytes = 5.9 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.9.0-mvebu-tld-12 (root@tldDebianVM) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4) ) #2 SMP PREEMPT Wed Feb 1 02:31:29 PST 2017
[    0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt:Machine model: WD My Cloud EX4100
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 15 pages/cpu @eefcd000 s30796 r8192 d22452 u61440
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 522752
[    0.000000] Kernel command line:  console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial mtdparts=armada-nand:5m@0(u-boot),5m@5m(kernel),5m@10m(uRamdisk),441m@15m(image.cfs),15m@456m(rescue_fw),20m@471m(config),10m@491m(reserve1),10m@501m(reserve2)
[    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.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.038730] Security Framework initialized
[    0.042925] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.049598] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.057099] CPU: Testing write buffer coherency: ok
[    0.062171] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.067909] Setting up static identity map for 0x100000 - 0x100058
[    0.074212] mvebu-soc-id: MVEBU SoC ID=0x6828, Rev=0x4
[    0.079472] mvebu-pmsu: Initializing Power Management Service Unit
[    0.283913] Booting CPU 1
[    0.286759] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.286808] Brought up 2 CPUs
[    0.295566] SMP: Total of 2 processors activated (100.00 BogoMIPS).
[    0.301886] CPU: All CPU(s) started in SVC mode.
[    0.307123] devtmpfs: initialized
[    0.312472] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.320418] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.330343] prandom: seed boundary self test passed
[    0.336967] prandom: 100 self tests passed
[    0.341127] pinctrl core: initialized pinctrl subsystem
[    0.347046] NET: Registered protocol family 16
[    0.352084] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.393869] 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.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.504833] vgaarb: loaded
[    0.507842] SCSI subsystem initialized
[    0.512062] usbcore: registered new interface driver usbfs
[    0.517697] usbcore: registered new interface driver hub
[    0.523129] usbcore: registered new device driver usb
[    0.528455] media: Linux media interface: v0.10
[    0.533090] Linux video capture interface: v2.00
[    0.538589] clocksource: Switched to clocksource armada_370_xp_clocksource
[    0.570034] VFS: Disk quotas dquot_6.6.0
[    0.574061] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.587907] NET: Registered protocol family 2
[    0.592731] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.599880] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.606430] TCP: Hash tables configured (established 8192 bind 8192)
[    0.612899] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.618909] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.625416] NET: Registered protocol family 1
[    0.630103] RPC: Registered named UNIX socket transport module.
[    0.636079] RPC: Registered udp transport module.
[    0.640856] RPC: Registered tcp transport module.
[    0.645620] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.652244] Unpacking initramfs...
[    0.859646] Freeing initrd memory: 6068K (c2900000 - c2eed000)
[    0.865622] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.872418] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.881567] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.887772] audit: initializing netlink subsys (disabled)
[    0.893283] audit: type=2000 audit(0.880:1): initialized
[    0.899064] Initialise system trusted keyrings
[    0.903707] workingset: timestamp_bits=30 max_order=19 bucket_order=0
[    0.910287] zbud: loaded
[    0.913353] NFS: Registering the id_resolver key type
[    0.918470] Key type id_resolver registered
[    0.922733] Key type id_legacy registered
[    0.926813] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.933575] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.940120] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.947508] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.954116] orangefs_init: module version upstream loaded
[    0.961377] Key type asymmetric registered
[    0.965539] Asymmetric key parser 'x509' registered
[    0.970513] bounce: pool size: 64 pages
[    0.974485] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.981942] io scheduler noop registered
[    0.985929] io scheduler deadline registered
[    0.990283] io scheduler cfq registered (default)
[    0.995851] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    1.004287] mvebu-pcie soc:pcie-controller: PCI host bridge to bus 0000:00
[    1.011234] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    1.017556] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    1.024490] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.030423] PCI: bus0: Fast back to back transfers disabled
[    1.036059] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.044127] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.052293] PCI: bus1: Fast back to back transfers enabled
[    1.057944] PCI: bus2: Fast back to back transfers enabled
[    1.063537] pci 0000:00:01.0: PCI bridge to [bus 01]
[    1.068565] pci 0000:00:02.0: PCI bridge to [bus 02]
[    1.074009] mv_xor f1060800.xor: Marvell shared XOR driver
[    1.138997] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.146595] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.208990] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.259152] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.266820] console [ttyS0] disabled
[    1.290561] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 22, base_baud = 12500000) is a 16550A
[    1.299601] console [ttyS0] enabled
[    1.299601] console [ttyS0] enabled
[    1.306689] bootconsole [earlycon0] disabled
[    1.306689] bootconsole [earlycon0] disabled
[    1.316270] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.325375] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.334937] scsi host0: ahci-mvebu
[    1.348656] scsi host1: ahci-mvebu
[    1.352270] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 42
[    1.360237] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 42
[    1.368320] ahci-mvebu f10e0000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.377420] ahci-mvebu f10e0000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.396805] scsi host2: ahci-mvebu
[    1.400452] scsi host3: ahci-mvebu
[    1.404011] ata3: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x100 irq 43
[    1.411973] ata4: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x180 irq 43
[    1.420419] pxa3xx-nand f10d0000.flash: This platform can't do DMA on this device
[    1.428289] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xdc
[    1.434683] nand: Hynix H27U4G8F2DTR-BC
[    1.438535] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.446164] pxa3xx-nand f10d0000.flash: ECC strength 16, ECC step size 2048
[    1.453356] Bad block table found at page 262080, version 0x01
[    1.459543] Bad block table found at page 262016, version 0x01
[    1.465570] nand_read_bbt: bad block at 0x00000dcc0000
[    1.470740] nand_read_bbt: bad block at 0x00000fb00000
[    1.475901] nand_read_bbt: bad block at 0x000012180000
[    1.481068] nand_read_bbt: bad block at 0x0000139a0000
[    1.486229] nand_read_bbt: bad block at 0x000017880000
[    1.491396] nand_read_bbt: bad block at 0x0000178a0000
[    1.496557] nand_read_bbt: bad block at 0x00001a640000
[    1.501723] nand_read_bbt: bad block at 0x00001e9c0000
[    1.506927] 8 ofpart partitions found on MTD device pxa3xx_nand-0
[    1.513054] Creating 8 MTD partitions on "pxa3xx_nand-0":
[    1.518477] 0x000000000000-0x000000500000 : "U-Boot"
[    1.524134] 0x000000500000-0x000000f00000 : "uImage"
[    1.539761] 0x000000a00000-0x000001900000 : "uRamdisk"
[    1.555560] 0x000000f00000-0x00001d700000 : "image.cfs"
[    1.563077] 0x00001c800000-0x000039f00000 : "rescue_fw"
[    1.568326] mtd: partition "rescue_fw" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x3800000
[    1.589878] 0x00001d700000-0x00003c200000 : "config"
[    1.594865] mtd: partition "config" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x2900000
[    1.616101] 0x00001eb00000-0x00003e000000 : "reserve1"
[    1.621275] mtd: partition "reserve1" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x1500000
[    1.642619] 0x00001f500000-0x00003f400000 : "reserve2"
[    1.647794] mtd: partition "reserve2" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0xb00000
[    1.669616] m25p80 spi0.0: unrecognized JEDEC id bytes: ff, ff, ff
[    1.676303] libphy: Fixed MDIO Bus: probed
[    1.680713] libphy: mdio_driver_register: mv88e6085
[    1.685799] libphy: orion_mdio_bus: probed
[    1.695621] mvneta_bm f10c8000.bm: Buffer Manager for network controller enabled
[    1.699858] ata1: SATA link down (SStatus 0 SControl 300)
[    1.709901] ata2: SATA link down (SStatus 0 SControl 300)
[    1.710574] mvneta f1070000.ethernet eth0: Using random mac address fa:cf:3f:4b:cf:47
[    1.724428] mvneta f1030000.ethernet eth1: Using random mac address 9e:d9:f2:69:df:4e
[    1.732578] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.739167] ehci-pci: EHCI PCI platform driver
[    1.743670] ehci-orion: EHCI orion driver
[    1.747807] orion-ehci f1058000.usb: EHCI Host Controller
[    1.753253] ata3: SATA link down (SStatus 0 SControl 300)
[    1.758652] ata4: SATA link down (SStatus 0 SControl 300)
[    1.764134] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    1.771824] orion-ehci f1058000.usb: irq 38, io mem 0xf1058000
[    1.798598] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    1.804645] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.811477] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.818739] usb usb1: Product: EHCI Host Controller
[    1.823637] usb usb1: Manufacturer: Linux 4.9.0-mvebu-tld-12 ehci_hcd
[    1.830111] usb usb1: SerialNumber: f1058000.usb
[    1.835081] hub 1-0:1.0: USB hub found
[    1.838875] hub 1-0:1.0: 1 port detected
[    1.843257] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.848614] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    1.856197] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.864790] xhci-hcd f10f0000.usb3: irq 46, io mem 0xf10f0000
[    1.870648] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    1.877466] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.884743] usb usb2: Product: xHCI Host Controller
[    1.889648] usb usb2: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.896115] usb usb2: SerialNumber: f10f0000.usb3
[    1.901139] hub 2-0:1.0: USB hub found
[    1.904919] hub 2-0:1.0: 1 port detected
[    1.909026] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.914366] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
[    1.921936] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.930138] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    1.936955] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.944218] usb usb3: Product: xHCI Host Controller
[    1.949710] usb usb3: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.956178] usb usb3: SerialNumber: f10f0000.usb3
[    1.961185] hub 3-0:1.0: USB hub found
[    1.964967] hub 3-0:1.0: 1 port detected
[    1.969133] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.974478] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    1.982064] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.990659] xhci-hcd f10f8000.usb3: irq 47, io mem 0xf10f8000
[    1.996508] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002
[    2.003336] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.010597] usb usb4: Product: xHCI Host Controller
[    2.015495] usb usb4: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    2.022008] usb usb4: SerialNumber: f10f8000.usb3
[    2.027006] hub 4-0:1.0: USB hub found
[    2.030798] hub 4-0:1.0: 1 port detected
[    2.034892] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    2.040242] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5
[    2.047799] usb usb5: We don't know the algorithms for LPM for this host, disabling LPM.
[    2.055987] usb usb5: New USB device found, idVendor=1d6b, idProduct=0003
[    2.062820] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.070079] usb usb5: Product: xHCI Host Controller
[    2.074976] usb usb5: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    2.081495] usb usb5: SerialNumber: f10f8000.usb3
[    2.086485] hub 5-0:1.0: USB hub found
[    2.090316] hub 5-0:1.0: 1 port detected
[    2.094514] usbcore: registered new interface driver usblp
[    2.100106] usbcore: registered new interface driver usb-storage
[    2.106310] mousedev: PS/2 mouse device common for all mice
[    2.112269] armada38x-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[    2.119949] i2c /dev entries driver
[    2.134737] orion_wdt: Initial timeout 171 sec
[    2.140406] marvell-cesa f1090000.crypto: CESA device successfully registered
[    2.147676] hidraw: raw HID events driver (C) Jiri Kosina
[    2.153304] usbcore: registered new interface driver usbhid
[    2.158912] usbhid: USB HID core driver
[    2.162878] drop_monitor: Initializing network drop monitor service
[    2.169211] Netfilter messages via NETLINK v0.30.
[    2.173944] ip_set: protocol 6
[    2.177183] NET: Registered protocol family 10
[    2.182226] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    2.189020] NET: Registered protocol family 17
[    2.193599] 8021q: 802.1Q VLAN Support v1.8
[    2.197821] Key type dns_resolver registered
[    2.202364] ThumbEE CPU extension supported.
[    2.206657] Registering SWP/SWPB emulation handler
[    2.211833] registered taskstats version 1
[    2.215947] Loading compiled-in X.509 certificates
[    2.220804] zswap: loaded using pool lzo/zbud
[    2.266591] Key type big_key registered
[    2.270483] usb 2-1: new high-speed USB device number 2 using xhci-hcd
[    2.280538] Key type encrypted registered
[    2.285494] armada38x-rtc f10a3800.rtc: setting system clock to 2017-07-03 07:12:44 UTC (1499065964)
[    2.295681] Freeing unused kernel memory: 1024K (c0c00000 - c0d00000)
Loading, please wait...
[    2.334082] systemd-udevd[1348]: starting version 215
[    2.340125] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    2.438847] usb 2-1: New USB device found, idVendor=045b, idProduct=0209
[    2.445598] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.455214] hub 2-1:1.0: USB hub found
[    2.460035] hub 2-1:1.0: 4 ports detected
[    2.578836] usb 3-1: new SuperSpeed USB device number 2 using xhci-hcd
[    2.610157] usb 3-1: New USB device found, idVendor=045b, idProduct=0210
[    2.616893] usb 3-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.624635] hub 3-1:1.0: USB hub found
[    2.628647] hub 3-1:1.0: 4 ports detected
[    2.788604] usb 2-1.3: new high-speed USB device number 3 using xhci-hcd
[    2.919240] usb 2-1.3: New USB device found, idVendor=0781, idProduct=5571
[    2.926147] usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.933499] usb 2-1.3: Product: Cruzer Fit
[    2.937613] usb 2-1.3: Manufacturer: SanDisk
[    2.941908] usb 2-1.3: SerialNumber: 4C530302071223122304
[    2.948128] usb-storage 2-1.3:1.0: USB Mass Storage device detected
[    2.954571] scsi host4: usb-storage 2-1.3:1.0
[    2.969466] usbcore: registered new interface driver uas
[    4.009124] scsi 4:0:0:0: Direct-Access     SanDisk  Cruzer Fit       1.00 PQ: 0 ANSI: 6
[    4.019140] sd 4:0:0:0: Attached scsi generic sg0 type 0
[    4.026127] sd 4:0:0:0: [sda] 61489152 512-byte logical blocks: (31.5 GB/29.3 GiB)
[    4.034614] sd 4:0:0:0: [sda] Write Protect is off
[    4.039737] sd 4:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    4.051927]  sda: sda1
[    4.055831] sd 4:0:0:0: [sda] Attached SCSI removable disk
[    4.070551] random: fast init done
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
modprobe: module ext3 not found in modules.dep
Begin: Will now check root file system ... fsck from util-linux 2.25.2
fsck: error 2 (No such file or directory) while executing fsck.ext3 for /dev/sda1
fsck exited with status code 8
done.
Warning: File system check failed but did not detect errors
[   17.743550] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   17.752634] EXT4-fs (sda1): INFO: recovery required on readonly filesystem
[   17.759553] EXT4-fs (sda1): write access will be enabled during recovery
[   17.807114] EXT4-fs (sda1): recovery complete
[   17.813995] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[....] Starting the hotplug events dispatcher: udevd[   18.565137] systemd-udevd[1555]: starting version 215
. ok
[ ok ] Synthesizing the initial hotplug events...done.
[ ok ] Waiting for /dev to be fully populated...done.
[ ok ] Activating swap...done.
[   19.805280] EXT4-fs (sda1): re-mounted. Opts: (null)
[....] Checking root file system...fsck from util-linux 2.25.2
rootfs: clean, 34220/1925120 files, 632168/7685888 blocks
done.
[   19.921855] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[ 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.
[   20.979011] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.3.1
Copyright 2004-2014 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/fa:cf:3f:4b:cf:47
Sending on   LPF/eth0/fa:cf:3f:4b:cf:47
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 15
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 15
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
done.
[ ok ] Starting rpcbind daemon....
[   82.692955] random: crng init done
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
2494 (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...
2495 (klogd)
. ok

Debian GNU/Linux 8 debian ttyS0

debian login: root
Password:
Last login: Mon Jul  3 00:02:27 PDT 2017 on ttyS0
Linux debian 4.9.0-mvebu-tld-12 #2 SMP PREEMPT Wed Feb 1 02:31:29 PST 2017 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
debian

WD My Cloud EX4100
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
 00:14:16 up 1 min,  1 user,  load average: 0.02, 0.01, 0.00
root@debian:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00500000 00020000 "U-Boot"
mtd1: 00a00000 00020000 "uImage"
mtd2: 00f00000 00020000 "uRamdisk"
mtd3: 1c800000 00020000 "image.cfs"
mtd4: 03800000 00020000 "rescue_fw"
mtd5: 02900000 00020000 "config"
mtd6: 01500000 00020000 "reserve1"
mtd7: 00b00000 00020000 "reserve2"
root@debian:~# fw_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=run bootcmd_custom; setenv bootargs root=/dev/ram console=ttyS0,115200; 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_stock=echo Booting from stock ... ; run set_bootargs_stock; printenv bootargs; nand read.e 0xa00000 0x500000 0x500000;nand read.e 0xf00000 0xa00000 0x500000;bootm 0xa00000 0xf00000
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:46:25:2a
eth1mtu=1500
eth2addr=00:50:43:46:96:2a
eth2mtu=1500
eth3addr=00:50:43:25:96:46
eth3mtu=1500
ethact=egiga0
ethaddr=00:50:43:96:25:2a
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:2a:96:46
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
set_bootargs_stock=setenv bootargs root=/dev/ram console=ttyS0,115200
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=LABEL=rootfs rootdelay=10 earlyprintk=serial mtdparts=armada-nand:5m@0(u-boot),5m@5m(kernel),5m@10m(uRamdisk),441m@15m(image.cfs),15m@456m(rescue_fw),20m@471m(config),10m@491m(reserve1),10m@501m(reserve2)
vxworks_en=no
yuk_ethaddr=00:00:00:EE:51:81
bootcmd_usb=echo Booting from USB ...; usb start; setenv fdt_skip_update yes; usb start; run usb_set_bootargs; if run load_image; then if run load_initrd; then bootm $load_image_addr $load_initrd_addr; else bootm $load_image_addr; fi; fi
bootcmd_custom=if run bootcmd_usb; then ; fi; run bootcmd_stock; reset
root@debian:~#
Re: Debian on WD MyCloud EX 4100
July 03, 2017 03:54AM
Cool :) I think we can say we've done enough with u-boot.

Now I will need to look at the DTS (the mtd NAND driver is not the right one). The kernel should detect armada-nand but it did not. Also there might be things that need to be added to the DTS as you run the system and discover missing stuff.

In the mean time, you can upgrade the kernel to the latest: linux-4.10.9-mvebu-tld-1 (09 April 2017). Remember to back up your USB rootfs :)

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
Re: Debian on WD MyCloud EX 4100
July 03, 2017 04:17AM
saschadd,

So this which command yield no result in stock OS?

which flash_erase nandwrite
expected output
/usr/sbin/flash_erase
/usr/sbin/nandwrite

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
Re: Debian on WD MyCloud EX 4100
July 03, 2017 04:46AM
bodhi,

which flash_erase nandwrite in stock rom gave following output

-sh: which: not found
Re: Debian on WD MyCloud EX 4100
July 03, 2017 05:01AM
Re: Debian on WD MyCloud EX 4100
July 03, 2017 12:48PM
flash_erase --help
-sh: flash_erase: not found

nandwrite --help
Usage: nandwrite [OPTION] MTD_DEVICE INPUTFILE
Writes to the specified MTD device.

-a, --autoplace Use auto oob layout
-j, --jffs2 force jffs2 oob layout (legacy support)
-y, --yaffs force yaffs oob layout (legacy support)
-f, --forcelegacy force legacy support on autoplacement enabled mtd device
-m, --markbad mark blocks bad if write fails
-n, --noecc write without ecc
-o, --oob image contains oob data
-s addr, --start=addr set start address (default is 0)
-p, --pad pad to page size
-b, --blockalign=1|2|4 set multiple of eraseblocks to align to
-q, --quiet don't display progress messages
--help display this help and exit
--version output version information and exit
Re: Debian on WD MyCloud EX 4100
July 03, 2017 04:28PM
Re: Debian on WD MyCloud EX 4100
July 03, 2017 04:46PM
bodhi,
i think this busybox on stock rom is very limited and outdated as far as i noticed.

-
happy hacking,

saschadd
Re: Debian on WD MyCloud EX 4100
July 03, 2017 11:39PM
sachadd,

We should to get rid off these errors in mtdpartitions.

[    1.506927] 8 ofpart partitions found on MTD device pxa3xx_nand-0
[    1.513054] Creating 8 MTD partitions on "pxa3xx_nand-0":
[    1.518477] 0x000000000000-0x000000500000 : "U-Boot"
[    1.524134] 0x000000500000-0x000000f00000 : "uImage"
[    1.539761] 0x000000a00000-0x000001900000 : "uRamdisk"
[    1.555560] 0x000000f00000-0x00001d700000 : "image.cfs"
[    1.563077] 0x00001c800000-0x000039f00000 : "rescue_fw"
[    1.568326] mtd: partition "rescue_fw" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x3800000
[    1.589878] 0x00001d700000-0x00003c200000 : "config"
[    1.594865] mtd: partition "config" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x2900000
[    1.616101] 0x00001eb00000-0x00003e000000 : "reserve1"
[    1.621275] mtd: partition "reserve1" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x1500000
[    1.642619] 0x00001f500000-0x00003f400000 : "reserve2"
[    1.647794] mtd: partition "reserve2" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0xb00000

Boot into Debian on USB rootfs. And set the usb_set_bootargs env:

fw_setenv usb_set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial mtdparts=armada-nand:5M(u-boot),5M(kernel),5M(uRamdisk),441M(image.cfs),15M(rescue_fw),20M(config),10M(reserve1),10M(reserve2)'

And reboot.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
Re: Debian on WD MyCloud EX 4100
July 04, 2017 01:59AM
bodhi,

following the bootlog after setting

fw_setenv usb_set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial mtdparts=armada-nand:5M(u-boot),5M(kernel),5M(uRamdisk),441M(image.cfs),15M(rescue_fw),20M(config),10M(reserve1),10M(reserve2)'

BootROM - 1.73
Booting from NAND flash

mvBoardIdGet: TWSI Read for Marvell Board ID failed (57)
        Using default board ID



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

Initialize DB-88F6820-BP board topology
board SerDes lanes topology details:
 | Lane #  | Speed |  Type       |
 --------------------------------
 |   0    |  06   |  SATA0      |
 |   1    |  00   |  SGMII1     |
 |   2    |  06   |  SATA1      |
 |   3    |  06   |  SATA3      |
 |   4    |  05   |  USB3 HOST0 |
 |   5    |  06   |  SATA2      |
 --------------------------------
High speed PHY - Ended Successfully
DDR3 Training Sequence - Ver TIP-1.26.0
mvSysEnvGetTopologyUpdateInfo: TWSI Read failed
DDR3 1 Training Sequence - Switching XBAR Window to FastPath Window
DDR3 Training Sequence - Ended Successfully
BootROM: Image checksum verification PASSED

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


U-Boot 2013.01_v1.06 (Jun 30 2017 - 16:08:19) Marvell version: 2014_T3.0p6 - bodhi-tld-6

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

Map:   Code:                    0x7fece000:0x7ff960f0
       BSS:                     0x7ffef654
       Stack:                   0x7f9cdf20
       Heap:                    0x7f9ce000:0x7fece000
       U-Boot Environment:      0x00100000:0x00180000 Address: 0x00100000(NAND)

NAND:  ID: dcad ,512 MiB
MMC:   mv_sdh: 0
bootcmd: run bootcmd_custom; setenv bootargs root=/dev/ram console=ttyS0,115200; nand read.e 0xa00000 0x500000 0x500000;nand read.e 0xf00000 0xa00000 0x500000;bootm 0xa00000 0xf00000
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: 3/1
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 e5 19 1e
Set lan 0 WakeOnLan ok
Set lan 1 WakeOnLan ok
MicroP Enable HD
Enable HD1
Enable HD2
Enable HD3
Enable HD4
Net:
|  port  | Interface | PHY address  |
|--------|-----------|--------------|
| egiga0 |   RGMII   |     0x00     |
| egiga1 |   SGMII   |     0x01     |
egiga0 [PRIME], egiga1
Hit any key to stop autoboot:  0
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
(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 ...
3919689 bytes read in 283 ms (13.2 MiB/s)
loading uInitrd ...
6210503 bytes read in 368 ms (16.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-12   5:14:22 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3919625 Bytes = 3.7 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 02900000 ...
   Image Name:   initramfs-4.9.0-mvebu-tld-12
   Created:      2017-02-03  23:57:32 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    6210439 Bytes = 5.9 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.9.0-mvebu-tld-12 (root@tldDebianVM) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4) ) #2 SMP PREEMPT Wed Feb 1 02:31:29 PST 2017
[    0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt:Machine model: WD My Cloud EX4100
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 15 pages/cpu @eefcd000 s30796 r8192 d22452 u61440
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 522752
[    0.000000] Kernel command line:  console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial mtdparts=armada-nand:5M(u-boot),5M(kernel),5M(uRamdisk),441M(image.cfs),15M(rescue_fw),20M(config),10M(reserve1),10M(reserve2)
[    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.023574] 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.057098] 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.079471] mvebu-pmsu: Initializing Power Management Service Unit
[    0.283912] Booting CPU 1
[    0.286758] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.286806] Brought up 2 CPUs
[    0.295565] SMP: Total of 2 processors activated (100.00 BogoMIPS).
[    0.301884] CPU: All CPU(s) started in SVC mode.
[    0.307115] devtmpfs: initialized
[    0.312460] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.320410] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.330336] prandom: seed boundary self test passed
[    0.336961] prandom: 100 self tests passed
[    0.341121] pinctrl core: initialized pinctrl subsystem
[    0.347037] NET: Registered protocol family 16
[    0.352086] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.393867] cpuidle: using governor ladder
[    0.423865] cpuidle: using governor menu
[    0.427930] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.435999] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.441981] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.450135] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.514846] vgaarb: loaded
[    0.517836] SCSI subsystem initialized
[    0.522052] usbcore: registered new interface driver usbfs
[    0.527670] usbcore: registered new interface driver hub
[    0.533102] usbcore: registered new device driver usb
[    0.538419] media: Linux media interface: v0.10
[    0.543055] Linux video capture interface: v2.00
[    0.548547] clocksource: Switched to clocksource armada_370_xp_clocksource
[    0.579981] VFS: Disk quotas dquot_6.6.0
[    0.584009] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.598054] NET: Registered protocol family 2
[    0.602853] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.610000] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.616549] TCP: Hash tables configured (established 8192 bind 8192)
[    0.623001] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.629005] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.635512] NET: Registered protocol family 1
[    0.640176] RPC: Registered named UNIX socket transport module.
[    0.646152] RPC: Registered udp transport module.
[    0.650927] RPC: Registered tcp transport module.
[    0.655692] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.662303] Unpacking initramfs...
[    0.869175] Freeing initrd memory: 6068K (c2900000 - c2eed000)
[    0.875148] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.881934] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.891069] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.897272] audit: initializing netlink subsys (disabled)
[    0.902774] audit: type=2000 audit(0.890:1): initialized
[    0.908536] Initialise system trusted keyrings
[    0.913195] workingset: timestamp_bits=30 max_order=19 bucket_order=0
[    0.919767] zbud: loaded
[    0.922833] NFS: Registering the id_resolver key type
[    0.927951] Key type id_resolver registered
[    0.932213] Key type id_legacy registered
[    0.936293] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.943055] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.949602] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.956991] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.963595] orangefs_init: module version upstream loaded
[    0.970893] Key type asymmetric registered
[    0.975055] Asymmetric key parser 'x509' registered
[    0.980032] bounce: pool size: 64 pages
[    0.984001] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.991456] io scheduler noop registered
[    0.995443] io scheduler deadline registered
[    0.999796] io scheduler cfq registered (default)
[    1.005360] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    1.013790] mvebu-pcie soc:pcie-controller: PCI host bridge to bus 0000:00
[    1.020735] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    1.027057] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    1.033991] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.039921] PCI: bus0: Fast back to back transfers disabled
[    1.045557] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.053625] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.061789] PCI: bus1: Fast back to back transfers enabled
[    1.067437] PCI: bus2: Fast back to back transfers enabled
[    1.073030] pci 0000:00:01.0: PCI bridge to [bus 01]
[    1.078059] pci 0000:00:02.0: PCI bridge to [bus 02]
[    1.083503] mv_xor f1060800.xor: Marvell shared XOR driver
[    1.148953] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.156553] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.218948] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.269259] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.276923] console [ttyS0] disabled
[    1.300659] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 22, base_baud = 12500000) is a 16550A
[    1.309710] console [ttyS0] enabled
[    1.309710] console [ttyS0] enabled
[    1.316799] bootconsole [earlycon0] disabled
[    1.316799] bootconsole [earlycon0] disabled
[    1.326389] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.335495] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.345044] scsi host0: ahci-mvebu
[    1.348792] scsi host1: ahci-mvebu
[    1.352401] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 42
[    1.360367] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 42
[    1.368448] ahci-mvebu f10e0000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.377547] ahci-mvebu f10e0000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.386916] scsi host2: ahci-mvebu
[    1.390562] scsi host3: ahci-mvebu
[    1.394118] ata3: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x100 irq 43
[    1.402084] ata4: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x180 irq 43
[    1.410499] pxa3xx-nand f10d0000.flash: This platform can't do DMA on this device
[    1.418352] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xdc
[    1.424747] nand: Hynix H27U4G8F2DTR-BC
[    1.428607] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.436211] pxa3xx-nand f10d0000.flash: ECC strength 16, ECC step size 2048
[    1.443402] Bad block table found at page 262080, version 0x01
[    1.449594] Bad block table found at page 262016, version 0x01
[    1.455625] nand_read_bbt: bad block at 0x00000dcc0000
[    1.460795] nand_read_bbt: bad block at 0x00000fb00000
[    1.465956] nand_read_bbt: bad block at 0x000012180000
[    1.471122] nand_read_bbt: bad block at 0x0000139a0000
[    1.476282] nand_read_bbt: bad block at 0x000017880000
[    1.481449] nand_read_bbt: bad block at 0x0000178a0000
[    1.486609] nand_read_bbt: bad block at 0x00001a640000
[    1.491776] nand_read_bbt: bad block at 0x00001e9c0000
[    1.496978] 8 ofpart partitions found on MTD device pxa3xx_nand-0
[    1.503105] Creating 8 MTD partitions on "pxa3xx_nand-0":
[    1.508527] 0x000000000000-0x000000500000 : "U-Boot"
[    1.524197] 0x000000500000-0x000000f00000 : "uImage"
[    1.539825] 0x000000a00000-0x000001900000 : "uRamdisk"
[    1.555616] 0x000000f00000-0x00001d700000 : "image.cfs"
[    1.573153] 0x00001c800000-0x000039f00000 : "rescue_fw"
[    1.578402] mtd: partition "rescue_fw" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x3800000
[    1.599954] 0x00001d700000-0x00003c200000 : "config"
[    1.604941] mtd: partition "config" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x2900000
[    1.616164] 0x00001eb00000-0x00003e000000 : "reserve1"
[    1.621340] mtd: partition "reserve1" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x1500000
[    1.632668] 0x00001f500000-0x00003f400000 : "reserve2"
[    1.637829] mtd: partition "reserve2" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0xb00000
[    1.649610] m25p80 spi0.0: unrecognized JEDEC id bytes: ff, ff, ff
[    1.656266] libphy: Fixed MDIO Bus: probed
[    1.660669] libphy: mdio_driver_register: mv88e6085
[    1.665699] libphy: orion_mdio_bus: probed
[    1.675503] mvneta_bm f10c8000.bm: Buffer Manager for network controller enabled
[    1.684541] mvneta f1070000.ethernet eth0: Using random mac address 3e:f0:84:fe:f4:cb
[    1.693939] mvneta f1030000.ethernet eth1: Using random mac address 46:83:cc:de:e0:16
[    1.699822] ata1: SATA link down (SStatus 0 SControl 300)
[    1.707522] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.709864] ata2: SATA link down (SStatus 0 SControl 300)
[    1.719529] ehci-pci: EHCI PCI platform driver
[    1.724034] ehci-orion: EHCI orion driver
[    1.728158] orion-ehci f1058000.usb: EHCI Host Controller
[    1.733605] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    1.739960] ata3: SATA link down (SStatus 0 SControl 300)
[    1.746685] orion-ehci f1058000.usb: irq 38, io mem 0xf1058000
[    1.750103] ata4: SATA link down (SStatus 0 SControl 300)
[    1.778563] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    1.784612] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.791444] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.798704] usb usb1: Product: EHCI Host Controller
[    1.803602] usb usb1: Manufacturer: Linux 4.9.0-mvebu-tld-12 ehci_hcd
[    1.810076] usb usb1: SerialNumber: f1058000.usb
[    1.815051] hub 1-0:1.0: USB hub found
[    1.818843] hub 1-0:1.0: 1 port detected
[    1.823219] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.828579] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    1.836162] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.844753] xhci-hcd f10f0000.usb3: irq 46, io mem 0xf10f0000
[    1.850612] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    1.857431] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.864706] usb usb2: Product: xHCI Host Controller
[    1.869614] usb usb2: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.876081] usb usb2: SerialNumber: f10f0000.usb3
[    1.881106] hub 2-0:1.0: USB hub found
[    1.884886] hub 2-0:1.0: 1 port detected
[    1.888992] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.894332] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
[    1.901907] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.910104] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    1.916922] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.924182] usb usb3: Product: xHCI Host Controller
[    1.929569] usb usb3: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.936038] usb usb3: SerialNumber: f10f0000.usb3
[    1.941043] hub 3-0:1.0: USB hub found
[    1.944823] hub 3-0:1.0: 1 port detected
[    1.948992] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.954337] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    1.961919] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.970518] xhci-hcd f10f8000.usb3: irq 47, io mem 0xf10f8000
[    1.976365] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002
[    1.983193] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.990453] usb usb4: Product: xHCI Host Controller
[    1.995352] usb usb4: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    2.001863] usb usb4: SerialNumber: f10f8000.usb3
[    2.006860] hub 4-0:1.0: USB hub found
[    2.010654] hub 4-0:1.0: 1 port detected
[    2.014748] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    2.020097] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5
[    2.027654] usb usb5: We don't know the algorithms for LPM for this host, disabling LPM.
[    2.035843] usb usb5: New USB device found, idVendor=1d6b, idProduct=0003
[    2.042671] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.049931] usb usb5: Product: xHCI Host Controller
[    2.054829] usb usb5: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    2.061350] usb usb5: SerialNumber: f10f8000.usb3
[    2.066339] hub 5-0:1.0: USB hub found
[    2.070128] hub 5-0:1.0: 1 port detected
[    2.074318] usbcore: registered new interface driver usblp
[    2.079906] usbcore: registered new interface driver usb-storage
[    2.086110] mousedev: PS/2 mouse device common for all mice
[    2.092117] armada38x-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[    2.099798] i2c /dev entries driver
[    2.114593] orion_wdt: Initial timeout 171 sec
[    2.120272] marvell-cesa f1090000.crypto: CESA device successfully registered
[    2.127541] hidraw: raw HID events driver (C) Jiri Kosina
[    2.133166] usbcore: registered new interface driver usbhid
[    2.138774] usbhid: USB HID core driver
[    2.142743] drop_monitor: Initializing network drop monitor service
[    2.149077] Netfilter messages via NETLINK v0.30.
[    2.153811] ip_set: protocol 6
[    2.157047] NET: Registered protocol family 10
[    2.162087] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    2.168872] NET: Registered protocol family 17
[    2.173450] 8021q: 802.1Q VLAN Support v1.8
[    2.177672] Key type dns_resolver registered
[    2.182214] ThumbEE CPU extension supported.
[    2.186506] Registering SWP/SWPB emulation handler
[    2.191680] registered taskstats version 1
[    2.195795] Loading compiled-in X.509 certificates
[    2.200652] zswap: loaded using pool lzo/zbud
[    2.247299] Key type big_key registered
[    2.251185] usb 2-1: new high-speed USB device number 2 using xhci-hcd
[    2.261240] Key type encrypted registered
[    2.266191] armada38x-rtc f10a3800.rtc: setting system clock to 2017-07-04 05:45:40 UTC (1499147140)
[    2.276378] Freeing unused kernel memory: 1024K (c0c00000 - c0d00000)
Loading, please wait...
[    2.314239] systemd-udevd[1348]: starting version 215
[    2.320271] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    2.418813] usb 2-1: New USB device found, idVendor=045b, idProduct=0209
[    2.425564] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.435982] hub 2-1:1.0: USB hub found
[    2.441805] hub 2-1:1.0: 4 ports detected
[    2.558843] usb 3-1: new SuperSpeed USB device number 2 using xhci-hcd
[    2.590163] usb 3-1: New USB device found, idVendor=045b, idProduct=0210
[    2.596898] usb 3-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.604643] hub 3-1:1.0: USB hub found
[    2.608654] hub 3-1:1.0: 4 ports detected
[    2.768562] usb 2-1.3: new high-speed USB device number 3 using xhci-hcd
[    2.899198] usb 2-1.3: New USB device found, idVendor=0781, idProduct=5571
[    2.906104] usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.913458] usb 2-1.3: Product: Cruzer Fit
[    2.917571] usb 2-1.3: Manufacturer: SanDisk
[    2.921866] usb 2-1.3: SerialNumber: 4C530302071223122304
[    2.928094] usb-storage 2-1.3:1.0: USB Mass Storage device detected
[    2.934541] scsi host4: usb-storage 2-1.3:1.0
[    2.940463] usbcore: registered new interface driver uas
[    4.009082] scsi 4:0:0:0: Direct-Access     SanDisk  Cruzer Fit       1.00 PQ: 0 ANSI: 6
[    4.019120] sd 4:0:0:0: Attached scsi generic sg0 type 0
[    4.026167] sd 4:0:0:0: [sda] 61489152 512-byte logical blocks: (31.5 GB/29.3 GiB)
[    4.034804] sd 4:0:0:0: [sda] Write Protect is off
[    4.039933] sd 4:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    4.052093]  sda: sda1
[    4.060659] sd 4:0:0:0: [sda] Attached SCSI removable disk
[    4.075950] random: fast init done
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
modprobe: module ext3 not found in modules.dep
Begin: Will now check root file system ... fsck from util-linux 2.25.2
fsck: error 2 (No such file or directory) while executing fsck.ext3 for /dev/sda1
fsck exited with status code 8
done.
Warning: File system check failed but did not detect errors
[   17.723548] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   17.739595] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[....] Starting the hotplug events dispatcher: udevd[   18.511625] systemd-udevd[1555]: starting version 215
. ok
[ ok ] Synthesizing the initial hotplug events...done.
[ ok ] Waiting for /dev to be fully populated...done.
[ ok ] Activating swap...done.
[   19.209649] EXT4-fs (sda1): re-mounted. Opts: (null)
[....] Checking root file system...fsck from util-linux 2.25.2
rootfs: clean, 34220/1925120 files, 632170/7685888 blocks
done.
[   19.326785] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[ 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.
[   20.388963] 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:f0:84:fe:f4:cb
Sending on   LPF/eth0/3e:f0:84:fe:f4:cb
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 21
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
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 concurr[   82.472193] random: crng init done
ent boot in runlevel 2.
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
2501 (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...
2499 (klogd)
. ok

Debian GNU/Linux 8 debian ttyS0

debian login: root
Password:
Last login: Mon Jul  3 22:44:25 PDT 2017 on ttyS0
Linux debian 4.9.0-mvebu-tld-12 #2 SMP PREEMPT Wed Feb 1 02:31:29 PST 2017 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
debian

WD My Cloud EX4100
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
 22:57:23 up 11 min,  1 user,  load average: 0.00, 0.00, 0.00
root@debian:~# fw_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=run bootcmd_custom; setenv bootargs root=/dev/ram console=ttyS0,115200; 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_stock=echo Booting from stock ... ; run set_bootargs_stock; printenv bootargs; nand read.e 0xa00000 0x500000 0x500000;nand read.e 0xf00000 0xa00000 0x500000;bootm 0xa00000 0xf00000
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:46:25:2a
eth1mtu=1500
eth2addr=00:50:43:46:96:2a
eth2mtu=1500
eth3addr=00:50:43:25:96:46
eth3mtu=1500
ethact=egiga0
ethaddr=00:50:43:96:25:2a
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:2a:96:46
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
set_bootargs_stock=setenv bootargs root=/dev/ram console=ttyS0,115200
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
vxworks_en=no
yuk_ethaddr=00:00:00:EE:51:81
bootcmd_usb=echo Booting from USB ...; usb start; setenv fdt_skip_update yes; usb start; run usb_set_bootargs; if run load_image; then if run load_initrd; then bootm $load_image_addr $load_initrd_addr; else bootm $load_image_addr; fi; fi
bootcmd_custom=if run bootcmd_usb; then ; fi; run bootcmd_stock; reset
usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial mtdparts=armada-nand:5M(u-boot),5M(kernel),5M(uRamdisk),441M(image.cfs),15M(rescue_fw),20M(config),10M(reserve1),10M(reserve2)
root@debian:~#
Re: Debian on WD MyCloud EX 4100
July 04, 2017 04:23AM
I see.

The kernel did not use the mtdparts bootarg. It was the defintion from the DTS. The defition seems wrong as the kernel recognizes it. As you've printed it out before, the kernel uImage has a wrong size.

root@debian:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00500000 00020000 "U-Boot"
mtd1: 00a00000 00020000 "uImage"
mtd2: 00f00000 00020000 "uRamdisk"
mtd3: 1c800000 00020000 "image.cfs"
mtd4: 03800000 00020000 "rescue_fw"
mtd5: 02900000 00020000 "config"
mtd6: 01500000 00020000 "reserve1"
mtd7: 00b00000 00020000 "reserve2"

I guess I need to take a closer look at the DTS again.

BTW, this is a benign issue. Since we are booting Debian, the only relevant NAND partition is mtd0. We can safely ignore this issue. However, it should be fixed eventually.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
mcmg2
Re: Debian on WD MyCloud EX 4100
July 04, 2017 10:28PM
Possible to use same file for mirror gen2?
Re: Debian on WD MyCloud EX 4100
July 04, 2017 10:35PM
mcmg2 Wrote:
-------------------------------------------------------
> Possible to use same file for mirror gen2?


Which file do you mean? DTS for kernel or patched u-boot?

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
mcmg2
Re: Debian on WD MyCloud EX 4100
July 04, 2017 11:51PM
patched uboot.

dts for mirror gen2 is available on google drive

DTS

so if it is possible to boot with modified uboot, it is possible to boot with debian?
Re: Debian on WD MyCloud EX 4100
July 05, 2017 03:26AM
mcmg2 Wrote:
-------------------------------------------------------
> patched uboot.
>
> so if it is possible to boot with modified uboot,
> it is possible to boot with debian?

It is a different box. So u-boot itself is very likely will boot because it is basically the same SoC family (I have not looked at the Gen 2 specs closely). But to run Debian, this u-boot should be built for the Mirror Gen 2. There will be some hardware differences.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
Re: Debian on WD MyCloud EX 4100
July 05, 2017 12:40PM
Quote
mcmg2
so if it is possible to boot with modified uboot, it is possible to boot with debian?

It should be possible to build u-boot from the Western Digital sources and kwboot it (for testing). Once we've confirmed that it can boot successfully and you can modify the u-boot environment, it should be safe to flash to nand. Booting Debian should be possible with the correct kernel/dtb. Although I thought this was already possible from fox_exe? See: https://community.wd.com/t/clean-os-debian-openmediavault-and-other-firmwares/93714

But let's begin another thread for MCM u-boot so we do not clutter this EX4100 thread.



Edited 2 time(s). Last edit at 07/05/2017 01:05PM by hmartin.
Re: Debian on WD MyCloud EX 4100
July 06, 2017 02:01AM
@bodhi: could you please explain your changes to u-boot sources so it does not overwrite bootcmd? If you could provide a diff of the modifications it would be very helpful.

I am working on u-boot for MCM Gen 2 over here. I already built u-boot for MCM Gen 2 from WD GPL, and mcmg2 tested it with kwboot, so we know it's valid for the hardware.

The u-boot build includes the correct u-boot env offset and the saveenv command, but if there's somewhere else where it's ignoring the bootcmd stored on flash, then these modifications will be useless for booting Debian.
Re: Debian on WD MyCloud EX 4100
July 06, 2017 03:57AM
hmartin,

> @bodhi: could you please explain your changes to u
> -boot sources so it does not overwrite bootcmd? If
> you could provide a diff of the modifications it w
> ould be very helpful.

Sure! let me create the patch.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
Re: Debian on WD MyCloud EX 4100
July 08, 2017 01:18PM
bodhi,

i upgraded the kernel but i might have done something wrong as cat /proc/mtd shows now only 3 mtds.

I followed your description http://forum.doozan.com/read.php?2,32146
and did

 
cp -a zImage-4.10.9-mvebu-tld-1  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

before rebooting.

following the boot log, cat /proc/mtd and dmesg output.


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
(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 ...
3973573 bytes read in 284 ms (13.3 MiB/s)
loading uInitrd ...
6523051 bytes read in 375 ms (16.6 MiB/s)
## Booting image at 02000000 ...
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-4.9.0-mvebu-tld-12
   Created:      2017-07-08  17:02:46 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3973509 Bytes = 3.8 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 02900000 ...
   Image Name:   initramfs-4.10.9-mvebu-tld-1
   Created:      2017-07-08  16:42:22 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    6522987 Bytes = 6.2 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.10.9-mvebu-tld-1 (root@tldDebianVM) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4) ) #1 SMP PREEMPT Sat Apr 8 17:55:50 PDT 2017
[    0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt:Machine model: WD My Cloud EX4100
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 15 pages/cpu @eefcd000 s30796 r8192 d22452 u61440
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 522752
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial mtdparts=armada-nand:5M(u-boot),5M(kernel),5M(uRamdisk),441M(image.cfs),15M(rescue_fw),20M(config),10M(reserve1),10M(reserve2)
[    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: 2060012K/2097152K available (8192K kernel code, 696K rwdata, 2084K rodata, 1024K init, 385K bss, 37140K 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 - 0xc0dae250   ( 697 kB)
[    0.000000]        .bss : 0xc0dae250 - 0xc0e0ea00   ( 386 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.019076] Console: colour dummy device 80x30
[    0.023590] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[    0.033981] pid_max: default: 32768 minimum: 301
[    0.038731] 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.057090] CPU: Testing write buffer coherency: ok
[    0.062154] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.093878] Setting up static identity map for 0x100000 - 0x100058
[    0.100176] mvebu-soc-id: MVEBU SoC ID=0x6828, Rev=0x4
[    0.105458] mvebu-pmsu: Initializing Power Management Service Unit
[    0.193867] smp: Bringing up secondary CPUs ...
[    0.253914] Booting CPU 1
[    0.256755] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.256799] smp: Brought up 1 node, 2 CPUs
[    0.266680] SMP: Total of 2 processors activated (100.00 BogoMIPS).
[    0.272999] CPU: All CPU(s) started in SVC mode.
[    0.278220] devtmpfs: initialized
[    0.283400] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.291326] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.301217] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.307436] prandom: seed boundary self test passed
[    0.314072] prandom: 100 self tests passed
[    0.318232] pinctrl core: initialized pinctrl subsystem
[    0.324142] NET: Registered protocol family 16
[    0.329200] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.363869] cpuidle: using governor ladder
[    0.393867] cpuidle: using governor menu
[    0.397957] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.406025] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.412004] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.420159] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.484263] vgaarb: loaded
[    0.487250] SCSI subsystem initialized
[    0.491468] usbcore: registered new interface driver usbfs
[    0.497097] usbcore: registered new interface driver hub
[    0.502520] usbcore: registered new device driver usb
[    0.507838] Linux cec interface: v0.10
[    0.511694] media: Linux media interface: v0.10
[    0.516356] Linux video capture interface: v2.00
[    0.521824] clocksource: Switched to clocksource armada_370_xp_clocksource
[    0.552117] VFS: Disk quotas dquot_6.6.0
[    0.556145] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.570070] NET: Registered protocol family 2
[    0.574868] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.582029] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.588579] TCP: Hash tables configured (established 8192 bind 8192)
[    0.595035] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.601028] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.607555] NET: Registered protocol family 1
[    0.612297] RPC: Registered named UNIX socket transport module.
[    0.618272] RPC: Registered udp transport module.
[    0.623062] RPC: Registered tcp transport module.
[    0.627826] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.634435] Unpacking initramfs...
[    0.848933] Freeing initrd memory: 6372K
[    0.853054] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.859741] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.868948] audit: initializing netlink subsys (disabled)
[    0.874968] Initialise system trusted keyrings
[    0.879602] workingset: timestamp_bits=30 max_order=19 bucket_order=0
[    0.886185] zbud: loaded
[    0.889301] NFS: Registering the id_resolver key type
[    0.894445] Key type id_resolver registered
[    0.898691] Key type id_legacy registered
[    0.902781] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.909533] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.916094] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.923486] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.930073] orangefs_init: module version upstream loaded
[    0.937536] Key type asymmetric registered
[    0.941698] Asymmetric key parser 'x509' registered
[    0.946674] bounce: pool size: 64 pages
[    0.950648] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[    0.958102] io scheduler noop registered
[    0.962097] io scheduler deadline registered
[    0.966442] io scheduler cfq registered (default)
[    0.972048] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    0.980473] mvebu-pcie soc:pcie-controller: PCI host bridge to bus 0000:00
[    0.987418] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    0.993749] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    1.000675] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.006589] PCI: bus0: Fast back to back transfers disabled
[    1.012236] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.020291] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.028454] PCI: bus1: Fast back to back transfers enabled
[    1.034113] PCI: bus2: Fast back to back transfers enabled
[    1.039693] pci 0000:00:01.0: PCI bridge to [bus 01]
[    1.044733] pci 0000:00:02.0: PCI bridge to [bus 02]
[    1.050166] mv_xor f1060800.xor: Marvell shared XOR driver
[    1.112220] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy sg intr )
[    1.120078] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.182216] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy sg intr )
[    1.232689] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.240317] console [ttyS0] disabled
[    1.264048] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 22, base_baud = 12500000) is a 16550A
[    1.273080] console [ttyS0] enabled
[    1.273080] console [ttyS0] enabled
[    1.280166] bootconsole [earlycon0] disabled
[    1.280166] bootconsole [earlycon0] disabled
[    1.289743] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.298849] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.308400] scsi host0: ahci-mvebu
[    1.312111] scsi host1: ahci-mvebu
[    1.315711] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 42
[    1.323677] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 42
[    1.331765] ahci-mvebu f10e0000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.340867] ahci-mvebu f10e0000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.360229] scsi host2: ahci-mvebu
[    1.363881] scsi host3: ahci-mvebu
[    1.367432] ata3: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x100 irq 43
[    1.375396] ata4: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x180 irq 43
[    1.383837] pxa3xx-nand f10d0000.flash: This platform can't do DMA on this device
[    1.391714] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xdc
[    1.398109] nand: Hynix H27U4G8F2DTR-BC
[    1.401985] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.409589] pxa3xx-nand f10d0000.flash: ECC strength 16, ECC step size 2048
[    1.416776] Bad block table found at page 262080, version 0x01
[    1.422962] Bad block table found at page 262016, version 0x01
[    1.428989] nand_read_bbt: bad block at 0x00000dcc0000
[    1.434159] nand_read_bbt: bad block at 0x00000fb00000
[    1.439319] nand_read_bbt: bad block at 0x000012180000
[    1.444486] nand_read_bbt: bad block at 0x0000139a0000
[    1.449647] nand_read_bbt: bad block at 0x000017880000
[    1.454812] nand_read_bbt: bad block at 0x0000178a0000
[    1.459971] nand_read_bbt: bad block at 0x00001a640000
[    1.465140] nand_read_bbt: bad block at 0x00001e9c0000
[    1.470331] 3 ofpart partitions found on MTD device pxa3xx_nand-0
[    1.476458] Creating 3 MTD partitions on "pxa3xx_nand-0":
[    1.481886] 0x000000000000-0x000000800000 : "U-Boot"
[    1.497556] 0x000000800000-0x000001000000 : "Linux"
[    1.513091] 0x000001000000-0x000040000000 : "Filesystem"
[    1.518426] mtd: partition "Filesystem" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x1f000000
[    1.542286] m25p80 spi0.0: unrecognized JEDEC id bytes: ff, ff, ff
[    1.548913] libphy: Fixed MDIO Bus: probed
[    1.553437] libphy: orion_mdio_bus: probed
[    1.563034] mvneta_bm f10c8000.bm: Buffer Manager for network controller enabled
[    1.572094] mvneta f1070000.ethernet eth0: Using random mac address 7e:1e:52:22:91:38
[    1.581576] mvneta f1030000.ethernet eth1: Using random mac address ea:a8:f8:f9:4f:25
[    1.589643] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.596222] ehci-pci: EHCI PCI platform driver
[    1.600721] ehci-orion: EHCI orion driver
[    1.604881] orion-ehci f1058000.usb: EHCI Host Controller
[    1.610329] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    1.618000] orion-ehci f1058000.usb: irq 38, io mem 0xf1058000
[    1.651832] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    1.657895] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.663098] ata1: SATA link down (SStatus 0 SControl 300)
[    1.670175] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.673115] ata2: SATA link down (SStatus 0 SControl 300)
[    1.682876] usb usb1: Product: EHCI Host Controller
[    1.687775] usb usb1: Manufacturer: Linux 4.10.9-mvebu-tld-1 ehci_hcd
[    1.694258] usb usb1: SerialNumber: f1058000.usb
[    1.699202] hub 1-0:1.0: USB hub found
[    1.703004] hub 1-0:1.0: 1 port detected
[    1.707381] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.712739] ata3: SATA link down (SStatus 0 SControl 300)
[    1.718187] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    1.723097] ata4: SATA link down (SStatus 0 SControl 300)
[    1.731195] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.739787] xhci-hcd f10f0000.usb3: irq 46, io mem 0xf10f0000
[    1.745641] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    1.752485] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.759737] usb usb2: Product: xHCI Host Controller
[    1.764642] usb usb2: Manufacturer: Linux 4.10.9-mvebu-tld-1 xhci-hcd
[    1.771109] usb usb2: SerialNumber: f10f0000.usb3
[    1.776122] hub 2-0:1.0: USB hub found
[    1.779905] hub 2-0:1.0: 1 port detected
[    1.784013] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.789353] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
[    1.796929] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.805117] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    1.812887] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.820139] usb usb3: Product: xHCI Host Controller
[    1.825045] usb usb3: Manufacturer: Linux 4.10.9-mvebu-tld-1 xhci-hcd
[    1.831513] usb usb3: SerialNumber: f10f0000.usb3
[    1.836511] hub 3-0:1.0: USB hub found
[    1.840290] hub 3-0:1.0: 1 port detected
[    1.844459] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.849802] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    1.857388] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.865984] xhci-hcd f10f8000.usb3: irq 47, io mem 0xf10f8000
[    1.871842] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002
[    1.878660] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.885920] usb usb4: Product: xHCI Host Controller
[    1.890818] usb usb4: Manufacturer: Linux 4.10.9-mvebu-tld-1 xhci-hcd
[    1.897329] usb usb4: SerialNumber: f10f8000.usb3
[    1.902350] hub 4-0:1.0: USB hub found
[    1.906128] hub 4-0:1.0: 1 port detected
[    1.910220] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.915573] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5
[    1.923133] usb usb5: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.931316] usb usb5: New USB device found, idVendor=1d6b, idProduct=0003
[    1.938142] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.945402] usb usb5: Product: xHCI Host Controller
[    1.950299] usb usb5: Manufacturer: Linux 4.10.9-mvebu-tld-1 xhci-hcd
[    1.956818] usb usb5: SerialNumber: f10f8000.usb3
[    1.961807] hub 5-0:1.0: USB hub found
[    1.965595] hub 5-0:1.0: 1 port detected
[    1.969772] usbcore: registered new interface driver usblp
[    1.975361] usbcore: registered new interface driver usb-storage
[    1.981560] mousedev: PS/2 mouse device common for all mice
[    1.987511] armada38x-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[    1.995183] i2c /dev entries driver
[    2.009560] (NULL device *): hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[    2.022267] orion_wdt: Initial timeout 171 sec
[    2.027824] marvell-cesa f1090000.crypto: CESA device successfully registered
[    2.035102] hidraw: raw HID events driver (C) Jiri Kosina
[    2.040693] usbcore: registered new interface driver usbhid
[    2.046302] usbhid: USB HID core driver
[    2.050269] drop_monitor: Initializing network drop monitor service
[    2.056605] Netfilter messages via NETLINK v0.30.
[    2.061347] ip_set: protocol 6
[    2.064688] NET: Registered protocol family 10
[    2.069740] Segment Routing with IPv6
[    2.073569] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    2.080184] NET: Registered protocol family 17
[    2.084778] 8021q: 802.1Q VLAN Support v1.8
[    2.088999] Key type dns_resolver registered
[    2.093426] ThumbEE CPU extension supported.
[    2.097716] Registering SWP/SWPB emulation handler
[    2.102849] registered taskstats version 1
[    2.106964] Loading compiled-in X.509 certificates
[    2.111810] zswap: loaded using pool lzo/zbud
[    2.155335] usb 2-1: new high-speed USB device number 2 using xhci-hcd
[    2.165316] Key type big_key registered
[    2.172431] Key type encrypted registered
[    2.177455] armada38x-rtc f10a3800.rtc: setting system clock to 2017-07-08 17:03:48 UTC (1499533428)
[    2.187641] Freeing unused kernel memory: 1024K
Loading, please wait...
[    2.223136] systemd-udevd[1330]: starting version 215
[    2.229041] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    2.342069] usb 2-1: New USB device found, idVendor=045b, idProduct=0209
[    2.348813] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.356382] hub 2-1:1.0: USB hub found
[    2.360183] hub 2-1:1.0: 4 ports detected
[    2.482011] usb 3-1: new SuperSpeed USB device number 2 using xhci-hcd
[    2.513417] usb 3-1: New USB device found, idVendor=045b, idProduct=0210
[    2.520149] usb 3-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.528053] hub 3-1:1.0: USB hub found
[    2.532149] hub 3-1:1.0: 4 ports detected
[    2.681842] usb 2-1.3: new high-speed USB device number 3 using xhci-hcd
[    2.812481] usb 2-1.3: New USB device found, idVendor=0781, idProduct=5571
[    2.819387] usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.826739] usb 2-1.3: Product: Cruzer Fit
[    2.830852] usb 2-1.3: Manufacturer: SanDisk
[    2.835147] usb 2-1.3: SerialNumber: 4C530302071223122304
[    2.843050] usb-storage 2-1.3:1.0: USB Mass Storage device detected
[    2.859569] scsi host4: usb-storage 2-1.3:1.0
[    2.864376] usbcore: registered new interface driver uas
[    3.932352] scsi 4:0:0:0: Direct-Access     SanDisk  Cruzer Fit       1.00 PQ: 0 ANSI: 6
[    3.953037] sd 4:0:0:0: Attached scsi generic sg0 type 0
[    3.958989] sd 4:0:0:0: [sda] 61489152 512-byte logical blocks: (31.5 GB/29.3 GiB)
[    3.967703] sd 4:0:0:0: [sda] Write Protect is off
[    3.972834] sd 4:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    3.985610]  sda: sda1
[    3.994608] sd 4:0:0:0: [sda] Attached SCSI removable disk
[    4.009668] random: fast init done
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
modprobe: module ext3 not found in modules.dep
Begin: Will now check root file system ... fsck from util-linux 2.25.2
[/sbin/fsck.ext3 (1) -- /dev/sda1] fsck.ext3 -a -C0 /dev/sda1
rootfs: clean, 36825/1925120 files, 675672/7685888 blocks
done.
[   12.685861] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   12.713018] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[....] Starting the hotplug events dispatcher: udevd[   13.504308] systemd-udevd[1538]: starting version 215
. ok
[ ok ] Synthesizing the initial hotplug events...done.
[ ok ] Waiting for /dev to be fully populated...done.
[ ok ] Activating swap...done.
[   14.176005] EXT4-fs (sda1): re-mounted. Opts: (null)
[....] Checking root file system...fsck from util-linux 2.25.2
rootfs: clean, 36825/1925120 files, 675672/7685888 blocks
done.
[   14.292663] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[ 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.332244] 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/7e:1e:52:22:91:38
Sending on   LPF/eth0/7e:1e:52:22:91:38
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 15
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 13
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
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...
2472 (syslogd)
. ok
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[   77.061839] random: crng init done
[ 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...
2471 (klogd)
. ok

Debian GNU/Linux 8 debian ttyS0

debian login: root
Password:
Last login: Sat Jul  8 09:50:11 PDT 2017 on ttyS0
Linux debian 4.10.9-mvebu-tld-1 #1 SMP PREEMPT Sat Apr 8 17:55:50 PDT 2017 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
debian

WD My Cloud EX4100
Linux version 4.10.9-mvebu-tld-1 (root@tldDebianVM) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4) ) #1 SMP PREEMPT Sat Apr 8 17:55:50 PDT 2017
 10:12:54 up 9 min,  1 user,  load average: 0.00, 0.00, 0.00
root@debian:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00800000 00020000 "U-Boot"
mtd1: 00800000 00020000 "Linux"
mtd2: 1f000000 00020000 "Filesystem"
root@debian:~# dmesg
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.10.9-mvebu-tld-1 (root@tldDebianVM) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4) ) #1 SMP PREEMPT Sat Apr 8 17:55:50 PDT 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] On node 0 totalpages: 524288
[    0.000000] free_area_init_node: node 0, pgdat c0d995c0, node_mem_map eeff8000
[    0.000000]   Normal zone: 1536 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 196608 pages, LIFO batch:31
[    0.000000]   HighMem zone: 327680 pages, LIFO batch:31
[    0.000000] percpu: Embedded 15 pages/cpu @eefcd000 s30796 r8192 d22452 u61440
[    0.000000] pcpu-alloc: s30796 r8192 d22452 u61440 alloc=15*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 522752
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial mtdparts=armada-nand:5M(u-boot),5M(kernel),5M(uRamdisk),441M(image.cfs),15M(rescue_fw),20M(config),10M(reserve1),10M(reserve2)
[    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: 2060012K/2097152K available (8192K kernel code, 696K rwdata, 2084K rodata, 1024K init, 385K bss, 37140K reserved, 0K cma-reserved, 1310720K highmem)
[    0.000000] Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
    lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
    pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    modules : 0xbf000000 - 0xbfe00000   (  14 MB)
      .text : 0xc0008000 - 0xc0900000   (9184 kB)
      .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
      .data : 0xc0d00000 - 0xc0dae250   ( 697 kB)
       .bss : 0xc0dae250 - 0xc0e0ea00   ( 386 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.019076] Console: colour dummy device 80x30
[    0.023590] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[    0.033981] pid_max: default: 32768 minimum: 301
[    0.038731] 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.057090] CPU: Testing write buffer coherency: ok
[    0.062154] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.093878] Setting up static identity map for 0x100000 - 0x100058
[    0.100176] mvebu-soc-id: MVEBU SoC ID=0x6828, Rev=0x4
[    0.105458] mvebu-pmsu: Initializing Power Management Service Unit
[    0.193867] smp: Bringing up secondary CPUs ...
[    0.253914] Booting CPU 1
[    0.256755] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.256799] smp: Brought up 1 node, 2 CPUs
[    0.266680] SMP: Total of 2 processors activated (100.00 BogoMIPS).
[    0.272999] CPU: All CPU(s) started in SVC mode.
[    0.278220] devtmpfs: initialized
[    0.283400] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.291326] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.301217] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.307436] prandom: seed boundary self test passed
[    0.314072] prandom: 100 self tests passed
[    0.318232] pinctrl core: initialized pinctrl subsystem
[    0.324142] NET: Registered protocol family 16
[    0.329200] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.363869] cpuidle: using governor ladder
[    0.393867] cpuidle: using governor menu
[    0.397957] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.406025] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.412004] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.420159] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.484263] vgaarb: loaded
[    0.487250] SCSI subsystem initialized
[    0.491205] libata version 3.00 loaded.
[    0.491468] usbcore: registered new interface driver usbfs
[    0.497097] usbcore: registered new interface driver hub
[    0.502520] usbcore: registered new device driver usb
[    0.507838] Linux cec interface: v0.10
[    0.511694] media: Linux media interface: v0.10
[    0.516356] Linux video capture interface: v2.00
[    0.521824] clocksource: Switched to clocksource armada_370_xp_clocksource
[    0.552117] VFS: Disk quotas dquot_6.6.0
[    0.556145] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.570070] NET: Registered protocol family 2
[    0.574868] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.582029] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.588579] TCP: Hash tables configured (established 8192 bind 8192)
[    0.595035] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.601028] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.607555] NET: Registered protocol family 1
[    0.612297] RPC: Registered named UNIX socket transport module.
[    0.618272] RPC: Registered udp transport module.
[    0.623062] RPC: Registered tcp transport module.
[    0.627826] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.634328] PCI: CLS 0 bytes, default 64
[    0.634435] Unpacking initramfs...
[    0.848933] Freeing initrd memory: 6372K
[    0.853054] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.859741] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.868948] audit: initializing netlink subsys (disabled)
[    0.874968] Initialise system trusted keyrings
[    0.879602] workingset: timestamp_bits=30 max_order=19 bucket_order=0
[    0.886185] zbud: loaded
[    0.889301] NFS: Registering the id_resolver key type
[    0.894445] Key type id_resolver registered
[    0.898691] Key type id_legacy registered
[    0.902781] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.909533] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.916094] jffs2: version 2.2. (NAND) (SUMMARY)  \xffffffc2\xffffffa9 2001-2006 Red Hat, Inc.
[    0.923486] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.930073] orangefs_init: module version upstream loaded
[    0.937536] Key type asymmetric registered
[    0.941698] Asymmetric key parser 'x509' registered
[    0.946674] bounce: pool size: 64 pages
[    0.950648] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[    0.958102] io scheduler noop registered
[    0.962097] io scheduler deadline registered
[    0.966442] io scheduler cfq registered (default)
[    0.972048] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    0.980473] mvebu-pcie soc:pcie-controller: PCI host bridge to bus 0000:00
[    0.987418] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    0.993749] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    1.000675] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.006229] pci_bus 0000:00: scanning bus
[    1.006244] pci 0000:00:01.0: [11ab:6828] type 01 class 0x060400
[    1.006270] pci 0000:00:01.0: calling pci_fixup_ide_bases+0x0/0x3c
[    1.006430] pci 0000:00:02.0: [11ab:6828] type 01 class 0x060400
[    1.006450] pci 0000:00:02.0: calling pci_fixup_ide_bases+0x0/0x3c
[    1.006582] pci_bus 0000:00: fixups for bus
[    1.006589] PCI: bus0: Fast back to back transfers disabled
[    1.012232] pci 0000:00:01.0: scanning [bus 00-00] behind bridge, pass 0
[    1.012236] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.020288] pci 0000:00:02.0: scanning [bus 00-00] behind bridge, pass 0
[    1.020291] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.028350] pci 0000:00:01.0: scanning [bus 00-00] behind bridge, pass 1
[    1.028446] pci_bus 0000:01: scanning bus
[    1.028451] pci_bus 0000:01: fixups for bus
[    1.028454] PCI: bus1: Fast back to back transfers enabled
[    1.034006] pci_bus 0000:01: bus scan returning with max=01
[    1.034011] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    1.034018] pci 0000:00:02.0: scanning [bus 00-00] behind bridge, pass 1
[    1.034106] pci_bus 0000:02: scanning bus
[    1.034111] pci_bus 0000:02: fixups for bus
[    1.034113] PCI: bus2: Fast back to back transfers enabled
[    1.039656] pci_bus 0000:02: bus scan returning with max=02
[    1.039661] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    1.039666] pci_bus 0000:00: bus scan returning with max=02
[    1.039671] pci 0000:00:01.0: fixup irq: got 0
[    1.039674] pci 0000:00:01.0: assigning IRQ 00
[    1.039678] pci 0000:00:02.0: fixup irq: got 0
[    1.039681] pci 0000:00:02.0: assigning IRQ 00
[    1.039693] pci 0000:00:01.0: PCI bridge to [bus 01]
[    1.044733] pci 0000:00:02.0: PCI bridge to [bus 02]
[    1.049793] pcieport 0000:00:01.0: enabling bus mastering
[    1.049827] pcieport 0000:00:02.0: enabling bus mastering
[    1.050166] mv_xor f1060800.xor: Marvell shared XOR driver
[    1.112220] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy sg intr )
[    1.120078] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.182216] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy sg intr )
[    1.232689] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.240317] console [ttyS0] disabled
[    1.264048] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 22, base_baud = 12500000) is a 16550A
[    1.273080] console [ttyS0] enabled
[    1.280166] bootconsole [earlycon0] disabled
[    1.289743] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.298849] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.308400] scsi host0: ahci-mvebu
[    1.312111] scsi host1: ahci-mvebu
[    1.315711] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 42
[    1.323677] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 42
[    1.331765] ahci-mvebu f10e0000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.340867] ahci-mvebu f10e0000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.360229] scsi host2: ahci-mvebu
[    1.363881] scsi host3: ahci-mvebu
[    1.367432] ata3: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x100 irq 43
[    1.375396] ata4: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x180 irq 43
[    1.383837] pxa3xx-nand f10d0000.flash: This platform can't do DMA on this device
[    1.391714] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xdc
[    1.398109] nand: Hynix H27U4G8F2DTR-BC
[    1.401985] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.409589] pxa3xx-nand f10d0000.flash: ECC strength 16, ECC step size 2048
[    1.416776] Bad block table found at page 262080, version 0x01
[    1.422962] Bad block table found at page 262016, version 0x01
[    1.428989] nand_read_bbt: bad block at 0x00000dcc0000
[    1.434159] nand_read_bbt: bad block at 0x00000fb00000
[    1.439319] nand_read_bbt: bad block at 0x000012180000
[    1.444486] nand_read_bbt: bad block at 0x0000139a0000
[    1.449647] nand_read_bbt: bad block at 0x000017880000
[    1.454812] nand_read_bbt: bad block at 0x0000178a0000
[    1.459971] nand_read_bbt: bad block at 0x00001a640000
[    1.465140] nand_read_bbt: bad block at 0x00001e9c0000
[    1.470331] 3 ofpart partitions found on MTD device pxa3xx_nand-0
[    1.476458] Creating 3 MTD partitions on "pxa3xx_nand-0":
[    1.481886] 0x000000000000-0x000000800000 : "U-Boot"
[    1.497556] 0x000000800000-0x000001000000 : "Linux"
[    1.513091] 0x000001000000-0x000040000000 : "Filesystem"
[    1.518426] mtd: partition "Filesystem" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x1f000000
[    1.542286] m25p80 spi0.0: unrecognized JEDEC id bytes: ff, ff, ff
[    1.548913] libphy: Fixed MDIO Bus: probed
[    1.553437] libphy: orion_mdio_bus: probed
[    1.563034] mvneta_bm f10c8000.bm: Buffer Manager for network controller enabled
[    1.572094] mvneta f1070000.ethernet eth0: Using random mac address 7e:1e:52:22:91:38
[    1.581576] mvneta f1030000.ethernet eth1: Using random mac address ea:a8:f8:f9:4f:25
[    1.589643] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.596222] ehci-pci: EHCI PCI platform driver
[    1.600721] ehci-orion: EHCI orion driver
[    1.604881] orion-ehci f1058000.usb: EHCI Host Controller
[    1.610329] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    1.618000] orion-ehci f1058000.usb: irq 38, io mem 0xf1058000
[    1.651832] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    1.657895] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.663098] ata1: SATA link down (SStatus 0 SControl 300)
[    1.670175] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.673115] ata2: SATA link down (SStatus 0 SControl 300)
[    1.682876] usb usb1: Product: EHCI Host Controller
[    1.687775] usb usb1: Manufacturer: Linux 4.10.9-mvebu-tld-1 ehci_hcd
[    1.694258] usb usb1: SerialNumber: f1058000.usb
[    1.699202] hub 1-0:1.0: USB hub found
[    1.703004] hub 1-0:1.0: 1 port detected
[    1.707381] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.712739] ata3: SATA link down (SStatus 0 SControl 300)
[    1.718187] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    1.723097] ata4: SATA link down (SStatus 0 SControl 300)
[    1.731195] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.739787] xhci-hcd f10f0000.usb3: irq 46, io mem 0xf10f0000
[    1.745641] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    1.752485] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.759737] usb usb2: Product: xHCI Host Controller
[    1.764642] usb usb2: Manufacturer: Linux 4.10.9-mvebu-tld-1 xhci-hcd
[    1.771109] usb usb2: SerialNumber: f10f0000.usb3
[    1.776122] hub 2-0:1.0: USB hub found
[    1.779905] hub 2-0:1.0: 1 port detected
[    1.784013] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.789353] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
[    1.796929] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.805117] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    1.812887] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.820139] usb usb3: Product: xHCI Host Controller
[    1.825045] usb usb3: Manufacturer: Linux 4.10.9-mvebu-tld-1 xhci-hcd
[    1.831513] usb usb3: SerialNumber: f10f0000.usb3
[    1.836511] hub 3-0:1.0: USB hub found
[    1.840290] hub 3-0:1.0: 1 port detected
[    1.844459] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.849802] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    1.857388] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.865984] xhci-hcd f10f8000.usb3: irq 47, io mem 0xf10f8000
[    1.871842] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002
[    1.878660] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.885920] usb usb4: Product: xHCI Host Controller
[    1.890818] usb usb4: Manufacturer: Linux 4.10.9-mvebu-tld-1 xhci-hcd
[    1.897329] usb usb4: SerialNumber: f10f8000.usb3
[    1.902350] hub 4-0:1.0: USB hub found
[    1.906128] hub 4-0:1.0: 1 port detected
[    1.910220] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.915573] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5
[    1.923133] usb usb5: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.931316] usb usb5: New USB device found, idVendor=1d6b, idProduct=0003
[    1.938142] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.945402] usb usb5: Product: xHCI Host Controller
[    1.950299] usb usb5: Manufacturer: Linux 4.10.9-mvebu-tld-1 xhci-hcd
[    1.956818] usb usb5: SerialNumber: f10f8000.usb3
[    1.961807] hub 5-0:1.0: USB hub found
[    1.965595] hub 5-0:1.0: 1 port detected
[    1.969772] usbcore: registered new interface driver usblp
[    1.975361] usbcore: registered new interface driver usb-storage
[    1.981560] mousedev: PS/2 mouse device common for all mice
[    1.987511] armada38x-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[    1.995183] i2c /dev entries driver
[    2.009560] (NULL device *): hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[    2.022267] orion_wdt: Initial timeout 171 sec
[    2.027824] marvell-cesa f1090000.crypto: CESA device successfully registered
[    2.035102] hidraw: raw HID events driver (C) Jiri Kosina
[    2.040693] usbcore: registered new interface driver usbhid
[    2.046302] usbhid: USB HID core driver
[    2.050269] drop_monitor: Initializing network drop monitor service
[    2.056605] Netfilter messages via NETLINK v0.30.
[    2.061347] ip_set: protocol 6
[    2.064688] NET: Registered protocol family 10
[    2.069740] Segment Routing with IPv6
[    2.073569] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    2.080184] NET: Registered protocol family 17
[    2.084778] 8021q: 802.1Q VLAN Support v1.8
[    2.088999] Key type dns_resolver registered
[    2.093426] ThumbEE CPU extension supported.
[    2.097716] Registering SWP/SWPB emulation handler
[    2.102849] registered taskstats version 1
[    2.106964] Loading compiled-in X.509 certificates
[    2.111810] zswap: loaded using pool lzo/zbud
[    2.155335] usb 2-1: new high-speed USB device number 2 using xhci-hcd
[    2.165316] Key type big_key registered
[    2.172431] Key type encrypted registered
[    2.177455] armada38x-rtc f10a3800.rtc: setting system clock to 2017-07-08 17:03:48 UTC (1499533428)
[    2.186731] PM: Hibernation image not present or could not be loaded.
[    2.187641] Freeing unused kernel memory: 1024K
[    2.223136] systemd-udevd[1330]: starting version 215
[    2.229041] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    2.342069] usb 2-1: New USB device found, idVendor=045b, idProduct=0209
[    2.348813] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.356382] hub 2-1:1.0: USB hub found
[    2.360183] hub 2-1:1.0: 4 ports detected
[    2.482011] usb 3-1: new SuperSpeed USB device number 2 using xhci-hcd
[    2.513417] usb 3-1: New USB device found, idVendor=045b, idProduct=0210
[    2.520149] usb 3-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.528053] hub 3-1:1.0: USB hub found
[    2.532149] hub 3-1:1.0: 4 ports detected
[    2.681842] usb 2-1.3: new high-speed USB device number 3 using xhci-hcd
[    2.812481] usb 2-1.3: New USB device found, idVendor=0781, idProduct=5571
[    2.819387] usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.826739] usb 2-1.3: Product: Cruzer Fit
[    2.830852] usb 2-1.3: Manufacturer: SanDisk
[    2.835147] usb 2-1.3: SerialNumber: 4C530302071223122304
[    2.843050] usb-storage 2-1.3:1.0: USB Mass Storage device detected
[    2.859569] scsi host4: usb-storage 2-1.3:1.0
[    2.864376] usbcore: registered new interface driver uas
[    3.932352] scsi 4:0:0:0: Direct-Access     SanDisk  Cruzer Fit       1.00 PQ: 0 ANSI: 6
[    3.953037] sd 4:0:0:0: Attached scsi generic sg0 type 0
[    3.958989] sd 4:0:0:0: [sda] 61489152 512-byte logical blocks: (31.5 GB/29.3 GiB)
[    3.967703] sd 4:0:0:0: [sda] Write Protect is off
[    3.972552] sd 4:0:0:0: [sda] Mode Sense: 43 00 00 00
[    3.972834] sd 4:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    3.985610]  sda: sda1
[    3.994608] sd 4:0:0:0: [sda] Attached SCSI removable disk
[    4.009668] random: fast init done
[   12.685861] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   12.713018] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[   13.504308] systemd-udevd[1538]: starting version 215
[   14.176005] EXT4-fs (sda1): re-mounted. Opts: (null)
[   14.292663] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[   15.332244] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   77.061839] random: crng init done
root@debian:~#

-
happy hacking,

saschadd
Re: Debian on WD MyCloud EX 4100
July 08, 2017 05:42PM
saschadd,

This is the old DTB :) you should delete this DTB to avoid confusion.

cat dts/armada-385-wd-ex4100.dtb  >> zImage.fdt

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
Re: Debian on WD MyCloud EX 4100
July 09, 2017 04:32AM
bodhi,

you were right.
i was sure that it might be a "small" mistake i didnt see.

following the bootlog, cat /proc/mtd and dmesg

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
(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 ...
3973937 bytes read in 283 ms (13.4 MiB/s)
loading uInitrd ...
6523051 bytes read in 375 ms (16.6 MiB/s)
## Booting image at 02000000 ...
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-4.9.0-mvebu-tld-12
   Created:      2017-07-09   8:26:31 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3973873 Bytes = 3.8 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 02900000 ...
   Image Name:   initramfs-4.10.9-mvebu-tld-1
   Created:      2017-07-08  16:42:22 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    6522987 Bytes = 6.2 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.10.9-mvebu-tld-1 (root@tldDebianVM) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4) ) #1 SMP PREEMPT Sat Apr 8 17:55:50 PDT 2017
[    0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt:Machine model: WD My Cloud EX4100
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 15 pages/cpu @eefcd000 s30796 r8192 d22452 u61440
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 522752
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial mtdparts=armada-nand:5M(u-boot),5M(kernel),5M(uRamdisk),441M(image.cfs),15M(rescue_fw),20M(config),10M(reserve1),10M(reserve2)
[    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: 2060012K/2097152K available (8192K kernel code, 696K rwdata, 2084K rodata, 1024K init, 385K bss, 37140K 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 - 0xc0dae250   ( 697 kB)
[    0.000000]        .bss : 0xc0dae250 - 0xc0e0ea00   ( 386 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.019078] Console: colour dummy device 80x30
[    0.023592] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[    0.033983] pid_max: default: 32768 minimum: 301
[    0.038733] Security Framework initialized
[    0.042929] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.049602] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.057090] CPU: Testing write buffer coherency: ok
[    0.062153] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.093879] Setting up static identity map for 0x100000 - 0x100058
[    0.100177] mvebu-soc-id: MVEBU SoC ID=0x6828, Rev=0x4
[    0.105458] mvebu-pmsu: Initializing Power Management Service Unit
[    0.193867] smp: Bringing up secondary CPUs ...
[    0.253913] Booting CPU 1
[    0.256754] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.256798] smp: Brought up 1 node, 2 CPUs
[    0.266679] SMP: Total of 2 processors activated (100.00 BogoMIPS).
[    0.272998] CPU: All CPU(s) started in SVC mode.
[    0.278221] devtmpfs: initialized
[    0.283447] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.291372] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.301262] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.307481] prandom: seed boundary self test passed
[    0.314116] prandom: 100 self tests passed
[    0.318276] pinctrl core: initialized pinctrl subsystem
[    0.324187] NET: Registered protocol family 16
[    0.329230] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.363869] cpuidle: using governor ladder
[    0.393866] cpuidle: using governor menu
[    0.397955] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.406023] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.412003] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.420157] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.484267] vgaarb: loaded
[    0.487256] SCSI subsystem initialized
[    0.491474] usbcore: registered new interface driver usbfs
[    0.497103] usbcore: registered new interface driver hub
[    0.502527] usbcore: registered new device driver usb
[    0.507842] Linux cec interface: v0.10
[    0.511698] media: Linux media interface: v0.10
[    0.516362] Linux video capture interface: v2.00
[    0.521830] clocksource: Switched to clocksource armada_370_xp_clocksource
[    0.552076] VFS: Disk quotas dquot_6.6.0
[    0.556104] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.570032] NET: Registered protocol family 2
[    0.574833] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.581995] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.588545] TCP: Hash tables configured (established 8192 bind 8192)
[    0.594993] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.600985] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.607505] NET: Registered protocol family 1
[    0.612307] RPC: Registered named UNIX socket transport module.
[    0.618283] RPC: Registered udp transport module.
[    0.623071] RPC: Registered tcp transport module.
[    0.627835] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.634445] Unpacking initramfs...
[    0.849761] Freeing initrd memory: 6372K
[    0.853881] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.860570] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.869771] audit: initializing netlink subsys (disabled)
[    0.875795] Initialise system trusted keyrings
[    0.880436] workingset: timestamp_bits=30 max_order=19 bucket_order=0
[    0.887019] zbud: loaded
[    0.890129] NFS: Registering the id_resolver key type
[    0.895271] Key type id_resolver registered
[    0.899517] Key type id_legacy registered
[    0.903607] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.910359] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.916917] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.924307] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.930901] orangefs_init: module version upstream loaded
[    0.938411] Key type asymmetric registered
[    0.942585] Asymmetric key parser 'x509' registered
[    0.947548] bounce: pool size: 64 pages
[    0.951520] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[    0.958975] io scheduler noop registered
[    0.962969] io scheduler deadline registered
[    0.967315] io scheduler cfq registered (default)
[    0.972911] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    0.981334] mvebu-pcie soc:pcie-controller: PCI host bridge to bus 0000:00
[    0.988280] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    0.994610] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    1.001536] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.007452] PCI: bus0: Fast back to back transfers disabled
[    1.013099] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.021154] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.029316] PCI: bus1: Fast back to back transfers enabled
[    1.034977] PCI: bus2: Fast back to back transfers enabled
[    1.040557] pci 0000:00:01.0: PCI bridge to [bus 01]
[    1.045596] pci 0000:00:02.0: PCI bridge to [bus 02]
[    1.051024] mv_xor f1060800.xor: Marvell shared XOR driver
[    1.112227] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy sg intr )
[    1.120091] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.182222] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy sg intr )
[    1.232774] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.240395] console [ttyS0] disabled
[    1.264123] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 22, base_baud = 12500000) is a 16550A
[    1.273156] console [ttyS0] enabled
[    1.273156] console [ttyS0] enabled
[    1.280242] bootconsole [earlycon0] disabled
[    1.280242] bootconsole [earlycon0] disabled
[    1.289829] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.298935] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.308485] scsi host0: ahci-mvebu
[    1.312176] scsi host1: ahci-mvebu
[    1.315774] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 42
[    1.323739] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 42
[    1.331823] ahci-mvebu f10e0000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.340923] ahci-mvebu f10e0000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.360293] scsi host2: ahci-mvebu
[    1.363939] scsi host3: ahci-mvebu
[    1.367487] ata3: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x100 irq 43
[    1.375451] ata4: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x180 irq 43
[    1.383889] pxa3xx-nand f10d0000.flash: This platform can't do DMA on this device
[    1.391764] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xdc
[    1.398157] nand: Hynix H27U4G8F2DTR-BC
[    1.402032] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.409635] pxa3xx-nand f10d0000.flash: ECC strength 16, ECC step size 2048
[    1.416823] Bad block table found at page 262080, version 0x01
[    1.423009] Bad block table found at page 262016, version 0x01
[    1.429035] nand_read_bbt: bad block at 0x00000dcc0000
[    1.434205] nand_read_bbt: bad block at 0x00000fb00000
[    1.439365] nand_read_bbt: bad block at 0x000012180000
[    1.444534] nand_read_bbt: bad block at 0x0000139a0000
[    1.449694] nand_read_bbt: bad block at 0x000017880000
[    1.454860] nand_read_bbt: bad block at 0x0000178a0000
[    1.460020] nand_read_bbt: bad block at 0x00001a640000
[    1.465186] nand_read_bbt: bad block at 0x00001e9c0000
[    1.470390] 8 ofpart partitions found on MTD device pxa3xx_nand-0
[    1.476516] Creating 8 MTD partitions on "pxa3xx_nand-0":
[    1.481943] 0x000000000000-0x000000500000 : "U-Boot"
[    1.497598] 0x000000500000-0x000000f00000 : "uImage"
[    1.513222] 0x000000a00000-0x000001900000 : "uRamdisk"
[    1.529019] 0x000000f00000-0x00001d700000 : "image.cfs"
[    1.546450] 0x00001c800000-0x000039f00000 : "rescue_fw"
[    1.551699] mtd: partition "rescue_fw" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x3800000
[    1.573243] 0x00001d700000-0x00003c200000 : "config"
[    1.578230] mtd: partition "config" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x2900000
[    1.599468] 0x00001eb00000-0x00003e000000 : "reserve1"
[    1.604654] mtd: partition "reserve1" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x1500000
[    1.625986] 0x00001f500000-0x00003f400000 : "reserve2"
[    1.631160] mtd: partition "reserve2" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0xb00000
[    1.652940] m25p80 spi0.0: unrecognized JEDEC id bytes: ff, ff, ff
[    1.659578] libphy: Fixed MDIO Bus: probed
[    1.663087] ata1: SATA link down (SStatus 0 SControl 300)
[    1.669931] libphy: orion_mdio_bus: probed
[    1.673097] ata2: SATA link down (SStatus 0 SControl 300)
[    1.684964] mvneta_bm f10c8000.bm: Buffer Manager for network controller enabled
[    1.694400] mvneta f1070000.ethernet eth0: Using random mac address de:a1:a8:5b:38:66
[    1.704216] mvneta f1030000.ethernet eth1: Using random mac address a2:f5:3b:41:5b:7f
[    1.712112] ata3: SATA link down (SStatus 0 SControl 300)
[    1.717747] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.723142] ata4: SATA link down (SStatus 0 SControl 300)
[    1.729743] ehci-pci: EHCI PCI platform driver
[    1.734255] ehci-orion: EHCI orion driver
[    1.738378] orion-ehci f1058000.usb: EHCI Host Controller
[    1.743823] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    1.751479] orion-ehci f1058000.usb: irq 38, io mem 0xf1058000
[    1.781847] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    1.787903] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.794733] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.801993] usb usb1: Product: EHCI Host Controller
[    1.806891] usb usb1: Manufacturer: Linux 4.10.9-mvebu-tld-1 ehci_hcd
[    1.813365] usb usb1: SerialNumber: f1058000.usb
[    1.818320] hub 1-0:1.0: USB hub found
[    1.822111] hub 1-0:1.0: 1 port detected
[    1.826474] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.831816] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    1.839410] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.848002] xhci-hcd f10f0000.usb3: irq 46, io mem 0xf10f0000
[    1.853856] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    1.860673] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.867950] usb usb2: Product: xHCI Host Controller
[    1.872857] usb usb2: Manufacturer: Linux 4.10.9-mvebu-tld-1 xhci-hcd
[    1.879324] usb usb2: SerialNumber: f10f0000.usb3
[    1.884335] hub 2-0:1.0: USB hub found
[    1.888115] hub 2-0:1.0: 1 port detected
[    1.892219] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.897558] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
[    1.905130] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.913325] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    1.920142] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.927402] usb usb3: Product: xHCI Host Controller
[    1.932363] usb usb3: Manufacturer: Linux 4.10.9-mvebu-tld-1 xhci-hcd
[    1.938830] usb usb3: SerialNumber: f10f0000.usb3
[    1.943821] hub 3-0:1.0: USB hub found
[    1.947599] hub 3-0:1.0: 1 port detected
[    1.951747] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.957102] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    1.964686] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.973283] xhci-hcd f10f8000.usb3: irq 47, io mem 0xf10f8000
[    1.979128] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002
[    1.985954] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.993215] usb usb4: Product: xHCI Host Controller
[    1.998113] usb usb4: Manufacturer: Linux 4.10.9-mvebu-tld-1 xhci-hcd
[    2.004623] usb usb4: SerialNumber: f10f8000.usb3
[    2.009617] hub 4-0:1.0: USB hub found
[    2.013410] hub 4-0:1.0: 1 port detected
[    2.017497] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    2.022846] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5
[    2.030399] usb usb5: We don't know the algorithms for LPM for this host, disabling LPM.
[    2.038585] usb usb5: New USB device found, idVendor=1d6b, idProduct=0003
[    2.045413] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.052720] usb usb5: Product: xHCI Host Controller
[    2.057617] usb usb5: Manufacturer: Linux 4.10.9-mvebu-tld-1 xhci-hcd
[    2.064095] usb usb5: SerialNumber: f10f8000.usb3
[    2.069081] hub 5-0:1.0: USB hub found
[    2.072871] hub 5-0:1.0: 1 port detected
[    2.077045] usbcore: registered new interface driver usblp
[    2.082632] usbcore: registered new interface driver usb-storage
[    2.088828] mousedev: PS/2 mouse device common for all mice
[    2.094826] armada38x-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[    2.102500] i2c /dev entries driver
[    2.116875] (NULL device *): hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[    2.129542] orion_wdt: Initial timeout 171 sec
[    2.135120] marvell-cesa f1090000.crypto: CESA device successfully registered
[    2.142400] hidraw: raw HID events driver (C) Jiri Kosina
[    2.148004] usbcore: registered new interface driver usbhid
[    2.153612] usbhid: USB HID core driver
[    2.157578] drop_monitor: Initializing network drop monitor service
[    2.163990] Netfilter messages via NETLINK v0.30.
[    2.168730] ip_set: protocol 6
[    2.171987] NET: Registered protocol family 10
[    2.177053] Segment Routing with IPv6
[    2.180763] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    2.187520] NET: Registered protocol family 17
[    2.192115] 8021q: 802.1Q VLAN Support v1.8
[    2.196340] Key type dns_resolver registered
[    2.200710] ThumbEE CPU extension supported.
[    2.205012] Registering SWP/SWPB emulation handler
[    2.210132] registered taskstats version 1
[    2.214259] Loading compiled-in X.509 certificates
[    2.219103] zswap: loaded using pool lzo/zbud
[    2.263782] usb 2-1: new high-speed USB device number 2 using xhci-hcd
[    2.273810] Key type big_key registered
[    2.280920] Key type encrypted registered
[    2.285886] armada38x-rtc f10a3800.rtc: setting system clock to 2017-07-09 08:28:03 UTC (1499588883)
[    2.296079] Freeing unused kernel memory: 1024K
Loading, please wait...
[    2.331202] systemd-udevd[1355]: starting version 215
[    2.337250] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    2.432173] usb 2-1: New USB device found, idVendor=045b, idProduct=0209
[    2.438914] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.452117] hub 2-1:1.0: USB hub found
[    2.458303] hub 2-1:1.0: 4 ports detected
[    2.572109] usb 3-1: new SuperSpeed USB device number 2 using xhci-hcd
[    2.603426] usb 3-1: New USB device found, idVendor=045b, idProduct=0210
[    2.610160] usb 3-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.618053] hub 3-1:1.0: USB hub found
[    2.622079] hub 3-1:1.0: 4 ports detected
[    2.791846] usb 2-1.3: new high-speed USB device number 3 using xhci-hcd
[    2.922481] usb 2-1.3: New USB device found, idVendor=0781, idProduct=5571
[    2.929387] usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.936740] usb 2-1.3: Product: Cruzer Fit
[    2.940852] usb 2-1.3: Manufacturer: SanDisk
[    2.945146] usb 2-1.3: SerialNumber: 4C530302071223122304
[    2.951291] usb-storage 2-1.3:1.0: USB Mass Storage device detected
[    2.957734] scsi host4: usb-storage 2-1.3:1.0
[    2.963771] usbcore: registered new interface driver uas
[    4.012376] scsi 4:0:0:0: Direct-Access     SanDisk  Cruzer Fit       1.00 PQ: 0 ANSI: 6
[    4.032734] sd 4:0:0:0: Attached scsi generic sg0 type 0
[    4.039563] sd 4:0:0:0: [sda] 61489152 512-byte logical blocks: (31.5 GB/29.3 GiB)
[    4.047988] sd 4:0:0:0: [sda] Write Protect is off
[    4.053110] sd 4:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    4.065686]  sda: sda1
[    4.074585] sd 4:0:0:0: [sda] Attached SCSI removable disk
[    4.090482] random: fast init done
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
modprobe: module ext3 not found in modules.dep
Begin: Will now check root file system ... fsck from util-linux 2.25.2
[/sbin/fsck.ext3 (1) -- /dev/sda1] fsck.ext3 -a -C0 /dev/sda1
rootfs: clean, 36825/1925120 files, 675674/7685888 blocks
done.
[   12.795900] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   12.833053] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[....] Starting the hotplug events dispatcher: udevd[   13.621631] systemd-udevd[1563]: starting version 215
. ok
[ ok ] Synthesizing the initial hotplug events...done.
[ ok ] Waiting for /dev to be fully populated...done.
[ ok ] Activating swap...done.
[   14.870513] EXT4-fs (sda1): re-mounted. Opts: (null)
[....] Checking root file system...fsck from util-linux 2.25.2
rootfs: clean, 36825/1925120 files, 675674/7685888 blocks
done.
[   15.040304] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[ 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.
[   16.072258] 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/de:a1:a8:5b:38:66
Sending on   LPF/eth0/de:a1:a8:5b:38:66
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 18
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 10
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
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 concurr[   77.745201] random: crng init done
ent boot in runlevel 2.
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
2500 (syslogd)
. ok
[ ok ] Starting NTP server: ntpd.
[ ok ] Starting periodic command scheduler: cron.
[ ok ] Starting system message bus: dbus.
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
2499 (klogd)
. ok

Debian GNU/Linux 8 debian ttyS0

debian login: root
Password:
Last login: Sun Jul  9 01:24:41 PDT 2017 on ttyS0
Linux debian 4.10.9-mvebu-tld-1 #1 SMP PREEMPT Sat Apr 8 17:55:50 PDT 2017 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
debian

WD My Cloud EX4100
Linux version 4.10.9-mvebu-tld-1 (root@tldDebianVM) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4) ) #1 SMP PREEMPT Sat Apr 8 17:55:50 PDT 2017
 01:29:39 up 1 min,  1 user,  load average: 0.02, 0.01, 0.00
root@debian:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00500000 00020000 "U-Boot"
mtd1: 00a00000 00020000 "uImage"
mtd2: 00f00000 00020000 "uRamdisk"
mtd3: 1c800000 00020000 "image.cfs"
mtd4: 03800000 00020000 "rescue_fw"
mtd5: 02900000 00020000 "config"
mtd6: 01500000 00020000 "reserve1"
mtd7: 00b00000 00020000 "reserve2"
root@debian:~# dmesg
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.10.9-mvebu-tld-1 (root@tldDebianVM) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4) ) #1 SMP PREEMPT Sat Apr 8 17:55:50 PDT 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] On node 0 totalpages: 524288
[    0.000000] free_area_init_node: node 0, pgdat c0d995c0, node_mem_map eeff8000
[    0.000000]   Normal zone: 1536 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 196608 pages, LIFO batch:31
[    0.000000]   HighMem zone: 327680 pages, LIFO batch:31
[    0.000000] percpu: Embedded 15 pages/cpu @eefcd000 s30796 r8192 d22452 u61440
[    0.000000] pcpu-alloc: s30796 r8192 d22452 u61440 alloc=15*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 522752
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial mtdparts=armada-nand:5M(u-boot),5M(kernel),5M(uRamdisk),441M(image.cfs),15M(rescue_fw),20M(config),10M(reserve1),10M(reserve2)
[    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: 2060012K/2097152K available (8192K kernel code, 696K rwdata, 2084K rodata, 1024K init, 385K bss, 37140K reserved, 0K cma-reserved, 1310720K highmem)
[    0.000000] Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
    lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
    pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    modules : 0xbf000000 - 0xbfe00000   (  14 MB)
      .text : 0xc0008000 - 0xc0900000   (9184 kB)
      .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
      .data : 0xc0d00000 - 0xc0dae250   ( 697 kB)
       .bss : 0xc0dae250 - 0xc0e0ea00   ( 386 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.019078] Console: colour dummy device 80x30
[    0.023592] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[    0.033983] pid_max: default: 32768 minimum: 301
[    0.038733] Security Framework initialized
[    0.042929] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.049602] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.057090] CPU: Testing write buffer coherency: ok
[    0.062153] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.093879] Setting up static identity map for 0x100000 - 0x100058
[    0.100177] mvebu-soc-id: MVEBU SoC ID=0x6828, Rev=0x4
[    0.105458] mvebu-pmsu: Initializing Power Management Service Unit
[    0.193867] smp: Bringing up secondary CPUs ...
[    0.253913] Booting CPU 1
[    0.256754] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.256798] smp: Brought up 1 node, 2 CPUs
[    0.266679] SMP: Total of 2 processors activated (100.00 BogoMIPS).
[    0.272998] CPU: All CPU(s) started in SVC mode.
[    0.278221] devtmpfs: initialized
[    0.283447] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.291372] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.301262] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.307481] prandom: seed boundary self test passed
[    0.314116] prandom: 100 self tests passed
[    0.318276] pinctrl core: initialized pinctrl subsystem
[    0.324187] NET: Registered protocol family 16
[    0.329230] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.363869] cpuidle: using governor ladder
[    0.393866] cpuidle: using governor menu
[    0.397955] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.406023] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.412003] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.420157] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.484267] vgaarb: loaded
[    0.487256] SCSI subsystem initialized
[    0.491206] libata version 3.00 loaded.
[    0.491474] usbcore: registered new interface driver usbfs
[    0.497103] usbcore: registered new interface driver hub
[    0.502527] usbcore: registered new device driver usb
[    0.507842] Linux cec interface: v0.10
[    0.511698] media: Linux media interface: v0.10
[    0.516362] Linux video capture interface: v2.00
[    0.521830] clocksource: Switched to clocksource armada_370_xp_clocksource
[    0.552076] VFS: Disk quotas dquot_6.6.0
[    0.556104] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.570032] NET: Registered protocol family 2
[    0.574833] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.581995] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.588545] TCP: Hash tables configured (established 8192 bind 8192)
[    0.594993] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.600985] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.607505] NET: Registered protocol family 1
[    0.612307] RPC: Registered named UNIX socket transport module.
[    0.618283] RPC: Registered udp transport module.
[    0.623071] RPC: Registered tcp transport module.
[    0.627835] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.634337] PCI: CLS 0 bytes, default 64
[    0.634445] Unpacking initramfs...
[    0.849761] Freeing initrd memory: 6372K
[    0.853881] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.860570] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.869771] audit: initializing netlink subsys (disabled)
[    0.875795] Initialise system trusted keyrings
[    0.880436] workingset: timestamp_bits=30 max_order=19 bucket_order=0
[    0.887019] zbud: loaded
[    0.890129] NFS: Registering the id_resolver key type
[    0.895271] Key type id_resolver registered
[    0.899517] Key type id_legacy registered
[    0.903607] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.910359] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.916917] jffs2: version 2.2. (NAND) (SUMMARY)  \xffffffc2\xffffffa9 2001-2006 Red Hat, Inc.
[    0.924307] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.930901] orangefs_init: module version upstream loaded
[    0.938411] Key type asymmetric registered
[    0.942585] Asymmetric key parser 'x509' registered
[    0.947548] bounce: pool size: 64 pages
[    0.951520] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[    0.958975] io scheduler noop registered
[    0.962969] io scheduler deadline registered
[    0.967315] io scheduler cfq registered (default)
[    0.972911] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    0.981334] mvebu-pcie soc:pcie-controller: PCI host bridge to bus 0000:00
[    0.988280] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    0.994610] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    1.001536] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.007090] pci_bus 0000:00: scanning bus
[    1.007106] pci 0000:00:01.0: [11ab:6828] type 01 class 0x060400
[    1.007133] pci 0000:00:01.0: calling pci_fixup_ide_bases+0x0/0x3c
[    1.007288] pci 0000:00:02.0: [11ab:6828] type 01 class 0x060400
[    1.007307] pci 0000:00:02.0: calling pci_fixup_ide_bases+0x0/0x3c
[    1.007444] pci_bus 0000:00: fixups for bus
[    1.007452] PCI: bus0: Fast back to back transfers disabled
[    1.013095] pci 0000:00:01.0: scanning [bus 00-00] behind bridge, pass 0
[    1.013099] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.021151] pci 0000:00:02.0: scanning [bus 00-00] behind bridge, pass 0
[    1.021154] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.029213] pci 0000:00:01.0: scanning [bus 00-00] behind bridge, pass 1
[    1.029308] pci_bus 0000:01: scanning bus
[    1.029313] pci_bus 0000:01: fixups for bus
[    1.029316] PCI: bus1: Fast back to back transfers enabled
[    1.034868] pci_bus 0000:01: bus scan returning with max=01
[    1.034874] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    1.034880] pci 0000:00:02.0: scanning [bus 00-00] behind bridge, pass 1
[    1.034970] pci_bus 0000:02: scanning bus
[    1.034975] pci_bus 0000:02: fixups for bus
[    1.034977] PCI: bus2: Fast back to back transfers enabled
[    1.040521] pci_bus 0000:02: bus scan returning with max=02
[    1.040525] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    1.040530] pci_bus 0000:00: bus scan returning with max=02
[    1.040535] pci 0000:00:01.0: fixup irq: got 0
[    1.040539] pci 0000:00:01.0: assigning IRQ 00
[    1.040543] pci 0000:00:02.0: fixup irq: got 0
[    1.040545] pci 0000:00:02.0: assigning IRQ 00
[    1.040557] pci 0000:00:01.0: PCI bridge to [bus 01]
[    1.045596] pci 0000:00:02.0: PCI bridge to [bus 02]
[    1.050656] pcieport 0000:00:01.0: enabling bus mastering
[    1.050689] pcieport 0000:00:02.0: enabling bus mastering
[    1.051024] mv_xor f1060800.xor: Marvell shared XOR driver
[    1.112227] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy sg intr )
[    1.120091] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.182222] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy sg intr )
[    1.232774] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.240395] console [ttyS0] disabled
[    1.264123] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 22, base_baud = 12500000) is a 16550A
[    1.273156] console [ttyS0] enabled
[    1.280242] bootconsole [earlycon0] disabled
[    1.289829] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.298935] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.308485] scsi host0: ahci-mvebu
[    1.312176] scsi host1: ahci-mvebu
[    1.315774] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 42
[    1.323739] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 42
[    1.331823] ahci-mvebu f10e0000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.340923] ahci-mvebu f10e0000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.360293] scsi host2: ahci-mvebu
[    1.363939] scsi host3: ahci-mvebu
[    1.367487] ata3: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x100 irq 43
[    1.375451] ata4: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x180 irq 43
[    1.383889] pxa3xx-nand f10d0000.flash: This platform can't do DMA on this device
[    1.391764] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xdc
[    1.398157] nand: Hynix H27U4G8F2DTR-BC
[    1.402032] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.409635] pxa3xx-nand f10d0000.flash: ECC strength 16, ECC step size 2048
[    1.416823] Bad block table found at page 262080, version 0x01
[    1.423009] Bad block table found at page 262016, version 0x01
[    1.429035] nand_read_bbt: bad block at 0x00000dcc0000
[    1.434205] nand_read_bbt: bad block at 0x00000fb00000
[    1.439365] nand_read_bbt: bad block at 0x000012180000
[    1.444534] nand_read_bbt: bad block at 0x0000139a0000
[    1.449694] nand_read_bbt: bad block at 0x000017880000
[    1.454860] nand_read_bbt: bad block at 0x0000178a0000
[    1.460020] nand_read_bbt: bad block at 0x00001a640000
[    1.465186] nand_read_bbt: bad block at 0x00001e9c0000
[    1.470390] 8 ofpart partitions found on MTD device pxa3xx_nand-0
[    1.476516] Creating 8 MTD partitions on "pxa3xx_nand-0":
[    1.481943] 0x000000000000-0x000000500000 : "U-Boot"
[    1.497598] 0x000000500000-0x000000f00000 : "uImage"
[    1.513222] 0x000000a00000-0x000001900000 : "uRamdisk"
[    1.529019] 0x000000f00000-0x00001d700000 : "image.cfs"
[    1.546450] 0x00001c800000-0x000039f00000 : "rescue_fw"
[    1.551699] mtd: partition "rescue_fw" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x3800000
[    1.573243] 0x00001d700000-0x00003c200000 : "config"
[    1.578230] mtd: partition "config" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x2900000
[    1.599468] 0x00001eb00000-0x00003e000000 : "reserve1"
[    1.604654] mtd: partition "reserve1" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x1500000
[    1.625986] 0x00001f500000-0x00003f400000 : "reserve2"
[    1.631160] mtd: partition "reserve2" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0xb00000
[    1.652940] m25p80 spi0.0: unrecognized JEDEC id bytes: ff, ff, ff
[    1.659578] libphy: Fixed MDIO Bus: probed
[    1.663087] ata1: SATA link down (SStatus 0 SControl 300)
[    1.669931] libphy: orion_mdio_bus: probed
[    1.673097] ata2: SATA link down (SStatus 0 SControl 300)
[    1.684964] mvneta_bm f10c8000.bm: Buffer Manager for network controller enabled
[    1.694400] mvneta f1070000.ethernet eth0: Using random mac address de:a1:a8:5b:38:66
[    1.704216] mvneta f1030000.ethernet eth1: Using random mac address a2:f5:3b:41:5b:7f
[    1.712112] ata3: SATA link down (SStatus 0 SControl 300)
[    1.717747] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.723142] ata4: SATA link down (SStatus 0 SControl 300)
[    1.729743] ehci-pci: EHCI PCI platform driver
[    1.734255] ehci-orion: EHCI orion driver
[    1.738378] orion-ehci f1058000.usb: EHCI Host Controller
[    1.743823] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    1.751479] orion-ehci f1058000.usb: irq 38, io mem 0xf1058000
[    1.781847] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    1.787903] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.794733] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.801993] usb usb1: Product: EHCI Host Controller
[    1.806891] usb usb1: Manufacturer: Linux 4.10.9-mvebu-tld-1 ehci_hcd
[    1.813365] usb usb1: SerialNumber: f1058000.usb
[    1.818320] hub 1-0:1.0: USB hub found
[    1.822111] hub 1-0:1.0: 1 port detected
[    1.826474] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.831816] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    1.839410] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.848002] xhci-hcd f10f0000.usb3: irq 46, io mem 0xf10f0000
[    1.853856] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    1.860673] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.867950] usb usb2: Product: xHCI Host Controller
[    1.872857] usb usb2: Manufacturer: Linux 4.10.9-mvebu-tld-1 xhci-hcd
[    1.879324] usb usb2: SerialNumber: f10f0000.usb3
[    1.884335] hub 2-0:1.0: USB hub found
[    1.888115] hub 2-0:1.0: 1 port detected
[    1.892219] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.897558] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
[    1.905130] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.913325] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    1.920142] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.927402] usb usb3: Product: xHCI Host Controller
[    1.932363] usb usb3: Manufacturer: Linux 4.10.9-mvebu-tld-1 xhci-hcd
[    1.938830] usb usb3: SerialNumber: f10f0000.usb3
[    1.943821] hub 3-0:1.0: USB hub found
[    1.947599] hub 3-0:1.0: 1 port detected
[    1.951747] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.957102] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    1.964686] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.973283] xhci-hcd f10f8000.usb3: irq 47, io mem 0xf10f8000
[    1.979128] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002
[    1.985954] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.993215] usb usb4: Product: xHCI Host Controller
[    1.998113] usb usb4: Manufacturer: Linux 4.10.9-mvebu-tld-1 xhci-hcd
[    2.004623] usb usb4: SerialNumber: f10f8000.usb3
[    2.009617] hub 4-0:1.0: USB hub found
[    2.013410] hub 4-0:1.0: 1 port detected
[    2.017497] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    2.022846] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5
[    2.030399] usb usb5: We don't know the algorithms for LPM for this host, disabling LPM.
[    2.038585] usb usb5: New USB device found, idVendor=1d6b, idProduct=0003
[    2.045413] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.052720] usb usb5: Product: xHCI Host Controller
[    2.057617] usb usb5: Manufacturer: Linux 4.10.9-mvebu-tld-1 xhci-hcd
[    2.064095] usb usb5: SerialNumber: f10f8000.usb3
[    2.069081] hub 5-0:1.0: USB hub found
[    2.072871] hub 5-0:1.0: 1 port detected
[    2.077045] usbcore: registered new interface driver usblp
[    2.082632] usbcore: registered new interface driver usb-storage
[    2.088828] mousedev: PS/2 mouse device common for all mice
[    2.094826] armada38x-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[    2.102500] i2c /dev entries driver
[    2.116875] (NULL device *): hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[    2.129542] orion_wdt: Initial timeout 171 sec
[    2.135120] marvell-cesa f1090000.crypto: CESA device successfully registered
[    2.142400] hidraw: raw HID events driver (C) Jiri Kosina
[    2.148004] usbcore: registered new interface driver usbhid
[    2.153612] usbhid: USB HID core driver
[    2.157578] drop_monitor: Initializing network drop monitor service
[    2.163990] Netfilter messages via NETLINK v0.30.
[    2.168730] ip_set: protocol 6
[    2.171987] NET: Registered protocol family 10
[    2.177053] Segment Routing with IPv6
[    2.180763] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    2.187520] NET: Registered protocol family 17
[    2.192115] 8021q: 802.1Q VLAN Support v1.8
[    2.196340] Key type dns_resolver registered
[    2.200710] ThumbEE CPU extension supported.
[    2.205012] Registering SWP/SWPB emulation handler
[    2.210132] registered taskstats version 1
[    2.214259] Loading compiled-in X.509 certificates
[    2.219103] zswap: loaded using pool lzo/zbud
[    2.263782] usb 2-1: new high-speed USB device number 2 using xhci-hcd
[    2.273810] Key type big_key registered
[    2.280920] Key type encrypted registered
[    2.285886] armada38x-rtc f10a3800.rtc: setting system clock to 2017-07-09 08:28:03 UTC (1499588883)
[    2.295144] PM: Hibernation image not present or could not be loaded.
[    2.296079] Freeing unused kernel memory: 1024K
[    2.331202] systemd-udevd[1355]: starting version 215
[    2.337250] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    2.432173] usb 2-1: New USB device found, idVendor=045b, idProduct=0209
[    2.438914] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.452117] hub 2-1:1.0: USB hub found
[    2.458303] hub 2-1:1.0: 4 ports detected
[    2.572109] usb 3-1: new SuperSpeed USB device number 2 using xhci-hcd
[    2.603426] usb 3-1: New USB device found, idVendor=045b, idProduct=0210
[    2.610160] usb 3-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.618053] hub 3-1:1.0: USB hub found
[    2.622079] hub 3-1:1.0: 4 ports detected
[    2.791846] usb 2-1.3: new high-speed USB device number 3 using xhci-hcd
[    2.922481] usb 2-1.3: New USB device found, idVendor=0781, idProduct=5571
[    2.929387] usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.936740] usb 2-1.3: Product: Cruzer Fit
[    2.940852] usb 2-1.3: Manufacturer: SanDisk
[    2.945146] usb 2-1.3: SerialNumber: 4C530302071223122304
[    2.951291] usb-storage 2-1.3:1.0: USB Mass Storage device detected
[    2.957734] scsi host4: usb-storage 2-1.3:1.0
[    2.963771] usbcore: registered new interface driver uas
[    4.012376] scsi 4:0:0:0: Direct-Access     SanDisk  Cruzer Fit       1.00 PQ: 0 ANSI: 6
[    4.032734] sd 4:0:0:0: Attached scsi generic sg0 type 0
[    4.039563] sd 4:0:0:0: [sda] 61489152 512-byte logical blocks: (31.5 GB/29.3 GiB)
[    4.047988] sd 4:0:0:0: [sda] Write Protect is off
[    4.052827] sd 4:0:0:0: [sda] Mode Sense: 43 00 00 00
[    4.053110] sd 4:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    4.065686]  sda: sda1
[    4.074585] sd 4:0:0:0: [sda] Attached SCSI removable disk
[    4.090482] random: fast init done
[   12.795900] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   12.833053] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[   13.621631] systemd-udevd[1563]: starting version 215
[   14.870513] EXT4-fs (sda1): re-mounted. Opts: (null)
[   15.040304] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[   16.072258] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   77.745201] random: crng init done
root@debian:~#
Re: Debian on WD MyCloud EX 4100
July 09, 2017 04:41AM
bodhi,

is it possible that shutdown is not yet working correctly because we have not everything set correctly?
Following the outputs from two different ways to shutdown.
In the second try it seems to work but the box doesnt switch of.
Or could it be that it is not working because i am connected to uart via picocom?

shutdown now

Broadcast message from an (ttyS0) (Sun [info] Using makefile-style concurrent boot in runlevel 1.
[....] Stopping busybox' klogd implementation: klogd2499 (klogd)
Stopped klogd (pid 2499).
. ok
[ ok ] Stopping Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[ ok ] Stopping NFS kernel daemon: mountd nfsd.
[ ok ] Unexporting directories for NFS kernel daemon....
rpcbind: rpcbind terminating on signal. Restart with "rpcbind -w"
[....] Stopping busybox' syslogd implementation: syslogd2500 (syslogd)
. ok
[ ok ] Stopping rpcbind daemon....
[ ok ] Stopping NFS common utilities: idmapd statd.
[ ok ] Asking all remaining processes to terminate...done.
[ ok ] All processes ended within 1 seconds....done.
NIT: Sending processes the TERM signal
INIT: Sending processes the KILL signal
Give root password for maintenance
(or type Control-D to continue):

shutdown -hP now

Broadcast message frobian (tt[info] Using makefile-style concurrent boot in runlevel 0.
[....] Stopping busybox' klogd implementation: klogd3016 (klogd)
Stopped klogd (pid 3016).
. ok
[ ok ] Stopping Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[ ok ] Stopping NFS kernel daemon: mountd nfsd.
[ ok ] Unexporting directories for NFS kernel daemon....
[....] Stopping busybox' syslogd implementation: syslogd3020 (syslogd)
. ok
[ ok ] Asking all remaining processes to terminate...done.
[ ok ] All processes ended within 1 seconds...done.
[ ok ] Stopping rpcbind daemon....
[ ok ] Stopping NFS common utilities: idmapd statd.
[  477.548557] m88e1318_get_wol: phy_id = 0x1410dd1 OK
[  477.553475] WOL was set - NOT suspending the ethernet PHY
[....] Deconfiguring network interfaces...Removed stale PID file
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/de:a1:a8:5b:38:66
Sending on   LPF/eth0/de:a1:a8:5b:38:66
Sending on   Socket/fallback
DHCPRELEASE on eth0 to 192.168.0.1 port 67
send_packet: Network is unreachable
send_packet: please consult README file regarding broadcast address.
dhclient.c:2331: Failed to send 300 byte long packet over fallback interface.
done.
[info] Saving the system clock.
[info] Hardware Clock updated to Sun Jul  9 01:35:59 PDT 2017.
[ ok ] Deactivating swap...done.
[  478.330286] EXT4-fs (sda1): re-mounted. Opts: (null)
[info] Will now halt.
[  480.390881] reboot: System halted
Re: Debian on WD MyCloud EX 4100
July 09, 2017 04:55AM
saschadd,

> Following the outputs from two different ways to s
> hutdown.

The 2nd one is correct. These 2 are equivanlent:

shutdown -h now
or
poweroff

> In the second try it seems to work but the box doe
> snt switch of.

We have not finalized the DTS for this box yet for some minor issues. Did the fan turn off? Was the light is still on?

The box was shutdown correctly:
[info] Will now halt.
[  480.390881] reboot: System halted

So the issue now is a cosmetic issue.


> Or could it be that it is not working because i am
> connected to uart via picocom?
>

It is not very likely. But you can try that to see if it has any effect.

I'll need to revisit the DTS for these unfinished businesses:

- mtd partitions errors in dmesg
- shutdown LED. Please confirm the behavior I asked above.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
Re: Debian on WD MyCloud EX 4100
July 09, 2017 05:04AM
bodhi Wrote:
> Did the fan turn off?

fan stays on at full speed (like all the time when i boot to debian)

> Was the light still on?

light keeps blinking (like all the time when i boot to debian)


> Or could it be that it is not working because i am connected to uart via picocom?
> It is not very likely. But you can try that to see if it has any effect.

cant try yet as the network is not working yet. ; )
Re: Debian on WD MyCloud EX 4100
July 09, 2017 05:15AM
saschadd,

> fan stays on at full speed (like all the time when
> i boot to debian)

> light keeps blinking (like all the time when i boo
> t to debian)

OK, then we really need to work on the DTS.

> cant try yet as the network is not working yet. ;
> )

Why :) it should. What is the behavior? your serial console should show the network connection being established.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
Re: Debian on WD MyCloud EX 4100
July 09, 2017 05:30AM
No, network is not working.

[   16.072258] 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/de:a1:a8:5b:38:66
Sending on   LPF/eth0/de:a1:a8:5b:38:66
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 18
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 10
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
done.

I noticed that stock firmware loads egiga0 and egiga1 and debian loads eth0 maybe there is a different driver needed?
Re: Debian on WD MyCloud EX 4100
July 09, 2017 05:54AM
Does this box really have 2 Ethernet ports available? you might want to switch the cable to the other port.

Try these

cat /etc/network/interfaces
auto lo eth0
iface lo inet loopback
iface eth0 inet dhcp
	hwaddress ether xx:xx:xx:xx:xx:xx
iface eth1 inet dhcp
	hwaddress ether yy:yy:yy:yy:yy:yy

Where xx:xx:xx:xx:xx:xx is your u-boot ethaddr env
and yy:yy:yy:yy:yy:yy is your u-boot eth1addr env

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
Re: Debian on WD MyCloud EX 4100
July 09, 2017 05:58AM
And what is the output of

cat /etc/udev/rules.d/70-persistent-net.rules
cat /lib/udev/rules.d/75-persistent-net-generator.rules | grep KERNEL

70 and 75 might be diferent numbers (I forgot the exact number in these names in this MVEBU rootfs :)

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner



Edited 1 time(s). Last edit at 07/09/2017 06:02AM by bodhi.
Author:

Your Email:


Subject:


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