MM
Re: WD MyCloud Mirror Gen2 (BWVZ, GrandTeton) January 24, 2017 06:29PM |
MM
Re: WD MyCloud Mirror Gen2 (BWVZ, GrandTeton) January 25, 2017 02:33PM |
Re: WD MyCloud Mirror Gen2 (BWVZ, GrandTeton) January 25, 2017 03:48PM |
Registered: 9 years ago Posts: 19 |
MM
Re: WD MyCloud Mirror Gen2 (BWVZ, GrandTeton) January 26, 2017 06:02AM |
Re: WD MyCloud Mirror Gen2 (BWVZ, GrandTeton) January 26, 2017 02:36PM |
Registered: 10 years ago Posts: 143 |
I agree to you: It's a nice to have but the device is working quite good without. And I dont't think I'll use these features as well.Quote
MM
There are some things missing which I'm not very interested in.
- the RTC stuff in the Microcontroller, if it exists at all in this device (waking the device at specific times)
- wakeonlan (which seems to be quite complicated between the armada and the MCU and selecting the correct PHY)
echo "Command" | nc -q1 localhost 57367is not very conformable and to enter telnet is nither so here a more strate forward command handly would be great.
Re: WD MyCloud Mirror Gen2 (BWVZ, GrandTeton) January 26, 2017 03:28PM |
Admin Registered: 13 years ago Posts: 19,102 |
Hit any key to stop autoboot: 0
Re: WD MyCloud Mirror Gen2 (BWVZ, GrandTeton) January 26, 2017 04:01PM |
Registered: 10 years ago Posts: 143 |
Re: WD MyCloud Mirror Gen2 (BWVZ, GrandTeton) January 26, 2017 05:05PM |
Admin Registered: 13 years ago Posts: 19,102 |
MM
Re: WD MyCloud Mirror Gen2 (BWVZ, GrandTeton) January 26, 2017 06:27PM |
echo "Command" | nc -q1 localhost 57367> is not very conformable and to enter telnet is nither so here a more strate forward command
mcm-daemon -x <some command>
function mcm() { echo "$*" | nc -q1 127.0.0.1 57367 }Then you can just do:
root@nas1:~# mcm SetFanSpeed 200 OK
MM
Re: WD MyCloud Mirror Gen2 (BWVZ, GrandTeton) January 26, 2017 06:31PM |
Re: WD MyCloud Mirror Gen2 (BWVZ, GrandTeton) January 26, 2017 07:37PM |
Admin Registered: 13 years ago Posts: 19,102 |
fw_printenv
Re: WD MyCloud Mirror Gen2 (BWVZ, GrandTeton) January 28, 2017 09:56AM |
Registered: 10 years ago Posts: 143 |
Quote
MM
Yes, but how would you solve it?
I would just put a too high default value into the config and let the user fix it for himself. What better solution do we have?
while fanrpm < 1 { fanSpeed ++ fanRpm = readFan(); sleep 0.25 } fanSpeed = fanSpeed + 0.02*fanSpeed #for to be sureIf I have time this weekend I'll do a commit :-)
Quote
MM
> Further do you think I would work to write the fan-rpm and temp into files in /sys/class/hwmon1/
> to have it readable for programs like "sensors" or other standard monitoring apps?
Not below /sys as that would only work from within the kernel. I could write the data to some file under /var/run/mcm or something like that, preferably some place, that resides on a tmpfs.
Re: WD MyCloud Mirror Gen2 (BWVZ, GrandTeton) January 28, 2017 03:46PM |
Admin Registered: 13 years ago Posts: 19,102 |
apt-get install mtd-utils
cat /proc/cmdline cat /proc/mtd cat /etc/fw_env.config
Re: WD MyCloud Mirror Gen2 (BWVZ, GrandTeton) January 28, 2017 04:31PM |
Registered: 10 years ago Posts: 143 |
Re: WD MyCloud Mirror Gen2 (BWVZ, GrandTeton) January 28, 2017 05:28PM |
Admin Registered: 13 years ago Posts: 19,102 |
[ 5.335654] 8 ofpart partitions found on MTD device pxa3xx_nand-0 [ 5.341782] Creating 8 MTD partitions on "pxa3xx_nand-0": [ 5.347205] 0x000000000000-0x000000500000 : "U-Boot" [ 5.352740] 0x000000500000-0x000000a00000 : "uImage"
U-Boot Environment: 0x00000000:0x00080000 (NAND)
Re: WD MyCloud Mirror Gen2 (BWVZ, GrandTeton) January 28, 2017 06:03PM |
Admin Registered: 13 years ago Posts: 19,102 |
# MTD device name Device offset Env. size Flash sector size Number of sectors /dev/mtd0 0x00080000 0x20000 0x20000
Re: WD MyCloud Mirror Gen2 (BWVZ, GrandTeton) January 28, 2017 06:13PM |
Admin Registered: 13 years ago Posts: 19,102 |
mtdparts=armada-nand:5m(u-boot),5m@5m(kernel),5m@10m(uRamdisk),185m@15m(image.cfs),15m@200m(rescue_fw),20m@215m(config),10m@235m(reserve1),10m@245m(reserve2)
Re: WD MyCloud Mirror Gen2 (BWVZ, GrandTeton) January 29, 2017 03:54AM |
Registered: 10 years ago Posts: 143 |
root@wdebian:~# cat /etc/fw_env.config # MTD device name Device offset Env. size Flash sector size Number of sectors /dev/mtd0 0x00080000 0x20000 0x20000 root@wdebian:~# fw_printenv Warning: Bad CRC, using default environment bootargs= bootcmd=bootp; setenv bootargs root=/dev/nfs nfsroot=${serverip}:${rootpath} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off; bootm bootdelay=3 baudrate=115200 stdin=serial,cros-ec-keyb stdout=serial,lcd stderr=serial,lcd
Re: WD MyCloud Mirror Gen2 (BWVZ, GrandTeton) February 12, 2017 05:30AM |
Registered: 10 years ago Posts: 143 |
Re: WD MyCloud Mirror Gen2 (BWVZ, GrandTeton) February 12, 2017 03:19PM |
Admin Registered: 13 years ago Posts: 19,102 |
update-initramfs -u
Re: WD MyCloud Mirror Gen2 (BWVZ, GrandTeton) February 13, 2017 01:49AM |
Registered: 10 years ago Posts: 143 |
Re: WD MyCloud Mirror Gen2 (BWVZ, GrandTeton) February 13, 2017 02:42AM |
Admin Registered: 13 years ago Posts: 19,102 |
Re: WD MyCloud Mirror Gen2 (BWVZ, GrandTeton) February 13, 2017 03:06AM |
Admin Registered: 13 years ago Posts: 19,102 |
Re: WD MyCloud Mirror Gen2 (BWVZ, GrandTeton) February 13, 2017 03:57AM |
Admin Registered: 13 years ago Posts: 19,102 |
MM
Re: WD MyCloud Mirror Gen2 (BWVZ, GrandTeton) February 13, 2017 05:44AM |
Re: WD MyCloud Mirror Gen2 (BWVZ, GrandTeton) February 13, 2017 11:36AM |
Registered: 10 years ago Posts: 143 |
kwboot -d -b ./u-boot-a38x-RangerPeak_2014T3_PQ-nand-uart_1G.bin -B 115200 /dev/ttyUSB0 Sending debug message. Please reboot the target...\ Sending boot image... M - 1.73 Booting from NAND flashl General initialization - Version: 1.0.0 Detected Device ID 6820 High speed PHY - Version: 2.0 Load WD GrandTeton 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 DDR3 Training Sequence - Ver TIP-1.26.0 mvSysEnvGetTopologyUpdateInfo: TWSI Read failed DDR3 Training Sequence - Switching XBAR Window to FastPath Window DDR3 Training Sequence - Ended Successfully BootROM: Image checksum verification PASSED l __ __ _ _ | \/ | __ _ _ ____ _____| | | | |\/| |/ _` | '__\ \ / / _ \ | | | | | | (_| | | \ V / __/ | | |_| |_|\__,_|_| \_/ \___|_|_| _ _ ____ _ | | | | | __ ) ___ ___ | |_ | | | |___| _ \ / _ \ / _ \| __| | |_| |___| |_) | (_) | (_) | |_ \___/ |____/ \___/ \___/ \__| ** LOADER ** U-Boot 2013.01_v1.04 (Aug 20 2015 - 11:11:32) Marvell version: 2014_T3.0p6 mvBoardIdIndexGet(boardId) = 1 Board: GrandTeton DB6820 SoC: MV88F6820 Rev A0 running 2 CPUs CPU: ARM Cortex A9 MPCore (Rev 1) LE CPU 0 CPU @ 1332 [MHz] L2 @ 666 [MHz] TClock @ 200 [MHz] DDR @ 666 [MHz] DDR 32 Bit Width, FastPath Memory Access, DLB Enabled, ECC Disabled DRAM: 1 GiB Map: Code: 0x3fece000:0x3ff95bd4 BSS: 0x3ffef254 Stack: 0x3f9cdf20 Heap: 0x3f9ce000:0x3fece000 raise: Signal # 8 caught raise: Signal # 8 caught U-Boot Environment: 0x00000000:0x00080000 (NAND) NAND: ID: daad ,256 MiB MMC: mv_sdh: 0 PCI-e 0: Detected No Link. USB2.0 0: Host Mode USB3.0 0: Host Mode USB3.0 1: Host Mode Board configuration detected: Creating 1 MTD partitions on "nand0": 0x00000f500000-0x00000ff00000 : "mtd=7" UBI: attaching mtd1 to ubi0 UBI: physical eraseblock size: 131072 bytes (128 KiB) UBI: logical eraseblock size: 126976 bytes UBI: smallest flash I/O unit: 2048 UBI: VID header offset: 2048 (aligned 2048) UBI: data offset: 4096 UBI: attached mtd1 to ubi0 UBI: MTD device name: "mtd=7" UBI: MTD device size: 10 MiB UBI: number of good PEBs: 80 UBI: number of bad PEBs: 0 UBI: max. allowed volumes: 128 UBI: wear-leveling threshold: 4096 UBI: number of internal volumes: 1 UBI: number of user volumes: 1 UBI: available PEBs: 32 UBI: total number of reserved PEBs: 48 UBI: number of PEBs reserved for bad PEB handling: 2 UBI: max/mean erase counter: 5/2 UBIFS: mounted UBI device 0, volume 0, name "reserve2" UBIFS: mounted read-only UBIFS: file system size: 4063232 bytes (3968 KiB, 3 MiB, 32 LEBs) UBIFS: journal size: 1015809 bytes (992 KiB, 0 MiB, 6 LEBs) UBIFS: media format: w4/r0 (latest is w4/r0) UBIFS: default compressor: LZO UBIFS: reserved for root: 200807 bytes (196 KiB) Loading file '/mac_addr' to addr 0x02000000 with size 18 (0x00000012)... Done Set lan 2 WakeOnLan ok 0 % [+xmodem: Protocol error
./a.out -p ./u-boot-a38x-RangerPeak_2014T3_PQ-nand-uart_1G.bin -B 115200 /dev/ttyUSB0 Usage: a.out -b <image> [ -p ] [ -t ] [-B <baud> ] <TTY> -b <image>: boot <image> -p: patch <image> to type 0x69 (uart boot) -t: mini terminal -B <baud>: set baud rate ./a.out -p -b ./u-boot-a38x-GrandTeton_2014T3_PQ-nand-uart.bin -B 115200 /dev/ttyUSB0 ./u-boot-a38x-GrandTeton_2014T3_PQ-nand-uart.bin: Invalid image. ./a.out -p -b ./u-boot-a38x-RangerPeak_2014T3_PQ-nand-uart_1G.bin -B 115200 /dev/ttyUSB0 ./u-boot-a38x-RangerPeak_2014T3_PQ-nand-uart_1G.bin: Invalid image. ./a.out -b ./u-boot-a38x-RangerPeak_2014T3_PQ-nand-uart_1G.bin -B 115200 /dev/ttyUSB0 Sending boot message. Please reboot the target...| Sending boot image... 0 % [+++++++++++++++++xmodem: Bad message
Re: WD MyCloud Mirror Gen2 (BWVZ, GrandTeton) February 13, 2017 01:04PM |
Admin Registered: 13 years ago Posts: 19,102 |
Re: WD MyCloud Mirror Gen2 (BWVZ, GrandTeton) February 14, 2017 12:17PM |
Registered: 10 years ago Posts: 143 |
Re: WD MyCloud Mirror Gen2 (BWVZ, GrandTeton) February 15, 2017 06:27PM |
Admin Registered: 13 years ago Posts: 19,102 |
MM
Re: WD MyCloud Mirror Gen2 (BWVZ, GrandTeton) March 14, 2017 01:30PM |