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 07, 2017 03:21PM
saschadd,

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

Exactly! you've boot stock kernel but mounted the Debian rootfs.

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

If you plug in both the USB drive and HDD drive, then the box will boot kernel on USB (by envs) and then mount HDD rootfs (because it can't find the USB drive). Which is OK for now.

I'll post the envs to boot with only HDD to see how far we will get. The u-boot scsi command is the right command, but it seems to hang after the "scsi init", so the HDD-only booting might not possible.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on WD MyCloud EX 4100
June 07, 2017 06:21PM
Here is how to boot with SATA only.

setenv bootdev scsi
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 sata_set_bootargs 'setenv bootargs "console=ttyS0,115200 root=/dev/sda1 rootdelay=10 $mtdparts earlyprintk=serial"'

setenv sata_bootcmd 'echo Booting from SATA ...; setenv fdt_skip_update yes; run load_image; run load_initrd ; run sata_set_bootargs; bootm $load_image_addr $load_initrd_addr'
setenv bootcmd_sata 'scsi init; run sata_set_bootargs; run sata_bootcmd; reset'

run bootcmd_sata

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

seems you are right that it doesnt work this way with sata disk only

i added setenv dtb_file '/boot/dts/armada-385-wd-ex4100.dtb' because i used the original rootfs and not the patched version http://forum.doozan.com/read.php?2,34103,34599#msg-34599.

Marvell>> setenv dtb_file '/boot/dts/armada-385-wd-ex4100.dtb'
Marvell>> setenv bootdev scsi
Marvell>> setenv device '0:1'
Marvell>> setenv load_initr     0x2900000
Marvell>> setenv load_imag2000000
Marvell>>
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>>
Marvell>> setenv sata_set_bootargs 'setenv bootargs "console=ttyS0,115200 root=/dev/sda1 rootdelay=10 $mtdparts earlyprintk=serial"'
Marvell>>
Marvell>> setenv sata_bootcmd 'echo Booting from SATA ...; setenv fdt_skip_update yes; run load_image; run load_initrd ; run sata_set_bootargs; bootm $load_image_addr $load_initrd_addr'
Marvell>> setenv bootcmd_sata 'scsi init; run sata_set_bootargs; run sata_bootcmd; reset'
Marvell>>
Marvell>> run bootcmd_sata
AHCI init for unit0
SATA link 0 timeout.
SATA link 1 timeout.
AHCI init for unit1
Target spinup took 0 ms.
SATA link 1 timeout.

Error: SCSI Controller(s) 1B4B:9215 1B4B:9235 not found
scanning bus for devices...
  Device 0: (2:0) Vendor: ATA Prod.: ST3250318AS Rev: CC44
            Type: Hard Disk
            Capacity: 238475.1 MB = 232.8 GB (488397168 x 512)
Found 1 device(s).
Booting from SATA ...
loading Image ...
** No boot file defined **
loading uInitrd ...
** No boot file defined **
## Booting image at 02000000 ...

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

Starting kernel ...

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

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

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

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

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

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

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

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

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

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

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

Debian GNU/Linux 8 debian ttyS0

debian login:
Re: Debian on WD MyCloud EX 4100
June 08, 2017 12:26AM
saschadd,

I see.

But this is good and it indicates that SATA disk is OK:

Device 0: (2:0) Vendor: ATA Prod.: ST3250318AS Rev: CC44
            Type: Hard Disk
            Capacity: 238475.1 MB = 232.8 GB (488397168 x 512)
Found 1 device(s).
Booting from SATA ...

How about trying this.


Power up, interrupt serial console and

scsi init
ext2ls scsi 0:1 /boot

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on WD MyCloud EX 4100
June 08, 2017 12:41AM
well, this gives me

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

Error: SCSI Controller(s) 1B4B:9215 1B4B:9235 not found
scanning bus for devices...
  Device 0: (2:0) Vendor: ATA Prod.: ST3250318AS Rev: CC44
            Type: Hard Disk
            Capacity: 238475.1 MB = 232.8 GB (488397168 x 512)
Found 1 device(s).
Marvell>> ext2ls scsi 0:1 /boot
<DIR>       4096 .
<DIR>       4096 ..
         3904400 zImage-4.9.0-mvebu-tld-12
         3904400 zImage
         6210503 uInitrd
         3904400 vmlinuz-4.9.0-mvebu-tld-12
         6210439 initrd.img-4.9.0-mvebu-tld-12
         2845228 System.map-4.9.0-mvebu-tld-12
<DIR>       4096 dts
         3904464 uImage
          150531 config-4.9.0-mvebu-tld-12
Marvell>>
Re: Debian on WD MyCloud EX 4100
June 08, 2017 01:21AM
saschadd,

> Marvell>> ext2ls scsi 0:1 /boot
> <DIR> 4096 .
> <DIR> 4096 ..
> 3904400 zImage-4.9.0-mvebu-tld-12
> 3904400 zImage
> 6210503 uInitrd
> 3904400 vmlinuz-4.9.0-mvebu-tld-12
> 6210439 initrd.img-4.9.0-mvebu-tld-12
> 2845228 System.map-4.9.0-mvebu-tld-12
> <DIR> 4096 dts
> 3904464 uImage
> 150531 config-4.9.0-mvebu-tld-12
> Marvell>>[/code]

The above looks good! so I'm puzzled by the error:
Booting from SATA ...
loading Image ...
** No boot file defined **
loading uInitrd ...
** No boot file defined **

What is the partition type on this HDD ?

And how about if you try step-by-step, to see what the error is:
ext2load scsi 0:1 0x02000000 /boot/uImage
ext2load scsi 0:1 0x2900000 /boot/uInitrd

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on WD MyCloud EX 4100
June 08, 2017 01:52AM
bodhi Wrote:
-------------------------------------------------------
> What is the partition type on this HDD ?

its ext3 as in the rootfs howto

> And how about if you try step-by-step, to see what
> the error is:
>
> ext2load scsi 0:1 0x02000000 /boot/uImage
> ext2load scsi 0:1 0x2900000 /boot/uInitrd
>

seems fine

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

Error: SCSI Controller(s) 1B4B:9215 1B4B:9235 not found
scanning bus for devices...
  Device 0: (2:0) Vendor: ATA Prod.: ST3250318AS Rev: CC44
            Type: Hard Disk
            Capacity: 238475.1 MB = 232.8 GB (488397168 x 512)
Found 1 device(s).
Marvell>> ext2load scsi 0:1 0x02000000 /boot/uImage
3904464 bytes read in 219 ms (17 MiB/s)
Marvell>> ext2load scsi 0:1 0x2900000 /boot/uInitrd
6210503 bytes read in 237 ms (25 MiB/s)
Re: Debian on WD MyCloud EX 4100
June 08, 2017 12:00PM
saschadd,

That's encouraging! but it did not tell us much. Let break it down further.

setenv load_initrd_addr     0x2900000
setenv load_image_addr 0x02000000

setenv load_initrd 'echo loading uInitrd ...; ext2load scsi  0:1 $load_initrd_addr /boot/uInitrd'
setenv load_image 'echo loading Image ...; ext2load scsi 0:1 $load_image_addr /boot/uImage'

setenv bootargs 'console=ttyS0,115200 root=/dev/sda1 rootdelay=10 $mtdparts earlyprintk=serial'
setenv fdt_skip_update yes

scsi init
run load_image
run load_initrd 
bootm $load_image_addr $load_initrd_addr

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



Edited 2 time(s). Last edit at 06/08/2017 12:02PM by bodhi.
Re: Debian on WD MyCloud EX 4100
June 08, 2017 12:51PM
seems to be something wrong with that

Marvell>> setenv load_initrd_addr 0x2900000
Marvell>> setenv load_image_addr 0x02000000
Marvell>> setenv dtb_file '/boot/dts/armada-385-wd-ex4100.dtb'
Marvell>> setenv load_initrd 'echo loading uInitrd ...; ext2load scsi  0:1 $load_initrd_addr /boot/uInitrd'
Marvell>> setenv load_image 'echo loading Image ...; ext2load scsi 0:1 $load_image_addr /boot/uImage'
Marvell>> setenv bootargs 'console=ttyS0,115200 root=/dev/sda1 rootdelay=10 $mtdparts earlyprintk=serial'
Marvell>> setenv fdt_skip_update yes
Marvell>> scsi init
AHCI init for unit0
SATA link 0 timeout.
SATA link 1 timeout.
AHCI init for unit1
Target spinup took 0 ms.
SATA link 1 timeout.

Error: SCSI Controller(s) 1B4B:9215 1B4B:9235 not found
scanning bus for devices...
  Device 0: (2:0) Vendor: ATA Prod.: ST3250318AS Rev: CC44
            Type: Hard Disk
            Capacity: 238475.1 MB = 232.8 GB (488397168 x 512)
Found 1 device(s).
Marvell>> run load_image
loading Image ...
3904464 bytes read in 218 ms (17.1 MiB/s)
Marvell>> run load_initrd
loading uInitrd ...
6210503 bytes read in 237 ms (25 MiB/s)
Marvell>> bootm $load_image_addr $load_initrd_addr
## Booting image at 02000000 ...
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-4.9.0-mvebu-tld-12
   Created:      2017-02-04   0:22:26 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3904400 Bytes = 3.7 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 02900000 ...
   Image Name:   initramfs-4.9.0-mvebu-tld-12
   Created:      2017-02-03  23:57:32 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    6210439 Bytes = 5.9 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK
stopping USB..

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

Error: unrecognized/unsupported machine ID (r1 = 0x00000210).

Available machine support:

ID (hex)        NAME
ffffffff        Generic DT based system
ffffffff        Marvell Armada 39x (Device Tree)
ffffffff        Marvell Armada 380/385 (Device Tree)
ffffffff        Marvell Armada 375 (Device Tree)
ffffffff        Marvell Armada 370/XP (Device Tree)
ffffffff        Marvell Dove

Please check your kernel config and/or bootloader.
Re: Debian on WD MyCloud EX 4100
June 08, 2017 01:30PM
saschadd,


> Marvell>> setenv load_image 'echo loading Image ..
> .; ext2load scsi 0:1 $load_image_addr /boot/uImage
> '

> Error: unrecognized/unsupported machine ID (r1 = 0
> x00000210).
>
> Available machine support:
>
> ID (hex) NAME
> ffffffff Generic DT based system
> ffffffff Marvell Armada 39x (Device Tree)
> ffffffff Marvell Armada 380/385 (Device Tre
> e)
> ffffffff Marvell Armada 375 (Device Tree)
> ffffffff Marvell Armada 370/XP (Device Tree
> )
> ffffffff Marvell Dove
>
> Please check your kernel config and/or bootloader.
> [/code]


This uImage does not have the DTB appended to it. We need that for the SATA rootfs too!

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on WD MyCloud EX 4100
June 08, 2017 01:37PM
bodhi Wrote:
-------------------------------------------------------
> This uImage does not have the DTB appended to it.
> We need that for the SATA rootfs too!

Thats why i added

setenv dtb_file '/boot/dts/armada-385-wd-ex4100.dtb'

but seems not to work here. Will prepare the disks uimage.

Btw do you have an idea why picocom sometimes eats up text i copy paste into the console?
When i copy/pasted your last envs after run load_image there was only an r pasted next and nothing more.
Re: Debian on WD MyCloud EX 4100
June 08, 2017 01:43PM
saschadd,

> Thats why i added
>
> setenv dtb_file '/boot/dts/armada-385-wd-ex4100.dt
> b'
>
> but seems not to work here. Will prepare the disks
> uimage.

Seperated DTB does not seem to work with this stock u-boot in this box. That's the difference between the EX4100 and NAS326 which threw me off track in the beginning.

>
> Btw do you have an idea why picocom sometimes eats
> up text i copy paste into the console?
> When i copy/pasted your last envs after run load_i
> mage there was only an r pasted next and nothing m
> ore.

I think it's not picocom fault. I never have this problem running it. It's the terminal you are using to run picocom.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on WD MyCloud EX 4100
June 08, 2017 01:48PM
with appended dtb-file

Marvell>> setenv load_initrd_addr 0x2900000
Marvell>> setenv load_image_addr 0x02000000
Marvell>> setenv load_initrd 'echo loading uInitrd ...; ext2load scsi  0:1 $load_initrd_addr /boot/uInitrd'
Marvell>> setenv load_image 'echo loading Image ...; ext2load scsi 0:1 $load_image_addr /boot/uImage'
Marvell>> setenv bootargs 'console=ttyS0,115200 root=/dev/sda1 rootdelay=10 $mtdparts earlyprintk=serial'
Marvell>> setenv fdt_skip_update yes
Marvell>> scsi init
AHCI init for unit0
SATA link 0 timeout.
SATA link 1 timeout.
AHCI init for unit1
Target spinup took 0 ms.
SATA link 1 timeout.

Error: SCSI Controller(s) 1B4B:9215 1B4B:9235 not found
scanning bus for devices...
  Device 0: (2:0) Vendor: ATA Prod.: ST3250318AS Rev: CC44
            Type: Hard Disk
            Capacity: 238475.1 MB = 232.8 GB (488397168 x 512)
Found 1 device(s).
Marvell>> run load_image
loading Image ...
3919325 bytes read in 192 ms (19.5 MiB/s)
Marvell>> run load_initrd
loading uInitrd ...
6210503 bytes read in 239 ms (24.8 MiB/s)
Marvell>> bootm $load_image_addr $load_initrd_addr
## Booting image at 02000000 ...
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-4.9.0-mvebu-tld-12
   Created:      2017-06-08  19:40:19 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3919261 Bytes = 3.7 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 02900000 ...
   Image Name:   initramfs-4.9.0-mvebu-tld-12
   Created:      2017-02-03  23:57:32 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    6210439 Bytes = 5.9 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK
stopping USB..

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.9.0-mvebu-tld-12 (root@tldDebianVM) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4) ) #2 SMP PREEMPT Wed Feb 1 02:31:29 PST 2017
[    0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt:Machine model: WD My Cloud EX4100
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 15 pages/cpu @eefcd000 s30796 r8192 d22452 u61440
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 522752
[    0.000000] Kernel command line:  console=ttyS0,115200 root=/dev/sda1 rootdelay=10 $mtdparts earlyprintk=serial
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 2060316K/2097152K available (8192K kernel code, 690K rwdata, 2052K rodata, 1024K init, 386K bss, 36836K reserved, 0K cma-reserved, 1310720K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0900000   (9184 kB)
[    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
[    0.000000]       .data : 0xc0d00000 - 0xc0daca28   ( 691 kB)
[    0.000000]        .bss : 0xc0daca28 - 0xc0e0d4f8   ( 387 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 32.
[    0.000000]  RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=2
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] mvebu_mbus: [Firmware Warn]: deprecated mbus-mvebu Device Tree, suspend/resume will not work
[    0.000000] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000] L2C-310 D prefetch enabled, offset 1 lines
[    0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000] L2C-310 Coherent cache controller enabled, 16 ways, 1024 kB
[    0.000000] L2C-310 Coherent: CACHE_ID 0x410054c9, AUX_CTRL 0x56070001
[    0.000000] Switching to timer-based delay loop, resolution 40ns
[    0.000003] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 85899345900ns
[    0.007881] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.019058] Console: colour dummy device 80x30
[    0.023572] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[    0.033976] pid_max: default: 32768 minimum: 301
[    0.038730] Security Framework initialized
[    0.042924] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.049597] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.057102] CPU: Testing write buffer coherency: ok
[    0.062172] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.067911] Setting up static identity map for 0x100000 - 0x100058
[    0.074214] mvebu-soc-id: MVEBU SoC ID=0x6828, Rev=0x4
[    0.079473] mvebu-pmsu: Initializing Power Management Service Unit
[    0.283911] Booting CPU 1
[    0.286757] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.286806] Brought up 2 CPUs
[    0.295565] SMP: Total of 2 processors activated (100.00 BogoMIPS).
[    0.301885] CPU: All CPU(s) started in SVC mode.
[    0.307118] devtmpfs: initialized
[    0.312401] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.320345] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.330271] prandom: seed boundary self test passed
[    0.336896] prandom: 100 self tests passed
[    0.341056] pinctrl core: initialized pinctrl subsystem
[    0.346977] NET: Registered protocol family 16
[    0.352011] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.393867] cpuidle: using governor ladder
[    0.423865] cpuidle: using governor menu
[    0.427931] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.436000] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.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.504833] vgaarb: loaded
[    0.507844] SCSI subsystem initialized
[    0.512070] usbcore: registered new interface driver usbfs
[    0.517702] usbcore: registered new interface driver hub
[    0.523126] usbcore: registered new device driver usb
[    0.528447] media: Linux media interface: v0.10
[    0.533092] Linux video capture interface: v2.00
[    0.538579] clocksource: Switched to clocksource armada_370_xp_clocksource
[    0.569900] VFS: Disk quotas dquot_6.6.0
[    0.573928] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.587761] NET: Registered protocol family 2
[    0.592582] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.599731] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.606282] TCP: Hash tables configured (established 8192 bind 8192)
[    0.612750] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.618763] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.625271] NET: Registered protocol family 1
[    0.629954] RPC: Registered named UNIX socket transport module.
[    0.635930] RPC: Registered udp transport module.
[    0.640710] RPC: Registered tcp transport module.
[    0.645474] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.652100] Unpacking initramfs...
[    0.859227] Freeing initrd memory: 6068K (c2900000 - c2eed000)
[    0.865200] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.871971] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.881124] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.887327] audit: initializing netlink subsys (disabled)
[    0.892840] audit: type=2000 audit(0.880:1): initialized
[    0.898641] Initialise system trusted keyrings
[    0.903278] workingset: timestamp_bits=30 max_order=19 bucket_order=0
[    0.909860] zbud: loaded
[    0.912928] NFS: Registering the id_resolver key type
[    0.918048] Key type id_resolver registered
[    0.922311] Key type id_legacy registered
[    0.926391] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.933166] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.939713] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.947096] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.953721] orangefs_init: module version upstream loaded
[    0.960945] Key type asymmetric registered
[    0.965107] Asymmetric key parser 'x509' registered
[    0.970095] bounce: pool size: 64 pages
[    0.974064] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.981519] io scheduler noop registered
[    0.985506] io scheduler deadline registered
[    0.989871] io scheduler cfq registered (default)
[    0.995440] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    1.003855] mvebu-pcie soc:pcie-controller: PCI host bridge to bus 0000:00
[    1.010817] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    1.017140] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    1.024077] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.030018] PCI: bus0: Fast back to back transfers disabled
[    1.035654] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.043725] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.051903] PCI: bus1: Fast back to back transfers enabled
[    1.057561] PCI: bus2: Fast back to back transfers enabled
[    1.063155] pci 0000:00:01.0: PCI bridge to [bus 01]
[    1.068184] pci 0000:00:02.0: PCI bridge to [bus 02]
[    1.073647] mv_xor f1060800.xor: Marvell shared XOR driver
[    1.138978] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.146586] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.208984] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.258807] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.266471] console [ttyS0] disabled
[    1.290228] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 22, base_baud = 12500000) is a 16550A
[    1.299276] console [ttyS0] enabled
[    1.299276] console [ttyS0] enabled
[    1.306365] bootconsole [earlycon0] disabled
[    1.306365] bootconsole [earlycon0] disabled
[    1.315975] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.325081] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.334660] scsi host0: ahci-mvebu
[    1.338362] scsi host1: ahci-mvebu
[    1.341991] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 42
[    1.349968] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 42
[    1.358046] ahci-mvebu f10e0000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.367146] ahci-mvebu f10e0000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.376535] scsi host2: ahci-mvebu
[    1.380179] scsi host3: ahci-mvebu
[    1.383735] ata3: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x100 irq 43
[    1.391712] ata4: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x180 irq 43
[    1.400143] pxa3xx-nand f10d0000.flash: This platform can't do DMA on this device
[    1.407975] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xdc
[    1.414378] nand: Hynix H27U4G8F2DTR-BC
[    1.418231] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.425843] pxa3xx-nand f10d0000.flash: ECC strength 16, ECC step size 2048
[    1.433045] Bad block table found at page 262080, version 0x01
[    1.439233] Bad block table found at page 262016, version 0x01
[    1.445261] nand_read_bbt: bad block at 0x00000dcc0000
[    1.450441] nand_read_bbt: bad block at 0x00000fb00000
[    1.455602] nand_read_bbt: bad block at 0x000012180000
[    1.460768] nand_read_bbt: bad block at 0x0000139a0000
[    1.465929] nand_read_bbt: bad block at 0x000017880000
[    1.471105] nand_read_bbt: bad block at 0x0000178a0000
[    1.476265] nand_read_bbt: bad block at 0x00001a640000
[    1.481433] nand_read_bbt: bad block at 0x00001e9c0000
[    1.486617] 3 ofpart partitions found on MTD device pxa3xx_nand-0
[    1.492752] Creating 3 MTD partitions on "pxa3xx_nand-0":
[    1.498175] 0x000000000000-0x000000800000 : "U-Boot"
[    1.513839] 0x000000800000-0x000001000000 : "Linux"
[    1.529371] 0x000001000000-0x000040000000 : "Filesystem"
[    1.534708] mtd: partition "Filesystem" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x1f000000
[    1.558621] m25p80 spi0.0: unrecognized JEDEC id bytes: ff, ff, ff
[    1.565268] libphy: Fixed MDIO Bus: probed
[    1.569691] libphy: mdio_driver_register: mv88e6085
[    1.574730] libphy: orion_mdio_bus: probed
[    1.584380] mvneta_bm f10c8000.bm: Buffer Manager for network controller enabled
[    1.593439] mvneta f1070000.ethernet eth0: Using random mac address 42:8d:11:83:11:d6
[    1.602825] mvneta f1030000.ethernet eth1: Using random mac address 52:06:2d:4c:a8:c4
[    1.610910] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.617477] ehci-pci: EHCI PCI platform driver
[    1.622007] ehci-orion: EHCI orion driver
[    1.626129] orion-ehci f1058000.usb: EHCI Host Controller
[    1.631587] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    1.639249] orion-ehci f1058000.usb: irq 38, io mem 0xf1058000
[    1.668599] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    1.674653] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.681482] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.688753] usb usb1: Product: EHCI Host Controller
[    1.689867] ata1: SATA link down (SStatus 0 SControl 300)
[    1.699091] usb usb1: Manufacturer: Linux 4.9.0-mvebu-tld-12 ehci_hcd
[    1.699876] ata2: SATA link down (SStatus 0 SControl 300)
[    1.710992] usb usb1: SerialNumber: f1058000.usb
[    1.715941] hub 1-0:1.0: USB hub found
[    1.719742] hub 1-0:1.0: 1 port detected
[    1.724110] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.729467] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    1.737047] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.739854] ata4: SATA link down (SStatus 0 SControl 300)
[    1.751078] xhci-hcd f10f0000.usb3: irq 46, io mem 0xf10f0000
[    1.756928] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    1.763778] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.771039] usb usb2: Product: xHCI Host Controller
[    1.775937] usb usb2: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.782421] usb usb2: SerialNumber: f10f0000.usb3
[    1.787432] hub 2-0:1.0: USB hub found
[    1.791222] hub 2-0:1.0: 1 port detected
[    1.795324] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.800689] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
[    1.808256] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.816444] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    1.823281] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.831133] usb usb3: Product: xHCI Host Controller
[    1.836031] usb usb3: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.842516] usb usb3: SerialNumber: f10f0000.usb3
[    1.847515] hub 3-0:1.0: USB hub found
[    1.851304] hub 3-0:1.0: 1 port detected
[    1.855469] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.860837] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    1.868422] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.877014] xhci-hcd f10f8000.usb3: irq 47, io mem 0xf10f8000
[    1.882878] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002
[    1.889704] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.896956] usb usb4: Product: xHCI Host Controller
[    1.898593] ata3: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    1.908123] usb usb4: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.908131] ata3.00: ATA-8: ST3250318AS, CC44, max UDMA/133
[    1.908135] ata3.00: 488397168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    1.926943] usb usb4: SerialNumber: f10f8000.usb3
[    1.926953] ata3.00: configured for UDMA/133
[    1.936270] hub 4-0:1.0: USB hub found
[    1.937275] scsi 2:0:0:0: Direct-Access     ATA      ST3250318AS      CC44 PQ: 0 ANSI: 5
[    1.948194] hub 4-0:1.0: 1 port detected
[    1.952311] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.957651] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5
[    1.965274] usb usb5: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.973469] usb usb5: New USB device found, idVendor=1d6b, idProduct=0003
[    1.980297] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.987549] usb usb5: Product: xHCI Host Controller
[    1.992454] usb usb5: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.998929] usb usb5: SerialNumber: f10f8000.usb3
[    2.003938] hub 5-0:1.0: USB hub found
[    2.007719] hub 5-0:1.0: 1 port detected
[    2.009060] sd 2:0:0:0: [sda] 488397168 512-byte logical blocks: (250 GB/233 GiB)
[    2.009169] sd 2:0:0:0: [sda] Write Protect is off
[    2.009220] sd 2:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    2.019359]  sda: sda1
[    2.020046] sd 2:0:0:0: [sda] Attached SCSI removable disk
[    2.041384] usbcore: registered new interface driver usblp
[    2.046963] usbcore: registered new interface driver usb-storage
[    2.053196] mousedev: PS/2 mouse device common for all mice
[    2.059282] armada38x-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[    2.067089] i2c /dev entries driver
[    2.082283] orion_wdt: Initial timeout 171 sec
[    2.087942] marvell-cesa f1090000.crypto: CESA device successfully registered
[    2.095372] hidraw: raw HID events driver (C) Jiri Kosina
[    2.101107] usbcore: registered new interface driver usbhid
[    2.106703] usbhid: USB HID core driver
[    2.110712] drop_monitor: Initializing network drop monitor service
[    2.117034] Netfilter messages via NETLINK v0.30.
[    2.121791] ip_set: protocol 6
[    2.125029] NET: Registered protocol family 10
[    2.140052] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    2.146871] NET: Registered protocol family 17
[    2.148613] usb 2-1: new high-speed USB device number 2 using xhci-hcd
[    2.158066] 8021q: 802.1Q VLAN Support v1.8
[    2.162298] Key type dns_resolver registered
[    2.166667] ThumbEE CPU extension supported.
[    2.170981] Registering SWP/SWPB emulation handler
[    2.176201] registered taskstats version 1
[    2.180329] Loading compiled-in X.509 certificates
[    2.185176] zswap: loaded using pool lzo/zbud
[    2.232300] Key type big_key registered
[    2.239558] Key type encrypted registered
[    2.244612] armada38x-rtc f10a3800.rtc: setting system clock to 2017-06-08 19:42:43 UTC (1496950963)
[    2.254792] Freeing unused kernel memory: 1024K (c0c00000 - c0d00000)
Loading, please wait...
[    2.295070] systemd-udevd[1333]: starting version 215
[    2.301013] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    2.318864] usb 2-1: New USB device found, idVendor=045b, idProduct=0209
[    2.325608] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.349292] hub 2-1:1.0: USB hub found
[    2.358642] hub 2-1:1.0: 4 ports detected
[    2.404211] sd 2:0:0:0: Attached scsi generic sg0 type 0
[    2.458803] usb 3-1: new SuperSpeed USB device number 2 using xhci-hcd
[    2.490206] usb 3-1: New USB device found, idVendor=045b, idProduct=0210
[    2.496962] usb 3-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.509141] hub 3-1:1.0: USB hub found
[    2.514828] hub 3-1:1.0: 4 ports detected
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
modprobe: module ext3 not found in modules.dep
Begin: Will now check root file system ... fsck from util-linux 2.25.2
[   12.651785] random: fast init done
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.673353] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   17.740602] 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[   20.387609] systemd-udevd[1536]: starting version 215
. ok
[ ok ] Synthesizing the initial hotplug events...done.
[ ok ] Waiting for /dev to be fully populated...done.
[ ok ] Activating swap...done.
[   22.069797] EXT4-fs (sda1): re-mounted. Opts: (null)
[....] Checking root file system...fsck from util-linux 2.25.2
rootfs: clean, 34131/15269888 files, 1139475/61049390 blocks
done.
[   22.498142] 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.
[   24.558991] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   24.567775] random: crng init done
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.3.1
Copyright 2004-2014 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/42:8d:11:83:11:d6
Sending on   LPF/eth0/42:8d:11:83:11:d6
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 18
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 2
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
done.
[ ok ] Starting rpcbind daemon....
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
2490 (syslogd)
. ok
[ ok ] Starting NTP server: ntpd.
[ ok ] Starting periodic command scheduler: cron.
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[ ok ] Starting system message bus: dbus.
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
2493 (klogd)
. ok

