Debian on WD MyCloud EX2100 August 07, 2017 03:30PM |
Registered: 7 years ago Posts: 119 |
Load WD Yosemite Serdes Config: board SerDes lanes topology details: | Lane # | Speed | Type | -------------------------------- | 0 | 06 | SATA0 | | 1 | 05 | PCIe0 | | 2 | 06 | SATA1 | | 3 | 05 | USB3 HOST1 | | 4 | 05 | USB3 HOST0 | | 5 | 00 | SGMII2 | -------------------------------- PCIe, Idx 0: detected no link High speed PHY - Ended Successfully ...(later) Net: | port | Interface | PHY address | |--------|-----------|--------------| | egiga0 | RGMII | 0x00 | | egiga1 | RGMII | In-Band | | egiga2 | SGMII | 0x01 |
send_packet: Network is down dhclient.c:2255: Failed to send 300 byte long packet over eth1 interface. receive_packet failed on eth1: Network is down
# /usr/bin/mcm-daemon -f -c /etc/mcm-daemon.ini mcm-daemon[2737]: Server startup success on port 57367 mcm-daemon[2737]: Got no stop magic, but read 1 bytes! mcm-daemon[2737]: Got no stop magic, but read 1 bytes! mcm-daemon[2737]: Got no stop magic, but read 1 bytes! mcm-daemon[2737]: Got no stop magic, but read 1 bytes! mcm-daemon[2737]: Error sending DeviceReady command, exit!
printf("Enable HD1\n"); serial2_putc(0xfa); serial2_putc(0x6); serial2_putc(0x1); serial2_putc(0x0); serial2_putc(0x1); serial2_putc(0x1); serial2_putc(0xfb);
#if 1 //ALPHA_CUSTOMIZE void serial2_putc(const char c) { #if defined(CONFIG_MV_SMP) || (defined(MV78XX0) && defined(MV78200)) if (c == '\n') mvUartPutc((whoAmI())%2, '\r'); mvUartPutc((whoAmI())%2, c); #else if (c == '\n') mvUartPutc(1, '\r'); mvUartPutc(1, c); #endif } #endif
root@WDMyCloudEX2100 / # up_send_ctl PowerStatus root@WDMyCloudEX2100 / # up_send_ctl MCUVer
Re: Debian on WD MyCloud EX2100 August 07, 2017 03:57PM |
Registered: 7 years ago Posts: 119 |
printf("Make Power LED flash orange\n"); serial2_putc(0xfa); serial2_putc(0x26); serial2_putc(0x00); serial2_putc(0x22); serial2_putc(0x00); serial2_putc(0x01); serial2_putc(0xfb); for ( i=0;i<5;i++) udelay(1000000); printf("Make the fan shut up\n"); serial2_putc(0xfa); serial2_putc(0x02); serial2_putc(0x00); serial2_putc(0x50); serial2_putc(0x00); serial2_putc(0x00); serial2_putc(0xfb); for ( i=0;i<5;i++) udelay(1000000);
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:XX:XX:XX (platform) port #2: is_sgmii=1, is_rgmii=0, phy_addr=1 o Loading network interface(s) for port #2: cpu_mask=0x3, tx_csum_limit=2048 o Port 2 is connected to Linux netdevice o egiga1, ifindex = 3, GbE port = 2 giga p=2: mtu=1500, mac=00:50:43:XX:XX:XX (platform)
Re: Debian on WD MyCloud EX2100 August 07, 2017 06:40PM |
Admin Registered: 13 years ago Posts: 18,852 |
Re: Debian on WD MyCloud EX2100 August 08, 2017 12:40AM |
Registered: 7 years ago Posts: 119 |
sysinfod: Disk2(sda) detected. sysinfod: inform: Disk1 failed on. sysinfod: inform: Disk1 non-healthy on. sysinfod: inform: all drives status=Fault. UBIFS: un-mount UBI device 0, volume 0 UBIFS: background thread "ubifs_bgt0_0" stops MODEL:WDMyCloudEX2100 egiga0: link down egiga0: link up, full duplex, speed 1 Gbps egiga1: link down egiga1: link up, full duplex, speed 1 Gbps send cmd to micro-p to shutdown The system is going down NOW! Sent SIGTERM to all processes Requesting system poweroff sd 0:0:0:0: [sda] Synchronizing SCSI cache sd 0:0:0:0: [sda] Stopping disk xhci-hcd f10f8000.usb3: remove, state 1 usb usb5: USB disconnect, device number 1 xhci-hcd f10f8000.usb3: USB bus 5 deregistered xhci-hcd f10f8000.usb3: remove, state 1 usb usb4: USB disconnect, device number 1 xhci-hcd f10f8000.usb3: USB bus 4 deregistered xhci-hcd f10f0000.usb3: remove, state 1 usb usb3: USB disconnect, device number 1 xhci-hcd f10f0000.usb3: USB bus 3 deregistered xhci-hcd f10f0000.usb3: remove, state 1 usb usb2: USB disconnect, device number 1 xhci-hcd f10f0000.usb3: USB bus 2 deregistered Shutting Down Marvell Ethernet Driver Shutting Down Marvell Ethernet Driver System halted.
Re: Debian on WD MyCloud EX2100 August 08, 2017 03:43AM |
Admin Registered: 13 years ago Posts: 18,852 |
Re: Debian on WD MyCloud EX2100 August 08, 2017 11:45AM |
Registered: 7 years ago Posts: 119 |
Quote
bodhi
And it is not unsual for the GPL to be different source than the one they flashed in the FW release. They are not legally obligated to release the same exact source code GPL as the binary they install in the FW. I've seen this before.
Quote
bodhi
I think, perhaps it means that we are not done with the DTS. It probably does not have enough to set the box MCU to a default state when the kernel comes up.
Re: Debian on WD MyCloud EX2100 August 08, 2017 12:38PM |
Registered: 7 years ago Posts: 119 |
char EnableHd1Cmd[] = {0xfa, 0x06, 0x01, 0x00, 0x01, 0x01, 0xfb}; char EnableHd2Cmd[] = {0xfa, 0x06, 0x01, 0x01, 0x01, 0x01, 0xfb};
char PwrOffCmd[] = {0xfa, 0x03, 0x11, 0x00, 0x00, 0x00, 0xfb};
Re: Debian on WD MyCloud EX2100 August 08, 2017 02:32PM |
Registered: 7 years ago Posts: 119 |
Re: Debian on WD MyCloud EX2100 August 08, 2017 04:43PM |
Admin Registered: 13 years ago Posts: 18,852 |
Quote
I fixed the EX2100 dts to work with both onboard Ethernet interfaces!
Quote
Really? I thought the GPL required them to release the source code of the firmware version running on the device. Otherwise what's the point?
Quote
I had that thought as well, but it doesn't explain why the stock firmware running from flash also cannot communicate with the MCU anymore. If it was an issue with the DTS, you would expect it to function in the stock firmware but not in Debian. This is sadly not the case.
Re: Debian on WD MyCloud EX2100 August 09, 2017 11:44AM |
Registered: 7 years ago Posts: 119 |
Quote
bodhi
I think it means some MCU states are persistent. So even stock OS did not reset it correctly. Have you tried removing the RTC battery?
Re: Debian on WD MyCloud EX2100 August 13, 2017 06:58AM |
Registered: 7 years ago Posts: 119 |
Re: Debian on WD MyCloud EX2100 October 01, 2017 09:38AM |
Registered: 7 years ago Posts: 119 |
Yosemite Uart test nick 2222 nick pwr on Check_SYSTEM_Command=11 PwrOnCause=10 Check_SATA_POWER_Command=0001 Check_SATA_POWER_Command=0101 Check_SYSTEM_Command=16 Check_SYSTEM_Command=16 Check_SYSTEM_Command=16 Check_SYSTEM_Command=16 Check_SYSTEM_Command=16 Check_SYSTEM_Command=16 Check_SYSTEM_Command=16 Check_SYSTEM_Command=16 Check_SYSTEM_Command=16 Check_SYSTEM_Command=16
Check_SYSTEM_Command=16 Check_SYSTEM_Command=08 TemperatureValue_MAIN=6A Check_SYSTEM_Command=08 TemperatureValue_MAIN=6A Check_SYSTEM_Command=08 TemperatureValue_MAIN=6A Check_SYSTEM_Command=08 TemperatureValue_MAIN=6A Check_SYSTEM_Command=08 TemperatureValue_MAIN=6A Check_SYSTEM_Command=05 Check_SYSTEM_Command=08 TemperatureValue_MAIN=6A Check_SYSTEM_Command=08 TemperatureValue_MAIN=6A Check_SYSTEM_Command=08 TemperatureValue_MAIN=6A Check_SYSTEM_Command=08 TemperatureValue_MAIN=6A 1 read SPI=01 1 read SPI=01 1 read SPI=01 1 read SPI=01 1 read SPI=01 1 read SPI=01 1 read SPI=01 1 read SPI=01 -------------FF Check_SATA_STATUS=0F Check_SYSTEM_Command=08 TemperatureValue_MAIN=6A Check_SYSTEM_Command=08 TemperatureValue_MAIN=6A Check_SYSTEM_Command=08 TemperatureValue_MAIN=6A Check_SYSTEM_Command=08 TemperatureValue_MAIN=6A Check_SYSTEM_Command=02 Check_SYSTEM_Command=08 TemperatureValue_MAIN=6A Check_SYSTEM_Command=01 Check_SYSTEM_Command=05 Check_SYSTEM_Command=06 POWER_LED=0100 Check_SYSTEM_Command=06 POWER_LED=0000 Check_SYSTEM_Command=06 POWER_LED=0201 Check_SYSTEM_Command=06 POWER_LED=0100
root@WDMyCloudEX2100 / # fan_control -g 0 Current temperature is 34 hd0 temperature=0 hd1 temperature=0 CPU temperature=63
Re: Debian on WD MyCloud EX2100 October 01, 2017 09:45AM |
Registered: 7 years ago Posts: 119 |
Re: Debian on WD MyCloud EX2100 October 20, 2017 01:12AM |
Registered: 10 years ago Posts: 143 |
Re: Debian on WD MyCloud EX2100 October 21, 2017 01:50AM |
Registered: 7 years ago Posts: 119 |
Re: Debian on WD MyCloud EX2100 November 25, 2017 05:30AM |
Registered: 7 years ago Posts: 119 |
open("/dev/ttyS1", O_RDWR|O_NOCTTY|O_LARGEFILE) = 3 ioctl(3, TCFLSH, 0) = 0 ioctl(3, SNDCTL_TMR_START or TCSETS, {B115200 -opost -isig -icanon -echo ...}) = 0 write(3, "\372", 1) = 1 nanosleep({0, 10000}, NULL) = 0 write(3, "\3", 1) = 1 nanosleep({0, 10000}, NULL) = 0 write(3, "\26", 1) = 1 nanosleep({0, 10000}, NULL) = 0 write(3, "\0", 1) = 1 nanosleep({0, 10000}, NULL) = 0 write(3, "\0", 1) = 1 nanosleep({0, 10000}, NULL) = 0 write(3, "\0", 1) = 1 nanosleep({0, 10000}, NULL) = 0 write(3, "\373", 1) = 1 nanosleep({0, 10000}, NULL) = 0 nanosleep({0, 300000000}, NULL) = 0 socket(PF_LOCAL, SOCK_STREAM, 0) = 4 fcntl64(4, F_SETFD, FD_CLOEXEC) = 0
#modify MCU baudrate if [ -e /usr/sbin/up_modify_baudrate ]; then echo "change baudrate to 19200" up_modify_baudrate fi
mcm-daemon[3381]: Bind name to ls. mcm-daemon[3381]: Listen on ls for connections. mcm-daemon[3381]: Server startup success on port 57367 mcm-daemon[3381]: Try number: 1 mcm-daemon[3381]: mcm-daemon startup complete, going to FanControl mode mcm-daemon[3381]: found 2 ata ports mcm-daemon[3381]: setFanSpeed 80 mcm-daemon[3381]: Clearing Serial Port... mcm-daemon[3381]: Try number: 1 mcm-daemon[3381]: Returning 1 read bytes mcm-daemon[3381]: Try number: 1 mcm-daemon[3381]: Read system temperature: 33 °C mcm-daemon[3381]: Returning 1 read bytes mcm-daemon[3381]: Try number: 1 mcm-daemon[3381]: Read fan rpm: 0 mcm-daemon[3381]: fan not running with speed 80 mcm-daemon[3381]: setFanSpeed 82 mcm-daemon[3381]: Try number: 1 mcm-daemon[3381]: system temp: 33 fan rpm: 0 mcm-daemon[3381]: query disk 1 temperature mcm-daemon[3381]: query disk 2 temperature mcm-daemon[3381]: system tempOld: 33, temp: 33, fanSpeed: 82, fanRpm: 0 mcm-daemon[3381]: setFanSpeed 0 mcm-daemon[3381]: Try number: 1
Check_SYSTEM_Command=08 TemperatureValue_MAIN=6D Check_FAN_Command=00 fan speed=00 Check_FAN_Command=00 Check_SYSTEM_Command=08 TemperatureValue_MAIN=6D Check_FAN_Command=00 fan speed=00 Check_SYSTEM_Command=08 TemperatureValue_MAIN=6D Check_FAN_Command=00 fan speed=00 Check_SYSTEM_Command=01 Check_FAN_Command=50 Check_SYSTEM_Command=08 TemperatureValue_MAIN=6C Check_FAN_Command=00 fan speed=00 Check_FAN_Command=52 Check_FAN_Command=00
Re: Debian on WD MyCloud EX2100 November 25, 2017 04:19PM |
Admin Registered: 13 years ago Posts: 18,852 |
Re: Debian on WD MyCloud EX2100 November 26, 2017 01:09AM |
Registered: 7 years ago Posts: 119 |
Re: Debian on WD MyCloud EX2100 November 26, 2017 02:40AM |
Admin Registered: 13 years ago Posts: 18,852 |
Quote
hmartin Wrote:
-------------------------------------------------------
>>Quote
bodhi
> Other devices uses 19200n8, do you mean WD NAS
> devices?
>
> I guess since mcm-daemon is only for WD devices,
> yes I mean other WD NAS devices use 19200 and the
> EX2100 uses 115200 for MCU baud rate.
Re: Debian on WD MyCloud EX2100 November 26, 2017 10:10AM |
Registered: 7 years ago Posts: 119 |
Quote
bodhi
Argh :) that's just thoughtless WD.
Re: Debian on WD MyCloud EX2100 January 06, 2018 01:05AM |
Registered: 7 years ago Posts: 119 |
Re: Debian on WD MyCloud EX2100 January 06, 2018 02:02AM |
Admin Registered: 13 years ago Posts: 18,852 |
Re: Debian on WD MyCloud EX2100 January 06, 2018 12:23PM |
Registered: 7 years ago Posts: 119 |
19436 root 49120 R mcu_upgrade -r -f /tmp/uP_0.bin 19552 root 2720 R ps ax
Re: Debian on WD MyCloud EX2100 January 20, 2018 08:48AM |
Registered: 7 years ago Posts: 119 |
Re: Debian on WD MyCloud EX2100 January 20, 2018 10:05AM |
Admin Registered: 13 years ago Posts: 18,852 |
Re: Debian on WD MyCloud EX2100 January 20, 2018 11:04AM |
Registered: 7 years ago Posts: 119 |
nick 2222 nick pwr on Check_SYSTEM_Command=11 PwrOnCause=10 Check_SATA_POWER_Command=0001 Check_SATA_POWER_Command=0101