Welcome! Log In Create A New Profile

Advanced

Debian on Synology DS112 v10j

Posted by BayPanard 
Re: Debian on Synology DS112 v10j
June 16, 2025 11:14AM
Bodhi,

Thanks for this new build!

I can't boot with the .kwb file, something seems wrong :

$ sudo kwboot -t -B 115200 /dev/ttyUSB0 -b uboot.2024.10-tld-1.ds112.kwb -p
kwboot version 2022.01+dfsg-2ubuntu2.6
Invalid image header version
uboot.2024.10-tld-1.ds112.kwb: Invalid image.

/BayPanard
Re: Debian on Synology DS112 v10j
June 16, 2025 03:53PM
BayPanard,

> uboot.2024.10-tld-1.ds112.kwb: Invalid image.

Let me take a look. May be a bad build.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Synology DS112 v10j
June 16, 2025 04:16PM
BayPanard,

Attached is the new PCIe debug build.

uboot.2024.10-tld-1.ds112.bodhi.250616.tar
md5:
ccc884672cafb769f42bed15b75fd605
sha256:
36a67888b352a9a3f4d608d27457c24c4f9046bbc22ab04b81188b5485fb211c

This tarball includes 5 files.
uboot.2024.10-tld-1.ds112.kwb
uboot.2024.10-tld-1.ds112.environment.img
uboot.2024.10-tld-1.ds112.environment
uboot.2024.10-tld-1.ds112.boot.cmd
uboot.2024.10-tld-1.ds112.boot.scr
Only the uboot.2024.10-tld-1.ds112.kwb is updated from previous version.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Attachments:
open | download - uboot.2024.10-tld-1.ds112.bodhi.250616.tar (590 KB)
Re: Debian on Synology DS112 v10j
June 17, 2025 11:00AM
Bodhi,

kwboot ran smoothly with this last build :)

U-Boot 2024.10-tld-1 (Jun 16 2025 - 14:05:05 -0700)
Synology DS112 V10j

SoC:   Kirkwood 88F6282_A0
MPP:   Variant 88F6281
DRAM:  256 MiB
mvebu_pcie_bind: pcie0.0: io.start 3221225472 io.end 3221291007
mvebu_pcie_bind: pcie0.0: ports_count  1
mvebu_pcie_bind: pcie1.0: io.start 3221291008 io.end 3221291007
pcie1.0: unable to assign mbus window for io
mvebu_pcie_bind: pcie1.0: ports_count  2
mvebu_pcie_setup_link done for pcie0.0
mvebu_pcie_setup_link done for pcie1.0
mvebu_pcie_bind: 3rd phase - enabling pcie0.0: ports_index 0
mvebu_pcie_enable_link: No ofnode  - reset failed pcie0.0
mvebu_pcie_bind: 3rd phase - binding pcie0.0: ports_index 0
mvebu_pcie_bind: 3rd phase - bound pcie0.0:
mvebu_pcie_bind: 3rd phase - enabling pcie1.0: ports_index 1
mvebu_pcie_enable_link: No ofnode  - reset failed pcie1.0
mvebu_pcie_bind: 3rd phase - binding pcie1.0: ports_index 1
mvebu_pcie_bind: 3rd phase - bound pcie1.0:
Core:  24 devices, 17 uclasses, devicetree: separate
Loading Environment from SPIFlash... SF: Detected m25p32 with page size 256 Bytes, erase size 64 KiB, total 4 MiB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
pcie0.0: Link down
pcie1.0: Link down
Net:   
Warning: ethernet-controller@72000 (eth0) using random MAC address - 66:86:9b:ec:2e:14
eth0: ethernet-controller@72000
Hit any key to stop autoboot:  0 
DS112> dm tree
 Class     Index  Probed  Driver                Name
-----------------------------------------------------------
 root          0  [ + ]   root_driver           root_driver
 simple_bus    0  [ + ]   simple_bus            |-- mbus@f1000000
 misc          0  [ + ]   pcie_mvebu_base       |   `-- pcie@82000000
 pci           0  [ + ]   pcie_mvebu            |       |-- pcie0.0
 pci           2  [ + ]   pci_bridge_drv        |       |   `-- pci_0:0.0
 pci           1  [ + ]   pcie_mvebu            |       `-- pcie1.0
 pci           3  [ + ]   pci_bridge_drv        |           `-- pci_2:0.0
 simple_bus    1  [ + ]   simple_bus            |-- ocp@f1000000
 spi           0  [ + ]   mvebu_spi             |   |-- spi@10600
 spi_flash     0  [ + ]   jedec_spi_nor         |   |   `-- flash@0
 gpio          0  [   ]   gpio_mvebu            |   |-- gpio@10100
 gpio          1  [   ]   gpio_mvebu            |   |-- gpio@10140
 i2c           0  [   ]   i2c_mvtwsi            |   |-- i2c@11000
 serial        0  [ + ]   ns16550_serial        |   |-- serial@12000
 serial        1  [   ]   ns16550_serial        |   |-- serial@12100
 timer         0  [ + ]   orion_timer           |   |-- timer@20300
 usb           0  [   ]   ehci_mvebu            |   |-- ehci@50000
 ethernet      0  [ + ]   mvgbe                 |   |-- ethernet-controller@72000
 bootdev       0  [   ]   eth_bootdev           |   |   `-- ethernet-controller@72000.boo
 ahci          0  [   ]   sata_mv_ahci          |   `-- sata@80000
 simple_bus    2  [   ]   simple_bus            |-- regulators-hdd-30-2
 regulator     0  [   ]   regulator_fixed       |   |-- regulator@1
 regulator     1  [   ]   regulator_fixed       |   `-- regulator@2
 bootstd       0  [   ]   bootstd_drv           `-- bootstd
 bootmeth      0  [   ]   bootmeth_extlinux         |-- extlinux
 bootmeth      1  [   ]   bootmeth_script           `-- script
DS112> usb reset
resetting USB...
Bus ehci@50000: USB EHCI 1.00
scanning bus ehci@50000 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
DS112> usb info
1: Hub,  USB Revision 2.0
 - u-boot EHCI Host Controller 
 - Class: Hub
 - PacketSize: 64  Configurations: 1
 - Vendor: 0x0000  Product 0x0000 Version 1.0
   Configuration: 1
   - Interfaces: 1 Self Powered 0mA
     Interface: 0
     - Alternate Setting 0, Endpoints: 1
     - Class Hub
     - Endpoint 1 In Interrupt MaxPacket 8 Interval 255ms

DS112> usb part

no usb partition table available
DS112> sata init
DS112> sata part
Failed to wait for completion on port 0
ATA operation timed out
Failed to wait for completion on port 0
ATA operation timed out


Partition Map for ahci device 1  --   Partition Type: DOS

Part	Start Sector	Num Sectors	UUID		Type
  1	2048      	976771072 	9031dacb-01	83
DS112> dm tree
 Class     Index  Probed  Driver                Name
-----------------------------------------------------------
 root          0  [ + ]   root_driver           root_driver
 simple_bus    0  [ + ]   simple_bus            |-- mbus@f1000000
 misc          0  [ + ]   pcie_mvebu_base       |   `-- pcie@82000000
 pci           0  [ + ]   pcie_mvebu            |       |-- pcie0.0
 pci           2  [ + ]   pci_bridge_drv        |       |   `-- pci_0:0.0
 pci           1  [ + ]   pcie_mvebu            |       `-- pcie1.0
 pci           3  [ + ]   pci_bridge_drv        |           `-- pci_2:0.0
 simple_bus    1  [ + ]   simple_bus            |-- ocp@f1000000
 spi           0  [ + ]   mvebu_spi             |   |-- spi@10600
 spi_flash     0  [ + ]   jedec_spi_nor         |   |   `-- flash@0
 gpio          0  [   ]   gpio_mvebu            |   |-- gpio@10100
 gpio          1  [   ]   gpio_mvebu            |   |-- gpio@10140
 i2c           0  [   ]   i2c_mvtwsi            |   |-- i2c@11000
 serial        0  [ + ]   ns16550_serial        |   |-- serial@12000
 serial        1  [   ]   ns16550_serial        |   |-- serial@12100
 timer         0  [ + ]   orion_timer           |   |-- timer@20300
 usb           0  [ + ]   ehci_mvebu            |   |-- ehci@50000
 usb_hub       0  [ + ]   usb_hub               |   |   `-- usb_hub
 ethernet      0  [ + ]   mvgbe                 |   |-- ethernet-controller@72000
 bootdev       0  [   ]   eth_bootdev           |   |   `-- ethernet-controller@72000.boo
 ahci          0  [ + ]   sata_mv_ahci          |   `-- sata@80000
 blk           0  [ + ]   sata_mv_blk           |       |-- sata@80000.blk
 blk           1  [ + ]   sata_mv_blk           |       |-- sata@80000.blk
 partition     0  [ + ]   blk_partition         |       |   `-- sata@80000.blk:1
 bootdev       1  [   ]   sata_bootdev          |       `-- sata@80000.bootdev
 simple_bus    2  [   ]   simple_bus            |-- regulators-hdd-30-2
 regulator     0  [   ]   regulator_fixed       |   |-- regulator@1
 regulator     1  [   ]   regulator_fixed       |   `-- regulator@2
 bootstd       0  [ + ]   bootstd_drv           `-- bootstd
 bootmeth      0  [   ]   bootmeth_extlinux         |-- extlinux
 bootmeth      1  [   ]   bootmeth_script           `-- script

/BayPanard
Re: Debian on Synology DS112 v10j
June 17, 2025 03:56PM
BayPanard,

Thanks! very informative. It fails right away. And looks like we need a work around for this u-boot bug.

I will upload another version.

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



Edited 1 time(s). Last edit at 06/17/2025 07:30PM by bodhi.
Re: Debian on Synology DS112 v10j
June 17, 2025 08:27PM
BayPanard,

Attached is the new PCIe bug fix and debug build. Please try again the same test. I have high hope for this build.

uboot.2024.10-tld-1.ds112.bodhi.250617.tar
md5:
9c3bbbba90519277bf50abbc80372d6f
sha256:
d51aabe2620b36cb80590d61c1cb1b2084b6ea19cae6ee6fe621fe9eef88eb1b

This tarball includes 5 files.
uboot.2024.10-tld-1.ds112.kwb
uboot.2024.10-tld-1.ds112.environment.img
uboot.2024.10-tld-1.ds112.environment
uboot.2024.10-tld-1.ds112.boot.cmd
uboot.2024.10-tld-1.ds112.boot.scr
Only the uboot.2024.10-tld-1.ds112.kwb is updated from previous version.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Attachments:
open | download - uboot.2024.10-tld-1.ds112.bodhi.250617.tar (590 KB)
Re: Debian on Synology DS112 v10j
June 19, 2025 10:51AM
Bodhi,

This build didn't show the "pcie1.0: unable to assign mbus window for io" : progress !! :)

The pci links are still down, and the behavior regarding USB and internal SATA is the same

Here are the logs :
U-Boot 2024.10-tld-1 (Jun 17 2025 - 18:09:16 -0700)
Synology DS112 V10j

SoC:   Kirkwood 88F6282_A0
MPP:   Variant 88F6281
DRAM:  256 MiB
mvebu_pcie_bind: pcie0.0: mem.start 2415919104 mem.end 2684354559
mvebu_pcie_bind: pcie0.0: io.start 3221225472 io.end 3221291007
mvebu_pcie_bind: pcie0.0: ports_count  1
mvebu_pcie_bind: pcie1.0: mem.start 2550136832 mem.end 2684354559
mvebu_pcie_bind: pcie1.0: io.start 3221291008 io.end 3221356543
mvebu_pcie_bind: pcie1.0: ports_count  2
mvebu_pcie_setup_link done for pcie0.0
mvebu_pcie_setup_link done for pcie1.0
mvebu_pcie_bind: 3rd phase - enabling pcie0.0: ports_index 0
mvebu_pcie_enable_link: No ofnode  - reset failed pcie0.0
mvebu_pcie_bind: 3rd phase - binding pcie0.0: ports_index 0
mvebu_pcie_bind: 3rd phase - bound pcie0.0:
mvebu_pcie_bind: 3rd phase - enabling pcie1.0: ports_index 1
mvebu_pcie_enable_link: No ofnode  - reset failed pcie1.0
mvebu_pcie_bind: 3rd phase - binding pcie1.0: ports_index 1
mvebu_pcie_bind: 3rd phase - bound pcie1.0:
Core:  24 devices, 17 uclasses, devicetree: separate
Loading Environment from SPIFlash... SF: Detected m25p32 with page size 256 Bytes, erase size 64 KiB, total 4 MiB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
pcie0.0: Link down
pcie1.0: Link down
Net:   
Warning: ethernet-controller@72000 (eth0) using random MAC address - 76:85:2b:b9:29:ac
eth0: ethernet-controller@72000
Hit any key to stop autoboot:  0 
DS112> dm tree
 Class     Index  Probed  Driver                Name
-----------------------------------------------------------
 root          0  [ + ]   root_driver           root_driver
 simple_bus    0  [ + ]   simple_bus            |-- mbus@f1000000
 misc          0  [ + ]   pcie_mvebu_base       |   `-- pcie@82000000
 pci           0  [ + ]   pcie_mvebu            |       |-- pcie0.0
 pci           2  [ + ]   pci_bridge_drv        |       |   `-- pci_0:0.0
 pci           1  [ + ]   pcie_mvebu            |       `-- pcie1.0
 pci           3  [ + ]   pci_bridge_drv        |           `-- pci_2:0.0
 simple_bus    1  [ + ]   simple_bus            |-- ocp@f1000000
 spi           0  [ + ]   mvebu_spi             |   |-- spi@10600
 spi_flash     0  [ + ]   jedec_spi_nor         |   |   `-- flash@0
 gpio          0  [   ]   gpio_mvebu            |   |-- gpio@10100
 gpio          1  [   ]   gpio_mvebu            |   |-- gpio@10140
 i2c           0  [   ]   i2c_mvtwsi            |   |-- i2c@11000
 serial        0  [ + ]   ns16550_serial        |   |-- serial@12000
 serial        1  [   ]   ns16550_serial        |   |-- serial@12100
 timer         0  [ + ]   orion_timer           |   |-- timer@20300
 usb           0  [   ]   ehci_mvebu            |   |-- ehci@50000
 ethernet      0  [ + ]   mvgbe                 |   |-- ethernet-controller@72000
 bootdev       0  [   ]   eth_bootdev           |   |   `-- ethernet-controller@72000.boo
 ahci          0  [   ]   sata_mv_ahci          |   `-- sata@80000
 simple_bus    2  [   ]   simple_bus            |-- regulators-hdd-30-2
 regulator     0  [   ]   regulator_fixed       |   |-- regulator@1
 regulator     1  [   ]   regulator_fixed       |   `-- regulator@2
 bootstd       0  [   ]   bootstd_drv           `-- bootstd
 bootmeth      0  [   ]   bootmeth_extlinux         |-- extlinux
 bootmeth      1  [   ]   bootmeth_script           `-- script
DS112> usb reset
resetting USB...
Bus ehci@50000: USB EHCI 1.00
scanning bus ehci@50000 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
DS112> usb info
1: Hub,  USB Revision 2.0
 - u-boot EHCI Host Controller 
 - Class: Hub
 - PacketSize: 64  Configurations: 1
 - Vendor: 0x0000  Product 0x0000 Version 1.0
   Configuration: 1
   - Interfaces: 1 Self Powered 0mA
     Interface: 0
     - Alternate Setting 0, Endpoints: 1
     - Class Hub
     - Endpoint 1 In Interrupt MaxPacket 8 Interval 255ms

DS112> usb part

no usb partition table available
DS112> sata init
DS112> sata part
Failed to wait for completion on port 0
ATA operation timed out
Failed to wait for completion on port 0
ATA operation timed out


Partition Map for ahci device 1  --   Partition Type: DOS

Part	Start Sector	Num Sectors	UUID		Type
  1	2048      	976771072 	9031dacb-01	83

/BayPanard
Re: Debian on Synology DS112 v10j
June 19, 2025 03:46PM
BayPanard,

Damn, fix one bug and another one shows up :)

Thanks for testing!

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Synology DS112 v10j
June 21, 2025 12:23AM
BayPanard,

Attached is the new PCIe bug work around/debug build. Please try again the same test.

uboot.2024.10-tld-1.ds112.bodhi.250619.tar
md5:
a2b07d5f4b0d58210b822e24574468a3
sha256:
66e05c7edf4b310e61c8844edb1cb36eb2f4fabe0f6c485cfba398542fc116e1

This tarball includes 5 files.
uboot.2024.10-tld-1.ds112.kwb
uboot.2024.10-tld-1.ds112.environment.img
uboot.2024.10-tld-1.ds112.environment
uboot.2024.10-tld-1.ds112.boot.cmd
uboot.2024.10-tld-1.ds112.boot.scr
Only the uboot.2024.10-tld-1.ds112.kwb is updated from previous version.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Attachments:
open | download - uboot.2024.10-tld-1.ds112.bodhi.250619.tar (590 KB)
Re: Debian on Synology DS112 v10j
June 21, 2025 01:50AM
Bodhi,

Here are test result from your latest uboot :

U-Boot 2024.10-tld-1 (Jun 19 2025 - 14:07:14 -0700)
Synology DS112 V10j

SoC:   Kirkwood 88F6282_A0
MPP:   Variant 88F6281
DRAM:  256 MiB
mvebu_pcie_bind: : is disabled
mvebu_pcie_bind: pcie1.0: mem.start 0x90000000 mem.end 0x9fffffff
mvebu_pcie_bind: pcie1.0: io.start 0xc0000000 io.end 0xc000ffff
mvebu_pcie_bind: pcie1.0: ports_count  1
mvebu_pcie_setup_link done for pcie1.0
mvebu_pcie_bind: 3rd phase - enabling pcie1.0: ports_index 0
mvebu_pcie_enable_link: No ofnode  - reset failed pcie1.0
mvebu_pcie_bind: 3rd phase - binding pcie1.0: ports_index 0
mvebu_pcie_bind: 3rd phase - bound pcie1.0:
Core:  23 devices, 17 uclasses, devicetree: separate
Loading Environment from SPIFlash... SF: Detected m25p32 with page size 256 Bytes, erase size 64 KiB, total 4 MiB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
pcie1.0: Link down
Net:   
Warning: ethernet-controller@72000 (eth0) using random MAC address - a6:5c:97:a8:cd:3c
eth0: ethernet-controller@72000
Hit any key to stop autoboot:  0 
DS112> dm tree
 Class     Index  Probed  Driver                Name
-----------------------------------------------------------
 root          0  [ + ]   root_driver           root_driver
 simple_bus    0  [ + ]   simple_bus            |-- mbus@f1000000
 misc          0  [ + ]   pcie_mvebu_base       |   `-- pcie@82000000
 pci           0  [ + ]   pcie_mvebu            |       `-- pcie1.0
 pci           1  [ + ]   pci_bridge_drv        |           `-- pci_0:0.0
 simple_bus    1  [ + ]   simple_bus            |-- ocp@f1000000
 spi           0  [ + ]   mvebu_spi             |   |-- spi@10600
 spi_flash     0  [ + ]   jedec_spi_nor         |   |   `-- flash@0
 gpio          0  [   ]   gpio_mvebu            |   |-- gpio@10100
 gpio          1  [   ]   gpio_mvebu            |   |-- gpio@10140
 i2c           0  [   ]   i2c_mvtwsi            |   |-- i2c@11000
 serial        0  [ + ]   ns16550_serial        |   |-- serial@12000
 serial        1  [   ]   ns16550_serial        |   |-- serial@12100
 timer         0  [ + ]   orion_timer           |   |-- timer@20300
 usb           0  [   ]   ehci_mvebu            |   |-- ehci@50000
 ethernet      0  [ + ]   mvgbe                 |   |-- ethernet-controller@72000
 bootdev       0  [   ]   eth_bootdev           |   |   `-- ethernet-controller@72000.boo
 ahci          0  [   ]   sata_mv_ahci          |   `-- sata@80000
 simple_bus    2  [   ]   simple_bus            |-- regulators-hdd-30-2
 regulator     0  [   ]   regulator_fixed       |   |-- regulator@1
 regulator     1  [   ]   regulator_fixed       |   `-- regulator@2
 bootstd       0  [   ]   bootstd_drv           `-- bootstd
 bootmeth      0  [   ]   bootmeth_extlinux         |-- extlinux
 bootmeth      1  [   ]   bootmeth_script           `-- script
DS112> usb reset
resetting USB...
Bus ehci@50000: USB EHCI 1.00
scanning bus ehci@50000 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
DS112> usb info
1: Hub,  USB Revision 2.0
 - u-boot EHCI Host Controller 
 - Class: Hub
 - PacketSize: 64  Configurations: 1
 - Vendor: 0x0000  Product 0x0000 Version 1.0
   Configuration: 1
   - Interfaces: 1 Self Powered 0mA
     Interface: 0
     - Alternate Setting 0, Endpoints: 1
     - Class Hub
     - Endpoint 1 In Interrupt MaxPacket 8 Interval 255ms

DS112> usb part

no usb partition table available
DS112> sata init
DS112> sata part
Failed to wait for completion on port 0
ATA operation timed out
Failed to wait for completion on port 0
ATA operation timed out


Partition Map for ahci device 1  --   Partition Type: DOS

Part	Start Sector	Num Sectors	UUID		Type
  1	2048      	976771072 	9031dacb-01	83
DS112> dm tree
 Class     Index  Probed  Driver                Name
-----------------------------------------------------------
 root          0  [ + ]   root_driver           root_driver
 simple_bus    0  [ + ]   simple_bus            |-- mbus@f1000000
 misc          0  [ + ]   pcie_mvebu_base       |   `-- pcie@82000000
 pci           0  [ + ]   pcie_mvebu            |       `-- pcie1.0
 pci           1  [ + ]   pci_bridge_drv        |           `-- pci_0:0.0
 simple_bus    1  [ + ]   simple_bus            |-- ocp@f1000000
 spi           0  [ + ]   mvebu_spi             |   |-- spi@10600
 spi_flash     0  [ + ]   jedec_spi_nor         |   |   `-- flash@0
 gpio          0  [   ]   gpio_mvebu            |   |-- gpio@10100
 gpio          1  [   ]   gpio_mvebu            |   |-- gpio@10140
 i2c           0  [   ]   i2c_mvtwsi            |   |-- i2c@11000
 serial        0  [ + ]   ns16550_serial        |   |-- serial@12000
 serial        1  [   ]   ns16550_serial        |   |-- serial@12100
 timer         0  [ + ]   orion_timer           |   |-- timer@20300
 usb           0  [ + ]   ehci_mvebu            |   |-- ehci@50000
 usb_hub       0  [ + ]   usb_hub               |   |   `-- usb_hub
 ethernet      0  [ + ]   mvgbe                 |   |-- ethernet-controller@72000
 bootdev       0  [   ]   eth_bootdev           |   |   `-- ethernet-controller@72000.boo
 ahci          0  [ + ]   sata_mv_ahci          |   `-- sata@80000
 blk           0  [ + ]   sata_mv_blk           |       |-- sata@80000.blk
 blk           1  [ + ]   sata_mv_blk           |       |-- sata@80000.blk
 partition     0  [ + ]   blk_partition         |       |   `-- sata@80000.blk:1
 bootdev       1  [   ]   sata_bootdev          |       `-- sata@80000.bootdev
 simple_bus    2  [   ]   simple_bus            |-- regulators-hdd-30-2
 regulator     0  [   ]   regulator_fixed       |   |-- regulator@1
 regulator     1  [   ]   regulator_fixed       |   `-- regulator@2
 bootstd       0  [ + ]   bootstd_drv           `-- bootstd
 bootmeth      0  [   ]   bootmeth_extlinux         |-- extlinux
 bootmeth      1  [   ]   bootmeth_script           `-- script

(many thanks for taking time to work on this)

/BayPanard
Re: Debian on Synology DS112 v10j
June 21, 2025 03:44PM
BayPanard,

Thanks! looks like I need to rebase this u-boot to 2025.07-x to make sure we don't miss other indirect bugs. The good thing is what we found out about "unable to assign mbus window for io" error is a real bug and I will send that patch to U-Boot.

The difficulty is the Linux driver for MVEBU PCI is quite different from the U-Boot version. So even though we know it's working in Linux, it's hard to see what could be wrong in U-Boot. The developer (an expert on this topic) who could have ported this PCI driver from Linux to U-Boot is no longer with U-Boot project.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Synology DS112 v10j
June 22, 2025 04:59AM
Bodhi,

Okay seems like having a working modern uboot on this box is not an easy task,
I hope rebasing on this 2025.07 uboot will bring some improvement, anyway thanks a lot for your work!

I stay ready to test anything you throw at me ^^
(And in the meantime, if by chance I find anything worse sharing, i'll do it)

/BayPanard
Re: Debian on Synology DS112 v10j
June 22, 2025 03:04PM
BayPanard,

> Okay seems like having a working modern uboot on
> this box is not an easy task,

You can boot with eSATA rootfs in the mean time.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Synology DS112 v10j
June 22, 2025 07:37PM
BayPanard ,

Log into Debian and
lspci
lspci -vvv
Please post the output here.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Synology DS112 v10j
June 25, 2025 01:44PM
Bodhi,

Do you need me to boot debian using stock uboot with tftp boot? or using your uboot with esata booting?
(I remember option 2 did not have working USB)

/BayPanard
Re: Debian on Synology DS112 v10j
June 25, 2025 02:33PM
BayPanard,

> Do you need me to boot debian using stock uboot
> with tftp boot? or using your uboot with esata
> booting?

It's really the same in Debian (everything should be working with either boot method). But please do eSATA booting with new u-boot.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Synology DS112 v10j
June 28, 2025 11:14AM
Bodhi,

Here is the full uboot then debian boot log :
U-Boot 2024.10-tld-1 (Jun 19 2025 - 14:07:14 -0700)
Synology DS112 V10j

SoC:   Kirkwood 88F6282_A0
MPP:   Variant 88F6281
DRAM:  256 MiB
mvebu_pcie_bind: : is disabled
mvebu_pcie_bind: pcie1.0: mem.start 0x90000000 mem.end 0x9fffffff
mvebu_pcie_bind: pcie1.0: io.start 0xc0000000 io.end 0xc000ffff
mvebu_pcie_bind: pcie1.0: ports_count  1
mvebu_pcie_setup_link done for pcie1.0
mvebu_pcie_bind: 3rd phase - enabling pcie1.0: ports_index 0
mvebu_pcie_enable_link: No ofnode  - reset failed pcie1.0
mvebu_pcie_bind: 3rd phase - binding pcie1.0: ports_index 0
mvebu_pcie_bind: 3rd phase - bound pcie1.0:
Core:  23 devices, 17 uclasses, devicetree: separate
Loading Environment from SPIFlash... SF: Detected m25p32 with page size 256 Bytes, erase size 64 KiB, total 4 MiB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
pcie1.0: Link down
Net:   
Warning: ethernet-controller@72000 (eth0) using random MAC address - 7a:69:74:cf:91:71
eth0: ethernet-controller@72000
Hit any key to stop autoboot:  0 
DS112> boot
Initializing devices...
resetting USB...
Bus ehci@50000: USB EHCI 1.00
scanning bus ehci@50000 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
Loading envs from usb 0...
** Bad device specification usb 0 **
Couldn't find partition usb 0:1
Can't set block device
Loading envs from usb 1...
** Bad device specification usb 1 **
Couldn't find partition usb 1:1
Can't set block device
Loading envs from usb 2...
** Bad device specification usb 2 **
Couldn't find partition usb 2:1
Can't set block device
Loading envs from usb 3...
** Bad device specification usb 3 **
Couldn't find partition usb 3:1
Can't set block device
Loading envs from sata 0...
Failed to wait for completion on port 0
ATA operation timed out
Failed to wait for completion on port 0
ATA operation timed out
** Bad device size - sata 0 **
Couldn't find partition sata 0:1
Can't set block device
Loading envs from sata 1...
Failed to load '/boot/uEnv.txt'
Loading envs from sata 2...
** Bad device specification sata 2 **
Couldn't find partition sata 2:1
Can't set block device
Loading envs from sata 3...
** Bad device specification sata 3 **
Couldn't find partition sata 3:1
Can't set block device
running scan_disk ...
Scan device usb
device usb 0:1
** Bad device specification usb 0 **
Couldn't find partition usb 0:1
Can't set block device
device usb 1:1
** Bad device specification usb 1 **
Couldn't find partition usb 1:1
Can't set block device
device usb 2:1
** Bad device specification usb 2 **
Couldn't find partition usb 2:1
Can't set block device
device usb 3:1
** Bad device specification usb 3 **
Couldn't find partition usb 3:1
Can't set block device
Scan device sata
device sata 0:1
** Bad device size - sata 0 **
Couldn't find partition sata 0:1
Can't set block device
device sata 1:1
1 bytes read in 42 ms (0 Bytes/s)
Found bootable drive on sata 1
loading uImage ...
6223944 bytes read in 206 ms (28.8 MiB/s)
loading uInitrd ...
5791271 bytes read in 255 ms (21.7 MiB/s)
loading DTB /boot/dts/kirkwood-ds112-v10j.dtb ...
22372 bytes read in 46 ms (474.6 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-6.5.7-kirkwood-tld-1
   Created:      2023-10-31  22:53:22 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    6223880 Bytes = 5.9 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 02100000 ...
   Image Name:   initramfs-6.5.7-kirkwood-tld-1
   Created:      2023-10-31  22:53:55 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    5791207 Bytes = 5.5 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01c00000
   Booting using the fdt blob at 0x1c00000
Working FDT set to 1c00000


Starting kernel ...

   Loading Kernel Image to 8000
   Loading Ramdisk to 0f5da000, end 0fb5fde7 ... OK
   Loading Device Tree to 0f5d1000, end 0f5d9763 ... OK
Working FDT set to f5d1000

Starting kernel ...

[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 6.5.7-kirkwood-tld-1 (root@tldDebian) (gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #2 PREEMPT Wed Oct 18 21:14:11 PDT 2023
[    0.000000][    T0] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000][    T0] CPU: VIVT data cache, VIVT instruction cache
[    0.000000][    T0] OF: fdt: Machine model: Synology DS112 V10j
[    0.000000][    T0] Memory policy: Data cache writeback
[    0.000000][    T0] Zone ranges:
[    0.000000][    T0]   Normal   [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000][    T0] Movable zone start for each node
[    0.000000][    T0] Early memory node ranges
[    0.000000][    T0]   node   0: [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000][    T0] Initmem setup node 0 [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000][    T0] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=spi0.0:512K(u-boot),64K@768K(u-boot-env),3M@1M(data)
[    0.000000][    T0] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000][    T0] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 64960
[    0.000000][    T0] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000][    T0] Memory: 232304K/262144K available (12288K kernel code, 1755K rwdata, 5416K rodata, 1024K init, 301K bss, 29840K reserved, 0K cma-reserved)
[    0.000000][    T0] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000][    T0] trace event string verifier disabled
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    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] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000][    T0] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000][    T0] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000001][    T0] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000041][    T0] Switching to timer-based delay loop, resolution 5ns
[    0.000556][    T0] Console: colour dummy device 80x30
[    0.000617][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.000642][    T0] CPU: Testing write buffer coherency: ok
[    0.000752][    T0] pid_max: default: 32768 minimum: 301
[    0.007411][    T0] LSM: initializing lsm=capability,integrity
[    0.009264][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.009294][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.019189][    T1] RCU Tasks: Setting shift to 0 and lim to 1 rcu_task_cb_adjust=1.
[    0.019498][    T1] RCU Tasks Trace: Setting shift to 0 and lim to 1 rcu_task_cb_adjust=1.
[    0.019902][    T1] Setting up static identity map for 0x100000 - 0x100058
[    0.020247][    T1] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x0
[    0.020602][    T1] rcu: Hierarchical SRCU implementation.
[    0.020616][    T1] rcu: 	Max phase no-delay instances is 1000.
[    0.023014][    T1] devtmpfs: initialized
[    0.036732][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.036770][    T1] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.038942][    T1] prandom: seed boundary self test passed
[    0.042265][    T1] prandom: 100 self tests passed
[    0.042286][    T1] pinctrl core: initialized pinctrl subsystem
[    0.045355][    T1] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.046075][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.050848][    T1] audit: initializing netlink subsys (disabled)
[    0.052576][    T1] thermal_sys: Registered thermal governor 'step_wise'
[    0.052711][    T1] cpuidle: using governor ladder
[    0.052781][    T1] cpuidle: using governor menu
[    0.053303][    T1] Feroceon L2: Enabling L2
[    0.053334][    T1] Feroceon L2: Cache support initialised.
[    0.060097][   T19] audit: type=2000 audit(0.050:1): state=initialized audit_enabled=0 res=1
[    0.062478][    T1] No ATAGs?
[    0.420055][    T1] raid6: int32x8  gen()   151 MB/s
[    0.760054][    T1] raid6: int32x4  gen()   140 MB/s
[    1.100079][    T1] raid6: int32x2  gen()   180 MB/s
[    1.440053][    T1] raid6: int32x1  gen()   132 MB/s
[    1.440064][    T1] raid6: using algorithm int32x2 gen() 180 MB/s
[    1.780052][    T1] raid6: .... xor() 115 MB/s, rmw enabled
[    1.780061][    T1] raid6: using intx1 recovery algorithm
[    1.781373][    T1] SCSI subsystem initialized
[    1.781999][    T1] usbcore: registered new interface driver usbfs
[    1.782054][    T1] usbcore: registered new interface driver hub
[    1.782104][    T1] usbcore: registered new device driver usb
[    1.782431][    T1] pps_core: LinuxPPS API ver. 1 registered
[    1.782438][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    1.782488][    T1] PTP clock support registered
[    1.784614][    T1] vgaarb: loaded
[    1.790636][    T1] clocksource: Switched to clocksource orion_clocksource
[    1.797679][    T1] VFS: Disk quotas dquot_6.6.0
[    1.798002][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.823403][    T1] NET: Registered PF_INET protocol family
[    1.823648][    T1] IP idents hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    1.831631][    T1] tcp_listen_portaddr_hash hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    1.831797][    T1] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    1.831821][    T1] TCP established hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    1.831863][    T1] TCP bind hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    1.831916][    T1] TCP: Hash tables configured (established 2048 bind 2048)
[    1.832449][    T1] MPTCP token hash table entries: 512 (order: 0, 6144 bytes, linear)
[    1.832640][    T1] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    1.832670][    T1] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    1.833347][    T1] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    1.834273][    T1] RPC: Registered named UNIX socket transport module.
[    1.834284][    T1] RPC: Registered udp transport module.
[    1.834289][    T1] RPC: Registered tcp transport module.
[    1.834294][    T1] RPC: Registered tcp-with-tls transport module.
[    1.834298][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.834315][    T1] PCI: CLS 0 bytes, default 32
[    1.836565][   T32] Trying to unpack rootfs image as initramfs...
[    2.590696][   T32] Freeing initrd memory: 5656K
[    3.007046][    T1] Initialise system trusted keyrings
[    3.007177][    T1] Key type blacklist registered
[    3.008312][    T1] workingset: timestamp_bits=14 max_order=16 bucket_order=2
[    3.008459][    T1] zbud: loaded
[    3.023035][    T1] NFS: Registering the id_resolver key type
[    3.023077][    T1] Key type id_resolver registered
[    3.023084][    T1] Key type id_legacy registered
[    3.023233][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    3.023251][    T1] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    3.024493][    T1] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    3.025149][    T1] fuse: init (API version 7.38)
[    3.026278][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[    3.026566][    T1] orangefs_init: module version upstream loaded
[    3.026865][    T1] SGI XFS with ACLs, security attributes, realtime, scrub, quota, no debug enabled
[    3.185927][    T1] xor: measuring software checksum speed
[    3.192619][    T1]    arm4regs        :  1484 MB/sec
[    3.203684][    T1]    8regs           :   890 MB/sec
[    3.211487][    T1]    32regs          :  1263 MB/sec
[    3.211495][    T1] xor: using function: arm4regs (1484 MB/sec)
[    3.211507][    T1] async_tx: api initialized (async)
[    3.211519][    T1] Key type asymmetric registered
[    3.211526][    T1] Asymmetric key parser 'x509' registered
[    3.251978][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    3.252327][    T1] io scheduler bfq registered
[    3.395036][    T1] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    3.396536][    T1] gpio gpiochip0: Static allocation of GPIO base is deprecated, use dynamic allocation.
[    3.397644][    T1] gpio gpiochip1: Static allocation of GPIO base is deprecated, use dynamic allocation.
[    3.398490][    T1] mvebu-pcie mbus@f1000000:pcie@82000000: host bridge /mbus@f1000000/pcie@82000000 ranges:
[    3.398555][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0x00f1040000..0x00f1041fff -> 0x0000040000
[    3.398591][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0x00f1044000..0x00f1045fff -> 0x0000044000
[    3.398623][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0x00f1080000..0x00f1081fff -> 0x0000080000
[    3.398655][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[    3.398685][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[    3.398714][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0200000000
[    3.398735][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0200000000
[    3.399622][    T1] mvebu-pcie mbus@f1000000:pcie@82000000: PCI host bridge to bus 0000:00
[    3.399639][    T1] pci_bus 0000:00: root bus resource [bus 00-ff]
[    3.399655][    T1] pci_bus 0000:00: root bus resource [mem 0xf1040000-0xf1041fff] (bus address [0x00040000-0x00041fff])
[    3.399669][    T1] pci_bus 0000:00: root bus resource [mem 0xf1044000-0xf1045fff] (bus address [0x00044000-0x00045fff])
[    3.399683][    T1] pci_bus 0000:00: root bus resource [mem 0xf1080000-0xf1081fff] (bus address [0x00080000-0x00081fff])
[    3.399694][    T1] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    3.399705][    T1] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[    3.399827][    T1] pci 0000:00:01.0: [11ab:6282] type 01 class 0x060400
[    3.400365][    T1] pci 0000:00:02.0: [11ab:6282] type 01 class 0x060400
[    3.402548][    T1] PCI: bus0: Fast back to back transfers disabled
[    3.402571][    T1] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    3.402597][    T1] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    3.402885][    T1] PCI: bus1: Fast back to back transfers enabled
[    3.402903][    T1] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    3.403150][    T1] PCI: bus2: Fast back to back transfers enabled
[    3.403167][    T1] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    3.403201][    T1] pci 0000:00:01.0: PCI bridge to [bus 01]
[    3.403220][    T1] pci 0000:00:02.0: PCI bridge to [bus 02]
[    3.404177][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[    3.462667][    T1] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    3.466288][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[    3.522677][    T1] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    3.526618][    T1] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    3.528725][    T1] printk: console [ttyS0] disabled
[    3.529249][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 29, base_baud = 12500000) is a 16550A
[    3.529305][    T1] printk: console [ttyS0] enabled
[    4.612814][    T1] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 30, base_baud = 12500000) is a 16550A
[    4.633124][    T1] loop: module loaded
[    4.638010][    T1] sata_mv f1080000.sata: slots 32 ports 2
[    4.647584][    T1] scsi host0: sata_mv
[    4.652807][    T1] scsi host1: sata_mv
[    4.657043][    T1] ata1: SATA max UDMA/133 irq 31
[    4.661926][    T1] ata2: SATA max UDMA/133 irq 31
[    4.668816][    T1] spi-nor spi0.0: found m25p32, expected m25p80
[    4.675022][    T1] spi-nor spi0.0: m25p32 (4096 Kbytes)
[    4.680432][    T1] 3 cmdlinepart partitions found on MTD device spi0.0
[    4.687108][    T1] Creating 3 MTD partitions on "spi0.0":
[    4.692647][    T1] 0x000000000000-0x000000080000 : "u-boot"
[    4.699086][    T1] 0x0000000c0000-0x0000000d0000 : "u-boot-env"
[    4.705759][    T1] 0x000000100000-0x000000400000 : "data"
[    4.712480][    T1] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[    4.721089][    T1] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[    4.735115][    T1] mdio_bus f1072004.mdio-bus-mii: MDIO device at address 8 is missing.
[    4.760956][    T1] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    4.770974][    T1] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 7a:69:74:cf:91:71
[    4.781002][    T1] orion-ehci f1050000.ehci: EHCI Host Controller
[    4.787250][    T1] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    4.795925][    T1] orion-ehci f1050000.ehci: irq 34, io mem 0xf1050000
[    4.830662][    T1] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    4.837666][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.05
[    4.846703][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    4.854674][    T1] usb usb1: Product: EHCI Host Controller
[    4.860273][    T1] usb usb1: Manufacturer: Linux 6.5.7-kirkwood-tld-1 ehci_hcd
[    4.867630][    T1] usb usb1: SerialNumber: f1050000.ehci
[    4.873922][    T1] hub 1-0:1.0: USB hub found
[    4.878430][    T1] hub 1-0:1.0: 1 port detected
[    4.883960][    T1] usbcore: registered new interface driver usb-storage
[    4.891291][    T1] mousedev: PS/2 mouse device common for all mice
[    4.897949][    T1] i2c_dev: i2c /dev entries driver
[    4.905698][    T1] rtc-s35390a 0-0030: registered as rtc0
[    4.911896][    T1] rtc-s35390a 0-0030: hctosys: unable to read the hardware clock
[    4.920745][    T1] device-mapper: uevent: version 1.0.3
[    4.926603][    T1] device-mapper: ioctl: 4.48.0-ioctl (2023-03-01) initialised: dm-devel@redhat.com
[    4.936405][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[    4.943747][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[    4.951137][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[    4.958571][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[    4.966193][    T1] ledtrig-cpu: registered to indicate activity on CPUs
[    4.973078][    T1] hid: raw HID events driver (C) Jiri Kosina
[    4.979367][    T1] drop_monitor: Initializing network drop monitor service
[    4.987633][    T1] NET: Registered PF_INET6 protocol family
[    4.993384][   T53] ata1: SATA link down (SStatus 0 SControl F300)
[    5.001433][    T1] Segment Routing with IPv6
[    5.005820][    T1] RPL Segment Routing with IPv6
[    5.010837][    T1] In-situ OAM (IOAM) with IPv6
[    5.015575][    T1] NET: Registered PF_PACKET protocol family
[    5.021809][    T1] Key type dns_resolver registered
[    5.041416][    T1] registered taskstats version 1
[    5.046310][    T1] Loading compiled-in X.509 certificates
[    5.068728][    T1] Key type .fscrypt registered
[    5.073455][    T1] Key type fscrypt-provisioning registered
[    5.084173][    T1] Key type big_key registered
[    5.124664][    T1] Key type encrypted registered
[    5.211837][  T105] "cryptomgr_test" (105) uses obsolete ecb(arc4) skcipher
[    5.520669][   T55] ata2: SATA link up 1.5 Gbps (SStatus 113 SControl F300)
[    5.542898][   T55] ata2.00: ATA-8: Hitachi HTS545050A7E380, GG2OA7J0, max UDMA/133
[    5.550603][   T55] ata2.00: 976773168 sectors, multi 16: LBA48 NCQ (depth 31/32)
[    5.602967][   T55] ata2.00: configured for UDMA/133
[    5.628549][   T18] scsi 1:0:0:0: Direct-Access     ATA      Hitachi HTS54505 A7J0 PQ: 0 ANSI: 5
[    5.651925][   T10] sd 1:0:0:0: [sda] 976773168 512-byte logical blocks: (500 GB/466 GiB)
[    5.660156][   T10] sd 1:0:0:0: [sda] 4096-byte physical blocks
[    5.680746][   T10] sd 1:0:0:0: [sda] Write Protect is off
[    5.686357][   T10] sd 1:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    5.710755][   T10] sd 1:0:0:0: [sda] Preferred minimum I/O size 4096 bytes
[    5.754892][   T10]  sda: sda1
[    5.770806][   T10] sd 1:0:0:0: [sda] Attached SCSI disk
[    7.015159][    T1] clk: Disabling unused clocks
[    7.023278][    T1] Freeing unused kernel image (initmem) memory: 1024K
[    7.051287][    T1] Checked W+X mappings: passed, no W+X pages found
[    7.057689][    T1] Run /init as init process
Loading, please wait...
Starting systemd-udevd version 252.17-1~deb12u1
[    9.390676][   T53] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    9.400006][   T53] ata1.00: ATA-11: Patriot P220 2048GB, H221215a, max UDMA/133
[    9.407489][   T53] ata1.00: 4000797360 sectors, multi 1: LBA48 NCQ (depth 31/32)
[    9.419805][   T53] ata1.00: configured for UDMA/133
[    9.426557][  T121] scsi 0:0:0:0: Direct-Access     ATA      Patriot P220 204 215a PQ: 0 ANSI: 5
[    9.439570][   T32] sd 0:0:0:0: [sdb] 4000797360 512-byte logical blocks: (2.05 TB/1.86 TiB)
[    9.452887][   T32] sd 0:0:0:0: [sdb] Write Protect is off
[    9.458508][   T32] sd 0:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    9.468492][   T32] sd 0:0:0:0: [sdb] Preferred minimum I/O size 512 bytes
[    9.481167][   T32]  sdb: sdb1 sdb2 sdb3
[    9.490789][   T32] sd 0:0:0:0: [sdb] Attached SCSI 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 
rootfs: clean, 20243/30531584 files, 2647968/122096384 blocks
done.
[   25.388970][  T175] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   27.200481][  T175] EXT4-fs (sda1): mounted filesystem c5ad4d0e-1782-4c5f-892f-763a083e5c6f ro 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.
Starting fake hwclock: loading system time.
Sat May 17 09:14:10 UTC 2025
Setting hostname to 'debian'...
done.
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...[   33.351268][  T362] orion_wdt: Initial timeout 21 sec
[   33.511024][  T360] sd 1:0:0:0: Attached scsi generic sg0 type 0
[   33.527138][  T360] sd 0:0:0:0: Attached scsi generic sg1 type 0
[   33.811702][  T368] marvell-cesa f1030000.crypto: CESA device successfully registered
[   34.060731][    C0] random: crng init done
done.
Activating swap:.
[   35.930899][  T521] EXT4-fs (sda1): re-mounted c5ad4d0e-1782-4c5f-892f-763a083e5c6f r/w. Quota mode: none.
Will now check all file systems.
Checking all file systems.
LABEL=rootfs is mounted
Done checking file systems.
Log is being saved in /var/log/fsck/checkfs if that location is writable.
Cleaning up temporary files...Cleaning /tmp...done.
 /tmp.
Will now mount local filesystems:.
Will now activate swapfile swap, if any:done.
Checking minimum space in /tmp...done.
Cleaning up temporary files....
Starting Setting kernel variables: sysctl.
Initializing random number generator...done.
Configuring network interfaces...
[   92.425674][    C0] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled

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/7a:69:74:cf:91:71
Sending on   LPF/eth0/7a:69:74:cf:91:71
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12
DHCPOFFER of 192.168.1.219 from 192.168.1.1
DHCPREQUEST for 192.168.1.219 on eth0 to 255.255.255.255 port 67
DHCPACK of 192.168.1.219 from 192.168.1.1
bound to 192.168.1.219 -- renewal in 18634 seconds.
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...
1034 (syslogd)
.
Starting system message bus: dbus.
Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[  114.411970][ T1112] Adding 995324k swap on /var/swap.  Priority:-2 extents:21 across:454926396k FS
Starting dphys-swapfile swapfile setup ...
computing size, want /var/swap=972MByte, checking existing: keeping it
done.
Starting NTP server: ntpd2025-05-17T12:15:20 ntpd[1120]: INIT: ntpd ntpsec-1.2.2: Starting
2025-05-17T12:15:20 ntpd[1120]: INIT: Command line: /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 104:106
.
Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1051 (klogd)
.
Starting NTP server: ntpd.
[  115.631638][ T1147] zram: Added device: zram0
[  115.882131][ T1144] zram0: detected capacity change from 0 to 358480
Starting OpenBSD Secure Shell server: sshd.
[  116.152094][ T1159] Adding 179236k swap on /dev/zram0.  Priority:100 extents:1 across:179236k SSFS
Starting zramswap: zramswap<13>May 17 12:15:21 root: Starting Zram
Setting up swapspace version 1, size = 175 MiB (183537664 bytes)
no label, UUID=33883efc-4ec3-4845-aadb-32e5cad6694a
.
Running local boot scripts (/etc/rc.local)
.

Debian GNU/Linux 12 debian ttyS0

debian login: root
Password: 
Linux debian 6.5.7-kirkwood-tld-1 #2 PREEMPT Wed Oct 18 21:14:11 PDT 2023 armv5tel

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: Sat May 17 11:02:36 CEST 2025 from 192.168.1.175 on pts/0
debian
192.168.1.219
Synology DS112 V10j
Linux version 6.5.7-kirkwood-tld-1 (root@tldDebian) (gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #2 PREEMPT Wed Oct 18 21:14:11 PDT 2023
Debian 12.10
Sat May 17 12:15:28 CEST 2025 up 2 minutes

Here is result from lspci command :
root@debian:~# lspci -vvv
00:01.0 PCI bridge: Marvell Technology Group Ltd. Device 6282 (prog-if 00 [Normal decode])
	Subsystem: Marvell Technology Group Ltd. Device 11ab
	Device tree node: /sys/firmware/devicetree/base/mbus@f1000000/pcie@82000000/pcie@1,0
	Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr+ Stepping- SERR+ FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
	I/O behind bridge: 0000f000-00000fff [disabled] [32-bit]
	Memory behind bridge: fff00000-000fffff [disabled] [32-bit]
	Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- <SERR- <PERR-
	BridgeCtl: Parity+ SERR+ NoISA- VGA- VGA16- MAbort- >Reset- FastB2B-
		PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
	Capabilities: [40] Subsystem: Marvell Technology Group Ltd. Device 11ab
	Capabilities: [60] Express (v1) Root Port (Slot+), MSI 00
		DevCap:	MaxPayload 128 bytes, PhantFunc 0
			ExtTag- RBE+
		DevCtl:	CorrErr- NonFatalErr- FatalErr- UnsupReq-
			RlxdOrd- ExtTag- PhantFunc- AuxPwr- NoSnoop-
			MaxPayload 128 bytes, MaxReadReq 512 bytes
		DevSta:	CorrErr- NonFatalErr- FatalErr- UnsupReq- AuxPwr- TransPend-
		LnkCap:	Port #0, Speed 2.5GT/s, Width x1, ASPM L0s L1, Exit Latency L0s <256ns, L1 unlimited
			ClockPM- Surprise- LLActRep+ BwNot- ASPMOptComp-
		LnkCtl:	ASPM Disabled; RCB 128 bytes, Disabled- CommClk-
			ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
		LnkSta:	Speed 2.5GT/s, Width x1
			TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
		SltCap:	AttnBtn- PwrCtrl- MRL- AttnInd- PwrInd- HotPlug- Surprise-
			Slot #1, PowerLimit 0W; Interlock- NoCompl-
		SltCtl:	Enable: AttnBtn- PwrFlt- MRL- PresDet- CmdCplt- HPIrq- LinkChg-
			Control: AttnInd Unknown, PwrInd Unknown, Power- Interlock-
		SltSta:	Status: AttnBtn- PowerFlt- MRL- CmdCplt- PresDet+ Interlock-
			Changed: MRL- PresDet- LinkState-
		RootCap: CRSVisible-
		RootCtl: ErrCorrectable- ErrNon-Fatal- ErrFatal- PMEIntEna- CRSVisible-
		RootSta: PME ReqID 0000, PMEStatus- PMEPending-
	Capabilities: [100 v1] Advanced Error Reporting
		UESta:	DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
		UEMsk:	DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
		UESvrt:	DLP+ SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF+ MalfTLP+ ECRC- UnsupReq- ACSViol-
		CESta:	RxErr- BadTLP- BadDLLP- Rollover- Timeout- AdvNonFatalErr-
		CEMsk:	RxErr- BadTLP- BadDLLP- Rollover- Timeout- AdvNonFatalErr+
		AERCap:	First Error Pointer: 00, ECRCGenCap- ECRCGenEn- ECRCChkCap- ECRCChkEn-
			MultHdrRecCap- MultHdrRecEn- TLPPfxPres- HdrLogCap-
		HeaderLog: 00000000 00000000 00000000 00000000
		RootCmd: CERptEn- NFERptEn- FERptEn-
		RootSta: CERcvd- MultCERcvd- UERcvd- MultUERcvd-
			 FirstFatal- NonFatalMsg- FatalMsg- IntMsg 0
		ErrorSrc: ERR_COR: 0000 ERR_FATAL/NONFATAL: 0000

00:02.0 PCI bridge: Marvell Technology Group Ltd. Device 6282 (prog-if 00 [Normal decode])
	Subsystem: Marvell Technology Group Ltd. Device 11ab
	Device tree node: /sys/firmware/devicetree/base/mbus@f1000000/pcie@82000000/pcie@2,0
	Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr+ Stepping- SERR+ FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
	I/O behind bridge: 0000f000-00000fff [disabled] [32-bit]
	Memory behind bridge: fff00000-000fffff [disabled] [32-bit]
	Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- <SERR- <PERR-
	BridgeCtl: Parity+ SERR+ NoISA- VGA- VGA16- MAbort- >Reset- FastB2B-
		PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
	Capabilities: [40] Subsystem: Marvell Technology Group Ltd. Device 11ab
	Capabilities: [60] Express (v1) Root Port (Slot+), MSI 00
		DevCap:	MaxPayload 128 bytes, PhantFunc 0
			ExtTag- RBE+
		DevCtl:	CorrErr- NonFatalErr- FatalErr- UnsupReq-
			RlxdOrd- ExtTag- PhantFunc- AuxPwr- NoSnoop-
			MaxPayload 128 bytes, MaxReadReq 512 bytes
		DevSta:	CorrErr- NonFatalErr- FatalErr- UnsupReq- AuxPwr- TransPend-
		LnkCap:	Port #0, Speed 2.5GT/s, Width x1, ASPM L0s L1, Exit Latency L0s <256ns, L1 unlimited
			ClockPM- Surprise- LLActRep+ BwNot- ASPMOptComp-
		LnkCtl:	ASPM Disabled; RCB 128 bytes, Disabled- CommClk-
			ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
		LnkSta:	Speed 2.5GT/s, Width x1
			TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
		SltCap:	AttnBtn- PwrCtrl- MRL- AttnInd- PwrInd- HotPlug- Surprise-
			Slot #2, PowerLimit 0W; Interlock- NoCompl-
		SltCtl:	Enable: AttnBtn- PwrFlt- MRL- PresDet- CmdCplt- HPIrq- LinkChg-
			Control: AttnInd Unknown, PwrInd Unknown, Power- Interlock-
		SltSta:	Status: AttnBtn- PowerFlt- MRL- CmdCplt- PresDet+ Interlock-
			Changed: MRL- PresDet- LinkState-
		RootCap: CRSVisible-
		RootCtl: ErrCorrectable- ErrNon-Fatal- ErrFatal- PMEIntEna- CRSVisible-
		RootSta: PME ReqID 0000, PMEStatus- PMEPending-
	Capabilities: [100 v1] Advanced Error Reporting
		UESta:	DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
		UEMsk:	DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
		UESvrt:	DLP+ SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF+ MalfTLP+ ECRC- UnsupReq- ACSViol-
		CESta:	RxErr- BadTLP- BadDLLP- Rollover- Timeout- AdvNonFatalErr-
		CEMsk:	RxErr- BadTLP- BadDLLP- Rollover- Timeout- AdvNonFatalErr+
		AERCap:	First Error Pointer: 00, ECRCGenCap- ECRCGenEn- ECRCChkCap- ECRCChkEn-
			MultHdrRecCap- MultHdrRecEn- TLPPfxPres- HdrLogCap-
		HeaderLog: 00000000 00000000 00000000 00000000
		RootCmd: CERptEn- NFERptEn- FERptEn-
		RootSta: CERcvd- MultCERcvd- UERcvd- MultUERcvd-
			 FirstFatal- NonFatalMsg- FatalMsg- IntMsg 0
		ErrorSrc: ERR_COR: 0000 ERR_FATAL/NONFATAL: 0000

and just in case result from lsusb (as there is still no USB power even in debian) :
root@debian:~# lsusb -vvv

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            9 Hub
  bDeviceSubClass         0 
  bDeviceProtocol         1 Single TT
  bMaxPacketSize0        64
  idVendor           0x1d6b Linux Foundation
  idProduct          0x0002 2.0 root hub
  bcdDevice            6.05
  iManufacturer           3 Linux 6.5.7-kirkwood-tld-1 ehci_hcd
  iProduct                2 EHCI Host Controller
  iSerial                 1 f1050000.ehci
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x0019
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower                0mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         9 Hub
      bInterfaceSubClass      0 
      bInterfaceProtocol      0 Full speed (or root) hub
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0004  1x 4 bytes
        bInterval              12
Hub Descriptor:
  bLength               9
  bDescriptorType      41
  nNbrPorts             1
  wHubCharacteristic 0x0009
    Per-port power switching
    Per-port overcurrent protection
    TT think time 8 FS bits
  bPwrOn2PwrGood       10 * 2 milli seconds
  bHubContrCurrent      0 milli Ampere
  DeviceRemovable    0x00
  PortPwrCtrlMask    0xff
 Hub Port Status:
   Port 1: 0000.0100 power
can't get device qualifier: Resource temporarily unavailable
can't get debug descriptor: Resource temporarily unavailable
Device Status:     0x0001
  Self Powered

/BayPanard
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: