Welcome! Log In Create A New Profile

Advanced

Debian on WD MyCloud EX 4100

Posted by saschadd 
Re: Debian on WD MyCloud EX 4100
July 09, 2017 06:38AM
bodhi Wrote:
-------------------------------------------------------
> Does this box really have 2 Ethernet ports available? you might want to switch the cable to the other port.

yes it has 2 gigabit ports available which could be set for Port-Trunking or Fail-Over-solution.
interesting that switching to port 2 it works and gets an ip addressed.

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

cat /etc/network/interfaces gives only

auto lo eth0
iface lo inet loopback
iface eth0 inet dhcp

but ifconfig after switching to port 2 gives

ifconfig
eth0 Link encap:Ethernet HWaddr 1a:9d:16:a8:b3:64
inet addr:192.168.178.45 Bcast:192.168.178.255 Mask:255.255.255.0
inet6 addr: fe80::189d:16ff:fea8:b364/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:453 errors:0 dropped:0 overruns:0 frame:0
TX packets:51 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:532
RX bytes:42109 (41.1 KiB) TX bytes:8152 (7.9 KiB)
Interrupt:36

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Re: Debian on WD MyCloud EX 4100
July 09, 2017 06:41AM
bodhi Wrote:
-------------------------------------------------------
> And what is the output of
>
>
> cat /etc/udev/rules.d/70-persistent-net.rules
> cat /lib/udev/rules.d/75-persistent-net-generator.
> rules | grep KERNEL
>
>
> 70 and 75 might be diferent numbers (I forgot the
> exact number in these names in this MVEBU rootfs :
> )

following the outputs

cat /etc/udev/rules.d/70-persistent-net.rules
# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.

# Unknown net device (/devices/platform/mv643xx_eth_port.0/net/eth0) (mv643xx_eth_port)
#SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="xx:xx:xx:xx:xx:xx", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

cat /lib/udev/rules.d/75-persistent-net-generator.rules | grep KERNEL
KERNEL!="Eth*|ath*|Wlan*[0-9]|msh*|ra*|sta*|ctc*|lcs*|hsi*", \
KERNEL=="ath*", ATTRS{type}=="802", GOTO="persistent_net_generator_end"
KERNEL=="wlan*", ATTRS{type}=="803", GOTO="persistent_net_generator_end"
Re: Debian on WD MyCloud EX 4100
July 09, 2017 06:45AM
saschadd,

>
> yes it has 2 gigabit ports available which could b
> e set for Port-Trunking or Fail-Over-solution.
> interesting that switching to port 2 it works and
> gets an ip addressed.

Cool! it means that physical port is eth0, and the other is eth1.

> cat /etc/network/interfaces gives only
>
> auto lo eth0
> iface lo inet loopback
> iface eth0 inet dhcp

/etc/network/interfaces needs to have MAC address in here for both (so that the IP address does not change at each boot).

And you can activate both ports in here too. But not need to if you don't want both active.

auto lo eth1
iface eth1 inet dhcp

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



Edited 2 time(s). Last edit at 07/09/2017 06:47AM by bodhi.
Re: Debian on WD MyCloud EX 4100
July 09, 2017 06:48AM
Re: Debian on WD MyCloud EX 4100
July 09, 2017 06:52AM
And the bad news is I could not yet figure out from the GPL, whether this box has GPIO Poweroff or not. This is needed so we will be able to power off the box.

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

the mac adresses seem to be generated at boot.
i noticed this already in stock firmware that the mac adresses seem to be different on every boot.

after updating the debian system and rebooting ifconfig gives me the following

eth0 Link encap:Ethernet HWaddr 9a:09:78:fd:ca:84
inet addr:192.168.178.46 Bcast:192.168.178.255 Mask:255.255.255.0
inet6 addr: fe80::9809:78ff:fefd:ca84/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:119 errors:0 dropped:0 overruns:0 frame:0
TX packets:57 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:532
RX bytes:11415 (11.1 KiB) TX bytes:8349 (8.1 KiB)
Interrupt:36

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Re: Debian on WD MyCloud EX 4100
July 09, 2017 07:28AM
saschadd,

> the mac adresses seem to be generated at boot.
> i noticed this already in stock firmware that the
> mac adresses seem to be different on every boot.

Yes. That's why you need to specify the real ones inside /etc/network/interfaces. This is a side effect of our setup to protect the DTB from corruption by stock u-boot.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
Re: Debian on WD MyCloud EX 4100
July 09, 2017 08:16AM
bodhi Wrote:
-------------------------------------------------------
> Yes. That's why you need to specify the real ones
> inside /etc/network/interfaces. This is a side eff
> ect of our setup to protect the DTB from corrupti
> on by stock u-boot.

good to know ;)
do i have to do it now or can i just leave it like that for now?
Re: Debian on WD MyCloud EX 4100
July 09, 2017 05:09PM
saschadd,

> > Yes. That's why you need to specify the real one
> s
> > inside /etc/network/interfaces. This is a side e
> ff
> > ect of our setup to protect the DTB from corrup
> ti
> > on by stock u-boot.
>
> good to know ;)
> do i have to do it now or can i just leave it like
> that for now?

You should set up the network interfaces and use SSH. To make sure things are working OK.

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

i set the mac adresses i found in stock.
strange that they are the same, only difference between egiga0 and egiga1 is the interrupt.
well, i set it in debian /etc/network/interfaces and tried

port 1 doesnt work
port 2 works out of the box as eth0

poweroff doesnt work as wanted from ssh. so it is not an uart connection issue.
Re: Debian on WD MyCloud EX 4100
July 11, 2017 03:18PM
saschadd,

1. Temporarily remove the MAC address from /etc/network/interfaces (to let the kernel generate random MAC as before). Shutdown.

- Connect serial console, and ethernet cable to port 1.

- Power up, interrupt serial console and
setenv ethact egiga1
boot
Please post the boot log.

2. Power off is hard to find in the GPL. So it will take time. In the mean time, boot to stock, log in as root, and shutdown with

poweroff
or
shutdown -h now
Please post the shutdown log.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
Re: Debian on WD MyCloud EX 4100
July 11, 2017 04:14PM
bodhi Wrote:
-------------------------------------------------------
> 1. Temporarily remove the MAC address from /etc/network/interfaces (to let the kernel generate random MAC as before). Shutdown.
> - Connect serial console, and ethernet cable to port 1.
> - Power up, interrupt serial console and
> setenv ethact egiga1
> boot
>
> Please post the boot log.

Marvell>> setenv ethact egiga1
Marvell>> boot
Booting from USB ...
(Re)start USB...
USB0:   Port (usbActive) : 0    Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 4 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
(Re)start USB...
USB0:   Port (usbActive) : 0    Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 4 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
loading Image ...
3973937 bytes read in 283 ms (13.4 MiB/s)
loading uInitrd ...
6523051 bytes read in 375 ms (16.6 MiB/s)
## Booting image at 02000000 ...
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-4.9.0-mvebu-tld-12
   Created:      2017-07-09   8:26:31 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3973873 Bytes = 3.8 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 02900000 ...
   Image Name:   initramfs-4.10.9-mvebu-tld-1
   Created:      2017-07-08  16:42:22 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    6522987 Bytes = 6.2 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.10.9-mvebu-tld-1 (root@tldDebianVM) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4) ) #1 SMP PREEMPT Sat Apr 8 17:55:50 PDT 2017
[    0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt:Machine model: WD My Cloud EX4100
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 15 pages/cpu @eefcd000 s30796 r8192 d22452 u61440
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 522752
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial mtdparts=armada-nand:5M(u-boot),5M(kernel),5M(uRamdisk),441M(image.cfs),15M(rescue_fw),20M(config),10M(reserve1),10M(reserve2)
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 2060012K/2097152K available (8192K kernel code, 696K rwdata, 2084K rodata, 1024K init, 385K bss, 37140K reserved, 0K cma-reserved, 1310720K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0900000   (9184 kB)
[    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
[    0.000000]       .data : 0xc0d00000 - 0xc0dae250   ( 697 kB)
[    0.000000]        .bss : 0xc0dae250 - 0xc0e0ea00   ( 386 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 32.
[    0.000000]  RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=2
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] mvebu_mbus: [Firmware Warn]: deprecated mbus-mvebu Device Tree, suspend/resume will not work
[    0.000000] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000] L2C-310 D prefetch enabled, offset 1 lines
[    0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000] L2C-310 Coherent cache controller enabled, 16 ways, 1024 kB
[    0.000000] L2C-310 Coherent: CACHE_ID 0x410054c9, AUX_CTRL 0x56070001
[    0.000000] Switching to timer-based delay loop, resolution 40ns
[    0.000003] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 85899345900ns
[    0.007881] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.019078] Console: colour dummy device 80x30
[    0.023591] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[    0.033982] pid_max: default: 32768 minimum: 301
[    0.038731] Security Framework initialized
[    0.042928] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.049601] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.057088] CPU: Testing write buffer coherency: ok
[    0.062153] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.093877] Setting up static identity map for 0x100000 - 0x100058
[    0.100175] mvebu-soc-id: MVEBU SoC ID=0x6828, Rev=0x4
[    0.105457] mvebu-pmsu: Initializing Power Management Service Unit
[    0.193866] smp: Bringing up secondary CPUs ...
[    0.253913] Booting CPU 1
[    0.256754] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.256798] smp: Brought up 1 node, 2 CPUs
[    0.266679] SMP: Total of 2 processors activated (100.00 BogoMIPS).
[    0.272999] CPU: All CPU(s) started in SVC mode.
[    0.278236] devtmpfs: initialized
[    0.283453] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.291376] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.301266] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.307486] prandom: seed boundary self test passed
[    0.314123] prandom: 100 self tests passed
[    0.318283] pinctrl core: initialized pinctrl subsystem
[    0.324197] NET: Registered protocol family 16
[    0.329253] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.363868] cpuidle: using governor ladder
[    0.393866] cpuidle: using governor menu
[    0.397952] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.406021] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.412000] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.420154] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.484268] vgaarb: loaded
[    0.487248] SCSI subsystem initialized
[    0.491466] usbcore: registered new interface driver usbfs
[    0.497094] usbcore: registered new interface driver hub
[    0.502518] usbcore: registered new device driver usb
[    0.507833] Linux cec interface: v0.10
[    0.511689] media: Linux media interface: v0.10
[    0.516351] Linux video capture interface: v2.00
[    0.521819] clocksource: Switched to clocksource armada_370_xp_clocksource
[    0.552130] VFS: Disk quotas dquot_6.6.0
[    0.556158] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.570096] NET: Registered protocol family 2
[    0.574895] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.582055] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.588605] TCP: Hash tables configured (established 8192 bind 8192)
[    0.595062] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.601055] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.607584] NET: Registered protocol family 1
[    0.612278] RPC: Registered named UNIX socket transport module.
[    0.618253] RPC: Registered udp transport module.
[    0.623028] RPC: Registered tcp transport module.
[    0.627792] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.634414] Unpacking initramfs...
[    0.850186] Freeing initrd memory: 6372K
[    0.854333] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.861021] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.870222] audit: initializing netlink subsys (disabled)
[    0.876151] Initialise system trusted keyrings
[    0.880794] workingset: timestamp_bits=30 max_order=19 bucket_order=0
[    0.887472] zbud: loaded
[    0.890590] NFS: Registering the id_resolver key type
[    0.895732] Key type id_resolver registered
[    0.899978] Key type id_legacy registered
[    0.904072] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.910824] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.917384] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.924779] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.931372] orangefs_init: module version upstream loaded
[    0.938843] Key type asymmetric registered
[    0.943016] Asymmetric key parser 'x509' registered
[    0.947978] bounce: pool size: 64 pages
[    0.951959] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[    0.959404] io scheduler noop registered
[    0.963400] io scheduler deadline registered
[    0.967744] io scheduler cfq registered (default)
[    0.973350] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    0.981778] mvebu-pcie soc:pcie-controller: PCI host bridge to bus 0000:00
[    0.988724] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    0.995056] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    1.001992] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.007902] PCI: bus0: Fast back to back transfers disabled
[    1.013549] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.021605] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.029766] PCI: bus1: Fast back to back transfers enabled
[    1.035427] PCI: bus2: Fast back to back transfers enabled
[    1.041007] pci 0000:00:01.0: PCI bridge to [bus 01]
[    1.046045] pci 0000:00:02.0: PCI bridge to [bus 02]
[    1.051473] mv_xor f1060800.xor: Marvell shared XOR driver
[    1.112215] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy sg intr )
[    1.120080] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.182210] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy sg intr )
[    1.232193] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.239824] console [ttyS0] disabled
[    1.263562] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 22, base_baud = 12500000) is a 16550A
[    1.272611] console [ttyS0] enabled
[    1.272611] console [ttyS0] enabled
[    1.279699] bootconsole [earlycon0] disabled
[    1.279699] bootconsole [earlycon0] disabled
[    1.289290] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.298395] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.307922] scsi host0: ahci-mvebu
[    1.311616] scsi host1: ahci-mvebu
[    1.315241] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 42
[    1.323204] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 42
[    1.331288] ahci-mvebu f10e0000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.340386] ahci-mvebu f10e0000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.359749] scsi host2: ahci-mvebu
[    1.363392] scsi host3: ahci-mvebu
[    1.366938] ata3: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x100 irq 43
[    1.374902] ata4: SATA max UDMA/133 mmio [mem 0xf10e0000-0xf10e1fff] port 0x180 irq 43
[    1.383340] pxa3xx-nand f10d0000.flash: This platform can't do DMA on this device
[    1.391216] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xdc
[    1.397610] nand: Hynix H27U4G8F2DTR-BC
[    1.401462] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.409089] pxa3xx-nand f10d0000.flash: ECC strength 16, ECC step size 2048
[    1.416277] Bad block table found at page 262080, version 0x01
[    1.422462] Bad block table found at page 262016, version 0x01
[    1.428489] nand_read_bbt: bad block at 0x00000dcc0000
[    1.433658] nand_read_bbt: bad block at 0x00000fb00000
[    1.438818] nand_read_bbt: bad block at 0x000012180000
[    1.443987] nand_read_bbt: bad block at 0x0000139a0000
[    1.449148] nand_read_bbt: bad block at 0x000017880000
[    1.454314] nand_read_bbt: bad block at 0x0000178a0000
[    1.459473] nand_read_bbt: bad block at 0x00001a640000
[    1.464640] nand_read_bbt: bad block at 0x00001e9c0000
[    1.469842] 8 ofpart partitions found on MTD device pxa3xx_nand-0
[    1.475969] Creating 8 MTD partitions on "pxa3xx_nand-0":
[    1.481391] 0x000000000000-0x000000500000 : "U-Boot"
[    1.487044] 0x000000500000-0x000000f00000 : "uImage"
[    1.502665] 0x000000a00000-0x000001900000 : "uRamdisk"
[    1.518462] 0x000000f00000-0x00001d700000 : "image.cfs"
[    1.535979] 0x00001c800000-0x000039f00000 : "rescue_fw"
[    1.541228] mtd: partition "rescue_fw" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x3800000
[    1.562783] 0x00001d700000-0x00003c200000 : "config"
[    1.567770] mtd: partition "config" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x2900000
[    1.589011] 0x00001eb00000-0x00003e000000 : "reserve1"
[    1.594184] mtd: partition "reserve1" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x1500000
[    1.605505] 0x00001f500000-0x00003f400000 : "reserve2"
[    1.610679] mtd: partition "reserve2" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0xb00000
[    1.632501] m25p80 spi0.0: unrecognized JEDEC id bytes: ff, ff, ff
[    1.639156] libphy: Fixed MDIO Bus: probed
[    1.643679] libphy: orion_mdio_bus: probed
[    1.653269] mvneta_bm f10c8000.bm: Buffer Manager for network controller enabled
[    1.662333] mvneta f1070000.ethernet eth0: Using random mac address 12:8b:61:a3:62:e3
[    1.663079] ata1: SATA link down (SStatus 0 SControl 300)
[    1.673088] ata2: SATA link down (SStatus 0 SControl 300)
[    1.683083] mvneta f1030000.ethernet eth1: Using random mac address 0e:a7:eb:4d:b8:7e
[    1.691221] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.697810] ehci-pci: EHCI PCI platform driver
[    1.702363] ehci-orion: EHCI orion driver
[    1.706500] orion-ehci f1058000.usb: EHCI Host Controller
[    1.711947] ata3: SATA link down (SStatus 0 SControl 300)
[    1.717398] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    1.723128] ata4: SATA link down (SStatus 0 SControl 300)
[    1.730483] orion-ehci f1058000.usb: irq 38, io mem 0xf1058000
[    1.761832] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    1.767888] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.774718] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.781978] usb usb1: Product: EHCI Host Controller
[    1.786876] usb usb1: Manufacturer: Linux 4.10.9-mvebu-tld-1 ehci_hcd
[    1.793351] usb usb1: SerialNumber: f1058000.usb
[    1.798309] hub 1-0:1.0: USB hub found
[    1.802100] hub 1-0:1.0: 1 port detected
[    1.806470] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.811827] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    1.819409] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.827998] xhci-hcd f10f0000.usb3: irq 46, io mem 0xf10f0000
[    1.833856] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    1.840673] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.847949] usb usb2: Product: xHCI Host Controller
[    1.852856] usb usb2: Manufacturer: Linux 4.10.9-mvebu-tld-1 xhci-hcd
[    1.859323] usb usb2: SerialNumber: f10f0000.usb3
[    1.864333] hub 2-0:1.0: USB hub found
[    1.868113] hub 2-0:1.0: 1 port detected
[    1.872214] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.877552] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
[    1.885124] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.893320] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    1.900138] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.907398] usb usb3: Product: xHCI Host Controller
[    1.912367] usb usb3: Manufacturer: Linux 4.10.9-mvebu-tld-1 xhci-hcd
[    1.918835] usb usb3: SerialNumber: f10f0000.usb3
[    1.923828] hub 3-0:1.0: USB hub found
[    1.927607] hub 3-0:1.0: 1 port detected
[    1.931757] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.937114] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    1.944697] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.953295] xhci-hcd f10f8000.usb3: irq 47, io mem 0xf10f8000
[    1.959140] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002
[    1.965966] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.973226] usb usb4: Product: xHCI Host Controller
[    1.978124] usb usb4: Manufacturer: Linux 4.10.9-mvebu-tld-1 xhci-hcd
[    1.984635] usb usb4: SerialNumber: f10f8000.usb3
[    1.989627] hub 4-0:1.0: USB hub found
[    1.993423] hub 4-0:1.0: 1 port detected
[    1.997510] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    2.002858] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5
[    2.010411] usb usb5: We don't know the algorithms for LPM for this host, disabling LPM.
[    2.018598] usb usb5: New USB device found, idVendor=1d6b, idProduct=0003
[    2.025426] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.032729] usb usb5: Product: xHCI Host Controller
[    2.037627] usb usb5: Manufacturer: Linux 4.10.9-mvebu-tld-1 xhci-hcd
[    2.044101] usb usb5: SerialNumber: f10f8000.usb3
[    2.049085] hub 5-0:1.0: USB hub found
[    2.052875] hub 5-0:1.0: 1 port detected
[    2.057052] usbcore: registered new interface driver usblp
[    2.062642] usbcore: registered new interface driver usb-storage
[    2.068841] mousedev: PS/2 mouse device common for all mice
[    2.074787] armada38x-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[    2.082457] i2c /dev entries driver
[    2.096829] (NULL device *): hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[    2.109492] orion_wdt: Initial timeout 171 sec
[    2.115092] marvell-cesa f1090000.crypto: CESA device successfully registered
[    2.122375] hidraw: raw HID events driver (C) Jiri Kosina
[    2.127974] usbcore: registered new interface driver usbhid
[    2.133582] usbhid: USB HID core driver
[    2.137551] drop_monitor: Initializing network drop monitor service
[    2.143966] Netfilter messages via NETLINK v0.30.
[    2.148706] ip_set: protocol 6
[    2.151966] NET: Registered protocol family 10
[    2.157033] Segment Routing with IPv6
[    2.160744] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    2.167496] NET: Registered protocol family 17
[    2.172092] 8021q: 802.1Q VLAN Support v1.8
[    2.176318] Key type dns_resolver registered
[    2.180688] ThumbEE CPU extension supported.
[    2.184990] Registering SWP/SWPB emulation handler
[    2.190111] registered taskstats version 1
[    2.194241] Loading compiled-in X.509 certificates
[    2.199085] zswap: loaded using pool lzo/zbud
[    2.244196] usb 2-1: new high-speed USB device number 2 using xhci-hcd
[    2.254196] Key type big_key registered
[    2.261267] Key type encrypted registered
[    2.266241] armada38x-rtc f10a3800.rtc: setting system clock to 2017-07-11 20:08:55 UTC (1499803735)
[    2.276417] Freeing unused kernel memory: 1024K
Loading, please wait...
[    2.311962] systemd-udevd[1355]: starting version 215
[    2.317898] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    2.422099] usb 2-1: New USB device found, idVendor=045b, idProduct=0209
[    2.428842] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.436387] hub 2-1:1.0: USB hub found
[    2.440184] hub 2-1:1.0: 4 ports detected
[    2.562090] usb 3-1: new SuperSpeed USB device number 2 using xhci-hcd
[    2.603417] usb 3-1: New USB device found, idVendor=045b, idProduct=0210
[    2.610152] usb 3-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.617812] hub 3-1:1.0: USB hub found
[    2.621840] hub 3-1:1.0: 4 ports detected
[    2.781833] usb 2-1.3: new high-speed USB device number 3 using xhci-hcd
[    2.912470] usb 2-1.3: New USB device found, idVendor=0781, idProduct=5571
[    2.919377] usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.926728] usb 2-1.3: Product: Cruzer Fit
[    2.930841] usb 2-1.3: Manufacturer: SanDisk
[    2.935135] usb 2-1.3: SerialNumber: xxx
[    2.941349] usb-storage 2-1.3:1.0: USB Mass Storage device detected
[    2.947793] scsi host4: usb-storage 2-1.3:1.0
[    2.953705] usbcore: registered new interface driver uas
[    4.012362] scsi 4:0:0:0: Direct-Access     SanDisk  Cruzer Fit       1.00 PQ: 0 ANSI: 6
[    4.033118] sd 4:0:0:0: Attached scsi generic sg0 type 0
[    4.038638] sd 4:0:0:0: [sda] 61489152 512-byte logical blocks: (31.5 GB/29.3 GiB)
[    4.047647] sd 4:0:0:0: [sda] Write Protect is off
[    4.052780] sd 4:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    4.065029]  sda: sda1
[    4.068837] sd 4:0:0:0: [sda] Attached SCSI removable disk
[    4.087048] random: fast init done
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
modprobe: module ext3 not found in modules.dep
Begin: Will now check root file system ... fsck from util-linux 2.25.2
[/sbin/fsck.ext3 (1) -- /dev/sda1] fsck.ext3 -a -C0 /dev/sda1
rootfs: clean, 37312/1925120 files, 687647/7685888 blocks
done.
[   12.769557] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   12.808099] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[....] Starting the hotplug events dispatcher: udevd[   13.610123] systemd-udevd[1563]: starting version 215
. ok
[ ok ] Synthesizing the initial hotplug events...done.
[ ok ] Waiting for /dev to be fully populated...done.
[ ok ] Activating swap...done.
[   15.030463] EXT4-fs (sda1): re-mounted. Opts: (null)
[....] Checking root file system...fsck from util-linux 2.25.2
rootfs: clean, 37312/1925120 files, 687647/7685888 blocks
done.
[   15.147912] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[ ok ] Activating lvm and md swap...done.
[....] Checking file systems...fsck from util-linux 2.25.2
done.
[ ok ] Cleaning up temporary files... /tmp.
[ ok ] Mounting local filesystems...done.
[ ok ] Activating swapfile swap...done.
[ ok ] Cleaning up temporary files....
[ ok ] Setting kernel variables ...done.
[   16.182263] 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/12:8b:61:a3:62:e3
Sending on   LPF/eth0/12:8b:61:a3:62:e3
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11
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.
[....] Cleaning [   78.080417] random: crng init done
[ ok mporary files....
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
2498 (syslogd)
. ok
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[ ok ] Starting periodic command scheduler: cron.
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[ ok ] Starting NTP server: ntpd.
[ ok ] Starting system message bus: dbus.
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
2499 (klogd)
. ok

Debian GNU/Linux 8 debian ttyS0

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

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

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

WD My Cloud EX4100
Linux version 4.10.9-mvebu-tld-1 (root@tldDebianVM) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4) ) #1 SMP PREEMPT Sat Apr 8 17:55:50 PDT 2017
 13:10:32 up 1 min,  1 user,  load average: 0.02, 0.01, 0.00
