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)
Re: Debian on Synology DS215j
February 24, 2025 07:27AM
ZooMoo,

The stock u-boot GPL is hard to read. I can't figure out right away what phy-mode we should try. So here are the possibilities.

Extract the DTB from each of these 3 tarballs, and try running with it. Hopefully one of these is better for Ethernet.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Attachments:
open | download - armada-375-synology-ds215j_rgmii.tar (20 KB)
open | download - armada-375-synology-ds215j_gmii.tar (20 KB)
open | download - armada-375-synology-ds215j_sgmii.tar (20 KB)
Re: Debian on Synology DS215j
February 25, 2025 05:02AM
Thanks Bodhi,

I've tried each DBT version, but in all three cases, eth0 was missing.
Below is the kernel log for gmii, but I've compared the logs for the other two versions and they are the same.

The likely error is the following in the logs:

Configuration file wrong or corrupted
<13>Feb 25 02:06:59 root[2084]: Cannot read u-boot env ethaddr


Creation of the boot image:
~# sudo su -
~# cd /media/user1/usb_stick/boot/
/media/user1/usb_stick/boot# cp -a zImage-6.12.6-mvebu-tld-1 zImage.fdt
/media/user1/usb_stick/boot# cat ./dts/armada-375-synology-ds215j_gmii/armada-375-synology-ds215j.dtb >> zImage.fdt 
/media/user1/usb_stick/boot# mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-6.12.6-mvebu-tld-1-gmii -d zImage.fdt uImage	
/media/user1/usb_stick/boot# cd && umount /media/user1/usb_stick


Kernel logs:
Marvell>> bootm 0x02000000 0x08000000
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-6.12.6-mvebu-tld-1-gmii
   Created:      2025-02-25   9:55:45 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5203797 Bytes = 5 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 08000000 ...
   Image Name:   initramfs-6.6.2-mvebu-tld-1
   Created:      2023-12-12  22:03:52 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    5257109 Bytes = 5 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 6.12.6-mvebu-tld-1 (root@tldDebianVM) (arm-linux-gnueabihf-gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #1 SMP PREEMPT Thu Dec 19 21:57:22 PST 2024
[    0.000000][    T0] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
[    0.000000][    T0] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000][    T0] OF: fdt: Machine model: Synology DS215j
[    0.000000][    T0] Memory policy: Data cache writealloc
[    0.000000][    T0] Zone ranges:
[    0.000000][    T0]   Normal   [mem 0x0000000000000000-0x000000001fffffff]
[    0.000000][    T0]   HighMem  empty
[    0.000000][    T0] Movable zone start for each node
[    0.000000][    T0] Early memory node ranges
[    0.000000][    T0]   node   0: [mem 0x0000000000000000-0x000000001fffffff]
[    0.000000][    T0] Initmem setup node 0 [mem 0x0000000000000000-0x000000001fffffff]
[    0.000000][    T0] percpu: Embedded 30 pages/cpu s28748 r8192 d85940 u122880
[    0.000000][    T0] Kernel command line: console=ttyS0,115200 ip=off root=/dev/sda1 rw syno_hw_version=DS215j ihd_num=2 netif_num=1 flash_size=8
[    0.000000][    T0] Unknown kernel command line parameters "syno_hw_version=DS215j ihd_num=2 netif_num=1 flash_size=8", will be passed to user space.
[    0.000000][    T0] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000][    T0] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 131072
[    0.000000][    T0] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000][    T0] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0] rcu: 	RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000][    T0] 	Trampoline variant of Tasks RCU enabled.
[    0.000000][    T0] 	Tracing variant of Tasks RCU enabled.
[    0.000000][    T0] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000][    T0] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000][    T0] RCU Tasks: Setting shift to 1 and lim to 1 rcu_task_cb_adjust=1 rcu_task_cpu_ids=2.
[    0.000000][    T0] RCU Tasks Trace: Setting shift to 1 and lim to 1 rcu_task_cb_adjust=1 rcu_task_cpu_ids=2.
[    0.000000][    T0] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000][    T0] mvebu_mbus: [Firmware Warn]: deprecated mbus-mvebu Device Tree, suspend/resume will not work
[    0.000000][    T0] L2C: DT/platform modifies aux control register: 0x02040000 -> 0x12040000
[    0.000000][    T0] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000][    T0] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000][    T0] L2C-310 D prefetch enabled, offset 1 lines
[    0.000000][    T0] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000][    T0] L2C-310 Coherent cache controller enabled, 8 ways, 256 kB
[    0.000000][    T0] L2C-310 Coherent: CACHE_ID 0x410054c9, AUX_CTRL 0x56040001
[    0.000000][    T0] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000][    T0] Switching to timer-based delay loop, resolution 40ns
[    0.000001][    T0] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 85899345900ns
[    0.000037][    T0] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.000461][    T0] kfence: initialized - using 2097152 bytes for 255 objects at 0x(ptrval)-0x(ptrval)
[    0.001005][    T0] Console: colour dummy device 80x30
[    0.001074][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[    0.001093][    T0] CPU: Testing write buffer coherency: ok
[    0.001151][    T0] CPU0: Spectre v2: using BPIALL workaround
[    0.001160][    T0] pid_max: default: 32768 minimum: 301
[    0.008568][    T0] LSM: initializing lsm=capability
[    0.009961][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.009982][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.015126][    T1] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.080259][    T1] Setting up static identity map for 0x100000 - 0x100060
[    0.080672][    T1] mvebu-soc-id: MVEBU SoC ID=0x6720, Rev=0x3
[    0.081198][    T1] rcu: Hierarchical SRCU implementation.
[    0.081207][    T1] rcu: 	Max phase no-delay instances is 1000.
[    0.081644][    T1] Timer migration: 1 hierarchy levels; 8 children per group; 1 crossnode level
[    0.082714][    T1] smp: Bringing up secondary CPUs ...
[    0.110013][    T1] Booting CPU 1
[    0.110231][    T0] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.110252][    T0] CPU1: Spectre v2: using BPIALL workaround
[    0.110470][    T1] smp: Brought up 1 node, 2 CPUs
[    0.110485][    T1] SMP: Total of 2 processors activated (100.00 BogoMIPS).
[    0.110495][    T1] CPU: All CPU(s) started in SVC mode.
[    0.111181][    T1] Memory: 493472K/524288K available (10240K kernel code, 850K rwdata, 3552K rodata, 1024K init, 333K bss, 29228K reserved, 0K cma-reserved, 0K highmem)
[    0.112717][    T1] devtmpfs: initialized
[    0.118381][    T1] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.118887][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.118924][    T1] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.123693][    T1] prandom: seed boundary self test passed
[    0.126350][    T1] prandom: 100 self tests passed
[    0.126359][    T1] pinctrl core: initialized pinctrl subsystem
[    0.128867][    T1] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.130794][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.132026][    T1] audit: initializing netlink subsys (disabled)
[    0.132454][   T32] audit: type=2000 audit(0.130:1): state=initialized audit_enabled=0 res=1
[    0.133307][    T1] thermal_sys: Registered thermal governor 'step_wise'
[    0.133413][    T1] cpuidle: using governor ladder
[    0.133450][    T1] cpuidle: using governor menu
[    0.133843][    T1] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.133859][    T1] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.137905][    T1] /soc: Fixed dependency cycle(s) with /soc/internal-regs/interrupt-controller@d000
[    0.319795][    T1] raid6: int32x8  gen()   147 MB/s
[    0.489847][    T1] raid6: int32x4  gen()   158 MB/s
[    0.659818][    T1] raid6: int32x2  gen()   275 MB/s
[    0.829735][    T1] raid6: int32x1  gen()   317 MB/s
[    0.829744][    T1] raid6: using algorithm int32x1 gen() 317 MB/s
[    0.999791][    T1] raid6: .... xor() 126 MB/s, rmw enabled
[    0.999799][    T1] raid6: using intx1 recovery algorithm
[    1.002254][    T1] SCSI subsystem initialized
[    1.010253][    T1] usbcore: registered new interface driver usbfs
[    1.010316][    T1] usbcore: registered new interface driver hub
[    1.010403][    T1] usbcore: registered new device driver usb
[    1.010845][    T1] pps_core: LinuxPPS API ver. 1 registered
[    1.010855][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    1.010880][    T1] PTP clock support registered
[    1.032106][    T1] vgaarb: loaded
[    1.032979][    T1] clocksource: Switched to clocksource armada_370_xp_clocksource
[    1.039009][    T1] VFS: Disk quotas dquot_6.6.0
[    1.039325][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.055873][    T1] NET: Registered PF_INET protocol family
[    1.056135][    T1] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    1.058111][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    1.058278][    T1] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    1.058343][    T1] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    1.058418][    T1] TCP bind hash table entries: 4096 (order: 4, 65536 bytes, linear)
[    1.058544][    T1] TCP: Hash tables configured (established 4096 bind 4096)
[    1.059090][    T1] MPTCP token hash table entries: 512 (order: 1, 8192 bytes, linear)
[    1.059411][    T1] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    1.059445][    T1] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    1.060092][    T1] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    1.081415][    T1] RPC: Registered named UNIX socket transport module.
[    1.081430][    T1] RPC: Registered udp transport module.
[    1.081436][    T1] RPC: Registered tcp transport module.
[    1.081441][    T1] RPC: Registered tcp-with-tls transport module.
[    1.081446][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.081465][    T1] PCI: CLS 0 bytes, default 64
[    1.083504][   T27] Trying to unpack rootfs image as initramfs...
[    1.085044][    T1] Initialise system trusted keyrings
[    1.085195][    T1] Key type blacklist registered
[    1.085787][    T1] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[    1.085867][    T1] zbud: loaded
[    1.110129][    T1] NFS: Registering the id_resolver key type
[    1.110193][    T1] Key type id_resolver registered
[    1.110201][    T1] Key type id_legacy registered
[    1.110406][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.110427][    T1] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    1.308409][    T1] xor: measuring software checksum speed
[    1.310947][    T1]    arm4regs        :  1302 MB/sec
[    1.314472][    T1]    8regs           :   946 MB/sec
[    1.317652][    T1]    32regs          :  1039 MB/sec
[    1.317659][    T1] xor: using function: arm4regs (1302 MB/sec)
[    1.317686][    T1] async_tx: api initialized (async)
[    1.317704][    T1] Key type asymmetric registered
[    1.317713][    T1] Asymmetric key parser 'x509' registered
[    1.318327][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
[    1.318919][    T1] io scheduler bfq registered
[    1.329976][    T1] armada-375-pinctrl f1018000.pinctrl: registered pinctrl driver
[    1.332692][    T1] gpio gpiochip0: Static allocation of GPIO base is deprecated, use dynamic allocation.
[    1.335091][    T1] gpio gpiochip1: Static allocation of GPIO base is deprecated, use dynamic allocation.
[    1.337171][    T1] gpio gpiochip2: Static allocation of GPIO base is deprecated, use dynamic allocation.
[    1.340075][    T1] ledtrig-cpu: registered to indicate activity on CPUs
[    1.341037][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[    1.383804][   T27] Freeing initrd memory: 5136K
[    1.394624][    T1] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    1.399485][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.444560][    T1] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    1.636781][    T1] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.644273][    T1] printk: legacy console [ttyS0] disabled
[    1.665968][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 38, base_baud = 12500000) is a 16550A
[    1.666072][    T1] printk: legacy console [ttyS0] enabled
[    2.704626][    T1] sata_mv f10a0000.sata: slots 32 ports 2
[    2.723989][    T1] scsi host0: sata_mv
[    2.729618][    T1] scsi host1: sata_mv
[    2.734311][    T1] ata1: SATA max UDMA/133 irq 39 lpm-pol 0
[    2.740031][    T1] ata2: SATA max UDMA/133 irq 39 lpm-pol 0
[    2.750707][    T1] 1 fixed-partitions partitions found on MTD device spi0.0
[    2.757878][    T1] Creating 1 MTD partitions on "spi0.0":
[    2.763499][    T1] 0x000000000000-0x000000100000 : "u-boot"
[    2.771810][    T1] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[    2.780454][    T1] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[    2.817778][    T1] hwmon hwmon0: temp1_input not attached to any thermal zone
[    2.826987][    T1] usbcore: registered new interface driver smsc75xx
[    2.834069][    T1] orion-ehci f1054000.usb: EHCI Host Controller
[    2.840245][    T1] orion-ehci f1054000.usb: new USB bus registered, assigned bus number 1
[    2.848825][    T1] orion-ehci f1054000.usb: irq 40, io mem 0xf1054000
[    2.873023][    T1] orion-ehci f1054000.usb: USB 2.0 started, EHCI 1.00
[    2.880171][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.12
[    2.889234][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.897259][    T1] usb usb1: Product: EHCI Host Controller
[    2.902869][    T1] usb usb1: Manufacturer: Linux 6.12.6-mvebu-tld-1 ehci_hcd
[    2.910063][    T1] usb usb1: SerialNumber: f1054000.usb
[    2.916820][    T1] hub 1-0:1.0: USB hub found
[    2.921384][    T1] hub 1-0:1.0: 1 port detected
[    2.928886][    T1] xhci-hcd f1058000.usb: xHCI Host Controller
[    2.934962][    T1] xhci-hcd f1058000.usb: new USB bus registered, assigned bus number 2
[    2.943262][    T1] xhci-hcd f1058000.usb: hcc params 0x0a000990 hci version 0x100 quirks 0x0000000000000010
[    2.953760][    T1] xhci-hcd f1058000.usb: irq 41, io mem 0xf1058000
[    2.960459][    T1] xhci-hcd f1058000.usb: xHCI Host Controller
[    2.966516][    T1] xhci-hcd f1058000.usb: new USB bus registered, assigned bus number 3
[    2.974815][    T1] xhci-hcd f1058000.usb: Host supports USB 3.0 SuperSpeed
[    2.982129][    T1] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.12
[    2.991210][    T1] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.999269][    T1] usb usb2: Product: xHCI Host Controller
[    3.004926][    T1] usb usb2: Manufacturer: Linux 6.12.6-mvebu-tld-1 xhci-hcd
[    3.012130][    T1] usb usb2: SerialNumber: f1058000.usb
[    3.018831][    T1] hub 2-0:1.0: USB hub found
[    3.023458][    T1] hub 2-0:1.0: 1 port detected
[    3.029203][    T1] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    3.038339][    T1] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 6.12
[    3.047430][    T1] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.055596][    T1] usb usb3: Product: xHCI Host Controller
[    3.061211][    T1] usb usb3: Manufacturer: Linux 6.12.6-mvebu-tld-1 xhci-hcd
[    3.065681][  T684] ata1: SATA link down (SStatus 0 SControl F300)
[    3.068410][    T1] usb usb3: SerialNumber: f1058000.usb
[    3.081388][    T1] hub 3-0:1.0: USB hub found
[    3.086076][    T1] hub 3-0:1.0: 1 port detected
[    3.092725][    T1] usbcore: registered new interface driver usblp
[    3.099303][    T1] usbcore: registered new interface driver usb-storage
[    3.107238][    T1] mousedev: PS/2 mouse device common for all mice
[    3.116908][    T1] rtc-mv f1010300.rtc: registered as rtc0
[    3.122560][    T1] rtc-mv f1010300.rtc: setting system clock to 2025-02-25T10:06:15 UTC (1740477975)
[    3.133264][    T1] i2c_dev: i2c /dev entries driver
[    3.235486][    T1] orion_wdt: Initial timeout 171 sec
[    3.241983][    T1] device-mapper: uevent: version 1.0.3
[    3.248403][    T1] device-mapper: ioctl: 4.48.0-ioctl (2023-03-01) initialised: dm-devel@lists.linux.dev
[    3.258792][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[    3.266192][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[    3.273587][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[    3.281126][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[    3.289281][    T1] sdhci: Secure Digital Host Controller Interface driver
[    3.296471][    T1] sdhci: Copyright(c) Pierre Ossman
[    3.301917][    T1] sdhci-pltfm: SDHCI platform and OF driver helper
[    3.308408][    T8] usb 2-1: new high-speed USB device number 2 using xhci-hcd
[    3.316919][    T1] marvell-cesa f1090000.crypto: CESA device successfully registered
[    3.325374][    T1] hid: raw HID events driver (C) Jiri Kosina
[    3.332497][    T1] usbcore: registered new interface driver usbhid
[    3.338881][    T1] usbhid: USB HID core driver
[    3.344968][    T1] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 (8000003f) counters available
[    3.357811][    T1] NET: Registered PF_INET6 protocol family
[    3.386035][    T1] Segment Routing with IPv6
[    3.390440][    T1] RPL Segment Routing with IPv6
[    3.395316][    T1] In-situ OAM (IOAM) with IPv6
[    3.396067][  T689] ata2: SATA link down (SStatus 0 SControl F300)
[    3.400145][    T1] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    3.416272][    T1] NET: Registered PF_PACKET protocol family
[    3.432478][    T1] 8021q: 802.1Q VLAN Support v1.8
[    3.437547][    T1] Key type dns_resolver registered
[    3.442918][    T1] ThumbEE CPU extension supported.
[    3.447966][    T1] Registering SWP/SWPB emulation handler
[    3.474322][    T8] usb 2-1: New USB device found, idVendor=0951, idProduct=1625, bcdDevice= 2.00
[    3.481981][    T1] registered taskstats version 1
[    3.500180][    T1] Loading compiled-in X.509 certificates
[    3.501510][    T8] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    3.514707][    T8] usb 2-1: Product: DT 101 II
[    3.519291][    T8] usb 2-1: Manufacturer: Kingston
[    3.524305][    T8] usb 2-1: SerialNumber: <SERIAL>
[    3.534620][    T8] usb-storage 2-1:1.0: USB Mass Storage device detected
[    3.535210][    T1] Key type .fscrypt registered
[    3.546176][    T1] Key type fscrypt-provisioning registered
[    3.552036][    T1] Key type big_key registered
[    3.552728][    T8] scsi host2: usb-storage 2-1:1.0
[    3.702716][    T1] Key type encrypted registered
[    3.712642][   T28] usb_phy_generic usb3-phy: dummy supplies not allowed for exclusive requests (id=vbus)
[    3.723167][    T1] clk: Disabling unused clocks
[    3.727873][    T1] PM: genpd: Disabling unused power domains
[    3.736779][    T1] Freeing unused kernel image (initmem) memory: 1024K
[    3.744570][    T1] Checked W+X mappings: passed, no W+X pages found
[    3.751060][    T1] Run /init as init process
Loading, please wait...
Starting systemd-udevd version 252.19-1~deb12u1
[    4.564091][   T28] scsi 2:0:0:0: Direct-Access     Kingston DT 101 II        1.00 PQ: 0 ANSI: 2
[    4.580837][ T1182] sd 2:0:0:0: [sda] 7847936 512-byte logical blocks: (4.02 GB/3.74 GiB)
[    4.589537][ T1182] sd 2:0:0:0: [sda] Write Protect is off
[    4.595559][ T1182] sd 2:0:0:0: [sda] No Caching mode page found
[    4.601626][ T1182] sd 2:0:0:0: [sda] Assuming drive cache: write through
[    4.644343][ T1182]  sda: sda1
[    4.648214][ T1182] sd 2:0:0:0: [sda] Attached SCSI removable disk
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Begin: Will now check root file system ... fsck from util-linux 2.38.1
[/sbin/fsck.ext3 (1) -- /dev/sda1] fsck.ext3 -a -C0 /dev/sda1 
/dev/sda1: clean, 25915/245280 files, 255364/980736 blocks
done.
[    5.828540][ T1238] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[    5.931185][ T1238] EXT4-fs (sda1): mounted filesystem <SERIAL> r/w with ordered data mode. Quota mode: none.
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 3.06 booting
INIT: No inittab.d directory found
Using makefile-style concurrent boot in runlevel S.
Setting hostname to 'debian'...done.
findfs: unable to resolve 'LABEL=rootfs'
Starting hotplug events dispatcher: systemd-udevd.
Synthesizing the initial hotplug events (subsystems)...done.
Synthesizing the initial hotplug events (devices)...done.
Waiting for /dev to be fully populated...done.
findfs: unable to resolve 'LABEL=rootfs'
Activating swap:.
mountpoint: bad usage
Try 'mountpoint --help' for more information.
mount: /: can't find LABEL=rootfs.
findfs: unable to resolve 'LABEL=rootfs'
Will now check all file systems.
LABEL=rootfs: nonexistent device ("nofail" fstab option may be used to skip this device)
Checking all file systems.
LABEL=rootfs is not mounted
[/sbin/fsck.ext3 (1) -- /] fsck.ext3 -y -C0 LABEL=rootfs 
fsck.ext3: Unable to resolve 'LABEL=rootfs'
fsck exited with status code 8
File system check failed. 
A log is being saved in /var/log/fsck/checkfs if that location is writablGive root password for maintenance
(or press Control-D to continue): 
Cleaning up temporary files...
Cleaning /tmp...done.
 /tmp.
Will now mount local filesystems:.
Will now activate swapfile swap, if any:done.
findfs: unable to resolve 'LABEL=rootfs'
Checking minimum space in /tmp...done.
Cleaning up temporary files....
Starting Setting kernel variables: sysctl.
[   33.643001][    C0] random: crng init done
Initializing random number generator...done.
Configuring network interfaces...Cannot find device "eth0"
ifup: failed to bring up eth0
failed.
Starting RPC port mapper daemon: rpcbind.
Starting NFS common utilities: statd idmapd.
Cleaning up temporary files....
INIT: Entering runlevel: 2
Using makefile-style concurrent boot in runlevel 2.
Not starting NFS kernel daemon: no exports ...
 (warning).
Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
1989 (syslogd)
.
Starting NTP server: ntpd2025-02-25T02:06:57 ntpd[2034]: INIT: ntpd ntpsec-1.2.2: Starting
2025-02-25T02:06:57 ntpd[2034]: INIT: Command line: /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 104:109
.
Starting NTP server: ntpd2025-02-25T02:06:57 ntpd[2014]: INIT: ntpd ntpsec-1.2.2: Starting
2025-02-25T02:06:57 ntpd[2014]: INIT: Command line: /usr/sbin/ntpd -p /run/ntpd.pid -c /etc/ntpsec/ntp.conf -g -N -u ntpsec:ntpsec
.
Starting periodic command scheduler: cron.
Starting system message bus: dbus.
Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
Starting OpenBSD Secure Shell server: sshd.
Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
2035 (klogd)
.
Running local boot scripts (/etc/rc.local)
Configuration file wrong or corrupted
<13>Feb 25 02:06:59 root[2084]: Cannot read u-boot env ethaddr
.

Debian GNU/Linux 12 debian ttyS0

debian login:





I tried a few network related commands:

root@debian:~# ifconfig -a
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 12  bytes 1710 (1.6 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 12  bytes 1710 (1.6 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


root@debian:~# ethtool eth0
netlink error: no device matches name (offset 24)
netlink error: No such device
netlink error: no device matches name (offset 24)
netlink error: No such device
netlink error: no device matches name (offset 24)
netlink error: No such device
netlink error: no device matches name (offset 24)
netlink error: No such device
netlink error: no device matches name (offset 24)
netlink error: No such device
No data available
Re: Debian on Synology DS215j
February 25, 2025 11:06PM
ZooMoo,

> I've tried each DBT version, but in all three
> cases, eth0 was missing.

So my theory was incorrect. We shoul dgo back to the previous DTB, with rgmii-id. Ethernet was OK but there was no link partner.

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

Perhaps try to remove the cable and plug it back in.

> The likely error is the following in the logs:
>
>
> Configuration file wrong or corrupted
> <13>Feb 25 02:06:59 root[2084]: Cannot read u-boot
> env ethaddr
>

If you have the MAC adrdress specified in /etc/network/interfaces then ethaddr is irrelevant.

You can remove the set_persistent_mac_address execution so that you won't see this error anymore.

chmod -x /root/set_persistent_mac_address

Quote
https://forum.doozan.com/read.php?2,32146

Note 6. Persistent MAC address (Optional):

To enable the network dynamic IP to stay consistent after each reboot, and also for faster boot. In this rootfs, a script is executed during kernel booting (in /etc/rc.local), to detect if a local MAC address was assigned during boot, and then set the persistent MAC address to what is currently defined in u-boot env ethaddr.

/root/set_persistent_mac_address

To keep using the kernel generated local MAC address (if local MAC address was generated in your box) then chmod this script to non-executable.
chmod -x /root/set_persistent_mac_address

Further improvement: after releasing this rootfs, I realized I've forgot to implement an improvement for this. Please see here for more info.

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



Edited 1 time(s). Last edit at 02/25/2025 11:07PM by bodhi.
Re: Debian on Synology DS215j
February 27, 2025 06:53PM
Sorry, there was a problem between keyboard and seat. I used the wrong kernel (6.12.6) to build the image, instead of the correct kernel (6.6.2).


~# sudo su -
~# cd /media/user1/usb_stick/boot/
/media/user1/usb_stick/boot# cp -a zImage-6.6.2-mvebu-tld-1 zImage.fdt
/media/user1/usb_stick/boot# cat ./dts/armada-375-synology-ds215j_gmii/armada-375-synology-ds215j.dtb >> zImage.fdt 
/media/user1/usb_stick/boot# mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-6.6.2-mvebu-tld-1-gmii -d zImage.fdt uImage	
/media/user1/usb_stick/boot# cd && umount /media/user1/usb_stick


Below is the following results for each DTB variant (gmii, rgmii, sgmii).
The sgmii shows the most promise as it detects the ethernet connection and the correct protocol (twisted-pair).
However, ifconfig shows eth0 transmits packets, but isn't receiving any. Maybe there is something else mis-configured on my end?

1. gmii

root@debian:~# ethtool eth0
Settings for eth0:
        Supported ports: [ TP    AUI     MII     FIBRE   BNC     Backplane ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Half 1000baseT/Full
                                10000baseT/Full
                                2500baseX/Full
                                1000baseKX/Full
                                10000baseKX4/Full
                                10000baseKR/Full
                                10000baseR_FEC
                                20000baseMLD2/Full
                                20000baseKR2/Full
                                40000baseKR4/Full
                                40000baseCR4/Full
                                40000baseSR4/Full
                                40000baseLR4/Full
                                56000baseKR4/Full
                                56000baseCR4/Full
                                56000baseSR4/Full
                                56000baseLR4/Full
                                25000baseCR/Full
                                25000baseKR/Full
                                25000baseSR/Full
                                50000baseCR2/Full
                                50000baseKR2/Full
                                100000baseKR4/Full
                                100000baseSR4/Full
                                100000baseCR4/Full
                                100000baseLR4_ER4/Full
                                50000baseSR2/Full
                                1000baseX/Full
                                10000baseCR/Full
                                10000baseSR/Full
                                10000baseLR/Full
                                10000baseLRM/Full
                                10000baseER/Full
                                2500baseT/Full
                                5000baseT/Full
                                50000baseKR/Full
                                50000baseSR/Full
                                50000baseCR/Full
                                50000baseLR_ER_FR/Full
                                50000baseDR/Full
                                100000baseKR2/Full
                                100000baseSR2/Full
                                100000baseCR2/Full
                                100000baseLR2_ER2_FR2/Full
                                100000baseDR2/Full
                                200000baseKR4/Full
                                200000baseSR4/Full
                                200000baseLR4_ER4_FR4/Full
                                200000baseDR4/Full
                                200000baseCR4/Full
                                100baseT1/Full
                                1000baseT1/Full
                                400000baseKR8/Full
                                400000baseSR8/Full
                                400000baseLR8_ER8_FR8/Full
                                400000baseDR8/Full
                                400000baseCR8/Full
                                100000baseKR/Full
                                100000baseSR/Full
                                100000baseLR_ER_FR/Full
                                100000baseCR/Full
                                100000baseDR/Full
                                200000baseKR2/Full
                                200000baseSR2/Full
                                200000baseLR2_ER2_FR2/Full
                                200000baseDR2/Full
                                200000baseCR2/Full
                                400000baseKR4/Full
                                400000baseSR4/Full
                                400000baseLR4_ER4_FR4/Full
                                400000baseDR4/Full
                                400000baseCR4/Full
                                100baseFX/Half 100baseFX/Full
                                10baseT1L/Full
                                800000baseCR8/Full
                                800000baseKR8/Full
                                800000baseDR8/Full
                                800000baseDR8_2/Full
                                800000baseSR8/Full
                                800000baseVR8/Full
                                10baseT1S/Full
                                10baseT1S/Half
                                10baseT1S_P2MP/Half
        Supported pause frame use: Symmetric Receive-only
        Supports auto-negotiation: Yes
        Supported FEC modes: None        RS      BASER   LLRS
        Advertised link modes:  Not reported
        Advertised pause frame use: No
        Advertised auto-negotiation: No
        Advertised FEC modes: Not reported
        Speed: Unknown!
        Duplex: Half
        Auto-negotiation: off
        Port: MII
        PHYAD: 0
        Transceiver: internal
        Link detected: no



ifconfig -a

eth0: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        inet 192.168.1.201  netmask 255.255.255.0  broadcast 192.168.1.255
        ether 00:11:22:33:44:55  txqueuelen 2048  (Ethernet)
        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

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 12  bytes 1710 (1.6 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 12  bytes 1710 (1.6 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


2. rgmii


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:~# 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
        inet6 <IP6>  prefixlen 64  scopeid 0x20<link>
        ether <MAC ADDRESS>  txqueuelen 2048  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 37  bytes 4410 (4.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 18  bytes 2286 (2.2 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 18  bytes 2286 (2.2 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


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


Log messages when disconnecting and reconnecting ethernet cable.

[  125.527654][  T785] mvpp2 f10f0000.ethernet eth0: Link is Down
[  128.646846][  T785] mvpp2 f10f0000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off


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
        inet6 <IP6>  prefixlen 64  scopeid 0x20<link>
        ether <MAC ADDRESS>  txqueuelen 2048  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 45  bytes 4802 (4.6 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 22  bytes 2702 (2.6 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 22  bytes 2702 (2.6 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



It can transmit packets, but not receive them after trying the ping command.

# 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
        inet6 <IP6>  prefixlen 64  scopeid 0x20<link>
        ether <MAC ADDRESS>  txqueuelen 2048  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 72  bytes 6100 (5.9 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


I can post the kernel logs if you need.
Re: Debian on Synology DS215j
February 27, 2025 11:52PM
ZooMoo,

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

Indeed it looks promising. But I looked back to your stock bootlog:

Quote
U-Boot 2013.01-g5d1ab78 (Oct 27 2015 - 11:38:34) Marvell version: 2014_T2.0p3

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

<snip>
Net: egiga0, egiga1 [PRIME]
syno: network status self-checking
Using egiga1 device

eth1addr=00:50:43:00:02:02
eth1mtu=1500
eth2addr=00:50:43:00:00:02
eth2mtu=1500
eth3addr=00:50:43:02:00:00
eth3mtu=1500
ethact=egiga1
ethaddr=00:50:43:00:02:02
ethmtu=1500
ethprime=egiga1

So stock u-boot activates egiga1.

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



Edited 1 time(s). Last edit at 02/27/2025 11:58PM by bodhi.
Re: Debian on Synology DS215j
March 03, 2025 04:12AM
What do you suggest I try next?
Re: Debian on Synology DS215j
March 03, 2025 09:25AM
ZooMoo,

> What do you suggest I try next?

It's either your network issue, or something we still don't know about this box. I'm out of idea other than keep digging for clues in the GPL source.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Synology DS215j
March 06, 2025 05:25AM
I've compared the output of ifconfig, ethtool, etc between the stock DSM OS and debian.

Booting the stock DSM OS I can connect to the network so it's not a network issue.

DSM


$ sudo ifconfig -a
eth0      Link encap:Ethernet  HWaddr <MACADDRESS>  
          inet addr:192.168.1.238  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: <IP6 ADDRESSS>/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:98 errors:0 dropped:0 overruns:0 frame:0
          TX packets:652 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1024 
          RX bytes:12799 (12.4 KiB)  TX bytes:108999 (106.4 KiB)
          Interrupt:73 

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:176 errors:0 dropped:0 overruns:0 frame:0
          TX packets:176 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:16385 (16.0 KiB)  TX bytes:16385 (16.0 KiB)

sit0      Link encap:IPv6-in-IPv4
          NOARP  MTU:1480  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)


$ sudo cat /proc/interrupts 
            CPU0       CPU1       
 29:      54757      54840       GIC  twd
 34:          0          0       GIC  mv64xxx_i2c
 35:          0          0       GIC  mv64xxx_i2c
 41:         15          0       GIC  a375_clk_evt
 44:       1477          0       GIC  serial
 45:          9          0       GIC  serial
 48:          0          0       GIC  xhci-hcd:usb3
 49:          0          0       GIC  ehci_hcd:usb2
 50:          0          0       GIC  ehci_hcd:usb1
 51:          0          0       GIC  cesa0
 52:          0          0       GIC  cesa1
 54:          2          0       GIC  mv_xor.0
 55:          2          0       GIC  mv_xor.1
 58:      10352          0       GIC  sata_mv
 73:         92          0       GIC  eth0
 82:          3          0       GIC  mv_pp2_link
 97:          1          0       GIC  mv_xor.2
 98:          1          0       GIC  mv_xor.3
112:          0          0       GIC  wol
IPI0:          0          0  Timer broadcast interrupts
IPI1:      12456      11058  Rescheduling interrupts
IPI2:          0          0  Function call interrupts
IPI3:        105       3606  Single function call interrupts
IPI4:          0          0  CPU stop interrupts
Err:          0


$ sudo ethtool eth0
Settings for eth0:
	Supported ports: [ TP MII ]
	Supported link modes:   10baseT/Half 10baseT/Full 
	                        100baseT/Half 100baseT/Full 
	                        1000baseT/Full 
	Supported pause frame use: No
	Supports auto-negotiation: Yes
	Advertised link modes:  10baseT/Half 10baseT/Full 
	                        100baseT/Half 100baseT/Full 
	                        1000baseT/Half 1000baseT/Full 
	Advertised pause frame use: No
	Advertised auto-negotiation: No
	Link partner advertised link modes:  10baseT/Half 10baseT/Full 
	                                     100baseT/Half 100baseT/Full 
	                                     1000baseT/Half 1000baseT/Full 
	Link partner advertised pause frame use: No
	Link partner advertised auto-negotiation: Yes
	Speed: 1000Mb/s
	Duplex: Full
	Port: MII
	PHYAD: 1
	Transceiver: internal
	Auto-negotiation: on
	Supports Wake-on: g
	Wake-on: d
	Link detected: yes

SGMII

root@debian:~# cat /etc/network/interfaces

auto lo eth0
allow-hotplug 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 <MACADDRESS>


ifconfig is missing the "interrupt" information compared to DSM.

root@debian:~# ifconfig eth0                                                                                                                  
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 <ip6 address>  prefixlen 64  scopeid 0x20<link>                                                                           
        ether <MACADDRESS>  txqueuelen 2048  (Ethernet)                                                                                      
        RX packets 0  bytes 0 (0.0 B)                                                                                                             
        RX errors 0  dropped 0  overruns 0  frame 0                                                                                               
        TX packets 113  bytes 9782 (9.5 KiB)                                                                                                      
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0



Ethtool shows eth0 is using Twisted Pair vs MII for DSM and MDI-X is unknown.

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


Interrupts look rather different.

# cat /proc/interrupts                                                                                                                                           
           CPU0       CPU1                                                                                                                                                    
 25:    1597011      45290 GIC-0  29 Edge      twd                                                                                                                            
 26:          0          0      MPIC   5 Level     armada_370_xp_per_cpu_tick                                                                                                 
 27:          0          0      MPIC   3 Level     arm-pmu                                                                                                                    
 37:          2          0 GIC-0  54 Level     f1060800.xor                                                                                                                   
 38:          2          0 GIC-0  97 Level     f1060900.xor                                                                                                                   
 39:       2879          0 GIC-0  44 Level     ttyS0                                                                                                                          
 40:          0          0 GIC-0  58 Level     sata_mv[f10a0000.sata]                                                                                                         
 41:          0          0 GIC-0  69 Level     eth0                                                                                                                           
 42:          0          0 GIC-0  50 Level     ehci_hcd:usb1                                                                                                                  
 43:      88961          0 GIC-0  48 Level     xhci-hcd:usb2                                                                                                                  
 44:          1          0 GIC-0  53 Level     f1010300.rtc                                                                                                                   
 45:          0          0 GIC-0  51 Level     f1090000.crypto                                                                                                                
 46:          0          0 GIC-0  52 Level     f1090000.crypto                                                                                                                
IPI0:          0          1  CPU wakeup interrupts                                                                                                                            
IPI1:          0          0  Timer broadcast interrupts                                                                                                                       
IPI2:        965        901  Rescheduling interrupts                                                                                                                          
IPI3:      11989      34262  Function call interrupts                                                                                                                         
IPI4:          0          0  CPU stop interrupts                                                                                                                              
IPI5:          0          0  IRQ work interrupts                                                                                                                              
IPI6:          0          0  completion interrupts                                                                                                                            
Err:          0
Re: Debian on Synology DS215j
March 06, 2025 11:47PM
ZooMoo,

It does look like SGMII is incorrect. We shoul dgo back to the previous DTB, with RGMII-ID.

And reread this thread:

WD MyCloud Gen2 (Glacier, Armada 375)
https://forum.doozan.com/read.php?2,94839

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



Edited 1 time(s). Last edit at 03/06/2025 11:49PM by bodhi.
Re: Debian on Synology DS215j
March 08, 2025 04:53AM
> It does look like SGMII is incorrect. We shoul dgo back to the previous DTB, with RGMII-ID.

I've used the following dtb file from your download:

armada-375-synology-ds215j_rgmii.tar (20 KB)

This is the correct one?

Once booted, I get the following output from ifconf and ethtool.


The following message appears when disconnected the ethernet cable:

mvpp2 f10f0000.ethernet eth0: Link is Down


Then running the command:

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


Reconnecting the cable the following message appears:

mvpp2 f10f0000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off


Then running the command:

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

Running ping:

root@debian:~# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
From 192.168.1.201 icmp_seq=1 Destination Host Unreachabl
...

Packets are being "sent" according to ifconfig. However, using Wireshark an other machine attached to the same network doesn't show up any traffic being sent for arp from 192.168.1.210.

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
        inet6 <IP6 ADDRESS>  prefixlen 64  scopeid 0x20<link>
        ether <MACADDRESS>  txqueuelen 2048  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 469  bytes 25523 (24.9 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 134  bytes 14414 (14.0 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 134  bytes 14414 (14.0 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


> And reread this thread:
> WD MyCloud Gen2 (Glacier, Armada 375)
> https://forum.doozan.com/read.php?2,94839

I've read the thread, but I'm not sure what part you were referring to.
What is the relevant section of the thread?
Re: Debian on Synology DS215j
March 08, 2025 06:23AM
> armada-375-synology-ds215j_rgmii.tar (20 KB)
>
> This is the correct one?

The original one on Jan 20.

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

> > And reread this thread:
> > WD MyCloud Gen2 (Glacier, Armada 375)
> > https://forum.doozan.com/read.php?2,94839
>
> I've read the thread, but I'm not sure what part
> you were referring to.
> What is the relevant section of the thread?

Since the WD MyCloud Gen2 has the same SoC and Ethernet as this DS215j, the same driver is running, and I used the same defiition in the DTS. I'm wondering why did it work for that box, but not this box? Perhaps there was some network related info in that thread.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Synology DS215j
March 09, 2025 10:23PM
Here are the results for using the DTS from https://forum.doozan.com/read.php?2,138851,138913#msg-138913.

According to ethtool the ports show three options, TP, MII and Fibre whilst the Synology DSM OS only has TP/MII. Eth0 then wrongly sets the port to Fibre when an ethernet cable is plugged in.

In the WD MyCloud Gen2 (Glacier, Armada 375) thread (https://forum.doozan.com/read.php?2,94839) I cannot find any results from ethtool, so cannot compare.

I'll ask for ethtool output on the MyCloud thread if you think it will help.


Disconnecting ethernet:

mvpp2 f10f0000.ethernet eth0: Link is Down

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

Reconnecting ethernet:

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: 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:~# 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
inet6 <IP6 ADDRESS> prefixlen 64 scopeid 0x20<link>
ether <MACADDRESS> txqueuelen 2048 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 707 bytes 33410 (32.6 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 266 bytes 28078 (27.4 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 266 bytes 28078 (27.4 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
Re: Debian on Synology DS215j
March 10, 2025 12:49AM
ZooMoo,

In the WD MyCloud Gen2 (Glacier, Armada 375) thread
https://forum.doozan.com/read.php?2,94839,95004#msg-95004

Quote

Edit: Ha! 5.5.0-rc works now!
DTS from fox-exe has phy-mode set to "mii", but kernel default DTS for 375 has "rgmii-id"
Also i think in fox-exe files are at least 2 different version of the same filev

Attached is the updated DTB with phy-mode=mii. I don't have high hope (stock GPL said rgmii), but it's worth a try.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Attachments:
open | download - armada-375-synology-ds215j_mii.tar (20 KB)
Re: Debian on Synology DS215j
March 10, 2025 01:20AM
Hi Bodhi,

I just compared this latest DTS (armada-375-synology-ds215j_mii.tar (20 KB)) with the version from 20th Jan, and they are the same.

They both contain
 phy-mode = "rgmii-id"; 
. Should it be phy-mode = "mii"?
Re: Debian on Synology DS215j
March 10, 2025 08:02AM
ZooMoo,

> They both contain
 phy-mode = "rgmii-id";
> 
. Should it be phy-mode = "mii"?

Probably operator error. Here it is again.

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



Edited 1 time(s). Last edit at 03/10/2025 08:20AM by bodhi.
Attachments:
open | download - armada-375-synology-ds215j_mii.tar (20 KB)
Re: Debian on Synology DS215j
March 11, 2025 04:53AM
I've tried the latest version, but you were correct, it didn't fix this problem:

root@debian:~# dmesg | grep eth
mvpp2 f10f0000.ethernet: using 3 shared buffers
mvpp2 f10f0000.ethernet eth0: Using hardware mac address 00:00:00:00:00:04
mvpp2 f10f0000.ethernet eth0: validation of mii with support 00,00000000,00000000,000066ff and advertisement 00,00000000,00000000,000066ff failed: -EINVAL
mvpp2 f10f0000.ethernet eth0: could not attach PHY (-22)
A link change request failed with some changes committed already. Interface eth0 may have been left with an inconsistent configuration, please check.


Last message is when unplugging and plugging in the ethernet cable.


root@debian:~# ethtool eth0
Settings for eth0:
        Supported ports: [ TP    AUI     MII     FIBRE   BNC     Backplane ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Half 1000baseT/Full
                                10000baseT/Full
                                2500baseX/Full
                                1000baseKX/Full
                                10000baseKX4/Full
                                10000baseKR/Full
                                10000baseR_FEC
                                20000baseMLD2/Full
                                20000baseKR2/Full
                                40000baseKR4/Full
                                40000baseCR4/Full
                                40000baseSR4/Full
                                40000baseLR4/Full
                                56000baseKR4/Full
                                56000baseCR4/Full
                                56000baseSR4/Full
                                56000baseLR4/Full
                                25000baseCR/Full
                                25000baseKR/Full
                                25000baseSR/Full
                                50000baseCR2/Full
                                50000baseKR2/Full
                                100000baseKR4/Full
                                100000baseSR4/Full
                                100000baseCR4/Full
                                100000baseLR4_ER4/Full
                                50000baseSR2/Full
                                1000baseX/Full
                                10000baseCR/Full
                                10000baseSR/Full
                                10000baseLR/Full
                                10000baseLRM/Full
                                10000baseER/Full
                                2500baseT/Full
                                5000baseT/Full
                                50000baseKR/Full
                                50000baseSR/Full
                                50000baseCR/Full
                                50000baseLR_ER_FR/Full
                                50000baseDR/Full
                                100000baseKR2/Full
                                100000baseSR2/Full
                                100000baseCR2/Full
                                100000baseLR2_ER2_FR2/Full
                                100000baseDR2/Full
                                200000baseKR4/Full
                                200000baseSR4/Full
                                200000baseLR4_ER4_FR4/Full
                                200000baseDR4/Full
                                200000baseCR4/Full
                                100baseT1/Full
                                1000baseT1/Full
                                400000baseKR8/Full
                                400000baseSR8/Full
                                400000baseLR8_ER8_FR8/Full
                                400000baseDR8/Full
                                400000baseCR8/Full
                                100000baseKR/Full
                                100000baseSR/Full
                                100000baseLR_ER_FR/Full
                                100000baseCR/Full
                                100000baseDR/Full
                                200000baseKR2/Full
                                200000baseSR2/Full
                                200000baseLR2_ER2_FR2/Full
                                200000baseDR2/Full
                                200000baseCR2/Full
                                400000baseKR4/Full
                                400000baseSR4/Full
                                400000baseLR4_ER4_FR4/Full
                                400000baseDR4/Full
                                400000baseCR4/Full
                                100baseFX/Half 100baseFX/Full
                                10baseT1L/Full
                                800000baseCR8/Full
                                800000baseKR8/Full
                                800000baseDR8/Full
                                800000baseDR8_2/Full
                                800000baseSR8/Full
                                800000baseVR8/Full
                                10baseT1S/Full
                                10baseT1S/Half
                                10baseT1S_P2MP/Half
        Supported pause frame use: Symmetric Receive-only
        Supports auto-negotiation: Yes
        Supported FEC modes: None        RS      BASER   LLRS
        Advertised link modes:  Not reported
        Advertised pause frame use: No
        Advertised auto-negotiation: No
        Advertised FEC modes: Not reported
        Speed: Unknown!
        Duplex: Half
        Auto-negotiation: off
        Port: MII
        PHYAD: 0
        Transceiver: internal
        Link detected: no
Re: Debian on Synology DS215j
March 12, 2025 04:14AM
ZooMoo,

We'll try another test. I'll post an updated DTB soon.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Synology DS215j
March 12, 2025 06:59AM
ZooMoo,

Here is the updated DTB. See if eth1 is correct.

Quote

U-Boot 2013.01-g5d1ab78 (Oct 27 2015 - 11:38:34) Marvell version: 2014_T2.0p3

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

<snip>

Net: egiga0, egiga1 [PRIME]
syno: network status self-checking
Using egiga1 device
<snip>
ethact=egiga1
ethprime=egiga1

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



Edited 1 time(s). Last edit at 03/12/2025 07:07AM by bodhi.
Attachments:
open | download - armada-375-synology-ds215j_eth1.tar (20 KB)
Re: Debian on Synology DS215j
March 13, 2025 05:49AM
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 [SFP]
SERDES configuration:
	Lane #0: PCIe0
	Lane #1: SATA1
	Lane #2: SATA0
	Lane #3: USB3
Net:   egiga0, egiga1 [PRIME]
syno: network status self-checking
Using egiga1 device
syno: network status : ok



Still no luck with ethernet working, usual log messages.

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:~# 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
        inet6 <IP6 ADDRESS>  prefixlen 64  scopeid 0x20<link>
        ether <MACADDRESS>  txqueuelen 2048  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 75  bytes 6090 (5.9 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 38  bytes 4384 (4.2 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 38  bytes 4384 (4.2 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
Re: Debian on Synology DS215j
March 16, 2025 01:48AM
Is there additional debugging / flags I can turn on to show where the problem could be?
Re: Debian on Synology DS215j
March 16, 2025 04:35AM
ZooMoo,

> Is there additional debugging / flags I can turn
> on to show where the problem could be?

Unfortunately, this network driver has no debug print that we can turn on. And there is no specific device with this SoC supported in mainline Linux (other than the Reference Board). We've added support for the WD MyCloud Gen2 here, and that's the only Armada 375 SoC device running mainline Linux that I know of.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Synology DS215j
March 16, 2025 06:55AM
Do you think the problem lies in the DTS (missing some parameter setting or adjustment) or it's a problem with the kernel/driver?
Re: Debian on Synology DS215j
March 16, 2025 11:19AM
ZooMoo,

> Do you think the problem lies in the DTS (missing
> some parameter setting or adjustment) or it's a
> problem with the kernel/driver?

I don't think it is the kernel driver. This could either be hardware issue, or something specific to this box that we don't know about (which needed to be specified in the DTS).

I guess we should start with comparing the u-boot bootlog from the WD MyCloud Gen2 and this Synology DS215j. And then after that, comparing the stock kernel boot logs.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Synology DS215j
March 17, 2025 05:54AM
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 Sequence - Run with PBS.
DDR3 Training Sequence - Ended Successfully 
BootROM: Image checksum verification PASSED

 __   __                      _ _
|  \/  | __ _ _ ____   _____| | |
| |\/| |/ _` | '__\ \ / / _ \ | |
| |  | | (_| | |   \ V /  __/ | |
|_|  |_|\__,_|_|    \_/ \___|_|_|
         _   _     ____              _
        | | | |   | __ )  ___   ___ | |_ 
        | | | |___|  _ \ / _ \ / _ \| __| 
        | |_| |___| |_) | (_) | (_) | |_ 
         \___/    |____/ \___/ \___/ \__| 
 ** LOADER **


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

Synology Model: DS215j
Fan Status: Good

Net:   egiga0, egiga1 [PRIME]
syno: network status self-checking
Using egiga1 device
## Warning: gatewayip needed but not set
## Warning: gatewayip needed but not set
ping failed; host 192.168.27.90 is not alive
syno: network status : ok
Press Ctrl+C to abort autoboot in 3 second


Comparing to the u-boot log for the WD Gen2 (https://forum.doozan.com/read.php?2,94839,126094#msg-126094) there are a few minor differences relevant to networking.

WD Gen2
Board configuration detected:
	GE-PHY-0 on MAC0

Net:   egiga0 [PRIME]


DS215j
Board configuration detected:
	RGMII0 Module on MAC0
	PON ETH SERDES on MAC1 [SFP]

Net:   egiga0, egiga1 [PRIME]


Here is the stock Synology DSM kernel bootlog:

Starting kernel ...

Booting Linux on physical CPU 0
Linux version 3.2.40 (root@build4) (gcc version 4.9.3 20150311 (prerelease) (crosstool-NG 1.20.0) ) #25556 SMP Tue May 2 17:17:01 CST 2023
CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c53c7d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine: Marvell Armada-375 Board
Using UBoot passing parameters structure
Memory policy: ECC disabled, Data cache writealloc
PERCPU: Embedded 7 pages/cpu @80a34000 s5440 r8192 d15040 u32768
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 130048
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
Synology Hardware Version: DS215jv10-j
Internal HD num: 2
Internal netif num: 1
PID hash table entries: 2048 (order: 1, 8192 bytes)
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 512MB = 512MB total
Memory: 509904k/509904k available, 14384k reserved, 0K highmem
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
vmalloc : 0xa0800000 - 0xf4000000 (1336 MB)
lowmem : 0x80000000 - 0xa0000000 ( 512 MB)
modules : 0x7f000000 - 0x80000000 ( 16 MB)
.text : 0x80008000 - 0x80555000 (5428 kB)
.init : 0x80555000 - 0x80586540 ( 198 kB)
.data : 0x80588000 - 0x805c1540 ( 230 kB)
.bss : 0x805c1564 - 0x8062f60c ( 441 kB)
Hierarchical RCU implementation.
NR_IRQS:528
Initializing Armada-375 SoC Timers
sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 171798ms
Calibrating delay loop... 1594.16 BogoMIPS (lpj=7970816)
pid_max: default: 32768 minimum: 301
Security Framework initialized
AppArmor: AppArmor initialized
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
Calibrating local timer... 399.92MHz.
CPU1: Booted secondary processor
CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
Brought up 2 CPUs
SMP: Total of 2 processors activated (3188.32 BogoMIPS).
devtmpfs: initialized
xor: measuring software checksum speed
arm4regs : 1422.800 MB/sec
8regs : 999.200 MB/sec
32regs : 940.800 MB/sec
xor: using function: arm4regs (1422.800 MB/sec)
NET: Registered protocol family 16
mvBoardTwsiGet: Twsi Read fail
mvBoardIoExpValSet: Error: Read from IO Expander failed
L310 cache controller enabled
l2x0: 8 ways, CACHE_ID 0x410054c9, AUX_CTRL 0x02440000, Cache size: 262144 B

CPU Interface
-------------
SDRAM_CS0 ....base 000000000, size 512MB
SDRAM_CS1 ....disable
SDRAM_CS2 ....disable
SDRAM_CS3 ....disable
DEVICE_CS0 ....base 0f4000000, size 1MB
DEVICE_CS1 ....no such
DEVICE_CS2 ....no such
DEVICE_CS3 ....no such
PEX0_MEM ....base 0e0000000, size 16MB
PEX0_IO ....base 0f1100000, size 1MB
PEX1_MEM ....base 0e2000000, size 16MB
PEX1_IO ....base 0f1200000, size 1MB
INTER_REGS ....base 0f1000000, size 1MB
DMA_UART ....no such
SPI_CS0 ....base 0f0000000, size 16MB
SPI_CS1 ....no such
SPI_CS2 ....no such
SPI_CS3 ....no such
SPI_CS4 ....no such
SPI_CS5 ....no such
SPI_CS6 ....no such
SPI_CS7 ....no such
BOOT_ROM_CS ....no such
DEV_BOOTCS ....base 0f2000000, size 32MB
USB3 ....no such
CRYPT0_ENG ....base 0f4400000, size 64KB
CRYPT1_ENG ....base 0f4480000, size 64KB
PP2 - CPU 0 ....no such
PP2 - CPU 1 ....no such

Marvell Armada-375
SYNO-DS215j Board -
Soc: MV88F6720 Rev A0
LE
LSP version: linux-3.2.58-2014_T2.0p2
IOCC: Support IO coherency.
-> Sync Barrier WA enabled

USB3 XHCI Device registered successfully
Initialising USB2-1 HAL
Registered Marvell USB2 EHCI host controller 1
Initialising USB2-0 HAL
Registered Marvell USB2 EHCI host controller 0
-----> 0x18400 = 0x1040
Synology Armada375 2-bay GPIO Init
bio: create slab <bio-0> at 0
raid6: int32x1 114 MB/s
raid6: int32x2 153 MB/s
raid6: int32x4 164 MB/s
raid6: int32x8 182 MB/s
raid6: using algorithm int32x8 (182 MB/s)
SCSI subsystem initialized
Switching to clocksource a375_clocksource
AppArmor: AppArmor Filesystem Enabled
NET: Registered protocol family 2
IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
TCP established hash table entries: 16384 (order: 5, 131072 bytes)
TCP bind hash table entries: 16384 (order: 5, 131072 bytes)
TCP: Hash tables configured (established 16384 bind 16384)
TCP reno registered
UDP hash table entries: 256 (order: 1, 8192 bytes)
UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
Trying to unpack rootfs image as initramfs...
rootfs image is not initramfs (no cpio magic); looks like an initrd
Freeing initrd memory: 3472K
PCIe: Checking physical bus #0:
no link, disabled
PCIe: Checking physical bus #1:
no link, disabled
Armada 375 hwmon thermal sensor initialized.
o PPv2.1 Giga driver
o 4 Giga ports supported
o SKB recycle supported (Enabled)
o BM supported for CPU: 8 BM pools
o HWF supported
o RX Queue support: 8 Queues * 512 Descriptors
o TX Queue support: 8 Queues * 1024 Descriptors
o Driver debug messages enabled

o Loading network interface(s) for port #1: cpu_mask=0x3, mtu=1500
o Port 1 is connected to Linux netdevice
o giga p=1: phy=1, mtu=1500, mac=<MACADDRESS>, speed=AutoNeg (platform)
o eth0, ifindex = 2, GbE port = 1

o eth0, phy chipid = 1410dd0, Support WOL = 32

cesadev_init(8055df64)
audit: initializing netlink socket (disabled)
type=2000 audit(3.430:1): initialized
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
msgmni has been set to 1002
async_tx: api initialized (async)
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
io scheduler noop registered
io scheduler cfq registered (default)
mv_xor_shared mv_xor_shared.0: Marvell shared XOR driver
mv_xor_shared mv_xor_shared.1: Marvell shared XOR driver
mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
mv_xor mv_xor.1: Marvell XOR: ( xor fill cpy )
mv_xor mv_xor.2: Marvell XOR: ( xor )
mv_xor mv_xor.3: Marvell XOR: ( fill cpy )
Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 44) is a 16550A
console [ttyS0] enabled
serial8250.1: ttyS1 at MMIO 0xf1012100 (irq = 45) is a 16550A
brd: module loaded
Loading iSCSI transport class v2.0-870.
sata_mv sata_mv.0: slots 32 ports 2
scsi0 : sata_mv
scsi1 : sata_mv
ata1: SATA max UDMA/133 irq 58
ata2: SATA max UDMA/133 irq 58
ata1: link is slow to respond, please be patient (ready=0)
ata1: SRST failed (errno=-16)
ata1: SRST fail, set srst fail flag
ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
ata1: link reset sucessfully clear error flags
ata1.00: ATA-9: WDC WD40PURX-64GVNY0, 80.00A80, max UDMA/133
ata1.00: 7814037168 sectors, multi 0: LBA48 NCQ (depth 31/32)
ata1.00: configured for UDMA/133
scsi 0:0:0:0: Direct-Access WDC WD40PURX-64GVNY0 80.0 PQ: 0 ANSI: 5
sd 0:0:0:0: [sda] 7814037168 512-byte logical blocks: (4.00 TB/3.63 TiB)
sd 0:0:0:0: [sda] 4096-byte physical blocks
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sda: sda1 sda2
sd 0:0:0:0: [sda] Attached SCSI disk
Delay 5 seconds to wait for disk 2 ready.
ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
ata2.00: ATA-10: WDC WD43PURZ-74BWPY0, 80.00A80, max UDMA/133
ata2.00: 7814037168 sectors, multi 16: LBA48 NCQ (depth 31/32)
ata2.00: configured for UDMA/133
scsi 1:0:0:0: Direct-Access WDC WD43PURZ-74BWPY0 80.0 PQ: 0 ANSI: 5
sd 1:0:0:0: [sdb] 7814037168 512-byte logical blocks: (4.00 TB/3.63 TiB)
sd 1:0:0:0: [sdb] 4096-byte physical blocks
physmap platform flash device: 00800000 at f0000000
SPI Serial flash detected @ 0xf0000000, 8192KB (128sec x 64KB)
Searching for RedBoot partition table in SYNOMTD-0 at offset 0x7f0000
sd 1:0:0:0: [sdb] Write Protect is off
sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
6 RedBoot partitions found on MTD device SYNOMTD-0
SYNOMTD flash bank 0: Using RedBoot partition definition
Creating 6 MTD partitions on "SYNOMTD-0":
0x000000000000-0x0000000f0000 : "RedBoot"
0x0000000f0000-0x0000003c0000 : "zImage"
0x0000003c0000-0x0000007d0000 : "rd.gz"
sdb: unknown partition table
0x0000007d0000-0x0000007e0000 : "vendor"
vender Mac0 address : <MACADDRESS>
vender Mac1 doesn't set ucSum:0x00 Buf:0x00 Sum:0.
vender Mac2 doesn't set ucSum:0x00 Buf:0x00 Sum:0.
vender Mac3 doesn't set ucSum:0x00 Buf:0x00 Sum:0.
serial number='<SERIAL_NUMBER>'
0x0000007e0000-0x0000007f0000 : "RedBoot Config"
0x0000007f0000-0x000000800000 : "FIS directory"
i2c /dev entries driver
md: linear personality registered for level -1
md: raid0 personality registered for level 0
md: raid1 personality registered for level 1
md: raid10 personality registered for level 10
md: raid6 personality registered for level 6
md: raid5 personality registered for level 5
md: raid4 personality registered for level 4
device-mapper: ioctl: 4.22.0-ioctl (2011-10-19) initialised: dm-devel@redhat.com
sd 1:0:0:0: [sdb] Attached SCSI disk
cpuidle: using governor ladder
TCP cubic registered
NET: Registered protocol family 17
Registering the dns_resolver key type
VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
registered taskstats version 1
md: Waiting for all devices to be available before autodetect
md: If you don't use raid, use raid=noautodetect
md: Autodetecting RAID arrays.
md: Scanned 2 and added 2 devices.
md: autorun ...
md: considering sda1 ...
md: adding sda1 ...
md: sda2 has different UUID to sda1
md: created md0
md: bind<sda1>
md: running: <sda1>
bio: create slab <bio-1> at 1
md/raid1:md0: active with 1 out of 2 mirrors
md0: detected capacity change from 0 to 2549940224
md: considering sda2 ...
md: adding sda2 ...
md: created md1
md: bind<sda2>
md: running: <sda2>
md/raid1:md1: active with 1 out of 2 mirrors
md1: detected capacity change from 0 to 2147418112
md: ... autorun DONE.
RAMDISK: lzma image found at block 0
VFS: Mounted root (ext2 filesystem) on device 1:0.
START /linuxrc.syno
Insert basic USB modules...
:: Loading module usb-common ... [ OK ]
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new interface driver ethub
usbcore: registered new device driver usb
... [ OK ]
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci_marvell ehci_marvell.0: Marvell Orion EHCI
ehci_marvell ehci_marvell.0: new USB bus registered, assigned bus number 1
ehci_marvell ehci_marvell.0: irq 50, io base 0xfbb54100
ehci_marvell ehci_marvell.0: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
ehci_marvell ehci_marvell.1: Marvell Orion EHCI
ehci_marvell ehci_marvell.1: new USB bus registered, assigned bus number 2
ehci_marvell ehci_marvell.1: irq 49, io base 0xfbb50100
ehci_marvell ehci_marvell.1: USB 2.0 started, EHCI 1.00
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
... [ OK ]
## xhci_plat_probe
xhci-hcd xhci-hcd: xHCI Host Controller
xhci-hcd xhci-hcd: new USB bus registered, assigned bus number 3
xhci-hcd xhci-hcd: irq 48, io mem 0xf1058000
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 1 port detected
xhci-hcd xhci-hcd: xHCI Host Controller
xhci-hcd xhci-hcd: new USB bus registered, assigned bus number 4
hub 4-0:1.0: USB hub found
hub 4-0:1.0: 1 port detected
... [ OK ]
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
/sbin/e2fsck exists, checking /dev/md0...
md0: unknown partition table
/sbin/e2fsck -pvf returns 1
Mounting /dev/md0 /tmpRoot
EXT4-fs (md0): barriers disabled
EXT4-fs (md0): mounted filesystem with ordered data mode. Opts:
------------upgrade
Begin upgrade procedure
No upgrade file exists
End upgrade procedure
============upgrade
ls: /tmpRoot/usr/share/init/root-file-system.override: No such file or directory
ls: /tmpRoot/usr/share/init/hostname.override: No such file or directory
ls: /tmpRoot/usr/share/init/syslog-ng.override: No such file or directory
ls: /tmpRoot/usr/share/init/dsmupdate.override: No such file or directory
ls: /tmpRoot/usr/share/init/smallupdate.override: No such file or directory
ls: /tmpRoot/usr/share/init/rc.override: No such file or directory
Wait 2 seconds for synology manufactory device
Wed Mar 5 11:27:29 UTC 2025
/dev/md0 /tmpRoot ext4 rw,relatime,user_xattr,barrier=0,journal_checksum,data=ordered 0 0
sys /sys sysfs rw,relatime 0 0
/dev/root.old / ext2 rw,relatime,errors=continue,user_xattr 0 0
none /dev devtmpfs rw,relatime,size=254952k,nr_inodes=63738,mode=755 0 0
EXT3-fs (md0): error: couldn't mount because of unsupported optional features (240)
latime 0 0
linuxrc.syno executed successfully.
EXT4-fs (md0): mounted filesystem with ordered data mode. Opts: barrier=1
VFS: Mounted root (ext4 filesystem) on device 9:0.
Trying to move old root to /initrd ... okay
Freeing init memory: 196K
EXT4-fs (md0): re-mounted. Opts: (null)
sd 0:0:0:0: Attached scsi generic sg0 type 0
sd 1:0:0:0: Attached scsi generic sg1 type 0
==================== start udevd ====================
md1: unknown partition table
Adding 2097084k swap on /dev/md1. Priority:-1 extents:1 across:2097084k
systemd-udevd[1795]: starting version 204
===== trigger device plug event =====
NET: Registered protocol family 10
IPv6 over IPv4 tunneling driver
init: syno-auth-check main process (2763) killed by TERM signal
mvCesaInit: channels=2, session=640, queue=256
encryptfs using the OCF package.
fuse init (API version 7.22)
Loading modules backported from Linux version v3.12-0-g5e01dc7
Backport generated by backports.git v3.12-1-0-g9ae6b6c
exFAT: Version 1.2.9
2025-3-5 11:27:53 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 SW init...
synobios: unload
2025-3-5 11:27:53 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
eth0: mac address changed
SWF long pool #1: pkt_size=1536, buf_size=1600, total_size=1792 - 1024 of 1024 buffers added
SWF short pool #3: pkt_size= 256, buf_size= 320, total_size= 512 - 2048 of 2048 buffers added
HWF long pool #5: pkt_size=1536, buf_size=1568, total_size=1568 - 1024 of 1024 buffers added
HWF short pool #7: pkt_size= 480, buf_size= 512, total_size= 512 - 2048 of 2048 buffers added
eth0: link up, full duplex, speed 1 Gbps
eth0: started
eth0: link up, full duplex, speed 1 Gbps
init: dhcp-client (eth0) main process (3950) killed by TERM signal
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver usblp
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
ata1.00: configured for UDMA/133
ata1: EH complete
ata2.00: configured for UDMA/133
ata2: EH complete

warning: `nginx' uses 32-bit capabilities (legacy support in use)
iSCSI: init_io_buffer_head(833) LUN-backup: 512 buffers allocated, total 2097152 bytes successfully
loop: module loaded
findhostd uses obsolete (PF_INET,SOCK_PACKET)
init: syno-check-disk-compatibility main process (7738) terminated with status 255

synology login:
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: