Re: Debian on Synology DS215j March 23, 2025 12:46AM |
Registered: 3 months ago Posts: 38 |
$ binwalk -e DSM_DS215j_6.2.4-25556.pat $ cd _DSM_DS215j_6.2.4-25556.pat.extracted/
$ pipx install extract-dtb
$ extract-dtb uboot_DS215jv10.bin -o ./dtb Dumped 00_kernel, start=0 end=595896 Dumped 01_dtbdump.dtb, start=595896 end=597204 Dumped 02_dtbdump_: _b.dtb, start=597204 end=947196 Extracted 2 appended dtbs + kernel to ./dtb $ ll ./dtb/ total 1.1M -rw-r--r-- 1 user1 user1 582K Mar 22 12:58 00_kernel -rw-r--r-- 1 user1 user1 1.3K Mar 22 12:58 01_dtbdump.dtb -rw-r--r-- 1 user1 user1 342K Mar 22 12:58 '02_dtbdump_:'$'\f''_b.dtb' $ cd dtb/ $ mv 02_dtbdump_\:^L_b.dtb 02_dtbdump.dtb Attempt to convert DTB to DTS. $ dtc -s -I dtb 01_dtbdump.dtb -O dts -o 01_dtbdump.dts FATAL ERROR: EOF before reading 943730153 bytes of DT blob $ dtc -s -I dtb 02_dtbdump.dtb -O dts -o 02_dtbdump.dts FATAL ERROR: EOF before reading 322973161 bytes of DT blob
... Insert net driver(Mindspeed only)... ds215j_synobios: module license 'Synology Inc.' taints kernel. Disabling lock debugging due to kernel taint 2025-3-5 11:27:25 UTC synobios: load, major number 201 Brand: Synology Model: DS-215j This is default settings: set group disks wakeup number to 1, spinup time deno 1 synobios cpu_arch proc entry initialized synobios crypto_hw proc entry initialized synobios syno_platform proc entry initialized synobios open /dev/ttyS1 success Starting /usr/syno/bin/synocfgen... /usr/syno/bin/synocfgen returns 0 synobios: unload Partition Version=8 ...
Re: Debian on Synology DS215j March 23, 2025 03:31AM |
Admin Registered: 14 years ago Posts: 19,550 |
Re: Debian on Synology DS215j March 23, 2025 08:14AM |
Registered: 3 months ago Posts: 38 |
Re: Debian on Synology DS215j March 23, 2025 10:21PM |
Admin Registered: 14 years ago Posts: 19,550 |
/usr/sbin/ethtool -s eth0 autoneg off ifdown ifup
/usr/sbin/ethtool -s eth0 autoneg off ifdown ifup
Re: Debian on Synology DS215j March 24, 2025 06:51AM |
Registered: 3 months ago Posts: 38 |
> /usr/sbin/ethtool -s eth0 autoneg off > ifdown > ifup >
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 frame use: No
Supports auto-negotiation: Yes
Supported FEC modes: Not reported
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Advertised FEC modes: Not reported
Speed: 1000Mb/s
Duplex: Full
Auto-negotiation: on
Port: FIBRE
PHYAD: 1
Transceiver: external
Link detected: yes
root@debian:~# /usr/sbin/ethtool -s eth0 autoneg off [ 53.538728][ T787] mvpp2 f10f0000.ethernet eth0: Link is Down [ 63.926877][ T787] mvpp2 f10f0000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
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 frame use: No
Supports auto-negotiation: Yes
Supported FEC modes: Not reported
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: No
Advertised FEC modes: Not reported
Speed: 1000Mb/s
Duplex: Full
Auto-negotiation: off
Port: FIBRE
PHYAD: 1
Transceiver: external
Link detected: yes
root@debian:~# ifconfig -a eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.1.201 netmask 255.255.255.0 broadcast 192.168.1.255 ...
root@debian:~# ping 192.168.1.1 -c 3 PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data. From 192.168.1.201 icmp_seq=1 Destination Host Unreachable From 192.168.1.201 icmp_seq=2 Destination Host Unreachable From 192.168.1.201 icmp_seq=3 Destination Host Unreachable --- 192.168.1.1 ping statistics --- 3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2082ms pipe 3
> /usr/sbin/ethtool -s eth0 autoneg off > ifdown > ifup >>
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 frame use: No Supports auto-negotiation: Yes Supported FEC modes: Not reported Advertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Advertised pause frame use: No Advertised auto-negotiation: No Advertised FEC modes: Not reported Speed: 1000Mb/s Duplex: Full Auto-negotiation: off Port: FIBRE PHYAD: 1 Transceiver: external Link detected: yes
root@debian:~# ping 192.168.1.1 -c 3 PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data. From 192.168.1.201 icmp_seq=1 Destination Host Unreachable From 192.168.1.201 icmp_seq=2 Destination Host Unreachable From 192.168.1.201 icmp_seq=3 Destination Host Unreachable --- 192.168.1.1 ping statistics --- 3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2082ms pipe 3
Re: Debian on Synology DS215j March 25, 2025 12:44AM |
Admin Registered: 14 years ago Posts: 19,550 |
mii-tool -v eth0
Re: Debian on Synology DS215j March 25, 2025 04:16AM |
Registered: 3 months ago Posts: 38 |
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 advertising: 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD link partner: 1000baseT-HD 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control root@debian:~# ping 192.168.1.1 -c 3 PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data. From 192.168.1.201 icmp_seq=1 Destination Host Unreachable From 192.168.1.201 icmp_seq=2 Destination Host Unreachable From 192.168.1.201 icmp_seq=3 Destination Host Unreachable --- 192.168.1.1 ping statistics --- 3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 3153ms pipe 3
root@debian:~# /usr/sbin/ethtool -s eth0 autoneg off [ 568.286753][ T111] mvpp2 f10f0000.ethernet eth0: Link is Down [ 574.564976][ T111] mvpp2 f10f0000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off root@debian:~# mii-tool -v eth0 eth0: 10 Mbit, full duplex, link ok product info: vendor 00:0a:c2 or 00:50:43, model 29 rev 1 basic mode: 10 Mbit, full duplex basic status: link ok capabilities: advertising: 100baseTx-FD root@debian:~# ping 192.168.1.1 -c 3 PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data. From 192.168.1.201 icmp_seq=1 Destination Host Unreachable From 192.168.1.201 icmp_seq=2 Destination Host Unreachable From 192.168.1.201 icmp_seq=3 Destination Host Unreachable --- 192.168.1.1 ping statistics --- 3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2052ms pipe 3
root@debian:~# mii-tool -v eth0 eth0: 10 Mbit, full duplex, link ok product info: vendor 00:0a:c2 or 00:50:43, model 29 rev 1 basic mode: 10 Mbit, full duplex basic status: link ok capabilities: advertising: 100baseTx-FD
Re: Debian on Synology DS215j March 25, 2025 05:38PM |
Admin Registered: 14 years ago Posts: 19,550 |
Quote
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 advertising: 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD link partner: 1000baseT-HD 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control root@debian:~# ping 192.168.1.1 -c 3 PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data. From 192.168.1.201 icmp_seq=1 Destination Host Unreachable From 192.168.1.201 icmp_seq=2 Destination Host Unreachable From 192.168.1.201 icmp_seq=3 Destination Host Unreachable --- 192.168.1.1 ping statistics --- 3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 3153ms pipe 3
advertising: 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD link partner: 1000baseT-HD 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-controladvertising should match link partner
ethtool -A eth0 rx on tx onAnd select port tp
ethtool -s eth0 port tp
Re: Debian on Synology DS215j March 25, 2025 09:50PM |
Admin Registered: 14 years ago Posts: 19,550 |
3. sgmii 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 frame use: No Supports auto-negotiation: Yes Supported FEC modes: Not reported Advertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Advertised pause frame use: No Advertised auto-negotiation: Yes Advertised FEC modes: Not reported Link partner advertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Half 1000baseT/Full Link partner advertised pause frame use: Symmetric Receive-only Link partner advertised auto-negotiation: Yes Link partner advertised FEC modes: Not reported Speed: 1000Mb/s Duplex: Full Auto-negotiation: on Port: Twisted Pair PHYAD: 1 Transceiver: external MDI-X: Unknown Link detected: yes
Re: Debian on Synology DS215j March 26, 2025 02:35AM |
Registered: 3 months ago Posts: 38 |
Re: Debian on Synology DS215j March 26, 2025 12:26PM |
Admin Registered: 14 years ago Posts: 19,550 |
Quote
The datasheet seems to indicate that this box LAN chip 88E1514 is SGMII (not RGMII).
So this should be used: armada-375-synology-ds215j_sgmii.tar
https://forum.doozan.com/read.php?2,138851,139241#msg-139241
3. sgmii
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 frame use: No
Supports auto-negotiation: Yes
Supported FEC modes: Not reported
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Advertised FEC modes: Not reported
Link partner advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Link partner advertised pause frame use: Symmetric Receive-only
Link partner advertised auto-negotiation: Yes
Link partner advertised FEC modes: Not reported
Speed: 1000Mb/s
Duplex: Full
Auto-negotiation: on
Port: Twisted Pair
PHYAD: 1
Transceiver: external
MDI-X: Unknown
Link detected: yes
Re: Debian on Synology DS215j March 28, 2025 02:52AM |
Registered: 3 months ago Posts: 38 |
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 [MHz]
L2 @ 400 [MHz]
TClock @ 200 [MHz]
DDR @ 534 [MHz]
DDR 16Bit Width, FastPath Memory Access, DLB Enabled
DRAM: 512 MiB
Map: Code: 0x1fed2000:0x1ff93080
BSS: 0x1ffefe10
Stack: 0x1f9c1f20
Heap: 0x1f9c2000:0x1fed2000
MMC: MRVL_MMC: 0
SF: Detected MX25L6405D with page size 64 KiB, total 8 MiB
PCI-e 0: Detected No Link.
USB2.0 0: Host Mode
USB2.0 1: Device Mode
USB3.0 0: Host Mode
Board configuration detected:
RGMII0 Module on MAC0
PON ETH SERDES on MAC1 [SFP]
SERDES configuration:
Lane #0: PCIe0
Lane #1: SATA1
Lane #2: SATA0
Lane #3: USB3
Re: Debian on Synology DS215j March 28, 2025 03:04AM |
Registered: 3 months ago Posts: 38 |
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 frame use: No Supports auto-negotiation: Yes Supported FEC modes: Not reported Advertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Advertised pause frame use: No Advertised auto-negotiation: Yes Advertised FEC modes: Not reported Link partner advertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Half 1000baseT/Full Link partner advertised pause frame use: Symmetric Receive-only Link partner advertised auto-negotiation: Yes Link partner advertised FEC modes: Not reported Speed: 1000Mb/s Duplex: Full Auto-negotiation: on Port: Twisted Pair PHYAD: 1 Transceiver: external MDI-X: Unknown Link detected: yes
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 advertising: 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD link partner: 1000baseT-HD 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control
root@debian:~# /usr/sbin/ethtool -s eth0 autoneg off
[ 96.137907][ T8] mvpp2 f10f0000.ethernet eth0: Link is Down [ 136.806743][ T8] mvpp2 f10f0000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
root@debian:~# mii-tool -v eth0 eth0: 1000 Mbit, full duplex, link ok product info: vendor 00:0a:c2 or 00:50:43, model 29 rev 1 basic mode: 10 Mbit, full duplex basic status: autonegotiation complete, link ok capabilities: 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD advertising: 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD link partner: 1000baseT-HD 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control
Re: Debian on Synology DS215j March 28, 2025 12:38PM |
Admin Registered: 14 years ago Posts: 19,550 |
> 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 frame use: No > Supports auto-negotiation: Yes > Supported FEC modes: Not reported > Advertised link modes: 10baseT/Half > 10baseT/Full > 100baseT/Half > 100baseT/Full > 1000baseT/Full > Advertised pause frame use: No > Advertised auto-negotiation: Yes > Advertised FEC modes: Not reported > Link partner advertised link modes: > 10baseT/Half 10baseT/Full > > 100baseT/Half 100baseT/Full > > 1000baseT/Half 1000baseT/Full > Link partner advertised pause frame use: > Symmetric Receive-only > Link partner advertised auto-negotiation: > Yes > Link partner advertised FEC modes: Not > reported > Speed: 1000Mb/s > Duplex: Full > Auto-negotiation: on > Port: Twisted Pair > PHYAD: 1 > Transceiver: external > MDI-X: Unknown > Link detected: yes >>
> 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 > advertising: 1000baseT-FD 100baseTx-FD > 100baseTx-HD 10baseT-FD 10baseT-HD > link partner: 1000baseT-HD 1000baseT-FD > 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD > flow-control >
Re: Debian on Synology DS215j March 28, 2025 01:33PM |
Admin Registered: 14 years ago Posts: 19,550 |
[ 17.617993][ T1985] mvpp2 f10f0000.ethernet eth0: PHY [f10c0054.mdio-mii:01] driver [Marvell 88E1510] (irq=POLL) [ 17.628393][ T1985] mvpp2 f10f0000.ethernet eth0: configuring for phy/rgmii-id link mode
Re: Debian on Synology DS215j March 28, 2025 09:21PM |
Registered: 3 months ago Posts: 38 |
Quote
bodhi
Either that, or the kernel misidentified the chip.
... static int m88e1510_config_init(struct phy_device *phydev) { static const struct { u16 reg17, reg16; } errata_vals[] = { { 0x214b, 0x2144 }, { 0x0c28, 0x2146 }, { 0xb233, 0x214d }, { 0xcc0c, 0x2159 }, }; int err; int i; /* As per Marvell Release Notes - Alaska 88E1510/88E1518/88E1512/ * 88E1514 Rev A0, Errata Section 5.1: * If EEE is intended to be used, the following register writes * must be done once after every hardware reset. */ err = marvell_set_page(phydev, 0x00FF); if (err < 0) return err; ...
Re: Debian on Synology DS215j March 29, 2025 01:50PM |
Admin Registered: 14 years ago Posts: 19,550 |
Re: Debian on Synology DS215j March 29, 2025 06:28PM |
Admin Registered: 14 years ago Posts: 19,550 |
Re: Debian on Synology DS215j March 29, 2025 06:35PM |
Registered: 3 months ago Posts: 38 |
Re: Debian on Synology DS215j March 29, 2025 06:50PM |
Admin Registered: 14 years ago Posts: 19,550 |
MV_BOARD_MPP_TYPE_INFO syno_ds215j_BoardModTypeInfo[] = { { .boardMppSlic = MV_BOARD_SLIC_DISABLED, .ethSataComplexOpt = (MV_ETHCOMP_GE_MAC1_2_PON_ETH_SERDES_SFP | MV_ETHCOMP_GE_MAC0_2_RGMII0), .ethPortsMode = 0x0 } };
Re: Debian on Synology DS215j March 31, 2025 04:35AM |
Registered: 3 months ago Posts: 38 |
Re: Debian on Synology DS215j March 31, 2025 12:28PM |
Admin Registered: 14 years ago Posts: 19,550 |
Re: Debian on Synology DS215j April 05, 2025 05:59PM |
Registered: 3 months ago Posts: 38 |
git clone git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git cd linux-stable git checkout -b ds215j_3.2.40 v3.2.40
./arch/arm/plat-armada/mv_hal/eth-phy/mvCompVer.txt ./arch/arm/plat-armada/mv_hal/eth-phy/mvEthPhy.c ./arch/arm/plat-armada/mv_hal/eth-phy/mvEthPhy.h ./arch/arm/plat-armada/mv_hal/eth-phy/mvEthPhyRegs.h
./arch/arm/mach-armada375/armada_375_family/boardEnv/mvBoardEnvLib.c ./arch/arm/mach-armada375/armada_375_family/boardEnv/mvBoardEnvLib.h ./arch/arm/mach-armada375/armada_375_family/boardEnv/mvBoardEnvSpec.c ./arch/arm/mach-armada375/armada_375_family/boardEnv/mvBoardEnvSpec.h
Re: Debian on Synology DS215j April 06, 2025 02:14PM |
Admin Registered: 14 years ago Posts: 19,550 |
./arch/arm/mach-mvebu/All hardware abstraction now are in a driver model architecture.
./drivers/net/ethernet/marvell/mvpp2/
find . -name '*.[ch]' | xargs grep -i ds215j