|
Debian Installation on Synology DS718+ August 14, 2021 05:40AM |
Registered: 4 years ago Posts: 28 |
back: 4 5 6 front: 1 2 3
1: Rx -> connect to Tx of TTL Adapter 2: Tx -> connect to Rx of TTL Adapter 3: GND: GND of TTL Adapter can be attached to screw of the bottom cover instead of this pin
mv /EFI/BOOT/grubx64.efi /EFI/BOOT/SynoBootLoader.efi
#if set "serial --pci=[bus],[device],[function]", use mmio to implement console uart.
serial --pci=0,24,2 --speed=115200
terminal_input serial
terminal_output serial
set default='1'
set timeout='3'
set fallback='0'
menuentry 'My Debian installer' {
insmod part_gpt
insmod ext2
linux /bzImage root=/dev/md0 earlyprintk=apl console=ttyS2,115200n8 ihd_num=2 netif_num=2 HddHotplug=1 SataPortMap=21 syno_hw_version=DS718+ vender_format_version=2 syno_hdd_detect=18,179,176,175 syno_hdd_enable=21,20,19,9 syno_usb_vbus_gpio="13@0000:00:15.0@3"
initrd /initrd.gz
}
Begin: Loading essential drivers ... done. Begin: Running /scripts/init-premount ... done. Begin: M[ 9.346825] usb 1-3: new high-speed USB device number 2 using xhci_hcd ounting root file system ... Begin: Running /scripts/local-top ... done. Begin: Running /scripts/local-premount ... done. Begin: Will now check root file system ... fsck from util-linux 2.33.1 [/sbin/fsck.ext4 (1) -- /dev/sda2] fsck.ext4 -a -C0 /dev/sda2 /dev/sda2: clean, 31847/4890624 files, 628870/19531264 blocks [ 9.447121] random: nonblocking pool is initialized done. [ 9.483270] EXT4-fs (sda2): barriers disabled [ 9.492247] usb-storage 1-3:1.0: USB Mass Storage device detected done. [ 9.493852] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null) [ 9.508513] scsi host3: usb-storage 1-3:1.0 [ 9.513333] usbcore: registered new interface driver usb-storagele [ 9.612832] usb 1-4: new high-speed USB device number 3 using xhci_hcd Begin: Running /scripts/local-bottom ... done. Begin: Running /scripts/init-bottom ... mount: Operation not permitted mount: invalid option -- done. mount: Operation not permitted mount: Operation not permitted [ 9.744014] EXT4-fs (sda2): ext4_find_entry:1465: inode #3407873: comm run-init: checksumming directory block 0 [ 9.744014] [ 9.757334] usb-storage 1-4:1.0: USB Mass Storage device detected [ 9.764291] scsi host4: usb-storage 1-4:1.0 [ 9.814884] EXT4-fs (sda2): ext4_find_entry:1465: inode #4456451: comm run-init: checksumming directory block 0 [ 9.814884] mount: Operation not permitted mount: Operation not permitted run-init: overmounting root: Operation not permitted [ 9.997939] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000100
|
Re: Debian Installation on Synology DS718+ August 14, 2021 04:34PM |
Admin Registered: 14 years ago Posts: 20,029 |
Quote
vmlinuz-5.13.6-kirkwood-tld-1
initrd.img-5.13.6-kirkwood-tld-1
|
Re: Debian Installation on Synology DS718+ August 14, 2021 11:08PM |
Admin Registered: 14 years ago Posts: 20,029 |
|
Re: Debian Installation on Synology DS718+ August 15, 2021 08:10AM |
Registered: 4 years ago Posts: 28 |
|
Re: Debian Installation on Synology DS718+ August 15, 2021 07:00PM |
Admin Registered: 14 years ago Posts: 20,029 |
|
Re: Debian Installation on Synology DS718+ August 21, 2021 01:33AM |
Registered: 4 years ago Posts: 28 |
|
Re: Debian Installation on Synology DS718+ August 29, 2021 02:56AM |
Registered: 4 years ago Posts: 28 |
|
mietzen
Re: Debian Installation on Synology DS718+ June 11, 2022 02:03AM |
|
Re: Debian Installation on Synology DS718+ June 11, 2022 02:42AM |
Registered: 4 years ago Posts: 28 |
|
mietzen
Re: Debian Installation on Synology DS718+ July 18, 2022 02:24AM |
|
Re: Debian Installation on Synology DS718+ July 18, 2022 05:03AM |
Admin Registered: 14 years ago Posts: 20,029 |
./arch/x86/configs/x86_64_defconfig
|
Re: Debian Installation on Synology DS718+ November 23, 2022 04:38PM |
Registered: 4 years ago Posts: 8 |
|
Re: Debian Installation on Synology DS718+ November 23, 2022 05:28PM |
Admin Registered: 14 years ago Posts: 20,029 |
|
Re: Debian Installation on Synology DS718+ February 07, 2023 07:19AM |
Registered: 4 years ago Posts: 8 |
Press Ctrl-C to enter the menu
Booting SYNOLOGY_2 in 2 seconds...
Booting SYNOLOGY_2 in 1 seconds...
Booting 'SYNOLOGY_2'
root (hd0,1)
Filesystem type is fat, partition type 0x83
cksum /grub_cksum.syno
[/zimage] ck��m success.
[/rd.gz] cksum uccess.
vender /vender show
MAC1: xxx
MAC2: xxx
MAC3: Empty or Invalid checksum (Random: 0000000c0008)
MAC4: Empty or Invalid checksum (Random: 0000000c0009)
Serial: xxx
Custom Serial: Empty or Invalid checksum
kernel /zImage root=/dev/md0 ihd_num=4 netif_num=2 HddHotplug=1 pwrctl_pin=N075
4 SataPortMap=422 DiskIdxMap=020006 syno_hw_version=DS415+
Trying to allocate 723 pages for VMLINUZ
Got pages at 0x7820b000
[Linux-EFI, setup=0x10cc, size=0x2d2520]
initrd /rd.gz
[Initrd, addr=0x7e15a000, size=0x5c3794]
[ 0.000000] Initializing cgroup sub��s cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 3.10.105 (root@build3) (gcc version 4.9.3 20150311 (prerelease) (crosstool-NG 1.20.0) ) #25556 SMP Thu Mar 18 12:57:43 CST 2021
[ 0.000000] Command line: root=/dev/md0 ihd_num=4 netif_num=2 HddHotplug=1 pwrctl_pin=N0754 SataPortMap=422 DiskIdxMap=020006 syno_hw_version=DS415+
[ 0.000000] KERNEL supported cpus:
[ 0.000000] Intel GenuineIntel
[ 0.000000] e820: BIOS-provided physical RAM map:
...
...
GNU GRUB version 0.97 (540K lower / 2074236K upper memory)
+-------------------------------------------------------------------------+
| SYNOLOGY_1 |
| SYNOLOGY_2 |
| |
| |
| |
|
| |
|
| |
| |
|
| |
+-------------------------------------------------------------------------+
Use the ^ and v keys to select which entry is highlighted.
Press enter to boot the selected OS, 'e' to edit the
commands before booting, 'a' to modify the kernel arguments
before booting, or 'c' for a command-line.
|
Re: Debian Installation on Synology DS718+ February 07, 2023 02:40PM |
Registered: 4 years ago Posts: 28 |
|
Re: Debian Installation on Synology DS718+ February 07, 2023 03:22PM |
Registered: 7 years ago Posts: 183 |
|
Debian 11.6 successfully installed on Synology DS718+ February 18, 2023 11:18PM |
Registered: 4 years ago Posts: 28 |
|
Re: Debian 11.6 successfully installed on Synology DS718+ February 19, 2023 01:39AM |
Admin Registered: 14 years ago Posts: 20,029 |
|
Good news and next challenges February 21, 2023 09:10AM |
Registered: 4 years ago Posts: 28 |
[ 0.000000] Linux version 5.10.158-rt77 (xxxx@naiad) (gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2) #3 SMP Tue Feb 21 13:22:28 CET 2023
chopin login: root
Password:
Linux chopin 5.10.158-rt77 #3 SMP Tue Feb 21 13:22:28 CET 2023 x86_64
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Tue Feb 21 15:25:44 CET 2023 on ttyS2
root@chopin:~# uname -a
Linux chopin 5.10.158-rt77 #3 SMP Tue Feb 21 13:22:28 CET 2023 x86_64 GNU/Linux
root@chopin:~# cat /etc/debian_version
11.6
root@chopin:~# dmidecode -t 2
# dmidecode 3.3
Getting SMBIOS data from sysfs.
SMBIOS 3.0.0 present.
Handle 0x0002, DMI type 2, 17 bytes
Base Board Information
Manufacturer: Synology
Product Name: DS718+
Version: 1.0
Serial Number: 123456789
Asset Tag: Type2 - Board Asset Tag
Features:
Board is a hosting board
Board is replaceable
Location In Chassis: Type2 - Board Chassis Location
Chassis Handle: 0x0003
Type: Motherboard
Contained Object Handles: 0
|
Booting on DS415+ February 23, 2023 12:27PM |
Registered: 4 years ago Posts: 8 |
|
Re: Booting on DS415+ February 23, 2023 02:17PM |
Registered: 4 years ago Posts: 28 |
|
Re: Booting on DS415+ February 23, 2023 02:36PM |
Registered: 4 years ago Posts: 28 |
|
Re: Debian Installation on Synology DS718+ February 24, 2023 01:39AM |
Registered: 4 years ago Posts: 28 |
|
Re: Booting on DS415+ February 25, 2023 05:52AM |
Registered: 4 years ago Posts: 8 |
# cat /sys/class/dmi/id/bios_version M.012 # cat /sys/class/dmi/id/bios_vendor INSYDE Corp.
/sys/firmware/efi/vars/seem to look normal and indicate to be able to boot from USB, DVD or Network. But I can't interpret all the data values correcty.
dd if=/dev/synoboot of=/synoboot.img dd if=/synoboot.img of=/dev/sdgThen I removed the DOM and tried booting only with the USB stick attached - which should contain the same partitions now. But still, no output and no boot, only blinking blue light. Strange.
|
Re: Booting on DS415+ February 25, 2023 07:21AM |
Registered: 4 years ago Posts: 28 |
|
Re: Debian Installation on Synology DS718+ February 26, 2023 12:53AM |
Registered: 4 years ago Posts: 28 |
|
Progress for Debian on DS718+ March 03, 2023 09:27AM |
Registered: 4 years ago Posts: 28 |
--- a/fs/namespace.c
+++ b/fs/namespace.c
@@ -2391,18 +2391,10 @@ long do_mount(const char *dev_name, const char __user *dir_name,
if (flags & MS_REMOUNT)
retval = do_remount(&path, flags & ~MS_REMOUNT, mnt_flags,
data_page);
-#ifdef MY_ABC_HERE
- else if ((flags & MS_BIND) && ramdisk_check_failed)
- retval = -EPERM;
-#endif
else if (flags & MS_BIND)
retval = do_loopback(&path, dev_name, flags & MS_REC);
else if (flags & (MS_SHARED | MS_PRIVATE | MS_SLAVE | MS_UNBINDABLE))
retval = do_change_type(&path, flags);
-#ifdef MY_ABC_HERE
- else if ((flags & MS_MOVE) && ramdisk_check_failed)
- retval = -EPERM;
-#endif
else if (flags & MS_MOVE)
retval = do_move_mount(&path, dev_name);
else
|
mietzen
Re: Debian Installation on Synology DS718+ March 11, 2023 11:13PM |
Quote
Concerning the DS718+ I have got SATA drives recognized now for kernel 5.10.158. It turns out that the administration of these disks is partially controlled by Synology enhancements, power-on, standby, power-off ... The task is to port the code from kernel 4.4.59+ to the new kernel (in my case 5.10.158+). A couple of files are involved and the main task is to control GPIOs properly.
I am not sure if we should walk this way because at the end we must port all Synology enhancements for all requested devices manually to the new kernel base. This has to be done each time a new kernel is requested. And furthermore we must discuss if all their code is covered by a license which permits to publish the results.
|
Re: Debian Installation on Synology DS718+ March 19, 2023 04:49AM |
Registered: 4 years ago Posts: 28 |
# make power led blinking printf "\\x35" > /dev/ttyS1 # switch power led on printf "\\x34" > /dev/ttyS1 # switch power led off printf "\\x36" > /dev/ttyS1 # make status led blinking printf "\\x39" > /dev/ttyS1 # make status led "breathing" printf "\\x3D" > /dev/ttyS1 # switch status led on printf "\\x38" > /dev/ttyS1 # switch status led off printf "\\x37" > /dev/ttyS1 # set fan speed "25" (allowed values V00 - V99) printf "V25" > /dev/ttyS1
sensors acpitz-acpi-0 Adapter: ACPI interface temp1: +32.0°C (crit = +125.0°C) coretemp-isa-0000 Adapter: ISA adapter Package id 0: +32.0°C (high = +105.0°C, crit = +105.0°C) Core 0: +30.0°C (high = +105.0°C, crit = +105.0°C) Core 1: +30.0°C (high = +105.0°C, crit = +105.0°C) Core 2: +32.0°C (high = +105.0°C, crit = +105.0°C) Core 3: +32.0°C (high = +105.0°C, crit = +105.0°C)
smartctl -d sat -T permissive -l scttempsts /dev/sda | grep Current Current Temperature: 28 Celsius smartctl -d sat -T permissive -l scttempsts /dev/sdb | grep Current Current Temperature: 29 Celsius
|
Valentijn
Re: Debian Installation on Synology DS718+ December 23, 2023 06:51AM |