Re: Debian on Synology DS216 April 16, 2024 02:10PM |
Admin Registered: 13 years ago Posts: 18,821 |
Re: Debian on Synology DS216 April 16, 2024 02:28PM |
Admin Registered: 13 years ago Posts: 18,821 |
dd if=/dev/mtd0 of=mtd0.ds216 bs=1024k conv=sync dd if=/dev/mtd1 of=mtd1.ds216 bs=7040k conv=sync dd if=/dev/mtd2 of=mtd2.ds216 bs=64k conv=sync dd if=/dev/mtd3 of=mtd3.ds216 bs=64k conv=sync
./kwboot -t -B 115200 /dev/ttyUSB0 -b mtd0.ds216 -pPower up the DS216. See if it is loaded and run.
Re: Debian on Synology DS216 April 17, 2024 03:04PM |
Registered: 4 months ago Posts: 22 |
robin@raketa:~$ sudo kwboot -t -B 115200 /dev/ttyUSB0 -b mtd0.ds216 -p [sudo] Mot de passe de robinĀ : kwboot version 2023.01 Patching image boot signature to UART Aligning image header to Xmodem block size Sending boot message. Please reboot the target...| Sending boot image header (84736 bytes)... 0 % [......................................................................] 10 % [......................................................................] 21 % [......................................................................] 31 % [......................................................................] 42 % [......................................................................] 53 % [......................................................................] 63 % [......................................................................] 74 % [......................................................................] 84 % [......................................................................] 95 % [................................ ] Done General initialization - Version: 1.0.0 AVS selection from EFUSE disabled (Skip reading EFUSE values) Overriding default AVS value to: 0x23 Detected Device ID 6820 High speed PHY - Version: 2.0 Init Synology board board SerDes lanes topology details: | Lane # | Speed| Type | ------------------------------| | 0 | 0 | SGMII0 | | 1 | 6 | SATA0 | | 2 | 6 | SATA1 | | 4 | 5 | USB3 HOST0 | | 5 | 5 | USB3 HOST1 | ------------------------------- High speed PHY - Ended Successfully DDR3 Training Sequence - Ver TIP-1.46.0 WARNING:Wrong configuration for pup #1 CS mask and CS mirroring for all pups should be the same WARNING:Wrong configuration for pup #3 CS mask and CS mirroring for all pups should be the same DDR3 Training Sequence - Switching XBAR Window to FastPath Window DDR3 Training Sequence - Ended Successfully Sending boot image data (635832 bytes)... 0 % [......................................................................] 1 % [......................................................................] 2 % [......................................................................] 4 % [......................................................................] 5 % [......................................................................] 7 % [......................................................................] 8 % [......................................................................] 9 % [......................................................................] 11 % [......................................................................] 12 % [......................................................................] 14 % [......................................................................] 15 % [......................................................................] 16 % [......................................................................] 18 % [......................................................................] 19 % [......................................................................] 21 % [......................................................................] 22 % [......................................................................] 23 % [......................................................................] 25 % [......................................................................] 26 % [......................................................................] 28 % [......................................................................] 29 % [......................................................................] 31 % [......................................................................] 32 % [......................................................................] 33 % [......................................................................] 35 % [......................................................................] 36 % [......................................................................] 38 % [......................................................................] 39 % [......................................................................] 40 % [......................................................................] 42 % [......................................................................] 43 % [......................................................................] 45 % [......................................................................] 46 % [......................................................................] 47 % [......................................................................] 49 % [......................................................................] 50 % [......................................................................] 52 % [......................................................................] 53 % [......................................................................] 54 % [......................................................................] 56 % [......................................................................] 57 % [......................................................................] 59 % [......................................................................] 60 % [......................................................................] 62 % [......................................................................] 63 % [......................................................................] 64 % [......................................................................] 66 % [......................................................................] 67 % [......................................................................] 69 % [......................................................................] 70 % [......................................................................] 71 % [......................................................................] 73 % [......................................................................] 74 % [......................................................................] 76 % [......................................................................] 77 % [......................................................................] 78 % [......................................................................] 80 % [......................................................................] 81 % [......................................................................] 83 % [......................................................................] 84 % [......................................................................] 85 % [......................................................................] 87 % [......................................................................] 88 % [......................................................................] 90 % [......................................................................] 91 % [......................................................................] 93 % [......................................................................] 94 % [......................................................................] 95 % [......................................................................] 97 % [......................................................................] 98 % [.................................................................... ] Done Finishing transfer [Type Ctrl-\ + c to quit] __ __ _ _ | \/ | __ _ _ ____ _____| | | | |\/| |/ _` | '__\ \ / / _ \ | | | | | | (_| | | \ V / __/ | | |_| |_|\__,_|_| \_/ \___|_|_| _ _ ____ _ | | | | | __ ) ___ ___ | |_ | | | |___| _ \ / _ \ / _ \| __| | |_| |___| |_) | (_) | (_) | |_ \___/ |____/ \___/ \___/ \__| ** LOADER ** U-Boot 2013.01-g74a026b-dirty (Dec 30 2015 - 14:38:52) Marvell version: 2015_T1.0p16 Board: SYNO-DS216 SoC: MV88F6820 Rev A0 running 2 CPUs CPU: ARM Cortex A9 MPCore (Rev 1) LE CPU 0 CPU @ 1332 [MHz] L2 @ 666 [MHz] TClock @ 250 [MHz] DDR3 @ 666 [MHz] DDR3 32 Bit Width,FastPath Memory Access, DLB Enabled, ECC Disabled DRAM: 512 MiB MMC: mv_sdh: 0 SF: Detected N25Q64 with page size 64 KiB, total 8 MiB USB2.0 0: Host Mode USB3.0 0: Host Mode USB3.0 1: Host Mode Map: Code: 0x1ff3b000:0x1ffc915c BSS: 0x1ffef688 Stack: 0x1fa2af20 Heap: 0x1fa2b000:0x1ff3b000 U-Boot Environment: 0x007e0000:0x007f0000 (SPI) Board configuration detected: Synology Model: DS216 Net: | port | Interface | PHY address | |--------|-----------|--------------| | egiga0 | SGMII | 0x01 | egiga0 [PRIME] Press Ctrl+C to abort autoboot in 3 second AHCI init for unit0 SATA link 0 timeout. SATA link 1 timeout.
Re: Debian on Synology DS216 April 17, 2024 04:04PM |
Admin Registered: 13 years ago Posts: 18,821 |
Re: Debian on Synology DS216 April 18, 2024 03:28AM |
Registered: 4 months ago Posts: 22 |
Re: Debian on Synology DS216 April 18, 2024 01:26PM |
Admin Registered: 13 years ago Posts: 18,821 |
26 GPIO0 26 OUTPUT HIGH HDD1 power enable. Dummy regulator 27 GPIO0 27 OUTPUT HIGH HDD2 power enable. Dummy regulator
39 GPIO1 7 INPUT LOW HDD 1 present. 40 GPIO1 8 INPUT LOW HDD 2 present.
Re: Debian on Synology DS216 April 19, 2024 03:12AM |
Registered: 4 months ago Posts: 22 |
Re: Debian on Synology DS216 April 19, 2024 01:35PM |
Admin Registered: 13 years ago Posts: 18,821 |
39 GPIO1 7 INPUT LOW HDD 1 present. 40 GPIO1 8 INPUT LOW HDD 2 present.Some old boards require u-boot to set both HDD present and Power Enable.
scsi device 0;Do
scsi reset; sleep 3; scsi resetbump the sleep period up if 3 seconds is not enough.
Re: Debian on Synology DS216 April 19, 2024 02:27PM |
Admin Registered: 13 years ago Posts: 18,821 |
Re: Debian on Synology DS216 April 23, 2024 02:59PM |
Admin Registered: 13 years ago Posts: 18,821 |
md5: a226ad573b3981d0f84bd42635b419b4 sha256: 712f71d706bdd397c5f1412e1a86a21cf012c2020f82df3763947d0a9862700a
uboot.2024.04-tld-1.ds216.kwb boot.cmd boot.scr README.txt
Re: Debian on Synology DS216 April 24, 2024 03:53AM |
Registered: 4 months ago Posts: 22 |
/* use only one pin for UART1, as mpp20 is used by sata0 */ uart1_pins: uart-pins-1 { marvell,pins = "mpp19"; marvell,function = "ua1"; };
Re: Debian on Synology DS216 April 24, 2024 02:19PM |
Admin Registered: 13 years ago Posts: 18,821 |
internal-regs { i2c@11000 { pinctrl-names = "default"; pinctrl-0 = <&i2c0_pins>; status = "okay"; clock-frequency = <100000>; eeprom@57 { compatible = "atmel,24c64"; reg = <0x57>; }; }; serial@12000 { pinctrl-names = "default"; pinctrl-0 = <&uart0_pins>; status = "okay"; }; serial@12100 { /* A PIC16F1829 is connected to uart1 at 9600 bps, * and takes single-character orders : * "1" : power off // already handled by the poweroff node * "2" : short beep * "3" : long beep * "4" : turn the power LED ON * "5" : flash the power LED * "6" : turn the power LED OFF * "7" : turn the status LED OFF * "8" : turn the status LED ON * "9" : flash the status LED * "A" : flash the motherboard LED (D8) * "B" : turn the motherboard LED OFF * "C" : hard reset */ pinctrl-names = "default"; pinctrl-0 = <&uart1_pins>; status = "okay"; }; poweroff@12100 { compatible = "synology,power-off"; reg = <0x12100 0x100>; clocks = <&coreclk 0>; };
Re: Debian on Synology DS216 April 25, 2024 03:01AM |
Registered: 4 months ago Posts: 22 |
Re: Debian on Synology DS216 April 25, 2024 04:23AM |
Registered: 4 months ago Posts: 22 |
robin@raketa:~$ sudo kwboot -t -B 115200 /dev/ttyUSB0 -b uboot.2024.04-tld-1.ds216.kwb -p [sudo] Mot de passe de robinĀ : kwboot version 2023.01 Patching image boot signature to UART Sending boot message. Please reboot the target...\ Sending boot image header (100992 bytes)... 0 % [......................................................................] 8 % [......................................................................] 17 % [......................................................................] 26 % [......................................................................] 35 % [......................................................................] 44 % [......................................................................] 53 % [......................................................................] 62 % [......................................................................] 71 % [......................................................................] 79 % [......................................................................] 88 % [......................................................................] 97 % [................... ] Done U-Boot SPL 2024.04-tld-1-00827-g90ac8d08ae-dirty (Apr 21 2024 - 22:09:45 -0700) High speed PHY - Version: 2.0 Detected Device ID 6820 board SerDes lanes topology details: | Lane # | Speed | Type | -------------------------------- | 0 | 0 | SGMII0 | | 1 | 6 | SATA0 | | 2 | 6 | SATA1 | | 4 | 5 | USB3 HOST0 | | 5 | 5 | USB3 HOST1 | -------------------------------- High speed PHY - Ended Successfully mv_ddr: 14.0.0 DDR3 Training Sequence - Switching XBAR Window to FastPath Window mv_ddr: completed successfully Trying to boot from BOOTROM Returning to BootROM (return address 0xffff05c4)... Sending boot image data (504632 bytes)... 0 % [......................................................................] 1 % [......................................................................] 3 % [......................................................................] 5 % [......................................................................] 7 % [......................................................................] 8 % [......................................................................] 10 % [......................................................................] 12 % [......................................................................] 14 % [......................................................................] 16 % [......................................................................] 17 % [......................................................................] 19 % [......................................................................] 21 % [......................................................................] 23 % [......................................................................] 24 % [......................................................................] 26 % [......................................................................] 28 % [......................................................................] 30 % [......................................................................] 31 % [......................................................................] 33 % [......................................................................] 35 % [......................................................................] 37 % [......................................................................] 39 % [......................................................................] 40 % [......................................................................] 42 % [......................................................................] 44 % [......................................................................] 46 % [......................................................................] 47 % [......................................................................] 49 % [......................................................................] 51 % [......................................................................] 53 % [......................................................................] 55 % [......................................................................] 56 % [......................................................................] 58 % [......................................................................] 60 % [......................................................................] 62 % [......................................................................] 63 % [......................................................................] 65 % [......................................................................] 67 % [......................................................................] 69 % [......................................................................] 71 % [......................................................................] 72 % [......................................................................] 74 % [......................................................................] 76 % [......................................................................] 78 % [......................................................................] 79 % [......................................................................] 81 % [......................................................................] 83 % [......................................................................] 85 % [......................................................................] 87 % [......................................................................] 88 % [......................................................................] 90 % [......................................................................] 92 % [......................................................................] 94 % [......................................................................] 95 % [......................................................................] 97 % [......................................................................] 99 % [....................... ] Done Finishing transfer [Type Ctrl-\ + c to quit] U-Boot 2024.04-tld-1-00827-g90ac8d08ae-dirty (Apr 21 2024 - 22:09:45 -0700) Synology DS216 SoC: MV88F6820-A0 at 1332 MHz DRAM: 512 MiB (666 MHz, 32-bit, ECC not enabled) Core: 58 devices, 20 uclasses, devicetree: separate MMC: Loading Environment from SPIFlash... SF: Detected n25q064 with page size 256 Bytes, erase size 4 KiB, total 8 MiB OK Model: Synology DS216 Net: eth0: ethernet@70000 Hit any key to stop autoboot: 0 scsi - SCSI sub-system Usage: scsi reset - reset SCSI controller scsi info - show available SCSI devices scsi scan - (re-)scan SCSI bus scsi device [dev] - show or set current device scsi part [dev] - print partition table of one or all SCSI devices scsi read addr blk# cnt - read `cnt' blocks starting at block `blk#' to memory address `addr' scsi write addr blk# cnt - write `cnt' blocks starting at block `blk#' from memory address `addr' Booting Debian ... loading uImage from raw HDD ... Device 0: unknown device scsi read: device 0 block # 20480, count 12032 ... loading uInitrd from raw HDD ... Device 0: unknown device scsi read: device 0 block # 40960, count 44800 ... Wrong Image Type for bootm command ERROR -91: can't get kernel image! Booting Stock OS ... SF: Detected n25q064 with page size 256 Bytes, erase size 4 KiB, total 8 MiB device 0 offset 0xf0000, size 0x2d0000 SF: 2949120 bytes @ 0xf0000 Read: OK device 0 offset 0x3c0000, size 0x410000 SF: 4259840 bytes @ 0x3c0000 Read: OK device 0 offset 0xe0000, size 0x10000 SF: 65536 bytes @ 0xe0000 Read: OK ## Booting kernel from Legacy Image at 02000000 ... Image Name: Linux-3.10.105 Created: 2023-03-21 14:22:52 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 2567672 Bytes = 2.4 MiB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK ## Loading init Ramdisk from Legacy Image at 03000000 ... Image Name: synology_armada38x_ds216 25556 Created: 2023-04-21 10:30:47 UTC Image Type: ARM Linux RAMDisk Image (uncompressed) Data Size: 3527673 Bytes = 3.4 MiB Load Address: 08000000 Entry Point: 08000000 Verifying Checksum ... OK ## Flattened Device Tree blob at 01000000 Booting using the fdt blob at 0x1000000 Working FDT set to 1000000 Starting kernel ... Loading Kernel Image to 8000 Loading Device Tree to 1eb5d000, end 1eb63a43 ... OK Working FDT set to 1eb5d000 Starting kernel ...
Re: Debian on Synology DS216 April 25, 2024 04:36AM |
Registered: 4 months ago Posts: 22 |
Re: Debian on Synology DS216 April 25, 2024 02:19PM |
Admin Registered: 13 years ago Posts: 18,821 |
cp -a boot.scr /boot/ sync
dm tree scsi reset scsi part usb reset usb info ping <router IP address> mdio list mii info dm tree
env default -a printenv boot
dmesg
Re: Debian on Synology DS216 April 25, 2024 02:26PM |
Admin Registered: 13 years ago Posts: 18,821 |
16 GPIO0 16 OUTPUT HIGH Enable ethernet PHY LED.
Re: Debian on Synology DS216 April 25, 2024 02:45PM |
Admin Registered: 13 years ago Posts: 18,821 |
&uart0 { status = "okay"; }; &uart1 { status = "okay"; };