Welcome! Log In Create A New Profile

Advanced

Debian on Synology DS215j

Posted by ZooMoo 
Debian on Synology DS215j
January 14, 2025 03:28AM
Hi,

I'm want to install Debian on the Synology DS215j. I'm not an expert and have tried to follow the other threads on installing Debian on the DS214 and DS216j but without success.

Refs:

Debian on Synology DS214
Posted by lonestar
https://forum.doozan.com/read.php?2,133377

Debian on Synology DS216
Posted by Robin
https://forum.doozan.com/read.php?2,137280

So far I've followed the generic guide for the initial installation of the rootfs:

Linux Kernel 6.12.6 MVEBU package and Debian armhf rootfs
https://forum.doozan.com/read.php?2,32146
========================================================================
Updated 16 Dec 2023:

I used the generic armada-375-db device tree source file:

# cd media/user1/usbstick
# cp -a uImage uImage.orig
# cp -a zImage-6.6.2-mvebu-tld-1 zImage.fdt 
# cat dts/armada-375-db.dtb >> zImage.fdt 
# mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-6.6.2-mvebu-tld-1 -d zImage.fdt uImage
tld-1 -d zImage.fdt uImage
Image Name:   Linux-6.6.2-mvebu-tld-1
Created:      Fri Jan 10 22:14:11 2025
Image Type:   ARM Linux Kernel Image (uncompressed)
Data Size:    5192781 Bytes = 5071.08 KiB = 4.95 MiB
Load Address: 00008000
Entry Point:  00008000

# umount /media/user1/usbstick



I connected a UART/USB for serial access to the DS215j. The case needs to be opened with the UART pins just next the Fan header (refs: https://www.netbsd.org/ports/sandpoint/instSynology.html).

To boot from USB I followed the instructions from the DS214 thread, but the kernel panic's when loading the I2C module, see below:

Debian on Synology DS214
https://forum.doozan.com/read.php?2,133377,page=2

I plugged the USB memory stick into the USB-3 port of DS-215j (I tried the USB-2 port but it did not work).

Using stock u-boot and the serial console to boot into the usb stick:

Marvell>> setenv usbActive 1
Marvell>> usb start
Marvell>> ext2load usb 0:1 0x02000000 /boot/uImage
5192845 bytes read in 637 ms (7.8 MiB/s)
Marvell>> ext2load usb 0:1 0x08000000 /boot/uInitrd
5257173 bytes read in 225 ms (22.3 MiB/s)
Marvell>> setenv bootargs 'console=ttyS0,115200 ip=off root=/dev/sda1 rw syno_hw_version=DS215j ihd_num=2 netif_num=1 flash_size=8'
Marvell>> bootm 0x02000000 0x08000000
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-6.6.2-mvebu-tld-1
   Created:      2025-01-10  11:14:11 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5192781 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.6.2-mvebu-tld-1 (root@tldDebian) (gcc (Debian 12.2.0-14) 12.2.0, 3
[    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: Marvell Armada 375 Development Board
[    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 29 pages/cpu s25364 r8192 d85228 u118784
[    0.000000][    T0] Kernel command line: console=ttyS0,115200 ip=off root=/dev/sda1 rw syno_hw_versio8
[    0.000000][    T0] Unknown kernel command line parameters "syno_hw_version=DS215j ihd_num=2 netif_nu.
[    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: 129920
[    0.000000][    T0] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000][    T0] Memory: 495072K/524288K available (10240K kernel code, 873K rwdata, 3492K rodata,)
[    0.000000][    T0] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
...
[    3.511655][    T1] usb usb3: SerialNumber: f1058000.usb
[    3.524512][    T1] hub 3-0:1.0: USB hub found
[    3.529096][    T1] hub 3-0:1.0: 1 port detected
[    3.535960][    T1] usbcore: registered new interface driver usblp
[    3.542515][    T1] usbcore: registered new interface driver usb-storage
[    3.550464][    T1] mousedev: PS/2 mouse device common for all mice
[    3.560118][    T1] rtc-mv f1010300.rtc: registered as rtc0
[    3.565789][    T1] rtc-mv f1010300.rtc: setting system clock to 2025-01-10T22:21:47 UTC (1736547707)
[    3.575559][    T1] i2c_dev: i2c /dev entries driver

[    3.583007][    C0] 8<--- cut here ---
[    3.586796][    C0] Unable to handle kernel NULL pointer dereference at virtual address 00000002 whend
[    3.596503][    C0] [00000002] *pgd=00000000
[    3.600806][    C0] Internal error: Oops: 5 [#1] PREEMPT SMP ARM
[    3.606849][    C0] Modules linked in:
[    3.610625][    C0] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 6.6.2-mvebu-tld-1 #1
[    3.618239][    C0] Hardware name: Marvell Armada 375 (Device Tree)
[    3.624538][    C0] PC is at mv64xxx_i2c_intr+0x1bc/0x5cc
[    3.629987][    C0] LR is at arch_spin_lock+0xc/0x48
[    3.634990][    C0] pc : [<c07949fc>]    lr : [<c0163d54>]    psr: 80000193
[    3.641988][    C0] sp : e0801f50  ip : c3221e00  fp : e082dd20
[    3.647940][    C0] r10: c3221e6c  r9 : 00000007  r8 : 000346dc
[    3.653892][    C0] r7 : c0df00c4  r6 : c1a3a4a0  r5 : 00000000  r4 : c1a3a440
[    3.661152][    C0] r3 : 00000000  r2 : 00000000  r1 : 00000000  r0 : 00000000
[    3.668412][    C0] Flags: Nzcv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment none
[    3.676373][    C0] Control: 10c5387d  Table: 0000404a  DAC: 00000051
[    3.682846][    C0] Register r0 information: NULL pointer
[    3.688280][    C0] Register r1 information: NULL pointer
[    3.693710][    C0] Register r2 information: NULL pointer
[    3.699140][    C0] Register r3 information: NULL pointer
[    3.704569][    C0] Register r4 information: slab kmalloc-rnd-14-1k start c1a3a400 pointer offset 64 4
[    3.714645][    C0] Register r5 information: NULL pointer
[    3.720074][    C0] Register r6 information: slab kmalloc-rnd-14-1k start c1a3a400 pointer offset 1604
[    3.730232][    C0] Register r7 information: non-slab/vmalloc memory
[    3.736622][    C0] Register r8 information: non-paged memory
[    3.742399][    C0] Register r9 information: non-paged memory
[    3.748177][    C0] Register r10 information: slab kmalloc-256 start c3221e00 pointer offset 108 size6
[    3.757810][    C0] Register r11 information: 2-page vmalloc region starting at 0xe082c000 allocated c
[    3.769366][    C0] Register r12 information: slab kmalloc-256 start c3221e00 pointer offset 0 size 26
[    3.778826][    C0] Process swapper/0 (pid: 1, stack limit = 0x(ptrval))
[    3.785563][    C0] Stack: (0xe0801f50 to 0xe0802000)
[    3.790647][    C0] 1f40:                                     00000032 c1a3a440 00010001 c2db76c0
[    3.799571][    C0] 1f60: c3221e00 c3221e6c 00000000 00000032 c18b7500 c0173268 c3221e00 1ebd8000
[    3.808493][    C0] 1f80: c3221e00 c0b82d98 c3221e6c c3221e6c 60000013 c0173324 c3221e00 c0b82d98
[    3.817415][    C0] 1fa0: c3221e6c c0173388 c3221e00 c0b82d98 c3221e18 c0177954 c0f5dcb8 c100a68c
[    3.826337][    C0] 1fc0: e0809100 e0801fd8 60000013 c0172b60 c0f5dcb8 c0577f5c e082dd28 00000000
[    3.835259][    C0] 1fe0: ffffffff e082dd5c 60000013 c0a87354 c0a8d824 60000013 ffffffff c0a575ec
[    3.844179][    C0]  mv64xxx_i2c_intr from __handle_irq_event_percpu+0x38/0xe8
[    3.851472][    C0]  __handle_irq_event_percpu from handle_irq_event_percpu+0xc/0x38
[    3.859280][    C0]  handle_irq_event_percpu from handle_irq_event+0x38/0x5c
[    3.866389][    C0]  handle_irq_event from handle_fasteoi_irq+0xc0/0x150
[    3.873147][    C0]  handle_fasteoi_irq from handle_irq_desc+0x1c/0x2c
[    3.879727][    C0]  handle_irq_desc from gic_handle_irq+0x58/0x64
[    3.885964][    C0]  gic_handle_irq from generic_handle_arch_irq+0x28/0x3c
[    3.892892][    C0]  generic_handle_arch_irq from call_with_stack+0x18/0x20
[    3.899906][    C0]  call_with_stack from __irq_svc+0x98/0xc8
[    3.905695][    C0] Exception stack(0xe082dd28 to 0xe082dd70)
[    3.911477][    C0] dd20:                   c3221e6c 60000013 00000004 00000005 c3221e00 c2db76c0
[    3.920398][    C0] dd40: 00000000 00000032 60000013 c3221ed4 c3221e6c 00000f07 c3221e00 e082dd78
[    3.929317][    C0] dd60: c0a8d820 c0a8d824 60000013 ffffffff
[    3.935095][    C0]  __irq_svc from _raw_spin_unlock_irqrestore+0x1c/0x48
[    3.941938][    C0]  _raw_spin_unlock_irqrestore from __setup_irq+0x568/0x6c8
[    3.949130][    C0]  __setup_irq from request_threaded_irq+0x110/0x13c
[    3.955702][    C0]  request_threaded_irq from mv64xxx_i2c_probe+0x240/0x530
[    3.962807][    C0]  mv64xxx_i2c_probe from platform_probe+0x58/0xac
[    3.969218][    C0]  platform_probe from really_probe+0x188/0x394
[    3.975360][    C0]  really_probe from __driver_probe_device+0x1a0/0x1cc
[    3.982109][    C0]  __driver_probe_device from driver_probe_device+0x38/0xb4
[    3.989295][    C0]  driver_probe_device from __driver_attach+0x130/0x15c
[    3.996130][    C0]  __driver_attach from bus_for_each_dev+0x78/0xb8
[    4.002529][    C0]  bus_for_each_dev from bus_add_driver+0xe4/0x208
[    4.008926][    C0]  bus_add_driver from driver_register+0xb8/0x100
[    4.015238][    C0]  driver_register from do_one_initcall+0x58/0x240
[    4.021640][    C0]  do_one_initcall from kernel_init_freeable+0x208/0x24c
[    4.028566][    C0]  kernel_init_freeable from kernel_init+0x14/0x130
[    4.035053][    C0]  kernel_init from ret_from_fork+0x14/0x28
[    4.040839][    C0] Exception stack(0xe082dfb0 to 0xe082dff8)
[    4.046620][    C0] dfa0:                                     00000000 00000000 00000000 00000000
[    4.055539][    C0] dfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    4.064458][    C0] dfe0: 00000000 00000000 00000000 00000000 00000013 00000000
[    4.071811][    C0] Code: e2431008 e3d11008 0a00003b e5941064 (e1d100b2) 
[    4.078636][    C0] ---[ end trace 0000000000000000 ]---
[    4.083977][    C0] Kernel panic - not syncing: Fatal exception in interrupt
[    4.091065][    C1] CPU1: stopping
[    4.091077][    C1] CPU: 1 PID: 0 Comm: swapper/1 Tainted: G      D            6.6.2-mvebu-tld-1 #1
[    4.091090][    C1] Hardware name: Marvell Armada 375 (Device Tree)
[    4.091098][    C1]  unwind_backtrace from show_stack+0x10/0x14
[    4.091125][    C1]  show_stack from dump_stack_lvl+0x40/0x4c
[    4.091141][    C1]  dump_stack_lvl from do_handle_IPI+0x84/0x11c
[    4.091159][    C1]  do_handle_IPI from ipi_handler+0x14/0x20
[    4.091176][    C1]  ipi_handler from handle_percpu_devid_irq+0x4c/0xe8
[    4.091197][    C1]  handle_percpu_devid_irq from handle_irq_desc+0x1c/0x2c
[    4.091222][    C1]  handle_irq_desc from gic_handle_irq+0x58/0x64
[    4.091248][    C1]  gic_handle_irq from generic_handle_arch_irq+0x28/0x3c
[    4.091268][    C1]  generic_handle_arch_irq from call_with_stack+0x18/0x20
[    4.091286][    C1]  call_with_stack from __irq_svc+0x98/0xc8
[    4.091301][    C1] Exception stack(0xe087df58 to 0xe087dfa0)
[    4.091311][    C1] df40:                                                       00000001 c0de2baf
[    4.091322][    C1] df60: 00001ce4 00000001 00000000 00000000 00000001 c18bba80 c100a010 c100a070
[    4.091333][    C1] df80: 00000000 00000000 c1003d40 e087dfa8 c0a87e38 c0a87e3c 20000113 ffffffff
[    4.091340][    C1]  __irq_svc from default_idle_call+0x28/0x2c
[    4.091357][    C1]  default_idle_call from do_idle+0x108/0x280
[    4.091375][    C1]  do_idle from cpu_startup_entry+0x28/0x2c
[    4.091390][    C1]  cpu_startup_entry from secondary_start_kernel+0xfc/0x11c
[    4.091408][    C1]  secondary_start_kernel from 0x101460
[    4.236054][    C0] ---[ end Kernel panic - not syncing: Fatal exception in interrupt ]---

I understand that the device tree source (dts) needs to be updated to get the specific hardware to work (https://developer.toradex.com/software/linux-resources/device-tree/device-tree-overview/). Where the .dts file customises (enables/disables/properties) different hardware functions (SoC, board) that are defined in the SoC level .dtsi file.

Checking the DS215j PCB, it has the following components:

SOC: Armada 375 (88F6720)
Network: Marvell 88E1514
Microcontroller: Microchip PIC16F1829
Nor Flash: Macronix MX25L6406E

I've done the following to setup the custom kernal, short of compiling with a working DTS.

Download bodhi's linux 6.12.6 tar file and extract files:

$ tar xvf linux-6.12.6-mvebu-tld-1-bodhi.tar.bz2


The two important files are:
config-6.12.6-mvebu-tld-1
linux-6.12.6-mvebu-tld-1.patch

Download linux kernel source repo.

$ git clone git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git


Checkout the 6.12.6 version to match the patch file.

Find the correct tag:
$ git tag -l | grep 6.12.6
v2.6.12.6
v6.12.6

$ git checkout -b ds215j_6.12.6 v6.12.6


Copy bodhi's config file to the source directory:

$ cp ../config-6.12.6-mvebu-tld-1 .config


Apply the patch.

patch -p1 < ../linux-6.12.6-mvebu-tld-1.patch

There are not many DTS file for the armada-375 (doesn't seem very popular :( ).

The DS215j was last mentioned by Robin early last year:
https://forum.doozan.com/read.php?2,137280,137285#msg-137285
"I will also try to add/improve/confirm support for a few other devices as I got my hands on a DS215j that looks similar to a DS214. I already got the stock bootlog on this one and I'll try a few things later. I also got a DS214 but sadly the UART remains silent, i don't know if it is known to be capricious but i got no luck so far."

bodhi suggested the following:
https://forum.doozan.com/read.php?2,137280,137291#msg-137291
"DS214 is a different SoC (Armada XP). It's a bit older than this Armada 385. But the DS414 DTS should be a good one to use as reference."

So I've compared the DTS files of the previous (armada-370 / armada-xp) and later (armada-385) models, but I'm a bit lost as I'm not an expert.

./arch/arm/boot/dts/marvell/armada-370-synology-ds213j.dtsarmada-xp-synology-ds414.dts
./arch/arm/boot/dts/marvell/armada-370-synology-ds213j.dtsarmada-370-synology-ds213j.dts
./arch/arm/boot/dts/marvell/armada-370-synology-ds213j.dtsarmada-385-synology-ds218j.dts

At this point I'm out of my depth as each is different enough that I'm not sure how to apply it for use with the armada-375-db.dtsi

Does anyone have a DTS for the the Synology DS215j or suggested approach?

Appreciate any help.
Re: Debian on Synology DS215j
January 14, 2025 02:35PM
ZooMoo,

You did everything right. But the DTB for the reference board (armada-375-db.dtb) is probably not the right one.

> ./arch/arm/boot/dts/marvell/armada-370-synology-ds213j.dtsarmada-xp-synology-ds414.dts
> ./arch/arm/boot/dts/marvell/armada-370-synology-ds213j.dtsarmada-370-synology-ds213j.dts
> ./arch/arm/boot/dts/marvell/armada-370-synology-ds213j.dtsarmada-385-synology-ds218j.dts

None of these are right either.

I've looked in my rootfs. Turned out I missed one DTB: armada-375-wd-mycloud-gen2.

Attached here is the DTB. Please try booting with it.

There is a lot of differences between the 2 boxes. If it boot OK, we can start stripping out stuff from the armada-375-wd-mycloud-gen2.dts, and also adding some HW properties.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Attachments:
open | download - armada-375-wd-mycloud-gen2.dtb (13.4 KB)
Re: Debian on Synology DS215j
January 15, 2025 03:55AM
Thank's Bodhi.

I repeated the rootfs procedure using ./dts/armada-375-wd-mycloud-gen2.dtb as you suggested, but got the same kernel panic.

# cd /media/user1/usbstick/boot
# cp -a uImage.orig uImage # replace uImage with the original.
# cp -a zImage-6.6.2-mvebu-tld-1 zImage.fdt 
# cat ./dts/armada-375-wd-mycloud-gen2.dtb >> zImage.fdt 
# mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-6.6.2-mvebu-tld-1 -d zImage.fdt uImage
# umount /media/user1/usbstick


Mount and boot on DS215j:

Marvell>> setenv usbActive 1
Marvell>> usb start
Marvell>> ext2load usb 0:1 0x02000000 /boot/uImage
5192845 bytes read in 637 ms (7.8 MiB/s)
Marvell>> ext2load usb 0:1 0x08000000 /boot/uInitrd
5257173 bytes read in 225 ms (22.3 MiB/s)
Marvell>> setenv bootargs 'console=ttyS0,115200 ip=off root=/dev/sda1 rw syno_hw_version=DS215j ihd_num=2 netif_num=1 flash_size=8'
Marvell>> bootm 0x02000000 0x08000000


Kernel log:

## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-6.6.2-mvebu-tld-1
   Created:      2025-01-15   9:28:23 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5192796 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.6.2-mvebu-tld-1 (root@tldDebian) (gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT Mon Nov 20 18:44:27 PST 2023
[    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: WD MyCloud Gen2
[    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 29 pages/cpu s25364 r8192 d85228 u118784
[    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: 129920
[    0.000000][    T0] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000][    T0] Memory: 495068K/524288K available (10240K kernel code, 873K rwdata, 3492K rodata, 1024K init, 314K bss, 29220K reserved, 0K cma-reserved, 0K highmem)
[    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] 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.000000][    T0] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 85899345900ns
[    0.000039][    T0] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.000456][    T0] kfence: initialized - using 2097152 bytes for 255 objects at 0x(ptrval)-0x(ptrval)
[    0.001021][    T0] Console: colour dummy device 80x30
[    0.001078][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[    0.001097][    T0] CPU: Testing write buffer coherency: ok
[    0.001147][    T0] CPU0: Spectre v2: using BPIALL workaround
[    0.001156][    T0] pid_max: default: 32768 minimum: 301
[    0.006839][    T0] LSM: initializing lsm=capability,integrity
[    0.008409][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.008426][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.015848][    T1] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.017460][    T1] RCU Tasks: Setting shift to 1 and lim to 1 rcu_task_cb_adjust=1.
[    0.017662][    T1] RCU Tasks Trace: Setting shift to 1 and lim to 1 rcu_task_cb_adjust=1.
[    0.017835][    T1] Setting up static identity map for 0x100000 - 0x100060
[    0.018248][    T1] mvebu-soc-id: MVEBU SoC ID=0x6720, Rev=0x3
[    0.018773][    T1] rcu: Hierarchical SRCU implementation.
[    0.018783][    T1] rcu: 	Max phase no-delay instances is 1000.
[    0.020051][    T1] smp: Bringing up secondary CPUs ...
[    0.020880][    T1] Booting CPU 1
[    0.021103][    T0] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.021125][    T0] CPU1: Spectre v2: using BPIALL workaround
[    0.021312][    T1] smp: Brought up 1 node, 2 CPUs
[    0.021326][    T1] SMP: Total of 2 processors activated (100.00 BogoMIPS).
[    0.021336][    T1] CPU: All CPU(s) started in SVC mode.
[    0.023405][    T1] devtmpfs: initialized
[    0.028949][    T1] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.029521][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.029557][    T1] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.033427][    T1] prandom: seed boundary self test passed
[    0.036084][    T1] prandom: 100 self tests passed
[    0.036093][    T1] pinctrl core: initialized pinctrl subsystem
[    0.038467][    T1] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.040578][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.044582][    T1] audit: initializing netlink subsys (disabled)
[    0.044955][   T30] audit: type=2000 audit(0.040:1): state=initialized audit_enabled=0 res=1
[    0.045814][    T1] thermal_sys: Registered thermal governor 'step_wise'
[    0.045928][    T1] cpuidle: using governor ladder
[    0.045965][    T1] cpuidle: using governor menu
[    0.046374][    T1] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.046389][    T1] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.050049][    T1] platform soc: Fixed dependency cycle(s) with /soc/internal-regs/interrupt-controller@d000
[    0.229873][    T1] raid6: int32x8  gen()   159 MB/s
[    0.399813][    T1] raid6: int32x4  gen()   166 MB/s
[    0.569774][    T1] raid6: int32x2  gen()   275 MB/s
[    0.739754][    T1] raid6: int32x1  gen()   318 MB/s
[    0.739763][    T1] raid6: using algorithm int32x1 gen() 318 MB/s
[    0.909743][    T1] raid6: .... xor() 123 MB/s, rmw enabled
[    0.909750][    T1] raid6: using intx1 recovery algorithm
[    0.911904][    T1] SCSI subsystem initialized
[    0.912544][    T1] usbcore: registered new interface driver usbfs
[    0.912597][    T1] usbcore: registered new interface driver hub
[    0.912653][    T1] usbcore: registered new device driver usb
[    0.913123][    T1] pps_core: LinuxPPS API ver. 1 registered
[    0.913133][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.913178][    T1] PTP clock support registered
[    0.915989][    T1] vgaarb: loaded
[    0.916842][    T1] clocksource: Switched to clocksource armada_370_xp_clocksource
[    0.923019][    T1] VFS: Disk quotas dquot_6.6.0
[    0.923351][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.938455][    T1] NET: Registered PF_INET protocol family
[    0.938717][    T1] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.940463][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.940621][    T1] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.940681][    T1] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.940756][    T1] TCP bind hash table entries: 4096 (order: 4, 65536 bytes, linear)
[    0.940878][    T1] TCP: Hash tables configured (established 4096 bind 4096)
[    0.941459][    T1] MPTCP token hash table entries: 512 (order: 1, 8192 bytes, linear)
[    0.941758][    T1] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.941791][    T1] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.942494][    T1] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.943550][    T1] RPC: Registered named UNIX socket transport module.
[    0.943565][    T1] RPC: Registered udp transport module.
[    0.943571][    T1] RPC: Registered tcp transport module.
[    0.943575][    T1] RPC: Registered tcp-with-tls transport module.
[    0.943580][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.943599][    T1] PCI: CLS 0 bytes, default 64
[    0.944601][   T29] Trying to unpack rootfs image as initramfs...
[    0.947063][    T1] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.951351][    T1] Initialise system trusted keyrings
[    0.951477][    T1] Key type blacklist registered
[    0.953487][    T1] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[    0.953632][    T1] zbud: loaded
[    0.965933][    T1] NFS: Registering the id_resolver key type
[    0.966060][    T1] Key type id_resolver registered
[    0.966070][    T1] Key type id_legacy registered
[    0.966278][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.966323][    T1] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    1.109718][    T1] xor: measuring software checksum speed
[    1.117352][    T1]    arm4regs        :  1304 MB/sec
[    1.127502][    T1]    8regs           :  1001 MB/sec
[    1.137151][    T1]    32regs          :  1040 MB/sec
[    1.137169][    T1] xor: using function: arm4regs (1304 MB/sec)
[    1.137198][    T1] async_tx: api initialized (async)
[    1.137217][    T1] Key type asymmetric registered
[    1.137224][    T1] Asymmetric key parser 'x509' registered
[    1.137859][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
[    1.138448][    T1] io scheduler bfq registered
[    1.146068][    T1] armada-375-pinctrl f1018000.pinctrl: registered pinctrl driver
[    1.151036][    T1] gpio gpiochip0: Static allocation of GPIO base is deprecated, use dynamic allocation.
[    1.153081][    T1] gpio gpiochip1: Static allocation of GPIO base is deprecated, use dynamic allocation.
[    1.154866][    T1] gpio gpiochip2: Static allocation of GPIO base is deprecated, use dynamic allocation.
[    1.158560][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[    1.238729][    T1] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    1.244731][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.246709][   T29] Freeing initrd memory: 5136K
[    1.338674][    T1] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    1.563908][    T1] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.573733][    T1] printk: console [ttyS0] disabled
[    1.594593][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 39, base_baud = 12500000) is a 16550A
[    1.594679][    T1] printk: console [ttyS0] enabled
[    2.621459][    T1] sata_mv f10a0000.sata: slots 32 ports 1
[    2.630434][    T1] scsi host0: sata_mv
[    2.635490][    T1] ata1: SATA max UDMA/133 irq 40
[    2.645156][    T1] spi-nor spi0.0: found mx25l6405d, expected mx25l8005
[    2.652023][    T1] spi-nor spi0.0: mx25l6405d (8192 Kbytes)
[    2.657981][    T1] 1 fixed-partitions partitions found on MTD device spi0.0
[    2.665081][    T1] Creating 1 MTD partitions on "spi0.0":
[    2.670641][    T1] 0x000000000000-0x000000100000 : "u-boot"
[    2.680441][    T1] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[    2.689718][    T1] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[    2.710946][    T1] mdio_bus f10c0054.mdio-mii: MDIO device at address 0 is missing.
[    2.719914][    T1] mvpp2 f10f0000.ethernet: using 3 shared buffers
[    2.738503][    T1] mvpp2 f10f0000.ethernet eth0: Using hardware mac address 00:00:00:00:00:04
[    2.787526][    T1] usbcore: registered new interface driver smsc75xx
[    2.794797][    T1] orion-ehci f1054000.usb: EHCI Host Controller
[    2.801110][    T1] orion-ehci f1054000.usb: new USB bus registered, assigned bus number 1
[    2.809741][    T1] orion-ehci f1054000.usb: irq 42, io mem 0xf1054000
[    2.836860][    T1] orion-ehci f1054000.usb: USB 2.0 started, EHCI 1.00
[    2.843895][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.06
[    2.852959][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.860977][    T1] usb usb1: Product: EHCI Host Controller
[    2.866613][    T1] usb usb1: Manufacturer: Linux 6.6.2-mvebu-tld-1 ehci_hcd
[    2.873740][    T1] usb usb1: SerialNumber: f1054000.usb
[    2.880521][    T1] hub 1-0:1.0: USB hub found
[    2.885121][    T1] hub 1-0:1.0: 1 port detected
[    2.892667][    T1] xhci-hcd f1058000.usb: xHCI Host Controller
[    2.898778][    T1] xhci-hcd f1058000.usb: new USB bus registered, assigned bus number 2
[    2.907140][    T1] xhci-hcd f1058000.usb: hcc params 0x0a000990 hci version 0x100 quirks 0x0000000000000010
[    2.917686][    T1] xhci-hcd f1058000.usb: irq 43, io mem 0xf1058000
[    2.924357][    T1] xhci-hcd f1058000.usb: xHCI Host Controller
[    2.930385][    T1] xhci-hcd f1058000.usb: new USB bus registered, assigned bus number 3
[    2.938589][    T1] xhci-hcd f1058000.usb: Host supports USB 3.0 SuperSpeed
[    2.945828][    T1] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.06
[    2.954879][    T1] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.962873][    T1] usb usb2: Product: xHCI Host Controller
[    2.968496][    T1] usb usb2: Manufacturer: Linux 6.6.2-mvebu-tld-1 xhci-hcd
[    2.972911][  T684] ata1: SATA link down (SStatus 0 SControl F300)
[    2.975585][    T1] usb usb2: SerialNumber: f1058000.usb
[    2.988372][    T1] hub 2-0:1.0: USB hub found
[    2.993065][    T1] hub 2-0:1.0: 1 port detected
[    2.998922][    T1] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    3.007996][    T1] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 6.06
[    3.017056][    T1] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.025023][    T1] usb usb3: Product: xHCI Host Controller
[    3.030856][    T1] usb usb3: Manufacturer: Linux 6.6.2-mvebu-tld-1 xhci-hcd
[    3.037982][    T1] usb usb3: SerialNumber: f1058000.usb
[    3.044651][    T1] hub 3-0:1.0: USB hub found
[    3.049280][    T1] hub 3-0:1.0: 1 port detected
[    3.056083][    T1] usbcore: registered new interface driver usblp
[    3.062671][    T1] usbcore: registered new interface driver usb-storage
[    3.070687][    T1] mousedev: PS/2 mouse device common for all mice
[    3.081433][    T1] rtc-mv f1010300.rtc: registered as rtc0
[    3.087140][    T1] rtc-mv f1010300.rtc: setting system clock to 2025-01-15T09:32:06 UTC (1736933526)
[    3.097231][    T1] i2c_dev: i2c /dev entries driver

[    3.105450][    C0] 8<--- cut here ---
[    3.109243][    C0] Unable to handle kernel NULL pointer dereference at virtual address 00000002 when read
[    3.118953][    C0] [00000002] *pgd=00000000
[    3.123257][    C0] Internal error: Oops: 5 [#1] PREEMPT SMP ARM
[    3.129299][    C0] Modules linked in:
[    3.133074][    C0] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 6.6.2-mvebu-tld-1 #1
[    3.140689][    C0] Hardware name: Marvell Armada 375 (Device Tree)
[    3.146990][    C0] PC is at mv64xxx_i2c_intr+0x1bc/0x5cc
[    3.152440][    C0] LR is at arch_spin_lock+0xc/0x48
[    3.157443][    C0] pc : [<c07949fc>]    lr : [<c0163d54>]    psr: 80000193
[    3.164443][    C0] sp : c1001e70  ip : 00000006  fp : c0d24e1a
[    3.170394][    C0] r10: c100deb8  r9 : 00000007  r8 : 000346dc
[    3.176345][    C0] r7 : c0df00c4  r6 : c1d750a0  r5 : 00000000  r4 : c1d75040
[    3.183605][    C0] r3 : 00000000  r2 : 00000000  r1 : 00000000  r0 : 00000000
[    3.190865][    C0] Flags: Nzcv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment none
[    3.198827][    C0] Control: 10c5387d  Table: 0000404a  DAC: 00000051
[    3.205300][    C0] Register r0 information: NULL pointer
[    3.210736][    C0] Register r1 information: NULL pointer
[    3.216167][    C0] Register r2 information: NULL pointer
[    3.221596][    C0] Register r3 information: NULL pointer
[    3.227025][    C0] Register r4 information: slab kmalloc-rnd-14-1k start c1d75000 pointer offset 64 size 1024
[    3.237102][    C0] Register r5 information: NULL pointer
[    3.242531][    C0] Register r6 information: slab kmalloc-rnd-14-1k start c1d75000 pointer offset 160 size 1024
[    3.252688][    C0] Register r7 information: non-slab/vmalloc memory
[    3.259078][    C0] Register r8 information: non-paged memory
[    3.264857][    C0] Register r9 information: non-paged memory
[    3.270636][    C0] Register r10 information: non-slab/vmalloc memory
[    3.277113][    C0] Register r11 information: non-slab/vmalloc memory
[    3.283591][    C0] Register r12 information: non-paged memory
[    3.289456][    C0] Process swapper/0 (pid: 0, stack limit = 0x(ptrval))
[    3.296195][    C0] Stack: (0xc1001e70 to 0xc1002000)
[    3.301280][    C0] 1e60:                                     0000002e c1d75040 00010001 c2d50640
[    3.310203][    C0] 1e80: c2c99b00 c2c99b6c 00000000 0000002e c100e180 c0173268 c2c99b00 1ebd8000
[    3.319126][    C0] 1ea0: c2c99b00 c0b82d98 c2c99b6c c2c99b6c c100a010 c0173324 c2c99b00 c0b82d98
[    3.328048][    C0] 1ec0: c2c99b6c c0173388 c2c99b00 c0b82d98 c2c99b18 c0177954 c0f5dcb8 c100a68c
[    3.336970][    C0] 1ee0: e0809100 c1001ef8 c100a010 c0172b60 c0f5dcb8 c0577f5c c1001f20 00000000
[    3.345891][    C0] 1f00: ffffffff c1001f54 c100a010 c0a87354 c0a87e3c 20000013 ffffffff c0100bc8
[    3.354812][    C0] 1f20: 00000000 c0de2baf 000015d4 00000001 00000000 00000000 00000000 c100e180
[    3.363734][    C0] 1f40: c100a010 c100a070 c100deb8 c0d24e1a c1003d40 c1001f70 c0a87e38 c0a87e3c
[    3.372657][    C0] 1f60: 20000013 ffffffff 00000051 c0a87e38 00000000 c015674c dfb37380 a8d3aad4
[    3.381579][    C0] 1f80: 00000000 000000ec c1012de4 dfffc400 dfffc43a 00000000 c1009fc0 c100deb8
[    3.390500][    C0] 1fa0: c0d24e1a c0156b60 00000002 c0a87fe4 c10db048 c0f00c74 c10db048 c0f0136c
[    3.399422][    C0] 1fc0: ffffffff ffffffff 00000000 c0f006f8 00000000 c0f42f64 c0f42f64 00000000
[    3.408342][    C0] 1fe0: 00000000 00000000 00000000 00000210 00000000 00000000 00000000 00000000
[    3.417261][    C0]  mv64xxx_i2c_intr from __handle_irq_event_percpu+0x38/0xe8
[    3.424557][    C0]  __handle_irq_event_percpu from handle_irq_event_percpu+0xc/0x38
[    3.432367][    C0]  handle_irq_event_percpu from handle_irq_event+0x38/0x5c
[    3.439477][    C0]  handle_irq_event from handle_fasteoi_irq+0xc0/0x150
[    3.446237][    C0]  handle_fasteoi_irq from handle_irq_desc+0x1c/0x2c
[    3.452820][    C0]  handle_irq_desc from gic_handle_irq+0x58/0x64
[    3.459057][    C0]  gic_handle_irq from generic_handle_arch_irq+0x28/0x3c
[    3.465986][    C0]  generic_handle_arch_irq from __irq_svc+0x88/0xc8
[    3.472471][    C0] Exception stack(0xc1001f20 to 0xc1001f68)
[    3.478255][    C0] 1f20: 00000000 c0de2baf 000015d4 00000001 00000000 00000000 00000000 c100e180
[    3.487177][    C0] 1f40: c100a010 c100a070 c100deb8 c0d24e1a c1003d40 c1001f70 c0a87e38 c0a87e3c
[    3.496094][    C0] 1f60: 20000013 ffffffff
[    3.500301][    C0]  __irq_svc from default_idle_call+0x28/0x2c
[    3.506266][    C0]  default_idle_call from do_idle+0x108/0x280
[    3.512231][    C0]  do_idle from cpu_startup_entry+0x28/0x2c
[    3.518019][    C0]  cpu_startup_entry from rest_init+0xb8/0xd4
[    3.523981][    C0]  rest_init from arch_post_acpi_subsys_init+0x0/0x8
[    3.530565][    C0] Code: e2431008 e3d11008 0a00003b e5941064 (e1d100b2) 
[    3.537389][    C0] ---[ end trace 0000000000000000 ]---
[    3.542731][    C0] Kernel panic - not syncing: Fatal exception in interrupt
[    3.549820][    C1] CPU1: stopping
[    3.549832][    C1] CPU: 1 PID: 0 Comm: swapper/1 Tainted: G      D            6.6.2-mvebu-tld-1 #1
[    3.549845][    C1] Hardware name: Marvell Armada 375 (Device Tree)
[    3.549853][    C1]  unwind_backtrace from show_stack+0x10/0x14
[    3.549880][    C1]  show_stack from dump_stack_lvl+0x40/0x4c
[    3.549895][    C1]  dump_stack_lvl from do_handle_IPI+0x84/0x11c
[    3.549913][    C1]  do_handle_IPI from ipi_handler+0x14/0x20
[    3.549930][    C1]  ipi_handler from handle_percpu_devid_irq+0x4c/0xe8
[    3.549950][    C1]  handle_percpu_devid_irq from handle_irq_desc+0x1c/0x2c
[    3.549976][    C1]  handle_irq_desc from gic_handle_irq+0x58/0x64
[    3.550001][    C1]  gic_handle_irq from generic_handle_arch_irq+0x28/0x3c
[    3.550020][    C1]  generic_handle_arch_irq from call_with_stack+0x18/0x20
[    3.550039][    C1]  call_with_stack from __irq_svc+0x98/0xc8
[    3.550054][    C1] Exception stack(0xe087df58 to 0xe087dfa0)
[    3.550064][    C1] df40:                                                       00000001 c0de2baf
[    3.550075][    C1] df60: 00001ba4 00000001 00000000 00000000 00000001 c18bc440 c100a010 c100a070
[    3.550086][    C1] df80: 00000000 00000000 c1003d40 e087dfa8 c0a87e38 c0a87e3c 20000113 ffffffff
[    3.550093][    C1]  __irq_svc from default_idle_call+0x28/0x2c
[    3.550109][    C1]  default_idle_call from do_idle+0x108/0x280
[    3.550126][    C1]  do_idle from cpu_startup_entry+0x28/0x2c
[    3.550140][    C1]  cpu_startup_entry from secondary_start_kernel+0xfc/0x11c
[    3.550158][    C1]  secondary_start_kernel from 0x101460
[    3.694802][    C0] ---[ end Kernel panic - not syncing: Fatal exception in interrupt ]---
Re: Debian on Synology DS215j
January 15, 2025 02:07PM
ZooMoo,

Let's try booting the latest kernel linux-6.12.6-mvebu-tld-1.

You can download the tarball and extract the zImage-6.12.6-mvebu-tld-1.

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

linux-6.12.6-mvebu-tld-1-bodhi.tar.bz2
md5:
1486499178878ed66d62a8786a90901d
sha256:
c4e51584fcb96084f38ea535030cdb03267b238706d8449fa8b2e6987a867e1d

As always, please check the hash of your download!

There are 6 files in this tarball:
linux-image-6.12.6-mvebu-tld-1_1_armhf.deb
linux-headers-6.12.6-mvebu-tld-1_1_armhf.deb
zImage-6.12.6-mvebu-tld-1
config-6.12.6-mvebu-tld-1
linux-dtb-6.12.6-mvebu-tld-1.tar
linux-6.12.6-mvebu-tld-1.patch

And recreate the uImage with either
zImage-6.12.6-mvebu-tld-1 + armada-375-wd-mycloud-gen2.dtb
Or
zImage-6.12.6-mvebu-tld-1 + armada-375-db.dtb.

And try booting. If you get pass the kernel panic, then you can install full kernel linux-6.12.6-mvebu-tld-1.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Synology DS215j
January 16, 2025 04:05AM
I just tried both DTB files with the 6.12.6 kernel, but without success, same kernel panic with null pointers.

Although there is an error regarding NAND controller for the stock DTB (armada-375-db.dtb). Rechecking the previous kernel logs, it also occures with the 6.6.2 kernel.

[    3.303617][    T1] marvell-nfc f10d0000.nand-controller: probe with driver marvell-nfc failed with error -110


The error does not appear for the armada-375-wd-mycloud-gen2.dtb as the
 &nand_controller
data structure is not defined.

Creating zImage and uImage:

# cd /media/user1/usbstick/boot
# cp -a zImage-6.12.6-mvebu-tld-1 zImage.fdt 

# cat ./dts/armada-375-db.dtb >> zImage.fdt 
OR
# cat ./dts/armada-375-wd-mycloud-gen2.dtb >> zImage.fdt 

# mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-6.12.6-mvebu-tld-1 -d zImage.fdt uImage
# sync
# umount /media/user1/usbstick

Booting the DS215j with the same method as before via serial:

Marvell>> setenv usbActive 1
Marvell>> usb start
Marvell>> ext2load usb 0:1 0x02000000 /boot/uImage
5192845 bytes read in 637 ms (7.8 MiB/s)
Marvell>> ext2load usb 0:1 0x08000000 /boot/uInitrd
5257173 bytes read in 225 ms (22.3 MiB/s)
Marvell>> setenv bootargs 'console=ttyS0,115200 ip=off root=/dev/sda1 rw syno_hw_version=DS215j ihd_num=2 netif_num=1 flash_size=8'
Marvell>> bootm 0x02000000 0x08000000

Kernel log when using ./dts/armada-375-db.dtb is used:

Marvell>> bootm 0x02000000 0x08000000
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-6.12.6-mvebu-tld-1
   Created:      2025-01-16   9:28:47 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5204181 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: Marvell Armada 375 Development Board
[    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.000462][    T0] kfence: initialized - using 2097152 bytes for 255 objects at 0x(ptrval)-0x(ptrval)
[    0.001009][    T0] Console: colour dummy device 80x30
[    0.001079][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[    0.001098][    T0] CPU: Testing write buffer coherency: ok
[    0.001154][    T0] CPU0: Spectre v2: using BPIALL workaround
[    0.001164][    T0] pid_max: default: 32768 minimum: 301
[    0.008580][    T0] LSM: initializing lsm=capability
[    0.009977][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.009999][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.015129][    T1] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.080247][    T1] Setting up static identity map for 0x100000 - 0x100060
[    0.080667][    T1] mvebu-soc-id: MVEBU SoC ID=0x6720, Rev=0x3
[    0.081184][    T1] rcu: Hierarchical SRCU implementation.
[    0.081193][    T1] rcu: 	Max phase no-delay instances is 1000.
[    0.081621][    T1] Timer migration: 1 hierarchy levels; 8 children per group; 1 crossnode level
[    0.090754][    T1] smp: Bringing up secondary CPUs ...
[    0.120003][    T1] Booting CPU 1
[    0.120219][    T0] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.120241][    T0] CPU1: Spectre v2: using BPIALL workaround
[    0.120459][    T1] smp: Brought up 1 node, 2 CPUs
[    0.120474][    T1] SMP: Total of 2 processors activated (100.00 BogoMIPS).
[    0.120484][    T1] CPU: All CPU(s) started in SVC mode.
[    0.121173][    T1] Memory: 493472K/524288K available (10240K kernel code, 850K rwdata, 3552K rodata, 1024K init, 333K bss, 29228K reserved, 0K cma-reserved, 0K highmem)
[    0.122706][    T1] devtmpfs: initialized
[    0.128528][    T1] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.129056][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.129093][    T1] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.133843][    T1] prandom: seed boundary self test passed
[    0.136500][    T1] prandom: 100 self tests passed
[    0.136510][    T1] pinctrl core: initialized pinctrl subsystem
[    0.139413][    T1] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.140851][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.142105][    T1] audit: initializing netlink subsys (disabled)
[    0.142513][   T32] audit: type=2000 audit(0.140:1): state=initialized audit_enabled=0 res=1
[    0.143391][    T1] thermal_sys: Registered thermal governor 'step_wise'
[    0.143495][    T1] cpuidle: using governor ladder
[    0.143530][    T1] cpuidle: using governor menu
[    0.143940][    T1] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.143956][    T1] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.148760][    T1] /soc: Fixed dependency cycle(s) with /soc/internal-regs/interrupt-controller@d000
[    0.329784][    T1] raid6: int32x8  gen()   147 MB/s
[    0.499838][    T1] raid6: int32x4  gen()   158 MB/s
[    0.669732][    T1] raid6: int32x2  gen()   275 MB/s
[    0.839715][    T1] raid6: int32x1  gen()   317 MB/s
[    0.839723][    T1] raid6: using algorithm int32x1 gen() 317 MB/s
[    1.009792][    T1] raid6: .... xor() 126 MB/s, rmw enabled
[    1.009799][    T1] raid6: using intx1 recovery algorithm
[    1.012150][    T1] SCSI subsystem initialized
[    1.020251][    T1] usbcore: registered new interface driver usbfs
[    1.020315][    T1] usbcore: registered new interface driver hub
[    1.020400][    T1] usbcore: registered new device driver usb
[    1.020811][    T1] pps_core: LinuxPPS API ver. 1 registered
[    1.020821][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    1.020846][    T1] PTP clock support registered
[    1.042142][    T1] vgaarb: loaded
[    1.043014][    T1] clocksource: Switched to clocksource armada_370_xp_clocksource
[    1.049062][    T1] VFS: Disk quotas dquot_6.6.0
[    1.049373][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.065903][    T1] NET: Registered PF_INET protocol family
[    1.066167][    T1] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    1.068209][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    1.068371][    T1] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    1.068434][    T1] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    1.068512][    T1] TCP bind hash table entries: 4096 (order: 4, 65536 bytes, linear)
[    1.068637][    T1] TCP: Hash tables configured (established 4096 bind 4096)
[    1.069185][    T1] MPTCP token hash table entries: 512 (order: 1, 8192 bytes, linear)
[    1.069507][    T1] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    1.069543][    T1] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    1.070183][    T1] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    1.091576][    T1] RPC: Registered named UNIX socket transport module.
[    1.091591][    T1] RPC: Registered udp transport module.
[    1.091596][    T1] RPC: Registered tcp transport module.
[    1.091601][    T1] RPC: Registered tcp-with-tls transport module.
[    1.091606][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.091626][    T1] PCI: CLS 0 bytes, default 64
[    1.093408][   T27] Trying to unpack rootfs image as initramfs...
[    1.105522][    T1] Initialise system trusted keyrings
[    1.105687][    T1] Key type blacklist registered
[    1.107152][    T1] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[    1.107263][    T1] zbud: loaded
[    1.120339][    T1] NFS: Registering the id_resolver key type
[    1.120412][    T1] Key type id_resolver registered
[    1.120420][    T1] Key type id_legacy registered
[    1.120648][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.120670][    T1] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    1.319685][    T1] xor: measuring software checksum speed
[    1.322222][    T1]    arm4regs        :  1301 MB/sec
[    1.325708][    T1]    8regs           :   960 MB/sec
[    1.328885][    T1]    32regs          :  1039 MB/sec
[    1.328892][    T1] xor: using function: arm4regs (1301 MB/sec)
[    1.328921][    T1] async_tx: api initialized (async)
[    1.328941][    T1] Key type asymmetric registered
[    1.328951][    T1] Asymmetric key parser 'x509' registered
[    1.329672][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
[    1.330288][    T1] io scheduler bfq registered
[    1.338482][    T1] armada-375-pinctrl f1018000.pinctrl: registered pinctrl driver
[    1.341712][    T1] gpio gpiochip0: Static allocation of GPIO base is deprecated, use dynamic allocation.
[    1.344724][    T1] gpio gpiochip1: Static allocation of GPIO base is deprecated, use dynamic allocation.
[    1.346463][    T1] gpio gpiochip2: Static allocation of GPIO base is deprecated, use dynamic allocation.
[    1.349219][    T1] ledtrig-cpu: registered to indicate activity on CPUs
[    1.350248][    T1] mvebu-pcie soc:pcie@82000000: host bridge /soc/pcie@82000000 ranges:
[    1.350335][    T1] mvebu-pcie soc:pcie@82000000:      MEM 0x00f1040000..0x00f1041fff -> 0x0000040000
[    1.350377][    T1] mvebu-pcie soc:pcie@82000000:      MEM 0x00f1044000..0x00f1045fff -> 0x0000044000
[    1.350411][    T1] mvebu-pcie soc:pcie@82000000:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[    1.350445][    T1] mvebu-pcie soc:pcie@82000000:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[    1.350478][    T1] mvebu-pcie soc:pcie@82000000:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0200000000
[    1.350501][    T1] mvebu-pcie soc:pcie@82000000:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0200000000
[    1.351657][    T1] mvebu-pcie soc:pcie@82000000: PCI host bridge to bus 0000:00
[    1.351688][    T1] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.351708][    T1] pci_bus 0000:00: root bus resource [mem 0xf1040000-0xf1041fff] (bus address [0x00040000-0x00041fff])
[    1.351722][    T1] pci_bus 0000:00: root bus resource [mem 0xf1044000-0xf1045fff] (bus address [0x00044000-0x00045fff])
[    1.351733][    T1] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    1.351743][    T1] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[    1.351949][    T1] pci 0000:00:01.0: [11ab:6720] type 01 class 0x060400 PCIe Root Port
[    1.351989][    T1] pci 0000:00:01.0: PCI bridge to [bus 00]
[    1.352004][    T1] pci 0000:00:01.0:   bridge window [io  0x0000-0x0fff]
[    1.352015][    T1] pci 0000:00:01.0:   bridge window [mem 0x00000000-0x000fffff]
[    1.353080][    T1] /soc/pcie@82000000/pcie@1,0: Fixed dependency cycle(s) with /soc/pcie@82000000/pcie@1,0/interrupt-controller
[    1.353231][    T1] pci 0000:00:02.0: [11ab:6660] type 01 class 0x060400 PCIe Root Port
[    1.353267][    T1] pci 0000:00:02.0: PCI bridge to [bus 00]
[    1.353285][    T1] pci 0000:00:02.0:   bridge window [io  0x0000-0x0fff]
[    1.353296][    T1] pci 0000:00:02.0:   bridge window [mem 0x00000000-0x000fffff]
[    1.354295][    T1] /soc/pcie@82000000/pcie@2,0: Fixed dependency cycle(s) with /soc/pcie@82000000/pcie@2,0/interrupt-controller
[    1.355427][    T1] PCI: bus0: Fast back to back transfers disabled
[    1.355456][    T1] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.355487][    T1] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.356059][    T1] PCI: bus1: Fast back to back transfers enabled
[    1.356080][    T1] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    1.356599][    T1] PCI: bus2: Fast back to back transfers enabled
[    1.356618][    T1] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    1.356663][    T1] pci 0000:00:01.0: PCI bridge to [bus 01]
[    1.356685][    T1] pci 0000:00:02.0: PCI bridge to [bus 02]
[    1.356702][    T1] pci_bus 0000:00: resource 4 [mem 0xf1040000-0xf1041fff]
[    1.356714][    T1] pci_bus 0000:00: resource 5 [mem 0xf1044000-0xf1045fff]
[    1.356724][    T1] pci_bus 0000:00: resource 6 [mem 0xe0000000-0xe7ffffff]
[    1.356734][    T1] pci_bus 0000:00: resource 7 [io  0x1000-0xeffff]
[    1.357981][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[    1.394603][    T1] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    1.395788][   T27] Freeing initrd memory: 5136K
[    1.401865][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.444520][    T1] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    1.636099][    T1] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.643332][    T1] printk: legacy console [ttyS0] disabled
[    1.665264][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 40, base_baud = 12500000) is a 16550A
[    1.665369][    T1] printk: legacy console [ttyS0] enabled
[    2.990165][    T1] sata_mv f10a0000.sata: slots 32 ports 2
[    3.000059][    T1] scsi host0: sata_mv
[    3.005837][    T1] scsi host1: sata_mv
[    3.010422][    T1] ata1: SATA max UDMA/133 irq 41 lpm-pol 0
[    3.016190][    T1] ata2: SATA max UDMA/133 irq 41 lpm-pol 0
[    3.283042][    T1] marvell-nfc f10d0000.nand-controller: Timeout waiting for RB signal
[    3.291116][    T1] nand: No NAND device found
[    3.295623][    T1] marvell-nfc f10d0000.nand-controller: could not scan the nand chip
[    3.303617][    T1] marvell-nfc f10d0000.nand-controller: probe with driver marvell-nfc failed with error -110
[    3.315558][    T1] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[    3.324200][    T1] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[    3.338799][    T1] mdio_bus f10c0054.mdio-mii: MDIO device at address 0 is missing.
[    3.347157][    T1] mdio_bus f10c0054.mdio-mii: MDIO device at address 3 is missing.
[    3.350678][  T699] ata1: SATA link down (SStatus 0 SControl F300)
[    3.356448][    T1] usbcore: registered new interface driver smsc75xx
[    3.368622][    T1] orion-ehci f1054000.usb: EHCI Host Controller
[    3.374860][    T1] orion-ehci f1054000.usb: new USB bus registered, assigned bus number 1
[    3.383395][    T1] orion-ehci f1054000.usb: irq 43, io mem 0xf1054000
[    3.403151][    T1] orion-ehci f1054000.usb: USB 2.0 started, EHCI 1.00
[    3.410199][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.12
[    3.419265][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.427252][    T1] usb usb1: Product: EHCI Host Controller
[    3.432860][    T1] usb usb1: Manufacturer: Linux 6.12.6-mvebu-tld-1 ehci_hcd
[    3.440052][    T1] usb usb1: SerialNumber: f1054000.usb
[    3.446828][    T1] hub 1-0:1.0: USB hub found
[    3.451396][    T1] hub 1-0:1.0: 1 port detected
[    3.457697][    T1] xhci-hcd f1058000.usb: xHCI Host Controller
[    3.464096][    T1] xhci-hcd f1058000.usb: new USB bus registered, assigned bus number 2
[    3.472390][    T1] xhci-hcd f1058000.usb: hcc params 0x0a000990 hci version 0x100 quirks 0x0000000000000010
[    3.482441][    T1] xhci-hcd f1058000.usb: irq 44, io mem 0xf1058000
[    3.489236][    T1] xhci-hcd f1058000.usb: xHCI Host Controller
[    3.496302][    T1] xhci-hcd f1058000.usb: new USB bus registered, assigned bus number 3
[    3.504554][    T1] xhci-hcd f1058000.usb: Host supports USB 3.0 SuperSpeed
[    3.511827][    T1] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.12
[    3.520882][    T1] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.528908][    T1] usb usb2: Product: xHCI Host Controller
[    3.534538][    T1] usb usb2: Manufacturer: Linux 6.12.6-mvebu-tld-1 xhci-hcd
[    3.541716][    T1] usb usb2: SerialNumber: f1058000.usb
[    3.548482][    T1] hub 2-0:1.0: USB hub found
[    3.553107][    T1] hub 2-0:1.0: 1 port detected
[    3.558859][    T1] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    3.567942][    T1] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 6.12
[    3.576994][    T1] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.585115][    T1] usb usb3: Product: xHCI Host Controller
[    3.590731][    T1] usb usb3: Manufacturer: Linux 6.12.6-mvebu-tld-1 xhci-hcd
[    3.597931][    T1] usb usb3: SerialNumber: f1058000.usb
[    3.604624][    T1] hub 3-0:1.0: USB hub found
[    3.609184][    T1] hub 3-0:1.0: 1 port detected
[    3.615932][    T1] usbcore: registered new interface driver usblp
[    3.622435][    T1] usbcore: registered new interface driver usb-storage
[    3.630465][    T1] mousedev: PS/2 mouse device common for all mice
[    3.640615][    T1] rtc-mv f1010300.rtc: registered as rtc0
[    3.646308][    T1] rtc-mv f1010300.rtc: setting system clock to 2025-01-16T09:32:36 UTC (1737019956)
[    3.656851][    T1] i2c_dev: i2c /dev entries driver
[    3.663865][    C0] 8<--- cut here ---
[    3.667663][    C0] Unable to handle kernel NULL pointer dereference at virtual address 00000002 when read
[    3.677375][    C0] [00000002] *pgd=00000000
[    3.681681][    C0] Internal error: Oops: 5 [#1] PREEMPT SMP ARM
[    3.687725][    C0] Modules linked in:
[    3.691503][    C0] CPU: 0 UID: 0 PID: 28 Comm: kworker/u10:0 Not tainted 6.12.6-mvebu-tld-1 #1
[    3.700255][    C0] Hardware name: Marvell Armada 375 (Device Tree)
[    3.706558][    C0] Workqueue:  0x0 (events_unbound)
[    3.711566][    C0] PC is at mv64xxx_i2c_intr+0x1bc/0x5d0
[    3.717008][    C0] LR is at arch_spin_lock+0xc/0x48
[    3.722012][    C0] pc : [<c0791e54>]    lr : [<c016499c>]    psr: 80000193
[    3.729014][    C0] sp : e0801f40  ip : e08a5f08  fp : c0d2a0dc
[    3.734968][    C0] r10: c0d2a0b5  r9 : 000346dc  r8 : 0010624c
[    3.740922][    C0] r7 : c1a9e8a0  r6 : c0dfc4fc  r5 : 00000000  r4 : c1a9e840
[    3.748184][    C0] r3 : 00000000  r2 : 00000000  r1 : 00000000  r0 : 00000000
[    3.755445][    C0] Flags: Nzcv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment none
[    3.763410][    C0] Control: 10c5387d  Table: 0000404a  DAC: 00000051
[    3.769885][    C0] Register r0 information: NULL pointer
[    3.775323][    C0] Register r1 information: NULL pointer
[    3.780757][    C0] Register r2 information: NULL pointer
[    3.786189][    C0] Register r3 information: NULL pointer
[    3.791621][    C0] Register r4 information: slab kmalloc-rnd-13-1k start c1a9e800 pointer offset 64 size 1024
[    3.801703][    C0] Register r5 information: NULL pointer
[    3.807136][    C0] Register r6 information: non-slab/vmalloc memory
[    3.813530][    C0] Register r7 information: slab kmalloc-rnd-13-1k start c1a9e800 pointer offset 160 size 1024
[    3.823692][    C0] Register r8 information: non-paged memory
[    3.829474][    C0] Register r9 information: non-paged memory
[    3.835256][    C0] Register r10 information: non-slab/vmalloc memory
[    3.841735][    C0] Register r11 information: non-slab/vmalloc memory
[    3.848215][    C0] Register r12 information: 2-page vmalloc region starting at 0xe08a4000 allocated at kernel_clone+0xa0/0x214
[    3.859774][    C0] Process kworker/u10:0 (pid: 28, stack limit = 0x(ptrval))
[    3.866950][    C0] Stack: (0xe0801f40 to 0xe0802000)
[    3.872040][    C0] 1f40: 0000002f c1a9e840 00010001 c34aef40 c31d3c00 c31d3c6c 00000000 0000002f
[    3.880964][    C0] 1f60: c10b8f4a c0176320 c31d3c00 1ebd3000 00010001 c31d3c00 c0b7bc44 c31d3c6c
[    3.889888][    C0] 1f80: c31d3c6c c0aa08b4 c19209c0 c100a354 e08a5e70 c01763d8 c31d3c00 c0b7bc44
[    3.898811][    C0] 1fa0: c31d3c6c c017643c c31d3c00 c0b7bc44 c31d3c18 c017a980 c0f613b8 c100a66c
[    3.907734][    C0] 1fc0: e0809100 e0801fd8 c0aa08b4 c0175be4 c0f613b8 c0101314 e08a5e78 00000000
[    3.916657][    C0] 1fe0: ffffffff e08a5eac c0aa08b4 c0a9e49c c0143c90 20000113 ffffffff c0a6d470
[    3.925574][    C0] Call trace: 
[    3.925584][    C0]  mv64xxx_i2c_intr from __handle_irq_event_percpu+0x44/0xf0
[    3.936108][    C0]  __handle_irq_event_percpu from handle_irq_event_percpu+0xc/0x38
[    3.943905][    C0]  handle_irq_event_percpu from handle_irq_event+0x38/0x5c
[    3.951004][    C0]  handle_irq_event from handle_fasteoi_irq+0xc0/0x150
[    3.957760][    C0]  handle_fasteoi_irq from handle_irq_desc+0x1c/0x2c
[    3.964340][    C0]  handle_irq_desc from gic_handle_irq+0x58/0x64
[    3.970566][    C0]  gic_handle_irq from generic_handle_arch_irq+0x28/0x3c
[    3.977498][    C0]  generic_handle_arch_irq from call_with_stack+0x18/0x20
[    3.984521][    C0]  call_with_stack from __irq_svc+0x98/0xc8
[    3.990314][    C0] Exception stack(0xe08a5e78 to 0xe08a5ec0)
[    3.996095][    C0] 5e60:                                                       00000001 c0deb96e
[    4.005018][    C0] 5e80: 00000001 c19209c0 c19209c0 dfb36000 c31f30c0 00000000 c0aa08b4 00000080
[    4.013941][    C0] 5ea0: c100a354 e08a5f04 e08a5f08 e08a5ec8 c0aa4a44 c0143c90 20000113 ffffffff
[    4.022860][    C0]  __irq_svc from finish_task_switch+0x13c/0x1e4
[    4.029089][    C0]  finish_task_switch from __schedule+0x6b8/0x780
[    4.035411][    C0]  __schedule from schedule+0x30/0x54
[    4.040686][    C0]  schedule from worker_thread+0x1b0/0x1f0
[    4.046395][    C0]  worker_thread from kthread+0x100/0x108
[    4.052018][    C0]  kthread from ret_from_fork+0x14/0x28
[    4.057463][    C0] Exception stack(0xe08a5fb0 to 0xe08a5ff8)
[    4.063244][    C0] 5fa0:                                     00000000 00000000 00000000 00000000
[    4.072165][    C0] 5fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    4.081086][    C0] 5fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[    4.088440][    C0] Code: e2431008 e3d11008 0a00003e e5941064 (e1d100b2) 
[    4.095265][    C0] ---[ end trace 0000000000000000 ]---
[    4.100610][    C0] Kernel panic - not syncing: Fatal exception in interrupt
[    4.107763][    C0] ---[ end Kernel panic - not syncing: Fatal exception in interrupt ]---


Kernel log for ./dts/armada-375-wd-mycloud-gen2.dtb is used:

Marvell>> bootm 0x02000000 0x08000000
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-6.12.6-mvebu-tld-1
   Created:      2025-01-16   9:33:55 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5204196 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: WD MyCloud Gen2
[    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.000036][    T0] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.000469][    T0] kfence: initialized - using 2097152 bytes for 255 objects at 0x(ptrval)-0x(ptrval)
[    0.001014][    T0] Console: colour dummy device 80x30
[    0.001083][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[    0.001103][    T0] CPU: Testing write buffer coherency: ok
[    0.001160][    T0] CPU0: Spectre v2: using BPIALL workaround
[    0.001170][    T0] pid_max: default: 32768 minimum: 301
[    0.008596][    T0] LSM: initializing lsm=capability
[    0.009988][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.010010][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.015155][    T1] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.080243][    T1] Setting up static identity map for 0x100000 - 0x100060
[    0.080652][    T1] mvebu-soc-id: MVEBU SoC ID=0x6720, Rev=0x3
[    0.081177][    T1] rcu: Hierarchical SRCU implementation.
[    0.081187][    T1] rcu: 	Max phase no-delay instances is 1000.
[    0.081617][    T1] Timer migration: 1 hierarchy levels; 8 children per group; 1 crossnode level
[    0.082680][    T1] smp: Bringing up secondary CPUs ...
[    0.110008][    T1] Booting CPU 1
[    0.110223][    T0] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.110244][    T0] CPU1: Spectre v2: using BPIALL workaround
[    0.110481][    T1] smp: Brought up 1 node, 2 CPUs
[    0.110496][    T1] SMP: Total of 2 processors activated (100.00 BogoMIPS).
[    0.110507][    T1] CPU: All CPU(s) started in SVC mode.
[    0.111192][    T1] Memory: 493472K/524288K available (10240K kernel code, 850K rwdata, 3552K rodata, 1024K init, 333K bss, 29228K reserved, 0K cma-reserved, 0K highmem)
[    0.112730][    T1] devtmpfs: initialized
[    0.118551][    T1] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.119084][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.119121][    T1] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.123879][    T1] prandom: seed boundary self test passed
[    0.126537][    T1] prandom: 100 self tests passed
[    0.126546][    T1] pinctrl core: initialized pinctrl subsystem
[    0.129050][    T1] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.130928][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.132183][    T1] audit: initializing netlink subsys (disabled)
[    0.132606][   T32] audit: type=2000 audit(0.130:1): state=initialized audit_enabled=0 res=1
[    0.133485][    T1] thermal_sys: Registered thermal governor 'step_wise'
[    0.133591][    T1] cpuidle: using governor ladder
[    0.133626][    T1] cpuidle: using governor menu
[    0.134028][    T1] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.134043][    T1] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.138303][    T1] /soc: Fixed dependency cycle(s) with /soc/internal-regs/interrupt-controller@d000
[    0.319781][    T1] raid6: int32x8  gen()   147 MB/s
[    0.489833][    T1] raid6: int32x4  gen()   158 MB/s
[    0.659724][    T1] raid6: int32x2  gen()   275 MB/s
[    0.829712][    T1] raid6: int32x1  gen()   317 MB/s
[    0.829720][    T1] raid6: using algorithm int32x1 gen() 317 MB/s
[    0.999790][    T1] raid6: .... xor() 126 MB/s, rmw enabled
[    0.999797][    T1] raid6: using intx1 recovery algorithm
[    1.002239][    T1] SCSI subsystem initialized
[    1.010220][    T1] usbcore: registered new interface driver usbfs
[    1.010310][    T1] usbcore: registered new interface driver hub
[    1.010394][    T1] usbcore: registered new device driver usb
[    1.010848][    T1] pps_core: LinuxPPS API ver. 1 registered
[    1.010858][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    1.010883][    T1] PTP clock support registered
[    1.032173][    T1] vgaarb: loaded
[    1.033046][    T1] clocksource: Switched to clocksource armada_370_xp_clocksource
[    1.039065][    T1] VFS: Disk quotas dquot_6.6.0
[    1.039380][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.055838][    T1] NET: Registered PF_INET protocol family
[    1.056099][    T1] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    1.057954][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    1.058110][    T1] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    1.058166][    T1] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    1.058243][    T1] TCP bind hash table entries: 4096 (order: 4, 65536 bytes, linear)
[    1.058370][    T1] TCP: Hash tables configured (established 4096 bind 4096)
[    1.058916][    T1] MPTCP token hash table entries: 512 (order: 1, 8192 bytes, linear)
[    1.059221][    T1] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    1.059254][    T1] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    1.059919][    T1] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    1.081347][    T1] RPC: Registered named UNIX socket transport module.
[    1.081363][    T1] RPC: Registered udp transport module.
[    1.081368][    T1] RPC: Registered tcp transport module.
[    1.081373][    T1] RPC: Registered tcp-with-tls transport module.
[    1.081378][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.081398][    T1] PCI: CLS 0 bytes, default 64
[    1.081758][   T27] Trying to unpack rootfs image as initramfs...
[    1.087148][    T1] Initialise system trusted keyrings
[    1.087321][    T1] Key type blacklist registered
[    1.089059][    T1] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[    1.089175][    T1] zbud: loaded
[    1.102335][    T1] NFS: Registering the id_resolver key type
[    1.102398][    T1] Key type id_resolver registered
[    1.102406][    T1] Key type id_legacy registered
[    1.102632][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.102654][    T1] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    1.301786][    T1] xor: measuring software checksum speed
[    1.304400][    T1]    arm4regs        :  1265 MB/sec
[    1.307752][    T1]    8regs           :   983 MB/sec
[    1.310915][    T1]    32regs          :  1040 MB/sec
[    1.310921][    T1] xor: using function: arm4regs (1265 MB/sec)
[    1.310949][    T1] async_tx: api initialized (async)
[    1.310968][    T1] Key type asymmetric registered
[    1.310978][    T1] Asymmetric key parser 'x509' registered
[    1.311622][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
[    1.312313][    T1] io scheduler bfq registered
[    1.319391][    T1] armada-375-pinctrl f1018000.pinctrl: registered pinctrl driver
[    1.321881][    T1] gpio gpiochip0: Static allocation of GPIO base is deprecated, use dynamic allocation.
[    1.326531][    T1] gpio gpiochip1: Static allocation of GPIO base is deprecated, use dynamic allocation.
[    1.328257][    T1] gpio gpiochip2: Static allocation of GPIO base is deprecated, use dynamic allocation.
[    1.381439][   T27] Freeing initrd memory: 5136K
[    1.393624][    T1] ledtrig-cpu: registered to indicate activity on CPUs
[    1.395438][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[    1.434973][    T1] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    1.439660][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.484635][    T1] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    1.677198][    T1] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.684919][    T1] printk: legacy console [ttyS0] disabled
[    1.706504][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 38, base_baud = 12500000) is a 16550A
[    1.706605][    T1] printk: legacy console [ttyS0] enabled
[    2.744897][    T1] sata_mv f10a0000.sata: slots 32 ports 1
[    2.752681][    T1] scsi host0: sata_mv
[    2.758356][    T1] ata1: SATA max UDMA/133 irq 39 lpm-pol 0
[    2.768701][    T1] spi-nor spi0.0: found mx25l6405d, expected mx25l8005
[    2.775920][    T1] 1 fixed-partitions partitions found on MTD device spi0.0
[    2.783067][    T1] Creating 1 MTD partitions on "spi0.0":
[    2.788645][    T1] 0x000000000000-0x000000100000 : "u-boot"
[    2.796887][    T1] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[    2.805544][    T1] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[    2.820204][    T1] mdio_bus f10c0054.mdio-mii: MDIO device at address 0 is missing.
[    2.829845][    T1] usbcore: registered new interface driver smsc75xx
[    2.836984][    T1] orion-ehci f1054000.usb: EHCI Host Controller
[    2.843259][    T1] orion-ehci f1054000.usb: new USB bus registered, assigned bus number 1
[    2.851838][    T1] orion-ehci f1054000.usb: irq 40, io mem 0xf1054000
[    2.873101][    T1] orion-ehci f1054000.usb: USB 2.0 started, EHCI 1.00
[    2.880258][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.12
[    2.889328][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.897358][    T1] usb usb1: Product: EHCI Host Controller
[    2.902969][    T1] usb usb1: Manufacturer: Linux 6.12.6-mvebu-tld-1 ehci_hcd
[    2.910166][    T1] usb usb1: SerialNumber: f1054000.usb
[    2.916993][    T1] hub 1-0:1.0: USB hub found
[    2.921560][    T1] hub 1-0:1.0: 1 port detected
[    2.929201][    T1] xhci-hcd f1058000.usb: xHCI Host Controller
[    2.935256][    T1] xhci-hcd f1058000.usb: new USB bus registered, assigned bus number 2
[    2.943603][    T1] xhci-hcd f1058000.usb: hcc params 0x0a000990 hci version 0x100 quirks 0x0000000000000010
[    2.954736][    T1] xhci-hcd f1058000.usb: irq 41, io mem 0xf1058000
[    2.961396][    T1] xhci-hcd f1058000.usb: xHCI Host Controller
[    2.967464][    T1] xhci-hcd f1058000.usb: new USB bus registered, assigned bus number 3
[    2.975671][    T1] xhci-hcd f1058000.usb: Host supports USB 3.0 SuperSpeed
[    2.982952][    T1] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.12
[    2.992003][    T1] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.999994][    T1] usb usb2: Product: xHCI Host Controller
[    3.005615][    T1] usb usb2: Manufacturer: Linux 6.12.6-mvebu-tld-1 xhci-hcd
[    3.012794][    T1] usb usb2: SerialNumber: f1058000.usb
[    3.019501][    T1] hub 2-0:1.0: USB hub found
[    3.024097][    T1] hub 2-0:1.0: 1 port detected
[    3.029788][    T1] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    3.038904][    T1] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 6.12
[    3.047953][    T1] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.056056][    T1] usb usb3: Product: xHCI Host Controller
[    3.061670][    T1] usb usb3: Manufacturer: Linux 6.12.6-mvebu-tld-1 xhci-hcd
[    3.068874][    T1] usb usb3: SerialNumber: f1058000.usb
[    3.075444][    T1] hub 3-0:1.0: USB hub found
[    3.080009][    T1] hub 3-0:1.0: 1 port detected
[    3.084727][  T695] ata1: SATA link down (SStatus 0 SControl F300)
[    3.085754][    T1] usbcore: registered new interface driver usblp
[    3.097570][    T1] usbcore: registered new interface driver usb-storage
[    3.105369][    T1] mousedev: PS/2 mouse device common for all mice
[    3.115624][    T1] rtc-mv f1010300.rtc: registered as rtc0
[    3.121278][    T1] rtc-mv f1010300.rtc: setting system clock to 2025-01-16T09:36:54 UTC (1737020214)
[    3.131986][    T1] i2c_dev: i2c /dev entries driver
[    3.139383][    C0] 8<--- cut here ---
[    3.143175][    C0] Unable to handle kernel NULL pointer dereference at virtual address 00000002 when read
[    3.152886][    C0] [00000002] *pgd=00000000
[    3.157192][    C0] Internal error: Oops: 5 [#1] PREEMPT SMP ARM
[    3.163238][    C0] Modules linked in:
[    3.167016][    C0] CPU: 0 UID: 0 PID: 1 Comm: swapper/0 Not tainted 6.12.6-mvebu-tld-1 #1
[    3.175331][    C0] Hardware name: Marvell Armada 375 (Device Tree)
[    3.181632][    C0] PC is at mv64xxx_i2c_intr+0x1bc/0x5d0
[    3.187076][    C0] LR is at arch_spin_lock+0xc/0x48
[    3.192080][    C0] pc : [<c0791e54>]    lr : [<c016499c>]    psr: 800f0193
[    3.199081][    C0] sp : e0801f40  ip : c100a158  fp : c0d2a0dc
[    3.205034][    C0] r10: c0d2a0b5  r9 : 000346dc  r8 : 0010624c
[    3.210988][    C0] r7 : c1a180a0  r6 : c0dfc4fc  r5 : 00000000  r4 : c1a18040
[    3.218251][    C0] r3 : 00000000  r2 : 00000000  r1 : 00000000  r0 : 00000000
[    3.225511][    C0] Flags: Nzcv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment none
[    3.233475][    C0] Control: 10c5387d  Table: 01ce404a  DAC: 00000051
[    3.239949][    C0] Register r0 information: NULL pointer
[    3.245387][    C0] Register r1 information: NULL pointer
[    3.250820][    C0] Register r2 information: NULL pointer
[    3.256252][    C0] Register r3 information: NULL pointer
[    3.261684][    C0] Register r4 information: slab kmalloc-rnd-13-1k start c1a18000 pointer offset 64 size 1024
[    3.271764][    C0] Register r5 information: NULL pointer
[    3.277196][    C0] Register r6 information: non-slab/vmalloc memory
[    3.283589][    C0] Register r7 information: slab kmalloc-rnd-13-1k start c1a18000 pointer offset 160 size 1024
[    3.293751][    C0] Register r8 information: non-paged memory
[    3.299532][    C0] Register r9 information: non-paged memory
[    3.305313][    C0] Register r10 information: non-slab/vmalloc memory
[    3.311792][    C0] Register r11 information: non-slab/vmalloc memory
[    3.318270][    C0] Register r12 information: non-slab/vmalloc memory
[    3.324750][    C0] Process swapper/0 (pid: 1, stack limit = 0x(ptrval))
[    3.331489][    C0] Stack: (0xe0801f40 to 0xe0802000)
[    3.336577][    C0] 1f40: 0000002c c1a18040 00010001 c3804a80 c19e0800 c19e086c 00000000 0000002c
[    3.345501][    C0] 1f60: c10b8f4a c0176320 c19e0800 1ebd3000 00010001 c19e0800 c0b7bc44 c19e086c
[    3.354424][    C0] 1f80: c19e086c 0000002c c18bf500 c19e08d4 e082dd08 c01763d8 c19e0800 c0b7bc44
[    3.363347][    C0] 1fa0: c19e086c c017643c c19e0800 c0b7bc44 c19e0818 c017a980 c0f613b8 c100a66c
[    3.372270][    C0] 1fc0: e0809100 e0801fd8 0000002c c0175be4 c0f613b8 c0101314 e082dd10 00000000
[    3.381193][    C0] 1fe0: ffffffff e082dd44 0000002c c0a9e49c c0aa4d80 600f0013 ffffffff c0a6d470
[    3.390110][    C0] Call trace: 
[    3.390120][    C0]  mv64xxx_i2c_intr from __handle_irq_event_percpu+0x44/0xf0
[    3.400644][    C0]  __handle_irq_event_percpu from handle_irq_event_percpu+0xc/0x38
[    3.408441][    C0]  handle_irq_event_percpu from handle_irq_event+0x38/0x5c
[    3.415539][    C0]  handle_irq_event from handle_fasteoi_irq+0xc0/0x150
[    3.422296][    C0]  handle_fasteoi_irq from handle_irq_desc+0x1c/0x2c
[    3.428875][    C0]  handle_irq_desc from gic_handle_irq+0x58/0x64
[    3.435101][    C0]  gic_handle_irq from generic_handle_arch_irq+0x28/0x3c
[    3.442031][    C0]  generic_handle_arch_irq from call_with_stack+0x18/0x20
[    3.449053][    C0]  call_with_stack from __irq_svc+0x98/0xc8
[    3.454846][    C0] Exception stack(0xe082dd10 to 0xe082dd58)
[    3.460628][    C0] dd00:                                     c19e086c 600f0013 00200004 00000005
[    3.469552][    C0] dd20: c19e0800 c3804a80 00000000 00000000 0000002c 600f0013 c19e08d4 c19e086c
[    3.478474][    C0] dd40: c100a158 e082dd60 c0aa4d7c c0aa4d80 600f0013 ffffffff
[    3.485822][    C0]  __irq_svc from _raw_spin_unlock_irqrestore+0x1c/0x48
[    3.492662][    C0]  _raw_spin_unlock_irqrestore from __setup_irq+0x554/0x6d0
[    3.499852][    C0]  __setup_irq from request_threaded_irq+0xac/0x13c
[    3.506344][    C0]  request_threaded_irq from mv64xxx_i2c_probe+0x234/0x530
[    3.513446][    C0]  mv64xxx_i2c_probe from platform_probe+0x58/0xa8
[    3.519856][    C0]  platform_probe from really_probe+0x174/0x368
[    3.526002][    C0]  really_probe from __driver_probe_device+0x194/0x1c4
[    3.532755][    C0]  __driver_probe_device from driver_probe_device+0x38/0xb4
[    3.539944][    C0]  driver_probe_device from __driver_attach+0x90/0x160
[    3.546697][    C0]  __driver_attach from bus_for_each_dev+0x78/0xbc
[    3.553099][    C0]  bus_for_each_dev from bus_add_driver+0x114/0x22c
[    3.559587][    C0]  bus_add_driver from driver_register+0xb8/0x100
[    3.565903][    C0]  driver_register from do_one_initcall+0x5c/0x244
[    3.572307][    C0]  do_one_initcall from kernel_init_freeable+0x1fc/0x240
[    3.579238][    C0]  kernel_init_freeable from kernel_init+0x14/0x138
[    3.585734][    C0]  kernel_init from ret_from_fork+0x14/0x28
[    3.591525][    C0] Exception stack(0xe082dfb0 to 0xe082dff8)
[    3.597307][    C0] dfa0:                                     00000000 00000000 00000000 00000000
[    3.606228][    C0] dfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.615149][    C0] dfe0: 00000000 00000000 00000000 00000000 00000013 00000000
[    3.622503][    C0] Code: e2431008 e3d11008 0a00003e e5941064 (e1d100b2) 
[    3.629328][    C0] ---[ end trace 0000000000000000 ]---
[    3.634673][    C0] Kernel panic - not syncing: Fatal exception in interrupt
[    3.641825][    C0] ---[ end Kernel panic - not syncing: Fatal exception in interrupt ]---

What should I try next?
Re: Debian on Synology DS215j
January 16, 2025 01:45PM
ZooMoo,

> Although there is an error regarding NAND
> controller for the stock DTB (armada-375-db.dtb).
> Rechecking the previous kernel logs, it also
> occures with the 6.6.2 kernel.

This Synology DS215j has SPI flash, not NAND flash. So any NAND error is OK.

> What should I try next?

1. For you: Please get a listing of the envs at serial console. If might show the DTB name in one of the envs. if you can boot into stock DSM then look for that DTB somewhere in stock rootfs. And also get some info in u-boot.

printenv
mdio list
mii info

Please post the entire serial console log until here.

2: For me: I'll take a look at the DTS and see if I can strip out the i2c part and recompile.

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



Edited 2 time(s). Last edit at 01/16/2025 03:09PM by bodhi.
Re: Debian on Synology DS215j
January 16, 2025 03:18PM
ZooMoo,

Try booting with this new DTB.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Attachments:
open | download - armada-375-synology-ds215j.dtb (12.5 KB)
open | download - armada-375-synology-ds215j.dts (1.8 KB)
Re: Debian on Synology DS215j
January 16, 2025 05:31PM
1.a It might show the DTB name in one of the envs. And also get some info in u-boot.

According to printenv, the stock u-boot refers to the stock dtb file:

fdtfile=armada-375-db.dtb



U-boot start up log:

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
SF: Detected MX25L6405D with page size 64 KiB, total 8 MiB
Erasing SPI flash....Writing to SPI flash.....done
syno: reset for network status 

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
l
 __   __                      _ _
|  \/  | __ _ _ ____   _____| | |
| |\/| |/ _` | '__\ \ / / _ \ | |
| |  | | (_| | |   \ 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

Abort
ping failed; host 192.168.27.90 is not alive
SF: Detected MX25L6405D with page size 64 KiB, total 8 MiB
Erasing SPI flash....Writing to SPI flash.....done
syno: reset for network status 

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
l
 __   __                      _ _
|  \/  | __ _ _ ____   _____| | |
| |\/| |/ _` | '__\ \ / / _ \ | |
| |  | | (_| | |   \ 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

Abort
ping failed; host 192.168.27.90 is not alive
skip auto reset......
SF: Detected MX25L6405D with page size 64 KiB, total 8 MiB
Erasing SPI flash....Writing to SPI flash.....done
Press Ctrl+C to abort autoboot in 3 second


printenv output:

Marvell>> printenv
CASset=max
MALLOC_len=5
MPmode=SMP
autoload=no
baudrate=115200
boot_order=hd_scr usb_scr mmc_scr hd_img usb_img mmc_img pxe net_img net_scr
bootargs= 
bootargs_dflt=$console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel
bootargs_end=:10.4.50.254:255.255.255.0:Armada375:eth0:none
bootargs_root=root=/dev/nfs rw
bootcmd=run syno_bootargs; run bootspi
bootcmd_auto=stage_boot $boot_order
bootcmd_fdt=tftpboot 0x2000000 $image_name;tftpboot $fdtaddr $fdtfile;setenv bootargs $console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel; bootz 0x2000000 - $fdtaddr;
bootcmd_fdt_boot=tftpboot 0x2000000 $image_name; setenv bootargs $console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel; bootz 0x2000000 - $fdtaddr;
bootcmd_fdt_edit=tftpboot $fdtaddr $fdtfile; fdt addr $fdtaddr; setenv bootcmd $bootcmd_fdt_boot
bootcmd_lgcy=tftpboot 0x2000000 $image_name; setenv bootargs $bootargs_dflt; bootm 0x2000000; 
bootdelay=3
bootspi=sf probe 0 50000000;sf read $loadaddr_kernel $spi_pt_addr_kernel $spi_pt_size_kernel;sf read $loadaddr_rootfs $spi_pt_addr_fs $spi_pt_size_fs;bootm 0x2000000 0x8000000; 
cacheShare=no
console=console=ttyS0,115200
device_partition=0:1
disL2Cache=yes
disL2Prefetch=yes
disaMvPnp=no
eeeEnable=no
enaClockGating=no
enaCpuStream=no
enaDCPref=yes
enaFPU=yes
enaICPref=yes
enaMonExt=no
enaWrAllo=no
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
fdt_addr=2040000
fdt_skip_update=no
fdtaddr=0x1000000
fdtfile=armada-375-db.dtb
ide_path=/
image_name=uImage
initrd_name=uInitrd
ipaddr=10.4.50.120
kernel_addr_r=2080000
lcd0_enable=0
lcd0_params=640x480-16@60
lcd_panel=0
loadaddr=0x02000000
loadaddr_kernel=0x2000000
loadaddr_rootfs=0x8000000
loads_echo=0
mtdids=spi0=spi_flash
mtdparts=mtdparts=spi_flash:4m(boot),-(spi-rootfs)
mvNetConfig=mv_net_config=4,(00:50:43:11:11:11,0:1:2:3),mtu=1500
mv_pon_addr=00:50:43:02:00:00
netbsd_en=no
netmask=255.255.255.0
netretry=no
pcieTune=no
pexMode=RC
pxe_files_load=:default.arm-armadaxp-db:default.arm-armadaxp:default.arm
pxefile_addr_r=3100000
ramdisk_addr_r=2880000
rootpath=/srv/nfs/
sata_delay_reset=0
sata_dma_mode=yes
script_addr_r=3000000
script_name=boot.scr
serverip=10.4.50.1
setL2CacheWT=no
spi_pt_addr_fs=0x03C0000
spi_pt_addr_kernel=0x00F0000
spi_pt_size_fs=0x0410000
spi_pt_size_kernel=0x02D0000
standalone=fsload 0x2000000 $image_name;setenv bootargs $console $nandEcc $mtdparts root=/dev/mtdblock0 rw ip=$ipaddr:$serverip$bootargs_end; bootm 0x2000000;
stderr=serial
stdin=serial
stdout=serial
syno_boot_dev=/dev/md0
syno_bootargs=setenv bootargs console=ttyS0,115200 ip=off initrd=$loadaddr_rootfs root=$syno_boot_dev rw $syno_extra_args syno_hw_version=$syno_hw_version hd_power_on_seq=$syno_hdd_powerup_seq ihd_num=$syno_hdd_powerup_seq netif_num=$syno_net_if_num flash_size="8"
syno_extra_args= 
syno_hdd_powerup_seq=2
syno_hw_version=DS215jv10
syno_net_if_num=1
syno_reset=0
usb0Mode=host
usbActive=0
usbType=3
vxworks_en=no
yuk_ethaddr=00:00:00:EE:51:81

Environment size: 3714/65532 bytes


Neither of the following commands are found:


Marvell>> mdio list
Unknown command 'mdio' - try 'help'
Marvell>> mii info
Unknown command 'mii' - try 'help'


Available commands:

Marvell>> help
?       - alias for 'help'
Creset  - Creset	- Run 'reset' or boot command in a loop, while counting.

SatR    - Sample At Reset sub-system

WOLTest - WOLTest	- Wake On Lan u-boot testing

active_units- print active units on board
base    - print or set address offset
bdinfo  - print Board Info structure
boot    - boot default, i.e., run 'bootcmd'
boot_menu- command allows to select boot script from boot device
	example: boot_menu
bootd   - boot default, i.e., run 'bootcmd'
bootelf - Boot from an ELF image in memory
bootm   - boot application image from memory
bootp   - boot image via network using BOOTP/TFTP protocol
bootvx  - Boot vxWorks from an ELF image
bootz   - boot Linux zImage image from memory
bubt    - bubt	- Burn an image on the Boot SPI Flash.

chpart  - change active partition
cmp     - memory compare
coninfo - print console devices and information
cp      - memory copy
crc32   - checksum calculation
date    - get/set/reset date & time
ddrPhyRead- ddrPhyRead - Read DDR PHY register

ddrPhyWrite- ddrPhyWrite - Write DDR PHY register

dhcp    - boot image via network using DHCP/TFTP protocol
diskboot- diskboot- boot from IDE device

dma     - dma	- Perform DMA using the XOR engine

echo    - echo args to console
editenv - edit environment variable
eeprom  - EEPROM sub-system
env     - environment handling commands
exit    - exit script
ext2load- load binary file from a Ext2 filesystem
ext2ls  - list files in a directory (default /)
ext4load- load binary file from a Ext4 filesystem
ext4ls  - list files in a directory (default /)
ext4write- create a file in the root directory
false   - do nothing, unsuccessfully
fatinfo - print information about filesystem
fatload - load binary file from a dos filesystem
fatls   - list files in a directory (default /)
fdt     - flattened device tree utility commands
fsinfo  - print information about filesystems
fsload  - load binary file from a filesystem image
go      - start application at address 'addr'
help    - print command description/usage
i2c     - I2C sub-system
ide     - ide     - IDE sub-system

iminfo  - print header information for application image
imxtract- extract a part of a multi-image
ir      - ir	- reading and changing MV internal register values.

itest   - return true/false on integer compare
loadb   - load binary file over serial line (kermit mode)
loads   - load S-Record file over serial line
loadx   - load binary file over serial line (xmodem mode)
loady   - load binary file over serial line (ymodem mode)
loop    - infinite loop on address range
ls      - list files in a directory (default /)
map     - map	- Display address decode windows

md      - memory display
me      - me	- PCIe master enable

mm      - memory modify (auto-incrementing address)
mmc     - MMC sub system
mmcinfo - display MMC info
mp      - mp	- map PCIe BAR

mtdparts- define flash/nand partitions
mtest   - simple RAM read/write test
mw      - memory write (fill)
nfs     - boot image via network using NFS protocol
nm      - memory modify (constant address)
pci     - list and access PCI Configuration Space
pciePhyRead- phyRead	- Read PCI-E Phy register

pciePhyWrite- pciePhyWrite	- Write PCI-E Phy register

phyRead - phyRead	- Read Phy register

phyWrite- phyWrite	- Write Phy register

ping    - send ICMP ECHO_REQUEST to network host
printenv- print environment variables
pxe     - commands to get and boot from pxe files
rcvr    - rcvr	- Start recovery process (with TFTP server)

reset   - Perform RESET of the CPU
resetenv- resetenv	- Erase environment sector to reset all variables to default.

run     - run commands in an environment variable
saveenv - save environment variables to persistent storage
scsi    - SCSI sub-system
scsiboot- boot from SCSI device
se      - se	- PCIe Slave enable

setenv  - set environment variables
sf      - SPI flash sub-system
sg      - sg	- scanning the PHYs status

showvar - print local hushshell variables
sleep   - delay execution for some time
source  - run script from memory
sp      - scan and detect all devices on PCI-e interface
sspi    - SPI utility command
stage_boot- command to load script/image from different devices
	example: stage_boot hd_img pxe
syno_pwoff- syno_pwoff    - bring the system down

sys_restore- sys_restore	- Search for install script on USB DOK and start installation of linux kernel and rootfs.

sysboot - command to get and boot from syslinux files
temp    - temp	- Display the device temperature.

tempCmd0- tempCmd - This command allocated for monitor extinction

tempCmd1- tempCmd - This command allocated for monitor extinction

tempCmd2- tempCmd - This command allocated for monitor extinction

tempCmd3- tempCmd - This command allocated for monitor extinction

test    - minimal test like /bin/sh
tftpboot- boot image via network using TFTP protocol
training- training	- prints the results of the DDR3 Training.

true    - do nothing, successfully
ts_report- ts_report	- report touch screen coordinate

ts_test - ts_test	- test touch screen

ubi     - ubi commands
ubifsload- load file from an UBIFS filesystem
ubifsls - list files in a directory
ubifsmount- mount UBIFS volume
ubifsumount- unmount UBIFS volume
usb     - USB sub-system
usbboot - boot from USB device
version - print monitor, compiler and linker version
whoAmI  - - reading CPU ID

1.b if you can boot into stock DSM then look for that DTB somewhere in stock rootfs.

Logging into DSM 6.2.4, I cannot find any .dtb files.

# find / -iname "*dtb"


Or is there another method to find it?


I'll try your updated DTB and update soon.
Re: Debian on Synology DS215j
January 16, 2025 05:53PM
Quote

According to printenv, the stock u-boot refers to the stock dtb file:

fdtfile=armada-375-db.dtb

I'd doubt that this armada-375-db.dtb is compiled from mainline armada-375-db.dts.

Quote

Logging into DSM 6.2.4, I cannot find any .dtb files.

dtc -I fs -O dtb /proc/device-tree > ds215j.dtb
dtc -I fs -O dts /proc/device-tree > ds215j.dts

But the device-tree-compiler is needed, not sure if DSM allows installation?
apt-get install device-tree-compiler

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Synology DS215j
January 16, 2025 06:58PM
DSM is missing /proc/device-tree.

# ls -l /proc/device*
-r--r--r-- 1 root root 0 Jan 17 10:47 /proc/devices

# cat /proc/devices 
Character devices:
  1 mem
  2 pty
  3 ttyp
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
 10 misc
 13 input
 21 sg
 89 i2c
 90 mtd
128 ptm
136 pts
180 usb
189 usb_device
201 synobios
254 bsg

Block devices:
  1 ramdisk
259 blkext
  7 loop
  8 sd
  9 md
 31 mtdblock
 65 sd
 66 sd
 67 sd
 68 sd
 69 sd
 70 sd
 71 sd
128 sd
129 sd
130 sd
131 sd
132 sd
133 sd
134 sd
135 sd
253 device-mapper
254 mdp


Unfortunately DSM does not have apt-get. The synology equivalant is synopkg, but Synology only provide their (limited) packages:

Install packages from the command line #3403
bittner opened this issue Jul 27, 2018 · 11 comments
https://github.com/SynoCommunity/spksrc/issues/3403

sudo synopkg install <package.spk>

Which is the main reason to free Synology hardware from ... Synology. They have a habit of removing features from their software that customers paid for.

Surveillance station update removes movement detection
https://www.reddit.com/r/synology/comments/1huai36/comment/m5kpyj3/


Oh, No... DSM 7.1 *REMOVED* critical SSD/NVME Cache Functionality!!! :-(
Thread starter blogthis Start date 31. May 2022 Latest activity Latest activity: 6. Mar 2024 Replies 16 Views 13,117
https://www.synoforum.com/threads/oh-no-dsm-7-1-removed-critical-ssd-nvme-cache-functionality.8899/
Re: Debian on Synology DS215j
January 16, 2025 08:09PM
ZooMo,

Try:

1. Boot with my updated DTB.

2. Look for GPL source for this box. I do have some Synology GPL source, but none has DS215j on it.

====

BTW, in DSM, see if the device tree is at a different location:

ls -l /sys/firmware/devicetree/base

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



Edited 1 time(s). Last edit at 01/17/2025 12:26AM by bodhi.
Re: Debian on Synology DS215j
January 17, 2025 06:08AM
BTW, in DSM, see if the device tree is at a different location:

ls -l /sys/firmware/devicetree/base


The directory does not exist, searching /sys yields no results:

$ sudo find /sys/ -iname "*tree*"                                                                                            
/sys/module/rcutree
/sys/module/quota_tree



1. Boot with my updated DTB.

Using your updated DTB:

# cp ./Downloads/armada-375-synology-ds215j.dtb ./dts/
# cp -a zImage-6.12.6-mvebu-tld-1 zImage.fdt
# cat ./dts/armada-375-synology-ds215j.dtb >> zImage.fdt
# mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-6.12.6-mvebu-ds215j -d zImage.fdt uImage
# sync
# umount /media/user1/usbstick

Plug usb into DS215j, start serial console, stop u-boot:

Note, I updated the syno_hw_version=DS215jv10 inline with the stock kernel logs. Changing the syno_hw_version value should not make a difference, right?


Marvell>> setenv usbActive 1
Marvell>> usb start
Marvell>> ext2load usb 0:1 0x02000000 /boot/uImage
5192845 bytes read in 637 ms (7.8 MiB/s)
Marvell>> ext2load usb 0:1 0x08000000 /boot/uInitrd
5257173 bytes read in 225 ms (22.3 MiB/s)
Marvell>> setenv bootargs 'console=ttyS0,115200 ip=off root=/dev/sda1 rw syno_hw_version=DS215jv10 ihd_num=2 netif_num=1 flash_size=8'
Marvell>> bootm 0x02000000 0x08000000

And.....it WORKS!! Thanks Bodhi!

Kernel log:

Marvell>> bootm 0x02000000 0x08000000
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-6.12.6-mvebu-ds215j
   Created:      2025-01-17   9:53:00 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5203727 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=DS215jv10 ihd_num=2 netif_num=1 flash_size=8
[    0.000000][    T0] Unknown kernel command line parameters "syno_hw_version=DS215jv10 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.000015][    T0] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.000438][    T0] kfence: initialized - using 2097152 bytes for 255 objects at 0x(ptrval)-0x(ptrval)
[    0.000945][    T0] Console: colour dummy device 80x30
[    0.001012][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[    0.001032][    T0] CPU: Testing write buffer coherency: ok
[    0.001088][    T0] CPU0: Spectre v2: using BPIALL workaround
[    0.001097][    T0] pid_max: default: 32768 minimum: 301
[    0.008483][    T0] LSM: initializing lsm=capability
[    0.009903][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.009924][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.015082][    T1] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.080245][    T1] Setting up static identity map for 0x100000 - 0x100060
[    0.080659][    T1] mvebu-soc-id: MVEBU SoC ID=0x6720, Rev=0x3
[    0.081174][    T1] rcu: Hierarchical SRCU implementation.
[    0.081183][    T1] rcu: 	Max phase no-delay instances is 1000.
[    0.081636][    T1] Timer migration: 1 hierarchy levels; 8 children per group; 1 crossnode level
[    0.099831][    T1] smp: Bringing up secondary CPUs ...
[    0.130003][    T1] Booting CPU 1
[    0.130221][    T0] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.130242][    T0] CPU1: Spectre v2: using BPIALL workaround
[    0.130471][    T1] smp: Brought up 1 node, 2 CPUs
[    0.130486][    T1] SMP: Total of 2 processors activated (100.00 BogoMIPS).
[    0.130497][    T1] CPU: All CPU(s) started in SVC mode.
[    0.131145][    T1] Memory: 493480K/524288K available (10240K kernel code, 850K rwdata, 3552K rodata, 1024K init, 333K bss, 29228K reserved, 0K cma-reserved, 0K highmem)
[    0.132670][    T1] devtmpfs: initialized
[    0.138248][    T1] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.138778][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.138814][    T1] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.143598][    T1] prandom: seed boundary self test passed
[    0.146256][    T1] prandom: 100 self tests passed
[    0.146265][    T1] pinctrl core: initialized pinctrl subsystem
[    0.149275][    T1] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.150727][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.152001][    T1] audit: initializing netlink subsys (disabled)
[    0.152414][   T32] audit: type=2000 audit(0.150:1): state=initialized audit_enabled=0 res=1
[    0.153306][    T1] thermal_sys: Registered thermal governor 'step_wise'
[    0.153413][    T1] cpuidle: using governor ladder
[    0.153453][    T1] cpuidle: using governor menu
[    0.153845][    T1] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.153861][    T1] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.157857][    T1] /soc: Fixed dependency cycle(s) with /soc/internal-regs/interrupt-controller@d000
[    0.339793][    T1] raid6: int32x8  gen()   147 MB/s
[    0.509725][    T1] raid6: int32x4  gen()   158 MB/s
[    0.679752][    T1] raid6: int32x2  gen()   275 MB/s
[    0.849729][    T1] raid6: int32x1  gen()   318 MB/s
[    0.849738][    T1] raid6: using algorithm int32x1 gen() 318 MB/s
[    1.019764][    T1] raid6: .... xor() 127 MB/s, rmw enabled
[    1.019772][    T1] raid6: using intx1 recovery algorithm
[    1.022146][    T1] SCSI subsystem initialized
[    1.030193][    T1] usbcore: registered new interface driver usbfs
[    1.030256][    T1] usbcore: registered new interface driver hub
[    1.030344][    T1] usbcore: registered new device driver usb
[    1.030788][    T1] pps_core: LinuxPPS API ver. 1 registered
[    1.030797][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    1.030822][    T1] PTP clock support registered
[    1.052131][    T1] vgaarb: loaded
[    1.052999][    T1] clocksource: Switched to clocksource armada_370_xp_clocksource
[    1.058993][    T1] VFS: Disk quotas dquot_6.6.0
[    1.059315][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.075549][    T1] NET: Registered PF_INET protocol family
[    1.075783][    T1] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    1.077749][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    1.077898][    T1] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    1.077960][    T1] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    1.078042][    T1] TCP bind hash table entries: 4096 (order: 4, 65536 bytes, linear)
[    1.078167][    T1] TCP: Hash tables configured (established 4096 bind 4096)
[    1.078714][    T1] MPTCP token hash table entries: 512 (order: 1, 8192 bytes, linear)
[    1.079037][    T1] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    1.079072][    T1] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    1.079712][    T1] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    1.101129][    T1] RPC: Registered named UNIX socket transport module.
[    1.101144][    T1] RPC: Registered udp transport module.
[    1.101149][    T1] RPC: Registered tcp transport module.
[    1.101154][    T1] RPC: Registered tcp-with-tls transport module.
[    1.101159][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.101179][    T1] PCI: CLS 0 bytes, default 64
[    1.101530][   T27] Trying to unpack rootfs image as initramfs...
[    1.107185][    T1] Initialise system trusted keyrings
[    1.107325][    T1] Key type blacklist registered
[    1.108945][    T1] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[    1.109063][    T1] zbud: loaded
[    1.122123][    T1] NFS: Registering the id_resolver key type
[    1.122172][    T1] Key type id_resolver registered
[    1.122180][    T1] Key type id_legacy registered
[    1.122384][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.122429][    T1] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    1.321383][    T1] xor: measuring software checksum speed
[    1.324058][    T1]    arm4regs        :  1252 MB/sec
[    1.327417][    T1]    8regs           :   983 MB/sec
[    1.330578][    T1]    32regs          :  1040 MB/sec
[    1.330584][    T1] xor: using function: arm4regs (1252 MB/sec)
[    1.330619][    T1] async_tx: api initialized (async)
[    1.330644][    T1] Key type asymmetric registered
[    1.330658][    T1] Asymmetric key parser 'x509' registered
[    1.331349][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
[    1.331972][    T1] io scheduler bfq registered
[    1.336933][    T1] armada-375-pinctrl f1018000.pinctrl: registered pinctrl driver
[    1.338756][    T1] gpio gpiochip0: Static allocation of GPIO base is deprecated, use dynamic allocation.
[    1.343838][    T1] gpio gpiochip1: Static allocation of GPIO base is deprecated, use dynamic allocation.
[    1.345568][    T1] gpio gpiochip2: Static allocation of GPIO base is deprecated, use dynamic allocation.
[    1.348944][    T1] ledtrig-cpu: registered to indicate activity on CPUs
[    1.349934][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[    1.394635][    T1] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    1.400595][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.402034][   T27] Freeing initrd memory: 5136K
[    1.444655][    T1] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    1.630001][    T1] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.637209][    T1] printk: legacy console [ttyS0] disabled
[    1.658977][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 38, base_baud = 12500000) is a 16550A
[    1.659091][    T1] printk: legacy console [ttyS0] enabled
[    2.698187][    T1] sata_mv f10a0000.sata: slots 32 ports 2
[    2.707712][    T1] scsi host0: sata_mv
[    2.713541][    T1] scsi host1: sata_mv
[    2.718113][    T1] ata1: SATA max UDMA/133 irq 39 lpm-pol 0
[    2.723873][    T1] ata2: SATA max UDMA/133 irq 39 lpm-pol 0
[    2.735144][    T1] 1 fixed-partitions partitions found on MTD device spi0.0
[    2.742257][    T1] Creating 1 MTD partitions on "spi0.0":
[    2.748058][    T1] 0x000000000000-0x000000100000 : "u-boot"
[    2.756645][    T1] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[    2.765288][    T1] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[    2.782310][    T1] mdio_bus f10c0054.mdio-mii: MDIO device at address 0 is missing.
[    2.791475][    T1] usbcore: registered new interface driver smsc75xx
[    2.798537][    T1] orion-ehci f1054000.usb: EHCI Host Controller
[    2.804772][    T1] orion-ehci f1054000.usb: new USB bus registered, assigned bus number 1
[    2.813353][    T1] orion-ehci f1054000.usb: irq 40, io mem 0xf1054000
[    2.833035][    T1] orion-ehci f1054000.usb: USB 2.0 started, EHCI 1.00
[    2.840162][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.12
[    2.849230][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.857218][    T1] usb usb1: Product: EHCI Host Controller
[    2.862828][    T1] usb usb1: Manufacturer: Linux 6.12.6-mvebu-tld-1 ehci_hcd
[    2.870064][    T1] usb usb1: SerialNumber: f1054000.usb
[    2.876896][    T1] hub 1-0:1.0: USB hub found
[    2.881458][    T1] hub 1-0:1.0: 1 port detected
[    2.888982][    T1] xhci-hcd f1058000.usb: xHCI Host Controller
[    2.895052][    T1] xhci-hcd f1058000.usb: new USB bus registered, assigned bus number 2
[    2.903372][    T1] xhci-hcd f1058000.usb: hcc params 0x0a000990 hci version 0x100 quirks 0x0000000000000010
[    2.914261][    T1] xhci-hcd f1058000.usb: irq 41, io mem 0xf1058000
[    2.920990][    T1] xhci-hcd f1058000.usb: xHCI Host Controller
[    2.927031][    T1] xhci-hcd f1058000.usb: new USB bus registered, assigned bus number 3
[    2.935245][    T1] xhci-hcd f1058000.usb: Host supports USB 3.0 SuperSpeed
[    2.942519][    T1] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.12
[    2.951576][    T1] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.959571][    T1] usb usb2: Product: xHCI Host Controller
[    2.965193][    T1] usb usb2: Manufacturer: Linux 6.12.6-mvebu-tld-1 xhci-hcd
[    2.972372][    T1] usb usb2: SerialNumber: f1058000.usb
[    2.979180][    T1] hub 2-0:1.0: USB hub found
[    2.983819][    T1] hub 2-0:1.0: 1 port detected
[    2.989582][    T1] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    2.998730][    T1] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 6.12
[    3.007780][    T1] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.015875][    T1] usb usb3: Product: xHCI Host Controller
[    3.021489][    T1] usb usb3: Manufacturer: Linux 6.12.6-mvebu-tld-1 xhci-hcd
[    3.028730][    T1] usb usb3: SerialNumber: f1058000.usb
[    3.035422][    T1] hub 3-0:1.0: USB hub found
[    3.039983][    T1] hub 3-0:1.0: 1 port detected
[    3.044788][  T685] ata1: SATA link down (SStatus 0 SControl F300)
[    3.046675][    T1] usbcore: registered new interface driver usblp
[    3.057606][    T1] usbcore: registered new interface driver usb-storage
[    3.065610][    T1] mousedev: PS/2 mouse device common for all mice
[    3.075809][    T1] rtc-mv f1010300.rtc: registered as rtc0
[    3.081463][    T1] rtc-mv f1010300.rtc: setting system clock to 2025-01-17T09:59:23 UTC (1737107963)
[    3.092162][    T1] i2c_dev: i2c /dev entries driver
[    3.195472][    T1] orion_wdt: Initial timeout 171 sec
[    3.201937][    T1] device-mapper: uevent: version 1.0.3
[    3.208362][    T1] device-mapper: ioctl: 4.48.0-ioctl (2023-03-01) initialised: dm-devel@lists.linux.dev
[    3.218726][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[    3.226100][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[    3.233493][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[    3.241005][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[    3.249234][    T1] sdhci: Secure Digital Host Controller Interface driver
[    3.256461][    T1] sdhci: Copyright(c) Pierre Ossman
[    3.261913][    T1] sdhci-pltfm: SDHCI platform and OF driver helper
[    3.268400][   T62] usb 2-1: new high-speed USB device number 2 using xhci-hcd
[    3.277034][    T1] marvell-cesa f1090000.crypto: CESA device successfully registered
[    3.285412][    T1] hid: raw HID events driver (C) Jiri Kosina
[    3.292489][    T1] usbcore: registered new interface driver usbhid
[    3.298917][    T1] usbhid: USB HID core driver
[    3.304966][    T1] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 (8000003f) counters available
[    3.317305][    T1] NET: Registered PF_INET6 protocol family
[    3.325145][    T1] Segment Routing with IPv6
[    3.329551][    T1] RPL Segment Routing with IPv6
[    3.334499][    T1] In-situ OAM (IOAM) with IPv6
[    3.339285][    T1] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    3.349059][    T1] NET: Registered PF_PACKET protocol family
[    3.355332][    T1] 8021q: 802.1Q VLAN Support v1.8
[    3.360364][    T1] Key type dns_resolver registered
[    3.365794][    T1] ThumbEE CPU extension supported.
[    3.370811][    T1] Registering SWP/SWPB emulation handler
[    3.375868][  T690] ata2: SATA link down (SStatus 0 SControl F300)
[    3.425512][    T1] registered taskstats version 1
[    3.430590][    T1] Loading compiled-in X.509 certificates
[    3.437179][   T62] usb 2-1: New USB device found, idVendor=0951, idProduct=1625, bcdDevice= 2.00
[    3.446670][   T62] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    3.454899][   T62] usb 2-1: Product: DT 101 II
[    3.459476][   T62] usb 2-1: Manufacturer: Kingston
[    3.464624][   T62] usb 2-1: SerialNumber: <redacted>
[    3.473083][   T62] usb-storage 2-1:1.0: USB Mass Storage device detected
[    3.484368][    T1] Key type .fscrypt registered
[    3.489033][    T1] Key type fscrypt-provisioning registered
[    3.494908][    T1] Key type big_key registered
[    3.513990][   T62] scsi host2: usb-storage 2-1:1.0
[    3.653912][    T1] Key type encrypted registered
[    3.663495][   T31] usb_phy_generic usb3-phy: dummy supplies not allowed for exclusive requests (id=vbus)
[    3.673998][    T1] clk: Disabling unused clocks
[    3.678696][    T1] PM: genpd: Disabling unused power domains
[    3.687587][    T1] Freeing unused kernel image (initmem) memory: 1024K
[    3.695393][    T1] Checked W+X mappings: passed, no W+X pages found
[    3.701814][    T1] Run /init as init process
Loading, please wait...
Starting systemd-udevd version 252.19-1~deb12u1
[    4.574068][   T41] scsi 2:0:0:0: Direct-Access     Kingston DT 101 II        1.00 PQ: 0 ANSI: 2
[    4.589204][   T83] sd 2:0:0:0: [sda] 7847936 512-byte logical blocks: (4.02 GB/3.74 GiB)
[    4.598898][   T83] sd 2:0:0:0: [sda] Write Protect is off
[    4.604852][   T83] sd 2:0:0:0: [sda] No Caching mode page found
[    4.610912][   T83] sd 2:0:0:0: [sda] Assuming drive cache: write through
[    4.674656][   T83]  sda: sda1
[    4.680207][   T83] 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, 25876/245280 files, 236544/980736 blocks
done.
[    5.810120][ T1233] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[    5.884233][ T1233] EXT4-fs (sda1): mounted filesystem <redacted> 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 writable. 
Please repair the file system manually. ... failed!
A maintenance shell will now be started. 
CONTROL-D will terminate this shell and resume system boot. ... (warning).
Give 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.
[   31.183020][    C0] random: crng init done
Initializing random number generator...done.
Configuring network interfaces...Internet Systems Consortium DHCP Client 4.4.3-P1
Copyright 2004-2022 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Cannot find device "eth0"
Failed to get interface index: No such device

If you think you have received this message due to a bug rather
than a configuration issue please read the section on submitting
bugs on either our web page at www.isc.org or in the README file
before submitting a bug.  These pages explain the proper
process and the information we find helpful for debugging.

exiting.
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...
1992 (syslogd)
.
Starting NTP server: ntpd2025-01-17T02:00:02 ntpd[2030]: INIT: ntpd ntpsec-1.2.2: Starting
2025-01-17T02:00:02 ntpd[2030]: INIT: Command line: /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 104:109
.
Starting NTP server: ntpd2025-01-17T02:00:02 ntpd[2014]: INIT: ntpd ntpsec-1.2.2: Starting
2025-01-17T02:00:02 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 OpenBSD Secure Shell server: sshdsshd: no hostkeys available -- exiting.
 failed!
Starting system message bus: dbus.
Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
2028 (klogd)
.
Running local boot scripts (/etc/rc.local)
ssh-keygen: generating new host keys: RSA 
ECDSA 
ED25519 

Starting OpenBSD Secure Shell server: sshd
.
Configuration file wrong or corrupted
<13>Jan 17 02:00:16 root[2079]: Cannot read u-boot env ethaddr
.

Debian GNU/Linux 12 debian ttyS0

debian login:

Now to figure out what works or doesn't.


2. Look for GPL source for this box. I do have some Synology GPL source, but none has DS215j on it.

I found Synology have moved from SourceForge (https://sourceforge.net/projects/dsgpl/) to a new website with their source code (https://archive.synology.com/download).
But you have to download each package individually for each specific architecture. Making it deliberately hard to get access to the source code for a given architecture.

I've downloaded the following components of the DSM 6.2 source code https://global.synologydownload.com/download/ToolChain/Synology%20NAS%20GPL%20Source/
(I had tried to install DSM 7.1 but it kept failing).

$ wget https://global.synologydownload.com/download/ToolChain/Synology%20NAS%20GPL%20Source/6.2-25556/armada375/linux-3.x.txz
$ wget https://global.synologydownload.com/download/ToolChain/Synology%20NAS%20GPL%20Source/6.2-25556/armada375/linux-firmware.txz
 
$ tar xjf linux-3.x.txz
$ tar xjf linux-firmware.txz


Look for dts related files:

$ find ./ -iname *\.dts | grep arm
./linux-3.x/arch/arm/boot/dts/picoxcell-pc7302-pc3x3.dts
./linux-3.x/arch/arm/boot/dts/msm8660-surf.dts
./linux-3.x/arch/arm/boot/dts/prima2-cb.dts
./linux-3.x/arch/arm/boot/dts/tegra-ventana.dts
./linux-3.x/arch/arm/boot/dts/imx6q-sabreauto.dts
./linux-3.x/arch/arm/boot/dts/omap3-beagle.dts
./linux-3.x/arch/arm/boot/dts/imx53-ard.dts
./linux-3.x/arch/arm/boot/dts/alpine_db.dts
./linux-3.x/arch/arm/boot/dts/imx53-smd.dts
./linux-3.x/arch/arm/boot/dts/zynq-ep107.dts
./linux-3.x/arch/arm/boot/dts/picoxcell-pc7302-pc3x2.dts
./linux-3.x/arch/arm/boot/dts/omap4-sdp.dts
./linux-3.x/arch/arm/boot/dts/tegra-harmony.dts
./linux-3.x/arch/arm/boot/dts/at91sam9m10g45ek.dts
./linux-3.x/arch/arm/boot/dts/imx53-qsb.dts
./linux-3.x/arch/arm/boot/dts/imx51-babbage.dts
./linux-3.x/arch/arm/boot/dts/versatile-pb.dts
./linux-3.x/arch/arm/boot/dts/tegra-seaboard.dts
./linux-3.x/arch/arm/boot/dts/omap4-panda.dts
./linux-3.x/arch/arm/boot/dts/highbank.dts
./linux-3.x/arch/arm/boot/dts/versatile-ab.dts
./linux-3.x/arch/arm/boot/dts/alpine_niagara312a.dts
./linux-3.x/arch/arm/boot/dts/imx53-evk.dts
./linux-3.x/arch/arm/boot/dts/usb_a9g20.dts




Nothing related to the armada... or many SoCs for that matter...Looks like synology removed all the relevant DTS/DTSI/DTB files.

$ find ./ -iname *\.dtb | grep arm


No device-tree blobs found.

I also tried looking in the dev/env environments (https://global.synologydownload.com/download/ToolChain/toolkit):

$ wget https://global.synologydownload.com/download/ToolChain/toolkit/6.2/armada375/ds.armada375-6.2.env.txz
$ wget https://global.synologydownload.com/download/ToolChain/toolkit/6.2/armada375/ds.armada375-6.2.dev.txz

$ tar xjf ds.armada375-6.2.env.txz
$ tar xjf ds.armada375-6.2.dev.txz


Nothing was found either:
$ find ./ -iname *\.dts
$ find ./ -iname *\.dtb

Looks like Synology keep the DTSI/DTS secret.... or I'm not looking for the right things...or downloaded the correct source file.



Edited 1 time(s). Last edit at 01/17/2025 04:48PM by ZooMoo.
Re: Debian on Synology DS215j
January 17, 2025 01:44PM
ZooMoo,

> Using your updated DTB
>
> Note, I updated the syno_hw_version=DS215jv10
> inline with the stock kernel logs. Changing the
> syno_hw_version value should not make a
> difference, right?

It does not make any difference. The kernel will ignore this unrecognized bootarg.

>
>
> Marvell>> setenv usbActive 1
> Marvell>> usb start
> Marvell>> ext2load usb 0:1 0x02000000
> /boot/uImage
> 5192845 bytes read in 637 ms (7.8 MiB/s)
> Marvell>> ext2load usb 0:1 0x08000000
> /boot/uInitrd
> 5257173 bytes read in 225 ms (22.3 MiB/s)
> Marvell>> setenv bootargs 'console=ttyS0,115200
> ip=off root=/dev/sda1 rw syno_hw_version=DS215jv10
> ihd_num=2 netif_num=1 flash_size=8'
> Marvell>> bootm 0x02000000 0x08000000
>
> And.....it WORKS!! Thanks Bodhi!

Cool!

> Now to figure out what works or doesn't.

Right of the bat, Ethernet needs to be fixed. Try log into DSM OS again, and get some info. Hope they did not remove this command :)
ethtool eth0

> 2. Look for GPL source for this box. I do have
> some Synology GPL source, but none has DS215j on
> it.

>
> I found Synology have moved from SourceForge
> (https://sourceforge.net/projects/dsgpl/) to a new
> website with their source code
> (https://archive.synology.com/download).

Thanks for this info!

> But you have to download each package individually
> for each specific architecture. Making it
> deliberately hard to get access to the source code
> for a given architecture.
>
> I've downloaded the following components of the
> DSM 6.2 source code
> https://global.synologydownload.com/download/ToolChain/Synology%20NAS%20GPL%20Source/
> (I had tried to install DSM 7.1 but it kept
> failing).
>

> $ wget
> https://global.synologydownload.com/download/ToolChain/Synology%20NAS%20GPL%20Source/6.2-25556/armada375/linux-3.x.txz
> $ wget
> https://global.synologydownload.com/download/ToolChain/Synology%20NAS%20GPL%20Source/6.2-25556/armada375/linux-firmware.txz
>

I will download these tarball, too.

> $ tar xjf linux-3.x.txz
> $ tar xjf linux-firmware.txz
> [/code]
>
>
> Look for dts related files:

> Looks like Synology keep the DTSI/DTS secret....
> or I'm not looking for the right things...or
> downloaded the correct source file.

I did not think you will find the DTS either. Search for ds215j instead. And search all files, because it could be a script file. Something like this:
find . -name '*215*'
find . | xargs grep -i 215j -d skip

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



Edited 1 time(s). Last edit at 01/17/2025 02:50PM by bodhi.
Re: Debian on Synology DS215j
January 17, 2025 02:54PM
find ./linux-3.x/ | xargs grep -i 215j -d skip
./linux-3.x/include/asm-arm/mach-types.h:#define MACH_TYPE_CC9P9215JS           1447
./linux-3.x/include/asm-arm/mach-types.h:#define MACH_TYPE_CCW9P9215JS          1811
./linux-3.x/include/asm-arm/mach-types.h:#ifdef CONFIG_MACH_CC9P9215JS
./linux-3.x/include/asm-arm/mach-types.h:#  define machine_arch_type	MACH_TYPE_CC9P9215JS
./linux-3.x/include/asm-arm/mach-types.h:# define machine_is_cc9p9215js()	(machine_arch_type == MACH_TYPE_CC9P9215JS)
./linux-3.x/include/asm-arm/mach-types.h:# define machine_is_cc9p9215js()	(0)
./linux-3.x/include/asm-arm/mach-types.h:#ifdef CONFIG_MACH_CCW9P9215JS
./linux-3.x/include/asm-arm/mach-types.h:#  define machine_arch_type	MACH_TYPE_CCW9P9215JS
./linux-3.x/include/asm-arm/mach-types.h:# define machine_is_ccw9p9215js()	(machine_arch_type == MACH_TYPE_CCW9P9215JS)
./linux-3.x/include/asm-arm/mach-types.h:# define machine_is_ccw9p9215js()	(0)
./linux-3.x/include/linux/synobios.h:#define HW_DS215j      "DS215j"
./linux-3.x/arch/arm/mach-armada375/synology-gpio.c:	case SYNO_DS215j_ID:
./linux-3.x/arch/arm/mach-armada375/synology-gpio.c:	case SYNO_DS215j_ID:
./linux-3.x/arch/arm/mach-armada375/armada_375_family/boardEnv/mvBoardEnvSpec.h:#define SYNO_DS215j_ID			        (CUTOMER_BOARD_ID_BASE)
./linux-3.x/arch/arm/mach-armada375/armada_375_family/boardEnv/mvBoardEnvSpec.h:#define SYNO_DS215j_MPP0_7               0x00020022  	 
./linux-3.x/arch/arm/mach-armada375/armada_375_family/boardEnv/mvBoardEnvSpec.h:#define SYNO_DS215j_MPP8_15              0x22000022  	 
./linux-3.x/arch/arm/mach-armada375/armada_375_family/boardEnv/mvBoardEnvSpec.h:#define SYNO_DS215j_MPP16_23             0x00000022  	 
./linux-3.x/arch/arm/mach-armada375/armada_375_family/boardEnv/mvBoardEnvSpec.h:#define SYNO_DS215j_MPP24_31             0x00000000  	 
./linux-3.x/arch/arm/mach-armada375/armada_375_family/boardEnv/mvBoardEnvSpec.h:#define SYNO_DS215j_MPP32_39             0x04400000  	 
./linux-3.x/arch/arm/mach-armada375/armada_375_family/boardEnv/mvBoardEnvSpec.h:#define SYNO_DS215j_MPP40_47             0x00000044  	 
./linux-3.x/arch/arm/mach-armada375/armada_375_family/boardEnv/mvBoardEnvSpec.h:#define SYNO_DS215j_MPP48_55             0x00010000  	 
./linux-3.x/arch/arm/mach-armada375/armada_375_family/boardEnv/mvBoardEnvSpec.h:#define SYNO_DS215j_MPP56_63             0x00000100  	 
./linux-3.x/arch/arm/mach-armada375/armada_375_family/boardEnv/mvBoardEnvSpec.h:#define SYNO_DS215j_MPP64_67             0x00000000   	 
./linux-3.x/arch/arm/mach-armada375/armada_375_family/boardEnv/mvBoardEnvSpec.h:#define SYNO_DS215j_GPP_OUT_ENA_LOW      (~(BIT18|BIT19|BIT20|BIT24|BIT25|BIT26))
./linux-3.x/arch/arm/mach-armada375/armada_375_family/boardEnv/mvBoardEnvSpec.h:#define SYNO_DS215j_GPP_OUT_ENA_MID      (~(BIT11|BIT22|BIT23))
./linux-3.x/arch/arm/mach-armada375/armada_375_family/boardEnv/mvBoardEnvSpec.h:#define SYNO_DS215j_GPP_OUT_ENA_HIGH     (~(BIT1))
./linux-3.x/arch/arm/mach-armada375/armada_375_family/boardEnv/mvBoardEnvSpec.h:#define SYNO_DS215j_GPP_OUT_VAL_LOW      (BIT24|BIT25|BIT26)
./linux-3.x/arch/arm/mach-armada375/armada_375_family/boardEnv/mvBoardEnvSpec.h:#define SYNO_DS215j_GPP_OUT_VAL_MID      0x0		 
./linux-3.x/arch/arm/mach-armada375/armada_375_family/boardEnv/mvBoardEnvSpec.h:#define SYNO_DS215j_GPP_OUT_VAL_HIGH     0x0
./linux-3.x/arch/arm/mach-armada375/armada_375_family/boardEnv/mvBoardEnvSpec.h:#define SYNO_DS215j_GPP_POL_LOW          0x0
./linux-3.x/arch/arm/mach-armada375/armada_375_family/boardEnv/mvBoardEnvSpec.h:#define SYNO_DS215j_GPP_POL_MID          0x0
./linux-3.x/arch/arm/mach-armada375/armada_375_family/boardEnv/mvBoardEnvSpec.h:#define SYNO_DS215j_GPP_POL_HIGH         0x0
./linux-3.x/arch/arm/mach-armada375/armada_375_family/boardEnv/mvBoardEnvSpec.c:MV_BOARD_MAC_INFO syno_ds215j_BoardMacInfo[] = {
./linux-3.x/arch/arm/mach-armada375/armada_375_family/boardEnv/mvBoardEnvSpec.c:MV_BOARD_MPP_TYPE_INFO syno_ds215j_BoardModTypeInfo[] = {
./linux-3.x/arch/arm/mach-armada375/armada_375_family/boardEnv/mvBoardEnvSpec.c:MV_DEV_CS_INFO syno_ds215j_BoardDeCsInfo[] = {
./linux-3.x/arch/arm/mach-armada375/armada_375_family/boardEnv/mvBoardEnvSpec.c:MV_BOARD_MPP_INFO syno_ds215j_BoardMppConfigValue[] = {
./linux-3.x/arch/arm/mach-armada375/armada_375_family/boardEnv/mvBoardEnvSpec.c:		  SYNO_DS215j_MPP0_7,
./linux-3.x/arch/arm/mach-armada375/armada_375_family/boardEnv/mvBoardEnvSpec.c:		  SYNO_DS215j_MPP8_15,
./linux-3.x/arch/arm/mach-armada375/armada_375_family/boardEnv/mvBoardEnvSpec.c:		  SYNO_DS215j_MPP16_23,
./linux-3.x/arch/arm/mach-armada375/armada_375_family/boardEnv/mvBoardEnvSpec.c:		  SYNO_DS215j_MPP24_31,
./linux-3.x/arch/arm/mach-armada375/armada_375_family/boardEnv/mvBoardEnvSpec.c:		  SYNO_DS215j_MPP32_39,
./linux-3.x/arch/arm/mach-armada375/armada_375_family/boardEnv/mvBoardEnvSpec.c:		  SYNO_DS215j_MPP40_47,
./linux-3.x/arch/arm/mach-armada375/armada_375_family/boardEnv/mvBoardEnvSpec.c:		  SYNO_DS215j_MPP48_55,
./linux-3.x/arch/arm/mach-armada375/armada_375_family/boardEnv/mvBoardEnvSpec.c:		  SYNO_DS215j_MPP56_63,
./linux-3.x/arch/arm/mach-armada375/armada_375_family/boardEnv/mvBoardEnvSpec.c:		  SYNO_DS215j_MPP64_67,
./linux-3.x/arch/arm/mach-armada375/armada_375_family/boardEnv/mvBoardEnvSpec.c:MV_BOARD_INFO syno_ds215j_info = {
./linux-3.x/arch/arm/mach-armada375/armada_375_family/boardEnv/mvBoardEnvSpec.c:	.boardName			= "SYNO-DS215j",
./linux-3.x/arch/arm/mach-armada375/armada_375_family/boardEnv/mvBoardEnvSpec.c:	.numBoardMppTypeValue		= ARRSZ(syno_ds215j_BoardModTypeInfo),
./linux-3.x/arch/arm/mach-armada375/armada_375_family/boardEnv/mvBoardEnvSpec.c:	.pBoardModTypeValue		= syno_ds215j_BoardModTypeInfo,
./linux-3.x/arch/arm/mach-armada375/armada_375_family/boardEnv/mvBoardEnvSpec.c:	.pBoardMppConfigValue		= syno_ds215j_BoardMppConfigValue,
./linux-3.x/arch/arm/mach-armada375/armada_375_family/boardEnv/mvBoardEnvSpec.c:	.numBoardDeviceIf		= ARRSZ(syno_ds215j_BoardDeCsInfo),
./linux-3.x/arch/arm/mach-armada375/armada_375_family/boardEnv/mvBoardEnvSpec.c:	.pDevCsInfo			= syno_ds215j_BoardDeCsInfo,
./linux-3.x/arch/arm/mach-armada375/armada_375_family/boardEnv/mvBoardEnvSpec.c:	.numBoardMacInfo		= ARRSZ(syno_ds215j_BoardMacInfo),
./linux-3.x/arch/arm/mach-armada375/armada_375_family/boardEnv/mvBoardEnvSpec.c:	.pBoardMacInfo			= syno_ds215j_BoardMacInfo,
./linux-3.x/arch/arm/mach-armada375/armada_375_family/boardEnv/mvBoardEnvSpec.c:	.gppOutEnValLow			= SYNO_DS215j_GPP_OUT_ENA_LOW,
./linux-3.x/arch/arm/mach-armada375/armada_375_family/boardEnv/mvBoardEnvSpec.c:	.gppOutEnValMid			= SYNO_DS215j_GPP_OUT_ENA_MID,
./linux-3.x/arch/arm/mach-armada375/armada_375_family/boardEnv/mvBoardEnvSpec.c:	.gppOutEnValHigh		= SYNO_DS215j_GPP_OUT_ENA_HIGH,
./linux-3.x/arch/arm/mach-armada375/armada_375_family/boardEnv/mvBoardEnvSpec.c:	.gppOutValLow			= SYNO_DS215j_GPP_OUT_VAL_LOW,
./linux-3.x/arch/arm/mach-armada375/armada_375_family/boardEnv/mvBoardEnvSpec.c:	.gppOutValMid			= SYNO_DS215j_GPP_OUT_VAL_MID,
./linux-3.x/arch/arm/mach-armada375/armada_375_family/boardEnv/mvBoardEnvSpec.c:	.gppOutValHigh			= SYNO_DS215j_GPP_OUT_VAL_HIGH,
./linux-3.x/arch/arm/mach-armada375/armada_375_family/boardEnv/mvBoardEnvSpec.c:	.gppPolarityValLow		= SYNO_DS215j_GPP_POL_LOW,
./linux-3.x/arch/arm/mach-armada375/armada_375_family/boardEnv/mvBoardEnvSpec.c:	.gppPolarityValMid		= SYNO_DS215j_GPP_POL_MID,
./linux-3.x/arch/arm/mach-armada375/armada_375_family/boardEnv/mvBoardEnvSpec.c:	.gppPolarityValHigh		= SYNO_DS215j_GPP_POL_HIGH,
./linux-3.x/arch/arm/mach-armada375/armada_375_family/boardEnv/mvBoardEnvSpec.c:	&syno_ds215j_info,
./linux-3.x/arch/arm/mach-armada375/armada_375_family/boardEnv/mvBoardEnvSpec.c:	&syno_ds215j_info,

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Synology DS215j
January 17, 2025 03:35PM
Attached is the updated DTB. Ethernet should work in this version.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Attachments:
open | download - armada-375-synology-ds215j.dtb (12.5 KB)
open | download - armada-375-synology-ds215j.dts (1.8 KB)
Re: Debian on Synology DS215j
January 17, 2025 04:54PM
Right of the bat, Ethernet needs to be fixed. Try log into DSM OS again, and get some info. Hope they did not remove this command :)

ethtool eth0


Logged into DSM 6.2:

# 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
        Speed: 1000Mb/s
        Duplex: Full
        Port: MII
        PHYAD: 1
        Transceiver: internal
        Auto-negotiation: on
        Supports Wake-on: g
        Wake-on: d
        Link detected: no



find ./linux-3.x/ | xargs grep -i 215j -d ski
...
./linux-3.x/include/linux/synobios.h:#define HW_DS215j      "DS215j"
./linux-3.x/arch/arm/mach-armada375/synology-gpio.c:	case SYNO_DS215j_ID:
./linux-3.x/arch/arm/mach-armada375/synology-gpio.c:	case SYNO_DS215j_ID:
./linux-3.x/arch/arm/mach-armada375/armada_375_family/boardEnv/mvBoardEnvSpec.h:#define SYNO_DS215j_ID			        (CUTOMER_BOARD_ID_BASE)
./linux-3.x/arch/arm/mach-armada375/armada_375_family/boardEnv/mvBoardEnvSpec.h:#define SYNO_DS215j_MPP0_7               0x00020022  	 
./linux-3.x/arch/arm/mach-armada375/armada_375_family/boardEnv/mvBoardEnvSpec.h:#define SYNO_DS215j_MPP8_15              0x22000022  	 
./linux-3.x/arch/arm/mach-armada375/armada_375_family/boardEnv/mvBoardEnvSpec.h:#define SYNO_DS215j_MPP16_23             0x00000022



Oh yes, sorry I forgot I tried that earlier, but I didn't understand how it related to the device tree definition.

Is it used to create the DTS dynamically? Or it's just useful to fix the device tree .dts by interpretation?



Tried kernel with updated dtb file, but eth0 didn't come up:


[    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=DS215jv10 ihd_num=2 netif_num=1 flash_size=8
[    0.000000][    T0] Unknown kernel command line parameters "syno_hw_version=DS215jv10 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.000016][    T0] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.000437][    T0] kfence: initialized - using 2097152 bytes for 255 objects at 0x(ptrval)-0x(ptrval)
[    0.000945][    T0] Console: colour dummy device 80x30
[    0.001012][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[    0.001032][    T0] CPU: Testing write buffer coherency: ok
[    0.001089][    T0] CPU0: Spectre v2: using BPIALL workaround
[    0.001097][    T0] pid_max: default: 32768 minimum: 301
[    0.008464][    T0] LSM: initializing lsm=capability
[    0.009885][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.009906][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.015067][    T1] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.080239][    T1] Setting up static identity map for 0x100000 - 0x100060
[    0.080653][    T1] mvebu-soc-id: MVEBU SoC ID=0x6720, Rev=0x3
[    0.081182][    T1] rcu: Hierarchical SRCU implementation.
[    0.081192][    T1] rcu: 	Max phase no-delay instances is 1000.
[    0.081645][    T1] Timer migration: 1 hierarchy levels; 8 children per group; 1 crossnode level
[    0.082716][    T1] smp: Bringing up secondary CPUs ...
[    0.110015][    T1] Booting CPU 1
[    0.110230][    T0] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.110251][    T0] CPU1: Spectre v2: using BPIALL workaround
[    0.110484][    T1] smp: Brought up 1 node, 2 CPUs
[    0.110498][    T1] SMP: Total of 2 processors activated (100.00 BogoMIPS).
[    0.110510][    T1] CPU: All CPU(s) started in SVC mode.
[    0.111155][    T1] Memory: 493480K/524288K available (10240K kernel code, 850K rwdata, 3552K rodata, 1024K init, 333K bss, 29228K reserved, 0K cma-reserved, 0K highmem)
[    0.112685][    T1] devtmpfs: initialized
[    0.118299][    T1] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.118830][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.118865][    T1] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.123640][    T1] prandom: seed boundary self test passed
[    0.126297][    T1] prandom: 100 self tests passed
[    0.126307][    T1] pinctrl core: initialized pinctrl subsystem
[    0.128867][    T1] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.130803][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.132074][    T1] audit: initializing netlink subsys (disabled)
[    0.132506][   T32] audit: type=2000 audit(0.130:1): state=initialized audit_enabled=0 res=1
[    0.133408][    T1] thermal_sys: Registered thermal governor 'step_wise'
[    0.133509][    T1] cpuidle: using governor ladder
[    0.133546][    T1] cpuidle: using governor menu
[    0.133938][    T1] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.133954][    T1] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.137835][    T1] /soc: Fixed dependency cycle(s) with /soc/internal-regs/interrupt-controller@d000
[    0.319792][    T1] raid6: int32x8  gen()   147 MB/s
[    0.489725][    T1] raid6: int32x4  gen()   158 MB/s
[    0.659765][    T1] raid6: int32x2  gen()   275 MB/s
[    0.829780][    T1] raid6: int32x1  gen()   318 MB/s
[    0.829788][    T1] raid6: using algorithm int32x1 gen() 318 MB/s
[    0.999763][    T1] raid6: .... xor() 127 MB/s, rmw enabled
[    0.999771][    T1] raid6: using intx1 recovery algorithm
[    1.002101][    T1] SCSI subsystem initialized
[    1.010170][    T1] usbcore: registered new interface driver usbfs
[    1.010257][    T1] usbcore: registered new interface driver hub
[    1.010349][    T1] usbcore: registered new device driver usb
[    1.010790][    T1] pps_core: LinuxPPS API ver. 1 registered
[    1.010800][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    1.010825][    T1] PTP clock support registered
[    1.032137][    T1] vgaarb: loaded
[    1.033011][    T1] clocksource: Switched to clocksource armada_370_xp_clocksource
[    1.039034][    T1] VFS: Disk quotas dquot_6.6.0
[    1.039345][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.055712][    T1] NET: Registered PF_INET protocol family
[    1.055967][    T1] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    1.057942][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    1.058101][    T1] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    1.058165][    T1] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    1.058241][    T1] TCP bind hash table entries: 4096 (order: 4, 65536 bytes, linear)
[    1.058366][    T1] TCP: Hash tables configured (established 4096 bind 4096)
[    1.058908][    T1] MPTCP token hash table entries: 512 (order: 1, 8192 bytes, linear)
[    1.059229][    T1] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    1.059263][    T1] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    1.059900][    T1] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    1.081152][    T1] RPC: Registered named UNIX socket transport module.
[    1.081166][    T1] RPC: Registered udp transport module.
[    1.081172][    T1] RPC: Registered tcp transport module.
[    1.081177][    T1] RPC: Registered tcp-with-tls transport module.
[    1.081182][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.081202][    T1] PCI: CLS 0 bytes, default 64
[    1.083602][   T27] Trying to unpack rootfs image as initramfs...
[    1.084816][    T1] Initialise system trusted keyrings
[    1.084952][    T1] Key type blacklist registered
[    1.085426][    T1] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[    1.085503][    T1] zbud: loaded
[    1.109778][    T1] NFS: Registering the id_resolver key type
[    1.109840][    T1] Key type id_resolver registered
[    1.109848][    T1] Key type id_legacy registered
[    1.110061][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.110086][    T1] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    1.307965][    T1] xor: measuring software checksum speed
[    1.310503][    T1]    arm4regs        :  1302 MB/sec
[    1.314014][    T1]    8regs           :   949 MB/sec
[    1.317190][    T1]    32regs          :  1039 MB/sec
[    1.317198][    T1] xor: using function: arm4regs (1302 MB/sec)
[    1.317228][    T1] async_tx: api initialized (async)
[    1.317250][    T1] Key type asymmetric registered
[    1.317260][    T1] Asymmetric key parser 'x509' registered
[    1.317914][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
[    1.318510][    T1] io scheduler bfq registered
[    1.329762][    T1] armada-375-pinctrl f1018000.pinctrl: registered pinctrl driver
[    1.333285][    T1] gpio gpiochip0: Static allocation of GPIO base is deprecated, use dynamic allocation.
[    1.335568][    T1] gpio gpiochip1: Static allocation of GPIO base is deprecated, use dynamic allocation.
[    1.337327][    T1] gpio gpiochip2: Static allocation of GPIO base is deprecated, use dynamic allocation.
[    1.340453][    T1] ledtrig-cpu: registered to indicate activity on CPUs
[    1.341359][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[    1.385341][   T27] Freeing initrd memory: 5136K
[    1.394630][    T1] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    1.399292][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.444502][    T1] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    1.635944][    T1] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.642964][    T1] printk: legacy console [ttyS0] disabled
[    1.665091][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 38, base_baud = 12500000) is a 16550A
[    1.665192][    T1] printk: legacy console [ttyS0] enabled
[    2.704120][    T1] sata_mv f10a0000.sata: slots 32 ports 2
[    2.713832][    T1] scsi host0: sata_mv
[    2.719614][    T1] scsi host1: sata_mv
[    2.724333][    T1] ata1: SATA max UDMA/133 irq 39 lpm-pol 0
[    2.730053][    T1] ata2: SATA max UDMA/133 irq 39 lpm-pol 0
[    2.739761][    T1] 1 fixed-partitions partitions found on MTD device spi0.0
[    2.746979][    T1] Creating 1 MTD partitions on "spi0.0":
[    2.752733][    T1] 0x000000000000-0x000000100000 : "u-boot"
[    2.760780][    T1] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[    2.769484][    T1] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[    2.806294][    T1] hwmon hwmon0: temp1_input not attached to any thermal zone
[    2.814894][    T1] usbcore: registered new interface driver smsc75xx
[    2.821880][    T1] orion-ehci f1054000.usb: EHCI Host Controller
[    2.828284][    T1] orion-ehci f1054000.usb: new USB bus registered, assigned bus number 1
[    2.836850][    T1] orion-ehci f1054000.usb: irq 40, io mem 0xf1054000
[    2.863089][    T1] orion-ehci f1054000.usb: USB 2.0 started, EHCI 1.00
[    2.870278][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.12
[    2.879355][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.887352][    T1] usb usb1: Product: EHCI Host Controller
[    2.892962][    T1] usb usb1: Manufacturer: Linux 6.12.6-mvebu-tld-1 ehci_hcd
[    2.900155][    T1] usb usb1: SerialNumber: f1054000.usb
[    2.906832][    T1] hub 1-0:1.0: USB hub found
[    2.911424][    T1] hub 1-0:1.0: 1 port detected
[    2.919047][    T1] xhci-hcd f1058000.usb: xHCI Host Controller
[    2.925110][    T1] xhci-hcd f1058000.usb: new USB bus registered, assigned bus number 2
[    2.933429][    T1] xhci-hcd f1058000.usb: hcc params 0x0a000990 hci version 0x100 quirks 0x0000000000000010
[    2.943767][    T1] xhci-hcd f1058000.usb: irq 41, io mem 0xf1058000
[    2.950420][    T1] xhci-hcd f1058000.usb: xHCI Host Controller
[    2.956457][    T1] xhci-hcd f1058000.usb: new USB bus registered, assigned bus number 3
[    2.964670][    T1] xhci-hcd f1058000.usb: Host supports USB 3.0 SuperSpeed
[    2.971941][    T1] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.12
[    2.981037][    T1] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.989095][    T1] usb usb2: Product: xHCI Host Controller
[    2.994736][    T1] usb usb2: Manufacturer: Linux 6.12.6-mvebu-tld-1 xhci-hcd
[    3.001915][    T1] usb usb2: SerialNumber: f1058000.usb
[    3.008714][    T1] hub 2-0:1.0: USB hub found
[    3.013332][    T1] hub 2-0:1.0: 1 port detected
[    3.019080][    T1] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    3.028170][    T1] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 6.12
[    3.037224][    T1] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.045355][    T1] usb usb3: Product: xHCI Host Controller
[    3.050970][    T1] usb usb3: Manufacturer: Linux 6.12.6-mvebu-tld-1 xhci-hcd
[    3.058181][    T1] usb usb3: SerialNumber: f1058000.usb
[    3.059606][  T683] ata1: SATA link down (SStatus 0 SControl F300)
[    3.064741][    T1] hub 3-0:1.0: USB hub found
[    3.074503][    T1] hub 3-0:1.0: 1 port detected
[    3.081179][    T1] usbcore: registered new interface driver usblp
[    3.087832][    T1] usbcore: registered new interface driver usb-storage
[    3.095704][    T1] mousedev: PS/2 mouse device common for all mice
[    3.105963][    T1] rtc-mv f1010300.rtc: registered as rtc0
[    3.111617][    T1] rtc-mv f1010300.rtc: setting system clock to 2025-01-17T22:43:05 UTC (1737153785)
[    3.122175][    T1] i2c_dev: i2c /dev entries driver
[    3.215469][    T1] orion_wdt: Initial timeout 171 sec
[    3.221958][    T1] device-mapper: uevent: version 1.0.3
[    3.228235][    T1] device-mapper: ioctl: 4.48.0-ioctl (2023-03-01) initialised: dm-devel@lists.linux.dev
[    3.238560][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[    3.245882][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[    3.253256][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[    3.260774][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[    3.268936][    T1] sdhci: Secure Digital Host Controller Interface driver
[    3.275916][    T1] sdhci: Copyright(c) Pierre Ossman
[    3.281344][    T1] sdhci-pltfm: SDHCI platform and OF driver helper
[    3.287841][   T64] usb 2-1: new high-speed USB device number 2 using xhci-hcd
[    3.296251][    T1] marvell-cesa f1090000.crypto: CESA device successfully registered
[    3.305098][    T1] hid: raw HID events driver (C) Jiri Kosina
[    3.312422][    T1] usbcore: registered new interface driver usbhid
[    3.318859][    T1] usbhid: USB HID core driver
[    3.324902][    T1] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 (8000003f) counters available
[    3.337453][    T1] NET: Registered PF_INET6 protocol family
[    3.365298][    T1] Segment Routing with IPv6
[    3.369808][    T1] RPL Segment Routing with IPv6
[    3.374677][    T1] In-situ OAM (IOAM) with IPv6
[    3.379511][    T1] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    3.389609][    T1] NET: Registered PF_PACKET protocol family
[    3.395491][  T688] ata2: SATA link down (SStatus 0 SControl F300)
[    3.412159][    T1] 8021q: 802.1Q VLAN Support v1.8
[    3.417319][    T1] Key type dns_resolver registered
[    3.422694][    T1] ThumbEE CPU extension supported.
[    3.427752][    T1] Registering SWP/SWPB emulation handler
[    3.460411][   T64] usb 2-1: New USB device found, idVendor=0951, idProduct=1625, bcdDevice= 2.00
[    3.480245][   T64] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    3.488703][   T64] usb 2-1: Product: DT 101 II
[    3.489047][    T1] registered taskstats version 1
[    3.496309][   T64] usb 2-1: Manufacturer: Kingston
[    3.498984][    T1] Loading compiled-in X.509 certificates
[    3.503225][   T64] usb 2-1: SerialNumber: <redacted>
[    3.518254][   T64] usb-storage 2-1:1.0: USB Mass Storage device detected
[    3.537106][   T64] scsi host2: usb-storage 2-1:1.0
[    3.547793][    T1] Key type .fscrypt registered
[    3.552460][    T1] Key type fscrypt-provisioning registered
[    3.558346][    T1] Key type big_key registered
[    3.708427][    T1] Key type encrypted registered
[    3.718301][   T50] usb_phy_generic usb3-phy: dummy supplies not allowed for exclusive requests (id=vbus)
[    3.728820][    T1] clk: Disabling unused clocks
[    3.733594][    T1] PM: genpd: Disabling unused power domains
[    3.742497][    T1] Freeing unused kernel image (initmem) memory: 1024K
[    3.750387][    T1] Checked W+X mappings: passed, no W+X pages found
[    3.756922][    T1] Run /init as init process
Loading, please wait...
Starting systemd-udevd version 252.19-1~deb12u1
[    4.564063][   T50] scsi 2:0:0:0: Direct-Access     Kingston DT 101 II        1.00 PQ: 0 ANSI: 2
[    4.580234][   T52] sd 2:0:0:0: [sda] 7847936 512-byte logical blocks: (4.02 GB/3.74 GiB)
[    4.588957][   T52] sd 2:0:0:0: [sda] Write Protect is off
[    4.594970][   T52] sd 2:0:0:0: [sda] No Caching mode page found
[    4.601036][   T52] sd 2:0:0:0: [sda] Assuming drive cache: write through
[    4.644357][   T52]  sda: sda1
[    4.649953][   T52] 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, 25894/245280 files, 255304/980736 blocks
done.
[    5.902268][ T1237] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[    5.983560][ T1237] EXT4-fs (sda1): mounted filesystem <redacted> 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 writable. 
Please repair the file system manually. ... failed!
A maintenance shell will now be started. 
CONTROL-D will terminate this shell and resume system boot. ... (warning).
Give 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.
[   17.693034][    C0] random: crng init done
Initializing random number generator...done.
Configuring network interfaces...Internet Systems Consortium DHCP Client 4.4.3-P1
Copyright 2004-2022 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Cannot find device "eth0"
Failed to get interface index: No such device

If you think you have received this message due to a bug rather
than a configuration issue please read the section on submitting
bugs on either our web page at www.isc.org or in the README file
before submitting a bug.  These pages explain the proper
process and the information we find helpful for debugging.

exiting.
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...
2000 (syslogd)
.
Starting NTP server: ntpd2025-01-17T14:43:30 ntpd[2033]: INIT: ntpd ntpsec-1.2.2: Starting
2025-01-17T14:43:30 ntpd[2033]: INIT: Command line: /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 104:109
.
Starting NTP server: ntpd2025-01-17T14:43:30 ntpd[2019]: INIT: ntpd ntpsec-1.2.2: Starting
2025-01-17T14:43:30 ntpd[2019]: 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...
2040 (klogd)
.
Running local boot scripts (/etc/rc.local)
Configuration file wrong or corrupted
<13>Jan 17 14:43:33 root[2085]: Cannot read u-boot env ethaddr
.

Debian GNU/Linux 12 debian ttyS0

debian login: root
Password: 
Linux debian 6.12.6-mvebu-tld-1 #1 SMP PREEMPT Thu Dec 19 21:57:22 PST 2024 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Fri Jan 17 02:00:58 PST 2025 on ttyS0
debian
Synology DS215j
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
Debian 12.4
Fri Jan 17 14:43:47 PST 2025 up 0 minutes
root@debian:~# ifconfig
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
Re: Debian on Synology DS215j
January 17, 2025 05:58PM
ZooMoo,

> Logged into DSM 6.2:
>
>
> # 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
>         Speed: 1000Mb/s
>         Duplex: Full
>         Port: MII
>         PHYAD: 1
>         Transceiver: internal
>         Auto-negotiation: on
>         Supports Wake-on: g
>         Wake-on: d
>         Link detected: no
>

PHYAD: 1. That's what I thought from reading the GPL source.

> Oh yes, sorry I forgot I tried that earlier, but I
> didn't understand how it related to the device
> tree definition.
>
> Is it used to create the DTS dynamically? Or it's
> just useful to fix the device tree .dts by
> interpretation?

The latter. This Synology kernel is too old. It does not have support for Flatten Device Tree. What we saw in u-boot envs was misleading. If a kernel supports FDT, then the /proc/device-tree/ must have the nodes populated.

Usually if vendors are following good SW practice, they would comment or write code that give us hints. So always the box model name is the 1st thing I'd search.

We have to add nodes in the DTS using the info found.

When you search the GPL source, GPIOs is one of the most relevant topics. USB and SATA power, LEDs triggers, and Buttons events are usually GPIO driven. So please post what you found for DS215j.

Stock u-boot has powered up the USB so it's good for now. If we can find USB power GPIO then it's better when and if I write new u-boot.

I'm wondering if there is GPL source for Synology Armada-375 u-boot?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Synology DS215j
January 17, 2025 06:38PM
OK I took out too much about ethernet in the DTS. Please try this version.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Attachments:
open | download - armada-375-synology-ds215j.dtb (12.5 KB)
open | download - armada-375-synology-ds215j.dts (1.8 KB)
Re: Debian on Synology DS215j
January 17, 2025 10:21PM
> I'm wondering if there is GPL source for Synology Armada-375 u-boot?

Good question. Whilst trying to solve this myself earlier, I found the advice given on this forum not to "saveenv" as Synology's u-boot is broken for users.

For example the post from Lonestar:

Quote
lonestar
https://forum.doozan.com/read.php?2,133377,133858#msg-133858
*** getting this to boot without manual interaction ***
As the stock u-boot can't save the environment we need to rebuild it. You can use the source from https://sourceforge.net/projects/dsgpl/files/Synology%20NAS%20GPL%20Source/24922branch/armadaxp-source/
You will need: armada375-gcc464_glibc215_softfp_armada375-GPL.txz, u-boot-armada-2011.12.txz


Synology have deleted the entire folder from sourceforge that was referenced above.
Later I found the https://archive.synology.com/download page, but it's seems to be missing any u-boot-<architecture>.txz files.
There is no search functionality for https://archive.synology.com/download either which makes it hard to find anything...

So far I've found the glibc files at the following URL:
https://archive.synology.com/download/ToolChain/toolchain/

7.2-72746 			
7.2-63134 			
7.1-42661 			
7.0-41890

Note: No v6.2 folder present.

Example files from https://archive.synology.com/download/ToolChain/toolchain/7.1-42661:
armada375-gcc464_glibc215_softfp_armada375-GPL.txz 	Marvell Armada 375 Linux 3.2.101 			783041316e7b3240c7fe207625e4903a
armada375-gcc850_glibc226_hard-GPL.txz 	Marvell Armada 375 Linux 3.2.101 			d30b90d77c7f39467e1140b60249cb29


As I don't have a copy of the u-boot-armada-2011.12.txz, I'm not sure what files to search for.

Is it just stock u-boot source (https://github.com/u-boot/u-boot) from that date or Synology's own version?
In which case they have to release it under the GPL license, right?


> OK I took out too much about ethernet in the DTS. Please try this version.

# cp -a zImage-6.12.6-mvebu-tld-1 zImage.fdt
# cat ./dts/armada-375-synology-ds215j_v3.dtb >> zImage.fdt
# mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-6.12.6-mvebu-tld-1 -d zImage.fdt uImage
# sync




No ethernet again:


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=DS215jv10 ihd_num=2 netif_num=1 flash_size=8
[    0.000000][    T0] Unknown kernel command line parameters "syno_hw_version=DS215jv10 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.000016][    T0] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.000439][    T0] kfence: initialized - using 2097152 bytes for 255 objects at 0x(ptrval)-0x(ptrval)
[    0.000947][    T0] Console: colour dummy device 80x30
[    0.001013][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[    0.001033][    T0] CPU: Testing write buffer coherency: ok
[    0.001089][    T0] CPU0: Spectre v2: using BPIALL workaround
[    0.001098][    T0] pid_max: default: 32768 minimum: 301
[    0.008479][    T0] LSM: initializing lsm=capability
[    0.009907][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.009930][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.015089][    T1] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.080249][    T1] Setting up static identity map for 0x100000 - 0x100060
[    0.080662][    T1] mvebu-soc-id: MVEBU SoC ID=0x6720, Rev=0x3
[    0.081186][    T1] rcu: Hierarchical SRCU implementation.
[    0.081196][    T1] rcu: 	Max phase no-delay instances is 1000.
[    0.081652][    T1] Timer migration: 1 hierarchy levels; 8 children per group; 1 crossnode level
[    0.082733][    T1] smp: Bringing up secondary CPUs ...
[    0.110014][    T1] Booting CPU 1
[    0.110229][    T0] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.110250][    T0] CPU1: Spectre v2: using BPIALL workaround
[    0.110480][    T1] smp: Brought up 1 node, 2 CPUs
[    0.110495][    T1] SMP: Total of 2 processors activated (100.00 BogoMIPS).
[    0.110505][    T1] CPU: All CPU(s) started in SVC mode.
[    0.111159][    T1] Memory: 493480K/524288K available (10240K kernel code, 850K rwdata, 3552K rodata, 1024K init, 333K bss, 29228K reserved, 0K cma-reserved, 0K highmem)
[    0.112679][    T1] devtmpfs: initialized
[    0.118282][    T1] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.118812][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.118849][    T1] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.123630][    T1] prandom: seed boundary self test passed
[    0.126287][    T1] prandom: 100 self tests passed
[    0.126296][    T1] pinctrl core: initialized pinctrl subsystem
[    0.128658][    T1] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.130496][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.131807][    T1] audit: initializing netlink subsys (disabled)
[    0.132258][   T32] audit: type=2000 audit(0.130:1): state=initialized audit_enabled=0 res=1
[    0.133233][    T1] thermal_sys: Registered thermal governor 'step_wise'
[    0.133340][    T1] cpuidle: using governor ladder
[    0.133377][    T1] cpuidle: using governor menu
[    0.133771][    T1] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.133786][    T1] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.137753][    T1] /soc: Fixed dependency cycle(s) with /soc/internal-regs/interrupt-controller@d000
[    0.319797][    T1] raid6: int32x8  gen()   147 MB/s
[    0.489866][    T1] raid6: int32x4  gen()   158 MB/s
[    0.659769][    T1] raid6: int32x2  gen()   275 MB/s
[    0.829741][    T1] raid6: int32x1  gen()   318 MB/s
[    0.829749][    T1] raid6: using algorithm int32x1 gen() 318 MB/s
[    0.999751][    T1] raid6: .... xor() 127 MB/s, rmw enabled
[    0.999759][    T1] raid6: using intx1 recovery algorithm
[    1.002129][    T1] SCSI subsystem initialized
[    1.010167][    T1] usbcore: registered new interface driver usbfs
[    1.010223][    T1] usbcore: registered new interface driver hub
[    1.010322][    T1] usbcore: registered new device driver usb
[    1.010785][    T1] pps_core: LinuxPPS API ver. 1 registered
[    1.010795][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    1.010821][    T1] PTP clock support registered
[    1.032098][    T1] vgaarb: loaded
[    1.032949][    T1] clocksource: Switched to clocksource armada_370_xp_clocksource
[    1.038943][    T1] VFS: Disk quotas dquot_6.6.0
[    1.039271][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.055785][    T1] NET: Registered PF_INET protocol family
[    1.056045][    T1] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    1.058004][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    1.058162][    T1] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    1.058224][    T1] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    1.058299][    T1] TCP bind hash table entries: 4096 (order: 4, 65536 bytes, linear)
[    1.058423][    T1] TCP: Hash tables configured (established 4096 bind 4096)
[    1.058966][    T1] MPTCP token hash table entries: 512 (order: 1, 8192 bytes, linear)
[    1.059291][    T1] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    1.059326][    T1] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    1.059965][    T1] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    1.081204][    T1] RPC: Registered named UNIX socket transport module.
[    1.081219][    T1] RPC: Registered udp transport module.
[    1.081225][    T1] RPC: Registered tcp transport module.
[    1.081230][    T1] RPC: Registered tcp-with-tls transport module.
[    1.081235][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.081255][    T1] PCI: CLS 0 bytes, default 64
[    1.083450][   T31] Trying to unpack rootfs image as initramfs...
[    1.084879][    T1] Initialise system trusted keyrings
[    1.084995][    T1] Key type blacklist registered
[    1.085456][    T1] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[    1.085534][    T1] zbud: loaded
[    1.099683][    T1] NFS: Registering the id_resolver key type
[    1.099733][    T1] Key type id_resolver registered
[    1.099741][    T1] Key type id_legacy registered
[    1.099944][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.099965][    T1] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    1.298659][    T1] xor: measuring software checksum speed
[    1.301195][    T1]    arm4regs        :  1302 MB/sec
[    1.304646][    T1]    8regs           :   956 MB/sec
[    1.307816][    T1]    32regs          :  1040 MB/sec
[    1.307824][    T1] xor: using function: arm4regs (1302 MB/sec)
[    1.307852][    T1] async_tx: api initialized (async)
[    1.307873][    T1] Key type asymmetric registered
[    1.307883][    T1] Asymmetric key parser 'x509' registered
[    1.308545][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
[    1.309194][    T1] io scheduler bfq registered
[    1.320126][    T1] armada-375-pinctrl f1018000.pinctrl: registered pinctrl driver
[    1.323837][    T1] gpio gpiochip0: Static allocation of GPIO base is deprecated, use dynamic allocation.
[    1.335118][    T1] gpio gpiochip1: Static allocation of GPIO base is deprecated, use dynamic allocation.
[    1.336946][    T1] gpio gpiochip2: Static allocation of GPIO base is deprecated, use dynamic allocation.
[    1.340065][    T1] ledtrig-cpu: registered to indicate activity on CPUs
[    1.342233][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[    1.384546][    T1] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    1.385361][   T31] Freeing initrd memory: 5136K
[    1.391446][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.434942][    T1] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    1.621069][    T1] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.628669][    T1] printk: legacy console [ttyS0] disabled
[    1.650439][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 38, base_baud = 12500000) is a 16550A
[    1.650537][    T1] printk: legacy console [ttyS0] enabled
[    2.688836][    T1] sata_mv f10a0000.sata: slots 32 ports 2
[    2.708428][    T1] scsi host0: sata_mv
[    2.714138][    T1] scsi host1: sata_mv
[    2.718744][    T1] ata1: SATA max UDMA/133 irq 39 lpm-pol 0
[    2.724513][    T1] ata2: SATA max UDMA/133 irq 39 lpm-pol 0
[    2.735287][    T1] 1 fixed-partitions partitions found on MTD device spi0.0
[    2.742401][    T1] Creating 1 MTD partitions on "spi0.0":
[    2.748113][    T1] 0x000000000000-0x000000100000 : "u-boot"
[    2.756641][    T1] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[    2.765293][    T1] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[    2.805668][    T1] hwmon hwmon0: temp1_input not attached to any thermal zone
[    2.814065][    T1] usbcore: registered new interface driver smsc75xx
[    2.821080][    T1] orion-ehci f1054000.usb: EHCI Host Controller
[    2.827368][    T1] orion-ehci f1054000.usb: new USB bus registered, assigned bus number 1
[    2.835928][    T1] orion-ehci f1054000.usb: irq 40, io mem 0xf1054000
[    2.853039][    T1] orion-ehci f1054000.usb: USB 2.0 started, EHCI 1.00
[    2.860233][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.12
[    2.869301][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.877293][    T1] usb usb1: Product: EHCI Host Controller
[    2.882902][    T1] usb usb1: Manufacturer: Linux 6.12.6-mvebu-tld-1 ehci_hcd
[    2.890092][    T1] usb usb1: SerialNumber: f1054000.usb
[    2.896776][    T1] hub 1-0:1.0: USB hub found
[    2.901370][    T1] hub 1-0:1.0: 1 port detected
[    2.909018][    T1] xhci-hcd f1058000.usb: xHCI Host Controller
[    2.915076][    T1] xhci-hcd f1058000.usb: new USB bus registered, assigned bus number 2
[    2.923394][    T1] xhci-hcd f1058000.usb: hcc params 0x0a000990 hci version 0x100 quirks 0x0000000000000010
[    2.933841][    T1] xhci-hcd f1058000.usb: irq 41, io mem 0xf1058000
[    2.940524][    T1] xhci-hcd f1058000.usb: xHCI Host Controller
[    2.946552][    T1] xhci-hcd f1058000.usb: new USB bus registered, assigned bus number 3
[    2.954759][    T1] xhci-hcd f1058000.usb: Host supports USB 3.0 SuperSpeed
[    2.962032][    T1] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.12
[    2.971121][    T1] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.979129][    T1] usb usb2: Product: xHCI Host Controller
[    2.984804][    T1] usb usb2: Manufacturer: Linux 6.12.6-mvebu-tld-1 xhci-hcd
[    2.991984][    T1] usb usb2: SerialNumber: f1058000.usb
[    2.998809][    T1] hub 2-0:1.0: USB hub found
[    3.003407][    T1] hub 2-0:1.0: 1 port detected
[    3.009127][    T1] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    3.018231][    T1] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 6.12
[    3.027275][    T1] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.035376][    T1] usb usb3: Product: xHCI Host Controller
[    3.040990][    T1] usb usb3: Manufacturer: Linux 6.12.6-mvebu-tld-1 xhci-hcd
[    3.044640][  T684] ata1: SATA link down (SStatus 0 SControl F300)
[    3.048247][    T1] usb usb3: SerialNumber: f1058000.usb
[    3.061131][    T1] hub 3-0:1.0: USB hub found
[    3.065747][    T1] hub 3-0:1.0: 1 port detected
[    3.072432][    T1] usbcore: registered new interface driver usblp
[    3.079094][    T1] usbcore: registered new interface driver usb-storage
[    3.087036][    T1] mousedev: PS/2 mouse device common for all mice
[    3.097166][    T1] rtc-mv f1010300.rtc: registered as rtc0
[    3.102820][    T1] rtc-mv f1010300.rtc: setting system clock to 2025-01-18T04:11:37 UTC (1737173497)
[    3.113518][    T1] i2c_dev: i2c /dev entries driver
[    3.205522][    T1] orion_wdt: Initial timeout 171 sec
[    3.211858][    T1] device-mapper: uevent: version 1.0.3
[    3.217991][    T1] device-mapper: ioctl: 4.48.0-ioctl (2023-03-01) initialised: dm-devel@lists.linux.dev
[    3.228373][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[    3.235694][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[    3.243070][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[    3.250578][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[    3.258793][    T1] sdhci: Secure Digital Host Controller Interface driver
[    3.265772][    T1] sdhci: Copyright(c) Pierre Ossman
[    3.271204][    T1] sdhci-pltfm: SDHCI platform and OF driver helper
[    3.277696][   T65] usb 2-1: new high-speed USB device number 2 using xhci-hcd
[    3.286129][    T1] marvell-cesa f1090000.crypto: CESA device successfully registered
[    3.294643][    T1] hid: raw HID events driver (C) Jiri Kosina
[    3.301358][    T1] usbcore: registered new interface driver usbhid
[    3.307798][    T1] usbhid: USB HID core driver
[    3.313785][    T1] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 (8000003f) counters available
[    3.326034][    T1] NET: Registered PF_INET6 protocol family
[    3.343959][    T1] Segment Routing with IPv6
[    3.348375][    T1] RPL Segment Routing with IPv6
[    3.353244][    T1] In-situ OAM (IOAM) with IPv6
[    3.358033][    T1] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    3.367158][    T1] NET: Registered PF_PACKET protocol family
[    3.373668][    T1] 8021q: 802.1Q VLAN Support v1.8
[    3.375481][  T686] ata2: SATA link down (SStatus 0 SControl F300)
[    3.378678][    T1] Key type dns_resolver registered
[    3.390263][    T1] ThumbEE CPU extension supported.
[    3.395359][    T1] Registering SWP/SWPB emulation handler
[    3.443704][    T1] registered taskstats version 1
[    3.448775][    T1] Loading compiled-in X.509 certificates
[    3.454529][   T65] usb 2-1: New USB device found, idVendor=0951, idProduct=1625, bcdDevice= 2.00
[    3.463609][   T65] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    3.471508][   T65] usb 2-1: Product: DT 101 II
[    3.478300][   T65] usb 2-1: Manufacturer: Kingston
[    3.483286][   T65] usb 2-1: SerialNumber: <redacted>
[    3.492816][   T65] usb-storage 2-1:1.0: USB Mass Storage device detected
[    3.500513][    T1] Key type .fscrypt registered
[    3.505236][    T1] Key type fscrypt-provisioning registered
[    3.511130][   T65] scsi host2: usb-storage 2-1:1.0
[    3.511183][    T1] Key type big_key registered
[    3.667491][    T1] Key type encrypted registered
[    3.677014][   T50] usb_phy_generic usb3-phy: dummy supplies not allowed for exclusive requests (id=vbus)
[    3.687482][    T1] clk: Disabling unused clocks
[    3.692180][    T1] PM: genpd: Disabling unused power domains
[    3.701134][    T1] Freeing unused kernel image (initmem) memory: 1024K
[    3.708900][    T1] Checked W+X mappings: passed, no W+X pages found
[    3.715377][    T1] Run /init as init process
Loading, please wait...
Starting systemd-udevd version 252.19-1~deb12u1
[    4.563894][   T50] scsi 2:0:0:0: Direct-Access     Kingston DT 101 II        1.00 PQ: 0 ANSI: 2
[    4.581125][   T52] sd 2:0:0:0: [sda] 7847936 512-byte logical blocks: (4.02 GB/3.74 GiB)
[    4.589823][   T52] sd 2:0:0:0: [sda] Write Protect is off
[    4.595818][   T52] sd 2:0:0:0: [sda] No Caching mode page found
[    4.601882][   T52] sd 2:0:0:0: [sda] Assuming drive cache: write through
[    4.664167][   T52]  sda: sda1
[    4.671614][   T52] 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, 25897/245280 files, 255317/980736 blocks
done.
[    5.864542][ T1239] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[    5.972453][ T1239] EXT4-fs (sda1): mounted filesystem 9<redacted> 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 writable. 
Please repair the file system manually. ... failed!
A maintenance shell will now be started. 
CONTROL-D will terminate this shell aGive 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.
[   15.682975][    C0] random: crng init done
Initializing random number generator...done.
Configuring network interfaces...Internet Systems Consortium DHCP Client 4.4.3-P1
Copyright 2004-2022 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Cannot find device "eth0"
Failed to get interface index: No such device

If you think you have received this message due to a bug rather
than a configuration issue please read the section on submitting
bugs on either our web page at www.isc.org or in the README file
before submitting a bug.  These pages explain the proper
process and the information we find helpful for debugging.

exiting.
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...
2000 (syslogd)
.
Starting NTP server: ntpd2025-01-17T20:12:01 ntpd[2042]: INIT: ntpd ntpsec-1.2.2: Starting
2025-01-17T20:12:01 ntpd[2042]: INIT: Command line: /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 104:109
.
Starting NTP server: ntpd2025-01-17T20:12:01 ntpd[2034]: INIT: ntpd ntpsec-1.2.2: Starting
2025-01-17T20:12:01 ntpd[2034]: 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 OpenBSD Secure Shell server: sshd.
Starting system message bus: dbus.
Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
2046 (klogd)
.
Running local boot scripts (/etc/rc.local)
Configuration file wrong or corrupted
<13>Jan 17 20:12:03 root[2090]: Cannot read u-boot env ethaddr
.

Debian GNU/Linux 12 debian ttyS0
Re: Debian on Synology DS215j
January 17, 2025 11:38PM
> Good question. Whilst trying to solve this myself
> earlier, I found the advice given on this forum
> not to "saveenv" as Synology's u-boot is broken
> for users.

Yes, it is well known fact for many years that Synology has bricked many boxes because of this envs issue.

> Is it just stock u-boot source
> (https://github.com/u-boot/u-boot) from that date

No. This Synology board has never been mainlined in u-boot.

> or Synology's own version?
> In which case they have to release it under the
> GPL license, right?

Correct. It must be there somewhere in their website.

> No ethernet again:

OK. I need to double check the Ref Manual for Armada 375, if I can find it. Ethernet should be the easiest device to get working.

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



Edited 1 time(s). Last edit at 01/17/2025 11:39PM by bodhi.
Re: Debian on Synology DS215j
January 18, 2025 02:31PM
ZooMoo,

Could you boot up, interrupt u-boot count down and,

setenv ipaddr <the static IP address of this NAS, whatever you want it to be in your network>
ping <the router IP address>
ping <the IP address some other box in your network>

Boot into Debian, and if there is no network,

modprobe mvpp2

======

Does this box have 2 Ethernet ports? - No

Quote
Jan 16 boot log

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

Try setting ethact
setenv ethact egiga0
See if it works pinging the router. And then boot.

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



Edited 2 time(s). Last edit at 01/18/2025 03:25PM by bodhi.
Re: Debian on Synology DS215j
January 20, 2025 05:24AM
> setenv ipaddr <the static IP address of this NAS, whatever you want it to be in your network>
> ping <the router IP address>
> ping <the IP address some other box in your network>

Yes, this works:

Marvell>> setenv ipaddr 192.168.1.100
Marvell>> ping 192.168.1.1
Using egiga1 device
host 192.168.1.1 is alive
Marvell>> ping 192.168.1.28
Using egiga1 device
host 192.168.1.28 is alive


> Boot into Debian, and if there is no network,
> modprobe mvpp2


Marvell>> setenv usbActive 1
Marvell>> usb start
Marvell>> ext2load usb 0:1 0x02000000 /boot/uImage
5192845 bytes read in 637 ms (7.8 MiB/s)
Marvell>> ext2load usb 0:1 0x08000000 /boot/uInitrd
5257173 bytes read in 225 ms (22.3 MiB/s)
Marvell>> setenv bootargs 'console=ttyS0,115200 ip=off root=/dev/sda1 rw syno_hw_version=DS215jv10 ihd_num=2 netif_num=1 flash_size=8'
Marvell>> bootm 0x02000000 0x08000000


There is no /lib/modules/6.12.6 folder:

root@debian:~# modprobe mvpp2
modprobe: FATAL: Module mvpp2 not found in directory /lib/modules/6.12.6-mvebu-tld-1

root@debian:~# ls /lib/modules/ 
5.2.9-mvebu-tld-1/ 6.6.2-mvebu-tld-1/

This makes sense as I initially created the USB stick with the Debian-6.6.2-mvebu-tld-1-rootfs-bodhi.tar.bz2 file.

It also explains why the ethernet was not coming up.

I reverted back to using the 6.6.2 kernel with the last DTB file you created as follows:

# cp -a zImage-6.6.2-mvebu-tld-1 zImage.fdt
# cat ./dts/armada-375-synology-ds215j_v3.dtb >> zImage.fdt
# mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-6.6.2-mvebu-ds215j -d zImage.fdt uImage
# sync
# umount /media/user1/usbstick


This booted successfully and eth0 is now found, but I cannot get a connection to work.

Kernel Log:

## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-6.6.2-mvebu-ds215j
   Created:      2025-01-20   9:47:10 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5192327 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.6.2-mvebu-tld-1 (root@tldDebian) (gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT Mon Nov 20 18:44:27 PST 2023
[    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 29 pages/cpu s25364 r8192 d85228 u118784
[    0.000000][    T0] Kernel command line: console=ttyS0,115200 ip=off root=/dev/sda1 rw syno_hw_version=DS215jv10 ihd_num=2 netif_num=1 flash_size=8
[    0.000000][    T0] Unknown kernel command line parameters "syno_hw_version=DS215jv10 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: 129920
[    0.000000][    T0] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000][    T0] Memory: 495072K/524288K available (10240K kernel code, 873K rwdata, 3492K rodata, 1024K init, 314K bss, 29216K reserved, 0K cma-reserved, 0K highmem)
[    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] 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.000000][    T0] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 85899345900ns
[    0.000038][    T0] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.000446][    T0] kfence: initialized - using 2097152 bytes for 255 objects at 0x(ptrval)-0x(ptrval)
[    0.001011][    T0] Console: colour dummy device 80x30
[    0.001068][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[    0.001088][    T0] CPU: Testing write buffer coherency: ok
[    0.001139][    T0] CPU0: Spectre v2: using BPIALL workaround
[    0.001149][    T0] pid_max: default: 32768 minimum: 301
[    0.006846][    T0] LSM: initializing lsm=capability,integrity
[    0.008447][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.008464][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.015885][    T1] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.017572][    T1] RCU Tasks: Setting shift to 1 and lim to 1 rcu_task_cb_adjust=1.
[    0.017771][    T1] RCU Tasks Trace: Setting shift to 1 and lim to 1 rcu_task_cb_adjust=1.
[    0.017951][    T1] Setting up static identity map for 0x100000 - 0x100060
[    0.018361][    T1] mvebu-soc-id: MVEBU SoC ID=0x6720, Rev=0x3
[    0.018883][    T1] rcu: Hierarchical SRCU implementation.
[    0.018893][    T1] rcu: 	Max phase no-delay instances is 1000.
[    0.020167][    T1] smp: Bringing up secondary CPUs ...
[    0.020974][    T1] Booting CPU 1
[    0.021197][    T0] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.021219][    T0] CPU1: Spectre v2: using BPIALL workaround
[    0.021402][    T1] smp: Brought up 1 node, 2 CPUs
[    0.021416][    T1] SMP: Total of 2 processors activated (100.00 BogoMIPS).
[    0.021427][    T1] CPU: All CPU(s) started in SVC mode.
[    0.023432][    T1] devtmpfs: initialized
[    0.028785][    T1] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.029338][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.029375][    T1] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.033253][    T1] prandom: seed boundary self test passed
[    0.035910][    T1] prandom: 100 self tests passed
[    0.035920][    T1] pinctrl core: initialized pinctrl subsystem
[    0.038232][    T1] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.039595][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.044315][    T1] audit: initializing netlink subsys (disabled)
[    0.044692][   T30] audit: type=2000 audit(0.040:1): state=initialized audit_enabled=0 res=1
[    0.045560][    T1] thermal_sys: Registered thermal governor 'step_wise'
[    0.045676][    T1] cpuidle: using governor ladder
[    0.045713][    T1] cpuidle: using governor menu
[    0.046119][    T1] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.046135][    T1] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.049542][    T1] platform soc: Fixed dependency cycle(s) with /soc/internal-regs/interrupt-controller@d000
[    0.229870][    T1] raid6: int32x8  gen()   159 MB/s
[    0.399755][    T1] raid6: int32x4  gen()   166 MB/s
[    0.569787][    T1] raid6: int32x2  gen()   275 MB/s
[    0.739769][    T1] raid6: int32x1  gen()   318 MB/s
[    0.739777][    T1] raid6: using algorithm int32x1 gen() 318 MB/s
[    0.909756][    T1] raid6: .... xor() 123 MB/s, rmw enabled
[    0.909763][    T1] raid6: using intx1 recovery algorithm
[    0.911943][    T1] SCSI subsystem initialized
[    0.912594][    T1] usbcore: registered new interface driver usbfs
[    0.912674][    T1] usbcore: registered new interface driver hub
[    0.912735][    T1] usbcore: registered new device driver usb
[    0.913195][    T1] pps_core: LinuxPPS API ver. 1 registered
[    0.913205][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.913229][    T1] PTP clock support registered
[    0.915966][    T1] vgaarb: loaded
[    0.916847][    T1] clocksource: Switched to clocksource armada_370_xp_clocksource
[    0.923048][    T1] VFS: Disk quotas dquot_6.6.0
[    0.923379][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.938390][    T1] NET: Registered PF_INET protocol family
[    0.938668][    T1] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.940289][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.940546][    T1] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.940611][    T1] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.940686][    T1] TCP bind hash table entries: 4096 (order: 4, 65536 bytes, linear)
[    0.940806][    T1] TCP: Hash tables configured (established 4096 bind 4096)
[    0.941364][    T1] MPTCP token hash table entries: 512 (order: 1, 8192 bytes, linear)
[    0.941687][    T1] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.941738][    T1] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.942417][    T1] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.943450][    T1] RPC: Registered named UNIX socket transport module.
[    0.943464][    T1] RPC: Registered udp transport module.
[    0.943469][    T1] RPC: Registered tcp transport module.
[    0.943474][    T1] RPC: Registered tcp-with-tls transport module.
[    0.943478][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.943498][    T1] PCI: CLS 0 bytes, default 64
[    0.944495][   T29] Trying to unpack rootfs image as initramfs...
[    0.947078][    T1] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.951397][    T1] Initialise system trusted keyrings
[    0.951538][    T1] Key type blacklist registered
[    0.953623][    T1] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[    0.953715][    T1] zbud: loaded
[    0.966041][    T1] NFS: Registering the id_resolver key type
[    0.966117][    T1] Key type id_resolver registered
[    0.966125][    T1] Key type id_legacy registered
[    0.966329][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.966350][    T1] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    1.109837][    T1] xor: measuring software checksum speed
[    1.117451][    T1]    arm4regs        :  1304 MB/sec
[    1.127604][    T1]    8regs           :  1001 MB/sec
[    1.137253][    T1]    32regs          :  1040 MB/sec
[    1.137272][    T1] xor: using function: arm4regs (1304 MB/sec)
[    1.137295][    T1] async_tx: api initialized (async)
[    1.137313][    T1] Key type asymmetric registered
[    1.137320][    T1] Asymmetric key parser 'x509' registered
[    1.137962][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
[    1.138560][    T1] io scheduler bfq registered
[    1.146185][    T1] armada-375-pinctrl f1018000.pinctrl: registered pinctrl driver
[    1.149771][    T1] gpio gpiochip0: Static allocation of GPIO base is deprecated, use dynamic allocation.
[    1.151917][    T1] gpio gpiochip1: Static allocation of GPIO base is deprecated, use dynamic allocation.
[    1.153619][    T1] gpio gpiochip2: Static allocation of GPIO base is deprecated, use dynamic allocation.
[    1.156467][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[    1.238737][    T1] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    1.244632][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.246788][   T29] Freeing initrd memory: 5136K
[    1.308692][    T1] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    1.532531][    T1] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.541703][    T1] printk: console [ttyS0] disabled
[    1.562773][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 39, base_baud = 12500000) is a 16550A
[    1.562862][    T1] printk: console [ttyS0] enabled
[    2.589267][    T1] sata_mv f10a0000.sata: slots 32 ports 2
[    2.598735][    T1] scsi host0: sata_mv
[    2.604538][    T1] scsi host1: sata_mv
[    2.609206][    T1] ata1: SATA max UDMA/133 irq 40
[    2.614058][    T1] ata2: SATA max UDMA/133 irq 40
[    2.623274][    T1] spi-nor spi0.0: mx25l6405d (8192 Kbytes)
[    2.629166][    T1] 1 fixed-partitions partitions found on MTD device spi0.0
[    2.636266][    T1] Creating 1 MTD partitions on "spi0.0":
[    2.641864][    T1] 0x000000000000-0x000000100000 : "u-boot"
[    2.652696][    T1] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[    2.661342][    T1] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[    2.700639][    T1] hwmon hwmon0: temp1_input not attached to any thermal zone
[    2.709783][    T1] mvpp2 f10f0000.ethernet: using 3 shared buffers
[    2.731684][    T1] mvpp2 f10f0000.ethernet eth0: Using hardware mac address 00:00:00:00:00:04
[    2.778857][    T1] usbcore: registered new interface driver smsc75xx
[    2.785850][    T1] orion-ehci f1054000.usb: EHCI Host Controller
[    2.792080][    T1] orion-ehci f1054000.usb: new USB bus registered, assigned bus number 1
[    2.800609][    T1] orion-ehci f1054000.usb: irq 42, io mem 0xf1054000
[    2.836894][    T1] orion-ehci f1054000.usb: USB 2.0 started, EHCI 1.00
[    2.844094][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.06
[    2.853257][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.861312][    T1] usb usb1: Product: EHCI Host Controller
[    2.866965][    T1] usb usb1: Manufacturer: Linux 6.6.2-mvebu-tld-1 ehci_hcd
[    2.874057][    T1] usb usb1: SerialNumber: f1054000.usb
[    2.880672][    T1] hub 1-0:1.0: USB hub found
[    2.885243][    T1] hub 1-0:1.0: 1 port detected
[    2.891569][    T1] xhci-hcd f1058000.usb: xHCI Host Controller
[    2.897639][    T1] xhci-hcd f1058000.usb: new USB bus registered, assigned bus number 2
[    2.905914][    T1] xhci-hcd f1058000.usb: hcc params 0x0a000990 hci version 0x100 quirks 0x0000000000000010
[    2.915938][    T1] xhci-hcd f1058000.usb: irq 43, io mem 0xf1058000
[    2.922876][    T1] xhci-hcd f1058000.usb: xHCI Host Controller
[    2.928897][    T1] xhci-hcd f1058000.usb: new USB bus registered, assigned bus number 3
[    2.937100][    T1] xhci-hcd f1058000.usb: Host supports USB 3.0 SuperSpeed
[    2.944337][    T1] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.06
[    2.947883][  T685] ata1: SATA link down (SStatus 0 SControl F300)
[    2.953400][    T1] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.967687][    T1] usb usb2: Product: xHCI Host Controller
[    2.973331][    T1] usb usb2: Manufacturer: Linux 6.6.2-mvebu-tld-1 xhci-hcd
[    2.980443][    T1] usb usb2: SerialNumber: f1058000.usb
[    2.987197][    T1] hub 2-0:1.0: USB hub found
[    2.991753][    T1] hub 2-0:1.0: 1 port detected
[    2.997623][    T1] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    3.006654][    T1] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 6.06
[    3.015716][    T1] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.023816][    T1] usb usb3: Product: xHCI Host Controller
[    3.029454][    T1] usb usb3: Manufacturer: Linux 6.6.2-mvebu-tld-1 xhci-hcd
[    3.036545][    T1] usb usb3: SerialNumber: f1058000.usb
[    3.043395][    T1] hub 3-0:1.0: USB hub found
[    3.048007][    T1] hub 3-0:1.0: 1 port detected
[    3.054858][    T1] usbcore: registered new interface driver usblp
[    3.061419][    T1] usbcore: registered new interface driver usb-storage
[    3.069485][    T1] mousedev: PS/2 mouse device common for all mice
[    3.080284][    T1] rtc-mv f1010300.rtc: registered as rtc0
[    3.085940][    T1] rtc-mv f1010300.rtc: setting system clock to 2025-01-20T09:51:01 UTC (1737366661)
[    3.096618][    T1] i2c_dev: i2c /dev entries driver
[    3.209562][    T1] orion_wdt: Initial timeout 171 sec
[    3.216344][    T1] device-mapper: uevent: version 1.0.3
[    3.222564][    T1] device-mapper: ioctl: 4.48.0-ioctl (2023-03-01) initialised: dm-devel@redhat.com
[    3.232442][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[    3.239753][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[    3.247211][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[    3.254739][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[    3.262256][    T1] sdhci: Secure Digital Host Controller Interface driver
[    3.269234][    T1] sdhci: Copyright(c) Pierre Ossman
[    3.274687][    T1] sdhci-pltfm: SDHCI platform and OF driver helper
[    3.283663][    T1] marvell-cesa f1090000.crypto: CESA device successfully registered
[    3.291632][   T65] usb 2-1: new high-speed USB device number 2 using xhci-hcd
[    3.293759][    T1] hid: raw HID events driver (C) Jiri Kosina
[    3.299407][  T690] ata2: SATA link down (SStatus 0 SControl F300)
[    3.311882][    T1] usbcore: registered new interface driver usbhid
[    3.318314][    T1] usbhid: USB HID core driver
[    3.325069][    T1] NET: Registered PF_INET6 protocol family
[    3.332895][    T1] Segment Routing with IPv6
[    3.337488][    T1] RPL Segment Routing with IPv6
[    3.342307][    T1] In-situ OAM (IOAM) with IPv6
[    3.347144][    T1] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    3.357272][    T1] NET: Registered PF_PACKET protocol family
[    3.363403][    T1] 8021q: 802.1Q VLAN Support v1.8
[    3.368512][    T1] Key type dns_resolver registered
[    3.373894][    T1] ThumbEE CPU extension supported.
[    3.378945][    T1] Registering SWP/SWPB emulation handler
[    3.437798][    T1] registered taskstats version 1
[    3.454996][    T1] Loading compiled-in X.509 certificates
[    3.485230][    T1] Key type .fscrypt registered
[    3.489969][    T1] Key type fscrypt-provisioning registered
[    3.495826][    T1] Key type big_key registered
[    3.518525][   T65] usb 2-1: New USB device found, idVendor=0951, idProduct=1625, bcdDevice= 2.00
[    3.527565][   T65] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    3.535491][   T65] usb 2-1: Product: DT 101 II
[    3.537164][    T1] Key type encrypted registered
[    3.540100][   T65] usb 2-1: Manufacturer: Kingston
[    3.549774][   T65] usb 2-1: SerialNumber: <redacted>
[    3.549863][   T29] usb_phy_generic usb3-phy: dummy supplies not allowed for exclusive requests
[    3.565703][    T1] clk: Disabling unused clocks
[    3.571684][   T65] usb-storage 2-1:1.0: USB Mass Storage device detected
[    3.580677][   T65] scsi host2: usb-storage 2-1:1.0
[    3.582271][    T1] Freeing unused kernel image (initmem) memory: 1024K
[    3.617878][    T1] Checked W+X mappings: passed, no W+X pages found
[    3.624303][    T1] Run /init as init process
Loading, please wait...
Starting systemd-udevd version 252.19-1~deb12u1
[    4.647868][   T26] scsi 2:0:0:0: Direct-Access     Kingston DT 101 II        1.00 PQ: 0 ANSI: 2
[    4.669048][  T649] sd 2:0:0:0: [sda] 7847936 512-byte logical blocks: (4.02 GB/3.74 GiB)
[    4.683429][  T649] sd 2:0:0:0: [sda] Write Protect is off
[    4.697498][  T649] sd 2:0:0:0: [sda] No Caching mode page found
[    4.703571][  T649] sd 2:0:0:0: [sda] Assuming drive cache: write through
[    4.731961][  T649]  sda: sda1
[    4.735798][  T649] sd 2:0:0:0: [sda] Attached SCSI removable disk
[    4.887189][ T1244] usbcore: registered new interface driver uas
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, 25899/245280 files, 255317/980736 blocks
done.
[    5.927754][ T1267] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[    6.016432][ T1267] EXT4-fs (sda1): mounted filesystem <redacted> 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...[    9.475747][ T1451] sd 2:0:0:0: Attached scsi generic sg0 type 0
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.
[   17.056866][    C0] random: crng init done
Initializing random number generator...done.
[   17.617993][ T1985] mvpp2 f10f0000.ethernet eth0: PHY [f10c0054.mdio-mii:01] driver [Marvell 88E1510] (irq=POLL)
[   17.628393][ T1985] mvpp2 f10f0000.ethernet eth0: configuring for phy/rgmii-id link mode
Configuring network interfaces...Internet Systems Consortium DHCP Client 4.4.3-P1
Copyright 2004-2022 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/00:00:00:00:00:04
Sending on   LPF/eth0/00:00:00:00:00:04
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
[   21.767131][  T111] mvpp2 f10f0000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 18
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 18
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
done.
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...
2126 (syslogd)
.
Starting NTP server: ntpd2025-01-20T01:52:28 ntpd[2176]: INIT: ntpd ntpsec-1.2.2: Starting
2025-01-20T01:52:28 ntpd[2176]: INIT: Command line: /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 104:109
.
Starting NTP server: ntpd2025-01-20T01:52:28 ntpd[2152]: INIT: ntpd ntpsec-1.2.2: Starting
2025-01-20T01:52:28 ntpd[2152]: 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 OpenBSD Secure Shell server: sshd.
Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
2178 (klogd)
.
Running local boot scripts (/etc/rc.local)
Configuration file wrong or corrupted
<13>Jan 20 01:52:30 root[2218]: Cannot read u-boot env ethaddr
.

Debian GNU/Linux 12 debian ttyS0

debian login:


As you can see above there is the message:

...
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
No DHCPOFFERS received.
No working leases in persistent database - sleeping.


I tried to manually set the IP of eth0 but no luck.


root@debian:~# ifconfig eth0 192.168.1.199 netmask 255.255.255.0 up

root@debian:~# ifconfig -a
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.199  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::200:ff:fe00:4  prefixlen 64  scopeid 0x20<link>
        ether 00:00:00:00:00:04  txqueuelen 2048  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 296  bytes 57324 (55.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 55  bytes 6882 (6.7 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 55  bytes 6882 (6.7 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

ping cannot find the router like before.

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.199 icmp_seq=1 Destination Host Unreachable
...

Route okay?

root@debian:~# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0    0.0.0.0         255.255.255.0   U     0      0        0 eth0


Maybe I've missed something or some adjustments are needed with the DTS/DTB?
Re: Debian on Synology DS215j
January 20, 2025 01:18PM
ZooMoo,

> There is no /lib/modules/6.12.6 folder:
>
> This makes sense as I initially created the USB
> stick with the
> Debian-6.6.2-mvebu-tld-1-rootfs-bodhi.tar.bz2
> file.
>
> It also explains why the ethernet was not coming
> up.

> I reverted back to using the 6.6.2 kernel with the
> last DTB file you created as follows:

> This booted successfully and eth0 is now found,
> but I cannot get a connection to work.

Cool!

Remember the zImage 6.12.6 was used to boot the kernel only temporarily. You would need to install the full kernel to see the modules populated, and other initramfs hooks in place. So you can copy the linux-6.12.6-mvebu-tld-1-bodhi.tar.bz2 tarball to the USB rootfs and later install it in serial console login (you don't have network yet).

> [ 2.709783][ T1] mvpp2 f10f0000.ethernet:
> using 3 shared buffers
> [ 2.731684][ T1] mvpp2 f10f0000.ethernet
> eth0: Using hardware mac address
> 00:00:00:00:00:04

> [ 17.617993][ T1985] mvpp2 f10f0000.ethernet
> eth0: PHY [f10c0054.mdio-mii:01] driver [Marvell
> 88E1510] (irq=POLL)
> [ 17.628393][ T1985] mvpp2 f10f0000.ethernet
> eth0: configuring for phy/rgmii-id link mode

> [ 21.767131][ T111] mvpp2 f10f0000.ethernet
> eth0: Link is Up - 1Gbps/Full - flow control off

Excellent! it's working OK.

> No DHCPOFFERS received.

> Maybe I've missed something or some adjustments
> are needed with the DTS/DTB?

This is the MAC address problem. The MAC address the kernel sees seems invalid (00:00:00:00:00:04). That's not your box MAC addr (ethaddr in u-boot envs). It might be u-boot is not passing the MAC address in correctly. It also did not pass 00's in, if it did, the kernel would have generated a random local MAC addr. And the router would have no problem assign a dynamic IP.

Perhaps we need a bit more nudge in the DTS. I'll take a look.

If you're eager to use SSH, or just want to see Ethernet works, you can hardcode the MAC address inside /etc/network/interface. And use u-boot ethaddr value for it. Something like this for one of my boxes:

cat /etc/network/interfaces
auto lo eth0
iface lo inet loopback
iface eth0 inet static
        address 192.168.0.232
        netmask 255.255.255.0
        gateway 192.168.0.1
        hwaddress ether XX:XX:XX:XX:XX:XX  # where XX:XX:XX:XX:XX:XX is the u-boot env ethaddr value

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Synology DS215j
January 20, 2025 02:40PM
Here is the Jan 20th version.

Either dynamic or static IP is fine. We only want to see if the right MAC address is in the boot log.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Attachments:
open | download - armada-375-synology-ds215j-jan-20.tar (20 KB)
Re: Debian on Synology DS215j
January 21, 2025 04:18AM
I've booted up with your latest armada-375-synology-ds215j-jan-20.dtb file, but the MAC address is still invalid according to the logs.

Kernel Log:

## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-6.6.2-mvebu-ds215j
   Created:      2025-01-21   8:01:44 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5192401 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.6.2-mvebu-tld-1 (root@tldDebian) (gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT Mon Nov 20 18:44:27 PST 2023
[    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 29 pages/cpu s25364 r8192 d85228 u118784
[    0.000000][    T0] Kernel command line: console=ttyS0,115200 ip=off root=/dev/sda1 rw syno_hw_version=DS215jv10 ihd_num=2 netif_num=1 flash_size=8
[    0.000000][    T0] Unknown kernel command line parameters "syno_hw_version=DS215jv10 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: 129920
[    0.000000][    T0] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000][    T0] Memory: 495072K/524288K available (10240K kernel code, 873K rwdata, 3492K rodata, 1024K init, 314K bss, 29216K reserved, 0K cma-reserved, 0K highmem)
[    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] 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.000039][    T0] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.000449][    T0] kfence: initialized - using 2097152 bytes for 255 objects at 0x(ptrval)-0x(ptrval)
[    0.001011][    T0] Console: colour dummy device 80x30
[    0.001068][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[    0.001088][    T0] CPU: Testing write buffer coherency: ok
[    0.001141][    T0] CPU0: Spectre v2: using BPIALL workaround
[    0.001150][    T0] pid_max: default: 32768 minimum: 301
[    0.006847][    T0] LSM: initializing lsm=capability,integrity
[    0.008448][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.008465][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.015898][    T1] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.017577][    T1] RCU Tasks: Setting shift to 1 and lim to 1 rcu_task_cb_adjust=1.
[    0.017776][    T1] RCU Tasks Trace: Setting shift to 1 and lim to 1 rcu_task_cb_adjust=1.
[    0.017956][    T1] Setting up static identity map for 0x100000 - 0x100060
[    0.018365][    T1] mvebu-soc-id: MVEBU SoC ID=0x6720, Rev=0x3
[    0.018877][    T1] rcu: Hierarchical SRCU implementation.
[    0.018886][    T1] rcu: 	Max phase no-delay instances is 1000.
[    0.020168][    T1] smp: Bringing up secondary CPUs ...
[    0.020976][    T1] Booting CPU 1
[    0.021202][    T0] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.021224][    T0] CPU1: Spectre v2: using BPIALL workaround
[    0.021408][    T1] smp: Brought up 1 node, 2 CPUs
[    0.021424][    T1] SMP: Total of 2 processors activated (100.00 BogoMIPS).
[    0.021434][    T1] CPU: All CPU(s) started in SVC mode.
[    0.023442][    T1] devtmpfs: initialized
[    0.028800][    T1] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.029356][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.029394][    T1] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.033258][    T1] prandom: seed boundary self test passed
[    0.035913][    T1] prandom: 100 self tests passed
[    0.035923][    T1] pinctrl core: initialized pinctrl subsystem
[    0.038226][    T1] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.039591][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.044294][    T1] audit: initializing netlink subsys (disabled)
[    0.044672][   T30] audit: type=2000 audit(0.040:1): state=initialized audit_enabled=0 res=1
[    0.045521][    T1] thermal_sys: Registered thermal governor 'step_wise'
[    0.045638][    T1] cpuidle: using governor ladder
[    0.045674][    T1] cpuidle: using governor menu
[    0.046079][    T1] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.046095][    T1] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.049511][    T1] platform soc: Fixed dependency cycle(s) with /soc/internal-regs/interrupt-controller@d000
[    0.229866][    T1] raid6: int32x8  gen()   159 MB/s
[    0.399738][    T1] raid6: int32x4  gen()   166 MB/s
[    0.569811][    T1] raid6: int32x2  gen()   275 MB/s
[    0.739747][    T1] raid6: int32x1  gen()   318 MB/s
[    0.739755][    T1] raid6: using algorithm int32x1 gen() 318 MB/s
[    0.909753][    T1] raid6: .... xor() 123 MB/s, rmw enabled
[    0.909760][    T1] raid6: using intx1 recovery algorithm
[    0.911934][    T1] SCSI subsystem initialized
[    0.912576][    T1] usbcore: registered new interface driver usbfs
[    0.912655][    T1] usbcore: registered new interface driver hub
[    0.912716][    T1] usbcore: registered new device driver usb
[    0.913174][    T1] pps_core: LinuxPPS API ver. 1 registered
[    0.913183][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.913207][    T1] PTP clock support registered
[    0.915941][    T1] vgaarb: loaded
[    0.916821][    T1] clocksource: Switched to clocksource armada_370_xp_clocksource
[    0.922998][    T1] VFS: Disk quotas dquot_6.6.0
[    0.923336][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.938464][    T1] NET: Registered PF_INET protocol family
[    0.938734][    T1] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.940348][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.940603][    T1] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.940664][    T1] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.940739][    T1] TCP bind hash table entries: 4096 (order: 4, 65536 bytes, linear)
[    0.940862][    T1] TCP: Hash tables configured (established 4096 bind 4096)
[    0.941423][    T1] MPTCP token hash table entries: 512 (order: 1, 8192 bytes, linear)
[    0.941744][    T1] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.941798][    T1] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.942473][    T1] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.943510][    T1] RPC: Registered named UNIX socket transport module.
[    0.943524][    T1] RPC: Registered udp transport module.
[    0.943529][    T1] RPC: Registered tcp transport module.
[    0.943534][    T1] RPC: Registered tcp-with-tls transport module.
[    0.943539][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.943559][    T1] PCI: CLS 0 bytes, default 64
[    0.944558][   T29] Trying to unpack rootfs image as initramfs...
[    0.947043][    T1] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.951354][    T1] Initialise system trusted keyrings
[    0.951463][    T1] Key type blacklist registered
[    0.953491][    T1] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[    0.953589][    T1] zbud: loaded
[    0.965950][    T1] NFS: Registering the id_resolver key type
[    0.966045][    T1] Key type id_resolver registered
[    0.966056][    T1] Key type id_legacy registered
[    0.966266][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.966289][    T1] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    1.109763][    T1] xor: measuring software checksum speed
[    1.117435][    T1]    arm4regs        :  1304 MB/sec
[    1.127622][    T1]    8regs           :  1001 MB/sec
[    1.137243][    T1]    32regs          :  1040 MB/sec
[    1.137263][    T1] xor: using function: arm4regs (1304 MB/sec)
[    1.137287][    T1] async_tx: api initialized (async)
[    1.137303][    T1] Key type asymmetric registered
[    1.137311][    T1] Asymmetric key parser 'x509' registered
[    1.137925][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
[    1.138522][    T1] io scheduler bfq registered
[    1.144454][    T1] armada-375-pinctrl f1018000.pinctrl: registered pinctrl driver
[    1.146354][    T1] gpio gpiochip0: Static allocation of GPIO base is deprecated, use dynamic allocation.
[    1.150773][    T1] gpio gpiochip1: Static allocation of GPIO base is deprecated, use dynamic allocation.
[    1.152528][    T1] gpio gpiochip2: Static allocation of GPIO base is deprecated, use dynamic allocation.
[    1.154767][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[    1.238775][    T1] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    1.244825][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.246709][   T29] Freeing initrd memory: 5136K
[    1.308671][    T1] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    1.531227][    T1] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.540787][    T1] printk: console [ttyS0] disabled
[    1.562527][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 39, base_baud = 12500000) is a 16550A
[    1.562619][    T1] printk: console [ttyS0] enabled
[    2.587979][    T1] sata_mv f10a0000.sata: slots 32 ports 2
[    2.597277][    T1] scsi host0: sata_mv
[    2.603101][    T1] scsi host1: sata_mv
[    2.607805][    T1] ata1: SATA max UDMA/133 irq 40
[    2.612655][    T1] ata2: SATA max UDMA/133 irq 40
[    2.620385][    T1] spi-nor spi0.0: mx25l6405d (8192 Kbytes)
[    2.626322][    T1] 1 fixed-partitions partitions found on MTD device spi0.0
[    2.633469][    T1] Creating 1 MTD partitions on "spi0.0":
[    2.639098][    T1] 0x000000000000-0x000000100000 : "u-boot"
[    2.648935][    T1] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[    2.657624][    T1] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[    2.696386][    T1] hwmon hwmon0: temp1_input not attached to any thermal zone
[    2.705534][    T1] mvpp2 f10f0000.ethernet: using 3 shared buffers
[    2.724156][    T1] mvpp2 f10f0000.ethernet eth0: Using hardware mac address 00:00:00:00:00:04
[    2.771180][    T1] usbcore: registered new interface driver smsc75xx
[    2.778537][    T1] orion-ehci f1054000.usb: EHCI Host Controller
[    2.784712][    T1] orion-ehci f1054000.usb: new USB bus registered, assigned bus number 1
[    2.793249][    T1] orion-ehci f1054000.usb: irq 42, io mem 0xf1054000
[    2.826835][    T1] orion-ehci f1054000.usb: USB 2.0 started, EHCI 1.00
[    2.833804][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.06
[    2.842909][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.850918][    T1] usb usb1: Product: EHCI Host Controller
[    2.856552][    T1] usb usb1: Manufacturer: Linux 6.6.2-mvebu-tld-1 ehci_hcd
[    2.863694][    T1] usb usb1: SerialNumber: f1054000.usb
[    2.870525][    T1] hub 1-0:1.0: USB hub found
[    2.875128][    T1] hub 1-0:1.0: 1 port detected
[    2.881993][    T1] xhci-hcd f1058000.usb: xHCI Host Controller
[    2.888107][    T1] xhci-hcd f1058000.usb: new USB bus registered, assigned bus number 2
[    2.896390][    T1] xhci-hcd f1058000.usb: hcc params 0x0a000990 hci version 0x100 quirks 0x0000000000000010
[    2.906514][    T1] xhci-hcd f1058000.usb: irq 43, io mem 0xf1058000
[    2.913451][    T1] xhci-hcd f1058000.usb: xHCI Host Controller
[    2.919518][    T1] xhci-hcd f1058000.usb: new USB bus registered, assigned bus number 3
[    2.927722][    T1] xhci-hcd f1058000.usb: Host supports USB 3.0 SuperSpeed
[    2.934989][    T1] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.06
[    2.944072][    T1] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.952069][    T1] usb usb2: Product: xHCI Host Controller
[    2.955309][  T677] ata1: SATA link down (SStatus 0 SControl F300)
[    2.957719][    T1] usb usb2: Manufacturer: Linux 6.6.2-mvebu-tld-1 xhci-hcd
[    2.971052][    T1] usb usb2: SerialNumber: f1058000.usb
[    2.977908][    T1] hub 2-0:1.0: USB hub found
[    2.982471][    T1] hub 2-0:1.0: 1 port detected
[    2.988284][    T1] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    2.997373][    T1] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 6.06
[    3.006392][    T1] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.014395][    T1] usb usb3: Product: xHCI Host Controller
[    3.020224][    T1] usb usb3: Manufacturer: Linux 6.6.2-mvebu-tld-1 xhci-hcd
[    3.027352][    T1] usb usb3: SerialNumber: f1058000.usb
[    3.034007][    T1] hub 3-0:1.0: USB hub found
[    3.038600][    T1] hub 3-0:1.0: 1 port detected
[    3.044727][    T1] usbcore: registered new interface driver usblp
[    3.051204][    T1] usbcore: registered new interface driver usb-storage
[    3.059174][    T1] mousedev: PS/2 mouse device common for all mice
[    3.069200][    T1] rtc-mv f1010300.rtc: registered as rtc0
[    3.074850][    T1] rtc-mv f1010300.rtc: setting system clock to 2025-01-21T08:05:30 UTC (1737446730)
[    3.085623][    T1] i2c_dev: i2c /dev entries driver
[    3.199577][    T1] orion_wdt: Initial timeout 171 sec
[    3.205812][    T1] device-mapper: uevent: version 1.0.3
[    3.211911][    T1] device-mapper: ioctl: 4.48.0-ioctl (2023-03-01) initialised: dm-devel@redhat.com
[    3.221859][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[    3.229231][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[    3.236591][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[    3.244154][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[    3.251297][    T1] sdhci: Secure Digital Host Controller Interface driver
[    3.258281][    T1] sdhci: Copyright(c) Pierre Ossman
[    3.263568][    T1] sdhci-pltfm: SDHCI platform and OF driver helper
[    3.272465][    T1] marvell-cesa f1090000.crypto: CESA device successfully registered
[    3.276972][   T65] usb 2-1: new high-speed USB device number 2 using xhci-hcd
[    3.280798][    T1] hid: raw HID events driver (C) Jiri Kosina
[    3.294789][    T1] usbcore: registered new interface driver usbhid
[    3.301150][    T1] usbhid: USB HID core driver
[    3.308014][    T1] NET: Registered PF_INET6 protocol family
[    3.310451][  T688] ata2: SATA link down (SStatus 0 SControl F300)
[    3.321690][    T1] Segment Routing with IPv6
[    3.326089][    T1] RPL Segment Routing with IPv6
[    3.331052][    T1] In-situ OAM (IOAM) with IPv6
[    3.335846][    T1] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    3.345870][    T1] NET: Registered PF_PACKET protocol family
[    3.352069][    T1] 8021q: 802.1Q VLAN Support v1.8
[    3.357176][    T1] Key type dns_resolver registered
[    3.362560][    T1] ThumbEE CPU extension supported.
[    3.367621][    T1] Registering SWP/SWPB emulation handler
[    3.447074][    T1] registered taskstats version 1
[    3.452044][    T1] Loading compiled-in X.509 certificates
[    3.469589][   T65] usb 2-1: New USB device found, idVendor=0951, idProduct=1625, bcdDevice= 2.00
[    3.489734][   T65] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    3.497691][   T65] usb 2-1: Product: DT 101 II
[    3.502256][   T65] usb 2-1: Manufacturer: Kingston
[    3.507199][   T65] usb 2-1: SerialNumber: <redacted>
[    3.514531][    T1] Key type .fscrypt registered
[    3.519259][    T1] Key type fscrypt-provisioning registered
[    3.525122][    T1] Key type big_key registered
[    3.525418][   T65] usb-storage 2-1:1.0: USB Mass Storage device detected
[    3.538192][   T65] scsi host2: usb-storage 2-1:1.0
[    3.562218][    T1] Key type encrypted registered
[    3.572207][   T25] usb_phy_generic usb3-phy: dummy supplies not allowed for exclusive requests
[    3.582467][    T1] clk: Disabling unused clocks
[    3.591410][    T1] Freeing unused kernel image (initmem) memory: 1024K
[    3.627798][    T1] Checked W+X mappings: passed, no W+X pages found
[    3.634222][    T1] Run /init as init process
Loading, please wait...
Starting systemd-udevd version 252.19-1~deb12u1
[    4.577829][   T39] scsi 2:0:0:0: Direct-Access     Kingston DT 101 II        1.00 PQ: 0 ANSI: 2
[    4.593363][   T39] sd 2:0:0:0: [sda] 7847936 512-byte logical blocks: (4.02 GB/3.74 GiB)
[    4.605793][   T39] sd 2:0:0:0: [sda] Write Protect is off
[    4.611928][   T39] sd 2:0:0:0: [sda] No Caching mode page found
[    4.618130][   T39] sd 2:0:0:0: [sda] Assuming drive cache: write through
[    4.631706][   T39]  sda: sda1
[    4.646469][   T39] sd 2:0:0:0: [sda] Attached SCSI removable disk
[    5.108297][ T1245] usbcore: registered new interface driver uas
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, 25899/245280 files, 236636/980736 blocks
done.
[    5.837461][ T1265] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[    5.929218][ T1265] EXT4-fs (sda1): mounted filesystem <redacted> 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...[    9.511003][ T1456] sd 2:0:0:0: Attached scsi generic sg0 type 0
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 writable.Give root password for maintenance
(or press Control-D to continue): [   93.936850][    C0] random: crng init done

Login incorrect

Give 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.
Initializing random number generator...done.
[ 6823.347871][ T1990] mvpp2 f10f0000.ethernet eth0: PHY [f10c0054.mdio-mii:01] driver [Marvell 88E1510] (irq=POLL)
[ 6823.358325][ T1990] mvpp2 f10f0000.ethernet eth0: configuring for phy/rgmii-id link mode
Configuring network interfaces...Internet Systems Consortium DHCP Client 4.4.3-P1
Copyright 2004-2022 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/00:00:00:00:00:04
Sending on   LPF/eth0/00:00:00:00:00:04
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
[ 6827.527111][   T65] mvpp2 f10f0000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 16
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 18
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
done.
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...
2133 (syslogd)
.
Starting NTP server: ntpd2025-01-21T02:00:21 ntpd[2150]: INIT: ntpd ntpsec-1.2.2: Starting
2025-01-21T02:00:21 ntpd[2150]: INIT: Command line: /usr/sbin/ntpd -p /run/ntpd.pid -c /etc/ntpsec/ntp.conf -g -N -u ntpsec:ntpsec
.
Starting NTP server: ntpd.
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...
2174 (klogd)
.
Running local boot scripts (/etc/rc.local)
Configuration file wrong or corrupted
<13>Jan 21 02:00:24 root[2224]: Cannot read u-boot env ethaddr
.

Debian GNU/Linux 12 debian ttyS0

Re: Debian on Synology DS215j
January 21, 2025 01:38PM
Quote
bodhi

If you're eager to use SSH, or just want to see Ethernet works, you can hardcode the MAC address inside /etc/network/interface. And use u-boot ethaddr value for it. Something like this for one of my boxes:

cat /etc/network/interfaces
auto lo eth0
iface lo inet loopback
iface eth0 inet static
address 192.168.0.232
netmask 255.255.255.0
gateway 192.168.0.1
hwaddress ether XX:XX:XX:XX:XX:XX # where XX:XX:XX:XX:XX:XX is the u-boot env ethaddr value

Did this work?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Synology DS215j
January 21, 2025 07:04PM
> Did this work?

Updating the /etc/network/interfaces file and restarting the network didn't work.

# cat /etc/network/interfaces
#rename /end0=eth0
#auto lo eth0
#allow-hotplug eth0
#iface lo inet loopback
#iface eth0 inet dhcp

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

pinging the router I get the "Destination Host Unreachable" error.
Re: Debian on Synology DS215j
January 21, 2025 10:22PM
> Updating the /etc/network/interfaces file and
> restarting the network didn't work.
>
>
> # cat /etc/network/interfaces
> #rename /end0=eth0
> #auto lo eth0
> #allow-hotplug eth0
> #iface lo inet loopback
> #iface eth0 inet dhcp
> 
> 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
>
>
> pinging the router I get the "Destination Host
> Unreachable" error.

Perhaps reboot and check dmesg for

[ 6823.347871][ T1990] mvpp2 f10f0000.ethernet eth0: PHY [f10c0054.mdio-mii:01] driver [Marvell 88E1510] (irq=POLL)
[ 6823.358325][ T1990] mvpp2 f10f0000.ethernet eth0: configuring for phy/rgmii-id link mode
[ 6827.527111][   T65] mvpp2 f10f0000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
And
ifconfig -a

See if the new MAC address is in the settings, and ping again, check the TX errors.

Also ping another box that is on the same switch (skip the router).

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Synology DS215j
January 22, 2025 03:55AM
After reboot:

# dmesg | grep -i mvpp                                                                                   
[    2.714153] mvpp2 f10f0000.ethernet: using 3 shared buffers                                                        
[    2.732709] mvpp2 f10f0000.ethernet eth0: Using hardware mac address 00:00:00:00:00:04                             
[  399.997021] mvpp2 f10f0000.ethernet eth0: PHY [f10c0054.mdio-mii:01] driver [Marvell 88E1510] (irq=POLL)           
[  400.007364] mvpp2 f10f0000.ethernet eth0: configuring for phy/rgmii-id link mode                                   
[  404.167124] mvpp2 f10f0000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off


# 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 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 44  bytes 4556 (4.4 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 26  bytes 3118 (3.0 KiB)                                                                           
        RX errors 0  dropped 0  overruns 0  frame 0                                                                   
        TX packets 26  bytes 3118 (3.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
Re: Debian on Synology DS215j
January 22, 2025 03:34PM
Reboot with hardcode MAC address and static IP in /etc/network/interfaces.

Login and,

ethtool eth0
iconfig -a
ip -d route

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

Your Email:


Subject:


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