Welcome! Log In Create A New Profile

Advanced

Debian on WD MyCloud EX 4100

Posted by saschadd 
Re: Debian on WD MyCloud EX 4100
June 27, 2017 12:17AM
bodhi Wrote:
-------------------------------------------------------
> 3. Please try kwboot tld-4 again (using USB rootfs
> ), and set the fw_env.config as I described above,
> see if we can get fw_printenv working.

Still no luck. :(

./kwboot -f -t -B 115200 /dev/ttyAMA0 -b u-boot-a38x-Yellowstone_2014T30p6_bodhi-tld-4-nand-uart.bin -s 0 -q 1
Sending boot message. Please reboot the target...\▒"▒&T▒▒▒"3DUfw▒"3DUfw▒"3DUf|▒"3DUfw▒"3DUfw
Sending boot image...
  0 % [......................................................................]
  0 % [......................................................................]
  1 % [......................................................................]
  2 % [......................................................................]
..
 97 % [......................................................................]
 98 % [......................................................................]
 99 % [..................................................]
[Type Ctrl-\ + c to quit]

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


U-Boot 2013.01_v1.06 (Jun 23 2017 - 03:15:32) Marvell version: 2014_T3.0p6 - bodhi-tld-4

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:0x7ff96080
       BSS:                     0x7ffef654
       Stack:                   0x7f9cdf20
       Heap:                    0x7f9ce000:0x7fece000
       U-Boot Environment:      0x00100000:0x00180000 Address: 0x00100000(NAND)

NAND:  ID: dcad ,512 MiB
MMC:   mv_sdh: 0
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
Marvell>> setenv bootdev usb
Marvell>> setenv device '0:1'
Marvell>> setenv load_initrd_addr 0x2900000
Marvell>> setenv load_image_addr 0x02000000
Marvell>> setenv load_initrd 'echo loading uInitrd ...; ext2load $bootdev $device $load_initrd_addr /boot/uInitrd'
Marvell>> setenv load_image 'echo loading Image ...; ext2load $bootdev $device $load_image_addr /boot/uImage'
Marvell>> setenv usb_set_bootargs 'setenv bootargs console=ttyS0,115200 root=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)'
Marvell>> setenv usb_bootcmd 'echo Booting from USB ...; setenv fdt_skip_update yes; usb start; run load_image; run load_initrd ; run usb_set_bootargs; bootm $load_image_addr $load_initrd_addr'
Marvell>> setenv bootcmd_usb 'usb start; run usb_set_bootargs; run usb_bootcmd; reset'
Marvell>> printenv
CASset=max
MALLOC_len=5
MPmode=SMP
autoload=no
baudrate=115200
boot_order=hd_scr usb_scr mmc_scr hd_img usb_img mmc_img pxe net_img net_scr
bootargs=root=/dev/ram console=ttyS0,115200
bootargs_dflt=$console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel
bootargs_end=:10.4.50.254:255.255.255.0:Armada38x:eth0:none
bootargs_root=root=/dev/nfs rw
bootcmd=nand read.e 0xa00000 0x500000 0x500000;nand read.e 0xf00000 0xa00000 0x500000;bootm 0xa00000 0xf00000
bootcmd_auto=stage_boot $boot_order
bootcmd_fdt=tftpboot 0x2000000 $image_name;tftpboot $fdtaddr $fdtfile;setenv bootargs $console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel; bootz 0x2000000 - $fdtaddr;
bootcmd_fdt_boot=tftpboot 0x2000000 $image_name; setenv bootargs $console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel; bootz 0x2000000 - $fdtaddr;
bootcmd_fdt_edit=tftpboot $fdtaddr $fdtfile; fdt addr $fdtaddr; setenv bootcmd $bootcmd_fdt_boot
bootcmd_lgcy=tftpboot 0x2000000 $image_name; setenv bootargs $bootargs_dflt; bootm 0x2000000;
bootcmd_usb=usb start; run usb_set_bootargs; run usb_bootcmd; reset
bootdelay=1
bootdev=usb
cacheShare=no
console=console=ttyS0,115200
device=0:1
device_partition=0:1
disaMvPnp=no
eeeEnable=no
enaClockGating=no
enaCpuStream=no
enaFPU=yes
enaMonExt=no
enaWrAllo=no
eth1addr=00:50:43:0c:1d:1e
eth1mtu=1500
eth2addr=00:50:43:0c:06:1e
eth2mtu=1500
eth3addr=00:50:43:1d:06:0c
eth3mtu=1500
ethact=egiga0
ethaddr=00:50:43:06:1d:1e
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:1e:06:0c
nandEcc=nfcConfig=4bitecc
netbsd_en=no
netmask=255.255.255.0
netretry=no
partition=nand0,0
pcieTune=no
pexMode=RC
pxe_files_load=:default.arm-armadaxp-db:default.arm-armadaxp:default.arm
pxefile_addr_r=3100000
ramdisk_addr_r=2880000
rootpath=/srv/nfs/
sata_delay_reset=0
sata_dma_mode=yes
script_addr_r=3000000
script_name=boot.scr
serverip=2.66.66.32
standalone=fsload 0x2000000 $image_name;setenv bootargs $console $nandEcc $mtdparts root=/dev/mtdblock0 rw ip=$ipaddr:$serverip$bootargs_end; bootm 0x2000000;
stderr=serial
stdin=serial
stdout=serial
usb0Mode=host
usbActive=0
usbType=3
usb_bootcmd=echo Booting from USB ...; setenv fdt_skip_update yes; usb start; run load_image; run load_initrd ; run usb_set_bootargs; bootm $load_image_addr $load_initrd_addr
usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=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

Environment size: 3991/524284 bytes
Marvell>> run bootcmd_usb
(Re)start USB...
USB0:   Port (usbActive) : 0    Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 4 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
Booting from USB ...
(Re)start USB...
USB0:   Port (usbActive) : 0    Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 4 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
loading Image ...
3919689 bytes read in 282 ms (13.3 MiB/s)
loading uInitrd ...
6210503 bytes read in 367 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.007882] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.019060] Console: colour dummy device 80x30
[    0.023573] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[    0.033978] pid_max: default: 32768 minimum: 301
[    0.038732] Security Framework initialized
[    0.042926] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.049599] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.057101] 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.079471] mvebu-pmsu: Initializing Power Management Service Unit
[    0.283913] Booting CPU 1
[    0.286758] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.286806] Brought up 2 CPUs
[    0.295565] SMP: Total of 2 processors activated (100.00 BogoMIPS).
[    0.301885] CPU: All CPU(s) started in SVC mode.
[    0.307122] devtmpfs: initialized
[    0.312443] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.320389] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.330315] prandom: seed boundary self test passed
[    0.336939] prandom: 100 self tests passed
[    0.341100] pinctrl core: initialized pinctrl subsystem
[    0.347012] NET: Registered protocol family 16
[    0.352057] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.393869] cpuidle: using governor ladder
[    0.423867] cpuidle: using governor menu
[    0.427933] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.436002] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.441982] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.450137] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.514829] vgaarb: loaded
[    0.517823] SCSI subsystem initialized
[    0.522040] usbcore: registered new interface driver usbfs
[    0.527659] usbcore: registered new interface driver hub
[    0.533090] usbcore: registered new device driver usb
[    0.538407] media: Linux media interface: v0.10
[    0.543044] Linux video capture interface: v2.00
[    0.548533] clocksource: Switched to clocksource armada_370_xp_clocksource
[    0.579891] VFS: Disk quotas dquot_6.6.0
[    0.583919] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.597927] NET: Registered protocol family 2
[    0.602727] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.609874] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.616425] TCP: Hash tables configured (established 8192 bind 8192)
[    0.622875] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.628879] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.635382] NET: Registered protocol family 1
[    0.640057] RPC: Registered named UNIX socket transport module.
[    0.646032] RPC: Registered udp transport module.
[    0.650809] RPC: Registered tcp transport module.
[    0.655574] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.662183] Unpacking initramfs...
[    0.869222] Freeing initrd memory: 6068K (c2900000 - c2eed000)
[    0.875196] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.881984] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.891119] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.897321] audit: initializing netlink subsys (disabled)
[    0.902824] audit: type=2000 audit(0.890:1): initialized
[    0.908613] Initialise system trusted keyrings
[    0.913256] workingset: timestamp_bits=30 max_order=19 bucket_order=0
[    0.919829] zbud: loaded
[    0.922892] NFS: Registering the id_resolver key type
[    0.928010] Key type id_resolver registered
[    0.932271] Key type id_legacy registered
[    0.936351] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.943114] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.949661] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.957052] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.963654] orangefs_init: module version upstream loaded
[    0.970929] Key type asymmetric registered
[    0.975091] Asymmetric key parser 'x509' registered
[    0.980067] bounce: pool size: 64 pages
[    0.984039] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.991493] io scheduler noop registered
[    0.995480] io scheduler deadline registered
[    0.999834] io scheduler cfq registered (default)
[    1.005397] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    1.013819] mvebu-pcie soc:pcie-controller: PCI host bridge to bus 0000:00
[    1.020765] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    1.027087] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    1.034020] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.039952] PCI: bus0: Fast back to back transfers disabled
[    1.045587] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.053655] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.061819] PCI: bus1: Fast back to back transfers enabled
[    1.067468] PCI: bus2: Fast back to back transfers enabled
[    1.073061] pci 0000:00:01.0: PCI bridge to [bus 01]
[    1.078091] pci 0000:00:02.0: PCI bridge to [bus 02]
[    1.083536] mv_xor f1060800.xor: Marvell shared XOR driver
[    1.148940] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.156538] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.218936] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.269180] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.276834] console [ttyS0] disabled
[    1.300560] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 22, base_baud = 12500000) is a 16550A
[    1.309614] console [ttyS0] enabled
[    1.309614] console [ttyS0] enabled
[    1.316703] bootconsole [earlycon0] disabled
[    1.316703] bootconsole [earlycon0] disabled
[    1.326292] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.335398] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.344962] scsi host0: ahci-mvebu
[    1.348749] scsi host1: ahci-mvebu
[    1.352363] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 42
[    1.360327] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 42
[    1.368409] ahci-mvebu f10e0000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.377511] ahci-mvebu f10e0000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.396916] scsi host2: ahci-mvebu
[    1.400562] scsi host3: ahci-mvebu
[    1.404119] ata3: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x100 irq 43
[    1.412082] ata4: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x180 irq 43
[    1.420522] pxa3xx-nand f10d0000.flash: This platform can't do DMA on this device
[    1.428375] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xdc
[    1.434769] nand: Hynix H27U4G8F2DTR-BC
[    1.438645] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.446249] pxa3xx-nand f10d0000.flash: ECC strength 16, ECC step size 2048
[    1.453441] Bad block table found at page 262080, version 0x01
[    1.459630] Bad block table found at page 262016, version 0x01
[    1.465657] nand_read_bbt: bad block at 0x00000dcc0000
[    1.470827] nand_read_bbt: bad block at 0x00000fb00000
[    1.475988] nand_read_bbt: bad block at 0x000012180000
[    1.481158] nand_read_bbt: bad block at 0x0000139a0000
[    1.486319] nand_read_bbt: bad block at 0x000017880000
[    1.491484] nand_read_bbt: bad block at 0x0000178a0000
[    1.496644] nand_read_bbt: bad block at 0x00001a640000
[    1.501811] nand_read_bbt: bad block at 0x00001e9c0000
[    1.507015] 8 ofpart partitions found on MTD device pxa3xx_nand-0
[    1.513142] Creating 8 MTD partitions on "pxa3xx_nand-0":
[    1.518571] 0x000000000000-0x000000500000 : "U-Boot"
[    1.534233] 0x000000500000-0x000000f00000 : "uImage"
[    1.549857] 0x000000a00000-0x000001900000 : "uRamdisk"
[    1.565647] 0x000000f00000-0x00001d700000 : "image.cfs"
[    1.583086] 0x00001c800000-0x000039f00000 : "rescue_fw"
[    1.588336] mtd: partition "rescue_fw" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x3800000
[    1.609886] 0x00001d700000-0x00003c200000 : "config"
[    1.614885] mtd: partition "config" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x2900000
[    1.636119] 0x00001eb00000-0x00003e000000 : "reserve1"
[    1.641308] mtd: partition "reserve1" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x1500000
[    1.662657] 0x00001f500000-0x00003f400000 : "reserve2"
[    1.667836] mtd: partition "reserve2" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0xb00000
[    1.689666] m25p80 spi0.0: unrecognized JEDEC id bytes: ff, ff, ff
[    1.696343] libphy: Fixed MDIO Bus: probed
[    1.699816] ata1: SATA link down (SStatus 0 SControl 300)
[    1.706533] libphy: mdio_driver_register: mv88e6085
[    1.711458] ata2: SATA link down (SStatus 0 SControl 300)
[    1.717036] libphy: orion_mdio_bus: probed
[    1.726636] mvneta_bm f10c8000.bm: Buffer Manager for network controller enabled
[    1.736015] mvneta f1070000.ethernet eth0: Using random mac address 66:53:45:4c:50:16
[    1.745816] mvneta f1030000.ethernet eth1: Using random mac address ce:76:a7:1e:99:8b
[    1.751957] ata3: SATA link down (SStatus 0 SControl 300)
[    1.759310] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.759838] ata4: SATA link down (SStatus 0 SControl 300)
[    1.771305] ehci-pci: EHCI PCI platform driver
[    1.775806] ehci-orion: EHCI orion driver
[    1.779940] orion-ehci f1058000.usb: EHCI Host Controller
[    1.785375] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    1.793039] orion-ehci f1058000.usb: irq 38, io mem 0xf1058000
[    1.828548] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    1.834597] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.841428] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.848688] usb usb1: Product: EHCI Host Controller
[    1.853586] usb usb1: Manufacturer: Linux 4.9.0-mvebu-tld-12 ehci_hcd
[    1.860061] usb usb1: SerialNumber: f1058000.usb
[    1.865032] hub 1-0:1.0: USB hub found
[    1.868825] hub 1-0:1.0: 1 port detected
[    1.873201] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.878559] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    1.886144] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.894735] xhci-hcd f10f0000.usb3: irq 46, io mem 0xf10f0000
[    1.900608] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    1.907426] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.914687] usb usb2: Product: xHCI Host Controller
[    1.919593] usb usb2: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.926060] usb usb2: SerialNumber: f10f0000.usb3
[    1.931084] hub 2-0:1.0: USB hub found
[    1.934865] hub 2-0:1.0: 1 port detected
[    1.938970] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.944309] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
[    1.951884] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.960079] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    1.966897] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.974158] usb usb3: Product: xHCI Host Controller
[    1.979923] usb usb3: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.986391] usb usb3: SerialNumber: f10f0000.usb3
[    1.991399] hub 3-0:1.0: USB hub found
[    1.995178] hub 3-0:1.0: 1 port detected
[    1.999346] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    2.004690] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    2.012273] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    2.020872] xhci-hcd f10f8000.usb3: irq 47, io mem 0xf10f8000
[    2.026717] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002
[    2.033544] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.040805] usb usb4: Product: xHCI Host Controller
[    2.045703] usb usb4: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    2.052215] usb usb4: SerialNumber: f10f8000.usb3
[    2.057210] hub 4-0:1.0: USB hub found
[    2.061008] hub 4-0:1.0: 1 port detected
[    2.065102] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    2.070450] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5
[    2.078008] usb usb5: We don't know the algorithms for LPM for this host, disabling LPM.
[    2.086197] usb usb5: New USB device found, idVendor=1d6b, idProduct=0003
[    2.093067] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.100331] usb usb5: Product: xHCI Host Controller
[    2.105229] usb usb5: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    2.111750] usb usb5: SerialNumber: f10f8000.usb3
[    2.116749] hub 5-0:1.0: USB hub found
[    2.120541] hub 5-0:1.0: 1 port detected
[    2.124733] usbcore: registered new interface driver usblp
[    2.130321] usbcore: registered new interface driver usb-storage
[    2.136525] mousedev: PS/2 mouse device common for all mice
[    2.142482] armada38x-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[    2.150157] i2c /dev entries driver
[    2.164939] orion_wdt: Initial timeout 171 sec
[    2.170616] marvell-cesa f1090000.crypto: CESA device successfully registered
[    2.177885] hidraw: raw HID events driver (C) Jiri Kosina
[    2.183511] usbcore: registered new interface driver usbhid
[    2.189119] usbhid: USB HID core driver
[    2.193089] drop_monitor: Initializing network drop monitor service
[    2.199423] Netfilter messages via NETLINK v0.30.
[    2.204157] ip_set: protocol 6
[    2.207391] NET: Registered protocol family 10
[    2.212443] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    2.219220] NET: Registered protocol family 17
[    2.223800] 8021q: 802.1Q VLAN Support v1.8
[    2.228020] Key type dns_resolver registered
[    2.232563] ThumbEE CPU extension supported.
[    2.236856] Registering SWP/SWPB emulation handler
[    2.242027] registered taskstats version 1
[    2.246142] Loading compiled-in X.509 certificates
[    2.250997] zswap: loaded using pool lzo/zbud
[    2.298226] Key type big_key registered
[    2.302114] usb 2-1: new high-speed USB device number 2 using xhci-hcd
[    2.312198] Key type encrypted registered
[    2.317148] armada38x-rtc f10a3800.rtc: setting system clock to 2017-06-27 06:04:43 UTC (1498543483)
[    2.327339] Freeing unused kernel memory: 1024K (c0c00000 - c0d00000)
Loading, please wait...
[    2.365753] systemd-udevd[1348]: starting version 215
[    2.371697] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    2.478771] usb 2-1: New USB device found, idVendor=045b, idProduct=0209
[    2.485513] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.498517] hub 2-1:1.0: USB hub found
[    2.505644] hub 2-1:1.0: 4 ports detected
[    2.618843] usb 3-1: new SuperSpeed USB device number 2 using xhci-hcd
[    2.660148] usb 3-1: New USB device found, idVendor=045b, idProduct=0210
[    2.666883] usb 3-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.674634] hub 3-1:1.0: USB hub found
[    2.678645] hub 3-1:1.0: 4 ports detected
[    2.848549] usb 2-1.3: new high-speed USB device number 3 using xhci-hcd
[    2.979185] usb 2-1.3: New USB device found, idVendor=0781, idProduct=5571
[    2.986091] usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.993445] usb 2-1.3: Product: Cruzer Fit
[    2.997558] usb 2-1.3: Manufacturer: SanDisk
[    3.001853] usb 2-1.3: SerialNumber: 4C530302071223122304
[    3.007777] usb-storage 2-1.3:1.0: USB Mass Storage device detected
[    3.014371] scsi host4: usb-storage 2-1.3:1.0
[    3.020574] usbcore: registered new interface driver uas
[    4.089069] scsi 4:0:0:0: Direct-Access     SanDisk  Cruzer Fit       1.00 PQ: 0 ANSI: 6
[    4.099064] sd 4:0:0:0: [sda] 61489152 512-byte logical blocks: (31.5 GB/29.3 GiB)
[    4.107498] sd 4:0:0:0: Attached scsi generic sg0 type 0
[    4.112867] sd 4:0:0:0: [sda] Write Protect is off
[    4.118462] sd 4:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    4.130870]  sda: sda1
[    4.139664] sd 4:0:0:0: [sda] Attached SCSI removable disk
[    4.155158] 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.793570] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   17.802626] EXT4-fs (sda1): INFO: recovery required on readonly filesystem
[   17.809549] EXT4-fs (sda1): write access will be enabled during recovery
[   18.722047] EXT4-fs (sda1): recovery complete
[   18.738965] 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[   19.456137] 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.
[   20.875214] EXT4-fs (sda1): re-mounted. Opts: (null)
[....] Checking root file system...fsck from util-linux 2.25.2
rootfs: clean, 34218/1925120 files, 631633/7685888 blocks
done.
[   21.004388] 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.
[   22.038940] 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/66:53:45:4c:50:16
Sending on   LPF/eth0/66:53:45:4c:50:16
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
[   72.968611] random: crng init done
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 20
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
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 concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
2486 (syslogd)
. ok
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[ 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...
2485 (klogd)
. ok

Debian GNU/Linux 8 debian ttyS0

debian login: root
Password:
Last login: Mon Jun 26 01:49:51 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
 23:09:02 up 4 min,  1 user,  load average: 0.00, 0.00, 0.00
root@debian:~# dmesg
[    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] On node 0 totalpages: 524288
[    0.000000] free_area_init_node: node 0, pgdat c0d97f80, 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@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:
    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 - 0xc0daca28   ( 691 kB)
       .bss : 0xc0daca28 - 0xc0e0d4f8   ( 387 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 32.
[    0.000000]  RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=2
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] mvebu_mbus: [Firmware Warn]: deprecated mbus-mvebu Device Tree, suspend/resume will not work
[    0.000000] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000] L2C-310 D prefetch enabled, offset 1 lines
[    0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000] L2C-310 Coherent cache controller enabled, 16 ways, 1024 kB
[    0.000000] L2C-310 Coherent: CACHE_ID 0x410054c9, AUX_CTRL 0x56070001
[    0.000000] Switching to timer-based delay loop, resolution 40ns
[    0.000003] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 85899345900ns
[    0.007882] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.019060] Console: colour dummy device 80x30
[    0.023573] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[    0.033978] pid_max: default: 32768 minimum: 301
[    0.038732] Security Framework initialized
[    0.042926] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.049599] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.057101] 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.079471] mvebu-pmsu: Initializing Power Management Service Unit
[    0.283913] Booting CPU 1
[    0.286758] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.286806] Brought up 2 CPUs
[    0.295565] SMP: Total of 2 processors activated (100.00 BogoMIPS).
[    0.301885] CPU: All CPU(s) started in SVC mode.
[    0.307122] devtmpfs: initialized
[    0.312443] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.320389] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.330315] prandom: seed boundary self test passed
[    0.336939] prandom: 100 self tests passed
[    0.341100] pinctrl core: initialized pinctrl subsystem
[    0.347012] NET: Registered protocol family 16
[    0.352057] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.393869] cpuidle: using governor ladder
[    0.423867] cpuidle: using governor menu
[    0.427933] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.436002] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.441982] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.450137] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.514829] vgaarb: loaded
[    0.517823] SCSI subsystem initialized
[    0.521770] libata version 3.00 loaded.
[    0.522040] usbcore: registered new interface driver usbfs
[    0.527659] usbcore: registered new interface driver hub
[    0.533090] usbcore: registered new device driver usb
[    0.538407] media: Linux media interface: v0.10
[    0.543044] Linux video capture interface: v2.00
[    0.548533] clocksource: Switched to clocksource armada_370_xp_clocksource
[    0.579891] VFS: Disk quotas dquot_6.6.0
[    0.583919] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.597927] NET: Registered protocol family 2
[    0.602727] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.609874] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.616425] TCP: Hash tables configured (established 8192 bind 8192)
[    0.622875] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.628879] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.635382] NET: Registered protocol family 1
[    0.640057] RPC: Registered named UNIX socket transport module.
[    0.646032] RPC: Registered udp transport module.
[    0.650809] RPC: Registered tcp transport module.
[    0.655574] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.662074] PCI: CLS 0 bytes, default 64
[    0.662183] Unpacking initramfs...
[    0.869222] Freeing initrd memory: 6068K (c2900000 - c2eed000)
[    0.875196] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.881984] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.891119] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.897321] audit: initializing netlink subsys (disabled)
[    0.902824] audit: type=2000 audit(0.890:1): initialized
[    0.908613] Initialise system trusted keyrings
[    0.913256] workingset: timestamp_bits=30 max_order=19 bucket_order=0
[    0.919829] zbud: loaded
[    0.922892] NFS: Registering the id_resolver key type
[    0.928010] Key type id_resolver registered
[    0.932271] Key type id_legacy registered
[    0.936351] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.943114] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.949661] jffs2: version 2.2. (NAND) (SUMMARY)  \xffffffc2\xffffffa9 2001-2006 Red Hat, Inc.
[    0.957052] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.963654] orangefs_init: module version upstream loaded
[    0.970929] Key type asymmetric registered
[    0.975091] Asymmetric key parser 'x509' registered
[    0.980067] bounce: pool size: 64 pages
[    0.984039] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.991493] io scheduler noop registered
[    0.995480] io scheduler deadline registered
[    0.999834] io scheduler cfq registered (default)
[    1.005397] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    1.013819] mvebu-pcie soc:pcie-controller: PCI host bridge to bus 0000:00
[    1.020765] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    1.027087] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    1.034020] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.039572] pci_bus 0000:00: scanning bus
[    1.039594] pci 0000:00:01.0: [11ab:6828] type 01 class 0x060400
[    1.039620] pci 0000:00:01.0: calling pci_fixup_ide_bases+0x0/0x3c
[    1.039782] pci 0000:00:02.0: [11ab:6828] type 01 class 0x060400
[    1.039801] pci 0000:00:02.0: calling pci_fixup_ide_bases+0x0/0x3c
[    1.039944] pci_bus 0000:00: fixups for bus
[    1.039952] PCI: bus0: Fast back to back transfers disabled
[    1.045583] pci 0000:00:01.0: scanning [bus 00-00] behind bridge, pass 0
[    1.045587] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.053651] pci 0000:00:02.0: scanning [bus 00-00] behind bridge, pass 0
[    1.053655] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.061715] pci 0000:00:01.0: scanning [bus 00-00] behind bridge, pass 1
[    1.061810] pci_bus 0000:01: scanning bus
[    1.061816] pci_bus 0000:01: fixups for bus
[    1.061819] PCI: bus1: Fast back to back transfers enabled
[    1.067362] pci_bus 0000:01: bus scan returning with max=01
[    1.067367] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    1.067374] pci 0000:00:02.0: scanning [bus 00-00] behind bridge, pass 1
[    1.067460] pci_bus 0000:02: scanning bus
[    1.067465] pci_bus 0000:02: fixups for bus
[    1.067468] PCI: bus2: Fast back to back transfers enabled
[    1.073022] pci_bus 0000:02: bus scan returning with max=02
[    1.073026] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    1.073032] pci_bus 0000:00: bus scan returning with max=02
[    1.073038] pci 0000:00:01.0: fixup irq: got 0
[    1.073041] pci 0000:00:01.0: assigning IRQ 00
[    1.073046] pci 0000:00:02.0: fixup irq: got 0
[    1.073049] pci 0000:00:02.0: assigning IRQ 00
[    1.073061] pci 0000:00:01.0: PCI bridge to [bus 01]
[    1.078091] pci 0000:00:02.0: PCI bridge to [bus 02]
[    1.083161] pcieport 0000:00:01.0: enabling bus mastering
[    1.083195] pcieport 0000:00:02.0: enabling bus mastering
[    1.083536] mv_xor f1060800.xor: Marvell shared XOR driver
[    1.148940] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.156538] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.218936] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.269180] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.276834] console [ttyS0] disabled
[    1.300560] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 22, base_baud = 12500000) is a 16550A
[    1.309614] console [ttyS0] enabled
[    1.316703] bootconsole [earlycon0] disabled
[    1.326292] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.335398] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.344962] scsi host0: ahci-mvebu
[    1.348749] scsi host1: ahci-mvebu
[    1.352363] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 42
[    1.360327] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 42
[    1.368409] ahci-mvebu f10e0000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.377511] ahci-mvebu f10e0000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.396916] scsi host2: ahci-mvebu
[    1.400562] scsi host3: ahci-mvebu
[    1.404119] ata3: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x100 irq 43
[    1.412082] ata4: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x180 irq 43
[    1.420522] pxa3xx-nand f10d0000.flash: This platform can't do DMA on this device
[    1.428375] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xdc
[    1.434769] nand: Hynix H27U4G8F2DTR-BC
[    1.438645] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.446249] pxa3xx-nand f10d0000.flash: ECC strength 16, ECC step size 2048
[    1.453441] Bad block table found at page 262080, version 0x01
[    1.459630] Bad block table found at page 262016, version 0x01
[    1.465657] nand_read_bbt: bad block at 0x00000dcc0000
[    1.470827] nand_read_bbt: bad block at 0x00000fb00000
[    1.475988] nand_read_bbt: bad block at 0x000012180000
[    1.481158] nand_read_bbt: bad block at 0x0000139a0000
[    1.486319] nand_read_bbt: bad block at 0x000017880000
[    1.491484] nand_read_bbt: bad block at 0x0000178a0000
[    1.496644] nand_read_bbt: bad block at 0x00001a640000
[    1.501811] nand_read_bbt: bad block at 0x00001e9c0000
[    1.507015] 8 ofpart partitions found on MTD device pxa3xx_nand-0
[    1.513142] Creating 8 MTD partitions on "pxa3xx_nand-0":
[    1.518571] 0x000000000000-0x000000500000 : "U-Boot"
[    1.534233] 0x000000500000-0x000000f00000 : "uImage"
[    1.549857] 0x000000a00000-0x000001900000 : "uRamdisk"
[    1.565647] 0x000000f00000-0x00001d700000 : "image.cfs"
[    1.583086] 0x00001c800000-0x000039f00000 : "rescue_fw"
[    1.588336] mtd: partition "rescue_fw" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x3800000
[    1.609886] 0x00001d700000-0x00003c200000 : "config"
[    1.614885] mtd: partition "config" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x2900000
[    1.636119] 0x00001eb00000-0x00003e000000 : "reserve1"
[    1.641308] mtd: partition "reserve1" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x1500000
[    1.662657] 0x00001f500000-0x00003f400000 : "reserve2"
[    1.667836] mtd: partition "reserve2" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0xb00000
[    1.689666] m25p80 spi0.0: unrecognized JEDEC id bytes: ff, ff, ff
[    1.696343] libphy: Fixed MDIO Bus: probed
[    1.699816] ata1: SATA link down (SStatus 0 SControl 300)
[    1.706533] libphy: mdio_driver_register: mv88e6085
[    1.711458] ata2: SATA link down (SStatus 0 SControl 300)
[    1.717036] libphy: orion_mdio_bus: probed
[    1.726636] mvneta_bm f10c8000.bm: Buffer Manager for network controller enabled
[    1.736015] mvneta f1070000.ethernet eth0: Using random mac address 66:53:45:4c:50:16
[    1.745816] mvneta f1030000.ethernet eth1: Using random mac address ce:76:a7:1e:99:8b
[    1.751957] ata3: SATA link down (SStatus 0 SControl 300)
[    1.759310] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.759838] ata4: SATA link down (SStatus 0 SControl 300)
[    1.771305] ehci-pci: EHCI PCI platform driver
[    1.775806] ehci-orion: EHCI orion driver
[    1.779940] orion-ehci f1058000.usb: EHCI Host Controller
[    1.785375] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    1.793039] orion-ehci f1058000.usb: irq 38, io mem 0xf1058000
[    1.828548] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    1.834597] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.841428] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.848688] usb usb1: Product: EHCI Host Controller
[    1.853586] usb usb1: Manufacturer: Linux 4.9.0-mvebu-tld-12 ehci_hcd
[    1.860061] usb usb1: SerialNumber: f1058000.usb
[    1.865032] hub 1-0:1.0: USB hub found
[    1.868825] hub 1-0:1.0: 1 port detected
[    1.873201] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.878559] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    1.886144] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.894735] xhci-hcd f10f0000.usb3: irq 46, io mem 0xf10f0000
[    1.900608] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    1.907426] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.914687] usb usb2: Product: xHCI Host Controller
[    1.919593] usb usb2: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.926060] usb usb2: SerialNumber: f10f0000.usb3
[    1.931084] hub 2-0:1.0: USB hub found
[    1.934865] hub 2-0:1.0: 1 port detected
[    1.938970] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.944309] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
[    1.951884] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.960079] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    1.966897] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.974158] usb usb3: Product: xHCI Host Controller
[    1.979923] usb usb3: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.986391] usb usb3: SerialNumber: f10f0000.usb3
[    1.991399] hub 3-0:1.0: USB hub found
[    1.995178] hub 3-0:1.0: 1 port detected
[    1.999346] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    2.004690] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    2.012273] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    2.020872] xhci-hcd f10f8000.usb3: irq 47, io mem 0xf10f8000
[    2.026717] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002
[    2.033544] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.040805] usb usb4: Product: xHCI Host Controller
[    2.045703] usb usb4: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    2.052215] usb usb4: SerialNumber: f10f8000.usb3
[    2.057210] hub 4-0:1.0: USB hub found
[    2.061008] hub 4-0:1.0: 1 port detected
[    2.065102] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    2.070450] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5
[    2.078008] usb usb5: We don't know the algorithms for LPM for this host, disabling LPM.
[    2.086197] usb usb5: New USB device found, idVendor=1d6b, idProduct=0003
[    2.093067] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.100331] usb usb5: Product: xHCI Host Controller
[    2.105229] usb usb5: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    2.111750] usb usb5: SerialNumber: f10f8000.usb3
[    2.116749] hub 5-0:1.0: USB hub found
[    2.120541] hub 5-0:1.0: 1 port detected
[    2.124733] usbcore: registered new interface driver usblp
[    2.130321] usbcore: registered new interface driver usb-storage
[    2.136525] mousedev: PS/2 mouse device common for all mice
[    2.142482] armada38x-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[    2.150157] i2c /dev entries driver
[    2.164939] orion_wdt: Initial timeout 171 sec
[    2.170616] marvell-cesa f1090000.crypto: CESA device successfully registered
[    2.177885] hidraw: raw HID events driver (C) Jiri Kosina
[    2.183511] usbcore: registered new interface driver usbhid
[    2.189119] usbhid: USB HID core driver
[    2.193089] drop_monitor: Initializing network drop monitor service
[    2.199423] Netfilter messages via NETLINK v0.30.
[    2.204157] ip_set: protocol 6
[    2.207391] NET: Registered protocol family 10
[    2.212443] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    2.219220] NET: Registered protocol family 17
[    2.223800] 8021q: 802.1Q VLAN Support v1.8
[    2.228020] Key type dns_resolver registered
[    2.232563] ThumbEE CPU extension supported.
[    2.236856] Registering SWP/SWPB emulation handler
[    2.242027] registered taskstats version 1
[    2.246142] Loading compiled-in X.509 certificates
[    2.250997] zswap: loaded using pool lzo/zbud
[    2.298226] Key type big_key registered
[    2.302114] usb 2-1: new high-speed USB device number 2 using xhci-hcd
[    2.312198] Key type encrypted registered
[    2.317148] armada38x-rtc f10a3800.rtc: setting system clock to 2017-06-27 06:04:43 UTC (1498543483)
[    2.326409] PM: Hibernation image not present or could not be loaded.
[    2.327339] Freeing unused kernel memory: 1024K (c0c00000 - c0d00000)
[    2.365753] systemd-udevd[1348]: starting version 215
[    2.371697] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    2.478771] usb 2-1: New USB device found, idVendor=045b, idProduct=0209
[    2.485513] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.498517] hub 2-1:1.0: USB hub found
[    2.505644] hub 2-1:1.0: 4 ports detected
[    2.618843] usb 3-1: new SuperSpeed USB device number 2 using xhci-hcd
[    2.660148] usb 3-1: New USB device found, idVendor=045b, idProduct=0210
[    2.666883] usb 3-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.674634] hub 3-1:1.0: USB hub found
[    2.678645] hub 3-1:1.0: 4 ports detected
[    2.848549] usb 2-1.3: new high-speed USB device number 3 using xhci-hcd
[    2.979185] usb 2-1.3: New USB device found, idVendor=0781, idProduct=5571
[    2.986091] usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.993445] usb 2-1.3: Product: Cruzer Fit
[    2.997558] usb 2-1.3: Manufacturer: SanDisk
[    3.001853] usb 2-1.3: SerialNumber: 4C530302071223122304
[    3.007777] usb-storage 2-1.3:1.0: USB Mass Storage device detected
[    3.014371] scsi host4: usb-storage 2-1.3:1.0
[    3.020574] usbcore: registered new interface driver uas
[    4.089069] scsi 4:0:0:0: Direct-Access     SanDisk  Cruzer Fit       1.00 PQ: 0 ANSI: 6
[    4.099064] sd 4:0:0:0: [sda] 61489152 512-byte logical blocks: (31.5 GB/29.3 GiB)
[    4.107498] sd 4:0:0:0: Attached scsi generic sg0 type 0
[    4.112867] sd 4:0:0:0: [sda] Write Protect is off
[    4.117680] sd 4:0:0:0: [sda] Mode Sense: 43 00 00 00
[    4.118462] sd 4:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    4.130870]  sda: sda1
[    4.139664] sd 4:0:0:0: [sda] Attached SCSI removable disk
[    4.155158] random: fast init done
[   17.793570] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   17.802626] EXT4-fs (sda1): INFO: recovery required on readonly filesystem
[   17.809549] EXT4-fs (sda1): write access will be enabled during recovery
[   18.722047] EXT4-fs (sda1): recovery complete
[   18.738965] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[   19.456137] systemd-udevd[1555]: starting version 215
[   20.875214] EXT4-fs (sda1): re-mounted. Opts: (null)
[   21.004388] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[   22.038940] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   72.968611] random: crng init done
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:~# nano /etc/fw_env.config
  GNU nano 2.2.6           File: /etc/fw_env.config

# MTD device name       Device offset   Env. size       Flash sector size      $
/dev/mtd0       0x100000        0x80000 0x20000 4

root@debian:~# fw_printenv
Warning: Bad CRC, using default environment
bootargs=
bootcmd=bootp; setenv bootargs root=/dev/nfs nfsroot=${serverip}:${rootpath} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off; bootm
bootdelay=3
baudrate=115200
stdin=serial,cros-ec-keyb
stdout=serial,lcd
stderr=serial,lcd
root@debian:~# nano /etc/fw_env.config
  GNU nano 2.2.6           File: /etc/fw_env.config

# MTD device name       Device offset   Env. size       Flash sector size      $
/dev/mtd0 0x100000 0x80000 0x20000 4

root@debian:~# fw_printenv
Warning: Bad CRC, using default environment
bootargs=
bootcmd=bootp; setenv bootargs root=/dev/nfs nfsroot=${serverip}:${rootpath} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off; bootm
bootdelay=3
baudrate=115200
stdin=serial,cros-ec-keyb
stdout=serial,lcd
stderr=serial,lcd
Re: Debian on WD MyCloud EX 4100
June 27, 2017 01:04AM
saschadd,

kwboot tld-4 again.

Let save the envs after setting it up

Marvell>> setenv bootdev usb
Marvell>> setenv device '0:1'
Marvell>> setenv load_initrd_addr 0x2900000
Marvell>> setenv load_image_addr 0x02000000
Marvell>> setenv load_initrd 'echo loading uInitrd ...; ext2load $bootdev $device $load_initrd_addr /boot/uInitrd'
Marvell>> setenv load_image 'echo loading Image ...; ext2load $bootdev $device $load_image_addr /boot/uImage'
Marvell>> setenv usb_set_bootargs 'setenv bootargs console=ttyS0,115200 root=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)'
Marvell>> setenv usb_bootcmd 'echo Booting from USB ...; setenv fdt_skip_update yes; usb start; run load_image; run load_initrd ; run usb_set_bootargs; bootm $load_image_addr $load_initrd_addr'
Marvell>> setenv bootcmd_usb 'usb start; run usb_set_bootargs; run usb_bootcmd; reset'


right after this, do a save before running bootcmd_usb,

saveenv
printenv
run bootcmd_usb

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



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

i think this looks good. ;)

./kwboot -f -t -B 115200 /dev/ttyAMA0 -b u-boot-a38x-Yellowstone_2014T30p6_bodhi-tld-4-nand-uart.bin -s 0 -q 1
Sending boot message. Please reboot the target...-▒"▒&T▒▒▒"3DUfw▒"3DUfw▒"3DUfw▒"3DUfw▒"3DUf\
Sending boot image...
  0 % [......................................................................]
  0 % [......................................................................]
  1 % [......................................................................]
  2 % [......................................................................]
...
 97 % [......................................................................]
 98 % [......................................................................]
 99 % [..................................................]
[Type Ctrl-\ + c to quit]

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


U-Boot 2013.01_v1.06 (Jun 23 2017 - 03:15:32) Marvell version: 2014_T3.0p6 - bodhi-tld-4

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:0x7ff96080
       BSS:                     0x7ffef654
       Stack:                   0x7f9cdf20
       Heap:                    0x7f9ce000:0x7fece000
       U-Boot Environment:      0x00100000:0x00180000 Address: 0x00100000(NAND)

NAND:  ID: dcad ,512 MiB
MMC:   mv_sdh: 0
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
Marvell>> setenv bootdev usb
Marvell>> setenv device '0:1'
Marvell>> setenv load_initrd_addr 0x2900000
Marvell>> setenv load_image_addr 0x02000000
Marvell>> setenv load_initrd 'echo loading uInitrd ...; ext2load $bootdev $device $load_initrd_addr /boot/uInitrd'
Marvell>> setenv load_image 'echo loading Image ...; ext2load $bootdev $device $load_image_addr /boot/uImage'
Marvell>> setenv usb_set_bootargs 'setenv bootargs console=ttyS0,115200 root=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)'
Marvell>> setenv usb_bootcmd 'echo Booting from USB ...; setenv fdt_skip_update yes; usb start; run load_image; run load_initrd ; run usb_set_bootargs; bootm $load_image_addr $load_initrd_addr'
Marvell>> setenv bootcmd_usb 'usb start; run usb_set_bootargs; run usb_bootcmd; reset'
Marvell>> saveenv
Saving Environment to NAND...
Erasing Nand...
Writing to Nand... done
Marvell>> printenv
CASset=max
MALLOC_len=5
MPmode=SMP
autoload=no
baudrate=115200
boot_order=hd_scr usb_scr mmc_scr hd_img usb_img mmc_img pxe net_img net_scr
bootargs=root=/dev/ram console=ttyS0,115200
bootargs_dflt=$console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel
bootargs_end=:10.4.50.254:255.255.255.0:Armada38x:eth0:none
bootargs_root=root=/dev/nfs rw
bootcmd=nand read.e 0xa00000 0x500000 0x500000;nand read.e 0xf00000 0xa00000 0x500000;bootm 0xa00000 0xf00000
bootcmd_auto=stage_boot $boot_order
bootcmd_fdt=tftpboot 0x2000000 $image_name;tftpboot $fdtaddr $fdtfile;setenv bootargs $console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel; bootz 0x2000000 - $fdtaddr;
bootcmd_fdt_boot=tftpboot 0x2000000 $image_name; setenv bootargs $console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel; bootz 0x2000000 - $fdtaddr;
bootcmd_fdt_edit=tftpboot $fdtaddr $fdtfile; fdt addr $fdtaddr; setenv bootcmd $bootcmd_fdt_boot
bootcmd_lgcy=tftpboot 0x2000000 $image_name; setenv bootargs $bootargs_dflt; bootm 0x2000000;
bootcmd_usb=usb start; run usb_set_bootargs; run usb_bootcmd; reset
bootdelay=1
bootdev=usb
cacheShare=no
console=console=ttyS0,115200
device=0:1
device_partition=0:1
disaMvPnp=no
eeeEnable=no
enaClockGating=no
enaCpuStream=no
enaFPU=yes
enaMonExt=no
enaWrAllo=no
eth1addr=00:50:43: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
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

Environment size: 3991/524284 bytes
Marvell>> run bootcmd_usb
(Re)start USB...
USB0:   Port (usbActive) : 0    Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 4 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
Booting from USB ...
(Re)start USB...
USB0:   Port (usbActive) : 0    Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 4 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
loading Image ...
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.007882] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.019060] Console: colour dummy device 80x30
[    0.023574] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[    0.033978] pid_max: default: 32768 minimum: 301
[    0.038732] 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.057104] CPU: Testing write buffer coherency: ok
[    0.062175] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.067913] Setting up static identity map for 0x100000 - 0x100058
[    0.074216] mvebu-soc-id: MVEBU SoC ID=0x6828, Rev=0x4
[    0.079477] mvebu-pmsu: Initializing Power Management Service Unit
[    0.283911] Booting CPU 1
[    0.286758] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.286806] Brought up 2 CPUs
[    0.295564] SMP: Total of 2 processors activated (100.00 BogoMIPS).
[    0.301884] CPU: All CPU(s) started in SVC mode.
[    0.307114] devtmpfs: initialized
[    0.312444] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.320390] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.330316] prandom: seed boundary self test passed
[    0.336940] prandom: 100 self tests passed
[    0.341101] pinctrl core: initialized pinctrl subsystem
[    0.347016] NET: Registered protocol family 16
[    0.352055] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.393868] cpuidle: using governor ladder
[    0.423866] cpuidle: using governor menu
[    0.427931] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.436000] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.441980] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.450135] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.504824] vgaarb: loaded
[    0.507836] SCSI subsystem initialized
[    0.512065] usbcore: registered new interface driver usbfs
[    0.517696] usbcore: registered new interface driver hub
[    0.523129] usbcore: registered new device driver usb
[    0.528448] media: Linux media interface: v0.10
[    0.533084] Linux video capture interface: v2.00
[    0.538581] clocksource: Switched to clocksource armada_370_xp_clocksource
[    0.570102] VFS: Disk quotas dquot_6.6.0
[    0.574130] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.587965] NET: Registered protocol family 2
[    0.592782] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.599931] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.606481] TCP: Hash tables configured (established 8192 bind 8192)
[    0.612953] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.618962] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.625468] NET: Registered protocol family 1
[    0.630153] RPC: Registered named UNIX socket transport module.
[    0.636129] RPC: Registered udp transport module.
[    0.640909] RPC: Registered tcp transport module.
[    0.645674] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.652298] Unpacking initramfs...
[    0.859725] Freeing initrd memory: 6068K (c2900000 - c2eed000)
[    0.865700] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.872498] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.881641] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.887848] audit: initializing netlink subsys (disabled)
[    0.893359] audit: type=2000 audit(0.880:1): initialized
[    0.899145] Initialise system trusted keyrings
[    0.903787] workingset: timestamp_bits=30 max_order=19 bucket_order=0
[    0.910365] zbud: loaded
[    0.913429] NFS: Registering the id_resolver key type
[    0.918546] Key type id_resolver registered
[    0.922809] Key type id_legacy registered
[    0.926888] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.933651] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.940196] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.947585] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.954191] orangefs_init: module version upstream loaded
[    0.961471] Key type asymmetric registered
[    0.965633] Asymmetric key parser 'x509' registered
[    0.970610] bounce: pool size: 64 pages
[    0.974584] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.982038] io scheduler noop registered
[    0.986025] io scheduler deadline registered
[    0.990379] io scheduler cfq registered (default)
[    0.995948] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    1.004372] mvebu-pcie soc:pcie-controller: PCI host bridge to bus 0000:00
[    1.011318] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    1.017641] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    1.024575] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.030506] PCI: bus0: Fast back to back transfers disabled
[    1.036141] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.044209] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.052373] PCI: bus1: Fast back to back transfers enabled
[    1.058022] PCI: bus2: Fast back to back transfers enabled
[    1.063614] pci 0000:00:01.0: PCI bridge to [bus 01]
[    1.068652] pci 0000:00:02.0: PCI bridge to [bus 02]
[    1.074093] mv_xor f1060800.xor: Marvell shared XOR driver
[    1.138986] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.146585] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.208983] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.259298] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.266936] console [ttyS0] disabled
[    1.290667] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 22, base_baud = 12500000) is a 16550A
[    1.299702] console [ttyS0] enabled
[    1.299702] console [ttyS0] enabled
[    1.306789] bootconsole [earlycon0] disabled
[    1.306789] bootconsole [earlycon0] disabled
[    1.316387] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.325494] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.335048] scsi host0: ahci-mvebu
[    1.338762] scsi host1: ahci-mvebu
[    1.342365] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 42
[    1.350331] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 42
[    1.358418] ahci-mvebu f10e0000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.367520] ahci-mvebu f10e0000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.376888] scsi host2: ahci-mvebu
[    1.380534] scsi host3: ahci-mvebu
[    1.384088] ata3: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x100 irq 43
[    1.392052] ata4: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x180 irq 43
[    1.400475] pxa3xx-nand f10d0000.flash: This platform can't do DMA on this device
[    1.408324] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xdc
[    1.414718] nand: Hynix H27U4G8F2DTR-BC
[    1.418571] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.426182] pxa3xx-nand f10d0000.flash: ECC strength 16, ECC step size 2048
[    1.433377] Bad block table found at page 262080, version 0x01
[    1.439568] Bad block table found at page 262016, version 0x01
[    1.445598] nand_read_bbt: bad block at 0x00000dcc0000
[    1.450767] nand_read_bbt: bad block at 0x00000fb00000
[    1.455929] nand_read_bbt: bad block at 0x000012180000
[    1.461095] nand_read_bbt: bad block at 0x0000139a0000
[    1.466256] nand_read_bbt: bad block at 0x000017880000
[    1.471422] nand_read_bbt: bad block at 0x0000178a0000
[    1.476583] nand_read_bbt: bad block at 0x00001a640000
[    1.481751] nand_read_bbt: bad block at 0x00001e9c0000
[    1.486956] 8 ofpart partitions found on MTD device pxa3xx_nand-0
[    1.493082] Creating 8 MTD partitions on "pxa3xx_nand-0":
[    1.498505] 0x000000000000-0x000000500000 : "U-Boot"
[    1.514180] 0x000000500000-0x000000f00000 : "uImage"
[    1.529814] 0x000000a00000-0x000001900000 : "uRamdisk"
[    1.545604] 0x000000f00000-0x00001d700000 : "image.cfs"
[    1.563091] 0x00001c800000-0x000039f00000 : "rescue_fw"
[    1.568340] mtd: partition "rescue_fw" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x3800000
[    1.589884] 0x00001d700000-0x00003c200000 : "config"
[    1.594872] mtd: partition "config" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x2900000
[    1.616104] 0x00001eb00000-0x00003e000000 : "reserve1"
[    1.621277] mtd: partition "reserve1" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x1500000
[    1.642609] 0x00001f500000-0x00003f400000 : "reserve2"
[    1.647771] mtd: partition "reserve2" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0xb00000
[    1.669554] m25p80 spi0.0: unrecognized JEDEC id bytes: ff, ff, ff
[    1.676204] libphy: Fixed MDIO Bus: probed
[    1.680603] libphy: mdio_driver_register: mv88e6085
[    1.685636] libphy: orion_mdio_bus: probed
[    1.689836] ata1: SATA link down (SStatus 0 SControl 300)
[    1.700385] ata2: SATA link down (SStatus 0 SControl 300)
[    1.700513] mvneta_bm f10c8000.bm: Buffer Manager for network controller enabled
[    1.706438] mvneta f1070000.ethernet eth0: Using random mac address 8a:c0:78:bc:4e:88
[    1.714045] mvneta f1030000.ethernet eth1: Using random mac address 12:85:14:f3:3e:72
[    1.714222] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.714236] ehci-pci: EHCI PCI platform driver
[    1.714279] ehci-orion: EHCI orion driver
[    1.714380] orion-ehci f1058000.usb: EHCI Host Controller
[    1.714395] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    1.714457] orion-ehci f1058000.usb: irq 38, io mem 0xf1058000
[    1.730585] ata3: SATA link down (SStatus 0 SControl 300)
[    1.745709] ata4: SATA link down (SStatus 0 SControl 300)
[    1.748594] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    1.748706] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.748710] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.748713] usb usb1: Product: EHCI Host Controller
[    1.748716] usb usb1: Manufacturer: Linux 4.9.0-mvebu-tld-12 ehci_hcd
[    1.748718] usb usb1: SerialNumber: f1058000.usb
[    1.751356] hub 1-0:1.0: USB hub found
[    1.751374] hub 1-0:1.0: 1 port detected
[    1.751814] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.751826] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    1.751899] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.751924] xhci-hcd f10f0000.usb3: irq 46, io mem 0xf10f0000
[    1.752007] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    1.752011] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.752014] usb usb2: Product: xHCI Host Controller
[    1.752017] usb usb2: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.752019] usb usb2: SerialNumber: f10f0000.usb3
[    1.759023] hub 2-0:1.0: USB hub found
[    1.759042] hub 2-0:1.0: 1 port detected
[    1.759204] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.759211] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
[    1.759265] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.759326] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    1.759330] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.759333] usb usb3: Product: xHCI Host Controller
[    1.759336] usb usb3: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.759338] usb usb3: SerialNumber: f10f0000.usb3
[    1.765130] hub 3-0:1.0: USB hub found
[    1.765150] hub 3-0:1.0: 1 port detected
[    1.765374] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.765386] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    1.765449] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.765471] xhci-hcd f10f8000.usb3: irq 47, io mem 0xf10f8000
[    1.765568] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002
[    1.765572] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.765574] usb usb4: Product: xHCI Host Controller
[    1.765577] usb usb4: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.765579] usb usb4: SerialNumber: f10f8000.usb3
[    1.770597] hub 4-0:1.0: USB hub found
[    1.770619] hub 4-0:1.0: 1 port detected
[    1.770780] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.770788] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5
[    1.770841] usb usb5: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.770911] usb usb5: New USB device found, idVendor=1d6b, idProduct=0003
[    1.770915] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.770917] usb usb5: Product: xHCI Host Controller
[    1.770920] usb usb5: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.770922] usb usb5: SerialNumber: f10f8000.usb3
[    1.776104] hub 5-0:1.0: USB hub found
[    1.776123] hub 5-0:1.0: 1 port detected
[    1.776376] usbcore: registered new interface driver usblp
[    1.776444] usbcore: registered new interface driver usb-storage
[    1.782108] mousedev: PS/2 mouse device common for all mice
[    1.788972] armada38x-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[    1.789122] i2c /dev entries driver
[    1.812718] orion_wdt: Initial timeout 171 sec
[    1.813977] marvell-cesa f1090000.crypto: CESA device successfully registered
[    1.814075] hidraw: raw HID events driver (C) Jiri Kosina
[    1.816601] usbcore: registered new interface driver usbhid
[    1.816603] usbhid: USB HID core driver
[    1.816710] drop_monitor: Initializing network drop monitor service
[    1.816742] Netfilter messages via NETLINK v0.30.
[    1.816753] ip_set: protocol 6
[    1.820717] NET: Registered protocol family 10
[    1.833761] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    1.834444] NET: Registered protocol family 17
[    1.834554] 8021q: 802.1Q VLAN Support v1.8
[    1.834576] Key type dns_resolver registered
[    1.834659] ThumbEE CPU extension supported.
[    1.834665] Registering SWP/SWPB emulation handler
[    1.855188] registered taskstats version 1
[    1.855192] Loading compiled-in X.509 certificates
[    1.855223] zswap: loaded using pool lzo/zbud
[    1.937894] Key type big_key registered
[    1.958685] Key type encrypted registered
[    1.972939] armada38x-rtc f10a3800.rtc: setting system clock to 2017-06-27 07:18:14 UTC (1498547894)
[    2.028779] usb 3-1: new SuperSpeed USB device number 2 using xhci-hcd
[    2.060109] usb 3-1: New USB device found, idVendor=045b, idProduct=0210
[    2.060114] usb 3-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.062504] hub 3-1:1.0: USB hub found
[    2.062746] hub 3-1:1.0: 4 ports detected
[    2.188596] usb 2-1: new high-speed USB device number 2 using xhci-hcd
[    2.247034] Freeing unused kernel memory: 1024K (c0c00000 - c0d00000)
Loading, please wait...
[    2.285735] systemd-udevd[1350]: starting version 215
[    2.291725] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    2.358910] usb 2-1: New USB device found, idVendor=045b, idProduct=0209
[    2.365645] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.378300] hub 2-1:1.0: USB hub found
[    2.383994] hub 2-1:1.0: 4 ports detected
[    2.708598] usb 2-1.3: new high-speed USB device number 3 using xhci-hcd
[    2.839227] usb 2-1.3: New USB device found, idVendor=0781, idProduct=5571
[    2.846133] usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.853485] usb 2-1.3: Product: Cruzer Fit
[    2.857598] usb 2-1.3: Manufacturer: SanDisk
[    2.861893] usb 2-1.3: SerialNumber: 4C530302071223122304
[    2.868113] usb-storage 2-1.3:1.0: USB Mass Storage device detected
[    2.874555] scsi host4: usb-storage 2-1.3:1.0
[    2.880487] usbcore: registered new interface driver uas
[    3.929117] scsi 4:0:0:0: Direct-Access     SanDisk  Cruzer Fit       1.00 PQ: 0 ANSI: 6
[    3.939436] sd 4:0:0:0: Attached scsi generic sg0 type 0
[    3.946391] sd 4:0:0:0: [sda] 61489152 512-byte logical blocks: (31.5 GB/29.3 GiB)
[    3.954819] sd 4:0:0:0: [sda] Write Protect is off
[    3.959931] sd 4:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    3.972118]  sda: sda1
[    3.976028] sd 4:0:0:0: [sda] Attached SCSI removable disk
[    4.010792] 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.643538] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   17.652594] EXT4-fs (sda1): INFO: recovery required on readonly filesystem
[   17.659514] EXT4-fs (sda1): write access will be enabled during recovery
[   17.718115] EXT4-fs (sda1): recovery complete
[   17.725011] 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.488483] systemd-udevd[1557]: 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.916466] EXT4-fs (sda1): re-mounted. Opts: (null)
[....] Checking root file system...fsck from util-linux 2.25.2
rootfs: clean, 34218/1925120 files, 631638/7685888 blocks
done.
[   20.033191] 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.
[   21.098989] 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/8a:c0:78:bc:4e:88
Sending on   LPF/eth0/8a:c0:78:bc:4e:88
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 17
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 10
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 20
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 2
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
done.
[ ok ] Starting rpcbind daemon....
[   83.012240] 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.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
2498 (syslogd)
. ok
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[ ok ] Starting periodic command scheduler: cron.
[ ok ] Starting system message bus: dbus.
[ ok ] Starting NTP server: ntpd.
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
2497 (klogd)
. ok

Debian GNU/Linux 8 debian ttyS0

debian login: root
Password:
Last login: Mon Jun 26 23:17:57 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:19:53 up 1 min,  1 user,  load average: 0.02, 0.01, 0.00
root@debian:~# dmesg
[    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] On node 0 totalpages: 524288
[    0.000000] free_area_init_node: node 0, pgdat c0d97f80, 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@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:
    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 - 0xc0daca28   ( 691 kB)
       .bss : 0xc0daca28 - 0xc0e0d4f8   ( 387 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 32.
[    0.000000]  RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=2
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] mvebu_mbus: [Firmware Warn]: deprecated mbus-mvebu Device Tree, suspend/resume will not work
[    0.000000] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000] L2C-310 D prefetch enabled, offset 1 lines
[    0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000] L2C-310 Coherent cache controller enabled, 16 ways, 1024 kB
[    0.000000] L2C-310 Coherent: CACHE_ID 0x410054c9, AUX_CTRL 0x56070001
[    0.000000] Switching to timer-based delay loop, resolution 40ns
[    0.000003] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 85899345900ns
[    0.007882] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.019060] Console: colour dummy device 80x30
[    0.023574] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[    0.033978] pid_max: default: 32768 minimum: 301
[    0.038732] 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.057104] CPU: Testing write buffer coherency: ok
[    0.062175] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.067913] Setting up static identity map for 0x100000 - 0x100058
[    0.074216] mvebu-soc-id: MVEBU SoC ID=0x6828, Rev=0x4
[    0.079477] mvebu-pmsu: Initializing Power Management Service Unit
[    0.283911] Booting CPU 1
[    0.286758] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.286806] Brought up 2 CPUs
[    0.295564] SMP: Total of 2 processors activated (100.00 BogoMIPS).
[    0.301884] CPU: All CPU(s) started in SVC mode.
[    0.307114] devtmpfs: initialized
[    0.312444] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.320390] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.330316] prandom: seed boundary self test passed
[    0.336940] prandom: 100 self tests passed
[    0.341101] pinctrl core: initialized pinctrl subsystem
[    0.347016] NET: Registered protocol family 16
[    0.352055] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.393868] cpuidle: using governor ladder
[    0.423866] cpuidle: using governor menu
[    0.427931] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.436000] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.441980] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.450135] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.504824] vgaarb: loaded
[    0.507836] SCSI subsystem initialized
[    0.511799] libata version 3.00 loaded.
[    0.512065] usbcore: registered new interface driver usbfs
[    0.517696] usbcore: registered new interface driver hub
[    0.523129] usbcore: registered new device driver usb
[    0.528448] media: Linux media interface: v0.10
[    0.533084] Linux video capture interface: v2.00
[    0.538581] clocksource: Switched to clocksource armada_370_xp_clocksource
[    0.570102] VFS: Disk quotas dquot_6.6.0
[    0.574130] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.587965] NET: Registered protocol family 2
[    0.592782] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.599931] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.606481] TCP: Hash tables configured (established 8192 bind 8192)
[    0.612953] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.618962] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.625468] NET: Registered protocol family 1
[    0.630153] RPC: Registered named UNIX socket transport module.
[    0.636129] RPC: Registered udp transport module.
[    0.640909] RPC: Registered tcp transport module.
[    0.645674] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.652188] PCI: CLS 0 bytes, default 64
[    0.652298] Unpacking initramfs...
[    0.859725] Freeing initrd memory: 6068K (c2900000 - c2eed000)
[    0.865700] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.872498] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.881641] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.887848] audit: initializing netlink subsys (disabled)
[    0.893359] audit: type=2000 audit(0.880:1): initialized
[    0.899145] Initialise system trusted keyrings
[    0.903787] workingset: timestamp_bits=30 max_order=19 bucket_order=0
[    0.910365] zbud: loaded
[    0.913429] NFS: Registering the id_resolver key type
[    0.918546] Key type id_resolver registered
[    0.922809] Key type id_legacy registered
[    0.926888] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.933651] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.940196] jffs2: version 2.2. (NAND) (SUMMARY)  \xffffffc2\xffffffa9 2001-2006 Red Hat, Inc.
[    0.947585] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.954191] orangefs_init: module version upstream loaded
[    0.961471] Key type asymmetric registered
[    0.965633] Asymmetric key parser 'x509' registered
[    0.970610] bounce: pool size: 64 pages
[    0.974584] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.982038] io scheduler noop registered
[    0.986025] io scheduler deadline registered
[    0.990379] io scheduler cfq registered (default)
[    0.995948] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    1.004372] mvebu-pcie soc:pcie-controller: PCI host bridge to bus 0000:00
[    1.011318] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    1.017641] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    1.024575] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.030129] pci_bus 0000:00: scanning bus
[    1.030150] pci 0000:00:01.0: [11ab:6828] type 01 class 0x060400
[    1.030176] pci 0000:00:01.0: calling pci_fixup_ide_bases+0x0/0x3c
[    1.030337] pci 0000:00:02.0: [11ab:6828] type 01 class 0x060400
[    1.030356] pci 0000:00:02.0: calling pci_fixup_ide_bases+0x0/0x3c
[    1.030498] pci_bus 0000:00: fixups for bus
[    1.030506] PCI: bus0: Fast back to back transfers disabled
[    1.036137] pci 0000:00:01.0: scanning [bus 00-00] behind bridge, pass 0
[    1.036141] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.044205] pci 0000:00:02.0: scanning [bus 00-00] behind bridge, pass 0
[    1.044209] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.052268] pci 0000:00:01.0: scanning [bus 00-00] behind bridge, pass 1
[    1.052364] pci_bus 0000:01: scanning bus
[    1.052370] pci_bus 0000:01: fixups for bus
[    1.052373] PCI: bus1: Fast back to back transfers enabled
[    1.057916] pci_bus 0000:01: bus scan returning with max=01
[    1.057921] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    1.057927] pci 0000:00:02.0: scanning [bus 00-00] behind bridge, pass 1
[    1.058014] pci_bus 0000:02: scanning bus
[    1.058019] pci_bus 0000:02: fixups for bus
[    1.058022] PCI: bus2: Fast back to back transfers enabled
[    1.063574] pci_bus 0000:02: bus scan returning with max=02
[    1.063579] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    1.063584] pci_bus 0000:00: bus scan returning with max=02
[    1.063590] pci 0000:00:01.0: fixup irq: got 0
[    1.063594] pci 0000:00:01.0: assigning IRQ 00
[    1.063599] pci 0000:00:02.0: fixup irq: got 0
[    1.063602] pci 0000:00:02.0: assigning IRQ 00
[    1.063614] pci 0000:00:01.0: PCI bridge to [bus 01]
[    1.068652] pci 0000:00:02.0: PCI bridge to [bus 02]
[    1.073713] pcieport 0000:00:01.0: enabling bus mastering
[    1.073747] pcieport 0000:00:02.0: enabling bus mastering
[    1.074093] mv_xor f1060800.xor: Marvell shared XOR driver
[    1.138986] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.146585] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.208983] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.259298] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.266936] console [ttyS0] disabled
[    1.290667] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 22, base_baud = 12500000) is a 16550A
[    1.299702] console [ttyS0] enabled
[    1.306789] bootconsole [earlycon0] disabled
[    1.316387] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.325494] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.335048] scsi host0: ahci-mvebu
[    1.338762] scsi host1: ahci-mvebu
[    1.342365] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 42
[    1.350331] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 42
[    1.358418] ahci-mvebu f10e0000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.367520] ahci-mvebu f10e0000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.376888] scsi host2: ahci-mvebu
[    1.380534] scsi host3: ahci-mvebu
[    1.384088] ata3: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x100 irq 43
[    1.392052] ata4: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x180 irq 43
[    1.400475] pxa3xx-nand f10d0000.flash: This platform can't do DMA on this device
[    1.408324] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xdc
[    1.414718] nand: Hynix H27U4G8F2DTR-BC
[    1.418571] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.426182] pxa3xx-nand f10d0000.flash: ECC strength 16, ECC step size 2048
[    1.433377] Bad block table found at page 262080, version 0x01
[    1.439568] Bad block table found at page 262016, version 0x01
[    1.445598] nand_read_bbt: bad block at 0x00000dcc0000
[    1.450767] nand_read_bbt: bad block at 0x00000fb00000
[    1.455929] nand_read_bbt: bad block at 0x000012180000
[    1.461095] nand_read_bbt: bad block at 0x0000139a0000
[    1.466256] nand_read_bbt: bad block at 0x000017880000
[    1.471422] nand_read_bbt: bad block at 0x0000178a0000
[    1.476583] nand_read_bbt: bad block at 0x00001a640000
[    1.481751] nand_read_bbt: bad block at 0x00001e9c0000
[    1.486956] 8 ofpart partitions found on MTD device pxa3xx_nand-0
[    1.493082] Creating 8 MTD partitions on "pxa3xx_nand-0":
[    1.498505] 0x000000000000-0x000000500000 : "U-Boot"
[    1.514180] 0x000000500000-0x000000f00000 : "uImage"
[    1.529814] 0x000000a00000-0x000001900000 : "uRamdisk"
[    1.545604] 0x000000f00000-0x00001d700000 : "image.cfs"
[    1.563091] 0x00001c800000-0x000039f00000 : "rescue_fw"
[    1.568340] mtd: partition "rescue_fw" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x3800000
[    1.589884] 0x00001d700000-0x00003c200000 : "config"
[    1.594872] mtd: partition "config" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x2900000
[    1.616104] 0x00001eb00000-0x00003e000000 : "reserve1"
[    1.621277] mtd: partition "reserve1" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x1500000
[    1.642609] 0x00001f500000-0x00003f400000 : "reserve2"
[    1.647771] mtd: partition "reserve2" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0xb00000
[    1.669554] m25p80 spi0.0: unrecognized JEDEC id bytes: ff, ff, ff
[    1.676204] libphy: Fixed MDIO Bus: probed
[    1.680603] libphy: mdio_driver_register: mv88e6085
[    1.685636] libphy: orion_mdio_bus: probed
[    1.689836] ata1: SATA link down (SStatus 0 SControl 300)
[    1.700385] ata2: SATA link down (SStatus 0 SControl 300)
[    1.700513] mvneta_bm f10c8000.bm: Buffer Manager for network controller enabled
[    1.706438] mvneta f1070000.ethernet eth0: Using random mac address 8a:c0:78:bc:4e:88
[    1.714045] mvneta f1030000.ethernet eth1: Using random mac address 12:85:14:f3:3e:72
[    1.714222] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.714236] ehci-pci: EHCI PCI platform driver
[    1.714279] ehci-orion: EHCI orion driver
[    1.714380] orion-ehci f1058000.usb: EHCI Host Controller
[    1.714395] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    1.714457] orion-ehci f1058000.usb: irq 38, io mem 0xf1058000
[    1.730585] ata3: SATA link down (SStatus 0 SControl 300)
[    1.745709] ata4: SATA link down (SStatus 0 SControl 300)
[    1.748594] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    1.748706] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.748710] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.748713] usb usb1: Product: EHCI Host Controller
[    1.748716] usb usb1: Manufacturer: Linux 4.9.0-mvebu-tld-12 ehci_hcd
[    1.748718] usb usb1: SerialNumber: f1058000.usb
[    1.751356] hub 1-0:1.0: USB hub found
[    1.751374] hub 1-0:1.0: 1 port detected
[    1.751814] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.751826] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    1.751899] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.751924] xhci-hcd f10f0000.usb3: irq 46, io mem 0xf10f0000
[    1.752007] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    1.752011] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.752014] usb usb2: Product: xHCI Host Controller
[    1.752017] usb usb2: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.752019] usb usb2: SerialNumber: f10f0000.usb3
[    1.759023] hub 2-0:1.0: USB hub found
[    1.759042] hub 2-0:1.0: 1 port detected
[    1.759204] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.759211] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
[    1.759265] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.759326] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    1.759330] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.759333] usb usb3: Product: xHCI Host Controller
[    1.759336] usb usb3: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.759338] usb usb3: SerialNumber: f10f0000.usb3
[    1.765130] hub 3-0:1.0: USB hub found
[    1.765150] hub 3-0:1.0: 1 port detected
[    1.765374] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.765386] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    1.765449] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.765471] xhci-hcd f10f8000.usb3: irq 47, io mem 0xf10f8000
[    1.765568] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002
[    1.765572] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.765574] usb usb4: Product: xHCI Host Controller
[    1.765577] usb usb4: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.765579] usb usb4: SerialNumber: f10f8000.usb3
[    1.770597] hub 4-0:1.0: USB hub found
[    1.770619] hub 4-0:1.0: 1 port detected
[    1.770780] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.770788] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5
[    1.770841] usb usb5: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.770911] usb usb5: New USB device found, idVendor=1d6b, idProduct=0003
[    1.770915] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.770917] usb usb5: Product: xHCI Host Controller
[    1.770920] usb usb5: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.770922] usb usb5: SerialNumber: f10f8000.usb3
[    1.776104] hub 5-0:1.0: USB hub found
[    1.776123] hub 5-0:1.0: 1 port detected
[    1.776376] usbcore: registered new interface driver usblp
[    1.776444] usbcore: registered new interface driver usb-storage
[    1.782108] mousedev: PS/2 mouse device common for all mice
[    1.788972] armada38x-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[    1.789122] i2c /dev entries driver
[    1.812718] orion_wdt: Initial timeout 171 sec
[    1.813977] marvell-cesa f1090000.crypto: CESA device successfully registered
[    1.814075] hidraw: raw HID events driver (C) Jiri Kosina
[    1.816601] usbcore: registered new interface driver usbhid
[    1.816603] usbhid: USB HID core driver
[    1.816710] drop_monitor: Initializing network drop monitor service
[    1.816742] Netfilter messages via NETLINK v0.30.
[    1.816753] ip_set: protocol 6
[    1.820717] NET: Registered protocol family 10
[    1.833761] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    1.834444] NET: Registered protocol family 17
[    1.834554] 8021q: 802.1Q VLAN Support v1.8
[    1.834576] Key type dns_resolver registered
[    1.834659] ThumbEE CPU extension supported.
[    1.834665] Registering SWP/SWPB emulation handler
[    1.855188] registered taskstats version 1
[    1.855192] Loading compiled-in X.509 certificates
[    1.855223] zswap: loaded using pool lzo/zbud
[    1.937894] Key type big_key registered
[    1.958685] Key type encrypted registered
[    1.972939] armada38x-rtc f10a3800.rtc: setting system clock to 2017-06-27 07:18:14 UTC (1498547894)
[    1.973018] PM: Hibernation image not present or could not be loaded.
[    2.028779] usb 3-1: new SuperSpeed USB device number 2 using xhci-hcd
[    2.060109] usb 3-1: New USB device found, idVendor=045b, idProduct=0210
[    2.060114] usb 3-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.062504] hub 3-1:1.0: USB hub found
[    2.062746] hub 3-1:1.0: 4 ports detected
[    2.188596] usb 2-1: new high-speed USB device number 2 using xhci-hcd
[    2.247034] Freeing unused kernel memory: 1024K (c0c00000 - c0d00000)
[    2.285735] systemd-udevd[1350]: starting version 215
[    2.291725] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    2.358910] usb 2-1: New USB device found, idVendor=045b, idProduct=0209
[    2.365645] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.378300] hub 2-1:1.0: USB hub found
[    2.383994] hub 2-1:1.0: 4 ports detected
[    2.708598] usb 2-1.3: new high-speed USB device number 3 using xhci-hcd
[    2.839227] usb 2-1.3: New USB device found, idVendor=0781, idProduct=5571
[    2.846133] usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.853485] usb 2-1.3: Product: Cruzer Fit
[    2.857598] usb 2-1.3: Manufacturer: SanDisk
[    2.861893] usb 2-1.3: SerialNumber: 4C530302071223122304
[    2.868113] usb-storage 2-1.3:1.0: USB Mass Storage device detected
[    2.874555] scsi host4: usb-storage 2-1.3:1.0
[    2.880487] usbcore: registered new interface driver uas
[    3.929117] scsi 4:0:0:0: Direct-Access     SanDisk  Cruzer Fit       1.00 PQ: 0 ANSI: 6
[    3.939436] sd 4:0:0:0: Attached scsi generic sg0 type 0
[    3.946391] sd 4:0:0:0: [sda] 61489152 512-byte logical blocks: (31.5 GB/29.3 GiB)
[    3.954819] sd 4:0:0:0: [sda] Write Protect is off
[    3.959658] sd 4:0:0:0: [sda] Mode Sense: 43 00 00 00
[    3.959931] sd 4:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    3.972118]  sda: sda1
[    3.976028] sd 4:0:0:0: [sda] Attached SCSI removable disk
[    4.010792] random: fast init done
[   17.643538] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   17.652594] EXT4-fs (sda1): INFO: recovery required on readonly filesystem
[   17.659514] EXT4-fs (sda1): write access will be enabled during recovery
[   17.718115] EXT4-fs (sda1): recovery complete
[   17.725011] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[   18.488483] systemd-udevd[1557]: starting version 215
[   19.916466] EXT4-fs (sda1): re-mounted. Opts: (null)
[   20.033191] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[   21.098989] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   83.012240] random: crng init done
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=nand read.e 0xa00000 0x500000 0x500000;nand read.e 0xf00000 0xa00000 0x500000;bootm 0xa00000 0xf00000
bootcmd_auto=stage_boot $boot_order
bootcmd_fdt=tftpboot 0x2000000 $image_name;tftpboot $fdtaddr $fdtfile;setenv bootargs $console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel; bootz 0x2000000 - $fdtaddr;
bootcmd_fdt_boot=tftpboot 0x2000000 $image_name; setenv bootargs $console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel; bootz 0x2000000 - $fdtaddr;
bootcmd_fdt_edit=tftpboot $fdtaddr $fdtfile; fdt addr $fdtaddr; setenv bootcmd $bootcmd_fdt_boot
bootcmd_lgcy=tftpboot 0x2000000 $image_name; setenv bootargs $bootargs_dflt; bootm 0x2000000;
bootcmd_usb=usb start; run usb_set_bootargs; run usb_bootcmd; reset
bootdelay=1
bootdev=usb
cacheShare=no
console=console=ttyS0,115200
device=0:1
device_partition=0:1
disaMvPnp=no
eeeEnable=no
enaClockGating=no
enaCpuStream=no
enaFPU=yes
enaMonExt=no
enaWrAllo=no
eth1addr=00:50:43: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
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
root@debian:~# nano /etc/fw_env.config
  GNU nano 2.2.6           File: /etc/fw_env.config

# MTD device name       Device offset   Env. size       Flash sector size      $
/dev/mtd0               0x100000                0x80000         0x20000        $

root@debian:~#
Re: Debian on WD MyCloud EX 4100
June 27, 2017 01:39AM
Cool :)

Now let's me upload this NAND version for tld-4 and you can flash it to your mtd0.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on WD MyCloud EX 4100
June 27, 2017 01:50AM
But before we do that let's make another run with the envs adjusted.

kwboot with tld-4.

And execute these envs like before,

Marvell>> setenv bootdev usb
Marvell>> setenv device '0:1'
Marvell>> setenv load_initrd_addr 0x2900000
Marvell>> setenv load_image_addr 0x02000000
Marvell>> setenv load_initrd 'echo loading uInitrd ...; ext2load $bootdev $device $load_initrd_addr /boot/uInitrd'
Marvell>> setenv load_image 'echo loading Image ...; ext2load $bootdev $device $load_image_addr /boot/uImage'
Marvell>> setenv usb_set_bootargs 'setenv bootargs console=ttyS0,115200 root=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)'
Marvell>> setenv usb_bootcmd 'echo Booting from USB ...; setenv fdt_skip_update yes; usb start; run load_image; run load_initrd ; run usb_set_bootargs; bootm $load_image_addr $load_initrd_addr'
Marvell>> setenv bootcmd_usb 'usb start; run usb_set_bootargs; run usb_bootcmd; reset'

At this point, don't savenv like before,

Execute these envs:

setenv bootcmd_stock 'nand read.e 0xa00000 0x500000 0x500000;nand read.e 0xf00000 0xa00000 0x500000;bootm 0xa00000 0xf00000'
setenv bootcmd 'run bootcmd_usb; run bootcmd_stock; reset'
printenv
boot

After it boot into Debian,

fw_printenv

And the next step will be depending on you have successfully booted into Debian before running fw_printenv.

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

this looks good as well. : )

./kwboot -f -t -B 115200 /dev/ttyAMA0 -b u-boot-a38x-Yellowstone_2014T30p6_bodhi-tld-4-nand-uart.bin -s 0 -q 1
Sending boot message. Please reboot the target...\▒"3DUfw▒"3DUfw▒"3DUfw▒"3DUfw▒"3DUfw▒"3DUfw
Sending boot image...
  0 % [......................................................................]
  0 % [......................................................................]
  1 % [......................................................................]
  2 % [......................................................................]
...
 97 % [......................................................................]
 98 % [......................................................................]
 99 % [..................................................]
[Type Ctrl-\ + c to quit]

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


U-Boot 2013.01_v1.06 (Jun 23 2017 - 03:15:32) Marvell version: 2014_T3.0p6 - bodhi-tld-4

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:0x7ff96080
       BSS:                     0x7ffef654
       Stack:                   0x7f9cdf20
       Heap:                    0x7f9ce000:0x7fece000
       U-Boot Environment:      0x00100000:0x00180000 Address: 0x00100000(NAND)

NAND:  ID: dcad ,512 MiB
MMC:   mv_sdh: 0
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
Marvell>> setenv bootdev usb
Marvell>> setenv device '0:1'
Marvell>> setenv load_initrd_addr 0x2900000
Marvell>> setenv load_image_addr 0x02000000
Marvell>> setenv load_initrd 'echo loading uInitrd ...; ext2load $bootdev $device $load_initrd_addr /boot/uInitrd'
Marvell>> setenv load_image 'echo loading Image ...; ext2load $bootdev $device $load_image_addr /boot/uImage'
Marvell>> setenv usb_set_bootargs 'setenv bootargs console=ttyS0,115200 root=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)'
Marvell>> setenv usb_bootcmd 'echo Booting from USB ...; setenv fdt_skip_update yes; usb start; run load_image; run load_initrd ; run usb_set_bootargs; bootm $load_image_addr $load_initrd_addr'
Marvell>> setenv bootcmd_usb 'usb start; run usb_set_bootargs; run usb_bootcmd; reset'
Marvell>> setenv bootcmd_stock 'nand read.e 0xa00000 0x500000 0x500000;nand read.e 0xf00000 0xa00000 0x500000;bootm 0xa00000 0xf00000'
Marvell>> setenv bootcmd 'run bootcmd_usb; run bootcmd_stock; reset'
Marvell>> printenv
CASset=max
MALLOC_len=5
MPmode=SMP
autoload=no
baudrate=115200
boot_order=hd_scr usb_scr mmc_scr hd_img usb_img mmc_img pxe net_img net_scr
bootargs=root=/dev/ram console=ttyS0,115200
bootargs_dflt=$console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel
bootargs_end=:10.4.50.254:255.255.255.0:Armada38x:eth0:none
bootargs_root=root=/dev/nfs rw
bootcmd=run bootcmd_usb; run bootcmd_stock; reset
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=nand read.e 0xa00000 0x500000 0x500000;nand read.e 0xf00000 0xa00000 0x500000;bootm 0xa00000 0xf00000
bootcmd_usb=usb start; run usb_set_bootargs; run usb_bootcmd; reset
bootdelay=1
bootdev=usb
cacheShare=no
console=console=ttyS0,115200
device=0:1
device_partition=0:1
disaMvPnp=no
eeeEnable=no
enaClockGating=no
enaCpuStream=no
enaFPU=yes
enaMonExt=no
enaWrAllo=no
eth1addr=00:50:43: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
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

Environment size: 4049/524284 bytes
Marvell>> boot
(Re)start USB...
USB0:   Port (usbActive) : 0    Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 4 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
Booting from USB ...
(Re)start USB...
USB0:   Port (usbActive) : 0    Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 4 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
loading Image ...
3919689 bytes read in 282 ms (13.3 MiB/s)
loading uInitrd ...
6210503 bytes read in 367 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.019060] Console: colour dummy device 80x30
[    0.023574] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[    0.033978] pid_max: default: 32768 minimum: 301
[    0.038732] 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.057102] CPU: Testing write buffer coherency: ok
[    0.062174] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.067912] Setting up static identity map for 0x100000 - 0x100058
[    0.074216] mvebu-soc-id: MVEBU SoC ID=0x6828, Rev=0x4
[    0.079477] mvebu-pmsu: Initializing Power Management Service Unit
[    0.283911] Booting CPU 1
[    0.286756] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.286805] Brought up 2 CPUs
[    0.295562] SMP: Total of 2 processors activated (100.00 BogoMIPS).
[    0.301881] CPU: All CPU(s) started in SVC mode.
[    0.307110] devtmpfs: initialized
[    0.312425] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.320370] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.330296] prandom: seed boundary self test passed
[    0.336920] prandom: 100 self tests passed
[    0.341080] pinctrl core: initialized pinctrl subsystem
[    0.346992] NET: Registered protocol family 16
[    0.352037] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.393867] cpuidle: using governor ladder
[    0.423865] 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.441981] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.450136] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.514852] vgaarb: loaded
[    0.517845] SCSI subsystem initialized
[    0.522063] usbcore: registered new interface driver usbfs
[    0.527682] usbcore: registered new interface driver hub
[    0.533116] usbcore: registered new device driver usb
[    0.538432] media: Linux media interface: v0.10
[    0.543068] Linux video capture interface: v2.00
[    0.548562] clocksource: Switched to clocksource armada_370_xp_clocksource
[    0.580017] VFS: Disk quotas dquot_6.6.0
[    0.584045] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.598061] NET: Registered protocol family 2
[    0.602864] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.610009] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.616559] TCP: Hash tables configured (established 8192 bind 8192)
[    0.623011] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.629015] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.635522] NET: Registered protocol family 1
[    0.640185] RPC: Registered named UNIX socket transport module.
[    0.646160] RPC: Registered udp transport module.
[    0.650935] RPC: Registered tcp transport module.
[    0.655699] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.662310] Unpacking initramfs...
[    0.868914] Freeing initrd memory: 6068K (c2900000 - c2eed000)
[    0.874889] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.881654] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.890798] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.897004] audit: initializing netlink subsys (disabled)
[    0.902507] audit: type=2000 audit(0.890:1): initialized
[    0.908270] Initialise system trusted keyrings
[    0.912924] workingset: timestamp_bits=30 max_order=19 bucket_order=0
[    0.919495] zbud: loaded
[    0.922561] NFS: Registering the id_resolver key type
[    0.927678] Key type id_resolver registered
[    0.931944] Key type id_legacy registered
[    0.936024] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.942786] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.949334] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.956721] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.963325] orangefs_init: module version upstream loaded
[    0.970612] Key type asymmetric registered
[    0.974774] Asymmetric key parser 'x509' registered
[    0.979750] bounce: pool size: 64 pages
[    0.983723] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.991178] io scheduler noop registered
[    0.995165] io scheduler deadline registered
[    0.999519] io scheduler cfq registered (default)
[    1.005084] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    1.013517] mvebu-pcie soc:pcie-controller: PCI host bridge to bus 0000:00
[    1.020462] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    1.026784] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    1.033718] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.039649] PCI: bus0: Fast back to back transfers disabled
[    1.045285] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.053352] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.061516] PCI: bus1: Fast back to back transfers enabled
[    1.067165] PCI: bus2: Fast back to back transfers enabled
[    1.072756] pci 0000:00:01.0: PCI bridge to [bus 01]
[    1.077785] pci 0000:00:02.0: PCI bridge to [bus 02]
[    1.083227] mv_xor f1060800.xor: Marvell shared XOR driver
[    1.148966] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.156567] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.218963] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.269357] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.277011] console [ttyS0] disabled
[    1.300751] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 22, base_baud = 12500000) is a 16550A
[    1.309792] console [ttyS0] enabled
[    1.309792] console [ttyS0] enabled
[    1.316880] bootconsole [earlycon0] disabled
[    1.316880] bootconsole [earlycon0] disabled
[    1.326463] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.335568] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.345118] scsi host0: ahci-mvebu
[    1.348853] scsi host1: ahci-mvebu
[    1.352461] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 42
[    1.360425] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 42
[    1.368507] ahci-mvebu f10e0000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.377607] ahci-mvebu f10e0000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.386983] scsi host2: ahci-mvebu
[    1.400637] scsi host3: ahci-mvebu
[    1.404207] ata3: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x100 irq 43
[    1.412171] ata4: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x180 irq 43
[    1.420596] pxa3xx-nand f10d0000.flash: This platform can't do DMA on this device
[    1.428452] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xdc
[    1.434866] nand: Hynix H27U4G8F2DTR-BC
[    1.438737] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.446341] pxa3xx-nand f10d0000.flash: ECC strength 16, ECC step size 2048
[    1.453554] Bad block table found at page 262080, version 0x01
[    1.459744] Bad block table found at page 262016, version 0x01
[    1.465771] nand_read_bbt: bad block at 0x00000dcc0000
[    1.470940] nand_read_bbt: bad block at 0x00000fb00000
[    1.476101] nand_read_bbt: bad block at 0x000012180000
[    1.481268] nand_read_bbt: bad block at 0x0000139a0000
[    1.486429] nand_read_bbt: bad block at 0x000017880000
[    1.491594] nand_read_bbt: bad block at 0x0000178a0000
[    1.496754] nand_read_bbt: bad block at 0x00001a640000
[    1.501923] nand_read_bbt: bad block at 0x00001e9c0000
[    1.507127] 8 ofpart partitions found on MTD device pxa3xx_nand-0
[    1.513252] Creating 8 MTD partitions on "pxa3xx_nand-0":
[    1.518682] 0x000000000000-0x000000500000 : "U-Boot"
[    1.534350] 0x000000500000-0x000000f00000 : "uImage"
[    1.549981] 0x000000a00000-0x000001900000 : "uRamdisk"
[    1.565774] 0x000000f00000-0x00001d700000 : "image.cfs"
[    1.583272] 0x00001c800000-0x000039f00000 : "rescue_fw"
[    1.588520] mtd: partition "rescue_fw" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x3800000
[    1.610060] 0x00001d700000-0x00003c200000 : "config"
[    1.615048] mtd: partition "config" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x2900000
[    1.636290] 0x00001eb00000-0x00003e000000 : "reserve1"
[    1.641464] mtd: partition "reserve1" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x1500000
[    1.662797] 0x00001f500000-0x00003f400000 : "reserve2"
[    1.667971] mtd: partition "reserve2" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0xb00000
[    1.689766] m25p80 spi0.0: unrecognized JEDEC id bytes: ff, ff, ff
[    1.696425] libphy: Fixed MDIO Bus: probed
[    1.699829] ata1: SATA link down (SStatus 0 SControl 300)
[    1.706602] libphy: mdio_driver_register: mv88e6085
[    1.709834] ata2: SATA link down (SStatus 0 SControl 300)
[    1.717091] libphy: orion_mdio_bus: probed
[    1.726927] mvneta_bm f10c8000.bm: Buffer Manager for network controller enabled
[    1.736316] mvneta f1070000.ethernet eth0: Using random mac address 62:ed:05:8d:3a:39
[    1.746123] mvneta f1030000.ethernet eth1: Using random mac address 8a:67:72:69:96:d5
[    1.749878] ata3: SATA link down (SStatus 0 SControl 300)
[    1.759631] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.766210] ehci-pci: EHCI PCI platform driver
[    1.770723] ehci-orion: EHCI orion driver
[    1.774763] ata4: SATA link down (SStatus 0 SControl 300)
[    1.780306] orion-ehci f1058000.usb: EHCI Host Controller
[    1.785740] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    1.793406] orion-ehci f1058000.usb: irq 38, io mem 0xf1058000
[    1.828578] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    1.834630] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.841461] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.848720] usb usb1: Product: EHCI Host Controller
[    1.853618] usb usb1: Manufacturer: Linux 4.9.0-mvebu-tld-12 ehci_hcd
[    1.860092] usb usb1: SerialNumber: f1058000.usb
[    1.865060] hub 1-0:1.0: USB hub found
[    1.868852] hub 1-0:1.0: 1 port detected
[    1.873227] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.878587] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    1.886175] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.894766] xhci-hcd f10f0000.usb3: irq 46, io mem 0xf10f0000
[    1.900639] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    1.907457] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.914718] usb usb2: Product: xHCI Host Controller
[    1.919623] usb usb2: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.926089] usb usb2: SerialNumber: f10f0000.usb3
[    1.931112] hub 2-0:1.0: USB hub found
[    1.934892] hub 2-0:1.0: 1 port detected
[    1.939000] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.944340] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
[    1.951913] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.960110] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    1.966927] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.974188] usb usb3: Product: xHCI Host Controller
[    1.979291] usb usb3: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.985758] usb usb3: SerialNumber: f10f0000.usb3
[    1.990765] hub 3-0:1.0: USB hub found
[    1.994545] hub 3-0:1.0: 1 port detected
[    1.998714] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    2.004057] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    2.011642] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    2.020240] xhci-hcd f10f8000.usb3: irq 47, io mem 0xf10f8000
[    2.026088] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002
[    2.032914] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.040174] usb usb4: Product: xHCI Host Controller
[    2.045072] usb usb4: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    2.051584] usb usb4: SerialNumber: f10f8000.usb3
[    2.056580] hub 4-0:1.0: USB hub found
[    2.060376] hub 4-0:1.0: 1 port detected
[    2.064469] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    2.069818] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5
[    2.077373] usb usb5: We don't know the algorithms for LPM for this host, disabling LPM.
[    2.085562] usb usb5: New USB device found, idVendor=1d6b, idProduct=0003
[    2.092433] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.099695] usb usb5: Product: xHCI Host Controller
[    2.104593] usb usb5: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    2.111113] usb usb5: SerialNumber: f10f8000.usb3
[    2.116115] hub 5-0:1.0: USB hub found
[    2.119907] hub 5-0:1.0: 1 port detected
[    2.124099] usbcore: registered new interface driver usblp
[    2.129687] usbcore: registered new interface driver usb-storage
[    2.135888] mousedev: PS/2 mouse device common for all mice
[    2.141849] armada38x-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[    2.149525] i2c /dev entries driver
[    2.164316] orion_wdt: Initial timeout 171 sec
[    2.169997] marvell-cesa f1090000.crypto: CESA device successfully registered
[    2.177269] hidraw: raw HID events driver (C) Jiri Kosina
[    2.182896] usbcore: registered new interface driver usbhid
[    2.188492] usbhid: USB HID core driver
[    2.192470] drop_monitor: Initializing network drop monitor service
[    2.198807] Netfilter messages via NETLINK v0.30.
[    2.203540] ip_set: protocol 6
[    2.206775] NET: Registered protocol family 10
[    2.211824] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    2.218485] NET: Registered protocol family 17
[    2.223173] 8021q: 802.1Q VLAN Support v1.8
[    2.227402] Key type dns_resolver registered
[    2.231939] ThumbEE CPU extension supported.
[    2.236232] Registering SWP/SWPB emulation handler
[    2.241408] registered taskstats version 1
[    2.245524] Loading compiled-in X.509 certificates
[    2.250379] zswap: loaded using pool lzo/zbud
[    2.297940] Key type big_key registered
[    2.301828] usb 2-1: new high-speed USB device number 2 using xhci-hcd
[    2.311809] Key type encrypted registered
[    2.316761] armada38x-rtc f10a3800.rtc: setting system clock to 2017-06-27 07:59:31 UTC (1498550371)
[    2.326960] Freeing unused kernel memory: 1024K (c0c00000 - c0d00000)
Loading, please wait...
[    2.364944] systemd-udevd[1348]: starting version 215
[    2.371015] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    2.468874] usb 2-1: New USB device found, idVendor=045b, idProduct=0209
[    2.475617] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.488660] hub 2-1:1.0: USB hub found
[    2.494952] hub 2-1:1.0: 4 ports detected
[    2.608809] usb 3-1: new SuperSpeed USB device number 2 using xhci-hcd
[    2.650135] usb 3-1: New USB device found, idVendor=045b, idProduct=0210
[    2.656870] usb 3-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.664767] hub 3-1:1.0: USB hub found
[    2.668784] hub 3-1:1.0: 4 ports detected
[    2.828577] usb 2-1.3: new high-speed USB device number 3 using xhci-hcd
[    2.959214] usb 2-1.3: New USB device found, idVendor=0781, idProduct=5571
[    2.966121] usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.973474] usb 2-1.3: Product: Cruzer Fit
[    2.977587] usb 2-1.3: Manufacturer: SanDisk
[    2.981883] usb 2-1.3: SerialNumber: 4C530302071223122304
[    2.988051] usb-storage 2-1.3:1.0: USB Mass Storage device detected
[    2.994496] scsi host4: usb-storage 2-1.3:1.0
[    3.000534] usbcore: registered new interface driver uas
[    4.009097] scsi 4:0:0:0: Direct-Access     SanDisk  Cruzer Fit       1.00 PQ: 0 ANSI: 6
[    4.019074] sd 4:0:0:0: [sda] 61489152 512-byte logical blocks: (31.5 GB/29.3 GiB)
[    4.027181] sd 4:0:0:0: Attached scsi generic sg0 type 0
[    4.032548] sd 4:0:0:0: [sda] Write Protect is off
[    4.039318] sd 4:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    4.051576]  sda: sda1
[    4.060300] sd 4:0:0:0: [sda] Attached SCSI removable disk
[    4.076208] 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.773553] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   17.782619] EXT4-fs (sda1): INFO: recovery required on readonly filesystem
[   17.789539] EXT4-fs (sda1): write access will be enabled during recovery
[   17.840481] EXT4-fs (sda1): recovery complete
[   17.847368] 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.608808] 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.968321] EXT4-fs (sda1): re-mounted. Opts: (null)
[....] Checking root file system...fsck from util-linux 2.25.2
rootfs: clean, 34218/1925120 files, 631639/7685888 blocks
done.
[   20.084847] 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.
[   21.138970] 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/62:ed:05:8d:3a:39
Sending on   LPF/eth0/62:ed:05:8d:3a:39
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
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 13
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 10
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
done.
[ ok ] Starting rpcbind daemon....
[....] Starting NFS common utili[   82.725972] random: crng init done
[ ok  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...
2497 (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...
2496 (klogd)
. ok

Debian GNU/Linux 8 debian ttyS0

debian login: root
Password:
Last login: Tue Jun 27 00:19:53 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
 01:01:03 up 1 min,  1 user,  load average: 0.02, 0.01, 0.00
root@debian:~# dmesg
[    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] On node 0 totalpages: 524288
[    0.000000] free_area_init_node: node 0, pgdat c0d97f80, 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@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:
    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 - 0xc0daca28   ( 691 kB)
       .bss : 0xc0daca28 - 0xc0e0d4f8   ( 387 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 32.
[    0.000000]  RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=2
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] mvebu_mbus: [Firmware Warn]: deprecated mbus-mvebu Device Tree, suspend/resume will not work
[    0.000000] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000] L2C-310 D prefetch enabled, offset 1 lines
[    0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000] L2C-310 Coherent cache controller enabled, 16 ways, 1024 kB
[    0.000000] L2C-310 Coherent: CACHE_ID 0x410054c9, AUX_CTRL 0x56070001
[    0.000000] Switching to timer-based delay loop, resolution 40ns
[    0.000003] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 85899345900ns
[    0.007881] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.019060] Console: colour dummy device 80x30
[    0.023574] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[    0.033978] pid_max: default: 32768 minimum: 301
[    0.038732] 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.057102] CPU: Testing write buffer coherency: ok
[    0.062174] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.067912] Setting up static identity map for 0x100000 - 0x100058
[    0.074216] mvebu-soc-id: MVEBU SoC ID=0x6828, Rev=0x4
[    0.079477] mvebu-pmsu: Initializing Power Management Service Unit
[    0.283911] Booting CPU 1
[    0.286756] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.286805] Brought up 2 CPUs
[    0.295562] SMP: Total of 2 processors activated (100.00 BogoMIPS).
[    0.301881] CPU: All CPU(s) started in SVC mode.
[    0.307110] devtmpfs: initialized
[    0.312425] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.320370] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.330296] prandom: seed boundary self test passed
[    0.336920] prandom: 100 self tests passed
[    0.341080] pinctrl core: initialized pinctrl subsystem
[    0.346992] NET: Registered protocol family 16
[    0.352037] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.393867] cpuidle: using governor ladder
[    0.423865] 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.441981] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.450136] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.514852] vgaarb: loaded
[    0.517845] SCSI subsystem initialized
[    0.521794] libata version 3.00 loaded.
[    0.522063] usbcore: registered new interface driver usbfs
[    0.527682] usbcore: registered new interface driver hub
[    0.533116] usbcore: registered new device driver usb
[    0.538432] media: Linux media interface: v0.10
[    0.543068] Linux video capture interface: v2.00
[    0.548562] clocksource: Switched to clocksource armada_370_xp_clocksource
[    0.580017] VFS: Disk quotas dquot_6.6.0
[    0.584045] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.598061] NET: Registered protocol family 2
[    0.602864] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.610009] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.616559] TCP: Hash tables configured (established 8192 bind 8192)
[    0.623011] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.629015] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.635522] NET: Registered protocol family 1
[    0.640185] RPC: Registered named UNIX socket transport module.
[    0.646160] RPC: Registered udp transport module.
[    0.650935] RPC: Registered tcp transport module.
[    0.655699] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.662201] PCI: CLS 0 bytes, default 64
[    0.662310] Unpacking initramfs...
[    0.868914] Freeing initrd memory: 6068K (c2900000 - c2eed000)
[    0.874889] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.881654] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.890798] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.897004] audit: initializing netlink subsys (disabled)
[    0.902507] audit: type=2000 audit(0.890:1): initialized
[    0.908270] Initialise system trusted keyrings
[    0.912924] workingset: timestamp_bits=30 max_order=19 bucket_order=0
[    0.919495] zbud: loaded
[    0.922561] NFS: Registering the id_resolver key type
[    0.927678] Key type id_resolver registered
[    0.931944] Key type id_legacy registered
[    0.936024] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.942786] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.949334] jffs2: version 2.2. (NAND) (SUMMARY)  \xffffffc2\xffffffa9 2001-2006 Red Hat, Inc.
[    0.956721] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.963325] orangefs_init: module version upstream loaded
[    0.970612] Key type asymmetric registered
[    0.974774] Asymmetric key parser 'x509' registered
[    0.979750] bounce: pool size: 64 pages
[    0.983723] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.991178] io scheduler noop registered
[    0.995165] io scheduler deadline registered
[    0.999519] io scheduler cfq registered (default)
[    1.005084] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    1.013517] mvebu-pcie soc:pcie-controller: PCI host bridge to bus 0000:00
[    1.020462] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    1.026784] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    1.033718] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.039269] pci_bus 0000:00: scanning bus
[    1.039291] pci 0000:00:01.0: [11ab:6828] type 01 class 0x060400
[    1.039318] pci 0000:00:01.0: calling pci_fixup_ide_bases+0x0/0x3c
[    1.039479] pci 0000:00:02.0: [11ab:6828] type 01 class 0x060400
[    1.039498] pci 0000:00:02.0: calling pci_fixup_ide_bases+0x0/0x3c
[    1.039641] pci_bus 0000:00: fixups for bus
[    1.039649] PCI: bus0: Fast back to back transfers disabled
[    1.045281] pci 0000:00:01.0: scanning [bus 00-00] behind bridge, pass 0
[    1.045285] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.053348] pci 0000:00:02.0: scanning [bus 00-00] behind bridge, pass 0
[    1.053352] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.061412] pci 0000:00:01.0: scanning [bus 00-00] behind bridge, pass 1
[    1.061507] pci_bus 0000:01: scanning bus
[    1.061512] pci_bus 0000:01: fixups for bus
[    1.061516] PCI: bus1: Fast back to back transfers enabled
[    1.067059] pci_bus 0000:01: bus scan returning with max=01
[    1.067063] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    1.067070] pci 0000:00:02.0: scanning [bus 00-00] behind bridge, pass 1
[    1.067157] pci_bus 0000:02: scanning bus
[    1.067162] pci_bus 0000:02: fixups for bus
[    1.067165] PCI: bus2: Fast back to back transfers enabled
[    1.072718] pci_bus 0000:02: bus scan returning with max=02
[    1.072722] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    1.072727] pci_bus 0000:00: bus scan returning with max=02
[    1.072733] pci 0000:00:01.0: fixup irq: got 0
[    1.072737] pci 0000:00:01.0: assigning IRQ 00
[    1.072741] pci 0000:00:02.0: fixup irq: got 0
[    1.072744] pci 0000:00:02.0: assigning IRQ 00
[    1.072756] pci 0000:00:01.0: PCI bridge to [bus 01]
[    1.077785] pci 0000:00:02.0: PCI bridge to [bus 02]
[    1.082854] pcieport 0000:00:01.0: enabling bus mastering
[    1.082887] pcieport 0000:00:02.0: enabling bus mastering
[    1.083227] mv_xor f1060800.xor: Marvell shared XOR driver
[    1.148966] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.156567] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.218963] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.269357] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.277011] console [ttyS0] disabled
[    1.300751] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 22, base_baud = 12500000) is a 16550A
[    1.309792] console [ttyS0] enabled
[    1.316880] bootconsole [earlycon0] disabled
[    1.326463] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.335568] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.345118] scsi host0: ahci-mvebu
[    1.348853] scsi host1: ahci-mvebu
[    1.352461] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 42
[    1.360425] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 42
[    1.368507] ahci-mvebu f10e0000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.377607] ahci-mvebu f10e0000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.386983] scsi host2: ahci-mvebu
[    1.400637] scsi host3: ahci-mvebu
[    1.404207] ata3: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x100 irq 43
[    1.412171] ata4: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x180 irq 43
[    1.420596] pxa3xx-nand f10d0000.flash: This platform can't do DMA on this device
[    1.428452] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xdc
[    1.434866] nand: Hynix H27U4G8F2DTR-BC
[    1.438737] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.446341] pxa3xx-nand f10d0000.flash: ECC strength 16, ECC step size 2048
[    1.453554] Bad block table found at page 262080, version 0x01
[    1.459744] Bad block table found at page 262016, version 0x01
[    1.465771] nand_read_bbt: bad block at 0x00000dcc0000
[    1.470940] nand_read_bbt: bad block at 0x00000fb00000
[    1.476101] nand_read_bbt: bad block at 0x000012180000
[    1.481268] nand_read_bbt: bad block at 0x0000139a0000
[    1.486429] nand_read_bbt: bad block at 0x000017880000
[    1.491594] nand_read_bbt: bad block at 0x0000178a0000
[    1.496754] nand_read_bbt: bad block at 0x00001a640000
[    1.501923] nand_read_bbt: bad block at 0x00001e9c0000
[    1.507127] 8 ofpart partitions found on MTD device pxa3xx_nand-0
[    1.513252] Creating 8 MTD partitions on "pxa3xx_nand-0":
[    1.518682] 0x000000000000-0x000000500000 : "U-Boot"
[    1.534350] 0x000000500000-0x000000f00000 : "uImage"
[    1.549981] 0x000000a00000-0x000001900000 : "uRamdisk"
[    1.565774] 0x000000f00000-0x00001d700000 : "image.cfs"
[    1.583272] 0x00001c800000-0x000039f00000 : "rescue_fw"
[    1.588520] mtd: partition "rescue_fw" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x3800000
[    1.610060] 0x00001d700000-0x00003c200000 : "config"
[    1.615048] mtd: partition "config" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x2900000
[    1.636290] 0x00001eb00000-0x00003e000000 : "reserve1"
[    1.641464] mtd: partition "reserve1" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x1500000
[    1.662797] 0x00001f500000-0x00003f400000 : "reserve2"
[    1.667971] mtd: partition "reserve2" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0xb00000
[    1.689766] m25p80 spi0.0: unrecognized JEDEC id bytes: ff, ff, ff
[    1.696425] libphy: Fixed MDIO Bus: probed
[    1.699829] ata1: SATA link down (SStatus 0 SControl 300)
[    1.706602] libphy: mdio_driver_register: mv88e6085
[    1.709834] ata2: SATA link down (SStatus 0 SControl 300)
[    1.717091] libphy: orion_mdio_bus: probed
[    1.726927] mvneta_bm f10c8000.bm: Buffer Manager for network controller enabled
[    1.736316] mvneta f1070000.ethernet eth0: Using random mac address 62:ed:05:8d:3a:39
[    1.746123] mvneta f1030000.ethernet eth1: Using random mac address 8a:67:72:69:96:d5
[    1.749878] ata3: SATA link down (SStatus 0 SControl 300)
[    1.759631] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.766210] ehci-pci: EHCI PCI platform driver
[    1.770723] ehci-orion: EHCI orion driver
[    1.774763] ata4: SATA link down (SStatus 0 SControl 300)
[    1.780306] orion-ehci f1058000.usb: EHCI Host Controller
[    1.785740] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    1.793406] orion-ehci f1058000.usb: irq 38, io mem 0xf1058000
[    1.828578] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    1.834630] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.841461] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.848720] usb usb1: Product: EHCI Host Controller
[    1.853618] usb usb1: Manufacturer: Linux 4.9.0-mvebu-tld-12 ehci_hcd
[    1.860092] usb usb1: SerialNumber: f1058000.usb
[    1.865060] hub 1-0:1.0: USB hub found
[    1.868852] hub 1-0:1.0: 1 port detected
[    1.873227] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.878587] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    1.886175] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.894766] xhci-hcd f10f0000.usb3: irq 46, io mem 0xf10f0000
[    1.900639] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    1.907457] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.914718] usb usb2: Product: xHCI Host Controller
[    1.919623] usb usb2: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.926089] usb usb2: SerialNumber: f10f0000.usb3
[    1.931112] hub 2-0:1.0: USB hub found
[    1.934892] hub 2-0:1.0: 1 port detected
[    1.939000] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.944340] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
[    1.951913] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.960110] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    1.966927] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.974188] usb usb3: Product: xHCI Host Controller
[    1.979291] usb usb3: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.985758] usb usb3: SerialNumber: f10f0000.usb3
[    1.990765] hub 3-0:1.0: USB hub found
[    1.994545] hub 3-0:1.0: 1 port detected
[    1.998714] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    2.004057] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    2.011642] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    2.020240] xhci-hcd f10f8000.usb3: irq 47, io mem 0xf10f8000
[    2.026088] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002
[    2.032914] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.040174] usb usb4: Product: xHCI Host Controller
[    2.045072] usb usb4: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    2.051584] usb usb4: SerialNumber: f10f8000.usb3
[    2.056580] hub 4-0:1.0: USB hub found
[    2.060376] hub 4-0:1.0: 1 port detected
[    2.064469] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    2.069818] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5
[    2.077373] usb usb5: We don't know the algorithms for LPM for this host, disabling LPM.
[    2.085562] usb usb5: New USB device found, idVendor=1d6b, idProduct=0003
[    2.092433] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.099695] usb usb5: Product: xHCI Host Controller
[    2.104593] usb usb5: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    2.111113] usb usb5: SerialNumber: f10f8000.usb3
[    2.116115] hub 5-0:1.0: USB hub found
[    2.119907] hub 5-0:1.0: 1 port detected
[    2.124099] usbcore: registered new interface driver usblp
[    2.129687] usbcore: registered new interface driver usb-storage
[    2.135888] mousedev: PS/2 mouse device common for all mice
[    2.141849] armada38x-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[    2.149525] i2c /dev entries driver
[    2.164316] orion_wdt: Initial timeout 171 sec
[    2.169997] marvell-cesa f1090000.crypto: CESA device successfully registered
[    2.177269] hidraw: raw HID events driver (C) Jiri Kosina
[    2.182896] usbcore: registered new interface driver usbhid
[    2.188492] usbhid: USB HID core driver
[    2.192470] drop_monitor: Initializing network drop monitor service
[    2.198807] Netfilter messages via NETLINK v0.30.
[    2.203540] ip_set: protocol 6
[    2.206775] NET: Registered protocol family 10
[    2.211824] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    2.218485] NET: Registered protocol family 17
[    2.223173] 8021q: 802.1Q VLAN Support v1.8
[    2.227402] Key type dns_resolver registered
[    2.231939] ThumbEE CPU extension supported.
[    2.236232] Registering SWP/SWPB emulation handler
[    2.241408] registered taskstats version 1
[    2.245524] Loading compiled-in X.509 certificates
[    2.250379] zswap: loaded using pool lzo/zbud
[    2.297940] Key type big_key registered
[    2.301828] usb 2-1: new high-speed USB device number 2 using xhci-hcd
[    2.311809] Key type encrypted registered
[    2.316761] armada38x-rtc f10a3800.rtc: setting system clock to 2017-06-27 07:59:31 UTC (1498550371)
[    2.326024] PM: Hibernation image not present or could not be loaded.
[    2.326960] Freeing unused kernel memory: 1024K (c0c00000 - c0d00000)
[    2.364944] systemd-udevd[1348]: starting version 215
[    2.371015] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    2.468874] usb 2-1: New USB device found, idVendor=045b, idProduct=0209
[    2.475617] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.488660] hub 2-1:1.0: USB hub found
[    2.494952] hub 2-1:1.0: 4 ports detected
[    2.608809] usb 3-1: new SuperSpeed USB device number 2 using xhci-hcd
[    2.650135] usb 3-1: New USB device found, idVendor=045b, idProduct=0210
[    2.656870] usb 3-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.664767] hub 3-1:1.0: USB hub found
[    2.668784] hub 3-1:1.0: 4 ports detected
[    2.828577] usb 2-1.3: new high-speed USB device number 3 using xhci-hcd
[    2.959214] usb 2-1.3: New USB device found, idVendor=0781, idProduct=5571
[    2.966121] usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.973474] usb 2-1.3: Product: Cruzer Fit
[    2.977587] usb 2-1.3: Manufacturer: SanDisk
[    2.981883] usb 2-1.3: SerialNumber: 4C530302071223122304
[    2.988051] usb-storage 2-1.3:1.0: USB Mass Storage device detected
[    2.994496] scsi host4: usb-storage 2-1.3:1.0
[    3.000534] usbcore: registered new interface driver uas
[    4.009097] scsi 4:0:0:0: Direct-Access     SanDisk  Cruzer Fit       1.00 PQ: 0 ANSI: 6
[    4.019074] sd 4:0:0:0: [sda] 61489152 512-byte logical blocks: (31.5 GB/29.3 GiB)
[    4.027181] sd 4:0:0:0: Attached scsi generic sg0 type 0
[    4.032548] sd 4:0:0:0: [sda] Write Protect is off
[    4.037361] sd 4:0:0:0: [sda] Mode Sense: 43 00 00 00
[    4.039318] sd 4:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    4.051576]  sda: sda1
[    4.060300] sd 4:0:0:0: [sda] Attached SCSI removable disk
[    4.076208] random: fast init done
[   17.773553] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   17.782619] EXT4-fs (sda1): INFO: recovery required on readonly filesystem
[   17.789539] EXT4-fs (sda1): write access will be enabled during recovery
[   17.840481] EXT4-fs (sda1): recovery complete
[   17.847368] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[   18.608808] systemd-udevd[1555]: starting version 215
[   19.968321] EXT4-fs (sda1): re-mounted. Opts: (null)
[   20.084847] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[   21.138970] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   82.725972] random: crng init done
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=nand read.e 0xa00000 0x500000 0x500000;nand read.e 0xf00000 0xa00000 0x500000;bootm 0xa00000 0xf00000
bootcmd_auto=stage_boot $boot_order
bootcmd_fdt=tftpboot 0x2000000 $image_name;tftpboot $fdtaddr $fdtfile;setenv bootargs $console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel; bootz 0x2000000 - $fdtaddr;
bootcmd_fdt_boot=tftpboot 0x2000000 $image_name; setenv bootargs $console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel; bootz 0x2000000 - $fdtaddr;
bootcmd_fdt_edit=tftpboot $fdtaddr $fdtfile; fdt addr $fdtaddr; setenv bootcmd $bootcmd_fdt_boot
bootcmd_lgcy=tftpboot 0x2000000 $image_name; setenv bootargs $bootargs_dflt; bootm 0x2000000;
bootcmd_usb=usb start; run usb_set_bootargs; run usb_bootcmd; reset
bootdelay=1
bootdev=usb
cacheShare=no
console=console=ttyS0,115200
device=0:1
device_partition=0:1
disaMvPnp=no
eeeEnable=no
enaClockGating=no
enaCpuStream=no
enaFPU=yes
enaMonExt=no
enaWrAllo=no
eth1addr=00:50:43: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
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
root@debian:~#
Re: Debian on WD MyCloud EX 4100
June 27, 2017 02:09AM
Awesome!

Let do exactly the same test. But this time without the USB drive. So, shutdown, unplug the USB.

And repeat the test. I'd expect it to boot into stock OS. Because stock u-boot is "newer", and we did not touch stock envs. However, it might not boot to stock (we need further adjustment if that is the case).

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



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

maybe i got you wrong or it is not working as expected.

./kwboot -f -t -B 115200 /dev/ttyAMA0 -b u-boot-a38x-Yellowstone_2014T30p6_bodhi-tld-4-nand-uart.bin -s 0 -q 1
Sending boot message. Please reboot the target...|▒"▒&T▒▒/▒"3DUfw▒"3DUfw▒"3DUfw▒"3DUfw▒"3DUfw
Sending boot image...
  0 % [......................................................................]
  0 % [......................................................................]
  1 % [......................................................................]
...
 97 % [......................................................................]
 98 % [......................................................................]
 99 % [..................................................]
[Type Ctrl-\ + c to quit]

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


U-Boot 2013.01_v1.06 (Jun 23 2017 - 03:15:32) Marvell version: 2014_T3.0p6 - bodhi-tld-4

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:0x7ff96080
       BSS:                     0x7ffef654
       Stack:                   0x7f9cdf20
       Heap:                    0x7f9ce000:0x7fece000
       U-Boot Environment:      0x00100000:0x00180000 Address: 0x00100000(NAND)

NAND:  ID: dcad ,512 MiB
MMC:   mv_sdh: 0
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
Marvell>> setenv bootdev usb
Marvell>> setenv device '0:1'
Marvell>> setenv load_initrd_addr 0x2900000
Marvell>> setenv load_image_addr 0x02000000
Marvell>> setenv load_initrd 'echo loading uInitrd ...; ext2load $bootdev $device $load_initrd_addr /boot/uInitrd'
Marvell>> setenv load_image 'echo loading Image ...; ext2load $bootdev $device $load_image_addr /boot/uImage'
Marvell>> setenv usb_set_bootargs 'setenv bootargs console=ttyS0,115200 root=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)'
Marvell>> setenv usb_bootcmd 'echo Booting from USB ...; setenv fdt_skip_update yes; usb start; run load_image; run load_initrd ; run usb_set_bootargs; bootm $load_image_addr $load_initrd_addr'
Marvell>> setenv bootcmd_usb 'usb start; run usb_set_bootargs; run usb_bootcmd; reset'
Marvell>> setenv bootcmd_stock 'nand read.e 0xa00000 0x500000 0x500000;nand read.e 0xf00000 0xa00000 0x500000;bootm 0xa00000 0xf00000'
Marvell>> setenv bootcmd 'run bootcmd_usb; run bootcmd_stock; reset'
Marvell>> printenv
CASset=max
MALLOC_len=5
MPmode=SMP
autoload=no
baudrate=115200
boot_order=hd_scr usb_scr mmc_scr hd_img usb_img mmc_img pxe net_img net_scr
bootargs=root=/dev/ram console=ttyS0,115200
bootargs_dflt=$console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel
bootargs_end=:10.4.50.254:255.255.255.0:Armada38x:eth0:none
bootargs_root=root=/dev/nfs rw
bootcmd=run bootcmd_usb; run bootcmd_stock; reset
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=nand read.e 0xa00000 0x500000 0x500000;nand read.e 0xf00000 0xa00000 0x500000;bootm 0xa00000 0xf00000
bootcmd_usb=usb start; run usb_set_bootargs; run usb_bootcmd; reset
bootdelay=1
bootdev=usb
cacheShare=no
console=console=ttyS0,115200
device=0:1
device_partition=0:1
disaMvPnp=no
eeeEnable=no
enaClockGating=no
enaCpuStream=no
enaFPU=yes
enaMonExt=no
enaWrAllo=no
eth1addr=00:50:43: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
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

Environment size: 4049/524284 bytes
Marvell>> boot
(Re)start USB...
USB0:   Port (usbActive) : 0    Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
Booting from USB ...
(Re)start USB...
USB0:   Port (usbActive) : 0    Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
loading Image ...
** Bad device usb 0 **
loading uInitrd ...
** Bad device usb 0 **
## Booting image at 02000000 ...

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

Starting kernel ...

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

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

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

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

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

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

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

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

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on WD MyCloud EX 4100
June 27, 2017 02:44AM
kwboot tld-4 as before, without USB drive.

And these envs are the same:
Marvell>> setenv bootdev usb
Marvell>> setenv device '0:1'
Marvell>> setenv load_initrd_addr 0x2900000
Marvell>> setenv load_image_addr 0x02000000
Marvell>> setenv load_initrd 'echo loading uInitrd ...; ext2load $bootdev $device $load_initrd_addr /boot/uInitrd'
Marvell>> setenv load_image 'echo loading Image ...; ext2load $bootdev $device $load_image_addr /boot/uImage'
Marvell>> setenv usb_set_bootargs 'setenv bootargs console=ttyS0,115200 root=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)'
Marvell>> setenv usb_bootcmd 'echo Booting from USB ...; setenv fdt_skip_update yes; usb start; run load_image; run load_initrd ; run usb_set_bootargs; bootm $load_image_addr $load_initrd_addr'
Marvell>> setenv bootcmd_usb 'usb start; run usb_set_bootargs; run usb_bootcmd; reset'

At this point, execute the new envs

setenv set_bootargs_stock 'setenv bootargs root=/dev/ram console=ttyS0,115200'
setenv bootcmd_stock 'run set_bootargs_stock; nand read.e 0xa00000 0x500000 0x500000;nand read.e 0xf00000 0xa00000 0x500000;bootm 0xa00000 0xf00000'
setenv bootcmd 'run bootcmd_usb; run bootcmd_stock; reset'

and then boot
boot

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on WD MyCloud EX 4100
June 27, 2017 03:00AM
Okay, this seems to work

./kwboot -f -t -B 115200 /dev/ttyAMA0 -b u-boot-a38x-Yellowstone_2014T30p6_bodhi-tld-4-nand-uart.bin -s 0 -q 1
Sending boot message. Please reboot the target...\▒"▒&T▒▒▒"3DUf|▒"3DUfw▒"3DUfw▒"3DUfw▒"3DUfw
Sending boot image...
  0 % [......................................................................]
  0 % [......................................................................]
  1 % [......................................................................]
  2 % [......................................................................]
...
 97 % [......................................................................]
 98 % [......................................................................]
 99 % [..................................................]
[Type Ctrl-\ + c to quit]

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


U-Boot 2013.01_v1.06 (Jun 23 2017 - 03:15:32) Marvell version: 2014_T3.0p6 - bodhi-tld-4

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:0x7ff96080
       BSS:                     0x7ffef654
       Stack:                   0x7f9cdf20
       Heap:                    0x7f9ce000:0x7fece000
       U-Boot Environment:      0x00100000:0x00180000 Address: 0x00100000(NAND)

NAND:  ID: dcad ,512 MiB
MMC:   mv_sdh: 0
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
Marvell>> setenv bootdev usb
Marvell>> setenv device '0:1'
Marvell>> setenv load_initrd_addr 0x2900000
Marvell>> setenv load_image_addr 0x02000000
Marvell>> setenv load_initrd 'echo loading uInitrd ...; ext2load $bootdev $device $load_initrd_addr /boot/uInitrd'
Marvell>> setenv load_image 'echo loading Image ...; ext2load $bootdev $device $load_image_addr /boot/uImage'
Marvell>> setenv usb_set_bootargs 'setenv bootargs console=ttyS0,115200 root=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)'
Marvell>> setenv usb_bootcmd 'echo Booting from USB ...; setenv fdt_skip_update yes; usb start; run load_image; run load_initrd ; run usb_set_bootargs; bootm $load_image_addr $load_initrd_addr'
Marvell>> setenv bootcmd_usb 'usb start; run usb_set_bootargs; run usb_bootcmd; reset'
Marvell>> setenv set_bootargs_stock 'setenv bootargs root=/dev/ram console=ttyS0,115200'
Marvell>> setenv bootcmd_stock 'run set_bootargs_stock; nand read.e 0xa00000 0x500000 0x500000;nand read.e 0xf00000 0xa00000 0x500000;bootm 0xa00000 0xf00000'
Marvell>> setenv bootcmd 'md_usb; run bootcmd_stock; reset'
Marvell>> boot
Unknown command 'md_usb' - try 'help'

NAND read: device 0 offset 0x500000, size 0x500000
 5242880 bytes read: OK

NAND read: device 0 offset 0xa00000, size 0x500000
 5242880 bytes read: OK
## Booting image at 00a00000 ...
## Booting kernel from Legacy Image at 00a00000 ...
   Image Name:   Linux-388
   Created:      2016-08-12   7:59:44 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4093188 Bytes = 3.9 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 00f00000 ...
   Image Name:   Ramdisk
   Created:      2017-03-21   7:59:17 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    2216333 Bytes = 2.1 MiB
   Load Address: 00e00000
   Entry Point:  00e00000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Booting Linux on physical CPU 0x0
Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Initializing cgroup subsys cpuacct
Linux version 3.10.39 (kman@kmachine) (gcc version 4.6.4 (Linaro GCC branch-4.6.4. Marvell GCC Dev 201310-2126.3d181f66 64K MAXPAGESIZE ALIGN) ) #2 SMP Fri Aug 12 15:59:39 CST 2016 2014T30p5 Build-git9e099f3
CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c53c7d
CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
Machine: Marvell Armada 380/381/382/385/388 (Device Tree), model: Marvell Armada 385 Development Board
Memory policy: ECC disabled, Data cache writealloc
PERCPU: Embedded 1 pages/cpu @c0b10000 s8320 r8192 d16256 u32768
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65505
Kernel command line: root=/dev/ram console=ttyS0,115200
PID hash table entries: 4096 (order: -1, 16384 bytes)
Dentry cache hash table entries: 131072 (order: 4, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 3, 262144 bytes)
allocated 524288 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
Memory: 2048MB = 2048MB total
Memory: 2081984k/2081984k available, 15168k reserved, 1303552K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff8000   (  32 kB)
    fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    vmalloc : 0xf0800000 - 0xfff00000   ( 247 MB)
    lowmem  : 0xc0000000 - 0xf0700000   ( 775 MB)
    pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    modules : 0xbf000000 - 0xbfe00000   (  14 MB)
      .text : 0xc0008000 - 0xc0714270   (7217 kB)
      .init : 0xc0718000 - 0xc075a080   ( 265 kB)
      .data : 0xc075c000 - 0xc07a7d40   ( 304 kB)
       .bss : 0xc07a7d40 - 0xc0871470   ( 806 kB)
Hierarchical RCU implementation.
        RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
NR_IRQS:16 nr_irqs:16 16

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

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

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

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

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

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

libphy: orion_mdio_bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-pci: EHCI PCI platform driver
ehci-orion: EHCI orion driver
orion-ehci f1058000.usb: EHCI Host Controller
orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
orion-ehci f1058000.usb: irq 50, io mem 0xf1058000
orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
xhci-hcd f10f0000.usb3: xHCI Host Controller
xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
xhci-hcd f10f0000.usb3: irq 48, io mem 0xf10f0000
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
xhci-hcd f10f0000.usb3: xHCI Host Controller
xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 1 port detected
usbcore: registered new interface driver usb-storage
ata2: SATA link down (SStatus 0 SControl 300)
ata1: SATA link down (SStatus 0 SControl 300)
ata4: SATA link down (SStatus 0 SControl 300)
ata3: SATA link down (SStatus 0 SControl 300)
usb 3-1: new SuperSpeed USB device number 2 using xhci-hcd
usb 3-1: Parent hub missing LPM exit latency info.  Power management will be impacted.
hub 3-1:1.0: USB hub found
hub 3-1:1.0: 4 ports detected
mvebu-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
i2c /dev entries driver
md: linear personality registered for level -1
md: raid0 personality registered for level 0
md: raid1 personality registered for level 1
md: raid10 personality registered for level 10
md: raid6 personality registered for level 6
usb 2-1: new high-speed USB device number 2 using xhci-hcd
md: raid5 personality registered for level 5
md: raid4 personality registered for level 4
device-mapper: ioctl: 4.24.0-ioctl (2013-01-15) initialised: dm-devel@redhat.com
dm_crypt using the OCF package.
cpuidle: using governor ladder
armada-cesa-ocf f109d000.crypto: mv_get_cesa_resources: Total CESA HW channels supported 2
armada-cesa-ocf f109d000.crypto: mv_get_cesa_resources: CESA feature: chain(0)
hub 2-1:1.0: USB hub found
hub 2-1:1.0: 4 ports detected
mvCesaInit: channels=2, session=640, queue=256
armada-cesa-ocf f109d000.crypto: cesa_ocf_probe: CESA driver operate in ocf(0) mode
cesadev_init(c0734f0c)
TCP: cubic registered
NET: Registered protocol family 17
8021q: 802.1Q VLAN Support v1.8
VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
registered taskstats version 1
mvebu-rtc f10a3800.rtc: setting system clock to 2017-06-27 08:56:49 UTC (1498553809)
md: Waiting for all devices to be available before autodetect
md: If you don't use raid, use raid=noautodetect
md: Autodetecting RAID arrays.
md: Scanned 0 and added 0 devices.
md: autorun ...
md: ... autorun DONE.
RAMDISK: gzip image found at block 0
VFS: Mounted root (ext2 filesystem) readonly on device 1:0.
devtmpfs: mounted
Freeing unused kernel memory: 256K (c0718000 - c0758000)
init started: BusyBox v1.20.2 (2014-10-30 15:28:01 CST)
starting pid 1256, tty '': '/etc/rc.sh'
** Mounting /etc/fstab
umount: can't umount /proc: Invalid argument
umount: can't umount /usr/local/modules: Invalid argument
offset_flag=1,vaule_flag=1,bit_fUBI: attaching mtd5 to ubi0
lag=1
reg f1018140 : 00701000
UBI: scanning is finished
UBI: attached mtd5 (name "config", size 20 MiB) to ubi0
UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
UBI: VID header offset: 2048 (aligned 2048), data offset: 4096
UBI: good PEBs: 159, bad PEBs: 1, corrupted PEBs: 0
UBI: user volume: 1, internal volumes: 1, max. volumes count: 128
UBI: max/mean erase counter: 29/19, WL threshold: 4096, image sequence number: 854877737
UBI: available PEBs: 12, total reserved PEBs: 147, PEBs reserved for bad PEB handling: 19
UBI: background thread "ubi_bgt0d" started, PID 1271
UBI device number 0, total 159 LEBs (20189184 bytes, 19.3 MiB), available 12 LEBs (1523712 bytes, 1.5 MiB), LEB size 126976 bytes (124.0 KiB)
UBIFS: background thread "ubifs_bgt0_0" started, PID 1276
UBIFS: recovery needed
UBIFS: recovery completed
UBIFS: mounted UBI device 0, volume 0, name "config"
UBIFS: LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
UBIFS: FS size: 14475264 bytes (13 MiB, 114 LEBs), journal size 1015809 bytes (0 MiB, 6 LEBs)
UBIFS: reserved for root: 683702 bytes (667 KiB)
UBIFS: media format: w4/r0 (latest is w4/r0), UUID CA6C4BAB-A767-40BD-8190-380C535C4A0E, small LPT model
umount: can't umount /usr/local/tmp/image.cfs: No such file or directory
rm: can't remove '/usr/local/tmp/image.cfs': No such file or directory
umount: can't umount /usr/local/tmp: Invalid argument
first good block is 0
image len = 96858112 , image checksum = 9707d888
umount: can't umount /usr/local/tmp: Invalid argument
dump image checksum=9707d888
mount cmd:busybox mount -t squashfs -o loop /usr/local/tmp/image.cfs /usr/local/modules
cp: can't stat '/tmp1/*': No such file or directory
ln: /lib/./liblber-2.4.so.2.5.6: File exists
ln: /lib/./libminiupnpc.so: File exists
ln: /lib/./libnatpmp.so: File exists
ln: /lib/./libpam.so.0.81.6: File exists
ln: /usr/local/sbin/alert_email_config.sh: File exists
ln: /usr/sbin/language.sh: File exists
ln: /lib/libnss_winbind.so.2: File exists
dev.raid.speed_limit_max = 1000
egiga0    Link encap:Ethernet  HWaddr 00:50:43:02:02:01
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:532
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:193
egiga0: mac address changed

egiga1    Link encap:Ethernet  HWaddr 00:50:43:02:02:02
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:532
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:194

Do Lan Port Switch
egiga1: mac address changed
not_egiga0: mac address changed
jnl: driver (lke_9.2.0 lke_9.2.0_r256412_b49, LBD=ON) loaded at bf000000
ufsd: module license 'Commercial product' taints kernel.
Disabling lock debugging due to kernel taint
ufsd:: trace mask set to 0000000f
ufsd: driver (lke_9.2.0 lke_9.2.0_r256412_b49, build_host("fsd-linux-bs06b"), acl, ioctl, bdi, sd2(0), fua, bz, tr, rsrc) loaded at bf020000
NTFS support included
exFAT support included
Hfs+/HfsJ support included
optimized: speed
Build_for__WD_Yellowstone_k3.10.39_2015-07-06_lke_9.2.0_r256412_b49

bio: create slab <bio-1> at 1
Btrfs loaded
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
lrwxrwxrwx    1 root     0               17 Jun 27 08:57 /usr/sbin//raid_config -> /usr/sbin/diskmgr
lrwxrwxrwx    1 root     0               17 Jun 27 08:57 /usr/sbin//raid_expand -> /usr/sbin/diskmgr
lrwxrwxrwx    1 root     0               17 Jun 27 08:57 /usr/sbin//raid_expand_disks -> /usr/sbin/diskmgr
lrwxrwxrwx    1 root     0               17 Jun 27 08:57 /usr/sbin//raid_update_info -> /usr/sbin/diskmgr
hardware init
Read PCI register offset 0x18140 = 701000
Read PCI register offset 0x18140 = 701000
Read PCI register offset 0x18140 = 701000
Resetting USB device /dev/bus/usb/003/002
usb 3-1: reset SuperSpeed USB device number 2 using xhci-hcd
usb 3-1: Parent hub missing LPM exit latency info.  Power management will be impacted.
xhci-hcd f10f0000.usb3: xHCI xhci_drop_endpoint called with disabled ep eeb4eb40
Reset successful
mtd check v1.06.06032015
config mtd type is UBIFS
device = /usr/local/config
Total size     = 12384 Kbytes
Used size     = 220 Kbytes
Free size     = 12164 Kbytes
percentage = 2
/usr/local/config free size is 12455936
** copy config files
*** Copy orion.db from flash ****
cp: can't stat '/usr/local/modules/files/fan_temperature.txt': No such file or directory
*** symlink onbrd.ini from flash ****
/etc/sysinit.d/wdlog: line 13: /etc/system.conf: No such file or directory
** set loopback interface
UBI: attaching mtd6 to ubi1
UBI: scanning is finished
UBI: attached mtd6 (name "reserve1", size 10 MiB) to ubi1
UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
UBI: VID header offset: 2048 (aligned 2048), data offset: 4096
UBI: good PEBs: 80, bad PEBs: 0, corrupted PEBs: 0
UBI: user volume: 1, internal volumes: 1, max. volumes count: 128
UBI: max/mean erase counter: 4/1, WL threshold: 4096, image sequence number: 945740822
UBI: available PEBs: 18, total reserved PEBs: 62, PEBs reserved for bad PEB handling: 24
UBI: background thread "ubi_bgt1d" started, PID 3196
UBI device number 1, total 80 LEBs (10158080 bytes, 9.7 MiB), available 18 LEBs (2285568 bytes, 2.2 MiB), LEB size 126976 bytes (124.0 KiB)
UBIFS: background thread "ubifs_bgt1_0" started, PID 3214
UBIFS: mounted UBI device 1, volume 0, name "reserve"
UBIFS: LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
UBIFS: FS size: 3047424 bytes (2 MiB, 24 LEBs), journal size 1015809 bytes (0 MiB, 6 LEBs)
UBIFS: reserved for root: 143937 bytes (140 KiB)
UBIFS: media format: w4/r0 (latest is w4/r0), UUID D26023B5-AC16-4891-B2DF-4E2F0C89A424, small LPT model
UBIFS: un-mount UBI device 1, volume 0
UBIFS: background thread "ubifs_bgt1_0" stops
UBI: attaching mtd7 to ubi2
UBI: scanning is finished
UBI: attached mtd7 (name "reserve2", size 10 MiB) to ubi2
UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
UBI: VID header offset: 2048 (aligned 2048), data offset: 4096
UBI: good PEBs: 80, bad PEBs: 0, corrupted PEBs: 0
UBI: user volume: 1, internal volumes: 1, max. volumes count: 128
UBI: max/mean erase counter: 3/1, WL threshold: 4096, image sequence number: 211392171
UBI: available PEBs: 6, total reserved PEBs: 74, PEBs reserved for bad PEB handling: 28
UBI: background thread "ubi_bgt2d" started, PID 3229
UBI device number 2, total 80 LEBs (10158080 bytes, 9.7 MiB), available 6 LEBs (761856 bytes, 744.0 KiB), LEB size 126976 bytes (124.0 KiB)
mknod: /dev/mtd7: File exists
UBIFS: background thread "ubifs_bgt2_0" started, PID 3242
UBIFS: mounted UBI device 2, volume 0, name "reserve2"
UBIFS: LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
UBIFS: FS size: 4063232 bytes (3 MiB, 32 LEBs), journal size 1015809 bytes (0 MiB, 6 LEBs)
UBIFS: reserved for root: 191915 bytes (187 KiB)
UBIFS: media format: w4/r0 (latest is w4/r0), UUID DA85EEA8-3B41-440D-BCDF-6D0EC49EAC66, small LPT model
/dev/mtd7 mount ok(ubi)
UBIFS: un-mount UBI device 2, volume 0
UBIFS: background thread "ubifs_bgt2_0" stops
mac1 = 00:90:A9:E5:19:1E
mac2 =egiga0: mac address changed
 00:90:A9:E5:19:1F
lan0:ifconfiegiga1: mac address changed
g egiga0 hw ether 00:90:A9:E5:19:1E
lan0:ifconfig egiga1 hw ethpool #1: pkt_size=1536, buf_size=1600 - 2048 of 2048 buffers added
er 00:90:A9:E5:1egiga0: link up
9:1F
egiga0: started
pool #0: pkt_size=1536, buf_size=1600 - 2048 of 2048 buffers added
egiga1: started
set lan0 speed
set lan1 speed
[wd_read_serial.c:621] Read serial number from flash.
[wd_read_serial.c:160] serial number : WNAG27220406
hidden encryption: 0
old firmware ver:2.30.165.0321.2017
new firmware ver:2.30.165.0321.2017
rm: can't remove '/tmp/fix_wd_config': No such file or directory
NET: Registered protocol family 10
IPv6: ADDRCONF(NETDEV_UP): egiga1: link is not ready
sit: Unknown symbol ip_tunnel_get_stats64 (err 0)
insmod: error inserting '/usr/local/modules/driver/sit.ko': -1 Unknown symbol in module
rm: can't remove '/bin/sysctl': No such file or directory
net.ipv6.conf.default.accept_dad = 2
net.ipv6.conf.egiga0.accept_dad = 2
net.ipv6.conf.default.dad_transmits = 1
net.ipv6.conf.egiga0.dad_transmits = 1
net.ipv6.conf.default.forwarding = 0
net.ipv6.conf.default.accept_redirects = 1
mkdir: can't create directory '/usr/local/etc': File exists
*** execute rc.init.sh
ip.sh bonding {1 restart}
bonding starting ...
insmod /usr/local/modules/driver/bonding.ko mode=1 miimon=500 use_carrier=1 downdelay=1000 updelay=1000
bonding: Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
bonding: MII link monitoring set to 500 ms
8021q: adding VLAN 0 to HW filter on device bond0
IPv6: ADDRCONF(NETDEV_UP): bond0: link is not ready
egiga0: stopped
egiga0: mac address changed
egiga0: link up
egiga0: started
bonding: bond0: enslaving egiga0 as a backup interface with an up link.
egiga1: stopped
egiga1: mac address changed
egiga1: started
bonding: bond0: enslaving egiga1 as a backup interface with a down link.
udhcpc (v1.20.2) started
cat: can't open '/tmp/setip.0': No such file or directory
Sending discover...
killall: crond: no process killed
crond[3491]: crond: crond (busybox 1.20.2) started, log level 8
--2017-06-27 08:57:18--  http://download.wdc.com/nas/WDMyCloudEX4100_HDD_Blacklist.xml
Resolving download.wdc.com... failed: Name or service not known.
wget: unable to resolve host address 'download.wdc.com'
[upnp_nas_xml.c() 348] Can't get IP of bond0
Initializing UPnP Sdk with
        ipaddress = (null) port = 0
Error with UpnpInit -- -208
sh: you need to specify whom to kill
bonding: bond0: link status definitely up for interface egiga0, 1000 Mbps full duplex.
bonding: bond0: making interface egiga0 the new active one.
bonding: bond0: first active interface up!
IPv6: ADDRCONF(NETDEV_CHANGE): bond0: link becomes ready
*** Copy CacheVolume data from flash ****
*** set Time Zone ****
$Usage: apache {start|stop|restart} {web/dav}
Tue Jun 27 08:57:19 CEST 2017
*** get Time from rtc and set it into system ****
rtc: RTC time = 2017/6/27 Tue 8:57:20
Tue Jun 27 10:57:20 CEST 2017
Set Date & time : sntp -K /dev/null -S -r time.windows.com
sntp 4.2.8@1.3265 Fri Jan  9 06:42:54 UTC 2015 (8)
time.windows.com lookup error Name or service not known

Module IPC SERVER Version:(1.00.20090706)

ads=0
created mail daemon thread 0
Sending discover...
Sending select for 192.168.178.43...
Lease of 192.168.178.43 obtained, lease time 864000
deleting routers
route: SIOCDELRT: No such process
RTNETLINK answers: Operation not supported
RTNETLINK answers: Operation not supported
call load_module network
POWER ON DEVICE!!
sh: can't create /sys/module/gpio/parameters/hdd_status: nonexistent directory
cp: can't stat '/usr/local/config/user.log.*': No such file or directory
cp: can't stat '/usr/local/config/wdmcserver.log.*': No such file or directory
cp: can't stat '/usr/local/config/orion_cm.log.*': No such file or directory
cp: can't stat '/usr/local/config/mycloud.log.*': No such file or directory
cp: can't stat '/usr/local/config/wdhwlib.log.*': No such file or directory
mount: mount point /proc/bus/usb does not exist
WD hwlib start..............
Starting system message bus
Starting wdtms
wdtms started
PHY_LAN_NUMBER=2
BOND_ENABLE=1
VLAN0_ENABLE=0
VLAN1_ENABLE=0
--2017-06-27 10:57:23--  http://download.wdc.com/apps/WDMyCloudEX4100/WDMyCloudEX4100.xml
Resolving download.wdc.com... I/O warning : failed to load external entity "/var/www/xml/internal_backup.xml"
52.43.194.123, 52.89.214.250, 52.24.240.198, ...
Connecting to download.wdc.com|52.43.194.123|:80... cat: can't open '/var/run/traceroute_wd.pid': No such file or directory
ash: you need to specify whom to kill
killall: traceroute: no process killed

 -------------use hwlib instead of fan_control b c-------------
restart sysinfod...
sysinfod: full update begin...
connected.
HTTP request sent, awaiting response... 200 OK
Length: 64114 (63K) [text/xml]
Saving to: '/var/www/xml/app_info.xml'

100%[======================================>] 64,114       146KB/s   in 0.4s

2017-06-27 10:57:24 (146 KB/s) - '/var/www/xml/app_info.xml' saved [64114/64114]

I/O warning : failed to load external entity "/var/www/xml/app_update.xml"
sysinfod: disk connected: previous=0xffffffff, now=0x0
--2017-06-27 10:57:24--  http://download.wdc.com/nas/WDMyCloudEX4100_HDD_Blacklist.xml
Resolving download.wdc.com... 54.201.207.64, 54.186.82.67, 52.33.117.19, ...
Connecting to download.wdc.com|54.201.207.64|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2017-06-27 10:57:24 ERROR 404: Not Found.

Set Date & time : sntp -K /dev/null -S -r pool.ntp.org
sntp 4.2.8@1.3265 Fri Jan  9 06:42:54 UTC 2015 (8)
2017-06-27 10:57:25.149506 (-0100) +0.221525 +/- 0.189095 pool.ntp.org 213.95.200.107 s2
NTP Server connected successfully!!!
waiting : [10]
country=3
lang_path=/usr/local/modules/language
chk_io v1.04.20141112
I/O warning : failed to load external entity "/var/www/xml/internal_backup.xml"
system daemon v1.04.20141211
Tue Jun 27 10:57:29 CEST 2017 - %W - Communication Manager - startup is disabled, use 'enable' to start process
PIP is disabled, exiting.

dev.raid.speed_limit_max = 200000

Please press Enter to activate this console. sh: operate_auth: not found
killall: chk_hotplug: no process killed
Get_Cloud_Status
Starting wdnotifier
rtc: system time: 2017/6/27 Tue 8:57:30
setRTCTime
wdnotifier started
killall: smbd: no process killed
Create USB dev node
rm: can't remove '/tmp/disk_uuid': No such file or directory
sysinfod: full update begin...
Loading iSCSI transport class v2.0-870.
sysinfod: inform: all drives status=No Drives.
dry_total_size:15973
dry_total_size:0
iscsi: registered transport (tcp)
dry_total_size:8636
New interface iface0 added
dry_total_size:7572
iface0 updated.
New interface iface1 added
iface1 updated.
New interface ifbond added
ifbond updated.
dry_total_size:15652
LED_POWER_ON
Re: Debian on WD MyCloud EX 4100
June 27, 2017 03:28AM
Cool!


Ok. You can save env. Note: you had a typo which I've corrected.


This time do it in Debian. After booting into Debian,

fw_setenv bootdev usb
fw_setenv device '0:1'
fw_setenv load_initrd_addr 0x2900000
fw_setenv load_image_addr 0x02000000
fw_setenv load_initrd 'echo loading uInitrd ...; ext2load $bootdev $device $load_initrd_addr /boot/uInitrd'
fw_setenv load_image 'echo loading Image ...; ext2load $bootdev $device $load_image_addr /boot/uImage'
fw_setenv 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)'
fw_setenv usb_bootcmd 'echo Booting from USB ...; setenv fdt_skip_update yes; usb start; run load_image; run load_initrd ; run usb_set_bootargs; bootm $load_image_addr $load_initrd_addr'
fw_setenv bootcmd_usb 'usb start; run usb_set_bootargs; run usb_bootcmd; reset'
fw_setenv set_bootargs_stock 'setenv bootargs root=/dev/ram console=ttyS0,115200'
fw_setenv bootcmd_stock 'run set_bootargs_stock; nand read.e 0xa00000 0x500000 0x500000;nand read.e 0xf00000 0xa00000 0x500000;bootm 0xa00000 0xf00000'
fw_setenv bootcmd 'run bootcmd_usb; run bootcmd_stock; reset'

and then list the envs:

fw_printenv

If all goes well, the envs will be listed normally, with all these new envs at the end of the list.

----

At this point, there are 3 tests that you can do to verify the envs have been set and no more manual intervention needed:

1. Shutdown and power up without the USB drive. It should boot to stock.
2. kwboot with tld-4, without USB drive. It should boot to stock.
3. kwboot with tld-4, with USB drive attached. It should boot to Debian.

After these 3 tests, we can flash u-boot to NAND.

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



Edited 2 time(s). Last edit at 06/27/2017 03:47AM by bodhi.
Re: Debian on WD MyCloud EX 4100
June 27, 2017 04:11AM
bodhi,

i think you got it halfway.


1. Shutdown and power up without the USB drive. It should boot to stock.
is booting to stock. done!
2. kwboot with tld-4, without USB drive. It should boot to stock.
is booting to stock. done!
3. kwboot with tld-4, with USB drive attached. It should boot to Debian.
is booting to stock. done!

following the output from kwboot with usb attached.

./kwboot -f -t -B 115200 /dev/ttyAMA0 -b u-boot-a38x-Yellowstone_2014T30p6_bodhi-tld-4-nand-uart.bin -s 0 -q 1
Sending boot message. Please reboot the target...|▒"▒&T▒▒▒"3DUfw▒"3DUfw▒"3DUfw▒"3DUf/▒"3DUfw
Sending boot image...
  0 % [......................................................................]
  0 % [......................................................................]
  1 % [......................................................................]
  2 % [......................................................................]
...
 97 % [......................................................................]
 98 % [......................................................................]
 99 % [..................................................]
[Type Ctrl-\ + c to quit]

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


U-Boot 2013.01_v1.06 (Jun 23 2017 - 03:15:32) Marvell version: 2014_T3.0p6 - bodhi-tld-4

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:0x7ff96080
       BSS:                     0x7ffef654
       Stack:                   0x7f9cdf20
       Heap:                    0x7f9ce000:0x7fece000
       U-Boot Environment:      0x00100000:0x00180000 Address: 0x00100000(NAND)

NAND:  ID: dcad ,512 MiB
MMC:   mv_sdh: 0
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

NAND read: device 0 offset 0x500000, size 0x500000
 5242880 bytes read: OK

NAND read: device 0 offset 0xa00000, size 0x500000
 5242880 bytes read: OK
## Booting image at 00a00000 ...
## Booting kernel from Legacy Image at 00a00000 ...
   Image Name:   Linux-388
   Created:      2016-08-12   7:59:44 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4093188 Bytes = 3.9 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 00f00000 ...
   Image Name:   Ramdisk
   Created:      2017-03-21   7:59:17 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    2216333 Bytes = 2.1 MiB
   Load Address: 00e00000
   Entry Point:  00e00000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Booting Linux on physical CPU 0x0
Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Initializing cgroup subsys cpuacct
Linux version 3.10.39 (kman@kmachine) (gcc version 4.6.4 (Linaro GCC branch-4.6.4. Marvell GCC Dev 201310-2126.3d181f66 64K MAXPAGESIZE ALIGN) ) #2 SMP Fri Aug 12 15:59:39 CST 2016 2014T30p5 Build-git9e099f3
CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c53c7d
CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
Machine: Marvell Armada 380/381/382/385/388 (Device Tree), model: Marvell Armada 385 Development Board
Memory policy: ECC disabled, Data cache writealloc
PERCPU: Embedded 1 pages/cpu @c0b10000 s8320 r8192 d16256 u32768
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65505
Kernel command line: root=/dev/ram console=ttyS0,115200
PID hash table entries: 4096 (order: -1, 16384 bytes)
Dentry cache hash table entries: 131072 (order: 4, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 3, 262144 bytes)
allocated 524288 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
Memory: 2048MB = 2048MB total
Memory: 2081984k/2081984k available, 15168k reserved, 1303552K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff8000   (  32 kB)
    fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    vmalloc : 0xf0800000 - 0xfff00000   ( 247 MB)
    lowmem  : 0xc0000000 - 0xf0700000   ( 775 MB)
    pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    modules : 0xbf000000 - 0xbfe00000   (  14 MB)
      .text : 0xc0008000 - 0xc0714270   (7217 kB)
      .init : 0xc0718000 - 0xc075a080   ( 265 kB)
      .data : 0xc075c000 - 0xc07a7d40   ( 304 kB)
       .bss : 0xc07a7d40 - 0xc0871470   ( 806 kB)
Hierarchical RCU implementation.
        RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
NR_IRQS:16 nr_irqs:16 16

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

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

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

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

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

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

libphy: orion_mdio_bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-pci: EHCI PCI platform driver
ehci-orion: EHCI orion driver
orion-ehci f1058000.usb: EHCI Host Controller
orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
orion-ehci f1058000.usb: irq 50, io mem 0xf1058000
orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
xhci-hcd f10f0000.usb3: xHCI Host Controller
xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
xhci-hcd f10f0000.usb3: irq 48, io mem 0xf10f0000
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
xhci-hcd f10f0000.usb3: xHCI Host Controller
xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 1 port detected
usbcore: registered new interface driver usb-storage
ata2: SATA link down (SStatus 0 SControl 300)
ata1: SATA link down (SStatus 0 SControl 300)
ata3: SATA link down (SStatus 0 SControl 300)
ata4: SATA link down (SStatus 0 SControl 300)
usb 3-1: new SuperSpeed USB device number 2 using xhci-hcd
usb 3-1: Parent hub missing LPM exit latency info.  Power management will be impacted.
hub 3-1:1.0: USB hub found
hub 3-1:1.0: 4 ports detected
mvebu-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
i2c /dev entries driver
md: linear personality registered for level -1
md: raid0 personality registered for level 0
md: raid1 personality registered for level 1
md: raid10 personality registered for level 10
md: raid6 personality registered for level 6
usb 2-1: new high-speed USB device number 2 using xhci-hcd
md: raid5 personality registered for level 5
md: raid4 personality registered for level 4
device-mapper: ioctl: 4.24.0-ioctl (2013-01-15) initialised: dm-devel@redhat.com
dm_crypt using the OCF package.
cpuidle: using governor ladder
armada-cesa-ocf f109d000.crypto: mv_get_cesa_resources: Total CESA HW channels supported 2
armada-cesa-ocf f109d000.crypto: mv_get_cesa_resources: CESA feature: chain(0)
hub 2-1:1.0: USB hub found
hub 2-1:1.0: 4 ports detected
mvCesaInit: channels=2, session=640, queue=256
armada-cesa-ocf f109d000.crypto: cesa_ocf_probe: CESA driver operate in ocf(0) mode
cesadev_init(c0734f0c)
TCP: cubic registered
NET: Registered protocol family 17
8021q: 802.1Q VLAN Support v1.8
VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
registered taskstats version 1
mvebu-rtc f10a3800.rtc: setting system clock to 2017-06-27 10:05:21 UTC (1498557921)
md: Waiting for all devices to be available before autodetect
md: If you don't use raid, use raid=noautodetect
md: Autodetecting RAID arrays.
md: Scanned 0 and added 0 devices.
md: autorun ...
md: ... autorun DONE.
RAMDISK: gzip image found at block 0
usb 2-1.3: new high-speed USB device number 3 using xhci-hcd
usb-storage 2-1.3:1.0: USB Mass Storage device detected
scsi4 : usb-storage 2-1.3:1.0
VFS: Mounted root (ext2 filesystem) readonly on device 1:0.
devtmpfs: mounted
Freeing unused kernel memory: 256K (c0718000 - c0758000)
init started: BusyBox v1.20.2 (2014-10-30 15:28:01 CST)
starting pid 1262, tty '': '/etc/rc.sh'
** Mounting /etc/fstab
umount: can't umount /proc: Invalid argument
umount: can't umount /usr/local/modules: Invalid argument
scsi 4:0:0:0: Direct-Access     SanDisk  Cruzer Fit       1.00 PQ: 0 ANSI: 6
sd 4:0:0:0: Attached scsi generic sg0 type 0
sd 4:0:0:0: [sda] 61489152 512-byte logical blocks: (31.4 GB/29.3 GiB)
sd 4:0:0:0: [sda] Write Protect is off
sd 4:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
 sda: sda1
sd 4:0:0:0: [sda] Attached SCSI removable disk
sh: hotPlug.sh: not found
offset_flag=1,vaule_flag=1,bit_fUBI: attaching mtd5 to ubi0
lag=1
reg f1018140 : 00701000
UBI: scanning is finished
UBI: attached mtd5 (name "config", size 20 MiB) to ubi0
UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
UBI: VID header offset: 2048 (aligned 2048), data offset: 4096
UBI: good PEBs: 159, bad PEBs: 1, corrupted PEBs: 0
UBI: user volume: 1, internal volumes: 1, max. volumes count: 128
UBI: max/mean erase counter: 30/20, WL threshold: 4096, image sequence number: 854877737
UBI: available PEBs: 12, total reserved PEBs: 147, PEBs reserved for bad PEB handling: 19
UBI: background thread "ubi_bgt0d" started, PID 1288
UBI device number 0, total 159 LEBs (20189184 bytes, 19.3 MiB), available 12 LEBs (1523712 bytes, 1.5 MiB), LEB size 126976 bytes (124.0 KiB)
UBIFS: background thread "ubifs_bgt0_0" started, PID 1293
UBIFS: mounted UBI device 0, volume 0, name "config"
UBIFS: LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
UBIFS: FS size: 14475264 bytes (13 MiB, 114 LEBs), journal size 1015809 bytes (0 MiB, 6 LEBs)
UBIFS: reserved for root: 683702 bytes (667 KiB)
UBIFS: media format: w4/r0 (latest is w4/r0), UUID CA6C4BAB-A767-40BD-8190-380C535C4A0E, small LPT model
umount: can't umount /usr/local/tmp/image.cfs: No such file or directory
rm: can't remove '/usr/local/tmp/image.cfs': No such file or directory
umount: can't umount /usr/local/tmp: Invalid argument
first good block is 0
image len = 96858112 , image checksum = 9707d888
umount: can't umount /usr/local/tmp: Invalid argument
dump image checksum=9707d888
mount cmd:busybox mount -t squashfs -o loop /usr/local/tmp/image.cfs /usr/local/modules
cp: can't stat '/tmp1/*': No such file or directory
ln: /lib/./liblber-2.4.so.2.5.6: File exists
ln: /lib/./libminiupnpc.so: File exists
ln: /lib/./libnatpmp.so: File exists
ln: /lib/./libpam.so.0.81.6: File exists
ln: /usr/local/sbin/alert_email_config.sh: File exists
ln: /usr/sbin/language.sh: File exists
ln: /lib/libnss_winbind.so.2: File exists
dev.raid.speed_limit_max = 1000
egiga0    Link encap:Ethernet  HWaddr 00:50:43:02:02:01
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:532
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:193

egiga1    Linkegiga0: mac address changed
 encap:Ethernet  HWaddr 00:50:43:02:02:02
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:532
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:194

Do Lan Port Switch
egiga1: mac address changed
not_egiga0: mac address changed
jnl: driver (lke_9.2.0 lke_9.2.0_r256412_b49, LBD=ON) loaded at bf000000
ufsd: module license 'Commercial product' taints kernel.
Disabling lock debugging due to kernel taint
ufsd:: trace mask set to 0000000f
ufsd: driver (lke_9.2.0 lke_9.2.0_r256412_b49, build_host("fsd-linux-bs06b"), acl, ioctl, bdi, sd2(0), fua, bz, tr, rsrc) loaded at bf020000
NTFS support included
exFAT support included
Hfs+/HfsJ support included
optimized: speed
Build_for__WD_Yellowstone_k3.10.39_2015-07-06_lke_9.2.0_r256412_b49

bio: create slab <bio-1> at 1
Btrfs loaded
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
lrwxrwxrwx    1 root     0               17 Jun 27 10:05 /usr/sbin//raid_config -> /usr/sbin/diskmgr
lrwxrwxrwx    1 root     0               17 Jun 27 10:05 /usr/sbin//raid_expand -> /usr/sbin/diskmgr
lrwxrwxrwx    1 root     0               17 Jun 27 10:05 /usr/sbin//raid_expand_disks -> /usr/sbin/diskmgr
lrwxrwxrwx    1 root     0               17 Jun 27 10:05 /usr/sbin//raid_update_info -> /usr/sbin/diskmgr
hardware init
Read PCI register offset 0x18140 = 701000
Read PCI register offset 0x18140 = 701000
Read PCI register offset 0x18140 = 701000
Resetting USB device /dev/bus/usb/003/002
usb 3-1: reset SuperSpeed USB device number 2 using xhci-hcd
usb 3-1: Parent hub missing LPM exit latency info.  Power management will be impacted.
xhci-hcd f10f0000.usb3: xHCI xhci_drop_endpoint called with disabled ep eec6e500
Reset successful
mtd check v1.06.06032015
config mtd type is UBIFS
device = /usr/local/config
Total size     = 12384 Kbytes
Used size     = 228 Kbytes
Free size     = 12156 Kbytes
percentage = 2
/usr/local/config free size is 12447744
** copy config files
*** Copy orion.db from flash ****
cp: can't stat '/usr/local/modules/files/fan_temperature.txt': No such file or directory
*** symlink onbrd.ini from flash ****
/etc/sysinit.d/wdlog: line 13: /etc/system.conf: No such file or directory
** set loopback interface
UBI: attaching mtd6 to ubi1
UBI: scanning is finished
UBI: attached mtd6 (name "reserve1", size 10 MiB) to ubi1
UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
UBI: VID header offset: 2048 (aligned 2048), data offset: 4096
UBI: good PEBs: 80, bad PEBs: 0, corrupted PEBs: 0
UBI: user volume: 1, internal volumes: 1, max. volumes count: 128
UBI: max/mean erase counter: 4/1, WL threshold: 4096, image sequence number: 945740822
UBI: available PEBs: 18, total reserved PEBs: 62, PEBs reserved for bad PEB handling: 24
UBI device numbeUBI: background thread "ubi_bgt1d" started, PID 3213
r 1, total 80 LEBs (10158080 bytes, 9.7 MiB), available 18 LEBs (2285568 bytes, 2.2 MiB), LEB size 126976 bytes (124.0 KiB)
UBIFS: background thread "ubifs_bgt1_0" started, PID 3232
UBIFS: mounted UBI device 1, volume 0, name "reserve"
UBIFS: LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
UBIFS: FS size: 3047424 bytes (2 MiB, 24 LEBs), journal size 1015809 bytes (0 MiB, 6 LEBs)
UBIFS: reserved for root: 143937 bytes (140 KiB)
UBIFS: media format: w4/r0 (latest is w4/r0), UUID D26023B5-AC16-4891-B2DF-4E2F0C89A424, small LPT model
UBIFS: un-mount UBI device 1, volume 0
UBIFS: background thread "ubifs_bgt1_0" stops
UBI: attaching mtd7 to ubi2
UBI: scanning is finished
UBI: attached mtd7 (name "reserve2", size 10 MiB) to ubi2
UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
UBI: VID header offset: 2048 (aligned 2048), data offset: 4096
UBI: good PEBs: 80, bad PEBs: 0, corrupted PEBs: 0
UBI: user volume: 1, internal volumes: 1, max. volumes count: 128
UBI: max/mean erase counter: 3/1, WL threshold: 4096, image sequence number: 211392171
UBI: available PEBs: 6, total reserved PEBs: 74, PEBs reserved for bad PEB handling: 28
UBI: background thread "ubi_bgt2d" started, PID 3247
UBI device number 2, total 80 LEBs (10158080 bytes, 9.7 MiB), available 6 LEBs (761856 bytes, 744.0 KiB), LEB size 126976 bytes (124.0 KiB)
mknod: /dev/mtd7: File exists
UBIFS: background thread "ubifs_bgt2_0" started, PID 3260
UBIFS: mounted UBI device 2, volume 0, name "reserve2"
UBIFS: LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
UBIFS: FS size: 4063232 bytes (3 MiB, 32 LEBs), journal size 1015809 bytes (0 MiB, 6 LEBs)
UBIFS: reserved for root: 191915 bytes (187 KiB)
UBIFS: media format: w4/r0 (latest is w4/r0), UUID DA85EEA8-3B41-440D-BCDF-6D0EC49EAC66, small LPT model
/dev/mtd7 mount ok(ubi)
UBIFS: un-mount UBI device 2, volume 0
UBIFS: background thread "ubifs_bgt2_0" stops
mac1 = 00:90:A9:E5:19:1E
mac2 =egiga0: mac address changed
 00:90:A9:E5:19:1F
lan0:ifconfiegiga1: mac address changed
g egiga0 hw ether 00:90:A9:E5:19:1E
lan0:ifconfig egiga1 hw ethpool #1: pkt_size=1536, buf_size=1600 - 2048 of 2048 buffers added
er 00:90:A9:E5:1egiga0: link up
9:1F
egiga0: started
pool #0: pkt_size=1536, buf_size=1600 - 2048 of 2048 buffers added
egiga1: started
set lan0 speed
set lan1 speed
[wd_read_serial.c:621] Read serial number from flash.
[wd_read_serial.c:160] serial number : WNAG27220406
hidden encryption: 0
old firmware ver:2.30.165.0321.2017
new firmware ver:2.30.165.0321.2017
rm: can't remove '/tmp/fix_wd_config': No such file or directory
NET: Registered protocol family 10
IPv6: ADDRCONF(NETDEV_UP): egiga1: link is not ready
sit: Unknown symbol ip_tunnel_get_stats64 (err 0)
insmod: error inserting '/usr/local/modules/driver/sit.ko': -1 Unknown symbol in module
rm: can't remove '/bin/sysctl': No such file or directory
net.ipv6.conf.default.accept_dad = 2
net.ipv6.conf.egiga0.accept_dad = 2
net.ipv6.conf.default.dad_transmits = 1
net.ipv6.conf.egiga0.dad_transmits = 1
net.ipv6.conf.default.forwarding = 0
net.ipv6.conf.default.accept_redirects = 1
mkdir: can't create directory '/usr/local/etc': File exists
*** execute rc.init.sh
ip.sh bonding {1 restart}
bonding starting ...
insmod /usr/local/modules/driver/bonding.ko mode=1 miimon=500 use_carrier=1 downdelay=1000 updelay=1000
bonding: Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
bonding: MII link monitoring set to 500 ms
8021q: adding VLAN 0 to HW filter on device bond0
IPv6: ADDRCONF(NETDEV_UP): bond0: link is not ready
egiga0: stopped
egiga0: mac address changed
egiga0: link up
egiga0: started
bonding: bond0: enslaving egiga0 as a backup interface with an up link.
egiga1: stopped
egiga1: mac address changed
egiga1: started
bonding: bond0: enslaving egiga1 as a backup interface with a down link.
udhcpc (v1.20.2) started
cat: can't open '/tmp/setip.0': No such file or directory
Sending discover...
killall: crond: no process killed
crond[3509]: crond: crond (busybox 1.20.2) started, log level 8
--2017-06-27 10:05:50--  http://download.wdc.com/nas/WDMyCloudEX4100_HDD_Blacklist.xml
Resolving download.wdc.com... failed: Name or service not known.
wget: unable to resolve host address 'download.wdc.com'
[upnp_nas_xml.c() 348] Can't get IP of bond0
Initializing UPnP Sdk with
        ipaddress = (null) port = 0
Error with UpnpInit -- -208
sh: you need to specify whom to kill
bonding: bond0: link status definitely up for interface egiga0, 1000 Mbps full duplex.
bonding: bond0: making interface egiga0 the new active one.
bonding: bond0: first active interface up!
IPv6: ADDRCONF(NETDEV_CHANGE): bond0: link becomes ready
*** Copy CacheVolume data from flash ****
*** set Time Zone ****
$Usage: apache {start|stop|restart} {web/dav}
Tue Jun 27 10:05:51 CEST 2017
*** get Time from rtc and set it into system ****
rtc: RTC time = 2017/6/27 Tue 10:5:52
Tue Jun 27 12:05:52 CEST 2017
Set Date & time : sntp -K /dev/null -S -r time.windows.com
sntp 4.2.8@1.3265 Fri Jan  9 06:42:54 UTC 2015 (8)
time.windows.com lookup error Name or service not known

Module IPC SERVER Version:(1.00.20090706)

ads=0
created mail daemon thread 0
Sending discover...
Sending select for 192.168.178.43...
POWER ON DEVICE!!
Lease of 192.168.178.43 obtained, lease time 864000
deleting routers
route: SIOCDELRT: No such process
RTNETLINK answers: Operation not supported
RTNETLINK answers: Operation not supported
call load_module network
sh: can't create /sys/module/gpio/parameters/hdd_status: nonexistent directory
cp: can't stat '/usr/local/config/user.log.*': No such file or directory
cp: can't stat '/usr/local/config/wdmcserver.log.*': No such file or directory
cp: can't stat '/usr/local/config/orion_cm.log.*': No such file or directory
cp: can't stat '/usr/local/config/mycloud.log.*': No such file or directory
cp: can't stat '/usr/local/config/wdhwlib.log.*': No such file or directory
mount: mount point /proc/bus/usb does not exist
WD hwlib start..............
Starting system message bus
Starting wdtms
wdtms started
PHY_LAN_NUMBER=2
BOND_ENABLE=1
VLAN0_ENABLE=0
VLAN1_ENABLE=0
--2017-06-27 12:05:55--  http://download.wdc.com/apps/WDMyCloudEX4100/WDMyCloudEX4100.xml
Resolving download.wdc.com... I/O warning : failed to load external entity "/var/www/xml/internal_backup.xml"
cat: can't open '/var/run/traceroute_wd.pid': No such file or directory
ash: you need to specify whom to kill
killall: traceroute: no process killed

 -------------use hwlib instead of fan_control b c-------------
54.186.82.67, 54.201.207.64, 52.24.240.198, ...
Connecting to download.wdc.com|54.186.82.67|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 64114 (63K) [text/xml]
Saving to: '/var/www/xml/app_info.xml'

100%[======================================>] 64,114       140KB/s   in 0.4s

2017-06-27 12:05:56 (140 KB/s) - '/var/www/xml/app_info.xml' saved [64114/64114]

I/O warning : failed to load external entity "/var/www/xml/app_update.xml"
[ERROR] Unable to open (null)
kjournald starting.  Commit interval 5 seconds
EXT3-fs (sda1): using internal journal
EXT3-fs (sda1): recovery complete
EXT3-fs (sda1): mounted filesystem with ordered data mode
restart sysinfod...
sysinfod: full update begin...
sysinfod: disk connected: previous=0xffffffff, now=0x0
--2017-06-27 12:05:56--  http://download.wdc.com/nas/WDMyCloudEX4100_HDD_Blacklist.xml
Resolving download.wdc.com... 52.33.117.19, 52.43.194.123, 52.89.214.250, ...
Connecting to download.wdc.com|52.33.117.19|:80... Set Date & time : sntp -K /dev/null -S -r pool.ntp.org
sntp 4.2.8@1.3265 Fri Jan  9 06:42:54 UTC 2015 (8)
2017-06-27 12:05:57.125200 (-0100) +0.664751 +/- 0.484956 pool.ntp.org 213.95.200.107 s2
NTP Server connected successfully!!!
connected.
HTTP request sent, awaiting response... 404 Not Found
2017-06-27 12:05:58 ERROR 404: Not Found.

waiting : [10]
country=3
lang_path=/usr/local/modules/language
chk_io v1.04.20141112
rtc: system time: 2017/6/27 Tue 10:6:2
setRTCTime
system daemon v1.04.20141211
PIP is disabled, exiting.
Tue Jun 27 12:06:03 CEST 2017 - %W - Communication Manager - startup is disabled, use 'enable' to start process
dev.raid.speed_limit_max = 200000

Please press Enter to activate this console.
sh: operate_auth: not found
killall: chk_hotplug: no process killed
call load_module
### create systemfile ###
### sata_reload_application start ###
Loading iSCSI transport class v2.0-870.
iscsi: registered transport (tcp)
New interface iface0 added
iface0 updated.
New interface iface1 added
iface1 updated.
New interface ifbond added
ifbond updated.
Initializing UPnP Sdk with
        ipaddress = (null) port = 0
UPnP Initialized
        ipaddress= 192.168.178.43 port = 49152
Specifying the webserver root directory -- /etc/upnp
Registering the RootDevice
         with desc_doc_url: http://192.168.178.43:49152/nasdevicedesc.xml
RootDevice Registered
Initializing State Table
State Table Initialized
Starting atopacctd
cannot switch on process accounting: Function not implemented
Starting atop system monitor  atop
atop started
*** APKG Daemon is starting ... ***
sh: you need to specify whom to kill
sh: you need to specify whom to kill
killall: smbd: no process killed
Starting wdnotifier
Rename is FAILE
USE 2nd Rename
Advertisements Sent
wdnotifier started
Tue Jun 27 12:06:09 CEST 2017 /etc/init.d/onbrdnetloccommd - Start
killall: smbd: no process killed
killall: chk_blockip: no process killed
killall: chk_blockip: no process killed
sh: syntax error: unexpected "("
sysinfod: full update begin...
 3821 root      8608 S    avahi-daemon: running [WDMyCloudEX4100.local]
killall: elephantdriveDaemon: no process killed
Setting up docker
mkdir: can't create directory '/mnt/HD/HD_a2/Nas_Prog/_docker': No such file or directory
Loading drivers
Loading /usr/local/modules/driver/nf_conntrack.ko
nf_conntrack version 0.5.0 (16384 buckets, 65536 max)
Loading /usr/local/modules/driver/nf_nat.ko
Loading /usr/local/modules/driver/nf_defrag_ipv4.ko
Loading /usr/local/modules/driver/nf_conntrack_ipv4.ko
Loading /usr/local/modules/driver/nf_nat_ipv4.ko
Loading /usr/local/modules/driver/x_tables.ko
Loading /usr/local/modules/driver/xt_conntrack.ko
Loading /usr/local/modules/driver/xt_addrtype.ko
Loading /usr/local/modules/driver/xt_tcpudp.ko
Loading /usr/local/modules/driver/xt_nat.ko
Loading /usr/local/modules/driver/nf_nat_masquerade_ipv4.ko
insmod: can't read '/usr/local/modules/driver/nf_nat_masquerade_ipv4.ko': No such file or directory
failed to load /usr/local/modules/driver/nf_nat_masquerade_ipv4.ko
Loading /usr/local/modules/driver/ipt_MASQUERADE.ko
Loading /usr/local/modules/driver/ip_tables.ko
ip_tables: (C) 2000-2006 Netfilter Core Team
Loading /usr/local/modules/driver/iptable_filter.ko
Loading /usr/local/modules/driver/iptable_nat.ko
Loading /usr/local/modules/driver/llc.ko
Loading /usr/local/modules/driver/stp.ko
Loading /usr/local/modules/driver/bridge.ko
Bridge firewalling registered
Loading /usr/local/modules/driver/br_netfilter.ko
insmod: can't read '/usr/local/modules/driver/br_netfilter.ko': No such file or directory
failed to load /usr/local/modules/driver/br_netfilter.ko
Setting up cgroup
Get http:///var/run/docker.sock/v1.19/containers/json: dial unix /var/run/docker.sock: no such file or directory. Are you trying to connect to a TLS-enabled daemon without TLS?
wdappmgr_auto_start finished modifying wd apps exit code
Starting Docker
Docker is not setup! Run docker_daemon.sh setup
umount: /mnt/HD/HD_a2/Nas_Prog/_docker/devicemapper: not found
Total RAM: 2084352 KB
Creating /sys/fs/cgroup/memory/docker
Docker quota: 1042176 KB
Set memory quota for docker: 1067188224
/usr/sbin/docker_daemon.sh: line 196: /var/lib/docker/docker.log: No such file or directory
Docker pid 5719
Stopping wdappmgr
wdappmgr is already stopped
Starting wdappmgr
parent exiting!
wdappmgr started
curl: (7) Couldn't connect to server
curl: (7) Couldn't connect to server
curl: (7) Couldn't connect to server
curl: (7) Couldn't connect to server
curl: (7) Couldn't connect to server
country=3
lang_path=/usr/local/modules/language
### sata_reload_application end ###
Create USB dev node
rm: can't remove '/tmp/disk_uuid': No such file or directory
sysinfod: full update begin...
sysinfod: inform: all drives status=No Drives.
dry_total_size:21947
dry_total_size:0
dry_total_size:9124
dry_total_size:10740
dry_total_size:21833
LED_POWER_ON
Re: Debian on WD MyCloud EX 4100
June 27, 2017 04:37AM
saschadd,

Repeat test 3 (with USB). But interrupt serial console and get the listing of envs before boot

printenv
boot

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



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

i am not at the nas box but i did a fw_printenv in the debian boot before the tests.
The following should be the envs set at the moment.
Maybe you can already see a typo or something else that causes the problem.
Will be able to test again this evening.

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_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;
bootdelay=1
cacheShare=no
console=console=ttyS0,115200
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
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
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
vxworks_en=no
yuk_ethaddr=00:00:00:EE:51:81
bootdev=usb
device=0:1
load_initrd_addr=0x2900000
load_image_addr=0x02000000
load_initrd=echo loading uInitrd ...; ext2load $bootdev $device $load_initrd_addr /boot/uInitrd
load_image=echo loading Image ...; ext2load $bootdev $device $load_image_addr /boot/uImage
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)
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
bootcmd_usb=usb start; run usb_set_bootargs; run usb_bootcmd; reset
set_bootargs_stock=setenv bootargs root=/dev/ram console=ttyS0,115200
bootcmd_stock=run set_bootargs_stock; nand read.e 0xa00000 0x500000 0x500000;nand read.e 0xf00000 0xa00000 0x500000;bootm 0xa00000 0xf00000
bootcmd=run bootcmd_usb; run bootcmd_stock; reset
Re: Debian on WD MyCloud EX 4100
June 27, 2017 06:21AM
saschadd,

I know :) you did not have any typo. I forgot that we likely need another build. tld-5 tomorrow.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on WD MyCloud EX 4100
June 27, 2017 08:11AM
saschadd,

Before I build another version.


Repeat test 3 (kwboot with USB attached). Interrupt serial console and get the listing of envs before boot

printenv
boot

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on WD MyCloud EX 4100
June 27, 2017 10:55AM
bodhi,

printenv gives

Marvell>> printenv
CASset=max
MALLOC_len=5
MPmode=SMP
autoload=no
baudrate=115200
boot_order=hd_scr usb_scr mmc_scr hd_img usb_img mmc_img pxe net_img net_scr
bootargs=root=/dev/ram console=ttyS0,115200
bootargs_dflt=$console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel
bootargs_end=:10.4.50.254:255.255.255.0:Armada38x:eth0:none
bootargs_root=root=/dev/nfs rw
bootcmd=nand read.e 0xa00000 0x500000 0x500000;nand read.e 0xf00000 0xa00000 0x500000;bootm 0xa00000 0xf00000
bootcmd_auto=stage_boot $boot_order
bootcmd_fdt=tftpboot 0x2000000 $image_name;tftpboot $fdtaddr $fdtfile;setenv bootargs $console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel; bootz 0x2000000 - $fdtaddr;
bootcmd_fdt_boot=tftpboot 0x2000000 $image_name; setenv bootargs $console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel; bootz 0x2000000 - $fdtaddr;
bootcmd_fdt_edit=tftpboot $fdtaddr $fdtfile; fdt addr $fdtaddr; setenv bootcmd $bootcmd_fdt_boot
bootcmd_lgcy=tftpboot 0x2000000 $image_name; setenv bootargs $bootargs_dflt; bootm 0x2000000;
bootcmd_stock=run set_bootargs_stock; nand read.e 0xa00000 0x500000 0x500000;nand read.e 0xf00000 0xa00000 0x500000;bootm 0xa00000 0xf00000
bootcmd_usb=usb start; run usb_set_bootargs; run usb_bootcmd; reset
bootdelay=1
bootdev=usb
cacheShare=no
console=console=ttyS0,115200
device=0:1
device_partition=0:1
disaMvPnp=no
eeeEnable=no
enaClockGating=no
enaCpuStream=no
enaFPU=yes
enaMonExt=no
enaWrAllo=no
eth1addr=00:50:43: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

Environment size: 4205/524284 bytes
Marvell>>
Re: Debian on WD MyCloud EX 4100
June 27, 2017 12:17PM
saschadd,

The boot command is missing:

bootcmd=run bootcmd_usb; run bootcmd_stock; reset

kwboot again with tld-4. and USB rootfs. Interrupt serial console and

setenv bootcmd 'run bootcmd_usb; run bootcmd_stock; reset'
saveenv
boot

And in Debian, check to see it bootcmd is now correct.
fw_printenv

And then shutdown.

kwboot again with tld-4, interrupt serial console and

printenv bootcmd

See if it was persistent from last saved.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on WD MyCloud EX 4100
June 27, 2017 12:50PM
bodhi Wrote:
-------------------------------------------------------
> And in Debian, check to see it bootcmd is now correct.

fw_printenv bootcmd gives

bootcmd=run bootcmd_usb; run bootcmd_stock; reset


> And then shutdown.
>
> kwboot again with tld-4, interrupt serial console and
>

printenv bootcmd gives

bootcmd=nand read.e 0xa00000 0x500000 0x500000;nand read.e 0xf00000 0xa00000 0x500000;bootm 0xa00000 0xf00000
Re: Debian on WD MyCloud EX 4100
June 27, 2017 01:28PM
> printenv bootcmd gives
>
> bootcmd=nand read.e 0xa00000 0x500000 0x500000;nan
> d read.e 0xf00000 0xa00000 0x500000;bootm 0xa00000
> 0xf00000

Yes. That because it was overwritten by WD stock u-boot code. I'll make another build tonight (PST).

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


kwboot with this tld-5 build, USB rootfs attached. Interrupt serial console and

printenv

When you see
bootcmd=run bootcmd_usb; run bootcmd_stock; reset

then it was read correctly from NAND, so go ahead and

boot

-bodhi
===========================
Forum Wiki
bodhi's corner
Attachments:
open | download - u-boot-a38x-Yellowstone_2014T30p6_bodhi-tld-5-nand-uart.bin (933.6 KB)
Re: Debian on WD MyCloud EX 4100
June 28, 2017 12:21AM
bodhi,

tld5 seems not to be working.
tried round about 20 times with no luck. :(
Re: Debian on WD MyCloud EX 4100
June 28, 2017 12:42AM
I've rebuilt with some debug info.

kwboot with this tld-5 build, USB rootfs attached. Interrupt serial console and

printenv

Please post serial console log until after printenv output.

-bodhi
===========================
Forum Wiki
bodhi's corner
Attachments:
open | download - u-boot-a38x-Yellowstone_2014T30p6_bodhi-tld-5-nand-uart.bin (933.7 KB)
Re: Debian on WD MyCloud EX 4100
June 28, 2017 12:59AM
bodhi,

now kwboot is working.
following output until printenv

./kwboot -f -t -B 115200 /dev/ttyAMA0 -b u-boot-a38x-Yellowstone_2014T30p6_bodhi-tld-5-nand-uart.bin -s 0 -q 1
Sending boot message. Please reboot the target...-▒"▒&T▒▒\▒"3DUfw▒"3DUfw▒"3DUfw▒"3DUfw▒"3DUfw
Sending boot image...
  0 % [......................................................................]
  0 % [......................................................................]
  1 % [......................................................................]
  2 % [......................................................................]
...
 97 % [......................................................................]
 98 % [......................................................................]
 99 % [..................................................]
[Type Ctrl-\ + c to quit]

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


U-Boot 2013.01_v1.06 (Jun 27 2017 - 23:35:35) Marvell version: 2014_T3.0p6 - bodhi-tld-5

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
Populate envs ...

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

NAND:  ID: dcad ,512 MiB
MMC:   mv_sdh: 0
Populate envs from NAND ...
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
Marvell>> printenv bootcmd
bootcmd=nand read.e 0xa00000 0x500000 0x500000;nand read.e 0xf00000 0xa00000 0x500000;bootm 0xa00000 0xf00000
Marvell>> printenv
CASset=max
MALLOC_len=5
MPmode=SMP
autoload=no
baudrate=115200
boot_order=hd_scr usb_scr mmc_scr hd_img usb_img mmc_img pxe net_img net_scr
bootargs=root=/dev/ram console=ttyS0,115200
bootargs_dflt=$console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel
bootargs_end=:10.4.50.254:255.255.255.0:Armada38x:eth0:none
bootargs_root=root=/dev/nfs rw
bootcmd=nand read.e 0xa00000 0x500000 0x500000;nand read.e 0xf00000 0xa00000 0x500000;bootm 0xa00000 0xf00000
bootcmd_auto=stage_boot $boot_order
bootcmd_fdt=tftpboot 0x2000000 $image_name;tftpboot $fdtaddr $fdtfile;setenv bootargs $console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel; bootz 0x2000000 - $fdtaddr;
bootcmd_fdt_boot=tftpboot 0x2000000 $image_name; setenv bootargs $console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel; bootz 0x2000000 - $fdtaddr;
bootcmd_fdt_edit=tftpboot $fdtaddr $fdtfile; fdt addr $fdtaddr; setenv bootcmd $bootcmd_fdt_boot
bootcmd_lgcy=tftpboot 0x2000000 $image_name; setenv bootargs $bootargs_dflt; bootm 0x2000000;
bootcmd_stock=run set_bootargs_stock; nand read.e 0xa00000 0x500000 0x500000;nand read.e 0xf00000 0xa00000 0x500000;bootm 0xa00000 0xf00000
bootcmd_usb=usb start; run usb_set_bootargs; run usb_bootcmd; reset
bootdelay=1
bootdev=usb
cacheShare=no
console=console=ttyS0,115200
device=0:1
device_partition=0:1
disaMvPnp=no
eeeEnable=no
enaClockGating=no
enaCpuStream=no
enaFPU=yes
enaMonExt=no
enaWrAllo=no
eth1addr=00:50:43: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

Environment size: 4205/524284 bytes
Marvell>>
Re: Debian on WD MyCloud EX 4100
June 28, 2017 01:52AM
I see. The envs were populated too early. So bootcmd was still overwritten.

This u-boot is a little too old so I forgot the initialization sequence :) I'll build another version.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on WD MyCloud EX 4100
June 28, 2017 02:03AM
saschadd,

Please do the same test as you just did with this tld-5.

-bodhi
===========================
Forum Wiki
bodhi's corner
Attachments:
open | download - u-boot-a38x-Yellowstone_2014T30p6_bodhi-tld-5-nand-uart.bin (933.7 KB)
Re: Debian on WD MyCloud EX 4100
June 28, 2017 03:26AM
bodhi,

unfortunately the same result.

./kwboot -f -t -B 115200 /dev/ttyAMA0 -b u-boot-a38x-Yellowstone_2014T30p6_bodhi-tld-5-nand-uart.bin -s 0 -q 1
Sending boot message. Please reboot the target...|▒"▒&T▒▒▒"3DUfw▒"3DUf/▒"3DUfw▒"3DUfw▒"3DUfw
Sending boot image...
  0 % [......................................................................]
  0 % [......................................................................]
  1 % [......................................................................]
 ...
 98 % [......................................................................]
 99 % [..................................................]
[Type Ctrl-\ + c to quit]

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


U-Boot 2013.01_v1.06 (Jun 28 2017 - 00:54:18) Marvell version: 2014_T3.0p6 - bodhi-tld-5

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:0x7ff960b0
       BSS:                     0x7ffef654
       Stack:                   0x7f9cdf20
       Heap:                    0x7f9ce000:0x7fece000
       U-Boot Environment:      0x00100000:0x00180000 Address: 0x00100000(NAND)

NAND:  ID: dcad ,512 MiB
MMC:   mv_sdh: 0
Populate envs from NAND ...
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
Marvell>> printenv bootcmd
bootcmd=nand read.e 0xa00000 0x500000 0x500000;nand read.e 0xf00000 0xa00000 0x500000;bootm 0xa00000 0xf00000
Marvell>> printenv
CASset=max
MALLOC_len=5
MPmode=SMP
autoload=no
baudrate=115200
boot_order=hd_scr usb_scr mmc_scr hd_img usb_img mmc_img pxe net_img net_scr
bootargs=root=/dev/ram console=ttyS0,115200
bootargs_dflt=$console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel
bootargs_end=:10.4.50.254:255.255.255.0:Armada38x:eth0:none
bootargs_root=root=/dev/nfs rw
bootcmd=nand read.e 0xa00000 0x500000 0x500000;nand read.e 0xf00000 0xa00000 0x500000;bootm 0xa00000 0xf00000
bootcmd_auto=stage_boot $boot_order
bootcmd_fdt=tftpboot 0x2000000 $image_name;tftpboot $fdtaddr $fdtfile;setenv bootargs $console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel; bootz 0x2000000 - $fdtaddr;
bootcmd_fdt_boot=tftpboot 0x2000000 $image_name; setenv bootargs $console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel; bootz 0x2000000 - $fdtaddr;
bootcmd_fdt_edit=tftpboot $fdtaddr $fdtfile; fdt addr $fdtaddr; setenv bootcmd $bootcmd_fdt_boot
bootcmd_lgcy=tftpboot 0x2000000 $image_name; setenv bootargs $bootargs_dflt; bootm 0x2000000;
bootcmd_stock=run set_bootargs_stock; nand read.e 0xa00000 0x500000 0x500000;nand read.e 0xf00000 0xa00000 0x500000;bootm 0xa00000 0xf00000
bootcmd_usb=usb start; run usb_set_bootargs; run usb_bootcmd; reset
bootdelay=1
bootdev=usb
cacheShare=no
console=console=ttyS0,115200
device=0:1
device_partition=0:1
disaMvPnp=no
eeeEnable=no
enaClockGating=no
enaCpuStream=no
enaFPU=yes
enaMonExt=no
enaWrAllo=no
eth1addr=00:50:43: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

Environment size: 4205/524284 bytes
Marvell>>
Re: Debian on WD MyCloud EX 4100
June 28, 2017 03:37AM
Ok saschadd. I'll be back with a new build in 12hrs or so.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on WD MyCloud EX 4100
June 28, 2017 03:43AM
In the meantine, at serial console

setenv bootcmd 'run bootcmd_usb; run bootcmd_stock; reset'

and then
boot
After it booted into Debian

fw_printenv

This is to confirm that bootcmd was set correctly in Debian, but u-boot overwrote it during boot.

-bodhi
===========================
Forum Wiki
bodhi's corner
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: