Re: Debian on Synology RS816 (Armada 385) May 11, 2019 07:58AM |
Admin Registered: 13 years ago Posts: 19,102 |
reg_sata1: pwr-sata1 { compatible = "regulator-fixed"; regulator-name = "pwr_en_sata1"; regulator-min-microvolt = <12000000>; regulator-max-microvolt = <12000000>; enable-active-high; regulator-boot-on; gpio = <&gpio1 5 GPIO_ACTIVE_HIGH>; };
Re: Debian on Synology RS816 (Armada 385) May 11, 2019 04:53PM |
Registered: 5 years ago Posts: 257 |
Re: Debian on Synology RS816 (Armada 385) May 11, 2019 05:03PM |
Admin Registered: 13 years ago Posts: 19,102 |
Re: Debian on Synology RS816 (Armada 385) May 11, 2019 05:08PM |
Registered: 5 years ago Posts: 257 |
Re: Debian on Synology RS816 (Armada 385) May 11, 2019 06:02PM |
Registered: 5 years ago Posts: 257 |
<scemd> <fan_config hibernation_speed="UNKNOWN" type="DUAL_MODE_HIGH" threshold="6" period="20"> <disk_temperature fan_speed="001" action="NONE">0</disk_temperature> <disk_temperature fan_speed="011" action="NONE">43</disk_temperature> <disk_temperature fan_speed="111" action="NONE">53</disk_temperature> <disk_temperature fan_speed="111" action="SHUTDOWN">61</disk_temperature> <cpu_temperature fan_speed="001" action="NONE">0</cpu_temperature> <cpu_temperature fan_speed="011" action="NONE">47</cpu_temperature> <cpu_temperature fan_speed="111" action="NONE">70</cpu_temperature> <cpu_temperature fan_speed="111" action="SHUTDOWN">90</cpu_temperature> </fan_config> <fan_config hibernation_speed="UNKNOWN" type="DUAL_MODE_LOW" threshold="6" period="20">
Re: Debian on Synology RS816 (Armada 385) May 11, 2019 06:47PM |
Admin Registered: 13 years ago Posts: 19,102 |
Re: Debian on Synology RS816 (Armada 385) May 11, 2019 07:04PM |
Registered: 5 years ago Posts: 257 |
Re: Debian on Synology RS816 (Armada 385) May 11, 2019 07:24PM |
Registered: 5 years ago Posts: 257 |
root@debian:~# i2cdetect -l i2c-0 i2c mv64xxx_i2c adapter I2C adapter
root@debian:~# i2cdetect 0 WARNING! This program can confuse your I2C bus, cause data loss and worse! I will probe file /dev/i2c-0. I will probe address range 0x03-0x77. Continue? [Y/n] y 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- 64 -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- --
root@debian:~# i2cdump 0 0x64 No size specified (using byte-data access) WARNING! This program can confuse your I2C bus, cause data loss and worse! I will probe file /dev/i2c-0, address 0x64, mode byte Continue? [Y/n] y 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef 00: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX 10: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX 20: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX 30: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX 40: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX 50: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX 60: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX 70: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX 80: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX 90: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX a0: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX b0: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX c0: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX d0: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX e0: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX f0: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XXXXXXXXXXXXXXXX root@debian:~#
Re: Debian on Synology RS816 (Armada 385) May 11, 2019 07:45PM |
Admin Registered: 13 years ago Posts: 19,102 |
MACHINE=`dmesg | grep -i machine | cut -c40-120` if [ "$MACHINE" == "ZyXEL NSA325" ]; then echo "CPU Temperature" $(($(/usr/sbin/i2cget -y 0x0 0x0a 0x07))) "C" echo "Fanspeed" $[60000/$(($(/usr/sbin/i2cget -y 0x0 0x0a 0x08)))] "RPM" fi if [ "$MACHINE" == "Zyxel NSA310S" ]; then echo "CPU Temperature" $(($(/usr/sbin/i2cget -y 0x0 0x0a 0x07))) "C" if [ $(($(/usr/sbin/i2cget -y 0x0 0x0a 0x08))) == 0 ]; then echo "Fanspeed 0 RPM"; else echo "Fanspeed" $[60000/$(($(/usr/sbin/i2cget -y 0x0 0x0a 0x08)))] "RPM" fi fi
Re: Debian on Synology RS816 (Armada 385) May 11, 2019 07:58PM |
Registered: 5 years ago Posts: 257 |
Re: Debian on Synology RS816 (Armada 385) May 11, 2019 08:11PM |
Admin Registered: 13 years ago Posts: 19,102 |
Re: Debian on Synology RS816 (Armada 385) May 11, 2019 08:24PM |
Registered: 5 years ago Posts: 257 |
Re: Debian on Synology RS816 (Armada 385) May 12, 2019 04:54PM |
Registered: 5 years ago Posts: 257 |
gpio-leds { compatible = "gpio-leds"; label = "rs816:leds"; default-state = "on"; enable-active-high; gpio = <&gpio0 6 GPIO_ACTIVE_HIGH>; };
Re: Debian on Synology RS816 (Armada 385) May 12, 2019 05:24PM |
Admin Registered: 13 years ago Posts: 19,102 |
Quote
Pre setting this pin we have a single falshing green power light at Debian login after setting the pin active we get;
Re: Debian on Synology RS816 (Armada 385) May 12, 2019 05:38PM |
Registered: 5 years ago Posts: 257 |
OK but just for clarity the led's I'm referring to are on the front of the NAS there are no led's on the nic's themselves.Quote
Ethernet LEDs are not GPIO driven. They turn on amber or green when the ethernet PHY is active and working.
Re: Debian on Synology RS816 (Armada 385) May 12, 2019 05:51PM |
Admin Registered: 13 years ago Posts: 19,102 |
Re: Debian on Synology RS816 (Armada 385) May 12, 2019 06:05PM |
Registered: 5 years ago Posts: 257 |
Re: Debian on Synology RS816 (Armada 385) May 12, 2019 06:14PM |
Admin Registered: 13 years ago Posts: 19,102 |
Quote
Pre setting this pin we have a single falshing green power light at Debian login after setting the pin active we get;
Re: Debian on Synology RS816 (Armada 385) May 12, 2019 06:19PM |
Registered: 5 years ago Posts: 257 |
Re: Debian on Synology RS816 (Armada 385) May 12, 2019 06:26PM |
Admin Registered: 13 years ago Posts: 19,102 |
Re: Debian on Synology RS816 (Armada 385) May 12, 2019 06:39PM |
Registered: 5 years ago Posts: 257 |
Re: Debian on Synology RS816 (Armada 385) May 12, 2019 08:10PM |
Registered: 5 years ago Posts: 257 |
Quote
2) Drive 1 led green (recognized as /dev/sdb) but only if a drive is plugged in.
Re: Debian on Synology RS816 (Armada 385) May 12, 2019 08:36PM |
Admin Registered: 13 years ago Posts: 19,102 |
Re: Debian on Synology RS816 (Armada 385) May 12, 2019 08:43PM |
Registered: 5 years ago Posts: 257 |
Re: Debian on Synology RS816 (Armada 385) May 12, 2019 10:08PM |
Registered: 5 years ago Posts: 257 |
gpio-fan { compatible = "gpio-fan"; gpios = <&gpio1 16 GPIO_ACTIVE_HIGH>; gpio-fan,speed-map = < 0 0 1500 1 2500 2 3000 3 3400 4 3700 5 3900 6 4000 7>; #cooling-cells = <2>; };
Re: Debian on Synology RS816 (Armada 385) May 13, 2019 12:33AM |
Admin Registered: 13 years ago Posts: 19,102 |
Re: Debian on Synology RS816 (Armada 385) May 13, 2019 01:26AM |
Admin Registered: 13 years ago Posts: 19,102 |
echo none > /sys/class/leds/rs816:green:sata1/trigger
echo ide-disk1 > /sys/class/leds/rs816:green:sata1/trigger
Re: Debian on Synology RS816 (Armada 385) May 13, 2019 01:39AM |
Registered: 5 years ago Posts: 257 |
Re: Debian on Synology RS816 (Armada 385) May 13, 2019 02:07AM |
Admin Registered: 13 years ago Posts: 19,102 |
Re: Debian on Synology RS816 (Armada 385) May 13, 2019 04:29AM |
Registered: 5 years ago Posts: 257 |
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10] md1 : active (auto-read-only) raid1 sdd2[3] sdc2[2] sda2[0] sdb2[1] 1951744 blocks super 1.2 [4/4] [UUUU] md2 : active raid5 sdd3[4] sdc3[2] sda3[0] sdb3[1] 5824994304 blocks super 1.2 level 5, 512k chunk, algorithm 2 [4/3] [UUU_] [=========>...........] recovery = 48.0% (933090604/1941664768) finish=200.1min speed=83976K/sec bitmap: 2/15 pages [8KB], 65536KB chunk md0 : active raid1 sdd1[3] sdc1[2] sda1[0] sdb1[1] 9764800 blocks [4/4] [UUUU] unused devices: <none>