root@debian:~# ifconfig
eth0      Link encap:Ethernet  HWaddr 12:8b:61:a3:62:e3
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:532
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:36

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

root@debian:~#



Edited 1 time(s). Last edit at 07/11/2017 04:15PM by saschadd.
Re: Debian on WD MyCloud EX 4100
July 11, 2017 04:23PM
bodhi Wrote:
-------------------------------------------------------
> 2. Power off is hard to find in the GPL. So it wil
> l take time. In the mean time, boot to stock, log
> in as root, and shutdown with
>
>
> poweroff
>

same thing as in debian happens, display stays on, fan is spinning

BusyBox v1.20.2 (2014-10-30 15:28:01 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

root@WDMyCloudEX4100 / # poweroff
The system is going down NOW!
Block size   total    free    used     max
----------   -----   -----   -----   -----
2^001            0       0       0       0
2^002            0       0       0       0
2^003            0       0       0       0
2^004            0       0       0       0
2^005            0       0       0       0
2^006            0       0       0       0
2^007            0       0       0       0
2^008            0       0       0       0
2^009            0       0       0       0
2^010            0       0       0       0
2^011            0       0       0       0
2^012            0       0       0       0
2^013            0       0       0       0
2^014            0       0       0       0
2^015            0       0       0       0
2^016            0       0       0       0
2^017            0       0       0       0
2^018            0       0       0       0
2^019            0       0       0       0
2^020            0       0       0       0
2^021            0       0       0       0
2^022            0       0       0       0
2^023            0       0       0       0
------------------------------------------
total size : 0 bytes
free size  : 0 bytes
used size  : 0 bytes
Sent SIGTERM to all processes
Block size   total    free    used     max
----------   -----   -----   -----   -----
2^001            0       0       0       0
2^002            0       0       0       0
2^003          200     200       0     196
2^004           32      32       0      32
2^005           96      96       0      89
2^006          320     320       0     320
2^007            0       0       0       0
2^008            0       0       0       0
2^009            0       0       0       0
2^010            0       0       0       0
2^011            8       8       0       2
2^012            0       0       0       0
2^013            0       0       0       0
2^014            0       0       0       0
2^015            0       0       0       0
2^016            0       0       0       0
2^017            0       0       0       0
2^018            0       0       0       0
2^019            0       0       0       0
2^020            0       0       0       0
2^021            0       0       0       0
2^022            0       0       0       0
2^023            0       0       0       0
------------------------------------------
total size : 42048 bytes
free size  : 42048 bytes
used size  : 0 bytes
!!! Module IPC Terminated !!!
root@WDMyCloudEX4100 / # Block size   total    free    used     max
----------   -----   -----   -----   -----
2^001            0       0       0       0
2^002            0       0       0       0
2^003            8       8       0       3
2^004            0       0       0       0
2^005            0       0       0       0
2^006            8       8       0       1
2^007            0       0       0       0
2^008            0       0       0       0
2^009            0       0       0       0
2^010            0       0       0       0
2^011            8       8       0       1
2^012            0       0       0       0
2^013            0       0       0       0
2^014            0       0       0       0
2^015            0       0       0       0
2^016            0       0       0       0
2^017            0       0       0       0
2^018            0       0       0       0
2^019            0       0       0       0
2^020            0       0       0       0
2^021            0       0       0       0
2^022            0       0       0       0
2^023            0       0       0       0
------------------------------------------
total size : 16960 bytes
free size  : 16960 bytes
used size  : 0 bytes
Requesting system poweroff
xhci-hcd f10f0000.usb3: remove, state 1
usb usb3: USB disconnect, device number 1
usb 3-1: USB disconnect, device number 2
xhci-hcd f10f0000.usb3: USB bus 3 deregistered
xhci-hcd f10f0000.usb3: remove, state 1
usb usb2: USB disconnect, device number 1
usb 2-1: USB disconnect, device number 2
xhci-hcd f10f0000.usb3: USB bus 2 deregistered
Shutting Down Marvell Ethernet Driver
Shutting Down Marvell Ethernet Driver
System halted.


> or
>
> shutdown -h now
>
> Please post the shutdown log.

-sh: shutdown: not found
Re: Debian on WD MyCloud EX 4100
July 11, 2017 04:27PM
bodhi,

here the shutdown log when i hold the front button.

root@WDMyCloudEX4100 / # Push Power off key shutdown
Push Power off key shutdown
Push Power off key shutdown
killall: quotacheck: no process killed
killall: lighttpd: no process killed
killall: op_server: no process killed
dry_total_size:56022
dry_total_size:0
dry_total_size:11564
dry_total_size:30303
dry_total_size:59917
Power off
cp: can't stat '/etc/blockip': No such file or directory
killall: apkg: no process killed
Stopping wdappmgr
wdappmgr is already stopped
Get http:///var/run/docker.sock/v1.19/containers/json: dial unix /var/run/docker.sock: no such file or directory. Are you trying to connect to a TLS-enabled daemon without TLS?
Cleaning up Docker
umount: /mnt/HD/HD_a2/Nas_Prog/_docker/devicemapper: not found
kill_running_process all...
country=3
lang_path=/usr/local/modules/language
sh: you need to specify whom to kill
killall: rsync: no process killed
Shutting down AFP services:
killall: netatalk: no process killed
atopacct not running ...
atop not running ...
Stopping wdnotifier
wdnotifier failed to stop
Stopping wdphotodbmerger
sh: you need to specify whom to kill
Stopping wdmcserver
sh: you need to specify whom to kill

killall: smbd: no process killed
PHY_LAN_NUMBER=2
BOND_ENABLE=1
VLAN0_ENABLE=0
VLAN1_ENABLE=0
**LLTD DISABLE****
kill_running_process done.
PHY_LAN_NUMBER=2
BOND_ENABLE=1
VLAN0_ENABLE=0
VLAN1_ENABLE=0
**LLTD DISABLE****
UBIFS: un-mount UBI device 0, volume 0
UBIFS: background thread "ubifs_bgt0_0" stops
MODEL:WDMyCloudEX4100
egiga0: link down
egiga0: link up, full duplex, speed 1 Gbps
send cmd to micro-p to shutdown
Re: Debian on WD MyCloud EX 4100
July 11, 2017 07:59PM
> send cmd to micro-p to shutdown[/code]

Probably explained it.

WD apparently being lazy or trying to save a few bucks :)) no GPIO.

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

please log in stock OS, and search:

cd /
find . | xargs grep -i 'send cmd to micro-p to shutdown' -d skip

If not found, then search for 'to shutdown'

cd /
find . | xargs grep -i 'to shutdown' -d skip

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



Edited 1 time(s). Last edit at 07/13/2017 01:03AM by bodhi.
Re: Debian on WD MyCloud EX 4100
July 13, 2017 01:34PM
bodhi Wrote:
-------------------------------------------------------
> saschadd,
>
> please log in stock OS, and search:
>
>
> cd /
> find . | xargs grep -i 'send cmd to micro-p to shu
> tdown' -d skip
>
>

gives the following

./usr/sbin/shutdown.sh: echo "send cmd to micro-p to shutdown"
Re: Debian on WD MyCloud EX 4100
July 13, 2017 05:51PM
saschadd,

> ./usr/sbin/shutdown.sh: echo "send cmd to micro-p
> to shutdown"

This is not in the GPL. Please post the content of fthis script here (or pastebin if it is too big).

cat /usr/sbin/shutdown.sh

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

here the script

#!/bin/sh
kill_program()
{
  killall quotacheck
        killall lighttpd
        killall chk_hotplug
        killall system_daemon
        killall crond
        killall op_server
        killall fan_control
        killall temperature_monitor 2> /dev/null
  killall set_pwm 2> /dev/null
  killall sysinfod 2> /dev/null
}

one_bay_shutdown()
{
  killall mserver
  killall mail_daemon
  killall avahi-daemon
  killall udhcpc
  killall syslogd
  killall dbus-daemon
  killall xmldb
  mem_rw -w -t 2 -p0 -o 0 -v 0x1940 #[phy link down]
  mem_rw -w -t 1 -o 0x18140 -b 29 -v 0 > /dev/null #[phy LED down]
  mem_rw -w -t 1 -o 0x18140 -b 26 -v 0 > /dev/null #[phy LED down]
  #mem_rw -w -t 1 -o 0x18000 -v 0         #On Lorten's script file
  mem_rw -w -t 1 -o 0x18004 -v 0x22000000 #[disable spi flash function]
  mem_rw -w -t 1 -o 0x18104  -vffaffc50 #[disable USB device power]
  led power red off #[led off]
  led power blue off #[led off]
  led power yellow off #[led off]
  cp /usr/local/modules/bin/hdparm /usr/bin/
  cp /usr/local/modules/usrsbin/mem_rw /usr/sbin/
  hdparm -y /dev/sda #[ HD enter standby mode ]
  #mem_rw -w -t 1 -o 0x18310 -v 0x6006    #On Lorten's script file
  #mem_rw -w -t 1 -o 0x18314 -v 0x6004    #On Lorten's script file
  #mem_rw -w -t 1 -o 0x1831c -v 0x440e006 #On Lorten's script file
  mem_rw -w -t 1 -o 0x18318 -v 0x4406002 #[ SATA disable ]

  memory_rw -w -o 0xf1001520 -v 0x0b4312c1   #Provide by Marvell Ofer
  #memory_rw -w -o 0xf1018220 -v 0xfffff14   #Provide by Marvell Ofer
                                             #If CPU need to alive
  memory_rw -w -o 0xf1018220 -v 0x0          #Close All of Chip .
}

source /usr/local/modules/files/project_features
sleep 1

cp /usr/local/default/mail_event_conf.xml /usr/local/config/
cp /etc/blockip /usr/local/config/

cmd=$1
if [ "$cmd" = "2" ]; then
  kill_program
fi

killall apkg
if [ "$PROJECT_FEATURE_DOCKER" = "1" ]; then
    /etc/init.d/wdappmgrd stop
    /usr/sbin/docker_daemon.sh shutdown
fi
kill_running_process all
lighty stop
#kill -9 -1

lltd.sh stop 2>/dev/null

if [ "$PROJECT_FEATURE_MV_TCP_WORKAROUND" = "1" -a "$PROJECT_FEATURE_BOOT_FROM_H                                                                                                                                                             D" = "1" ]; then
        sync_tm_to_hd.sh
fi

# remove link file
rm /usr/local/upload
sync

umount_dev.sh all

# don't remove this line, if need, call Bing
if [ -e /usr/local/sbin/custom_shutdown.sh ]; then
        custom_shutdown.sh
fi
/usr/sbin/ga_cron.sh now > /dev/null
sync

if [ "$PROJECT_FEATURE_ROOTFS_ON_USBDOM" = "1" -o "$PROJECT_FEATURE_ROOTFS_ON_EM                                                                                                                                                             MC" = "1" ]; then
        mtd_check -f
fi

umount -l /usr/local/config

sleep 1
# shutdown device

MODEL=$(cat "/usr/local/modules/files/model")
echo "MODEL:$MODEL"

if [ -e /usr/sbin/set_wol ]; then
  set_wol
fi

led power red off
led power blue off

if [ "$PROJECT_FEATURE_MCU_SHUTDOWN_REBOOT" = "1" ]; then
        echo "send cmd to micro-p to shutdown"
        up_send_ctl DeviceShutdown 1
        sleep 20
        poweroff
elif [ "$PROJECT_FEATURE_ACPI" = "1" ]; then
        echo "device shutdown"
        if [ "$PROJECT_FEATURE_OLED" = "1" ]; then
                up_send_ctl DeviceShutdown 0
  fi
  sleep 5
  poweroff
else
  if [ "$PROJECT_FEATURE_BAYS" = "1" ]; then
    if [ "$MODEL" = "WDMyCloud" ]; then
      one_bay_shutdown
    else
      echo "Not Support shutdown."
    fi
  else
    echo "Not Support shutdown."
  fi

fi
Re: Debian on WD MyCloud EX 4100
July 14, 2017 01:44AM
saschadd,

This is also another script or binary to look for. We have not got to the real binary yet.

find / | xargs grep -i 'up_send_ctl' -d skip

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



Edited 1 time(s). Last edit at 07/14/2017 01:45AM by bodhi.
Re: Debian on WD MyCloud EX 4100
July 14, 2017 02:06AM
bodhi,

this search gives many results.
so many things seem to be done by such scripts or binary.

/usr/sbin/raid_config:up_send_ctl ErrStatus %d 0
/usr/sbin/raid_config:up_send_ctl VolClean
/usr/sbin/raid_config:up_send_ctl VolStatus %d 6 %d 1
/usr/sbin/raid_config:up_send_ctl VolStatus %d 6 100 1
/usr/sbin/raid_config:up_send_ctl VolStatus %d 6 0 0
/usr/sbin/raid_config:up_send_ctl ErrStatus %d 1 %d
/usr/sbin/raid_expand:up_send_ctl ErrStatus %d 0
/usr/sbin/raid_expand:up_send_ctl VolClean
/usr/sbin/raid_expand:up_send_ctl VolStatus %d 6 %d 1
/usr/sbin/raid_expand:up_send_ctl VolStatus %d 6 100 1
/usr/sbin/raid_expand:up_send_ctl VolStatus %d 6 0 0
/usr/sbin/raid_expand:up_send_ctl ErrStatus %d 1 %d
/usr/sbin/default.script:                       up_send_ctl SysIP$IP_NUM $ip
/usr/sbin/ip.sh:                                up_send_ctl SysIP1Dis
/usr/sbin/ip.sh:                                up_send_ctl SysIP2Dis
/usr/sbin/ip.sh:                                up_send_ctl SysIPBondSet
/usr/sbin/ip.sh:                                        up_send_ctl SysIP1Dis
/usr/sbin/ip.sh:                                        up_send_ctl SysIP2Dis
/usr/sbin/load_default:#                                up_send_ctl APRDisable
/usr/sbin/shutdown.sh:  up_send_ctl DeviceShutdown 1
/usr/sbin/shutdown.sh:          up_send_ctl DeviceShutdown 0
/usr/sbin/system_init:if [ -e /usr/sbin/up_send_ctl ]; then
/usr/sbin/system_init:  up_send_ctl MCUVer &
/usr/sbin/usb_power.sh:        up_send_ctl PowerUSB 0 1
/usr/sbin/usb_power.sh:        up_send_ctl PowerUSB 1 1
/usr/sbin/usb_power.sh:        up_send_ctl PowerUSB 0 0
/usr/sbin/usb_power.sh:        up_send_ctl PowerUSB 1 0
/usr/sbin/zcip.script:  up_send_ctl SysIP$IP_NUM $ip
/usr/sbin/auto_fw:up_send_ctl ErrStatus %d 0
/usr/sbin/chk_fw_ver:up_send_ctl MCUReset 10
/usr/sbin/chk_hotplug:up_send_ctl ErrStatus %d 0
/usr/sbin/chk_io:up_send_ctl DeviceShutdownMsg
/usr/sbin/chk_io:up_send_ctl ErrStatus %d 0
/usr/sbin/chk_io:up_send_ctl WOLEnable
/usr/sbin/chk_io:up_send_ctl DeviceReady
/usr/sbin/chk_io:up_send_ctl ErrStatus %d 1
/usr/sbin/diskmgr:up_send_ctl ErrStatus %d 0
/usr/sbin/diskmgr:up_send_ctl VolClean
/usr/sbin/diskmgr:up_send_ctl VolStatus %d 6 %d 1
/usr/sbin/diskmgr:up_send_ctl VolStatus %d 6 100 1
/usr/sbin/diskmgr:up_send_ctl VolStatus %d 6 0 0
/usr/sbin/diskmgr:up_send_ctl ErrStatus %d 1 %d
/usr/sbin/do_reboot:up_send_ctl DeviceRstMsg
/usr/sbin/do_reboot:up_send_ctl MCUReset 10
/usr/sbin/fan_control:up_send_ctl temperature %d %d
/usr/sbin/fan_control:up_send_ctl SetFanSpeed %d
/usr/sbin/fan_control:up_send_ctl FanSpeed %drpm
/usr/sbin/hdVerify:up_send_ctl ErrStatus 4 0
/usr/sbin/hdVerify:up_send_ctl VolClean
/usr/sbin/hdVerify:up_send_ctl HDDExist 0
/usr/sbin/led:up_send_ctl PwrLedBlue 0
/usr/sbin/led:up_send_ctl PwrLedBlue 1
/usr/sbin/led:up_send_ctl PwrLedBlue 2
/usr/sbin/led:up_send_ctl SataLED %d %d
/usr/sbin/led:up_send_ctl PwrLedBlue 3
/usr/sbin/led:up_send_ctl PwrLedBlueBreath 200 0 10
/usr/sbin/led:up_send_ctl ErrStatus %d 0
/usr/sbin/mtp_backup:up_send_ctl ErrStatus %d 1 %d %d
/usr/sbin/mtp_backup:up_send_ctl ErrStatus %d 0
/usr/sbin/mtp_backup:up_send_ctl ErrStatus %d 1
/usr/sbin/network:up_send_ctl SysName "%s"
/usr/sbin/quota_monitor:up_send_ctl ErrStatus %d 1
/usr/sbin/rsyncmd:up_send_ctl ErrStatus %d 0
/usr/sbin/sata_disk:up_send_ctl ErrStatus %d 1 "%s"
/usr/sbin/sata_disk:up_send_ctl ErrStatus %d 0
/usr/sbin/scandisk:up_send_ctl ErrStatus %d 1
/usr/sbin/scandisk:up_send_ctl ErrStatus %d 0
/usr/sbin/set_pwm:up_send_ctl ErrStatus %d 0
/usr/sbin/set_pwm:up_send_ctl ErrStatus %d 1
/usr/sbin/sys_diag:up_send_ctl RDateAndTime
/usr/sbin/sys_diag:up_send_ctl WDateAndTime %d %d %d %d %d %d %d
/usr/sbin/sysinfod:up_send_ctl ErrStatus %d 0
/usr/sbin/sysinfod:up_send_ctl ErrStatus %d 1 "%s"
/usr/sbin/sysinfod:up_send_ctl ErrStatus %d 1 "%d"
/usr/sbin/sysinfod:up_send_ctl HDHealthy "%s"
/usr/sbin/sysinfod:up_send_ctl ErrStatus %d 1 %d --
/usr/sbin/sysinfod:up_send_ctl ErrStatus %d 1 %d %u
/usr/sbin/sysinfod:up_send_ctl ErrStatus %d 1 %d %d
/usr/sbin/sysinfod:up_send_ctl CapacityFree "%s %s"
/usr/sbin/system_daemon:up_send_ctl ErrStatus %d 0 %d
/usr/sbin/system_daemon:up_send_ctl SysIP1Dis
/usr/sbin/system_daemon:up_send_ctl SysIP1 %s
/usr/sbin/system_daemon:up_send_ctl SysIP2 %s
/usr/sbin/system_daemon:up_send_ctl SysIP2Dis
/usr/sbin/system_daemon:up_send_ctl ErrStatus %d 0
/usr/sbin/system_daemon:up_send_ctl SysIPBondSet
/usr/sbin/system_daemon:up_send_ctl SysIPBondClean
/usr/sbin/up_send_ctl:up_send_ctl.c
/usr/sbin/up_send_ctl:up_send_ctl WAlarmOncePerYear %d %d %d %d 0 &
/usr/sbin/up_send_ctl:up_send_ctl
/usr/sbin/up_send_ctl:[ ERROR ] : up_send_ctl retry
/usr/sbin/up_send_ctl:Up_Send_Ctl : Can not find specified command "%s"
/usr/sbin/up_send_init_info:up_send_ctl SysName %s
/usr/sbin/up_send_init_info:up_send_ctl APREnable
/usr/sbin/up_send_init_info:up_send_ctl APRDisable
/usr/sbin/up_send_init_info:up_send_ctl SysIP1 %s
/usr/sbin/up_send_init_info:up_send_ctl SysIP2 %s
/usr/sbin/up_send_init_info:up_send_ctl SysIPBondSet
/usr/sbin/up_send_init_info:up_send_ctl SysIP1Dis
/usr/sbin/up_send_init_info:up_send_ctl SysIP2Dis
/usr/sbin/up_send_init_info:up_send_ctl SysIPBondClean
/usr/sbin/up_send_init_info:up_send_ctl FirmwareVer %s
/usr/sbin/up_send_init_info:up_send_ctl backupDirection %d
/usr/sbin/up_send_init_info:up_send_ctl DeviceReady
/usr/sbin/up_send_init_info:up_send_ctl MCUVer
/usr/sbin/up_send_init_info:up_send_ctl LCDSleepMode 0
/usr/sbin/up_send_init_info:up_send_ctl LCDSleepMode 1
/usr/sbin/updateMountStatus:up_send_ctl VolStatus %d %d %d %d
/usr/sbin/upload_firmware:up_send_ctl ErrStatus %d 0
/usr/sbin/upload_firmware:up_send_ctl ErrStatus %d 1 %d
/usr/sbin/usb_disk:up_send_ctl usbExist 1
/usr/sbin/usb_disk:up_send_ctl usbExist 0
/usr/sbin/usb_disk:up_send_ctl backupDirection 1 > /dev/null &
/usr/sbin/usb_disk:up_send_ctl backupDirection 0 > /dev/null &
/usr/sbin/wd_set_ip:(up_send_ctl SysIP%d %s >/dev/null 2>&1)&
/usr/sbin/raid_expand_disks:up_send_ctl ErrStatus %d 0
/usr/sbin/raid_expand_disks:up_send_ctl VolClean
/usr/sbin/raid_expand_disks:up_send_ctl VolStatus %d 6 %d 1
/usr/sbin/raid_expand_disks:up_send_ctl VolStatus %d 6 100 1
/usr/sbin/raid_expand_disks:up_send_ctl VolStatus %d 6 0 0
/usr/sbin/raid_expand_disks:up_send_ctl ErrStatus %d 1 %d
/usr/sbin/raid_update_info:up_send_ctl ErrStatus %d 0
/usr/sbin/raid_update_info:up_send_ctl VolClean
/usr/sbin/raid_update_info:up_send_ctl VolStatus %d 6 %d 1
/usr/sbin/raid_update_info:up_send_ctl VolStatus %d 6 100 1
/usr/sbin/raid_update_info:up_send_ctl VolStatus %d 6 0 0
/usr/sbin/raid_update_info:up_send_ctl ErrStatus %d 1 %d
/usr/local/modules/cgi/network_mgr.cgi:(up_send_ctl SysIP%d %s >/dev/null 2>&1)&
/usr/local/modules/cgi/network_mgr.cgi:up_send_ctl SysIP%d %s >/dev/null
/usr/local/modules/cgi/network_mgr.cgi:up_send_ctl SysIP%dDis >/dev/null
/usr/local/modules/cgi/network_mgr.cgi:up_send_ctl SysIPBondClean & >/dev/null
/usr/local/modules/cgi/network_mgr.cgi:up_send_ctl SysIP1 %s
/usr/local/modules/cgi/network_mgr.cgi:up_send_ctl SysIP1Dis
/usr/local/modules/cgi/network_mgr.cgi:up_send_ctl SysIPBondSet & >/dev/null
/usr/local/modules/cgi/system_mgr.cgi:up_send_ctl LCDSleepMode 0 >/dev/null 2>&1 &
/usr/local/modules/cgi/system_mgr.cgi:up_send_ctl LCDSleepMode 1 >/dev/null 2>&1 &
/usr/local/modules/etc/wd/BVBZ-thermal.xml:       <command name="fan_not_working"            raise="echo '' > /dev/null" clear="up_send_ctl ErrStatus 0029 0; alert_led.sh 29 0" />
/usr/local/modules/etc/wd/BVBZ-thermal.xml:       <command name="system_over_temperature"    raise="echo '' > /dev/null" clear="up_send_ctl ErrStatus 0001 0" />
/usr/local/modules/etc/wd/BVBZ-thermal.xml:       <command name="system_under_temperature"   raise="echo '' > /dev/null" clear="up_send_ctl ErrStatus 0002 0" />
/usr/local/modules/etc/wd/BVBZ-thermal.xml:       <command name="system_pending_shutdown"    raise="echo '' > /dev/null" clear="up_send_ctl ErrStatus 0005 0" />
/usr/local/modules/etc/wd/BVBZ-thermal.xml:       <command name="thermal_shutdown_immediate" raise="echo '' > /dev/null" clear="up_send_ctl ErrStatus 0006 0" />
/usr/local/modules/etc/wd/BWAZ-thermal.xml:       <command name="fan_not_working"            raise="echo '' > /dev/null" clear="up_send_ctl ErrStatus 0029 0; alert_led.sh 29 0" />
/usr/local/modules/etc/wd/BWAZ-thermal.xml:       <command name="system_over_temperature"    raise="echo '' > /dev/null" clear="up_send_ctl ErrStatus 0001 0" />
/usr/local/modules/etc/wd/BWAZ-thermal.xml:       <command name="system_under_temperature"   raise="echo '' > /dev/null" clear="up_send_ctl ErrStatus 0002 0" />
/usr/local/modules/etc/wd/BWAZ-thermal.xml:       <command name="system_pending_shutdown"    raise="echo '' > /dev/null" clear="up_send_ctl ErrStatus 0005 0" />
/usr/local/modules/etc/wd/BWAZ-thermal.xml:       <command name="thermal_shutdown_immediate" raise="echo '' > /dev/null" clear="up_send_ctl ErrStatus 0006 0" />
/usr/local/modules/etc/wd/BWVZ-thermal.xml:       <command name="fan_not_working"            raise="echo '' > /dev/null" clear="up_send_ctl ErrStatus 0029 0; alert_led.sh 29 0" />
/usr/local/modules/etc/wd/BWVZ-thermal.xml:       <command name="system_over_temperature"    raise="echo '' > /dev/null" clear="up_send_ctl ErrStatus 0001 0" />
/usr/local/modules/etc/wd/BWVZ-thermal.xml:       <command name="system_under_temperature"   raise="echo '' > /dev/null" clear="up_send_ctl ErrStatus 0002 0" />
/usr/local/modules/etc/wd/BWVZ-thermal.xml:       <command name="system_pending_shutdown"    raise="echo '' > /dev/null" clear="up_send_ctl ErrStatus 0005 0" />
/usr/local/modules/etc/wd/BWVZ-thermal.xml:       <command name="thermal_shutdown_immediate" raise="echo '' > /dev/null" clear="up_send_ctl ErrStatus 0006 0" />
/usr/local/modules/etc/wd/BWZE-thermal.xml:       <command name="fan_not_working"            raise="echo '' > /dev/null" clear="up_send_ctl ErrStatus 0029 0; alert_led.sh 29 0" />
/usr/local/modules/etc/wd/BWZE-thermal.xml:       <command name="system_over_temperature"    raise="echo '' > /dev/null" clear="up_send_ctl ErrStatus 0001 0" />
/usr/local/modules/etc/wd/BWZE-thermal.xml:       <command name="system_under_temperature"   raise="echo '' > /dev/null" clear="up_send_ctl ErrStatus 0002 0" />
/usr/local/modules/etc/wd/BWZE-thermal.xml:       <command name="system_pending_shutdown"    raise="echo '' > /dev/null" clear="up_send_ctl ErrStatus 0005 0" />
/usr/local/modules/etc/wd/BWZE-thermal.xml:       <command name="thermal_shutdown_immediate" raise="echo '' > /dev/null" clear="up_send_ctl ErrStatus 0006 0" />
/usr/local/modules/lib/libwdhw.so:up_send_ctl ThermalGet
/usr/local/modules/lib/libwdhw.so:up_send_ctl SataStatus
/usr/local/modules/lib/libwdhw.so:up_send_ctl FanStatusGet
/usr/local/modules/lib/libwdhw.so:up_send_ctl SetFanSpeed 0
/usr/local/modules/lib/libwdhw.so:up_send_ctl SetFanSpeed %d
/usr/local/modules/lib/libwdhw.so.1:up_send_ctl ThermalGet
/usr/local/modules/lib/libwdhw.so.1:up_send_ctl SataStatus
/usr/local/modules/lib/libwdhw.so.1:up_send_ctl FanStatusGet
/usr/local/modules/lib/libwdhw.so.1:up_send_ctl SetFanSpeed 0
/usr/local/modules/lib/libwdhw.so.1:up_send_ctl SetFanSpeed %d
/usr/local/modules/opt/wd/lib/libwdhw.so:up_send_ctl ThermalGet
/usr/local/modules/opt/wd/lib/libwdhw.so:up_send_ctl SataStatus
/usr/local/modules/opt/wd/lib/libwdhw.so:up_send_ctl FanStatusGet
/usr/local/modules/opt/wd/lib/libwdhw.so:up_send_ctl SetFanSpeed 0
/usr/local/modules/opt/wd/lib/libwdhw.so:up_send_ctl SetFanSpeed %d
/usr/local/modules/opt/wd/lib/libwdhw.so.1:up_send_ctl ThermalGet
/usr/local/modules/opt/wd/lib/libwdhw.so.1:up_send_ctl SataStatus
/usr/local/modules/opt/wd/lib/libwdhw.so.1:up_send_ctl FanStatusGet
/usr/local/modules/opt/wd/lib/libwdhw.so.1:up_send_ctl SetFanSpeed 0
/usr/local/modules/opt/wd/lib/libwdhw.so.1:up_send_ctl SetFanSpeed %d
/usr/local/modules/script/default.script:                       up_send_ctl SysIP$IP_NUM $ip
/usr/local/modules/script/ip.sh:                                up_send_ctl SysIP1Dis
/usr/local/modules/script/ip.sh:                                up_send_ctl SysIP2Dis
/usr/local/modules/script/ip.sh:                                up_send_ctl SysIPBondSet
/usr/local/modules/script/ip.sh:                                        up_send_ctl SysIP1Dis
/usr/local/modules/script/ip.sh:                                        up_send_ctl SysIP2Dis
/usr/local/modules/script/load_default:#                                up_send_ctl APRDisable
/usr/local/modules/script/shutdown.sh:  up_send_ctl DeviceShutdown 1
/usr/local/modules/script/shutdown.sh:          up_send_ctl DeviceShutdown 0
/usr/local/modules/script/system_init:if [ -e /usr/sbin/up_send_ctl ]; then
/usr/local/modules/script/system_init:  up_send_ctl MCUVer &
/usr/local/modules/script/usb_power.sh:        up_send_ctl PowerUSB 0 1
/usr/local/modules/script/usb_power.sh:        up_send_ctl PowerUSB 1 1
/usr/local/modules/script/usb_power.sh:        up_send_ctl PowerUSB 0 0
/usr/local/modules/script/usb_power.sh:        up_send_ctl PowerUSB 1 0
/usr/local/modules/script/zcip.script:  up_send_ctl SysIP$IP_NUM $ip
/usr/local/modules/usrlib/libalert.so:up_send_ctl ErrStatus %d 0
/usr/local/modules/usrlib/libalert.so:up_send_ctl ErrStatus %d 1
/usr/local/modules/usrlib/libalert.so:up_send_ctl ErrStatus %d 1 "%s"
/usr/local/modules/usrlib/libalert.so:up_send_ctl ErrStatus %d 1 "%s" "%s"
/usr/local/modules/usrlib/libalert.so:up_send_ctl ErrStatus %d 1 "%s" "%s" "%s"
/usr/local/modules/usrlib/libalert.so:up_send_ctl ErrStatus %d 1 "%s" "%s" "%s""%s"
/usr/local/modules/usrlib/libalert.so:up_send_ctl ErrStatus %d 1 "%s" "%s" "%s" "%s" "%s"
/usr/local/modules/usrlib/libalert.so:up_send_ctl ErrStatus %d 1 "%s" "%s" "%s" "%s" "%s" "%s"
/usr/local/modules/usrlib/libhwshare.so:up_send_ctl SataStatus
/usr/local/modules/usrlib/libhwshare.so:up_send_ctl SataPower %lu 1
/usr/local/modules/usrlib/libhwshare.so:up_send_ctl SataPower %d %d
/usr/local/modules/usrlib/libhwshare.so:up_send_ctl APREnable
/usr/local/modules/usrlib/libhwshare.so:up_send_ctl APRDisable
/usr/local/modules/usrlib/libshare.so:up_send_ctl FanStatusGet
/usr/local/modules/usrlib/libtemperature.so:up_send_ctl SetFanSpeed %d
/usr/local/modules/usrlib/libtemperature.so:up_send_ctl ThermalGet
/usr/local/modules/usrlib/libtemperature.so:up_send_ctl FanStatusGet
/usr/local/modules/usrsbin/auto_fw:up_send_ctl ErrStatus %d 0
/usr/local/modules/usrsbin/chk_fw_ver:up_send_ctl MCUReset 10
/usr/local/modules/usrsbin/chk_hotplug:up_send_ctl ErrStatus %d 0
/usr/local/modules/usrsbin/chk_io:up_send_ctl DeviceShutdownMsg
/usr/local/modules/usrsbin/chk_io:up_send_ctl ErrStatus %d 0
/usr/local/modules/usrsbin/chk_io:up_send_ctl WOLEnable
/usr/local/modules/usrsbin/chk_io:up_send_ctl DeviceReady
/usr/local/modules/usrsbin/chk_io:up_send_ctl ErrStatus %d 1
/usr/local/modules/usrsbin/diskmgr:up_send_ctl ErrStatus %d 0
/usr/local/modules/usrsbin/diskmgr:up_send_ctl VolClean
/usr/local/modules/usrsbin/diskmgr:up_send_ctl VolStatus %d 6 %d 1
/usr/local/modules/usrsbin/diskmgr:up_send_ctl VolStatus %d 6 100 1
/usr/local/modules/usrsbin/diskmgr:up_send_ctl VolStatus %d 6 0 0
/usr/local/modules/usrsbin/diskmgr:up_send_ctl ErrStatus %d 1 %d
/usr/local/modules/usrsbin/do_reboot:up_send_ctl DeviceRstMsg
/usr/local/modules/usrsbin/do_reboot:up_send_ctl MCUReset 10
/usr/local/modules/usrsbin/fan_control:up_send_ctl temperature %d %d
/usr/local/modules/usrsbin/fan_control:up_send_ctl SetFanSpeed %d
/usr/local/modules/usrsbin/fan_control:up_send_ctl FanSpeed %drpm
/usr/local/modules/usrsbin/hdVerify:up_send_ctl ErrStatus 4 0
/usr/local/modules/usrsbin/hdVerify:up_send_ctl VolClean
/usr/local/modules/usrsbin/hdVerify:up_send_ctl HDDExist 0
/usr/local/modules/usrsbin/led:up_send_ctl PwrLedBlue 0
/usr/local/modules/usrsbin/led:up_send_ctl PwrLedBlue 1
/usr/local/modules/usrsbin/led:up_send_ctl PwrLedBlue 2
/usr/local/modules/usrsbin/led:up_send_ctl SataLED %d %d
/usr/local/modules/usrsbin/led:up_send_ctl PwrLedBlue 3
/usr/local/modules/usrsbin/led:up_send_ctl PwrLedBlueBreath 200 0 10
/usr/local/modules/usrsbin/led:up_send_ctl ErrStatus %d 0
/usr/local/modules/usrsbin/mtp_backup:up_send_ctl ErrStatus %d 1 %d %d
/usr/local/modules/usrsbin/mtp_backup:up_send_ctl ErrStatus %d 0
/usr/local/modules/usrsbin/mtp_backup:up_send_ctl ErrStatus %d 1
/usr/local/modules/usrsbin/network:up_send_ctl SysName "%s"
/usr/local/modules/usrsbin/quota_monitor:up_send_ctl ErrStatus %d 1
/usr/local/modules/usrsbin/rsyncmd:up_send_ctl ErrStatus %d 0
/usr/local/modules/usrsbin/sata_disk:up_send_ctl ErrStatus %d 1 "%s"
/usr/local/modules/usrsbin/sata_disk:up_send_ctl ErrStatus %d 0
/usr/local/modules/usrsbin/scandisk:up_send_ctl ErrStatus %d 1
/usr/local/modules/usrsbin/scandisk:up_send_ctl ErrStatus %d 0
/usr/local/modules/usrsbin/set_pwm:up_send_ctl ErrStatus %d 0
/usr/local/modules/usrsbin/set_pwm:up_send_ctl ErrStatus %d 1
/usr/local/modules/usrsbin/sys_diag:up_send_ctl RDateAndTime
/usr/local/modules/usrsbin/sys_diag:up_send_ctl WDateAndTime %d %d %d %d %d %d %d
/usr/local/modules/usrsbin/sysinfod:up_send_ctl ErrStatus %d 0
/usr/local/modules/usrsbin/sysinfod:up_send_ctl ErrStatus %d 1 "%s"
/usr/local/modules/usrsbin/sysinfod:up_send_ctl ErrStatus %d 1 "%d"
/usr/local/modules/usrsbin/sysinfod:up_send_ctl HDHealthy "%s"
/usr/local/modules/usrsbin/sysinfod:up_send_ctl ErrStatus %d 1 %d --
/usr/local/modules/usrsbin/sysinfod:up_send_ctl ErrStatus %d 1 %d %u
/usr/local/modules/usrsbin/sysinfod:up_send_ctl ErrStatus %d 1 %d %d
/usr/local/modules/usrsbin/sysinfod:up_send_ctl CapacityFree "%s %s"
/usr/local/modules/usrsbin/system_daemon:up_send_ctl ErrStatus %d 0 %d
/usr/local/modules/usrsbin/system_daemon:up_send_ctl SysIP1Dis
/usr/local/modules/usrsbin/system_daemon:up_send_ctl SysIP1 %s
/usr/local/modules/usrsbin/system_daemon:up_send_ctl SysIP2 %s
/usr/local/modules/usrsbin/system_daemon:up_send_ctl SysIP2Dis
/usr/local/modules/usrsbin/system_daemon:up_send_ctl ErrStatus %d 0
/usr/local/modules/usrsbin/system_daemon:up_send_ctl SysIPBondSet
/usr/local/modules/usrsbin/system_daemon:up_send_ctl SysIPBondClean
/usr/local/modules/usrsbin/up_send_ctl:up_send_ctl.c
/usr/local/modules/usrsbin/up_send_ctl:up_send_ctl WAlarmOncePerYear %d %d %d %d 0 &
/usr/local/modules/usrsbin/up_send_ctl:up_send_ctl
/usr/local/modules/usrsbin/up_send_ctl:[ ERROR ] : up_send_ctl retry
/usr/local/modules/usrsbin/up_send_ctl:Up_Send_Ctl : Can not find specified command "%s"
/usr/local/modules/usrsbin/up_send_init_info:up_send_ctl SysName %s
/usr/local/modules/usrsbin/up_send_init_info:up_send_ctl APREnable
/usr/local/modules/usrsbin/up_send_init_info:up_send_ctl APRDisable
/usr/local/modules/usrsbin/up_send_init_info:up_send_ctl SysIP1 %s
/usr/local/modules/usrsbin/up_send_init_info:up_send_ctl SysIP2 %s
/usr/local/modules/usrsbin/up_send_init_info:up_send_ctl SysIPBondSet
/usr/local/modules/usrsbin/up_send_init_info:up_send_ctl SysIP1Dis
/usr/local/modules/usrsbin/up_send_init_info:up_send_ctl SysIP2Dis
/usr/local/modules/usrsbin/up_send_init_info:up_send_ctl SysIPBondClean
/usr/local/modules/usrsbin/up_send_init_info:up_send_ctl FirmwareVer %s
/usr/local/modules/usrsbin/up_send_init_info:up_send_ctl backupDirection %d
/usr/local/modules/usrsbin/up_send_init_info:up_send_ctl DeviceReady
/usr/local/modules/usrsbin/up_send_init_info:up_send_ctl MCUVer
/usr/local/modules/usrsbin/up_send_init_info:up_send_ctl LCDSleepMode 0
/usr/local/modules/usrsbin/up_send_init_info:up_send_ctl LCDSleepMode 1
/usr/local/modules/usrsbin/updateMountStatus:up_send_ctl VolStatus %d %d %d %d
/usr/local/modules/usrsbin/upload_firmware:up_send_ctl ErrStatus %d 0
/usr/local/modules/usrsbin/upload_firmware:up_send_ctl ErrStatus %d 1 %d
/usr/local/modules/usrsbin/usb_disk:up_send_ctl usbExist 1
/usr/local/modules/usrsbin/usb_disk:up_send_ctl usbExist 0
/usr/local/modules/usrsbin/usb_disk:up_send_ctl backupDirection 1 > /dev/null &
/usr/local/modules/usrsbin/usb_disk:up_send_ctl backupDirection 0 > /dev/null &
/usr/local/modules/usrsbin/wd_set_ip:(up_send_ctl SysIP%d %s >/dev/null 2>&1)&
Re: Debian on WD MyCloud EX 4100
July 14, 2017 02:16AM
saschadd,

cat /usr/local/modules/usrsbin/up_send_ctl

And this told us there is a c file somewhere


Quote

/usr/local/modules/usrsbin/up_send_ctl:up_send_ctl.c

The worst case, we'll just copy that binary and use it to shutdown.

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



Edited 3 time(s). Last edit at 07/14/2017 02:21AM by bodhi.
Re: Debian on WD MyCloud EX 4100
July 14, 2017 03:08AM
bodhi,

cant find the up_send_ctl.c file but attached the /usr/local/modules/usrsbin/up_send_ctl for your information.
Attachments:
open | download - up_send_ctl (27.9 KB)
Re: Debian on WD MyCloud EX 4100
July 14, 2017 03:14AM
saschadd,

> cant find the up_send_ctl.c file but attached the
> /usr/local/modules/usrsbin/up_send_ctl for your in
> formation.

I've also found this binary in the GPL.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
Re: Debian on WD MyCloud EX 4100
July 14, 2017 03:24AM
bodhi Wrote:
-------------------------------------------------------
> saschadd,
>
> > cant find the up_send_ctl.c file but attached th
> e
> > /usr/local/modules/usrsbin/up_send_ctl for your
> in
> > formation.
>
> I've also found this binary in the GPL.

Good. Have you found the up_send_ctl.c file?
Re: Debian on WD MyCloud EX 4100
July 14, 2017 03:41AM
It seems MM has figured this out before for the Mirror Gen 2:

http://forum.doozan.com/read.php?2,28939,31615#msg-31615

It was good works. And the patch might work for the EX4100. However, I'm not sure if I will personally go that far with patching the kernel to have a poweroff driver just for 1 or 2 boxes.

I'm wondering if hmartin has seen this MCU controlled poweroff behavior in the EX2100...

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

I'm still exploring different approaches to shutdown:
http://forum.doozan.com/read.php?2,35291,35538,page=2#msg-35538

In the mean time, after you do "shutdown -h now", wait for 30 seconds or a minute and it safe to turn off power. If you also watch serial console from another box, then you would know when you can turn off power sooner.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
Re: Debian on WD MyCloud EX 4100
July 17, 2017 02:31PM
Quote
bodhi
I'm wondering if hmartin has seen this MCU controlled poweroff behavior in the EX2100...

I have not yet built mcm daemon or used the patched kernel from MM, but I can confirm the same behaviour is on the EX2100. If you do not have the MicroP support implemented, then once the Marvell CPU halts power is retained to the rest of the device. Lights still on, fan still spinning, etc.
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: