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 23, 2017 03:42PM
hmartin,

> Interesting. It's possible, but that would limit W
> D pretty severely in being able to update the boot
> cmd if they ever needed to do that for a firmware
> update.

It is a bug (or perhaps a feature) in this stock u-boot version. They disabled the saveenv command because it would overwrite the kernel image (i.e. bug), or they just don't want users to to be abe to update it (i e. feature), and therefore there is no need to define it correctly. It is OK to have envs in code only, if you want to do so. When the FW is updated, the new u-boot could be updated the same time the kernel is updated (the bootcmd is in the code, too).

>
> Another thought occurred to me: The EX2100 is diff
> erent in some ways to the EX4100, but at least it
> seems on the EX2100 that u-boot envs are saved to
> NAND. Is it possible the EX4100 has extra NOR flas
> h and it's saving u-boot envs to SPI flash?

It's capable to do that. But this stock u-boot version in mtd0 is NAND only.

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

Here is the new patched u-boot. Please kwboot it as before. But don't run saveenv. I like to see the bootlog before we try that.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Attachments:
open | download - u-boot-a38x-Yellowstone_2014T30p6_bodhi-tld-4-nand-uart.bin (933.6 KB)
Re: Debian on WD MyCloud EX 4100
June 24, 2017 07:02AM
Quote
bodhi
It is a bug (or perhaps a feature) in this stock u-boot version. They disabled the saveenv command because it would overwrite the kernel image (i.e. bug), or they just don't want users to to be abe to update it (i e. feature), and therefore there is no need to define it correctly. It is OK to have envs in code only, if you want to do so.

Unbelievably lame.

If you want to store u-boot envs on flash, without corrupting uImage, just modify CONFIG_SPARE_AREA to be 0x200000 and then change CONFIG_ENV_RANGE to be CONFIG_ENV_SIZE * 2.

The default is CONFIG_ENV_SIZE*8, which is 4MB, and at offset 0x300000 that will erase portions of the uImage. Why they erase such a large area when envs are only 0x80000 is beyond me...

This will mean the following:
0x000000 - 0x100000 : u-boot
0x100000 - 0x300000 : nothing
0x300000 - 0x380000 : u-boot envs
0x380000 - 0x500000 : nothing

Rebuild u-boot, boot via kwboot. Change/add some variable and run saveenv.

Then boot into Debian and update /etc/fw_env.config:
/dev/mtd0 0x300000 0x80000 0x20000 4

Then run fw_printenv and watch as you see the stock WD env + your changes go by:
root@debian:~# fw_printenv | less
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; 
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:FF:FF:FF
eth1mtu=1500
eth2addr=00:50:43:FF:FF:FF
eth2mtu=1500
eth3addr=00:50:43:FF:FF:FF
eth3mtu=1500
ethact=egiga0
ethaddr=00:50:43:FF:FF:FF
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=192.168.11.110
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:ff:ff:ff
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=192.168.11.110
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

Stock WD u-boot cannot see these variables, and cannot write to them, but if you flash the nand version of this u-boot to mtd0, you should be fine. (I have not tested this yet)

bodhi, it is not possible to use flash_erase to write modified u-boot-nand.bin to /dev/mtd0. What am I doing wrong?
root@debian:~# dmesg | grep mtd
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/sda1 rootdelay=10 mtdparts=armada-nand:5m(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) earlyprintk=serial
root@debian:~# flash_erase /dev/mtd0 0 4
flash_erase: error!: /dev/mtd0
             error 13 (Permission denied)

Somehow mtd0 is designated as ROM, so can't be written from Debian:
root@debian:~# mtd_debug info /dev/mtd0
mtd.type = MTD_NANDFLASH
mtd.flags = MTD_CAP_ROM
mtd.size = 5242880 (5M)
mtd.erasesize = 131072 (128K)
mtd.writesize = 2048 (2K)
mtd.oobsize = 64 
regions = 0

Ah, it's in the DTB from peacemaker:
partition@00000000 {
    label = "U-Boot";
    reg = <0x00000000 0x00500000>;
    read-only;
};



Edited 4 time(s). Last edit at 06/24/2017 07:24AM by hmartin.
Attachments:
open | download - u-boot-a38x-Yosemite_2014T3_PQ-nand-uart.bin (931.9 KB)
Re: Debian on WD MyCloud EX 4100
June 24, 2017 10:38AM
Quote
hmartin
Stock WD u-boot cannot see these variables, and cannot write to them, but if you flash the nand version of this u-boot to mtd0, you should be fine. (I have not tested this yet)

Tested and working on EX2100. Do not follow these instructions for EX4100!

You must boot with the new DTB (attached) which unlocks mtd0 for writing:
# mtd_debug info /dev/mtd0
mtd.type = MTD_NANDFLASH
mtd.flags = MTD_CAP_NANDFLASH
mtd.size = 5242880 (5M)
mtd.erasesize = 131072 (128K)
mtd.writesize = 2048 (2K)
mtd.oobsize = 64 
regions = 0

Steps:
  1. kwboot a modified u-boot which saves environment variables to 0x300000 (Download from above post)
  2. Inside u-boot, run saveenv
  3. Boot Debian from USB or SATA (see instructions earlier in this thread)
  4. Dump u-boot env to a file (nandread)
  5. Erase u-boot portion of mtd0 (flash_erase)
  6. Flash new u-boot (nandwrite)
  7. Restore environment variables (nandwrite)
  8. Reboot

Dump u-boot env:
# nanddump -s 0x300000 -l 0x80000 -f ubootenv.bin /dev/mtd0

Then erase the old u-boot and flash the new one to NAND:
# flash_erase /dev/mtd0 0 8
# nandwrite -p /dev/mtd0 u-boot-a38x-Yosemite_2014T3_PQ-nand.bin

Restore u-boot env:
# nandwrite -p /dev/mtd0 -s 0x300000 ubootenv.bin

Reboot and hope it works! (if not you can always kwboot to recover)

Debian is able to see all u-boot env parameters. If you create a new parameter inside Debian, you can reboot and see the modified parameter in u-boot. Also works modifying from u-boot and reading in Debian. saveenv doesn't corrupt uImage on NAND.



Edited 4 time(s). Last edit at 06/24/2017 10:47AM by hmartin.
Attachments:
open | download - armada-385-wd.dts (5.1 KB)
open | download - armada-385-wd.dtb (15.7 KB)
open | download - u-boot-a38x-Yosemite_2014T3_PQ-nand.bin (935 KB)
Re: Debian on WD MyCloud EX 4100
June 24, 2017 03:51PM
@hmartin,

> Unbelievably lame.

It's worse than lame :) u-boot patches from many of these boxes (WD, Zyxel, ...), I think, must be from the same contract shop. Either WD don't pay enough, or people who wrote the code want job security :))

And when you see u-boot image that big (~900K), it is a strong indicator that it is bloated with unecessary stuff that nobody bother to trim down.

>
> If you want to store u-boot envs on flash, without
> corrupting uImage, just modify CONFIG_SPARE_ARE
> A
to be 0x200000 and then change CONFIG_ENV
> _RANGE
to be CONFIG_ENV_SIZE * 2.

It is a bad idea to calculate the location when it comes to u-boot. Each box is different, so there is no real good reason to generalize that code. I've changed it to relocate the envs to 0x100000 in my build attached above.

@saschadd,

When you have a chance, kwboot it. If things look good, I'll upload a NAND version for flashing.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on WD MyCloud EX 4100
June 24, 2017 03:55PM
> Debian is able to see all u-boot env parameters. I
> f you create a new parameter inside Debian, you ca
> n reboot and see the modified parameter in u-boot.
> Also works modifying from u-boot and reading in De
> bian. saveenv doesn't corrupt uImage on NAND.

Cool :)

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on WD MyCloud EX 4100
June 25, 2017 07:56AM
Sorry guys was on the road with no access to internet or the nas box.
I am back now and have to read through your post to find what i should do next.

-
happy hacking,

saschadd
Re: Debian on WD MyCloud EX 4100
June 25, 2017 08:55AM
bodhi Wrote:
-------------------------------------------------------
> saschadd,
>
> Here is the new patched u-boot. Please kwboot it a
> s before. But don't run saveenv. I like to see the
> bootlog before we try that.

bodhi,
just tried it. following the bootlog, printenv, dmesg and cat /proc/mtd

./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 % [......................................................................]
....
 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/0
UBIFS: mounted UBI device 0, volume 0, name "reserve2"
UBIFS: mounted read-only
UBIFS: file system size:   4063232 bytes (3968 KiB, 3 MiB, 32 LEBs)
UBIFS: journal size:       1015809 bytes (992 KiB, 0 MiB, 6 LEBs)
UBIFS: media format:       w4/r0 (latest is w4/r0)
UBIFS: default compressor: LZO
UBIFS: reserved for root:  200807 bytes (196 KiB)
Loading file '/mac_addr' to addr 0x02000000 with size 36 (0x00000024)...
Done
lan mac_addr :  00 90 a9 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=/dev/sda1 rootdelay=10 earlyprintk=serial 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)'
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:dc:51:2a
eth1mtu=1500
eth2addr=00:50:43:dc:be:2a
eth2mtu=1500
eth3addr=00:50:43:51:be:dc
eth3mtu=1500
ethact=egiga0
ethaddr=00:50:43:be:51: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:be:dc
nandEcc=nfcConfig=4bitecc
netbsd_en=no
netmask=255.255.255.0
netretry=no
partition=nand0,0
pcieTune=no
pexMode=RC
pxe_files_load=:default.arm-armadaxp-db:default.arm-armadaxp:default.arm
pxefile_addr_r=3100000
ramdisk_addr_r=2880000
rootpath=/srv/nfs/
sata_delay_reset=0
sata_dma_mode=yes
script_addr_r=3000000
script_name=boot.scr
serverip=2.66.66.32
standalone=fsload 0x2000000 $image_name;setenv bootargs $console $nandEcc $mtdparts root=/dev/mtdblock0 rw ip=$ipaddr:$serverip$bootargs_end; bootm 0x2000000;
stderr=serial
stdin=serial
stdout=serial
usb0Mode=host
usbActive=0
usbType=3
usb_bootcmd=echo Booting from USB ...; setenv fdt_skip_update yes; usb start; run load_image; run load_initrd ; run usb_set_bootargs; bootm $load_image_addr $load_initrd_addr
usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=/dev/sda1 rootdelay=10 earlyprintk=serial 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)
vxworks_en=no
yuk_ethaddr=00:00:00:EE:51:81

Environment size: 3988/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=/dev/sda1 rootdelay=10 earlyprintk=serial 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)
[    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.019059] Console: colour dummy device 80x30
[    0.023573] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[    0.033977] pid_max: default: 32768 minimum: 301
[    0.038731] Security Framework initialized
[    0.042925] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.049598] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.057099] CPU: Testing write buffer coherency: ok
[    0.062170] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.067909] Setting up static identity map for 0x100000 - 0x100058
[    0.074212] mvebu-soc-id: MVEBU SoC ID=0x6828, Rev=0x4
[    0.079472] mvebu-pmsu: Initializing Power Management Service Unit
[    0.283913] Booting CPU 1
[    0.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.307122] devtmpfs: initialized
[    0.312450] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.320397] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.330324] prandom: seed boundary self test passed
[    0.336947] prandom: 100 self tests passed
[    0.341107] pinctrl core: initialized pinctrl subsystem
[    0.347021] NET: Registered protocol family 16
[    0.352070] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.393869] cpuidle: using governor ladder
[    0.423866] cpuidle: using governor menu
[    0.427933] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.436001] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.441982] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.450137] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.504839] vgaarb: loaded
[    0.507851] SCSI subsystem initialized
[    0.512071] usbcore: registered new interface driver usbfs
[    0.517702] usbcore: registered new interface driver hub
[    0.523136] usbcore: registered new device driver usb
[    0.528458] media: Linux media interface: v0.10
[    0.533094] Linux video capture interface: v2.00
[    0.538595] clocksource: Switched to clocksource armada_370_xp_clocksource
[    0.570007] VFS: Disk quotas dquot_6.6.0
[    0.574035] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.587877] NET: Registered protocol family 2
[    0.592696] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.599844] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.606395] TCP: Hash tables configured (established 8192 bind 8192)
[    0.612863] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.618874] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.625380] NET: Registered protocol family 1
[    0.630063] RPC: Registered named UNIX socket transport module.
[    0.636039] RPC: Registered udp transport module.
[    0.640815] RPC: Registered tcp transport module.
[    0.645580] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.652203] Unpacking initramfs...
[    0.859706] Freeing initrd memory: 6068K (c2900000 - c2eed000)
[    0.865681] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.872480] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.881632] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.887836] audit: initializing netlink subsys (disabled)
[    0.893349] audit: type=2000 audit(0.880:1): initialized
[    0.899129] Initialise system trusted keyrings
[    0.903779] workingset: timestamp_bits=30 max_order=19 bucket_order=0
[    0.910358] zbud: loaded
[    0.913422] NFS: Registering the id_resolver key type
[    0.918541] Key type id_resolver registered
[    0.922804] Key type id_legacy registered
[    0.926884] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.933646] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.940194] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.947583] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.954189] orangefs_init: module version upstream loaded
[    0.961474] Key type asymmetric registered
[    0.965636] Asymmetric key parser 'x509' registered
[    0.970612] bounce: pool size: 64 pages
[    0.974584] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.982041] io scheduler noop registered
[    0.986028] io scheduler deadline registered
[    0.990382] io scheduler cfq registered (default)
[    0.995950] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    1.004374] mvebu-pcie soc:pcie-controller: PCI host bridge to bus 0000:00
[    1.011319] 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.030504] PCI: bus0: Fast back to back transfers disabled
[    1.036140] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.044207] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.052372] 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.074092] mv_xor f1060800.xor: Marvell shared XOR driver
[    1.138999] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.146599] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.208994] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.259398] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.267048] console [ttyS0] disabled
[    1.290778] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 22, base_baud = 12500000) is a 16550A
[    1.299811] console [ttyS0] enabled
[    1.299811] console [ttyS0] enabled
[    1.306898] bootconsole [earlycon0] disabled
[    1.306898] bootconsole [earlycon0] disabled
[    1.316499] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.325607] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.335153] scsi host0: ahci-mvebu
[    1.338866] scsi host1: ahci-mvebu
[    1.342471] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 42
[    1.350438] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 42
[    1.358520] ahci-mvebu f10e0000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.367620] ahci-mvebu f10e0000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.376991] scsi host2: ahci-mvebu
[    1.380638] scsi host3: ahci-mvebu
[    1.384193] ata3: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x100 irq 43
[    1.392157] ata4: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x180 irq 43
[    1.400578] pxa3xx-nand f10d0000.flash: This platform can't do DMA on this device
[    1.408433] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xdc
[    1.414824] nand: Hynix H27U4G8F2DTR-BC
[    1.418685] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.426289] pxa3xx-nand f10d0000.flash: ECC strength 16, ECC step size 2048
[    1.433482] Bad block table found at page 262080, version 0x01
[    1.439674] Bad block table found at page 262016, version 0x01
[    1.445703] nand_read_bbt: bad block at 0x00000dcc0000
[    1.450871] nand_read_bbt: bad block at 0x00000fb00000
[    1.456032] nand_read_bbt: bad block at 0x000012180000
[    1.461198] nand_read_bbt: bad block at 0x0000139a0000
[    1.466359] nand_read_bbt: bad block at 0x000017880000
[    1.471525] nand_read_bbt: bad block at 0x0000178a0000
[    1.476685] nand_read_bbt: bad block at 0x00001a640000
[    1.481853] nand_read_bbt: bad block at 0x00001e9c0000
[    1.487057] 8 ofpart partitions found on MTD device pxa3xx_nand-0
[    1.493183] Creating 8 MTD partitions on "pxa3xx_nand-0":
[    1.498612] 0x000000000000-0x000000500000 : "U-Boot"
[    1.514282] 0x000000500000-0x000000f00000 : "uImage"
[    1.519910] 0x000000a00000-0x000001900000 : "uRamdisk"
[    1.535701] 0x000000f00000-0x00001d700000 : "image.cfs"
[    1.553276] 0x00001c800000-0x000039f00000 : "rescue_fw"
[    1.558525] mtd: partition "rescue_fw" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x3800000
[    1.580072] 0x00001d700000-0x00003c200000 : "config"
[    1.585059] mtd: partition "config" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x2900000
[    1.606295] 0x00001eb00000-0x00003e000000 : "reserve1"
[    1.611467] mtd: partition "reserve1" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x1500000
[    1.632813] 0x00001f500000-0x00003f400000 : "reserve2"
[    1.637974] mtd: partition "reserve2" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0xb00000
[    1.659768] m25p80 spi0.0: unrecognized JEDEC id bytes: ff, ff, ff
[    1.666435] libphy: Fixed MDIO Bus: probed
[    1.670841] libphy: mdio_driver_register: mv88e6085
[    1.675875] libphy: orion_mdio_bus: probed
[    1.685637] mvneta_bm f10c8000.bm: Buffer Manager for network controller enabled
[    1.689862] ata1: SATA link down (SStatus 0 SControl 300)
[    1.699869] ata2: SATA link down (SStatus 0 SControl 300)
[    1.700573] mvneta f1070000.ethernet eth0: Using random mac address 66:39:b8:ef:61:86
[    1.706550] mvneta f1030000.ethernet eth1: Using random mac address 2e:9f:5d:c3:69:fb
[    1.706801] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.706814] ehci-pci: EHCI PCI platform driver
[    1.706886] ehci-orion: EHCI orion driver
[    1.706984] orion-ehci f1058000.usb: EHCI Host Controller
[    1.706998] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    1.707051] orion-ehci f1058000.usb: irq 38, io mem 0xf1058000
[    1.736439] ata3: SATA link down (SStatus 0 SControl 300)
[    1.738607] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    1.738734] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.738738] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.738741] usb usb1: Product: EHCI Host Controller
[    1.738743] usb usb1: Manufacturer: Linux 4.9.0-mvebu-tld-12 ehci_hcd
[    1.738746] usb usb1: SerialNumber: f1058000.usb
[    1.741963] ata4: SATA link down (SStatus 0 SControl 300)
[    1.742137] hub 1-0:1.0: USB hub found
[    1.742181] hub 1-0:1.0: 1 port detected
[    1.742635] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.742648] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    1.742720] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.742744] xhci-hcd f10f0000.usb3: irq 46, io mem 0xf10f0000
[    1.742896] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    1.742900] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.742903] usb usb2: Product: xHCI Host Controller
[    1.742905] usb usb2: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.742908] usb usb2: SerialNumber: f10f0000.usb3
[    1.749795] hub 2-0:1.0: USB hub found
[    1.749815] hub 2-0:1.0: 1 port detected
[    1.749983] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.749991] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
[    1.750054] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.750130] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    1.750134] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.750136] usb usb3: Product: xHCI Host Controller
[    1.750139] usb usb3: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.750141] usb usb3: SerialNumber: f10f0000.usb3
[    1.755738] hub 3-0:1.0: USB hub found
[    1.755757] hub 3-0:1.0: 1 port detected
[    1.755983] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.755994] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    1.756057] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.756079] xhci-hcd f10f8000.usb3: irq 47, io mem 0xf10f8000
[    1.756176] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002
[    1.756179] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.756182] usb usb4: Product: xHCI Host Controller
[    1.756185] usb usb4: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.756187] usb usb4: SerialNumber: f10f8000.usb3
[    1.761224] hub 4-0:1.0: USB hub found
[    1.761270] hub 4-0:1.0: 1 port detected
[    1.761435] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.761443] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5
[    1.761494] usb usb5: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.761564] usb usb5: New USB device found, idVendor=1d6b, idProduct=0003
[    1.761568] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.761570] usb usb5: Product: xHCI Host Controller
[    1.761573] usb usb5: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.761575] usb usb5: SerialNumber: f10f8000.usb3
[    1.767268] hub 5-0:1.0: USB hub found
[    1.767306] hub 5-0:1.0: 1 port detected
[    1.767562] usbcore: registered new interface driver usblp
[    1.767632] usbcore: registered new interface driver usb-storage
[    1.781283] mousedev: PS/2 mouse device common for all mice
[    1.786244] armada38x-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[    1.786388] i2c /dev entries driver
[    1.816043] orion_wdt: Initial timeout 171 sec
[    1.817460] marvell-cesa f1090000.crypto: CESA device successfully registered
[    1.817562] hidraw: raw HID events driver (C) Jiri Kosina
[    1.823689] usbcore: registered new interface driver usbhid
[    1.823690] usbhid: USB HID core driver
[    1.823794] drop_monitor: Initializing network drop monitor service
[    1.823825] Netfilter messages via NETLINK v0.30.
[    1.823835] ip_set: protocol 6
[    1.844870] NET: Registered protocol family 10
[    1.857105] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    1.857789] NET: Registered protocol family 17
[    1.857898] 8021q: 802.1Q VLAN Support v1.8
[    1.857920] Key type dns_resolver registered
[    1.858004] ThumbEE CPU extension supported.
[    1.858010] Registering SWP/SWPB emulation handler
[    1.872315] registered taskstats version 1
[    1.872318] Loading compiled-in X.509 certificates
[    1.872349] zswap: loaded using pool lzo/zbud
[    1.969573] Key type big_key registered
[    1.993058] Key type encrypted registered
[    2.013611] armada38x-rtc f10a3800.rtc: setting system clock to 2017-06-25 13:46:54 UTC (1498398414)
[    2.018774] usb 3-1: new SuperSpeed USB device number 2 using xhci-hcd
[    2.050181] usb 3-1: New USB device found, idVendor=045b, idProduct=0210
[    2.050185] usb 3-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.052417] hub 3-1:1.0: USB hub found
[    2.052658] hub 3-1:1.0: 4 ports detected
[    2.178609] usb 2-1: new high-speed USB device number 2 using xhci-hcd
[    2.236974] Freeing unused kernel memory: 1024K (c0c00000 - c0d00000)
Loading, please wait...
[    2.275370] systemd-udevd[1350]: starting version 215
[    2.281387] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    2.348889] usb 2-1: New USB device found, idVendor=045b, idProduct=0209
[    2.355626] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.368073] hub 2-1:1.0: USB hub found
[    2.374190] hub 2-1:1.0: 4 ports detected
[    2.698611] usb 2-1.3: new high-speed USB device number 3 using xhci-hcd
[    2.829240] usb 2-1.3: New USB device found, idVendor=0781, idProduct=5571
[    2.836146] usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.843500] usb 2-1.3: Product: Cruzer Fit
[    2.847613] usb 2-1.3: Manufacturer: SanDisk
[    2.851907] usb 2-1.3: SerialNumber: 4C530302071223122304
[    2.858074] usb-storage 2-1.3:1.0: USB Mass Storage device detected
[    2.864515] scsi host4: usb-storage 2-1.3:1.0
[    2.870595] usbcore: registered new interface driver uas
[    3.929131] scsi 4:0:0:0: Direct-Access     SanDisk  Cruzer Fit       1.00 PQ: 0 ANSI: 6
[    3.939574] sd 4:0:0:0: [sda] 61489152 512-byte logical blocks: (31.5 GB/29.3 GiB)
[    3.947718] sd 4:0:0:0: Attached scsi generic sg0 type 0
[    3.953247] sd 4:0:0:0: [sda] Write Protect is off
[    3.958483] sd 4:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    3.970690]  sda: sda1
[    3.974604] sd 4:0:0:0: [sda] Attached SCSI removable disk
[    4.013220] 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.643590] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   17.652660] EXT4-fs (sda1): INFO: recovery required on readonly filesystem
[   17.659579] EXT4-fs (sda1): write access will be enabled during recovery
[   17.700148] EXT4-fs (sda1): recovery complete
[   17.707010] 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.477363] 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.316251] EXT4-fs (sda1): re-mounted. Opts: (null)
[....] Checking root file system...fsck from util-linux 2.25.2
rootfs: clean, 34218/1925120 files, 631631/7685888 blocks
done.
[   19.432627] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[ ok ] Activating lvm and md swap...done.
[....] Checking file systems...fsck from util-linux 2.25.2
done.
[ ok ] Cleaning up temporary files... /tmp.
[ ok ] Mounting local filesystems...done.
[ ok ] Activating swapfile swap...done.
[ ok ] Cleaning up temporary files....
[ ok ] Setting kernel variables ...done.
[   20.489004] 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:39:b8:ef:61:86
Sending on   LPF/eth0/66:39:b8:ef:61:86
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 14
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 20
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 19
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
done.
[ ok ] Starting rpcbind daemon....
[   81.608958] random: crng init done
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
2499 (syslogd)
. ok
[ ok ] Starting periodic command scheduler: cron.
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[ ok ] Starting NTP server: ntpd.
[ ok ] Starting system message bus: dbus.
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
2500 (klogd)
. ok

Debian GNU/Linux 8 debian ttyS0

debian login: root
Password:
Last login: Fri Jun 23 01:15: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
 06:50:24 up 3 min,  1 user,  load average: 0.00, 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=/dev/sda1 rootdelay=10 earlyprintk=serial 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)
[    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.019059] Console: colour dummy device 80x30
[    0.023573] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[    0.033977] pid_max: default: 32768 minimum: 301
[    0.038731] Security Framework initialized
[    0.042925] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.049598] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.057099] CPU: Testing write buffer coherency: ok
[    0.062170] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.067909] Setting up static identity map for 0x100000 - 0x100058
[    0.074212] mvebu-soc-id: MVEBU SoC ID=0x6828, Rev=0x4
[    0.079472] mvebu-pmsu: Initializing Power Management Service Unit
[    0.283913] Booting CPU 1
[    0.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.307122] devtmpfs: initialized
[    0.312450] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.320397] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.330324] prandom: seed boundary self test passed
[    0.336947] prandom: 100 self tests passed
[    0.341107] pinctrl core: initialized pinctrl subsystem
[    0.347021] NET: Registered protocol family 16
[    0.352070] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.393869] cpuidle: using governor ladder
[    0.423866] cpuidle: using governor menu
[    0.427933] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.436001] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.441982] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.450137] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.504839] vgaarb: loaded
[    0.507851] SCSI subsystem initialized
[    0.511803] libata version 3.00 loaded.
[    0.512071] usbcore: registered new interface driver usbfs
[    0.517702] usbcore: registered new interface driver hub
[    0.523136] usbcore: registered new device driver usb
[    0.528458] media: Linux media interface: v0.10
[    0.533094] Linux video capture interface: v2.00
[    0.538595] clocksource: Switched to clocksource armada_370_xp_clocksource
[    0.570007] VFS: Disk quotas dquot_6.6.0
[    0.574035] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.587877] NET: Registered protocol family 2
[    0.592696] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.599844] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.606395] TCP: Hash tables configured (established 8192 bind 8192)
[    0.612863] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.618874] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.625380] NET: Registered protocol family 1
[    0.630063] RPC: Registered named UNIX socket transport module.
[    0.636039] RPC: Registered udp transport module.
[    0.640815] RPC: Registered tcp transport module.
[    0.645580] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.652095] PCI: CLS 0 bytes, default 64
[    0.652203] Unpacking initramfs...
[    0.859706] Freeing initrd memory: 6068K (c2900000 - c2eed000)
[    0.865681] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.872480] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.881632] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.887836] audit: initializing netlink subsys (disabled)
[    0.893349] audit: type=2000 audit(0.880:1): initialized
[    0.899129] Initialise system trusted keyrings
[    0.903779] workingset: timestamp_bits=30 max_order=19 bucket_order=0
[    0.910358] zbud: loaded
[    0.913422] NFS: Registering the id_resolver key type
[    0.918541] Key type id_resolver registered
[    0.922804] Key type id_legacy registered
[    0.926884] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.933646] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.940194] jffs2: version 2.2. (NAND) (SUMMARY)  \xffffffc2\xffffffa9 2001-2006 Red Hat, Inc.
[    0.947583] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.954189] orangefs_init: module version upstream loaded
[    0.961474] Key type asymmetric registered
[    0.965636] Asymmetric key parser 'x509' registered
[    0.970612] bounce: pool size: 64 pages
[    0.974584] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.982041] io scheduler noop registered
[    0.986028] io scheduler deadline registered
[    0.990382] io scheduler cfq registered (default)
[    0.995950] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    1.004374] mvebu-pcie soc:pcie-controller: PCI host bridge to bus 0000:00
[    1.011319] 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.030127] pci_bus 0000:00: scanning bus
[    1.030148] pci 0000:00:01.0: [11ab:6828] type 01 class 0x060400
[    1.030175] pci 0000:00:01.0: calling pci_fixup_ide_bases+0x0/0x3c
[    1.030336] pci 0000:00:02.0: [11ab:6828] type 01 class 0x060400
[    1.030355] pci 0000:00:02.0: calling pci_fixup_ide_bases+0x0/0x3c
[    1.030496] pci_bus 0000:00: fixups for bus
[    1.030504] PCI: bus0: Fast back to back transfers disabled
[    1.036136] pci 0000:00:01.0: scanning [bus 00-00] behind bridge, pass 0
[    1.036140] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.044203] pci 0000:00:02.0: scanning [bus 00-00] behind bridge, pass 0
[    1.044207] 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.052369] pci_bus 0000:01: fixups for bus
[    1.052372] 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.063575] pci_bus 0000:02: bus scan returning with max=02
[    1.063580] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    1.063585] pci_bus 0000:00: bus scan returning with max=02
[    1.063591] pci 0000:00:01.0: fixup irq: got 0
[    1.063595] pci 0000:00:01.0: assigning IRQ 00
[    1.063599] pci 0000:00:02.0: fixup irq: got 0
[    1.063603] 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.073711] pcieport 0000:00:01.0: enabling bus mastering
[    1.073745] pcieport 0000:00:02.0: enabling bus mastering
[    1.074092] mv_xor f1060800.xor: Marvell shared XOR driver
[    1.138999] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.146599] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.208994] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.259398] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.267048] console [ttyS0] disabled
[    1.290778] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 22, base_baud = 12500000) is a 16550A
[    1.299811] console [ttyS0] enabled
[    1.306898] bootconsole [earlycon0] disabled
[    1.316499] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.325607] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.335153] scsi host0: ahci-mvebu
[    1.338866] scsi host1: ahci-mvebu
[    1.342471] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 42
[    1.350438] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 42
[    1.358520] ahci-mvebu f10e0000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.367620] ahci-mvebu f10e0000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.376991] scsi host2: ahci-mvebu
[    1.380638] scsi host3: ahci-mvebu
[    1.384193] ata3: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x100 irq 43
[    1.392157] ata4: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x180 irq 43
[    1.400578] pxa3xx-nand f10d0000.flash: This platform can't do DMA on this device
[    1.408433] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xdc
[    1.414824] nand: Hynix H27U4G8F2DTR-BC
[    1.418685] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.426289] pxa3xx-nand f10d0000.flash: ECC strength 16, ECC step size 2048
[    1.433482] Bad block table found at page 262080, version 0x01
[    1.439674] Bad block table found at page 262016, version 0x01
[    1.445703] nand_read_bbt: bad block at 0x00000dcc0000
[    1.450871] nand_read_bbt: bad block at 0x00000fb00000
[    1.456032] nand_read_bbt: bad block at 0x000012180000
[    1.461198] nand_read_bbt: bad block at 0x0000139a0000
[    1.466359] nand_read_bbt: bad block at 0x000017880000
[    1.471525] nand_read_bbt: bad block at 0x0000178a0000
[    1.476685] nand_read_bbt: bad block at 0x00001a640000
[    1.481853] nand_read_bbt: bad block at 0x00001e9c0000
[    1.487057] 8 ofpart partitions found on MTD device pxa3xx_nand-0
[    1.493183] Creating 8 MTD partitions on "pxa3xx_nand-0":
[    1.498612] 0x000000000000-0x000000500000 : "U-Boot"
[    1.514282] 0x000000500000-0x000000f00000 : "uImage"
[    1.519910] 0x000000a00000-0x000001900000 : "uRamdisk"
[    1.535701] 0x000000f00000-0x00001d700000 : "image.cfs"
[    1.553276] 0x00001c800000-0x000039f00000 : "rescue_fw"
[    1.558525] mtd: partition "rescue_fw" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x3800000
[    1.580072] 0x00001d700000-0x00003c200000 : "config"
[    1.585059] mtd: partition "config" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x2900000
[    1.606295] 0x00001eb00000-0x00003e000000 : "reserve1"
[    1.611467] mtd: partition "reserve1" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x1500000
[    1.632813] 0x00001f500000-0x00003f400000 : "reserve2"
[    1.637974] mtd: partition "reserve2" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0xb00000
[    1.659768] m25p80 spi0.0: unrecognized JEDEC id bytes: ff, ff, ff
[    1.666435] libphy: Fixed MDIO Bus: probed
[    1.670841] libphy: mdio_driver_register: mv88e6085
[    1.675875] libphy: orion_mdio_bus: probed
[    1.685637] mvneta_bm f10c8000.bm: Buffer Manager for network controller enabled
[    1.689862] ata1: SATA link down (SStatus 0 SControl 300)
[    1.699869] ata2: SATA link down (SStatus 0 SControl 300)
[    1.700573] mvneta f1070000.ethernet eth0: Using random mac address 66:39:b8:ef:61:86
[    1.706550] mvneta f1030000.ethernet eth1: Using random mac address 2e:9f:5d:c3:69:fb
[    1.706801] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.706814] ehci-pci: EHCI PCI platform driver
[    1.706886] ehci-orion: EHCI orion driver
[    1.706984] orion-ehci f1058000.usb: EHCI Host Controller
[    1.706998] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    1.707051] orion-ehci f1058000.usb: irq 38, io mem 0xf1058000
[    1.736439] ata3: SATA link down (SStatus 0 SControl 300)
[    1.738607] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    1.738734] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.738738] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.738741] usb usb1: Product: EHCI Host Controller
[    1.738743] usb usb1: Manufacturer: Linux 4.9.0-mvebu-tld-12 ehci_hcd
[    1.738746] usb usb1: SerialNumber: f1058000.usb
[    1.741963] ata4: SATA link down (SStatus 0 SControl 300)
[    1.742137] hub 1-0:1.0: USB hub found
[    1.742181] hub 1-0:1.0: 1 port detected
[    1.742635] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.742648] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    1.742720] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.742744] xhci-hcd f10f0000.usb3: irq 46, io mem 0xf10f0000
[    1.742896] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    1.742900] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.742903] usb usb2: Product: xHCI Host Controller
[    1.742905] usb usb2: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.742908] usb usb2: SerialNumber: f10f0000.usb3
[    1.749795] hub 2-0:1.0: USB hub found
[    1.749815] hub 2-0:1.0: 1 port detected
[    1.749983] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.749991] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
[    1.750054] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.750130] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    1.750134] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.750136] usb usb3: Product: xHCI Host Controller
[    1.750139] usb usb3: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.750141] usb usb3: SerialNumber: f10f0000.usb3
[    1.755738] hub 3-0:1.0: USB hub found
[    1.755757] hub 3-0:1.0: 1 port detected
[    1.755983] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.755994] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    1.756057] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.756079] xhci-hcd f10f8000.usb3: irq 47, io mem 0xf10f8000
[    1.756176] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002
[    1.756179] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.756182] usb usb4: Product: xHCI Host Controller
[    1.756185] usb usb4: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.756187] usb usb4: SerialNumber: f10f8000.usb3
[    1.761224] hub 4-0:1.0: USB hub found
[    1.761270] hub 4-0:1.0: 1 port detected
[    1.761435] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.761443] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5
[    1.761494] usb usb5: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.761564] usb usb5: New USB device found, idVendor=1d6b, idProduct=0003
[    1.761568] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.761570] usb usb5: Product: xHCI Host Controller
[    1.761573] usb usb5: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.761575] usb usb5: SerialNumber: f10f8000.usb3
[    1.767268] hub 5-0:1.0: USB hub found
[    1.767306] hub 5-0:1.0: 1 port detected
[    1.767562] usbcore: registered new interface driver usblp
[    1.767632] usbcore: registered new interface driver usb-storage
[    1.781283] mousedev: PS/2 mouse device common for all mice
[    1.786244] armada38x-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[    1.786388] i2c /dev entries driver
[    1.816043] orion_wdt: Initial timeout 171 sec
[    1.817460] marvell-cesa f1090000.crypto: CESA device successfully registered
[    1.817562] hidraw: raw HID events driver (C) Jiri Kosina
[    1.823689] usbcore: registered new interface driver usbhid
[    1.823690] usbhid: USB HID core driver
[    1.823794] drop_monitor: Initializing network drop monitor service
[    1.823825] Netfilter messages via NETLINK v0.30.
[    1.823835] ip_set: protocol 6
[    1.844870] NET: Registered protocol family 10
[    1.857105] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    1.857789] NET: Registered protocol family 17
[    1.857898] 8021q: 802.1Q VLAN Support v1.8
[    1.857920] Key type dns_resolver registered
[    1.858004] ThumbEE CPU extension supported.
[    1.858010] Registering SWP/SWPB emulation handler
[    1.872315] registered taskstats version 1
[    1.872318] Loading compiled-in X.509 certificates
[    1.872349] zswap: loaded using pool lzo/zbud
[    1.969573] Key type big_key registered
[    1.993058] Key type encrypted registered
[    2.013611] armada38x-rtc f10a3800.rtc: setting system clock to 2017-06-25 13:46:54 UTC (1498398414)
[    2.013691] PM: Hibernation image not present or could not be loaded.
[    2.018774] usb 3-1: new SuperSpeed USB device number 2 using xhci-hcd
[    2.050181] usb 3-1: New USB device found, idVendor=045b, idProduct=0210
[    2.050185] usb 3-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.052417] hub 3-1:1.0: USB hub found
[    2.052658] hub 3-1:1.0: 4 ports detected
[    2.178609] usb 2-1: new high-speed USB device number 2 using xhci-hcd
[    2.236974] Freeing unused kernel memory: 1024K (c0c00000 - c0d00000)
[    2.275370] systemd-udevd[1350]: starting version 215
[    2.281387] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    2.348889] usb 2-1: New USB device found, idVendor=045b, idProduct=0209
[    2.355626] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.368073] hub 2-1:1.0: USB hub found
[    2.374190] hub 2-1:1.0: 4 ports detected
[    2.698611] usb 2-1.3: new high-speed USB device number 3 using xhci-hcd
[    2.829240] usb 2-1.3: New USB device found, idVendor=0781, idProduct=5571
[    2.836146] usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.843500] usb 2-1.3: Product: Cruzer Fit
[    2.847613] usb 2-1.3: Manufacturer: SanDisk
[    2.851907] usb 2-1.3: SerialNumber: 4C530302071223122304
[    2.858074] usb-storage 2-1.3:1.0: USB Mass Storage device detected
[    2.864515] scsi host4: usb-storage 2-1.3:1.0
[    2.870595] usbcore: registered new interface driver uas
[    3.929131] scsi 4:0:0:0: Direct-Access     SanDisk  Cruzer Fit       1.00 PQ: 0 ANSI: 6
[    3.939574] sd 4:0:0:0: [sda] 61489152 512-byte logical blocks: (31.5 GB/29.3 GiB)
[    3.947718] sd 4:0:0:0: Attached scsi generic sg0 type 0
[    3.953247] sd 4:0:0:0: [sda] Write Protect is off
[    3.958061] sd 4:0:0:0: [sda] Mode Sense: 43 00 00 00
[    3.958483] sd 4:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    3.970690]  sda: sda1
[    3.974604] sd 4:0:0:0: [sda] Attached SCSI removable disk
[    4.013220] random: fast init done
[   17.643590] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   17.652660] EXT4-fs (sda1): INFO: recovery required on readonly filesystem
[   17.659579] EXT4-fs (sda1): write access will be enabled during recovery
[   17.700148] EXT4-fs (sda1): recovery complete
[   17.707010] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[   18.477363] systemd-udevd[1557]: starting version 215
[   19.316251] EXT4-fs (sda1): re-mounted. Opts: (null)
[   19.432627] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[   20.489004] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   81.608958] 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:~#
Re: Debian on WD MyCloud EX 4100
June 25, 2017 04:30PM
saschadd,

It is good to try saveenv now. It will only touch mtd0 unused area. So quite safe.


However, there is some wrong definition that we should look at. This does not affect u-boot, but nevertheless wrong in other parts.

[    1.487057] 8 ofpart partitions found on MTD device pxa3xx_nand-0
[    1.493183] Creating 8 MTD partitions on "pxa3xx_nand-0":
[    1.498612] 0x000000000000-0x000000500000 : "U-Boot"
[    1.514282] 0x000000500000-0x000000f00000 : "uImage"
[    1.519910] 0x000000a00000-0x000001900000 : "uRamdisk"
[    1.535701] 0x000000f00000-0x00001d700000 : "image.cfs"
[    1.553276] 0x00001c800000-0x000039f00000 : "rescue_fw"
[    1.558525] mtd: partition "rescue_fw" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x3800000
[    1.580072] 0x00001d700000-0x00003c200000 : "config"
[    1.585059] mtd: partition "config" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x2900000
[    1.606295] 0x00001eb00000-0x00003e000000 : "reserve1"
[    1.611467] mtd: partition "reserve1" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x1500000
[    1.632813] 0x00001f500000-0x00003f400000 : "reserve2"
[    1.637974] mtd: partition "reserve2" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0xb00000

dmesg showed the wrong bootargs.

[    0.000000] Kernel command line:  console=ttyS0,115200 root=/dev/sda1 rootdelay=10 earlyprintk=serial 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)

So let's try this:

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)'
setenv usb_bootcmd 'echo Booting from USB ...; setenv fdt_skip_update yes; usb start; run load_image; run load_initrd ; run usb_set_bootargs; bootm $load_image_addr $load_initrd_addr'
setenv bootcmd_usb 'usb start; run usb_set_bootargs; run usb_bootcmd; reset'
printenv
boot

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



Edited 1 time(s). Last edit at 06/25/2017 04:31PM by bodhi.
Re: Debian on WD MyCloud EX 4100
June 25, 2017 04:56PM
bodhi,

just a quick try before i have to go to bed.
unfortunaly this boots to stock firmware

./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/0
UBIFS: mounted UBI device 0, volume 0, name "reserve2"
UBIFS: mounted read-only
UBIFS: file system size:   4063232 bytes (3968 KiB, 3 MiB, 32 LEBs)
UBIFS: journal size:       1015809 bytes (992 KiB, 0 MiB, 6 LEBs)
UBIFS: media format:       w4/r0 (latest is w4/r0)
UBIFS: default compressor: LZO
UBIFS: reserved for root:  200807 bytes (196 KiB)
Loading file '/mac_addr' to addr 0x02000000 with size 36 (0x00000024)...
Done
lan mac_addr :  00 90 a9 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:22:4b:48
eth1mtu=1500
eth2addr=00:50:43:22:40:48
eth2mtu=1500
eth3addr=00:50:43:4b:40:22
eth3mtu=1500
ethact=egiga0
ethaddr=00:50:43:40:4b:48
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:48:40:22
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>> boot

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
Re: Debian on WD MyCloud EX 4100
June 25, 2017 05:19PM
saschadd,

Sorry that was my mistake, a wrong command at the end :) Should be:

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)'
setenv usb_bootcmd 'echo Booting from USB ...; setenv fdt_skip_update yes; usb start; run load_image; run load_initrd ; run usb_set_bootargs; bootm $load_image_addr $load_initrd_addr'
setenv bootcmd_usb 'usb start; run usb_set_bootargs; run usb_bootcmd; reset'
printenv
run bootcmd_usb

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on WD MyCloud EX 4100
June 26, 2017 02:12AM
bodhi,

i got a problem now.
Trying to kwboot now stops at "Set lan 1 WakeOnLan ok" and switches power off. :(

./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
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/0
UBIFS: mounted UBI device 0, volume 0, name "reserve2"
UBIFS: mounted read-only
UBIFS: file system size:   4063232 bytes (3968 KiB, 3 MiB, 32 LEBs)
UBIFS: journal size:       1015809 bytes (992 KiB, 0 MiB, 6 LEBs)
UBIFS: media format:       w4/r0 (latest is w4/r0)
UBIFS: default compressor: LZO
UBIFS: reserved for root:  200807 bytes (196 KiB)
Loading file '/mac_addr' to addr 0x02000000 with size 36 (0x00000024)...
Done
lan mac_addr :  00 90 a9 e5 19 1e
Set lan 0 WakeOnLan ok
Set lan 1 WakeOnLan ok
Re: Debian on WD MyCloud EX 4100
June 26, 2017 02:15AM
Same happens when trying to boot stock firmware. :(
Re: Debian on WD MyCloud EX 4100
June 26, 2017 02:30AM
1. Try kwboot earlier version,

./kwboot -f -t -B 115200 /dev/ttyAMA0 -b u-boot-a38x-Yellowstone_2014T30p6_bodhi-tld-3-nand-uart.bin -s 0 -q 1

2. And power off, unplug the cord, wait a few minutes, power up with serial console, let it boot to stock. Watch what show on serial console.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on WD MyCloud EX 4100
June 26, 2017 02:42AM
bodhi Wrote:
-------------------------------------------------------
> 1. Try kwboot earlier version,
>
>
> ./kwboot -f -t -B 115200 /dev/ttyAMA0 -b u-boot-a3
> 8x-Yellowstone_2014T30p6_bodhi-tld-3-nand-uart.bin
> -s 0 -q 1
>

stops and switches off like tld-4

>
> 2. And power off, unplug the cord, wait a few minu
> tes, power up with serial console, let it boot to
> stock. Watch what show on serial console.

no change :( stops an switches of at "Set lan 1 WakeOnLan ok"
Re: Debian on WD MyCloud EX 4100
June 26, 2017 03:06AM
saschadd,

Power up, interrupt serial console and

printenv

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on WD MyCloud EX 4100
June 26, 2017 03:13AM
If you cannot interrupt serial console before it turns off. Unplug the ethernet cable, power up.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on WD MyCloud EX 4100
June 26, 2017 03:38AM
Okay, can boot to stock again. :)

As i do plug power off while trying kwboot i did that all the time and not used the power switch.
There has to be an security log at very early stage as i get notes about the power losses (caused by unplugging to kwboot) when i log in mycloud webgui.

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

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

Terminal ready

BootROM - 1.73
Booting from NAND flash

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



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

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

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


U-Boot 2013.01_v1.06 (Jan 08 2015 - 10:04:46) Marvell version: 2014_T3.0p6

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:0x7ff95d44
       BSS:                     0x7ffef254
       Stack:                   0x7f9cdf20
       Heap:                    0x7f9ce000:0x7fece000
raise: Signal # 8 caught
raise: Signal # 8 caught
       U-Boot Environment:      0x00000000:0x00080000 (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/0
UBIFS: mounted UBI device 0, volume 0, name "reserve2"
UBIFS: mounted read-only
UBIFS: file system size:   4063232 bytes (3968 KiB, 3 MiB, 32 LEBs)
UBIFS: journal size:       1015809 bytes (992 KiB, 0 MiB, 6 LEBs)
UBIFS: media format:       w4/r0 (latest is w4/r0)
UBIFS: default compressor: LZO
UBIFS: reserved for root:  200807 bytes (196 KiB)
Loading file '/mac_addr' to addr 0x02000000 with size 36 (0x00000024)...
Done
lan mac_addr :  00 90 a9 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
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;
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:20:1e:36
eth1mtu=1500
eth2addr=00:50:43:20:70:36
eth2mtu=1500
eth3addr=00:50:43:1e:70:20
eth3mtu=1500
ethact=egiga0
ethaddr=00:50:43:70:1e:36
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:36:70:20
nandEcc=nfcConfig=4bitecc
netbsd_en=no
netmask=255.255.255.0
netretry=no
partition=nand0,0
pcieTune=no
pexMode=RC
pxe_files_load=:default.arm-armadaxp-db:default.arm-armadaxp:default.arm
pxefile_addr_r=3100000
ramdisk_addr_r=2880000
rootpath=/srv/nfs/
sata_delay_reset=0
sata_dma_mode=yes
script_addr_r=3000000
script_name=boot.scr
serverip=2.66.66.32
standalone=fsload 0x2000000 $image_name;setenv bootargs $console $nandEcc $mtdparts root=/dev/mtdblock0 rw ip=$ipaddr:$serverip$bootargs_end; bootm 0x2000000;
stderr=serial
stdin=serial
stdout=serial
usb0Mode=host
usbActive=0
usbType=3
vxworks_en=no
yuk_ethaddr=00:00:00:EE:51:81

Environment size: 3202/524284 bytes
Marvell>>
Re: Debian on WD MyCloud EX 4100
June 26, 2017 03:53AM
bodhi,

new try

./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 % [......................................................................]
  2 % [......................................................................]
...
 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/0
UBIFS: mounted UBI device 0, volume 0, name "reserve2"
UBIFS: mounted read-only
UBIFS: file system size:   4063232 bytes (3968 KiB, 3 MiB, 32 LEBs)
UBIFS: journal size:       1015809 bytes (992 KiB, 0 MiB, 6 LEBs)
UBIFS: media format:       w4/r0 (latest is w4/r0)
UBIFS: default compressor: LZO
UBIFS: reserved for root:  200807 bytes (196 KiB)
Loading file '/mac_addr' to addr 0x02000000 with size 36 (0x00000024)...
Done
lan mac_addr :  00 90 a9 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:40:22:47
eth1mtu=1500
eth2addr=00:50:43:40:6a:47
eth2mtu=1500
eth3addr=00:50:43:22:6a:40
eth3mtu=1500
ethact=egiga0
ethaddr=00:50:43:6a:22:47
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:47:6a:40
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.007881] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.019059] Console: colour dummy device 80x30
[    0.023573] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[    0.033977] pid_max: default: 32768 minimum: 301
[    0.038731] Security Framework initialized
[    0.042925] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.049598] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.057101] CPU: Testing write buffer coherency: ok
[    0.062172] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.067910] Setting up static identity map for 0x100000 - 0x100058
[    0.074212] mvebu-soc-id: MVEBU SoC ID=0x6828, Rev=0x4
[    0.079473] mvebu-pmsu: Initializing Power Management Service Unit
[    0.283912] Booting CPU 1
[    0.286760] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.286809] Brought up 2 CPUs
[    0.295568] SMP: Total of 2 processors activated (100.00 BogoMIPS).
[    0.301887] CPU: All CPU(s) started in SVC mode.
[    0.307120] devtmpfs: initialized
[    0.312445] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.320391] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.330316] prandom: seed boundary self test passed
[    0.336941] prandom: 100 self tests passed
[    0.341101] pinctrl core: initialized pinctrl subsystem
[    0.347022] NET: Registered protocol family 16
[    0.352072] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.393868] cpuidle: using governor ladder
[    0.423866] cpuidle: using governor menu
[    0.427933] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.436001] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.441981] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.450135] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.504835] vgaarb: loaded
[    0.507848] SCSI subsystem initialized
[    0.512067] usbcore: registered new interface driver usbfs
[    0.517700] usbcore: registered new interface driver hub
[    0.523134] usbcore: registered new device driver usb
[    0.528459] media: Linux media interface: v0.10
[    0.533095] Linux video capture interface: v2.00
[    0.538599] clocksource: Switched to clocksource armada_370_xp_clocksource
[    0.570036] VFS: Disk quotas dquot_6.6.0
[    0.574064] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.587923] NET: Registered protocol family 2
[    0.592748] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.599897] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.606448] TCP: Hash tables configured (established 8192 bind 8192)
[    0.612916] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.618924] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.625431] NET: Registered protocol family 1
[    0.630115] RPC: Registered named UNIX socket transport module.
[    0.636091] RPC: Registered udp transport module.
[    0.640868] RPC: Registered tcp transport module.
[    0.645633] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.652258] Unpacking initramfs...
[    0.859939] Freeing initrd memory: 6068K (c2900000 - c2eed000)
[    0.865916] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.872719] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.881870] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.888075] audit: initializing netlink subsys (disabled)
[    0.893587] audit: type=2000 audit(0.880:1): initialized
[    0.899372] Initialise system trusted keyrings
[    0.904016] workingset: timestamp_bits=30 max_order=19 bucket_order=0
[    0.910595] zbud: loaded
[    0.913660] NFS: Registering the id_resolver key type
[    0.918794] Key type id_resolver registered
[    0.923041] Key type id_legacy registered
[    0.927120] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.933883] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.940432] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.947818] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.954423] orangefs_init: module version upstream loaded
[    0.961715] Key type asymmetric registered
[    0.965876] Asymmetric key parser 'x509' registered
[    0.970852] bounce: pool size: 64 pages
[    0.974821] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.982279] io scheduler noop registered
[    0.986266] io scheduler deadline registered
[    0.990619] io scheduler cfq registered (default)
[    0.996185] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    1.004618] mvebu-pcie soc:pcie-controller: PCI host bridge to bus 0000:00
[    1.011564] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    1.017886] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    1.024820] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.030749] PCI: bus0: Fast back to back transfers disabled
[    1.036385] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.044453] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.052618] PCI: bus1: Fast back to back transfers enabled
[    1.058267] PCI: bus2: Fast back to back transfers enabled
[    1.063860] pci 0000:00:01.0: PCI bridge to [bus 01]
[    1.068898] pci 0000:00:02.0: PCI bridge to [bus 02]
[    1.074338] mv_xor f1060800.xor: Marvell shared XOR driver
[    1.139006] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.146605] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.209000] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.259347] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.266981] console [ttyS0] disabled
[    1.290707] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 22, base_baud = 12500000) is a 16550A
[    1.299762] console [ttyS0] enabled
[    1.299762] console [ttyS0] enabled
[    1.306851] bootconsole [earlycon0] disabled
[    1.306851] bootconsole [earlycon0] disabled
[    1.316422] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.325540] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.335098] scsi host0: ahci-mvebu
[    1.338838] scsi host1: ahci-mvebu
[    1.342453] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 42
[    1.350419] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 42
[    1.358505] ahci-mvebu f10e0000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.367605] ahci-mvebu f10e0000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.386991] scsi host2: ahci-mvebu
[    1.390638] scsi host3: ahci-mvebu
[    1.394197] ata3: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x100 irq 43
[    1.402160] ata4: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x180 irq 43
[    1.410612] pxa3xx-nand f10d0000.flash: This platform can't do DMA on this device
[    1.418485] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xdc
[    1.424893] nand: Hynix H27U4G8F2DTR-BC
[    1.428755] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.436359] pxa3xx-nand f10d0000.flash: ECC strength 16, ECC step size 2048
[    1.443546] Bad block table found at page 262080, version 0x01
[    1.449735] Bad block table found at page 262016, version 0x01
[    1.455763] nand_read_bbt: bad block at 0x00000dcc0000
[    1.460934] nand_read_bbt: bad block at 0x00000fb00000
[    1.466094] nand_read_bbt: bad block at 0x000012180000
[    1.471260] nand_read_bbt: bad block at 0x0000139a0000
[    1.476422] nand_read_bbt: bad block at 0x000017880000
[    1.481586] nand_read_bbt: bad block at 0x0000178a0000
[    1.486746] nand_read_bbt: bad block at 0x00001a640000
[    1.491913] nand_read_bbt: bad block at 0x00001e9c0000
[    1.497118] 8 ofpart partitions found on MTD device pxa3xx_nand-0
[    1.503243] Creating 8 MTD partitions on "pxa3xx_nand-0":
[    1.508676] 0x000000000000-0x000000500000 : "U-Boot"
[    1.524338] 0x000000500000-0x000000f00000 : "uImage"
[    1.539970] 0x000000a00000-0x000001900000 : "uRamdisk"
[    1.555762] 0x000000f00000-0x00001d700000 : "image.cfs"
[    1.573231] 0x00001c800000-0x000039f00000 : "rescue_fw"
[    1.578481] mtd: partition "rescue_fw" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x3800000
[    1.600039] 0x00001d700000-0x00003c200000 : "config"
[    1.605024] mtd: partition "config" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x2900000
[    1.626263] 0x00001eb00000-0x00003e000000 : "reserve1"
[    1.631449] mtd: partition "reserve1" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x1500000
[    1.642798] 0x00001f500000-0x00003f400000 : "reserve2"
[    1.647972] mtd: partition "reserve2" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0xb00000
[    1.669761] m25p80 spi0.0: unrecognized JEDEC id bytes: ff, ff, ff
[    1.676429] libphy: Fixed MDIO Bus: probed
[    1.680834] libphy: mdio_driver_register: mv88e6085
[    1.685918] libphy: orion_mdio_bus: probed
[    1.689863] ata1: SATA link down (SStatus 0 SControl 300)
[    1.699889] ata2: SATA link down (SStatus 0 SControl 300)
[    1.701161] mvneta_bm f10c8000.bm: Buffer Manager for network controller enabled
[    1.706335] mvneta f1070000.ethernet eth0: Using random mac address 5e:87:d4:6d:e0:3e
[    1.721955] mvneta f1030000.ethernet eth1: Using random mac address a2:cd:36:42:ed:cb
[    1.730098] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.736677] ehci-pci: EHCI PCI platform driver
[    1.741211] ehci-orion: EHCI orion driver
[    1.745252] ata3: SATA link down (SStatus 0 SControl 300)
[    1.750800] orion-ehci f1058000.usb: EHCI Host Controller
[    1.751368] ata4: SATA link down (SStatus 0 SControl 300)
[    1.761701] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    1.769364] orion-ehci f1058000.usb: irq 38, io mem 0xf1058000
[    1.808609] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    1.814660] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.821489] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.828751] usb usb1: Product: EHCI Host Controller
[    1.833649] usb usb1: Manufacturer: Linux 4.9.0-mvebu-tld-12 ehci_hcd
[    1.840126] usb usb1: SerialNumber: f1058000.usb
[    1.845100] hub 1-0:1.0: USB hub found
[    1.848894] hub 1-0:1.0: 1 port detected
[    1.853272] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.858631] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    1.866215] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.874806] xhci-hcd f10f0000.usb3: irq 46, io mem 0xf10f0000
[    1.880682] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    1.887500] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.894760] usb usb2: Product: xHCI Host Controller
[    1.899667] usb usb2: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.906134] usb usb2: SerialNumber: f10f0000.usb3
[    1.911158] hub 2-0:1.0: USB hub found
[    1.914938] hub 2-0:1.0: 1 port detected
[    1.919044] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.924384] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
[    1.931953] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.940158] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    1.946976] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.954236] usb usb3: Product: xHCI Host Controller
[    1.959248] usb usb3: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.965716] usb usb3: SerialNumber: f10f0000.usb3
[    1.970724] hub 3-0:1.0: USB hub found
[    1.974504] hub 3-0:1.0: 1 port detected
[    1.978670] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.984014] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    1.991600] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    2.000200] xhci-hcd f10f8000.usb3: irq 47, io mem 0xf10f8000
[    2.006046] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002
[    2.012872] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.020133] usb usb4: Product: xHCI Host Controller
[    2.025031] usb usb4: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    2.031546] usb usb4: SerialNumber: f10f8000.usb3
[    2.036542] hub 4-0:1.0: USB hub found
[    2.040336] hub 4-0:1.0: 1 port detected
[    2.044431] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    2.049780] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5
[    2.057336] usb usb5: We don't know the algorithms for LPM for this host, disabling LPM.
[    2.065527] usb usb5: New USB device found, idVendor=1d6b, idProduct=0003
[    2.072356] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.079661] usb usb5: Product: xHCI Host Controller
[    2.084560] usb usb5: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    2.091074] usb usb5: SerialNumber: f10f8000.usb3
[    2.096077] hub 5-0:1.0: USB hub found
[    2.099870] hub 5-0:1.0: 1 port detected
[    2.104063] usbcore: registered new interface driver usblp
[    2.109656] usbcore: registered new interface driver usb-storage
[    2.115858] mousedev: PS/2 mouse device common for all mice
[    2.121818] armada38x-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[    2.129493] i2c /dev entries driver
[    2.144283] orion_wdt: Initial timeout 171 sec
[    2.149952] marvell-cesa f1090000.crypto: CESA device successfully registered
[    2.157222] hidraw: raw HID events driver (C) Jiri Kosina
[    2.162847] usbcore: registered new interface driver usbhid
[    2.168443] usbhid: USB HID core driver
[    2.172423] drop_monitor: Initializing network drop monitor service
[    2.178758] Netfilter messages via NETLINK v0.30.
[    2.183493] ip_set: protocol 6
[    2.186729] NET: Registered protocol family 10
[    2.191909] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    2.198566] NET: Registered protocol family 17
[    2.203168] 8021q: 802.1Q VLAN Support v1.8
[    2.207393] Key type dns_resolver registered
[    2.211882] ThumbEE CPU extension supported.
[    2.216175] Registering SWP/SWPB emulation handler
[    2.221338] registered taskstats version 1
[    2.225453] Loading compiled-in X.509 certificates
[    2.230309] zswap: loaded using pool lzo/zbud
[    2.277884] Key type big_key registered
[    2.281773] usb 2-1: new high-speed USB device number 2 using xhci-hcd
[    2.291811] Key type encrypted registered
[    2.296767] armada38x-rtc f10a3800.rtc: setting system clock to 2017-06-26 08:46:48 UTC (1498466808)
[    2.306941] Freeing unused kernel memory: 1024K (c0c00000 - c0d00000)
Loading, please wait...
[    2.344873] systemd-udevd[1348]: starting version 215
[    2.350958] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    2.448888] usb 2-1: New USB device found, idVendor=045b, idProduct=0209
[    2.455630] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.463322] hub 2-1:1.0: USB hub found
[    2.472785] hub 2-1:1.0: 4 ports detected
[    2.588882] usb 3-1: new SuperSpeed USB device number 2 using xhci-hcd
[    2.620194] usb 3-1: New USB device found, idVendor=045b, idProduct=0210
[    2.626929] usb 3-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.634675] hub 3-1:1.0: USB hub found
[    2.638687] hub 3-1:1.0: 4 ports detected
[    2.818617] usb 2-1.3: new high-speed USB device number 3 using xhci-hcd
[    2.949258] usb 2-1.3: New USB device found, idVendor=0781, idProduct=5571
[    2.956164] usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.963517] usb 2-1.3: Product: Cruzer Fit
[    2.967630] usb 2-1.3: Manufacturer: SanDisk
[    2.971926] usb 2-1.3: SerialNumber: 4C530302071223122304
[    2.978144] usb-storage 2-1.3:1.0: USB Mass Storage device detected
[    2.984593] scsi host4: usb-storage 2-1.3:1.0
[    2.990519] usbcore: registered new interface driver uas
[    4.009136] scsi 4:0:0:0: Direct-Access     SanDisk  Cruzer Fit       1.00 PQ: 0 ANSI: 6
[    4.019425] sd 4:0:0:0: Attached scsi generic sg0 type 0
[    4.024830] sd 4:0:0:0: [sda] 61489152 512-byte logical blocks: (31.5 GB/29.3 GiB)
[    4.034161] sd 4:0:0:0: [sda] Write Protect is off
[    4.039296] sd 4:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    4.051516]  sda: sda1
[    4.060916] sd 4:0:0:0: [sda] Attached SCSI removable disk
[    4.076003] 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.753559] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   17.769530] 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.541143] systemd-udevd[1554]: 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.018141] EXT4-fs (sda1): re-mounted. Opts: (null)
[....] Checking root file system...fsck from util-linux 2.25.2
rootfs: clean, 34218/1925120 files, 631632/7685888 blocks
done.
[   20.152192] 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.209005] 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/5e:87:d4:6d:e0:3e
Sending on   LPF/eth0/5e:87:d4:6d:e0:3e
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 20
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
done.
[ ok ] Starting rpcbind daemon....
[....] Starting NFS common utili[   82.718199] 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...
2498 (syslogd)
. ok
[ ok ] Starting periodic command scheduler: cron.
[ ok ] Starting NTP server: ntpd.
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[ ok ] Starting system message bus: dbus.
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
2499 (klogd)
. ok

Debian GNU/Linux 8 debian ttyS0

debian login: root
Password:
Last login: Sun Jun 25 06:50:24 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:49:51 up 3 min,  1 user,  load average: 0.08, 0.02, 0.01
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.019059] Console: colour dummy device 80x30
[    0.023573] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[    0.033977] pid_max: default: 32768 minimum: 301
[    0.038731] Security Framework initialized
[    0.042925] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.049598] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.057101] CPU: Testing write buffer coherency: ok
[    0.062172] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.067910] Setting up static identity map for 0x100000 - 0x100058
[    0.074212] mvebu-soc-id: MVEBU SoC ID=0x6828, Rev=0x4
[    0.079473] mvebu-pmsu: Initializing Power Management Service Unit
[    0.283912] Booting CPU 1
[    0.286760] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.286809] Brought up 2 CPUs
[    0.295568] SMP: Total of 2 processors activated (100.00 BogoMIPS).
[    0.301887] CPU: All CPU(s) started in SVC mode.
[    0.307120] devtmpfs: initialized
[    0.312445] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.320391] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.330316] prandom: seed boundary self test passed
[    0.336941] prandom: 100 self tests passed
[    0.341101] pinctrl core: initialized pinctrl subsystem
[    0.347022] NET: Registered protocol family 16
[    0.352072] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.393868] cpuidle: using governor ladder
[    0.423866] cpuidle: using governor menu
[    0.427933] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.436001] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.441981] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.450135] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.504835] vgaarb: loaded
[    0.507848] SCSI subsystem initialized
[    0.511799] libata version 3.00 loaded.
[    0.512067] usbcore: registered new interface driver usbfs
[    0.517700] usbcore: registered new interface driver hub
[    0.523134] usbcore: registered new device driver usb
[    0.528459] media: Linux media interface: v0.10
[    0.533095] Linux video capture interface: v2.00
[    0.538599] clocksource: Switched to clocksource armada_370_xp_clocksource
[    0.570036] VFS: Disk quotas dquot_6.6.0
[    0.574064] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.587923] NET: Registered protocol family 2
[    0.592748] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.599897] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.606448] TCP: Hash tables configured (established 8192 bind 8192)
[    0.612916] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.618924] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.625431] NET: Registered protocol family 1
[    0.630115] RPC: Registered named UNIX socket transport module.
[    0.636091] RPC: Registered udp transport module.
[    0.640868] RPC: Registered tcp transport module.
[    0.645633] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.652148] PCI: CLS 0 bytes, default 64
[    0.652258] Unpacking initramfs...
[    0.859939] Freeing initrd memory: 6068K (c2900000 - c2eed000)
[    0.865916] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.872719] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.881870] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.888075] audit: initializing netlink subsys (disabled)
[    0.893587] audit: type=2000 audit(0.880:1): initialized
[    0.899372] Initialise system trusted keyrings
[    0.904016] workingset: timestamp_bits=30 max_order=19 bucket_order=0
[    0.910595] zbud: loaded
[    0.913660] NFS: Registering the id_resolver key type
[    0.918794] Key type id_resolver registered
[    0.923041] Key type id_legacy registered
[    0.927120] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.933883] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.940432] jffs2: version 2.2. (NAND) (SUMMARY)  \xffffffc2\xffffffa9 2001-2006 Red Hat, Inc.
[    0.947818] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.954423] orangefs_init: module version upstream loaded
[    0.961715] Key type asymmetric registered
[    0.965876] Asymmetric key parser 'x509' registered
[    0.970852] bounce: pool size: 64 pages
[    0.974821] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.982279] io scheduler noop registered
[    0.986266] io scheduler deadline registered
[    0.990619] io scheduler cfq registered (default)
[    0.996185] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    1.004618] mvebu-pcie soc:pcie-controller: PCI host bridge to bus 0000:00
[    1.011564] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    1.017886] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    1.024820] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.030373] pci_bus 0000:00: scanning bus
[    1.030394] pci 0000:00:01.0: [11ab:6828] type 01 class 0x060400
[    1.030421] pci 0000:00:01.0: calling pci_fixup_ide_bases+0x0/0x3c
[    1.030580] pci 0000:00:02.0: [11ab:6828] type 01 class 0x060400
[    1.030600] pci 0000:00:02.0: calling pci_fixup_ide_bases+0x0/0x3c
[    1.030741] pci_bus 0000:00: fixups for bus
[    1.030749] PCI: bus0: Fast back to back transfers disabled
[    1.036381] pci 0000:00:01.0: scanning [bus 00-00] behind bridge, pass 0
[    1.036385] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.044449] pci 0000:00:02.0: scanning [bus 00-00] behind bridge, pass 0
[    1.044453] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.052513] pci 0000:00:01.0: scanning [bus 00-00] behind bridge, pass 1
[    1.052609] pci_bus 0000:01: scanning bus
[    1.052615] pci_bus 0000:01: fixups for bus
[    1.052618] PCI: bus1: Fast back to back transfers enabled
[    1.058161] pci_bus 0000:01: bus scan returning with max=01
[    1.058166] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    1.058173] pci 0000:00:02.0: scanning [bus 00-00] behind bridge, pass 1
[    1.058260] pci_bus 0000:02: scanning bus
[    1.058265] pci_bus 0000:02: fixups for bus
[    1.058267] PCI: bus2: Fast back to back transfers enabled
[    1.063821] pci_bus 0000:02: bus scan returning with max=02
[    1.063825] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    1.063830] pci_bus 0000:00: bus scan returning with max=02
[    1.063836] pci 0000:00:01.0: fixup irq: got 0
[    1.063840] pci 0000:00:01.0: assigning IRQ 00
[    1.063844] pci 0000:00:02.0: fixup irq: got 0
[    1.063847] pci 0000:00:02.0: assigning IRQ 00
[    1.063860] pci 0000:00:01.0: PCI bridge to [bus 01]
[    1.068898] pci 0000:00:02.0: PCI bridge to [bus 02]
[    1.073958] pcieport 0000:00:01.0: enabling bus mastering
[    1.073992] pcieport 0000:00:02.0: enabling bus mastering
[    1.074338] mv_xor f1060800.xor: Marvell shared XOR driver
[    1.139006] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.146605] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.209000] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.259347] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.266981] console [ttyS0] disabled
[    1.290707] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 22, base_baud = 12500000) is a 16550A
[    1.299762] console [ttyS0] enabled
[    1.306851] bootconsole [earlycon0] disabled
[    1.316422] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.325540] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.335098] scsi host0: ahci-mvebu
[    1.338838] scsi host1: ahci-mvebu
[    1.342453] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 42
[    1.350419] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 42
[    1.358505] ahci-mvebu f10e0000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.367605] ahci-mvebu f10e0000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.386991] scsi host2: ahci-mvebu
[    1.390638] scsi host3: ahci-mvebu
[    1.394197] ata3: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x100 irq 43
[    1.402160] ata4: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x180 irq 43
[    1.410612] pxa3xx-nand f10d0000.flash: This platform can't do DMA on this device
[    1.418485] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xdc
[    1.424893] nand: Hynix H27U4G8F2DTR-BC
[    1.428755] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.436359] pxa3xx-nand f10d0000.flash: ECC strength 16, ECC step size 2048
[    1.443546] Bad block table found at page 262080, version 0x01
[    1.449735] Bad block table found at page 262016, version 0x01
[    1.455763] nand_read_bbt: bad block at 0x00000dcc0000
[    1.460934] nand_read_bbt: bad block at 0x00000fb00000
[    1.466094] nand_read_bbt: bad block at 0x000012180000
[    1.471260] nand_read_bbt: bad block at 0x0000139a0000
[    1.476422] nand_read_bbt: bad block at 0x000017880000
[    1.481586] nand_read_bbt: bad block at 0x0000178a0000
[    1.486746] nand_read_bbt: bad block at 0x00001a640000
[    1.491913] nand_read_bbt: bad block at 0x00001e9c0000
[    1.497118] 8 ofpart partitions found on MTD device pxa3xx_nand-0
[    1.503243] Creating 8 MTD partitions on "pxa3xx_nand-0":
[    1.508676] 0x000000000000-0x000000500000 : "U-Boot"
[    1.524338] 0x000000500000-0x000000f00000 : "uImage"
[    1.539970] 0x000000a00000-0x000001900000 : "uRamdisk"
[    1.555762] 0x000000f00000-0x00001d700000 : "image.cfs"
[    1.573231] 0x00001c800000-0x000039f00000 : "rescue_fw"
[    1.578481] mtd: partition "rescue_fw" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x3800000
[    1.600039] 0x00001d700000-0x00003c200000 : "config"
[    1.605024] mtd: partition "config" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x2900000
[    1.626263] 0x00001eb00000-0x00003e000000 : "reserve1"
[    1.631449] mtd: partition "reserve1" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x1500000
[    1.642798] 0x00001f500000-0x00003f400000 : "reserve2"
[    1.647972] mtd: partition "reserve2" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0xb00000
[    1.669761] m25p80 spi0.0: unrecognized JEDEC id bytes: ff, ff, ff
[    1.676429] libphy: Fixed MDIO Bus: probed
[    1.680834] libphy: mdio_driver_register: mv88e6085
[    1.685918] libphy: orion_mdio_bus: probed
[    1.689863] ata1: SATA link down (SStatus 0 SControl 300)
[    1.699889] ata2: SATA link down (SStatus 0 SControl 300)
[    1.701161] mvneta_bm f10c8000.bm: Buffer Manager for network controller enabled
[    1.706335] mvneta f1070000.ethernet eth0: Using random mac address 5e:87:d4:6d:e0:3e
[    1.721955] mvneta f1030000.ethernet eth1: Using random mac address a2:cd:36:42:ed:cb
[    1.730098] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.736677] ehci-pci: EHCI PCI platform driver
[    1.741211] ehci-orion: EHCI orion driver
[    1.745252] ata3: SATA link down (SStatus 0 SControl 300)
[    1.750800] orion-ehci f1058000.usb: EHCI Host Controller
[    1.751368] ata4: SATA link down (SStatus 0 SControl 300)
[    1.761701] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    1.769364] orion-ehci f1058000.usb: irq 38, io mem 0xf1058000
[    1.808609] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    1.814660] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.821489] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.828751] usb usb1: Product: EHCI Host Controller
[    1.833649] usb usb1: Manufacturer: Linux 4.9.0-mvebu-tld-12 ehci_hcd
[    1.840126] usb usb1: SerialNumber: f1058000.usb
[    1.845100] hub 1-0:1.0: USB hub found
[    1.848894] hub 1-0:1.0: 1 port detected
[    1.853272] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.858631] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    1.866215] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.874806] xhci-hcd f10f0000.usb3: irq 46, io mem 0xf10f0000
[    1.880682] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    1.887500] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.894760] usb usb2: Product: xHCI Host Controller
[    1.899667] usb usb2: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.906134] usb usb2: SerialNumber: f10f0000.usb3
[    1.911158] hub 2-0:1.0: USB hub found
[    1.914938] hub 2-0:1.0: 1 port detected
[    1.919044] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.924384] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
[    1.931953] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.940158] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    1.946976] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.954236] usb usb3: Product: xHCI Host Controller
[    1.959248] usb usb3: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.965716] usb usb3: SerialNumber: f10f0000.usb3
[    1.970724] hub 3-0:1.0: USB hub found
[    1.974504] hub 3-0:1.0: 1 port detected
[    1.978670] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.984014] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    1.991600] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    2.000200] xhci-hcd f10f8000.usb3: irq 47, io mem 0xf10f8000
[    2.006046] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002
[    2.012872] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.020133] usb usb4: Product: xHCI Host Controller
[    2.025031] usb usb4: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    2.031546] usb usb4: SerialNumber: f10f8000.usb3
[    2.036542] hub 4-0:1.0: USB hub found
[    2.040336] hub 4-0:1.0: 1 port detected
[    2.044431] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    2.049780] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5
[    2.057336] usb usb5: We don't know the algorithms for LPM for this host, disabling LPM.
[    2.065527] usb usb5: New USB device found, idVendor=1d6b, idProduct=0003
[    2.072356] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.079661] usb usb5: Product: xHCI Host Controller
[    2.084560] usb usb5: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    2.091074] usb usb5: SerialNumber: f10f8000.usb3
[    2.096077] hub 5-0:1.0: USB hub found
[    2.099870] hub 5-0:1.0: 1 port detected
[    2.104063] usbcore: registered new interface driver usblp
[    2.109656] usbcore: registered new interface driver usb-storage
[    2.115858] mousedev: PS/2 mouse device common for all mice
[    2.121818] armada38x-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[    2.129493] i2c /dev entries driver
[    2.144283] orion_wdt: Initial timeout 171 sec
[    2.149952] marvell-cesa f1090000.crypto: CESA device successfully registered
[    2.157222] hidraw: raw HID events driver (C) Jiri Kosina
[    2.162847] usbcore: registered new interface driver usbhid
[    2.168443] usbhid: USB HID core driver
[    2.172423] drop_monitor: Initializing network drop monitor service
[    2.178758] Netfilter messages via NETLINK v0.30.
[    2.183493] ip_set: protocol 6
[    2.186729] NET: Registered protocol family 10
[    2.191909] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    2.198566] NET: Registered protocol family 17
[    2.203168] 8021q: 802.1Q VLAN Support v1.8
[    2.207393] Key type dns_resolver registered
[    2.211882] ThumbEE CPU extension supported.
[    2.216175] Registering SWP/SWPB emulation handler
[    2.221338] registered taskstats version 1
[    2.225453] Loading compiled-in X.509 certificates
[    2.230309] zswap: loaded using pool lzo/zbud
[    2.277884] Key type big_key registered
[    2.281773] usb 2-1: new high-speed USB device number 2 using xhci-hcd
[    2.291811] Key type encrypted registered
[    2.296767] armada38x-rtc f10a3800.rtc: setting system clock to 2017-06-26 08:46:48 UTC (1498466808)
[    2.306030] PM: Hibernation image not present or could not be loaded.
[    2.306941] Freeing unused kernel memory: 1024K (c0c00000 - c0d00000)
[    2.344873] systemd-udevd[1348]: starting version 215
[    2.350958] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    2.448888] usb 2-1: New USB device found, idVendor=045b, idProduct=0209
[    2.455630] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.463322] hub 2-1:1.0: USB hub found
[    2.472785] hub 2-1:1.0: 4 ports detected
[    2.588882] usb 3-1: new SuperSpeed USB device number 2 using xhci-hcd
[    2.620194] usb 3-1: New USB device found, idVendor=045b, idProduct=0210
[    2.626929] usb 3-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.634675] hub 3-1:1.0: USB hub found
[    2.638687] hub 3-1:1.0: 4 ports detected
[    2.818617] usb 2-1.3: new high-speed USB device number 3 using xhci-hcd
[    2.949258] usb 2-1.3: New USB device found, idVendor=0781, idProduct=5571
[    2.956164] usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.963517] usb 2-1.3: Product: Cruzer Fit
[    2.967630] usb 2-1.3: Manufacturer: SanDisk
[    2.971926] usb 2-1.3: SerialNumber: 4C530302071223122304
[    2.978144] usb-storage 2-1.3:1.0: USB Mass Storage device detected
[    2.984593] scsi host4: usb-storage 2-1.3:1.0
[    2.990519] usbcore: registered new interface driver uas
[    4.009136] scsi 4:0:0:0: Direct-Access     SanDisk  Cruzer Fit       1.00 PQ: 0 ANSI: 6
[    4.019425] sd 4:0:0:0: Attached scsi generic sg0 type 0
[    4.024830] sd 4:0:0:0: [sda] 61489152 512-byte logical blocks: (31.5 GB/29.3 GiB)
[    4.034161] sd 4:0:0:0: [sda] Write Protect is off
[    4.039007] sd 4:0:0:0: [sda] Mode Sense: 43 00 00 00
[    4.039296] sd 4:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    4.051516]  sda: sda1
[    4.060916] sd 4:0:0:0: [sda] Attached SCSI removable disk
[    4.076003] random: fast init done
[   17.753559] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   17.769530] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[   18.541143] systemd-udevd[1554]: starting version 215
[   20.018141] EXT4-fs (sda1): re-mounted. Opts: (null)
[   20.152192] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[   21.209005] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   82.718199] 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:~#
Re: Debian on WD MyCloud EX 4100
June 26, 2017 03:55AM
I think that probably was! kwboot should not change anything.

Do you shutdow the box before running kwboot, and then press power button? or the power is automatically on when you plug the power cord in?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on WD MyCloud EX 4100
June 26, 2017 04:05AM
I still don't like these errors


[    1.436359] pxa3xx-nand f10d0000.flash: ECC strength 16, ECC step size 2048
[    1.443546] Bad block table found at page 262080, version 0x01
[    1.449735] Bad block table found at page 262016, version 0x01
[    1.455763] nand_read_bbt: bad block at 0x00000dcc0000
[    1.460934] nand_read_bbt: bad block at 0x00000fb00000
[    1.466094] nand_read_bbt: bad block at 0x000012180000
[    1.471260] nand_read_bbt: bad block at 0x0000139a0000
[    1.476422] nand_read_bbt: bad block at 0x000017880000
[    1.481586] nand_read_bbt: bad block at 0x0000178a0000
[    1.486746] nand_read_bbt: bad block at 0x00001a640000
[    1.491913] nand_read_bbt: bad block at 0x00001e9c0000
[    1.497118] 8 ofpart partitions found on MTD device pxa3xx_nand-0
[    1.503243] Creating 8 MTD partitions on "pxa3xx_nand-0":
[    1.508676] 0x000000000000-0x000000500000 : "U-Boot"
[    1.524338] 0x000000500000-0x000000f00000 : "uImage"
[    1.539970] 0x000000a00000-0x000001900000 : "uRamdisk"
[    1.555762] 0x000000f00000-0x00001d700000 : "image.cfs"
[    1.573231] 0x00001c800000-0x000039f00000 : "rescue_fw"
[    1.578481] mtd: partition "rescue_fw" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x3800000
[    1.600039] 0x00001d700000-0x00003c200000 : "config"
[    1.605024] mtd: partition "config" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x2900000
[    1.626263] 0x00001eb00000-0x00003e000000 : "reserve1"
[    1.631449] mtd: partition "reserve1" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x1500000
[    1.642798] 0x00001f500000-0x00003f400000 : "reserve2"
[    1.647972] mtd: partition "reserve2" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0xb00000

But since they are far away from mtd0, so it won't cause problem.

Let's see if you can printenv.

Log in to Debian as root, and change the content of /etc/fw_env.config

# MTD device name	Device offset	Env. size	Flash sector size	Number of sectors
/dev/mtd0 0x100000 0x20000 0x20000

And then

fw_printenv

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



Edited 1 time(s). Last edit at 06/26/2017 04:12AM by bodhi.
Re: Debian on WD MyCloud EX 4100
June 26, 2017 04:18AM
bodhi Wrote:
-------------------------------------------------------
> I think that probably was! kwboot should not chang
> e anything.
>
> Do you shutdow the box before running kwboot, and
> then press power button? or the power is automatic
> ally on when you plug the power cord in?

when i plugin the power cord the power is automatically on and the box boots up.
Havent found a way to shutdown from uboot thats why i "switch off" by removing power cord.
Re: Debian on WD MyCloud EX 4100
June 26, 2017 04:22AM
bodhi Wrote:
-------------------------------------------------------
> Log in to Debian as root, and change the content o
> f /etc/fw_env.config
>
>
> # MTD device name	Device offset	Env. size	Flash se
> ctor size	Number of sectors
> /dev/mtd0 0x100000 0x20000 0x20000
>
>
> And then
>
>
> fw_printenv
>

unfortunately no change
tested with space and tab as separator.

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 0x20000 0x20000

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        0x20000 0x20000

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:~#
Re: Debian on WD MyCloud EX 4100
June 26, 2017 04:38AM
OK let try other things first then. And we come back to this fw_env.

1. Don't turn off power in u-boot. You should boot all the way in, then do a shutdown.

2. Let's try booting with stock u-boot in NAND (not kwboot). Shutdown and power up, interrupt serial console and

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

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



Edited 1 time(s). Last edit at 06/26/2017 04:42AM by bodhi.
Re: Debian on WD MyCloud EX 4100
June 26, 2017 04:43AM
OK. The complete set of envs running stock u-boot is above.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on WD MyCloud EX 4100
June 26, 2017 04:53AM
OK, I've copied the wrong definition for fw_env.config above :) Below should be the correct one.


Log in to Debian as root, and change the content of /etc/fw_env.config
# MTD device name	Device offset	Env. size	Flash sector size	Number of sectors
/dev/mtd0		0x100000		0x80000		0x20000			4
And then
fw_printenv

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



Edited 2 time(s). Last edit at 06/26/2017 05:27AM by bodhi.
Re: Debian on WD MyCloud EX 4100
June 26, 2017 12:03PM
bodhi Wrote:
-------------------------------------------------------
> OK let try other things first then. And we come ba
> ck to this fw_env.
>
> 1. Don't turn off power in u-boot. You should boot all the way in, then do a shutdown.

Do you mean that i should never turn of power in u-boot?
That would mean booting all the time into stock firmware when trying to kwboot.
Or is there a way to interrupt u-boot and do a shutdown from there?

>
> 2. Let's try booting with stock u-boot in NAND (no
> t kwboot). Shutdown and power up, interrupt serial
> console and
>
>
> setenv bootdev usb
> setenv device '0:1'
> setenv load_initrd_addr 0x2900000
> setenv load_image_addr 0x02000000
> setenv load_initrd 'echo loading uInitrd ...; ext2
> load $bootdev $device $load_initrd_addr /boot/uIni
> trd'
> setenv load_image 'echo loading Image ...; ext2loa
> d $bootdev $device $load_image_addr /boot/uImage'
> setenv usb_set_bootargs 'setenv bootargs console=t
> tyS0,115200 root=LABEL=rootfs rootdelay=10 earlypr
> intk=serial mtdparts=armada-nand:5m@0(u-boot),5m@5
> m(kernel),5m@10m(uRamdisk),441m@15m(image.cfs),15m
> @456m(rescue_fw),20m@471m(config),10m@491m(reserve
> 1),10m@501m(reserve2)'
> setenv usb_bootcmd 'echo Booting from USB ...; set
> env fdt_skip_update yes; usb start; run load_image
> ; run load_initrd ; run usb_set_bootargs; bootm $l
> oad_image_addr $load_initrd_addr'
> setenv bootcmd_usb 'usb start; run usb_set_bootarg
> s; run usb_bootcmd'
> setenv bootcmd_stock 'nand read.e 0xa00000 0x50000
> 0 0x500000;nand read.e 0xf00000 0xa00000 0x500000;
> bootm 0xa00000 0xf00000'
> setenv bootcmd 'run bootcmd_usb; run bootcmd_stock
> ; reset'
> printenv
> boot
>

following the output

root@raspberrypi:~# picocom -b 115200 -d 8 /dev/ttyAMA0
picocom v1.7

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

Terminal ready

BootROM - 1.73
Booting from NAND flash

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



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

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

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


U-Boot 2013.01_v1.06 (Jan 08 2015 - 10:04:46) Marvell version: 2014_T3.0p6

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:0x7ff95d44
       BSS:                     0x7ffef254
       Stack:                   0x7f9cdf20
       Heap:                    0x7f9ce000:0x7fece000
raise: Signal # 8 caught
raise: Signal # 8 caught
       U-Boot Environment:      0x00000000:0x00080000 (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_initdr 0x2900000
Marvell>> setenv load_image_addr 0x02000000
Marvell>> setenv load_initrd 'echo loading uInitrd ...; ext2load $bootdev $device $load_initrd_addr /boot/uInitrd'
Marvell>> setenv load_image 'echo loading Image ...; ext2load $bootdev $device $load_image_addr /boot/uImage'
Marvell>> setenv usb_set_bootargs 'setenv bootargs console=ttyS0,115200 root=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'
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
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:f4:49:4c
eth1mtu=1500
eth2addr=00:50:43:f4:40:4c
eth2mtu=1500
eth3addr=00:50:43:49:40:f4
eth3mtu=1500
ethact=egiga0
ethaddr=00:50:43:40:49:4c
ethmtu=1500
ethprime=egiga0
fdt_addr=2040000
fdt_skip_update=no
fdtaddr=0x1000000
fdtfile=armada-38x-modular.dtb
filesize=24
ide_path=/
image_name=uImage
initrd_name=uInitrd
ipaddr=2.66.66.203
kernel_addr_r=2080000
lcd0_enable=0
lcd0_params=640x480-16@60
lcd_panel=0
load_image=echo loading Image ...; ext2load $bootdev $device $load_image_addr /boot/uImage
load_image_addr=0x02000000
load_initdr=0x2900000
load_initrd=echo loading uInitrd ...; ext2load $bootdev $device $load_initrd_addr /boot/uInitrd
loadaddr=0x02000000
loads_echo=0
mtddevname=u-boot
mtddevnum=0
mtdids=nand0=armada-nand
mtdparts=mtdparts=armada-nand:5m(u-boot)ro,5m@5m(kernel),5m@10m(uRamdisk),441m@15m(image.cfs),15m@456m(rescue_fw),20m@471m(config),10m@491m(reserve1),10m@501m(reserve2)
mvNetConfig=mv_net_config=4,(00:50:43:11:11:11,0:1:2:3),mtu=1500
mv_pon_addr=00:50:43:4c:40:f4
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: 4037/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 ...
** No boot file defined **
## 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 Kernel Image ... OK
OK
stopping USB..

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.9.0-mvebu-tld-12 (root@tldDebianVM) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4) ) #2 SMP PREEMPT Wed Feb 1 02:31:29 PST 2017
[    0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt:Machine model: WD My Cloud EX4100
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 15 pages/cpu @eefcd000 s30796 r8192 d22452 u61440
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 522752
[    0.000000] Kernel command line:  console=ttyS0,115200 root=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: 2066384K/2097152K available (8192K kernel code, 690K rwdata, 2052K rodata, 1024K init, 386K bss, 30768K reserved, 0K cma-reserved, 1310720K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0900000   (9184 kB)
[    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
[    0.000000]       .data : 0xc0d00000 - 0xc0daca28   ( 691 kB)
[    0.000000]        .bss : 0xc0daca28 - 0xc0e0d4f8   ( 387 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 32.
[    0.000000]  RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=2
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] mvebu_mbus: [Firmware Warn]: deprecated mbus-mvebu Device Tree, suspend/resume will not work
[    0.000000] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000] L2C-310 D prefetch enabled, offset 1 lines
[    0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000] L2C-310 Coherent cache controller enabled, 16 ways, 1024 kB
[    0.000000] L2C-310 Coherent: CACHE_ID 0x410054c9, AUX_CTRL 0x56070001
[    0.000000] Switching to timer-based delay loop, resolution 40ns
[    0.000003] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 85899345900ns
[    0.007882] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.019061] 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.038731] Security Framework initialized
[    0.042925] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.049598] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.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.074217] mvebu-soc-id: MVEBU SoC ID=0x6828, Rev=0x4
[    0.079476] mvebu-pmsu: Initializing Power Management Service Unit
[    0.283912] Booting CPU 1
[    0.286757] 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.307117] devtmpfs: initialized
[    0.312442] 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.330316] prandom: seed boundary self test passed
[    0.336940] prandom: 100 self tests passed
[    0.341100] pinctrl core: initialized pinctrl subsystem
[    0.347022] NET: Registered protocol family 16
[    0.352067] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.393869] cpuidle: using governor ladder
[    0.423867] cpuidle: using governor menu
[    0.427932] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.436001] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.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.504825] vgaarb: loaded
[    0.507842] SCSI subsystem initialized
[    0.512061] usbcore: registered new interface driver usbfs
[    0.517692] usbcore: registered new interface driver hub
[    0.523125] usbcore: registered new device driver usb
[    0.528448] media: Linux media interface: v0.10
[    0.533084] Linux video capture interface: v2.00
[    0.538588] clocksource: Switched to clocksource armada_370_xp_clocksource
[    0.570056] VFS: Disk quotas dquot_6.6.0
[    0.574085] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.587925] NET: Registered protocol family 2
[    0.592744] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.599893] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.606444] TCP: Hash tables configured (established 8192 bind 8192)
[    0.612914] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.618922] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.625429] NET: Registered protocol family 1
[    0.630115] RPC: Registered named UNIX socket transport module.
[    0.636091] RPC: Registered udp transport module.
[    0.640871] RPC: Registered tcp transport module.
[    0.645636] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.652338] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.659014] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.668060] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.674285] audit: initializing netlink subsys (disabled)
[    0.679771] audit: type=2000 audit(0.670:1): initialized
[    0.685514] Initialise system trusted keyrings
[    0.690175] workingset: timestamp_bits=30 max_order=19 bucket_order=0
[    0.696730] zbud: loaded
[    0.699794] NFS: Registering the id_resolver key type
[    0.704913] Key type id_resolver registered
[    0.709174] Key type id_legacy registered
[    0.713253] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.720014] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.726551] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.733946] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.740557] orangefs_init: module version upstream loaded
[    0.747788] Key type asymmetric registered
[    0.751963] Asymmetric key parser 'x509' registered
[    0.756925] bounce: pool size: 64 pages
[    0.760901] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.768346] io scheduler noop registered
[    0.772346] io scheduler deadline registered
[    0.776691] io scheduler cfq registered (default)
[    0.782258] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    0.790680] mvebu-pcie soc:pcie-controller: PCI host bridge to bus 0000:00
[    0.797611] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    0.803947] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    0.810883] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.816795] PCI: bus0: Fast back to back transfers disabled
[    0.822442] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.830507] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.838681] PCI: bus1: Fast back to back transfers enabled
[    0.844331] PCI: bus2: Fast back to back transfers enabled
[    0.849925] pci 0000:00:01.0: PCI bridge to [bus 01]
[    0.854954] pci 0000:00:02.0: PCI bridge to [bus 02]
[    0.860399] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.918988] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    0.926583] mv_xor f1060900.xor: Marvell shared XOR driver
[    0.988981] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.039173] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.046832] console [ttyS0] disabled
[    1.070563] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 22, base_baud = 12500000) is a 16550A
[    1.079595] console [ttyS0] enabled
[    1.079595] console [ttyS0] enabled
[    1.086682] bootconsole [earlycon0] disabled
[    1.086682] bootconsole [earlycon0] disabled
[    1.096289] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.105396] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.114948] scsi host0: ahci-mvebu
[    1.118653] scsi host1: ahci-mvebu
[    1.122264] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 42
[    1.130229] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 42
[    1.138314] ahci-mvebu f10e0000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.147415] ahci-mvebu f10e0000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.156791] scsi host2: ahci-mvebu
[    1.160436] scsi host3: ahci-mvebu
[    1.163992] ata3: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x100 irq 43
[    1.171956] ata4: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x180 irq 43
[    1.180374] pxa3xx-nand f10d0000.flash: This platform can't do DMA on this device
[    1.188221] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xdc
[    1.194613] nand: Hynix H27U4G8F2DTR-BC
[    1.198465] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.206078] pxa3xx-nand f10d0000.flash: ECC strength 16, ECC step size 2048
[    1.213271] Bad block table found at page 262080, version 0x01
[    1.219462] Bad block table found at page 262016, version 0x01
[    1.225492] nand_read_bbt: bad block at 0x00000dcc0000
[    1.230661] nand_read_bbt: bad block at 0x00000fb00000
[    1.235821] nand_read_bbt: bad block at 0x000012180000
[    1.240987] nand_read_bbt: bad block at 0x0000139a0000
[    1.246148] nand_read_bbt: bad block at 0x000017880000
[    1.251314] nand_read_bbt: bad block at 0x0000178a0000
[    1.256474] nand_read_bbt: bad block at 0x00001a640000
[    1.261642] nand_read_bbt: bad block at 0x00001e9c0000
[    1.266847] 8 ofpart partitions found on MTD device pxa3xx_nand-0
[    1.272972] Creating 8 MTD partitions on "pxa3xx_nand-0":
[    1.278395] 0x000000000000-0x000000500000 : "U-Boot"
[    1.294068] 0x000000500000-0x000000f00000 : "uImage"
[    1.309693] 0x000000a00000-0x000001900000 : "uRamdisk"
[    1.325487] 0x000000f00000-0x00001d700000 : "image.cfs"
[    1.342962] 0x00001c800000-0x000039f00000 : "rescue_fw"
[    1.348211] mtd: partition "rescue_fw" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x3800000
[    1.369756] 0x00001d700000-0x00003c200000 : "config"
[    1.374744] mtd: partition "config" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x2900000
[    1.395973] 0x00001eb00000-0x00003e000000 : "reserve1"
[    1.401147] mtd: partition "reserve1" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x1500000
[    1.422486] 0x00001f500000-0x00003f400000 : "reserve2"
[    1.427649] mtd: partition "reserve2" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0xb00000
[    1.449471] m25p80 spi0.0: unrecognized JEDEC id bytes: ff, ff, ff
[    1.456137] libphy: Fixed MDIO Bus: probed
[    1.460540] libphy: mdio_driver_register: mv88e6085
[    1.465574] libphy: orion_mdio_bus: probed
[    1.469846] ata1: SATA link down (SStatus 0 SControl 300)
[    1.476242] mvneta_bm f10c8000.bm: Buffer Manager for network controller enabled
[    1.480385] ata2: SATA link down (SStatus 0 SControl 300)
[    1.491031] mvneta f1070000.ethernet eth0: Using random mac address ee:7f:06:a2:77:a3
[    1.500844] mvneta f1030000.ethernet eth1: Using random mac address fa:89:3c:7c:cc:f6
[    1.508973] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.510758] ata3: SATA link down (SStatus 0 SControl 300)
[    1.520868] ata4: SATA link down (SStatus 0 SControl 300)
[    1.526391] ehci-pci: EHCI PCI platform driver
[    1.530903] ehci-orion: EHCI orion driver
[    1.535024] orion-ehci f1058000.usb: EHCI Host Controller
[    1.540471] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    1.548123] orion-ehci f1058000.usb: irq 38, io mem 0xf1058000
[    1.578603] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    1.584661] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.591492] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.598752] usb usb1: Product: EHCI Host Controller
[    1.603650] usb usb1: Manufacturer: Linux 4.9.0-mvebu-tld-12 ehci_hcd
[    1.610124] usb usb1: SerialNumber: f1058000.usb
[    1.615092] hub 1-0:1.0: USB hub found
[    1.618884] hub 1-0:1.0: 1 port detected
[    1.623260] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.628621] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    1.636208] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.644799] xhci-hcd f10f0000.usb3: irq 46, io mem 0xf10f0000
[    1.650659] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    1.657477] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.664753] usb usb2: Product: xHCI Host Controller
[    1.669661] usb usb2: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.676129] usb usb2: SerialNumber: f10f0000.usb3
[    1.681153] hub 2-0:1.0: USB hub found
[    1.684934] hub 2-0:1.0: 1 port detected
[    1.689040] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.694380] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
[    1.701954] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.710153] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    1.716971] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.724232] usb usb3: Product: xHCI Host Controller
[    1.730009] usb usb3: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.736478] usb usb3: SerialNumber: f10f0000.usb3
[    1.741485] hub 3-0:1.0: USB hub found
[    1.745265] hub 3-0:1.0: 1 port detected
[    1.749432] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.754776] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    1.762361] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.770959] xhci-hcd f10f8000.usb3: irq 47, io mem 0xf10f8000
[    1.776806] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002
[    1.783634] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.790894] usb usb4: Product: xHCI Host Controller
[    1.795792] usb usb4: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.802303] usb usb4: SerialNumber: f10f8000.usb3
[    1.807298] hub 4-0:1.0: USB hub found
[    1.811101] hub 4-0:1.0: 1 port detected
[    1.815195] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.820544] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5
[    1.828101] usb usb5: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.836291] usb usb5: New USB device found, idVendor=1d6b, idProduct=0003
[    1.843120] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.850381] usb usb5: Product: xHCI Host Controller
[    1.855279] usb usb5: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.861797] usb usb5: SerialNumber: f10f8000.usb3
[    1.866789] hub 5-0:1.0: USB hub found
[    1.870579] hub 5-0:1.0: 1 port detected
[    1.874766] usbcore: registered new interface driver usblp
[    1.880355] usbcore: registered new interface driver usb-storage
[    1.886555] mousedev: PS/2 mouse device common for all mice
[    1.892515] armada38x-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[    1.900190] i2c /dev entries driver
[    1.914983] orion_wdt: Initial timeout 171 sec
[    1.920647] marvell-cesa f1090000.crypto: CESA device successfully registered
[    1.927916] hidraw: raw HID events driver (C) Jiri Kosina
[    1.933546] usbcore: registered new interface driver usbhid
[    1.939154] usbhid: USB HID core driver
[    1.943122] drop_monitor: Initializing network drop monitor service
[    1.949455] Netfilter messages via NETLINK v0.30.
[    1.954189] ip_set: protocol 6
[    1.957424] NET: Registered protocol family 10
[    1.962472] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    1.969246] NET: Registered protocol family 17
[    1.973822] 8021q: 802.1Q VLAN Support v1.8
[    1.978042] Key type dns_resolver registered
[    1.982585] ThumbEE CPU extension supported.
[    1.986878] Registering SWP/SWPB emulation handler
[    1.992058] registered taskstats version 1
[    1.996173] Loading compiled-in X.509 certificates
[    2.001029] zswap: loaded using pool lzo/zbud
[    2.040014] Key type big_key registered
[    2.044087] Key type encrypted registered
[    2.048618] usb 2-1: new high-speed USB device number 2 using xhci-hcd
[    2.055684] armada38x-rtc f10a3800.rtc: setting system clock to 2017-06-26 16:54:24 UTC (1498496064)
[    2.065251] Waiting 10 sec before mounting root device...
[    2.218800] usb 2-1: New USB device found, idVendor=045b, idProduct=0209
[    2.225537] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.233070] hub 2-1:1.0: USB hub found
[    2.236901] hub 2-1:1.0: 4 ports detected
[    2.358758] usb 3-1: new SuperSpeed USB device number 2 using xhci-hcd
[    2.390167] usb 3-1: New USB device found, idVendor=045b, idProduct=0210
[    2.396898] usb 3-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.404549] hub 3-1:1.0: USB hub found
[    2.408580] hub 3-1:1.0: 4 ports detected
[   12.648694] VFS: Cannot open root device "LABEL=rootfs" or unknown-block(0,0): error -6
[   12.656734] Please append a correct "root=" boot option; here are the available partitions:
[   12.665198] 1f00            5120 mtdblock0 [   12.669233]  (driver?)
[   12.671605] 1f01           10240 mtdblock1 [   12.675628]  (driver?)
[   12.677998] 1f02           15360 mtdblock2 [   12.682031]  (driver?)
[   12.684401] 1f03          466944 mtdblock3 [   12.688424]  (driver?)
[   12.690802] 1f04           57344 mtdblock4 [   12.694826]  (driver?)
[   12.697195] 1f05           41984 mtdblock5 [   12.701227]  (driver?)
[   12.703597] 1f06           21504 mtdblock6 [   12.707620]  (driver?)
[   12.709998] 1f07           11264 mtdblock7 [   12.714021]  (driver?)
[   12.716391] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[   12.724691] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.9.0-mvebu-tld-12 #2
[   12.731681] Hardware name: Marvell Armada 380/385 (Device Tree)
[   12.737638] [<c01160bc>] (unwind_backtrace) from [<c0110bb4>] (show_stack+0x10/0x14)
[   12.745417] [<c0110bb4>] (show_stack) from [<c04ba5a4>] (dump_stack+0x70/0x8c)
[   12.752673] [<c04ba5a4>] (dump_stack) from [<c01eccd4>] (panic+0xc0/0x244)
[   12.759581] [<c01eccd4>] (panic) from [<c0c012b4>] (mount_block_root+0x1d8/0x250)
[   12.767096] [<c0c012b4>] (mount_block_root) from [<c0c01420>] (mount_root+0xf4/0x11c)
[   12.774960] [<c0c01420>] (mount_root) from [<c0c0156c>] (prepare_namespace+0x124/0x184)
[   12.783001] [<c0c0156c>] (prepare_namespace) from [<c0c00e74>] (kernel_init_freeable+0x200/0x258)
[   12.791913] [<c0c00e74>] (kernel_init_freeable) from [<c0834b74>] (kernel_init+0x8/0x10c)
[   12.800129] [<c0834b74>] (kernel_init) from [<c010c338>] (ret_from_fork+0x14/0x3c)
[   12.807734] CPU1: stopping
[   12.810454] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 4.9.0-mvebu-tld-12 #2
[   12.817444] Hardware name: Marvell Armada 380/385 (Device Tree)
[   12.823394] [<c01160bc>] (unwind_backtrace) from [<c0110bb4>] (show_stack+0x10/0x14)
[   12.831171] [<c0110bb4>] (show_stack) from [<c04ba5a4>] (dump_stack+0x70/0x8c)
[   12.838426] [<c04ba5a4>] (dump_stack) from [<c0113f90>] (handle_IPI+0x16c/0x350)
[   12.845855] [<c0113f90>] (handle_IPI) from [<c0101520>] (gic_handle_irq+0x78/0x94)
[   12.853458] [<c0101520>] (gic_handle_irq) from [<c011160c>] (__irq_svc+0x6c/0xa8)
[   12.860970] Exception stack(0xee8c5f98 to 0xee8c5fe0)
[   12.866042] 5f80:                                                       00000001 00000000
[   12.874254] 5fa0: 00000000 c011e6c0 00000000 00000000 ee8c4000 c0d0412c 00000002 ee8c5ff0
[   12.882466] 5fc0: c0d04194 00000000 00000001 ee8c5fe8 c010d400 c010d404 60000013 ffffffff
[   12.890679] [<c011160c>] (__irq_svc) from [<c010d404>] (arch_cpu_idle+0x2c/0x38)
[   12.898108] [<c010d404>] (arch_cpu_idle) from [<c015ef04>] (cpu_startup_entry+0xf0/0x1d0)
[   12.906322] [<c015ef04>] (cpu_startup_entry) from [<0010166c>] (0x10166c)
[   12.913143] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
Re: Debian on WD MyCloud EX 4100
June 26, 2017 01:05PM
Quote
saschadd
Do you mean that i should never turn of power in u-boot?
That would mean booting all the time into stock firmware when trying to kwboot.
Or is there a way to interrupt u-boot and do a shutdown from there?

The u-boot command 'reset' can be used to restart the unit.

Quote
saschadd
As i do plug power off while trying kwboot i did that all the time and not used the power switch.
There has to be an security log at very early stage as i get notes about the power losses (caused by unplugging to kwboot) when i log in mycloud webgui.

I am making an educated guess: this is the mcm logging the power state of the unit. See from peacemaker's page, the mcm controls power to the platform so it can wake on lan, wake on schedule, etc:
"You need to apply a patch to the kernel for the embedded micro controller to poweroff and reboot the device correctly"

Since this micro controller has the ability to power on/off the main SoC, it makes sense it is active even before u-boot executes.

Personally, I wouldn't worry about removing power while it is in u-boot. I doubt it's even dangerous to remove power when WD OS is booting, because it decompresses into memory and then runs from there. These devices are designed so that sudden removal of power will not corrupt them, otherwise Western Digital would have a lot more warranty claims.
Re: Debian on WD MyCloud EX 4100
June 26, 2017 01:43PM
bodhi,
good to read that. after your notes i was a bit worried if i could corrupt something by unplugging power cord.
Re: Debian on WD MyCloud EX 4100
June 26, 2017 04:37PM
saschadd,

1. Boot from stock:

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

loading uInitrd ...
** No boot file defined **

[   12.648694] VFS: Cannot open root device "LABEL=rootfs" or unknown-block(0,0): error -6

The USB rootfs has some problem. That uInitrd file was not loaded, so the root device could not be found by the kernel.


2. Removing power while in u-boot:

Normally, I would not worry about this if you were running one of my 2014 and later u-boot builds (I'm speaking generally about all boxes). But this is stock u-boot we are running. So the safest time to unplug power is when you have interrupted u-boot and at the console prompt. Don't unplug power while it is booting and loading (UBIFS was loading even before you see the console prompt). This is a precaution because we don't know everything about what stock u-boot does during that time.

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.

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

Your Email:


Subject:


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