Trying to set the pause parameter (flow-control) fails on the debian install: root@(none):~# mii-tool -v eth0 eth0: negotiated 1000baseT-FD flow-control, link ok product info: vendor 00:0a:c2 or 00:50:43, model 29 revby ZooMoo - Debian
Thanks for the updated DTS/DTB file. I've built the DTB from your DTS file, but no luck. $ ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make -j4 dtbs DTC arch/arm/boot/dts/marvell/armada-375-synology-ds215j_v20251110_bodhi.dtb Booting up Debian on the DS215j gives the same results as before. root@(none):~# cat /etc/os-release PRETTY_NAME="Debian GNU/Linux 12by ZooMoo - Debian
bodhi Wrote: ------------------------------------------------------- > @ZooMoo, > > > [ 0.000000] Kernel command line: > console=ttyS0,115200 ip=off initrd=0x8000000 > root=/dev/md0 rw syno_hw_version=DS215jv10 > hd_power_on_seq=2 ihd_num=2 netif_num=1 > flash_size=8 > > > Look for hd_power_on_seq argument and how > it is handled. You might fiby ZooMoo - Debian
Synology are using rc-scripts to do (some of?) the magic. Just focusing on the USB problem, in the DSM it uses RC scripts to load the usb related kernel modules. In the DSM kernel logs it has the following message regarding USB that the Debian kernel does not have. START /linuxrc.syno Insert basic USB modules... According to the "Running Debian on a Synology DS212J" articleby ZooMoo - Debian
The above problem is because the USB memory stick that boots bodhi's rootfs with the synology kernel is not detected once the kernel starts... The drivers seem to be loaded according to the logs in the previous post: ... [ 0.213751] USB3 XHCI Device registered successfully [ 0.213761] Initialising USB2-1 HAL [ 0.214096] Registered Marvell USB2 EHCI host controller 1 [by ZooMoo - Debian
I've tried out the 4.14 rootfs and the previous error has gone, but now the issue is related to the HDD. $ sudo su - # rm -rf /media/user1/usbstick/* # tar xjf Debian-4.12.4-mvebu-tld-1-rootfs-bodhi.tar.bz2 -C /media/user1/usbstick/ # cd /media/user1/usbstick/boot/ root@host:/media/user1/usbstick/boot# ZIMAGE=/home/user1/Synology_Debian/src/SynologyOpenSource/toolkit/build_env/dby ZooMoo - Debian
Thanks @daviddyer. I'll wait for bodhi to chime in with an update. Either his check sum is wrong or the file is wrong.by ZooMoo - Debian
mmm I'm getting a different sha256. I tried downloading twice, but got the same checksum. $ sha256sum Debian-4.12.4-mvebu-tld-1-rootfs-bodhi.tar.bz2 1ce340b3db2bfbd0e1d706ed1fda0d4dc8f79830ab5285b1f50299aee25ae2d7 Debian-4.12.4-mvebu-tld-1-rootfs-bodhi.tar.bz2 $ ll Debian-4.12.4-mvebu-tld-1-rootfs-bodhi.tar.bz2 -rw-r--r-- 1 user1 user1 229M Jul 10 11:19 Debian-4.12.4-mvebu-tld-by ZooMoo - Debian
It's' not so simple given the Synology 3.x kernel needs GCC up to version 8. Which is too old and not available unless running a legacy distribution in a VM. To build the ancient and modified Synology kernel you need to use their chroot'ed build environment. Details for setting up the environment are given at: https://help.synology.com/developer-guide/getting_started/gettingby ZooMoo - Debian
Thanks Bodhi, I've been looking around and not much shows up. Going back to the DS215j, I want to try to compile and use the Synology DSM kernel (v3.2.4) with your Debian DeBootstrap install. How do I compile a kernel from source and use it within a Debian Debootstrap install. I guess I'll need some of Synologies custom libraries, but I'm not sure I've searched onlineby ZooMoo - Debian
This is not looking good without the docs. What is the latest SoC / NAS you'd recommend that's supported?by ZooMoo - Debian
I put the request for releasing the Armarda 375 documentation via their Request Information contact page https://www.marvell.com/request-information.html No response at all from Marvell. Maybe because I'm a nobody and not a registered company with an NDA? Are you able to try as well?by ZooMoo - Debian
Nice Bodhi! I've tested the LED/Beeps and they are working as expected. Shutdown (shutdown -h now) also works with the message: reboot: Power down qnap_power_off: triggering power-off.. I'll put in a request to Marvell for the very old Amarda 375 specification documents.by ZooMoo - Debian
Bodhi, Sorry, no luck in my search. It must be under an NDA :( Is the only way to get it is from Marvell/AMD or whoever owns it by signing an NDA?by ZooMoo - Debian
Synologies DSM 6.2 uses the v3.2.4 kernel which I compared to the stock kernel for the same version. To get the respective kernel sources for the armada 375: linux-3.x.txz https://global.synologydownload.com/download/ToolChain/Synology%20NAS%20GPL%20Source/6.2-25556/armada375/linux-3.x.txz Location of .config which shows the kernel version (# Linux/arm 3.2.40 Kernel Configuration): ./6by ZooMoo - Debian
A puzzle indeed. Given Synologies DSM uses the 3.x Kernel, then it may be a regression in later kernels (?). I'd like to try compiling a 3.x kernel to see if it works and rule out a regression in the 6.x kernel. How do you prepare the Debian-6.6.2-mvebu-tld-1-rootfs-bodhi.tar.bz2 file (https://forum.doozan.com/read.php?2,32146)? Do you have a build script?by ZooMoo - Debian
The DS215j doesn't support POE (https://global.download.synology.com/download/Document/Hardware/DataSheet/DiskStation/15-year/DS215j/enu/Synology_DS215j_Data_Sheet_enu.pdf). Would've been a cool feature though.by ZooMoo - Debian
Quotebodhi Either that, or the kernel misidentified the chip. Looking at the driver source, it looks like the 88E1510 is used as a catch all for the family of 88E151x PHY chips. It also contains a workaround for the 88E1514 bug. ./linux-stable/drivers/net/phy/marvell.c ... static int m88e1510_config_init(struct phy_device *phydev) { static const struct { u16 reg17, reg16;by ZooMoo - Debian
No luck re-running sgmii (armada-375-synology-ds215j_sgmii.tar) but the information maybe useful: root@debian:~# ethtool eth0 Settings for eth0: Supported ports: [ TP MII FIBRE ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Supported pause frameby ZooMoo - Debian
It's odd though that u-boot shows it detect rgmii and not sgmii. U-Boot 2013.01-g5d1ab78 (Oct 27 2015 - 11:38:34) Marvell version: 2014_T2.0p3 mvBoardTwsiGet: Twsi Read fail mvBoardIoExpValSet: Error: Read from IO Expander failed Board: SYNO-DS215j SoC: MV88F6720 Rev A0 running 2 CPUs CPU: ARM Cortex A9 MPCore (Rev 1) LE CPU 0 CPU @ 800 L2by ZooMoo - Debian
I've tried to find the detailed specifications for the WD MyCloud Gen 2, but not much luck. The only official support page for the WD Cloud Gen 2 is the slightly differently named "WD Cloud Mirror Gen 2" WD Cloud Mirror (Gen 2) https://support-en.wd.com/app/products/product-detailweb/p/137 Yet, there are no hardware specifications. I found the manual else where (https://by ZooMoo - Debian
1. armada-375-synology-ds215j-jan-20.tar After fresh reboot: root@debian:~# mii-tool -v eth0 eth0: negotiated 1000baseT-FD flow-control, link ok product info: vendor 00:0a:c2 or 00:50:43, model 29 rev 1 basic mode: autonegotiation enabled basic status: autonegotiation complete, link ok capabilities: 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD advertisingby ZooMoo - Debian
bodhi Wrote: > Please try these 2 tests. In each test we turn off > auto negotiation. > > 1. With armada-375-synology-ds215j-jan-20.tar. > Boot, log into Debian and > > > /usr/sbin/ethtool -s eth0 autoneg off > ifdown > ifup > root@debian:~# ethtool eth0 Settings for eth0: Supported ports: [ TP MII FIBRE ] Supported liby ZooMoo - Debian
Thanks Bodhi. I started looking for the specification documents for both the Marvell Amada 375 (88F6720) and the ETH Marvell 88E1514. Which may help with the DTS. I cannot find anything for the Marvell Amada 375 (88F6720) (maybe under NDA???...), even the kernel docs only mentions the product brief and not the hardware specs. https://docs.kernel.org/arch/arm/marvell.html Armada 375 Flavby ZooMoo - Debian
Another approach I've tried is to extract the DTB and convert it to a DTS from the Synology DSM installation PAT file. However, it has not worked, see below. Download DSM from: https://archive.synology.com/download/Os/DSM/6.2.4-25556 Extract file: $ binwalk -e DSM_DS215j_6.2.4-25556.pat $ cd _DSM_DS215j_6.2.4-25556.pat.extracted/ Install extract-dtb tool: $ pipx insby ZooMoo - Debian
Here is the initial u-boot log of the DS215j. BootROM - 1.51 Booting from SPI flash General initialization - Version: 1.0.0 High speed PHY - Version: 0.1.1 (COM-PHY-V20) USB2 UTMI PHY initialized succesfully USB2 UTMI PHY initialized succesfully High speed PHY - Ended Successfully DDR3 Training Sequence - Ver 5.7.1 TWSI Read failed Error reading from TWSI DDR3 Training Sequeby ZooMoo - Debian
Do you think the problem lies in the DTS (missing some parameter setting or adjustment) or it's a problem with the kernel/driver?by ZooMoo - Debian
Is there additional debugging / flags I can turn on to show where the problem could be?by ZooMoo - Debian
Thanks Bodhi, Checking the logs, I get everything you've listed above except for ethact and ethprime. $ cat synology_ds215j_eth1_v2025-03-12.log | grep -E "RGMII0|PON|SERDES|Lane |Net:|syno:|Using egiga|ethact|ethprime" RGMII0 Module on MAC0 PON ETH SERDES on MAC1 SERDES configuration: Lane #0: PCIe0 Lane #1: SATA1 Lane #2: SATA0 Lane #3: USB3 Net: egiga0,by ZooMoo - Debian