Debian GNU/Linux 8 debian ttyS0

debian login:
Re: Debian on WD MyCloud EX 4100
June 08, 2017 02:40PM
saschadd,

Excellent :)

So we are done verifying the kernel and rootfs canrun a full Debian system on SATA.

The next step is:

1. Fix the bootargs mtdpart (mtdparts variable was not expanded to its value):

[    0.000000] Kernel command line:  console=ttyS0,115200 root=/dev/sda1 rootdelay=10 $mtdparts earlyprintk=serial

Try setting the bootargs to
setenv bootargs 'console=ttyS0,115200 root=/dev/sda1 rootdelay=10 ${mtdparts} earlyprintk=serial'
If the above did not work then, use
setenv bootargs 'console=ttyS0,115200 root=/dev/sda1 rootdelay=10 $(mtdparts) earlyprintk=serial'
If the above did not work then, use
setenv bootargs 'console=ttyS0,115200 root=/dev/sda1 rootdelay=10  mtdparts=armada-nand:5m(u-boot)ro,5m@5m(kernel),5m@10m(uRamdisk),441m@15m(image.cfs),15m@456m(rescue_fw),20m@471m(config),10m@491m(reserve1),10m@501m(reserve2)  earlyprintk=serial'


After booting into Debian with the bootargs change, post serial boot log to make sure there is no problem, and then verify the mtd partitions
cat /proc/mtd


2. Boot back to stock OS and get the location of the u-boot envs

cat /etc/fw_env.config


3. Reboot back to Debian and copy the content of the stock version to the rootfs /etc/fw_env.config.

4. And try

fw_printenv

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



Edited 1 time(s). Last edit at 06/08/2017 03:06PM by bodhi.
Re: Debian on WD MyCloud EX 4100
June 09, 2017 02:36AM
bodhi,

following the console output after each setenv change

bodhi Wrote:
-------------------------------------------------------
> Try setting the bootargs to
>
> setenv bootargs 'console=ttyS0,115200 root=/dev/sda1 rootdelay=10 ${mtdparts} earlyprintk=serial'
>

[ 0.000000] Kernel command line: console=ttyS0,115200 root=/dev/sda1 rootdelay=10 ${mtdparts} earlyprintk=serial

> If the above did not work then, use
>
> setenv bootargs 'console=ttyS0,115200 root=/dev/sda1 rootdelay=10 $(mtdparts) earlyprintk=serial'
>

[ 0.000000] Kernel command line: console=ttyS0,115200 root=/dev/sda1 rootdelay=10 $(mtdparts) earlyprintk=serial

> If the above did not work then, use
>
> setenv bootargs 'console=ttyS0,115200 root=/dev/sda1 rootdelay=10  mtdparts=armada-nand:5m(u-boot)ro ,5m@5m(kernel),5m@10m(uRamdisk),441m@15m(image.cfs ),15m@456m(rescue_fw),20m@471m(config),10m@491m(reserve1),10m@501m(reserve2)  earlyprintk=serial'
>

