Welcome! Log In Create A New Profile

Advanced

Debian on Synology DS215j

Posted by ZooMoo 
Re: Debian on Synology DS215j
January 23, 2025 01:47AM
The above output was after a reboot with the MAC hardcoded.

The LAN is okay as other machines can ping each other, but just not the NAS.

Maybe something is wrong with my network..?

Just re-running commands:

# cat /etc/network/interfaces
auto lo eth0
iface lo inet loopback
iface eth0 inet static
address 192.168.1.201
netmask 255.255.255.0
gateway 192.168.1.1
hwaddress ether 00:50:43:00:02:02

# 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



# ifc config -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
        inet6 fe80::250:43ff:fe00:202  prefixlen 64  scopeid 0x20<link>
        ether 00:50:43:00:02:02  txqueuelen 2048  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1122  bytes 50532 (49.3 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

ip6tnl0: flags=128<NOARP>  mtu 1452
        unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  txqueuelen 1000  (UNSPEC)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 548  bytes 58958 (57.5 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 548  bytes 58958 (57.5 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

sit0: flags=128<NOARP>  mtu 1480
        sit  txqueuelen 1000  (IPv6-in-IPv4)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


# ip -d route
unicast default via 192.168.1.1 dev eth0 proto boot scope global onlink 
unicast 192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.201
Re: Debian on Synology DS215j
January 23, 2025 02:23PM
ZooMoo,

> The above output was after a reboot with the MAC
> hardcoded.
>
> The LAN is okay as other machines can ping each
> other, but just not the NAS.
>
> Maybe something is wrong with my network..?

Perhaps. Everything looks normal, except this:

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

And there is no link partner at the other end of the cable.

Try using a different ethernet cable annd/or plug it in to a different switch.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Synology DS215j
January 24, 2025 12:37AM
> Try using a different ethernet cable and/or plug it in to a different switch.

Shouldn't the router and cable be ok? The router and cable are the same ones I used when you got me to "setenv ipaddr" whilst in u-boot.
ping worked in the case of u-boot.

Even if ping works within u-boot, could something else be wrong with the router/cable?

Strangely, when I unplug the ethernet cable from the NAS, ethtool reports "Port: Twisted Pair" :

# 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: Unknown!
        Duplex: Unknown! (255)
        Auto-negotiation: on
        Port: Twisted Pair
        PHYAD: 1
        Transceiver: external
        MDI-X: Unknown
        Link detected: no



Is "Port: Twisted Pair" just the default?

Plugging the ethernet cable back into the NAS, we get Port: Fibre again.

# 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


Manually setting the port to MII or TP makes not change.

# ethtool -s eth0 port mii
# ethtool -s eth0 port tp


ethtool eth0 reports the same port: FIBRE.
Re: Debian on Synology DS215j
January 24, 2025 01:01AM
> Shouldn't the router and cable be ok? The router
> and cable are the same ones I used when you got me
> to "setenv ipaddr" whilst in u-boot.
> ping worked in the case of u-boot.

OK. It's a very good point!

>
> Even if ping works within u-boot, could something
> else be wrong with the router/cable?

Not likely. If u-boot works then Linux should work.

====

The DTS for wd-mycloud-gen2 and this ds215j is almost identical, except for the PHY Address. And we know the PHY address is 1 (from your ethtool eth0 output in stock OS). So it's a mystery why they behave differently.

And there is no link partner at the other end. Usually it is because the cable is unplugged, or the switch is turned off. The link partner looks like this in the output of ethtool eth0.

Link partner advertised link modes:  10baseT/Half 10baseT/Full
	                                     100baseT/Half 100baseT/Full
	                                     1000baseT/Full
	Link partner advertised pause frame use: Symmetric
	Link partner advertised auto-negotiation: Yes
	Link partner advertised FEC modes: Not reported

It's time to revisit the GPL source again :)

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Synology DS215j
January 25, 2025 11:34PM
I still cannot find the u-boot source... this will help right?

I'll contact Synology to ask where it is.
Re: Debian on Synology DS215j
January 26, 2025 12:12AM
ZooMoo,

> I still cannot find the u-boot source... this will
> help right?
>
> I'll contact Synology to ask where it is.

Sure. U-Boot source will help a great deal. More so than kernel source.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
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: