Re: Debian on Synology RS816 (Armada 385) May 14, 2019 11:37PM |
Registered: 5 years ago Posts: 257 |
Re: Debian on Synology RS816 (Armada 385) May 14, 2019 11:50PM |
Admin Registered: 13 years ago Posts: 19,102 |
Quote
compatible = "synology,power-off";
Re: Debian on Synology RS816 (Armada 385) May 15, 2019 12:03AM |
Registered: 5 years ago Posts: 257 |
Quote
+Required Properties:
+- compatible: Should be "qnap,power-off"
+
+- reg: Address and length of the register set for UART1
+- clocks: tclk clock
Re: Debian on Synology RS816 (Armada 385) May 15, 2019 12:16AM |
Admin Registered: 13 years ago Posts: 19,102 |
static const struct power_off_cfg synology_power_off_cfg = { .baud = 9600, .cmd = '1', };
static const struct of_device_id qnap_power_off_of_match_table[] = { { .compatible = "qnap,power-off", .data = &qnap_power_off_cfg, }, { .compatible = "synology,power-off", .data = &synology_power_off_cfg, }, {} };
Re: Debian on Synology RS816 (Armada 385) May 15, 2019 12:24AM |
Registered: 5 years ago Posts: 257 |
Re: Debian on Synology RS816 (Armada 385) May 15, 2019 12:41AM |
Registered: 5 years ago Posts: 257 |
Re: Debian on Synology RS816 (Armada 385) May 15, 2019 03:05AM |
Admin Registered: 13 years ago Posts: 19,102 |
Re: Debian on Synology RS816 (Armada 385) May 15, 2019 03:35AM |
Admin Registered: 13 years ago Posts: 19,102 |
CONFIG_ARMADA_THERMAL=y CONFIG_THERMAL_HWMON=yBut
# CONFIG_CPU_THERMAL is not set
Re: Debian on Synology RS816 (Armada 385) May 15, 2019 04:05AM |
Registered: 5 years ago Posts: 257 |
Re: Debian on Synology RS816 (Armada 385) May 15, 2019 04:28AM |
Admin Registered: 13 years ago Posts: 19,102 |
cat /sys/leds/*/trigger
Re: Debian on Synology RS816 (Armada 385) May 15, 2019 04:32AM |
Admin Registered: 13 years ago Posts: 19,102 |
Re: Debian on Synology RS816 (Armada 385) May 15, 2019 04:33AM |
Registered: 5 years ago Posts: 257 |
Re: Debian on Synology RS816 (Armada 385) May 15, 2019 04:53AM |
Registered: 5 years ago Posts: 257 |
Quote
Most likely the Synology poweroff code need to be modified, I suspect so.
reg = <0x12100 0x100Can I get away with just changing the DTS or do I need to modify the kernel source or both ?
Re: Debian on Synology RS816 (Armada 385) May 15, 2019 05:21AM |
Admin Registered: 13 years ago Posts: 19,102 |
> reg = <0x12100 0x100 >> Can I get away with just changing the DTS or do I
Re: Debian on Synology RS816 (Armada 385) May 15, 2019 05:28AM |
Registered: 5 years ago Posts: 257 |
Quote
Will be back in another 12hrs or so
Re: Debian on Synology RS816 (Armada 385) May 15, 2019 06:27AM |
Registered: 5 years ago Posts: 257 |
Re: Debian on Synology RS816 (Armada 385) May 15, 2019 07:40AM |
Registered: 5 years ago Posts: 257 |
[ 490.764237] qnap_power_off: triggering power-off...and everything is switched off!
none rc-feedback kbd-scrolllock kbd-numlock kbd-capslock kbd-kanalock kbd-shiftlock kbd-altgrlock kbd-ctrllock kbd-altlock kbd-shiftllock kbd-shiftrlock kbd-ctrlllock kbd-ctrlrlock usbport usb-gadget usb-host timer oneshot disk-activity disk-read disk-write [ide-disk1] ide-disk2 mtd nand-disk heartbeat gpio default-on flash torch panic f1072004.mdio-mii:01:link f1072004.mdio-mii:01:1Gbps f1072004.mdio-mii:01:100Mbps f1072004.mdio-mii:01:10Mbps
Re: Debian on Synology RS816 (Armada 385) May 15, 2019 02:06PM |
Admin Registered: 13 years ago Posts: 19,102 |
> [ 490.764237] qnap_power_off: triggering > power-off... >> and everything is switched off!
Re: Debian on Synology RS816 (Armada 385) May 15, 2019 06:30PM |
Registered: 5 years ago Posts: 257 |
root@debian:~# cat /sys/class/hwmon/hwmon0/name f1072004mdiomii01 root@debian:~# cat /sys/class/hwmon/hwmon1/name gpio_fan root@debian:~# cat /sys/class/hwmon/hwmon2/name f10e4078.thermal root@debian:~#
Re: Debian on Synology RS816 (Armada 385) May 15, 2019 08:47PM |
Registered: 5 years ago Posts: 257 |
Re: Debian on Synology RS816 (Armada 385) May 16, 2019 12:36AM |
Admin Registered: 13 years ago Posts: 19,102 |
gpio-fan { compatible = "gpio-fan"; gpios = <&gpio1 18 GPIO_ACTIVE_HIGH>, <&gpio1 17 GPIO_ACTIVE_HIGH>, <&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>; };
Quote
- Boot with the serial console.
- Login and
cat /proc/mtd
cat /etc/fw_env.config
fw_printenv
And post the entire serial console log.
Re: Debian on Synology RS816 (Armada 385) May 16, 2019 10:43AM |
Registered: 6 years ago Posts: 258 |
Re: Debian on Synology RS816 (Armada 385) May 16, 2019 04:54PM |
Registered: 5 years ago Posts: 257 |
Quote
I think we shoudl try the DS116 definition one more time to make sure.
gpio-fan { compatible = "gpio-fan"; gpios = <&gpio1 18 GPIO_ACTIVE_HIGH>, <&gpio1 17 GPIO_ACTIVE_HIGH>, <&gpio1 16 GPIO_ACTIVE_HIGH>; gpio-fan,speed-map = < 0 0 1500 1 2500 2 2600 3 3100 4>; #cooling-cells = <2>; };
Re: Debian on Synology RS816 (Armada 385) May 16, 2019 05:50PM |
Registered: 5 years ago Posts: 257 |
Re: Debian on Synology RS816 (Armada 385) May 16, 2019 08:10PM |
Admin Registered: 13 years ago Posts: 19,102 |
Re: Debian on Synology RS816 (Armada 385) May 16, 2019 09:10PM |
Registered: 5 years ago Posts: 257 |
Re: Debian on Synology RS816 (Armada 385) May 16, 2019 09:12PM |
Registered: 6 years ago Posts: 258 |
Re: Debian on Synology RS816 (Armada 385) May 16, 2019 09:17PM |
Registered: 5 years ago Posts: 257 |
Quote
Please put every thing below in 1 new post in this thread
dev: size erasesize name mtd0: 00400000 00001000 "boot" mtd1: 00400000 00001000 "spi-rootfs"
# MTD device name Device offset Env. size Flash sector size Number of sectors /dev/mtd1 0x0000 0x80000 0x20000 4
Warning: Bad CRC, using default environment bootcmd=run distro_bootcmd bootdelay=2 baudrate=115200 stdin=serial,cros-ec-keyb,usbkbd stdout=serial,vidconsole stderr=serial,vidconsole ethaddr=00:00:11:22:33:44 eth1addr=00:00:11:22:33:45 eth3addr=00:00:11:22:33:46 eth5addr=00:00:11:22:33:47 ipaddr=1.2.3.4 host_boot=if host dev ${devnum}; then setenv devtype host; run scan_dev_for_boot_part; fi sata_boot=if sata dev ${devnum}; then setenv devtype sata; run scan_dev_for_boot_part; fi scsi_init=if ${scsi_need_init}; then setenv scsi_need_init false; scsi scan; fi scsi_boot=run scsi_init; if scsi dev ${devnum}; then setenv devtype scsi; run scan_dev_for_boot_part; fi virtio_boot=if virtio dev ${devnum}; then setenv devtype virtio; run scan_dev_for_boot_part; fi boot_prefixes=/ /boot/ boot_scripts=boot.scr.uimg boot.scr boot_script_dhcp=boot.scr.uimg boot_targets=host1 host0 boot_syslinux_conf=extlinux/extlinux.conf boot_extlinux=sysboot ${devtype} ${devnum}:${distro_bootpart} any ${scriptaddr} ${prefix}${boot_syslinux_conf} scan_dev_for_extlinux=if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${boot_syslinux_conf}; then echo Found ${prefix}${boot_syslinux_conf}; run boot_extlinux; echo SCRIPT FAILED: continuing...; fi boot_a_script=load ${devtype} ${devnum}:${distro_bootpart} ${scriptaddr} ${prefix}${script}; source ${scriptaddr} scan_dev_for_scripts=for script in ${boot_scripts}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${script}; then echo Found U-Boot script ${prefix}${script}; run boot_a_script; echo SCRIPT FAILED: continuing...; fi; done scan_dev_for_boot=echo Scanning ${devtype} ${devnum}:${distro_bootpart}...; for prefix in ${boot_prefixes}; do run scan_dev_for_extlinux; run scan_dev_for_scripts; done; scan_dev_for_boot_part=part list ${devtype} ${devnum} -bootable devplist; env exists devplist || setenv devplist 1; for distro_bootpart in ${devplist}; do if fstype ${devtype} ${devnum}:${distro_bootpart} bootfstype; then run scan_dev_for_boot; fi; done bootcmd_host1=setenv devnum 1; run host_boot bootcmd_host0=setenv devnum 0; run host_boot distro_bootcmd=setenv scsi_need_init; for target in ${boot_targets}; do run bootcmd_${target}; done bootm_size=0x10000000 kernel_addr_r=0x1000000 fdt_addr_r=0xc00000 ramdisk_addr_r=0x2000000 scriptaddr=0x1000 pxefile_addr_r=0x2000
Re: Debian on Synology RS816 (Armada 385) May 16, 2019 09:23PM |
Registered: 5 years ago Posts: 257 |
Re: Debian on Synology RS816 (Armada 385) May 16, 2019 09:45PM |
Registered: 5 years ago Posts: 257 |