[ 0.000000] Kernel command line: console=ttyS0,115200 root=/dev/sda1 rootdelay=10 mtdparts=armada-nand:5m(u-boot)ro,5m@5m(kernel),5m@10m(uRamdisk),441m@15m(image.cfs),15m@456m(rescue_fw),20m@471m(config),10m@491m(reserve1),10m@501m(reserve2) earlyprintk=serial


Could it be that none of them worked?!



Edited 1 time(s). Last edit at 06/09/2017 02:38AM by saschadd.
Re: Debian on WD MyCloud EX 4100
June 09, 2017 12:35PM
saschadd,

> setenv bootargs 'console=ttyS0,115200 root=/dev/sda1 rootdelay=10  mtdparts=armada-nand:5m(u-boot)ro ,5m@5m(kernel),5m@10m(uRamdisk),441m@15m(image.cfs ),15m@456m(rescue_fw),20m@471m(config),10m@491m(reserve1),10m@501m(reserve2)  earlyprintk=serial'

[ 0.000000] Kernel command line: console=ttyS0,115200 root=/dev/sda1 rootdelay=10 mtdparts=armada-nand:5m(u-boot)ro,5m@5m(kernel),5m@10m(uRamdisk),441m@15m(image.cfs),15m@456m(rescue_fw),20m@471m(config),10m@491m(reserve1),10m@501m(reserve2) earlyprintk=serial


The last one is good. The Kernel command line is what we want to see.

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



Edited 1 time(s). Last edit at 06/09/2017 12:42PM by bodhi.
Re: Debian on WD MyCloud EX 4100
June 09, 2017 02:15PM
Good that i asked, they looked all the same to me. ;)

Ok, so here the debian part

Marvell>> setenv load_initrd_addr 0x2900000
Marvell>> setenv load_image_addr 0x02000000
Marvell>> setenv load_initrd 'echo loading uInitrd ...; ext2load scsi  0:1 $load_initrd_addr /boot/uInitrd'
Marvell>> setenv load_image 'echo loading Image ...; ext2load scsi 0:1 $load_image_addr /boot/uImage'
Marvell>> setenv bootargs 'console=ttyS0,115200 root=/dev/sda1 rootdelay=10  mtdparts=armada-nand:5m(u-boot)ro,5m@5m(kernel),5m@10m(uRamdisk),441m@15m(image.cfs),15m@456m(rescue_fw),20m@471m(config),10m@491m(reserve1),10m@501m(reserve2)  earlyprintk=serial'
Marvell>> setenv fdt_skip_update yes
Marvell>> scsi init
AHCI init for unit0
SATA link 0 timeout.
SATA link 1 timeout.
AHCI init for unit1
Target spinup took 0 ms.
SATA link 1 timeout.

Error: SCSI Controller(s) 1B4B:9215 1B4B:9235 not found
scanning bus for devices...
  Device 0: (2:0) Vendor: ATA Prod.: ST3250318AS Rev: CC44
            Type: Hard Disk
            Capacity: 238475.1 MB = 232.8 GB (488397168 x 512)
Found 1 device(s).
Marvell>> run load_image
loading Image ...
3919325 bytes read in 200 ms (18.7 MiB/s)
Marvell>> run load_initrd
loading uInitrd ...
6210503 bytes read in 237 ms (25 MiB/s)
Marvell>> bootm $load_image_addr $load_initrd_addr
## Booting image at 02000000 ...
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-4.9.0-mvebu-tld-12
   Created:      2017-06-08  19:40:19 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3919261 Bytes = 3.7 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 02900000 ...
   Image Name:   initramfs-4.9.0-mvebu-tld-12
   Created:      2017-02-03  23:57:32 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    6210439 Bytes = 5.9 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK
stopping USB..

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.9.0-mvebu-tld-12 (root@tldDebianVM) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4) ) #2 SMP PREEMPT Wed Feb 1 02:31:29 PST 2017
[    0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt:Machine model: WD My Cloud EX4100
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 15 pages/cpu @eefcd000 s30796 r8192 d22452 u61440
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 522752
[    0.000000] Kernel command line:  console=ttyS0,115200 root=/dev/sda1 rootdelay=10  mtdparts=armada-nand:5m(u-boot)ro,5m@5m(kernel),5m@10m(uRamdisk),441m@15m(image.cfs),15m@456m(rescue_fw),20m@471m(config),10m@491m(reserve1),10m@501m(reserve2)  earlyprintk=serial
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 2060316K/2097152K available (8192K kernel code, 690K rwdata, 2052K rodata, 1024K init, 386K bss, 36836K reserved, 0K cma-reserved, 1310720K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0900000   (9184 kB)
[    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
[    0.000000]       .data : 0xc0d00000 - 0xc0daca28   ( 691 kB)
[    0.000000]        .bss : 0xc0daca28 - 0xc0e0d4f8   ( 387 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 32.
[    0.000000]  RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=2
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] mvebu_mbus: [Firmware Warn]: deprecated mbus-mvebu Device Tree, suspend/resume will not work
[    0.000000] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000] L2C-310 D prefetch enabled, offset 1 lines
[    0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000] L2C-310 Coherent cache controller enabled, 16 ways, 1024 kB
[    0.000000] L2C-310 Coherent: CACHE_ID 0x410054c9, AUX_CTRL 0x56070001
[    0.000000] Switching to timer-based delay loop, resolution 40ns
[    0.000003] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 85899345900ns
[    0.007881] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.019057] Console: colour dummy device 80x30
[    0.023572] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[    0.033976] pid_max: default: 32768 minimum: 301
[    0.038729] Security Framework initialized
[    0.042922] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.049595] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.057098] CPU: Testing write buffer coherency: ok
[    0.062167] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.067904] Setting up static identity map for 0x100000 - 0x100058
[    0.074208] mvebu-soc-id: MVEBU SoC ID=0x6828, Rev=0x4
[    0.079468] mvebu-pmsu: Initializing Power Management Service Unit
[    0.283913] Booting CPU 1
[    0.286759] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.286808] Brought up 2 CPUs
[    0.295567] SMP: Total of 2 processors activated (100.00 BogoMIPS).
[    0.301887] CPU: All CPU(s) started in SVC mode.
[    0.307120] devtmpfs: initialized
[    0.312412] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.320353] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.330278] prandom: seed boundary self test passed
[    0.336903] prandom: 100 self tests passed
[    0.341063] pinctrl core: initialized pinctrl subsystem
[    0.346986] NET: Registered protocol family 16
[    0.352028] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.393869] cpuidle: using governor ladder
[    0.423867] cpuidle: using governor menu
[    0.427933] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.436002] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.441981] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.450136] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.514854] vgaarb: loaded
[    0.517846] SCSI subsystem initialized
[    0.522072] usbcore: registered new interface driver usbfs
[    0.527692] usbcore: registered new interface driver hub
[    0.533116] usbcore: registered new device driver usb
[    0.538432] media: Linux media interface: v0.10
[    0.543077] Linux video capture interface: v2.00
[    0.548565] clocksource: Switched to clocksource armada_370_xp_clocksource
[    0.579917] VFS: Disk quotas dquot_6.6.0
[    0.583945] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.597986] NET: Registered protocol family 2
[    0.602784] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.609929] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.616479] TCP: Hash tables configured (established 8192 bind 8192)
[    0.622935] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.628940] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.635445] NET: Registered protocol family 1
[    0.640110] RPC: Registered named UNIX socket transport module.
[    0.646086] RPC: Registered udp transport module.
[    0.650861] RPC: Registered tcp transport module.
[    0.655625] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.662237] Unpacking initramfs...
[    0.869212] Freeing initrd memory: 6068K (c2900000 - c2eed000)
[    0.875186] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.881955] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.891115] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.897319] audit: initializing netlink subsys (disabled)
[    0.902823] audit: type=2000 audit(0.890:1): initialized
[    0.908619] Initialise system trusted keyrings
[    0.913252] workingset: timestamp_bits=30 max_order=19 bucket_order=0
[    0.919822] zbud: loaded
[    0.922885] NFS: Registering the id_resolver key type
[    0.928003] Key type id_resolver registered
[    0.932265] Key type id_legacy registered
[    0.936345] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.943107] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.949653] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.957035] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.963647] orangefs_init: module version upstream loaded
[    0.970942] Key type asymmetric registered
[    0.975104] Asymmetric key parser 'x509' registered
[    0.980080] bounce: pool size: 64 pages
[    0.984052] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.991507] io scheduler noop registered
[    0.995494] io scheduler deadline registered
[    0.999847] io scheduler cfq registered (default)
[    1.005410] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    1.013841] mvebu-pcie soc:pcie-controller: PCI host bridge to bus 0000:00
[    1.020787] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    1.027109] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    1.034043] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.039968] PCI: bus0: Fast back to back transfers disabled
[    1.045604] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.053672] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.061838] PCI: bus1: Fast back to back transfers enabled
[    1.067498] PCI: bus2: Fast back to back transfers enabled
[    1.073090] pci 0000:00:01.0: PCI bridge to [bus 01]
[    1.078119] pci 0000:00:02.0: PCI bridge to [bus 02]
[    1.083568] mv_xor f1060800.xor: Marvell shared XOR driver
[    1.148970] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.156578] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.218965] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.269402] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.277058] console [ttyS0] disabled
[    1.300788] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 22, base_baud = 12500000) is a 16550A
[    1.309822] console [ttyS0] enabled
[    1.309822] console [ttyS0] enabled
[    1.316909] bootconsole [earlycon0] disabled
[    1.316909] bootconsole [earlycon0] disabled
[    1.326514] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.335621] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.345187] scsi host0: ahci-mvebu
[    1.348889] scsi host1: ahci-mvebu
[    1.352496] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 42
[    1.360459] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 42
[    1.368542] ahci-mvebu f10e0000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.377646] ahci-mvebu f10e0000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.387025] scsi host2: ahci-mvebu
[    1.400679] scsi host3: ahci-mvebu
[    1.404248] ata3: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x100 irq 43
[    1.412213] ata4: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x180 irq 43
[    1.420641] pxa3xx-nand f10d0000.flash: This platform can't do DMA on this device
[    1.428491] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xdc
[    1.434908] nand: Hynix H27U4G8F2DTR-BC
[    1.438807] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.446411] pxa3xx-nand f10d0000.flash: ECC strength 16, ECC step size 2048
[    1.453604] Bad block table found at page 262080, version 0x01
[    1.459793] Bad block table found at page 262016, version 0x01
[    1.465821] nand_read_bbt: bad block at 0x00000dcc0000
[    1.470991] nand_read_bbt: bad block at 0x00000fb00000
[    1.476151] nand_read_bbt: bad block at 0x000012180000
[    1.481318] nand_read_bbt: bad block at 0x0000139a0000
[    1.486479] nand_read_bbt: bad block at 0x000017880000
[    1.491643] nand_read_bbt: bad block at 0x0000178a0000
[    1.496803] nand_read_bbt: bad block at 0x00001a640000
[    1.501970] nand_read_bbt: bad block at 0x00001e9c0000
[    1.507162] 3 ofpart partitions found on MTD device pxa3xx_nand-0
[    1.513287] Creating 3 MTD partitions on "pxa3xx_nand-0":
[    1.518717] 0x000000000000-0x000000800000 : "U-Boot"
[    1.524366] 0x000000800000-0x000001000000 : "Linux"
[    1.539900] 0x000001000000-0x000040000000 : "Filesystem"
[    1.545236] mtd: partition "Filesystem" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x1f000000
[    1.569123] m25p80 spi0.0: unrecognized JEDEC id bytes: ff, ff, ff
[    1.575771] libphy: Fixed MDIO Bus: probed
[    1.580181] libphy: mdio_driver_register: mv88e6085
[    1.585218] libphy: orion_mdio_bus: probed
[    1.594992] mvneta_bm f10c8000.bm: Buffer Manager for network controller enabled
[    1.604039] mvneta f1070000.ethernet eth0: Using random mac address de:89:bf:74:98:f1
[    1.613433] mvneta f1030000.ethernet eth1: Using random mac address 42:e3:60:15:2d:96
[    1.621493] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.628059] ehci-pci: EHCI PCI platform driver
[    1.632574] ehci-orion: EHCI orion driver
[    1.636693] orion-ehci f1058000.usb: EHCI Host Controller
[    1.642139] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    1.649803] orion-ehci f1058000.usb: irq 38, io mem 0xf1058000
[    1.678573] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    1.684632] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.691472] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.698741] usb usb1: Product: EHCI Host Controller
[    1.699909] ata1: SATA link down (SStatus 0 SControl 300)
[    1.709088] usb usb1: Manufacturer: Linux 4.9.0-mvebu-tld-12 ehci_hcd
[    1.710015] ata2: SATA link down (SStatus 0 SControl 300)
[    1.720996] usb usb1: SerialNumber: f1058000.usb
[    1.725945] hub 1-0:1.0: USB hub found
[    1.729748] hub 1-0:1.0: 1 port detected
[    1.734126] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.739494] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    1.747085] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.755687] xhci-hcd f10f0000.usb3: irq 46, io mem 0xf10f0000
[    1.761552] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    1.768380] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.775649] ata4: SATA link down (SStatus 0 SControl 300)
[    1.781110] usb usb2: Product: xHCI Host Controller
[    1.786008] usb usb2: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.792484] usb usb2: SerialNumber: f10f0000.usb3
[    1.797500] hub 2-0:1.0: USB hub found
[    1.801295] hub 2-0:1.0: 1 port detected
[    1.805394] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.810747] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
[    1.818314] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.826504] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    1.833331] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.840687] usb usb3: Product: xHCI Host Controller
[    1.845586] usb usb3: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.852064] usb usb3: SerialNumber: f10f0000.usb3
[    1.857063] hub 3-0:1.0: USB hub found
[    1.860852] hub 3-0:1.0: 1 port detected
[    1.865016] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.870371] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    1.877954] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.886545] xhci-hcd f10f8000.usb3: irq 47, io mem 0xf10f8000
[    1.892402] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002
[    1.899228] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.906482] usb usb4: Product: xHCI Host Controller
[    1.911427] usb usb4: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.917895] usb usb4: SerialNumber: f10f8000.usb3
[    1.918577] ata3: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    1.928855] ata3.00: ATA-8: ST3250318AS, CC44, max UDMA/133
[    1.934507] ata3.00: 488397168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    1.934632] hub 4-0:1.0: USB hub found
[    1.934648] hub 4-0:1.0: 1 port detected
[    1.934811] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.934818] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5
[    1.934860] usb usb5: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.934918] usb usb5: New USB device found, idVendor=1d6b, idProduct=0003
[    1.934922] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.934924] usb usb5: Product: xHCI Host Controller
[    1.934927] usb usb5: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.934929] usb usb5: SerialNumber: f10f8000.usb3
[    1.941486] hub 5-0:1.0: USB hub found
[    1.941503] hub 5-0:1.0: 1 port detected
[    1.941802] usbcore: registered new interface driver usblp
[    1.941897] usbcore: registered new interface driver usb-storage
[    1.949090] mousedev: PS/2 mouse device common for all mice
[    1.954487] armada38x-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[    1.954634] i2c /dev entries driver
[    1.984530] orion_wdt: Initial timeout 171 sec
[    1.985832] marvell-cesa f1090000.crypto: CESA device successfully registered
[    1.985940] hidraw: raw HID events driver (C) Jiri Kosina
[    1.989569] usbcore: registered new interface driver usbhid
[    1.989571] usbhid: USB HID core driver
[    1.989682] drop_monitor: Initializing network drop monitor service
[    1.989711] Netfilter messages via NETLINK v0.30.
[    1.989723] ip_set: protocol 6
[    1.996172] NET: Registered protocol family 10
[    2.008837] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    2.009659] NET: Registered protocol family 17
[    2.009800] 8021q: 802.1Q VLAN Support v1.8
[    2.009823] Key type dns_resolver registered
[    2.009908] ThumbEE CPU extension supported.
[    2.009914] Registering SWP/SWPB emulation handler
[    2.033596] registered taskstats version 1
[    2.033599] Loading compiled-in X.509 certificates
[    2.033634] zswap: loaded using pool lzo/zbud
[    2.088400] Key type big_key registered
[    2.105892] Key type encrypted registered
[    2.114814] armada38x-rtc f10a3800.rtc: setting system clock to 2017-06-09 20:08:48 UTC (1497038928)
[    2.142371] ata3.00: configured for UDMA/133
[    2.158590] usb 2-1: new high-speed USB device number 2 using xhci-hcd
[    2.167026] scsi 2:0:0:0: Direct-Access     ATA      ST3250318AS      CC44 PQ: 0 ANSI: 5
[    2.248901] sd 2:0:0:0: [sda] 488397168 512-byte logical blocks: (250 GB/233 GiB)
[    2.256684] sd 2:0:0:0: [sda] Write Protect is off
[    2.261571] sd 2:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    2.282400]  sda: sda1
[    2.285403] sd 2:0:0:0: [sda] Attached SCSI removable disk
[    2.291549] Freeing unused kernel memory: 1024K (c0c00000 - c0d00000)
Loading, please wait...
[    2.328873] usb 2-1: New USB device found, idVendor=045b, idProduct=0209
[    2.335631] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.343399] systemd-udevd[1333]: starting version 215
[    2.344276] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    2.361225] hub 2-1:1.0: USB hub found
[    2.365053] hub 2-1:1.0: 4 ports detected
[    2.425824] sd 2:0:0:0: Attached scsi generic sg0 type 0
[    2.468833] usb 3-1: new SuperSpeed USB device number 2 using xhci-hcd
[    2.500161] usb 3-1: New USB device found, idVendor=045b, idProduct=0210
[    2.506940] usb 3-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.520072] hub 3-1:1.0: USB hub found
[    2.524135] hub 3-1:1.0: 4 ports detected
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
modprobe: module ext3 not found in modules.dep
Begin: Will now check root file system ... fsck from util-linux 2.25.2
[   12.643333] random: fast init done
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.673293] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   17.683568] EXT4-fs (sda1): INFO: recovery required on readonly filesystem
[   17.690491] EXT4-fs (sda1): write access will be enabled during recovery
[   17.850533] EXT4-fs (sda1): recovery complete
[   17.881241] 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[   20.465754] systemd-udevd[1536]: starting version 215
. ok
[ ok ] Synthesizing the initial hotplug events...done.
[ ok ] Waiting for /dev to be fully populated...done.
[ ok ] Activating swap...done.
[   22.081443] EXT4-fs (sda1): re-mounted. Opts: (null)
[....] Checking root file system...fsck from util-linux 2.25.2
rootfs: clean, 34135/15269888 files, 1139490/61049390 blocks
done.
[   22.509696] 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.
[   24.389135] random: crng init done
[   24.538975] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.3.1
Copyright 2004-2014 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/de:89:bf:74:98:f1
Sending on   LPF/eth0/de:89:bf:74:98:f1
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 10
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
done.
[ ok ] Starting rpcbind daemon....
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
2497 (syslogd)
. ok
[ ok ] Starting NTP server: ntpd.
[ ok ] Starting periodic command scheduler: cron.
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[ ok ] Starting system message bus: dbus.
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
2496 (klogd)
. ok

Debian GNU/Linux 8 debian ttyS0

debian login: root
Password:
Last login: Wed Jun  7 23:18:44 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
 13:12:52 up 4 min,  1 user,  load average: 0.08, 0.03, 0.01
root@debian:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00800000 00020000 "U-Boot"
mtd1: 00800000 00020000 "Linux"
mtd2: 1f000000 00020000 "Filesystem"
root@debian:~#
Re: Debian on WD MyCloud EX 4100
June 09, 2017 02:22PM
> 2. Boot back to stock OS and get the location of the u-boot envs
>
>
> cat /etc/fw_env.config
>

gives me in stock os

cat: can't open '/etc/fw_env.config': No such file or directory

:(

Should i boot to stock os or interrupt console boot?
Re: Debian on WD MyCloud EX 4100
June 09, 2017 02:24PM
saschadd,

> Good that i asked, they looked all the same to me.
> ;)

They all look similar :)


> root@debian:~# cat /proc/mtd
> dev: size erasesize name
> mtd0: 00800000 00020000 "U-Boot"
> mtd1: 00800000 00020000 "Linux"
> mtd2: 1f000000 00020000 "Filesystem"
> root@debian:~#[/code]

This is not what we want to see.

Stock mtds:

8 ofpart partitions found on MTD device armada-nand
Creating 8 MTD partitions on "armada-nand":
0x000000000000-0x000000500000 : "U-Boot"
0x000000500000-0x000000a00000 : "uImage"
0x000000a00000-0x000000f00000 : "uRamdisk"
0x000000f00000-0x00001c800000 : "image.cfs"
0x00001c800000-0x00001d700000 : "rescue fw"
0x00001d700000-0x00001eb00000 : "config"
0x00001eb00000-0x00001f500000 : "reserve1"
0x00001f500000-0x00001ff00000 : "reserve2"

So we will need to find out why.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on WD MyCloud EX 4100
June 09, 2017 02:26PM
saschadd Wrote:
-------------------------------------------------------
> > 2. Boot back to stock OS and get the location of
> the u-boot envs
> >
> >
> > cat /etc/fw_env.config
> >
>
> gives me in stock os
>
> cat: can't open '/etc/fw_env.config': No such file
> or directory
>
> :(
>
> Should i boot to stock os or interrupt console boo
> t?

Yes, boot to stock and

cat /proc/mtd
cat /etc/fv_env.config
fw_printenv

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on WD MyCloud EX 4100
June 09, 2017 02:32PM
bodhi Wrote:
-------------------------------------------------------
> Yes, boot to stock and
>
>
> cat /proc/mtd
> cat /etc/fv_env.config
> fw_printenv
>

this gives me

cat /proc/mtd
dev: size erasesize name
mtd0: 00500000 00020000 "U-Boot"
mtd1: 00500000 00020000 "uImage"
mtd2: 00500000 00020000 "uRamdisk"
mtd3: 1b900000 00020000 "image.cfs"
mtd4: 00f00000 00020000 "rescue fw"
mtd5: 01400000 00020000 "config"
mtd6: 00a00000 00020000 "reserve1"
mtd7: 00a00000 00020000 "reserve2"
root@WDMyCloudEX4100 / # cat /etc/fv_env.config
cat: can't open '/etc/fv_env.config': No such file or directory
root@WDMyCloudEX4100 / # fw_printenv
-sh: fw_printenv: not found
Re: Debian on WD MyCloud EX 4100
June 09, 2017 05:53PM
saschadd,

Lets' try booting SATA with this new mtdparts env. All other envs are the same as before.

setenv mtdparts 'mtdparts=pxa3xx_nand-0: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)'

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



Edited 1 time(s). Last edit at 06/09/2017 06:22PM by bodhi.
Re: Debian on WD MyCloud EX 4100
June 09, 2017 06:43PM
Here is the stock u-boot build for UART booting. This binary should be used in testing kwboot the box.

1. Download hmartin kwboot binary for x86 64 bit (kwboot-x86_64.gz). If you dont have a Linux box running on x86_64 then I'll compile ARM version.

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

2. Download the attached u-boot binary:


Quote

u-boot-a38x-Yellowstone_2014T30p6_bodhi-tld-1-nand-uart.bin


3. On the Linux box, with working serial console connected (instead of running piccom, we are going to run kwboot)

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

4. Power up the EX4100, wait for the handshake.

5. If the handshake does not occur, then abort kwboot (control-C) and recall the command, run it again.

As this handshake will be hit or miss, several step 5 might be needed.

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



Edited 1 time(s). Last edit at 06/09/2017 06:45PM by bodhi.
Attachments:
open | download - u-boot-a38x-Yellowstone_2014T30p6_bodhi-tld-1-nand-uart.bin (932.6 KB)
Re: Debian on WD MyCloud EX 4100
June 10, 2017 04:07AM
bodhi Wrote:
-------------------------------------------------------
> saschadd,
>
> Lets' try booting SATA with this new mtdparts env.
> All other envs are the same as before.
>
>
> setenv mtdparts 'mtdparts=pxa3xx_nand-0:5m(u-boot)
> ro,5m@5m(kernel),5m@10m(uRamdisk),441m@15m(image.c
> fs),15m@456m(rescue_fw),20m@471m(config),10m@491m(
> reserve1),10m@501m(reserve2)'
>

unfortunately this doesnt work or change something

cat /proc/mtd
dev: size erasesize name
mtd0: 00800000 00020000 "U-Boot"
mtd1: 00800000 00020000 "Linux"
mtd2: 1f000000 00020000 "Filesystem"



Edited 1 time(s). Last edit at 06/10/2017 04:08AM by saschadd.
Re: Debian on WD MyCloud EX 4100
June 10, 2017 04:15AM
> unfortunately this doesnt work or change something
>
> cat /proc/mtd
> dev: size erasesize name
> mtd0: 00800000 00020000 "U-Boot"
> mtd1: 00800000 00020000 "Linux"
> mtd2: 1f000000 00020000 "Filesystem"

OK then, we need an improved DTS to see the correct MTD partitions.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on WD MyCloud EX 4100
June 10, 2017 04:30AM
bodhi Wrote:
-------------------------------------------------------
> Here is the stock u-boot build for UART booting. This binary should be used in testing kwboot the box.
>
> 1. Download hmartin kwboot binary for x86 64 bit (kwboot-x86_64.gz). If you dont have a Linux box running on x86_64 then I'll compile ARM version.

My serial console connection is between NAS and Raspi.
Therefore i would need an arm version.
Re: Debian on WD MyCloud EX 4100
June 10, 2017 05:27AM
bodhi Wrote:
-------------------------------------------------------
> > unfortunately this doesnt work or change somethi
> ng
> >
> > cat /proc/mtd
> > dev: size erasesize name
> > mtd0: 00800000 00020000 "U-Boot"
> > mtd1: 00800000 00020000 "Linux"
> > mtd2: 1f000000 00020000 "Filesystem"
>
> OK then, we need an improved DTS to see the correct MTD partitions.

Just an idea, but have we tried the dts file from fox_exe on WD forum yet?
I cant seem to find info how far he already went with that but the dts is dated 2016 11 24.
Maybe it could help?!

@hmartin: have you had a look at this thread already? https://community.wd.com/t/clean-os-debian-openmediavault-and-other-firmwares/93714
Attachments:
open | download - armada-385-ex2u.dts (4.3 KB)
Re: Debian on WD MyCloud EX 4100
June 10, 2017 07:12AM
> @hmartin: have you had a look at this thread already?

I know of the thread, I read it myself, but I have not looked at any of the software from fox_exe yet.

> Here is the stock u-boot build for UART booting. This binary should be used in testing kwboot the box.

Edit: derp. You were presenting a u-boot for EX4100... so disregard my gibberish below.

My mistake! I thought I posted my u-boot build, but it seems I forgot. I already have this booting via kwboot since days.

@bodhi: your u-boot is for Yellowstone, but I established the EX2100 is Yosemite. Perhaps saschadd can try to kwboot his EX4100? I don't know the codename for that unit.

I have no luck kwbooting your u-boot. It loads normally until ~6%, and then slows down to a rate of one . per second. I'm not patient enough to wait for hours to see if it eventually reaches 100%, since my u-boot-uart.bin loads normally.

Here's my stock u-boot build (minus some string modifications to differentiate it from stock), I can kwboot this if I get the timing right. It loads quite quickly and then executes.

sha1sum: 24b3308088a482269db833e557a331d3b0cb20d5

edit:
@saschadd this DTS is almost the same as the one from the mcm repository (Peacemaker's link in: http://forum.doozan.com/read.php?2,34103,34452#msg-34452 ). The only major difference is the DTS you attached includes hard drive LEDs. I have been using the DTS/DTB from Peacemaker on my EX2100 (you can find the DTB attached here: http://forum.doozan.com/read.php?2,34103,34606#msg-34606 the DTS is available on GitHub)
--- a/armada-385-wd.dts	2017-06-10 15:14:06.992723200 +0200
+++ b/armada-385-ex2u.dts	2017-06-10 15:13:20.936057940 +0200
@@ -17,11 +17,11 @@
 #include <dt-bindings/gpio/gpio.h>
 
 / {
-	model = "Western Digital MyCloud EX2 Ultra";
+	model = "Marvell Armada 385 Development Board";
 	compatible = "marvell,a385-db", "marvell,armada385", "marvell,armada38x";
 
 	chosen {
-		bootargs = "console=ttyS0,115200 libata.force=3.0G root=LABEL=rootfs earlyprintk";
+		bootargs = "console=ttyS0,115200 root=LABEL=rootfs earlyprintk";
 	};
 
 	memory {
@@ -103,23 +103,14 @@
 				no-1-8-v;
 			};
 
-			serial@12000 {
-				status = "okay";
-			};
-
-			/* ttyS1 is connected to w Welltrend 6703F-OG240WT Micocontroller
-			 * which controls power fan and other things */
 			serial@12100 {
 				status = "okay";
 			};
-
-			poweroff@12100 {
-				compatible = "wdmcex2u,power-off";
-				reg = <0x12100 0x100>;
-				clocks = <&coreclk 0>;
+      
+			serial@12000 {
 				status = "okay";
 			};
-      
+
 			spi0: spi@10600 {
 				status = "okay";
 
@@ -228,34 +219,5 @@
 								
 	};
 
-	gpio-leds {
-		compatible = "gpio-leds";
-		pinctrl-0 = <&sata_leds>;
-		pinctrl-names = "default";
-
-		red-sata1-led {
-			label = "wdmcex2u:red:hdd1";
-			gpios = <&gpio1 11 GPIO_ACTIVE_HIGH>;
-		};
-		red-sata2-led {
-			label = "wdmcex2u:red:hdd2";
-			gpios = <&gpio1 20 GPIO_ACTIVE_HIGH>;
-		};
-		blue-sata1-led {
-			label = "wdmcex2u:blue:hdd1";
-			gpios = <&gpio1 21 GPIO_ACTIVE_HIGH>;
-		};
-		blue-sata2-led {
-			label = "wdmcex2u:blue:hdd2";
-			gpios = <&gpio1 22 GPIO_ACTIVE_HIGH>;
-		};
-	};
-
 };
 
-&pinctrl {
-	sata_leds: sata-leds {
-		marvell,pins = "mpp43", "mpp52", "mpp53", "mpp54";
-		marvell,function = "gpio";
-	};
-};



Edited 3 time(s). Last edit at 06/10/2017 07:26AM by hmartin.
Attachments:
open | download - u-boot-a38x-Yosemite_2014T3_PQ-nand-uart.bin (931.8 KB)
Re: Debian on WD MyCloud EX 4100
June 10, 2017 12:27PM
Here is the new DTB and its DTS.

I've looked at that EX2 Ultra DTS. It came from the same mainline version I'm basing on. There is not much difference, except for the flash partitions.

Please try this version I attached here. See if the kernel find the correct partitions.

And for the bootargs mtdparts, you can go back to the previous definition:

setenv mtdparts 'mtdparts=armada-nand-0: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)'

Note that I've corrected the DTS/DTB name to 388.

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



Edited 1 time(s). Last edit at 06/10/2017 12:29PM by bodhi.
Attachments:
open | download - armada-388-wd-ex4100.dts (5.3 KB)
open | download - armada-388-wd-ex4100.dtb (14.9 KB)
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: