Welcome! Log In Create A New Profile

Advanced

Debian on Synology DS215j

Posted by ZooMoo 
Re: Debian on Synology DS215j
March 23, 2025 12:46AM
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 install extract-dtb


Extract dtb from uboot image.

$ 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


I couldn't find anything online to solve or explain the EOF error.


Q. Does synology even use a DTS or do they rely on their synobios binary firmware to set up the hardware? (cluching at strews here)

https://forum.doozan.com/read.php?2,138851,139388#msg-139388

...
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
ZooMoo,

> 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,

I don't think this DSM Linux kernel has FDT support, it's too old. Any mention of DTB is probably just for Synology testing.

I'm reading the mvpp2 driver and searching it's history in kernel GiHub. There were instances where the problem looks quite similar.

I'll post some testing ideas tomorrow.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Synology DS215j
March 23, 2025 08:14AM
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 Flavors:

88F6720

Product infos: https://web.archive.org/web/20140108032402/http://www.marvell.com/embedded-processors/armada-375/

Product Brief: https://web.archive.org/web/20131216023516/http://www.marvell.com/embedded-processors/armada-300/assets/ARMADA_375_SoC-01_product_brief.pdf




More luck for the Marvell 88E1514

https://www.marvell.com/content/dam/marvell/en/public-collateral/phys-transceivers/marvell-phys-transceivers-alaska-88e151x-datasheet.pdf
Re: Debian on Synology DS215j
March 23, 2025 10:21PM
ZooMoo,

> 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.

I could not find the Amada 375 datasheet either.

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


2. With armada-375-synology-ds215j_eth1.tar

/usr/sbin/ethtool -s eth0 autoneg off
ifdown
ifup

Instead of ifdown/ifup, you could also remove/insert the ethernet cable.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Synology DS215j
March 24, 2025 06:51AM
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 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


> 2. With armada-375-synology-ds215j_eth1.tar
>
>
> /usr/sbin/ethtool -s eth0 autoneg off
> ifdown
> ifup
>
>
> Instead of ifdown/ifup, you could also
> remove/insert the ethernet cable.

Same result.

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
ZooMoo,

Can you check your switch if all the ports are 1Gbs? is there 2.5 Gbs port on this switch?

Also, in Debian get some info in both test cases:

mii-tool -v eth0

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 03/25/2025 12:46AM by bodhi.
Re: Debian on Synology DS215j
March 25, 2025 04:16AM
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

Turn off auto-negotiation:

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





2. armada-375-synology-ds215j_eth1.tar

After setting autonegotiation 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
Re: Debian on Synology DS215j
March 25, 2025 05:38PM
ZooMoo,

Eventhough we still have problem, this is pretty good.

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

Except for this
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
advertising should match link partner

So perhaps we should iron that out before going further.

Something like this to

turn on flow control:
ethtool -A eth0 rx on tx on
And select port tp
ethtool -s eth0 port tp

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 03/25/2025 05:42PM by bodhi.
Re: Debian on Synology DS215j
March 25, 2025 09:50PM
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


====

I'm wondering if the WD MyCloud Gen 2 uses the exact same chip or another 88E151x.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 03/25/2025 10:21PM by bodhi.
Re: Debian on Synology DS215j
March 26, 2025 02:35AM
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://www.manualslib.com/manual/1021099/Western-Digital-My-Cloud-Mirror.html), but there wasn't any room in the 140 pages for CPU/RAM/Ethernet hardware specifications.

The best info I've found is from Small Net Builder where they pulled apart the unit, took photos of the PCB and listed the hardware components. However, they found an Armada 385, not 375 CPU. So I'm not sure if this is correct.

WD My Cloud Mirror Gen 2 Reviewed
by Craig Ellison
https://www.smallnetbuilder.com/nas/nas-reviews/wd-my-cloud-mirror-gen-2-reviewed/

It lists the Marvell 88E1512-NNP2 as providing ethernet, whilst the DS215j uses the Marvell 88E1514-NNP2

I'm not sure if I've found the correct WD MyCloud Gen 2 hardware.
Re: Debian on Synology DS215j
March 26, 2025 12:26PM
> 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

> However, they found an Armada 385, not 375 CPU. So
> I'm not sure if this is correct.
>
> WD My Cloud Mirror Gen 2 Reviewed
> by Craig Ellison
> https://www.smallnetbuilder.com/nas/nas-reviews/wd-my-cloud-mirror-gen-2-reviewed/
>

It's a differrent box using Armada 385.

I think the Armada 375 datasheet is good to have (when and if I build u-boot for it), but not too relevant here. The 88E151x datasheet is quite relevant

> It lists the Marvell 88E1512-NNP2 as providing
> ethernet, whilst the DS215j uses the Marvell
> 88E1514-NNP2
>

Your post previously about the 88E151x datasheet reminded me to look in my archive. I do have this datasheet. Hence my previous post above:

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

Look in your version of the 88E151x datasheet, page 5 Figure 2.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Synology DS215j
March 28, 2025 02:52AM
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 [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

Because u-boot is so old?
Re: Debian on Synology DS215j
March 28, 2025 03:04AM
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 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


Disconnect/reconnect ethnet cable:

[   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




Ping fails with Destination Host Unreachable.
Re: Debian on Synology DS215j
March 28, 2025 12:38PM
ZooMoo,

> 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 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
>

So it's still a mystery. The above looks good.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Synology DS215j
March 28, 2025 01:33PM
ZooMoo,

I've looked at your boot log again. It turns out you actually have the 88E1510, not 88E1514.

[   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

Either that, or the kernel misidentified the chip.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Synology DS215j
March 28, 2025 09:21PM
Quote
bodhi
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;
	} 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
ZooMoo,

> Looking at the driver source, it looks like the
> 88E1510 is used as a catch all for the family of
> 88E151x PHY chips.

That's how this driver was written. Sometime you'll see a mix of other chip's functions into one. It reused common functions when it can. I guess the current driver just print the mask (151x) and ignore the last digit. IIRC, in the past I've seen the specific chip ID before in some kernel log.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Synology DS215j
March 29, 2025 06:28PM
Compared with the WDMyCloud Gen2:

https://forum.doozan.com/read.php?2,94839,139477#msg-139477

I'm wondering if DS215j Ethernet is on MAC1, which is a PoE port. Did Synology advertise it with PoE as a feature?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Synology DS215j
March 29, 2025 06:35PM
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.
Re: Debian on Synology DS215j
March 29, 2025 06:50PM
So it's definitely is rgmii-id, MAC0. Same as the MyCloud Gen 2!

GPL:
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
        }
};

It's a puzzle why the driver detected port = FIBRE. Should be Twist Pair (TP).

Perhaps this u-boot messed it up?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 03/29/2025 06:52PM by bodhi.
Re: Debian on Synology DS215j
March 31, 2025 04:35AM
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?
Re: Debian on Synology DS215j
March 31, 2025 12:28PM
> 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)?

It was initially created with Debian debootstrap.

> Do you have a build script?

I don't have any build script at all.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Synology DS215j
April 05, 2025 05:59PM
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):
./6.2-25556/linux-3.x/synoconfigs/armada375

NOTE: Compilation relies on synobios which is not provided, but is released for the DSM 7.1
(https://global.synologydownload.com/download/ToolChain/Synology%20NAS%20GPL%20Source/7.1.1-42962/armada375/synobios.txz)


Stock GNU/Linux kernel:
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



The DSM kernel-3.x has the following additional folders that the stock 3.2.40 kernel lacks.

./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

I've not tried compiling the stock kernel yet. I'm not sure how to do it with the debootstrap approach.

Is the reason why the (newer) stock kernel (Debian-6.6.2-mvebu-tld-1-rootfs-bodhi.tar.bz2) even with the DTS does not work properly with the DS215j is it lacks these plat-armada/mech-armada375 files?
Re: Debian on Synology DS215j
April 06, 2025 02:14PM
ZooMoo,

> Is the reason why the (newer) stock kernel
> (Debian-6.6.2-mvebu-tld-1-rootfs-bodhi.tar.bz2)
> even with the DTS does not work properly with the
> DS215j is it lacks these
> plat-armada/mech-armada375 files?

No. Those are in the old Linux architecture back in the days. Modern Linux kernels have a different architecture for SoCs that have been mainlined.

Marvell SoCs (MVEBU), including Armada 375 SoC, belongs to
./arch/arm/mach-mvebu/
All hardware abstraction now are in a driver model architecture.

Specifically, the network driver used in this DS215j
./drivers/net/ethernet/marvell/mvpp2/

So while it's good to look at the old code, you should only look at patches that are specific to this DS215j. Synology patches are quite decent in that they have comments for patches, and follow good sw practice of using naming convention.

Searching for ds25j in their GPL source:
find .  -name '*.[ch]' | xargs grep -i ds215j

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 04/06/2025 02:18PM by bodhi.
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: