Jump to content
XPEnology Community

Automated RedPill Loader (ARPL)


fbelavenuto

Recommended Posts

2 hours ago, Timon-H said:

I have found the problem. Now i can configure. But i dont find the loader via find.synology.com/Synology Assistent or manual IP Adress search. i tryed to set it up with DS920+ and tried DS3622xs+ but no luck to get it showing up.

I also found out that my "Dummy" ports are not showing up in this tool. Ports 1-4 are my Dummy Ports but they are grey. Port 5,6,7 are green (drives) and port 8 is grey because there is nothing connected to it.

 

This symptom is the lack of the correct network driver in the DSM.

About the dummy ports, could you run some commands in the loader and pass it to me?

Quote

lspci -nnvk

 

Link to comment
Share on other sites

5 minutes ago, Peter Suh said:

 

@pocopico

 

Is this dtbpatch ext for arpl only?
Does it not work when used for TCRP?
It seems to work dynamically like jumkey's quick js dtb,
Can't early/late argument be delivered in TCRP?

 

https://github.com/pocopico/rp-ext/tree/main/dtbpatch

'early' and 'late' are my modifications.
'early' means that the script should be run during the start of the ramdisk, the equivalent of 'on_boot' in the TTG standard.
'late' is the equivalent of 'on_os_load' in the TTG standard.

Link to comment
Share on other sites

5 minutes ago, fbelavenuto said:

'early' and 'late' are my modifications.
'early' means that the script should be run during the start of the ramdisk, the equivalent of 'on_boot' in the TTG standard.
'late' is the equivalent of 'on_os_load' in the TTG standard.

 

If so, TCRP following the TTG standard is
Does this mean that it can be adjusted to receive 'on_boot'/'on_os_load' ?

Link to comment
Share on other sites

1 hour ago, Peter Suh said:

 

@pocopico

 

Is this dtbpatch ext for arpl only?
Does it not work when used for TCRP?
It seems to work dynamically like jumkey's quick js dtb,
Can't early/late argument be delivered in TCRP?

 

https://github.com/pocopico/rp-ext/tree/main/dtbpatch

 

Wow you are very closely monitoring my actions :D i'm testing but i think it will work as now. Maybe you can test as well.

Link to comment
Share on other sites

5 minutes ago, pocopico said:

 

Wow you are very closely monitoring my actions :D i'm testing but i think it will work as now. Maybe you can test as well.

 

I am trying to test this script by including it in TCRP already,
Do you think this will work?

 

#!/usr/bin/env ash

 

echo "${1}"

 

if [ "${1}" = "on_boot" ]; then
  echo "dtbpatch - on_boot"
  # fix executable flag
  cp dtbpatch /usr/sbin/
  chmod +x /usr/sbin/dtbpatch

  # Dynamic generation
  /usr/bin/dtbpatch /etc.defaults/model.dtb output.dtb
  if [ $? -ne 0 ]; then
    echo "Error patching dtb"
  else
    cp -vf output.dtb /etc.defaults/model.dtb
    cp -vf output.dtb /var/run/model.dtb
  fi
elif [ "${1}" = "on_os_load" ]; then
  echo "dtbpatch - on_os_load"
  # copy file
  cp -vf /etc.defaults/model.dtb /tmpRoot/etc.defaults/model.dtb
fi

Link to comment
Share on other sites

@fbelavenuto Since you went all the way and designed a whole new way of delivering extensions.   I was thinking about the modules.

 

Can we deliver the modules as a whole bundle of ~10MB each e.g. 4.4.180-geminilake.mods and then only enable or disable the loading ?  So with that module bundle and if its required by the hardware (similar to what we do with the auto detection of the hardware and extensions ) , on the fly load the modules.

 

 

 

 

 

 

 

Edited by pocopico
  • Like 1
Link to comment
Share on other sites

1 minute ago, pocopico said:

@fbelavenuto Since you went all the way and designed a whole new way of delivering extensions.   I was thinking about the modules.

 

Can we deliver the modules as a whole bundle of ~10MB each e.g. 4.4.180-geminilake.mods and then only enable or disable the loading ?  So with that module bundle and if its required by the hardware (similar to what we do with the auto detection of the hardware and extensions ) , on the fly enable load the modules.

 

 

 

 

 

 

 

Good idea!! I'll leave it on the to-do list to study this idea for the future.

  • Like 1
Link to comment
Share on other sites

I Think, I can handle it

 

The Arg is $2 !!!

 

#!/usr/bin/env ash

 

echo "${2}"

 

if [ "${2}" = "on_boot" ]; then
  echo "dtbpatch - on_boot"
  # fix executable flag
  cp dtbpatch /usr/sbin/
  chmod +x /usr/sbin/dtbpatch

  # Dynamic generation
  /usr/bin/dtbpatch /etc.defaults/model.dtb output.dtb
  if [ $? -ne 0 ]; then
    echo "Error patching dtb"
  else
    cp -vf output.dtb /etc.defaults/model.dtb
    cp -vf output.dtb /var/run/model.dtb
  fi
elif [ "${2}" = "on_os_load" ]; then
  echo "dtbpatch - on_os_load"
  # copy file
  cp -vf /etc.defaults/model.dtb /tmpRoot/etc.defaults/model.dtb
fi

Edited by Peter Suh
Link to comment
Share on other sites

1 hour ago, fbelavenuto said:

This symptom is the lack of the correct network driver in the DSM.

About the dummy ports, could you run some commands in the loader and pass it to me?

 

Yee i forgot the driver.. have tried befor a installation were the driver was included with the bootloader or something like that..

 

I have no Idea how to get the console with this redpill loader, i only have this gui interface. But i booted the Tinycore bootloader where i have an console. 

Here is the stuff :) 

tc@box:~$ lspci -nnvk
00:00.0 Host bridge [0600]: Intel Corporation Device [8086:4630] (rev 05)
        Subsystem: Biostar Microtech Int'l Corp Device [1565:3118]
        Flags: bus master, fast devsel, latency 0
        Memory at <ignored> (32-bit, non-prefetchable)

00:02.0 VGA compatible controller [0300]: Intel Corporation Device [8086:4692] (rev 0c) (prog-if 00 [VGA controller])
        Subsystem: Biostar Microtech Int'l Corp Device [1565:111a]
        Flags: bus master, fast devsel, latency 0, IRQ 255
        Memory at 6000000000 (64-bit, non-prefetchable) [size=16M]
        Memory at 4000000000 (64-bit, prefetchable) [size=256M]
        I/O ports at 4000 [size=64]
        [virtual] Expansion ROM at 000c0000 [disabled] [size=128K]
        Capabilities: <access denied>

00:0a.0 Signal processing controller [1180]: Intel Corporation Device [8086:467d] (rev 01)
        Flags: fast devsel
        Memory at 6001110000 (64-bit, non-prefetchable) [size=32K]
        Capabilities: <access denied>

00:14.0 USB controller [0c03]: Intel Corporation Device [8086:7ae0] (rev 11) (prog-if 30 [XHCI])
        Subsystem: Biostar Microtech Int'l Corp Device [1565:6410]
        Flags: bus master, medium devsel, latency 0, IRQ 125
        Memory at 6001100000 (64-bit, non-prefetchable) [size=64K]
        Capabilities: <access denied>
        Kernel driver in use: xhci_hcd

00:14.2 RAM memory [0500]: Intel Corporation Device [8086:7aa7] (rev 11)
        Flags: fast devsel
        Memory at 600111c000 (64-bit, non-prefetchable) [disabled] [size=16K]
        Memory at 6001124000 (64-bit, non-prefetchable) [disabled] [size=4K]
        Capabilities: <access denied>

00:15.0 Serial bus controller [0c80]: Intel Corporation Device [8086:7acc] (rev 11)
        Subsystem: Biostar Microtech Int'l Corp Device [1565:3118]
        Flags: bus master, fast devsel, latency 0, IRQ 255
        Memory at 4017000000 (64-bit, non-prefetchable) [disabled] [size=4K]
        Capabilities: <access denied>

00:15.1 Serial bus controller [0c80]: Intel Corporation Device [8086:7acd] (rev 11)
        Subsystem: Biostar Microtech Int'l Corp Device [1565:3118]
        Flags: bus master, fast devsel, latency 0, IRQ 255
        Memory at 4017001000 (64-bit, non-prefetchable) [disabled] [size=4K]
        Capabilities: <access denied>

00:16.0 Communication controller [0780]: Intel Corporation Device [8086:7ae8] (rev 11)
        Subsystem: Biostar Microtech Int'l Corp Device [1565:3118]
        Flags: fast devsel, IRQ 255
        Memory at 6001121000 (64-bit, non-prefetchable) [disabled] [size=4K]
        Capabilities: <access denied>

00:17.0 SATA controller [0106]: Intel Corporation Device [8086:7ae2] (rev 11) (prog-if 01 [AHCI 1.0])
        Subsystem: Biostar Microtech Int'l Corp Device [1565:5225]
        Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 124
        Memory at 80600000 (32-bit, non-prefetchable) [size=8K]
        Memory at 80603000 (32-bit, non-prefetchable) [size=256]
        I/O ports at 4090 [size=8]
        I/O ports at 4080 [size=4]
        I/O ports at 4060 [size=32]
        Memory at 80602000 (32-bit, non-prefetchable) [size=2K]
        Capabilities: <access denied>
        Kernel driver in use: ahci

00:1d.0 PCI bridge [0604]: Intel Corporation Device [8086:7ab6] (rev 11) (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0, IRQ 122
        Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
        I/O behind bridge: 00003000-00003fff [size=4K]
        Memory behind bridge: 80500000-805fffff [size=1M]
        Prefetchable memory behind bridge: None
        Capabilities: <access denied>
        Kernel driver in use: pcieport

00:1d.7 PCI bridge [0604]: Intel Corporation Device [8086:7ab7] (rev 11) (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0, IRQ 123
        Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
        I/O behind bridge: None
        Memory behind bridge: 80400000-804fffff [size=1M]
        Prefetchable memory behind bridge: None
        Capabilities: <access denied>
        Kernel driver in use: pcieport

00:1f.0 ISA bridge [0601]: Intel Corporation Device [8086:7a86] (rev 11)
        Subsystem: Biostar Microtech Int'l Corp Device [1565:3118]
        Flags: bus master, fast devsel, latency 0

00:1f.3 Audio device [0403]: Intel Corporation Device [8086:7ad0] (rev 11)
        Subsystem: Biostar Microtech Int'l Corp Device [1565:8260]
        Flags: fast devsel, IRQ 255
        Memory at 6001118000 (64-bit, non-prefetchable) [disabled] [size=16K]
        Memory at 6001000000 (64-bit, non-prefetchable) [disabled] [size=1M]
        Capabilities: <access denied>

00:1f.4 SMBus [0c05]: Intel Corporation Device [8086:7aa3] (rev 11)
        Subsystem: Biostar Microtech Int'l Corp Device [1565:3118]
        Flags: medium devsel, IRQ 255
        Memory at 6001120000 (64-bit, non-prefetchable) [size=256]
        I/O ports at efa0 [size=32]

00:1f.5 Serial bus controller [0c80]: Intel Corporation Device [8086:7aa4] (rev 11)
        Subsystem: Biostar Microtech Int'l Corp Device [1565:3118]
        Flags: fast devsel
        Memory at 80604000 (32-bit, non-prefetchable) [size=4K]

01:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. Device [10ec:8125] (rev 05)
        Subsystem: Biostar Microtech Int'l Corp Device [1565:2314]
        Flags: bus master, fast devsel, latency 0, IRQ 18
        I/O ports at 3000 [size=256]
        Memory at 80500000 (64-bit, non-prefetchable) [size=64K]
        Memory at 80510000 (64-bit, non-prefetchable) [size=16K]
        Capabilities: <access denied>
        Kernel driver in use: r8169

02:00.0 Network controller [0280]: Intel Corporation Wireless 7265 [8086:095a] (rev 59)
        Subsystem: Intel Corporation Dual Band Wireless-AC 7265 [8086:5010]
        Flags: fast devsel, IRQ 255
        Memory at 80400000 (64-bit, non-prefetchable) [disabled] [size=8K]
        Capabilities: <access denied>

 

And with the command "dmesg | fgrep "ata"" i get this:

 

    0.000000] BIOS-e820: [mem 0x0000000075703000-0x00000000757d6fff] ACPI data
[    0.052885] Memory: 16041500K/16549512K available (10242K kernel code, 1227K rwdata, 1916K rodata, 1184K init, 3660K bss, 507756K reserved, 0K cma-reserved)
[    0.199443] libata version 3.00 loaded.
[    0.375989] ata1: DUMMY
[    0.375990] ata2: DUMMY
[    0.375990] ata3: DUMMY
[    0.375990] ata4: DUMMY
[    0.375997] ata5: SATA max UDMA/133 abar m2048@0x80602000 port 0x80602300 irq 124
[    0.375998] ata6: SATA max UDMA/133 abar m2048@0x80602000 port 0x80602380 irq 124
[    0.376000] ata7: SATA max UDMA/133 abar m2048@0x80602000 port 0x80602400 irq 124
[    0.376001] ata8: SATA max UDMA/133 abar m2048@0x80602000 port 0x80602480 irq 124
[    0.376427] scsi host8: pata_legacy
[    0.376448] ata9: PATA max PIO4 cmd 0x1f0 ctl 0x3f6 irq 14
[    0.687910] ata6: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[    0.687931] ata8: SATA link down (SStatus 0 SControl 300)
[    0.687951] ata7: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[    0.687972] ata5: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[    0.688827] ata7.00: supports DRM functions and may not be fully accessible
[    0.688852] ata5.00: supports DRM functions and may not be fully accessible
[    0.688870] ata6.00: supports DRM functions and may not be fully accessible
[    0.688933] ata7.00: ATA-10: CT1000MX500SSD1, M3CR043, max UDMA/133
[    0.688935] ata7.00: 1953525168 sectors, multi 1: LBA48 NCQ (depth 32), AA
[    0.688965] ata5.00: ATA-10: CT1000MX500SSD1, M3CR043, max UDMA/133
[    0.688966] ata5.00: 1953525168 sectors, multi 1: LBA48 NCQ (depth 32), AA
[    0.688986] ata6.00: ATA-10: CT1000MX500SSD1, M3CR043, max UDMA/133
[    0.688987] ata6.00: 1953525168 sectors, multi 1: LBA48 NCQ (depth 32), AA
[    0.690554] ata7.00: supports DRM functions and may not be fully accessible
[    0.690586] ata5.00: supports DRM functions and may not be fully accessible
[    0.690608] ata6.00: supports DRM functions and may not be fully accessible
[    0.691283] ata7.00: configured for UDMA/133
[    0.691373] ata5.00: configured for UDMA/133
[    0.691381] ata6.00: configured for UDMA/133
[    0.728037] scsi host8: pata_legacy
[    0.728057] ata10: PATA max PIO4 cmd 0x170 ctl 0x376 irq 15
[    0.901463] usbcore: registered new interface driver ums-datafab
[    0.960712] Write protecting the kernel read-only data: 14336k
[    0.961958] Freeing unused kernel image (text/rodata gap) memory: 2044K
[    0.962082] Freeing unused kernel image (rodata/data gap) memory: 132K

 

 

Link to comment
Share on other sites

6 minutes ago, Timon-H said:

Yee i forgot the driver.. have tried befor a installation were the driver was included with the bootloader or something like that..

 

I have no Idea how to get the console with this redpill loader, i only have this gui interface. But i booted the Tinycore bootloader where i have an console. 

Here is the stuff :) 

tc@box:~$ lspci -nnvk
00:00.0 Host bridge [0600]: Intel Corporation Device [8086:4630] (rev 05)
        Subsystem: Biostar Microtech Int'l Corp Device [1565:3118]
        Flags: bus master, fast devsel, latency 0
        Memory at <ignored> (32-bit, non-prefetchable)

00:02.0 VGA compatible controller [0300]: Intel Corporation Device [8086:4692] (rev 0c) (prog-if 00 [VGA controller])
        Subsystem: Biostar Microtech Int'l Corp Device [1565:111a]
        Flags: bus master, fast devsel, latency 0, IRQ 255
        Memory at 6000000000 (64-bit, non-prefetchable) [size=16M]
        Memory at 4000000000 (64-bit, prefetchable) [size=256M]
        I/O ports at 4000 [size=64]
        [virtual] Expansion ROM at 000c0000 [disabled] [size=128K]
        Capabilities: <access denied>

00:0a.0 Signal processing controller [1180]: Intel Corporation Device [8086:467d] (rev 01)
        Flags: fast devsel
        Memory at 6001110000 (64-bit, non-prefetchable) [size=32K]
        Capabilities: <access denied>

00:14.0 USB controller [0c03]: Intel Corporation Device [8086:7ae0] (rev 11) (prog-if 30 [XHCI])
        Subsystem: Biostar Microtech Int'l Corp Device [1565:6410]
        Flags: bus master, medium devsel, latency 0, IRQ 125
        Memory at 6001100000 (64-bit, non-prefetchable) [size=64K]
        Capabilities: <access denied>
        Kernel driver in use: xhci_hcd

00:14.2 RAM memory [0500]: Intel Corporation Device [8086:7aa7] (rev 11)
        Flags: fast devsel
        Memory at 600111c000 (64-bit, non-prefetchable) [disabled] [size=16K]
        Memory at 6001124000 (64-bit, non-prefetchable) [disabled] [size=4K]
        Capabilities: <access denied>

00:15.0 Serial bus controller [0c80]: Intel Corporation Device [8086:7acc] (rev 11)
        Subsystem: Biostar Microtech Int'l Corp Device [1565:3118]
        Flags: bus master, fast devsel, latency 0, IRQ 255
        Memory at 4017000000 (64-bit, non-prefetchable) [disabled] [size=4K]
        Capabilities: <access denied>

00:15.1 Serial bus controller [0c80]: Intel Corporation Device [8086:7acd] (rev 11)
        Subsystem: Biostar Microtech Int'l Corp Device [1565:3118]
        Flags: bus master, fast devsel, latency 0, IRQ 255
        Memory at 4017001000 (64-bit, non-prefetchable) [disabled] [size=4K]
        Capabilities: <access denied>

00:16.0 Communication controller [0780]: Intel Corporation Device [8086:7ae8] (rev 11)
        Subsystem: Biostar Microtech Int'l Corp Device [1565:3118]
        Flags: fast devsel, IRQ 255
        Memory at 6001121000 (64-bit, non-prefetchable) [disabled] [size=4K]
        Capabilities: <access denied>

00:17.0 SATA controller [0106]: Intel Corporation Device [8086:7ae2] (rev 11) (prog-if 01 [AHCI 1.0])
        Subsystem: Biostar Microtech Int'l Corp Device [1565:5225]
        Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 124
        Memory at 80600000 (32-bit, non-prefetchable) [size=8K]
        Memory at 80603000 (32-bit, non-prefetchable) [size=256]
        I/O ports at 4090 [size=8]
        I/O ports at 4080 [size=4]
        I/O ports at 4060 [size=32]
        Memory at 80602000 (32-bit, non-prefetchable) [size=2K]
        Capabilities: <access denied>
        Kernel driver in use: ahci

00:1d.0 PCI bridge [0604]: Intel Corporation Device [8086:7ab6] (rev 11) (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0, IRQ 122
        Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
        I/O behind bridge: 00003000-00003fff [size=4K]
        Memory behind bridge: 80500000-805fffff [size=1M]
        Prefetchable memory behind bridge: None
        Capabilities: <access denied>
        Kernel driver in use: pcieport

00:1d.7 PCI bridge [0604]: Intel Corporation Device [8086:7ab7] (rev 11) (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0, IRQ 123
        Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
        I/O behind bridge: None
        Memory behind bridge: 80400000-804fffff [size=1M]
        Prefetchable memory behind bridge: None
        Capabilities: <access denied>
        Kernel driver in use: pcieport

00:1f.0 ISA bridge [0601]: Intel Corporation Device [8086:7a86] (rev 11)
        Subsystem: Biostar Microtech Int'l Corp Device [1565:3118]
        Flags: bus master, fast devsel, latency 0

00:1f.3 Audio device [0403]: Intel Corporation Device [8086:7ad0] (rev 11)
        Subsystem: Biostar Microtech Int'l Corp Device [1565:8260]
        Flags: fast devsel, IRQ 255
        Memory at 6001118000 (64-bit, non-prefetchable) [disabled] [size=16K]
        Memory at 6001000000 (64-bit, non-prefetchable) [disabled] [size=1M]
        Capabilities: <access denied>

00:1f.4 SMBus [0c05]: Intel Corporation Device [8086:7aa3] (rev 11)
        Subsystem: Biostar Microtech Int'l Corp Device [1565:3118]
        Flags: medium devsel, IRQ 255
        Memory at 6001120000 (64-bit, non-prefetchable) [size=256]
        I/O ports at efa0 [size=32]

00:1f.5 Serial bus controller [0c80]: Intel Corporation Device [8086:7aa4] (rev 11)
        Subsystem: Biostar Microtech Int'l Corp Device [1565:3118]
        Flags: fast devsel
        Memory at 80604000 (32-bit, non-prefetchable) [size=4K]

01:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. Device [10ec:8125] (rev 05)
        Subsystem: Biostar Microtech Int'l Corp Device [1565:2314]
        Flags: bus master, fast devsel, latency 0, IRQ 18
        I/O ports at 3000 [size=256]
        Memory at 80500000 (64-bit, non-prefetchable) [size=64K]
        Memory at 80510000 (64-bit, non-prefetchable) [size=16K]
        Capabilities: <access denied>
        Kernel driver in use: r8169

02:00.0 Network controller [0280]: Intel Corporation Wireless 7265 [8086:095a] (rev 59)
        Subsystem: Intel Corporation Dual Band Wireless-AC 7265 [8086:5010]
        Flags: fast devsel, IRQ 255
        Memory at 80400000 (64-bit, non-prefetchable) [disabled] [size=8K]
        Capabilities: <access denied>

 

And with the command "dmesg | fgrep "ata"" i get this:

 

    0.000000] BIOS-e820: [mem 0x0000000075703000-0x00000000757d6fff] ACPI data
[    0.052885] Memory: 16041500K/16549512K available (10242K kernel code, 1227K rwdata, 1916K rodata, 1184K init, 3660K bss, 507756K reserved, 0K cma-reserved)
[    0.199443] libata version 3.00 loaded.
[    0.375989] ata1: DUMMY
[    0.375990] ata2: DUMMY
[    0.375990] ata3: DUMMY
[    0.375990] ata4: DUMMY
[    0.375997] ata5: SATA max UDMA/133 abar m2048@0x80602000 port 0x80602300 irq 124
[    0.375998] ata6: SATA max UDMA/133 abar m2048@0x80602000 port 0x80602380 irq 124
[    0.376000] ata7: SATA max UDMA/133 abar m2048@0x80602000 port 0x80602400 irq 124
[    0.376001] ata8: SATA max UDMA/133 abar m2048@0x80602000 port 0x80602480 irq 124
[    0.376427] scsi host8: pata_legacy
[    0.376448] ata9: PATA max PIO4 cmd 0x1f0 ctl 0x3f6 irq 14
[    0.687910] ata6: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[    0.687931] ata8: SATA link down (SStatus 0 SControl 300)
[    0.687951] ata7: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[    0.687972] ata5: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[    0.688827] ata7.00: supports DRM functions and may not be fully accessible
[    0.688852] ata5.00: supports DRM functions and may not be fully accessible
[    0.688870] ata6.00: supports DRM functions and may not be fully accessible
[    0.688933] ata7.00: ATA-10: CT1000MX500SSD1, M3CR043, max UDMA/133
[    0.688935] ata7.00: 1953525168 sectors, multi 1: LBA48 NCQ (depth 32), AA
[    0.688965] ata5.00: ATA-10: CT1000MX500SSD1, M3CR043, max UDMA/133
[    0.688966] ata5.00: 1953525168 sectors, multi 1: LBA48 NCQ (depth 32), AA
[    0.688986] ata6.00: ATA-10: CT1000MX500SSD1, M3CR043, max UDMA/133
[    0.688987] ata6.00: 1953525168 sectors, multi 1: LBA48 NCQ (depth 32), AA
[    0.690554] ata7.00: supports DRM functions and may not be fully accessible
[    0.690586] ata5.00: supports DRM functions and may not be fully accessible
[    0.690608] ata6.00: supports DRM functions and may not be fully accessible
[    0.691283] ata7.00: configured for UDMA/133
[    0.691373] ata5.00: configured for UDMA/133
[    0.691381] ata6.00: configured for UDMA/133
[    0.728037] scsi host8: pata_legacy
[    0.728057] ata10: PATA max PIO4 cmd 0x170 ctl 0x376 irq 15
[    0.901463] usbcore: registered new interface driver ums-datafab
[    0.960712] Write protecting the kernel read-only data: 14336k
[    0.961958] Freeing unused kernel image (text/rodata gap) memory: 2044K
[    0.962082] Freeing unused kernel image (rodata/data gap) memory: 132K

 

 

Thanks!

 

Your network card is a basic realtek, using driver r8169!! Try to remove manually the r8169 driver and add manually r8168.

 

Link to comment
Share on other sites

21 minutes ago, fbelavenuto said:

Thanks!

 

Your network card is a basic realtek, using driver r8169!! Try to remove manually the r8169 driver and add manually r8168.

 

No? I have an Realtek RTL8125B Controller and i loadet now the driver for the RTL8125 controller. With that i can load the Web Assistant and upload the Image, but it crashes. At around 40% i get some error that the file is corrupted, but i just downloadet it from the offical Synology website. Any Idea why this error is happening?

Link to comment
Share on other sites

4 hours ago, Brunox said:

@fbelavenuto

can you slightly increase the time when the grub bootloader starts and the Boot DSM and Configure loader menu from 1 sec to 4 sec?

and another question, is it possible to switch back from DSM to the loader without rebooting into the loader?

Great Work!!

For example. to update the loader or to migrate from DS920 to DS3622. I'm accessing it via ILO5 on my HP Micro Server Gen 10+ and it's not responding that fast...

Link to comment
Share on other sites

@pocopico

 

On_boot / on_os_load has been changed to always run regardless of the two time points.
However, there is a typo between sbin and bin.
It doesn't seem to work?

 

if [ ! -f model_${PLATFORM_ID}.dtb ]; then
echo "dtb file not exists for this platform!!!, dtbpatch running..."

  # fix executable flag
  cp dtbpatch /usr/sbin/
  chmod +x /usr/sbin/dtbpatch

  # Dynamic generation
  /usr/sbin/dtbpatch /etc.defaults/model.dtb output.dtb
  if [ $? -ne 0 ]; then
    echo "auto generated dtb file is broken"
  else
    cp -vf output.dtb /etc.defaults/model.dtb
    cp -vf output.dtb /var/run/model.dtb
  fi
else
  cp -vf model_${PLATFORM_ID}.dtb /etc.defaults/model.dtb
  cp -vf model_${PLATFORM_ID}.dtb /var/run/model.dtb
fi

Link to comment
Share on other sites

3 minutes ago, Peter Suh said:

@pocopico

 

On_boot / on_os_load has been changed to always run regardless of the two time points.
However, there is a typo between sbin and bin.
It doesn't seem to work?

 

if [ ! -f model_${PLATFORM_ID}.dtb ]; then
echo "dtb file not exists for this platform!!!, dtbpatch running..."

  # fix executable flag
  cp dtbpatch /usr/sbin/
  chmod +x /usr/sbin/dtbpatch

  # Dynamic generation
  /usr/sbin/dtbpatch /etc.defaults/model.dtb output.dtb
  if [ $? -ne 0 ]; then
    echo "auto generated dtb file is broken"
  else
    cp -vf output.dtb /etc.defaults/model.dtb
    cp -vf output.dtb /var/run/model.dtb
  fi
else
  cp -vf model_${PLATFORM_ID}.dtb /etc.defaults/model.dtb
  cp -vf model_${PLATFORM_ID}.dtb /var/run/model.dtb
fi

 

Please read my PM. Sorry for hijacking the thread 

Link to comment
Share on other sites

23 minutes ago, Timon-H said:

No? I have an Realtek RTL8125B Controller and i loadet now the driver for the RTL8125 controller. With that i can load the Web Assistant and upload the Image, but it crashes. At around 40% i get some error that the file is corrupted, but i just downloadet it from the offical Synology website. Any Idea why this error is happening?

Hum, sorry, I saw the line:

Kernel driver in use: r8169

And I didn't notice the id " [10ec:8125]"

 

The problem is related to something else, I still don't know what it could be. I will try to reproduce the error.

 

  • Like 1
Link to comment
Share on other sites

Just now, fbelavenuto said:

Hum, sorry, I saw the line:

Kernel driver in use: r8169

And I didn't notice the id " [10ec:8125]"

 

The problem is related to something else, I still don't know what it could be. I will try to reproduce the error.

 

Thanks! Iam struggling for over 1 day continues installing DSM...Trying different versions all day long, editing the user config... Its a jurney.. 

I would be sooo happy if you find the problem!

Link to comment
Share on other sites

32 minutes ago, Brunox said:

For example. to update the loader or to migrate from DS920 to DS3622. I'm accessing it via ILO5 on my HP Micro Server Gen 10+ and it's not responding that fast...

When the loader is configured, timeout is changed to 3 seconds. I will evaluate if I increase this timeout time more.

Link to comment
Share on other sites

1 hour ago, Timon-H said:

Thanks! Iam struggling for over 1 day continues installing DSM...Trying different versions all day long, editing the user config... Its a jurney.. 

I would be sooo happy if you find the problem!

Timon-H, are you using the small update files? (ex: synology_apollolake_918+.pat)
Use normal update files, for example: DSM_DS918+_42661.pat

Link to comment
Share on other sites

@fbelavenuto for the dtbpatch, i have only one more question.

 

Do you somehow guarantee that the dtbpatch will run after all module addons have run ? I'm asking cause, if you patch before for instance the mpt3sas addon runs, then you will be missing mpt3sas drives.

 

That came to mind just now. All on-the-fly patches until now run regardless of the driver loading completion status. 

 

 

 

Edited by pocopico
Link to comment
Share on other sites

2 minutes ago, pocopico said:

@fbelavenuto for the dtbpatch, i have only one more question.

 

Do you somehow guarantee that the dtbpatch will run after all module addons have run ? I'm asking cause, if you patch before for instance the mpt3sas addon runs, then you will be missing mpt3sas drives.

 

That came to mind just now. All on-the-fly patches until now run regardless of the driver loading complition status. 

 

 

 

Excellent point! I had not imagined this possibility!

Back to the drawing board :D

  • Like 1
Link to comment
Share on other sites

17 minutes ago, fbelavenuto said:

Timon-H, are you using the small update files? (ex: synology_apollolake_918+.pat)
Use normal update files, for example: DSM_DS918+_42661.pat

 

OMG iam so dumb... Iam so sorry for all the trouble 😕 

I got some Update Patch with 50mb size.. downloadet the right package and tried again. Its working! Thank you so much!

 

Link to comment
Share on other sites

@fbelavenuto also for addon tg3, libphy.ko is a dependency. So i guess although without testing, it will not load. 

 

This will be the same for other addons. E.g. mptsas needs some dependencies as well. You cannot clearly destiguish the dependencies from platform to platform as some are build in the kernel and some are not.

 

since i have spent quite some time testing most of the extensions that exist on my repo, its a good startpoint for module dependencies and loading sequence.

 

So if i'm going back to

 

Quote


 

@fbelavenuto Since you went all the way and designed a whole new way of delivering extensions.   I was thinking about the modules.

 

Can we deliver the modules as a whole bundle of ~10MB each e.g. 4.4.180-geminilake.mods and then only enable or disable the loading ?  So with that module bundle and if its required by the hardware (similar to what we do with the auto detection of the hardware and extensions ) , on the fly load the modules.

 

 

 

Then we need for each module to have its dependency and its dependency dependencies on a table.

 

Its quite difficult to do that on a shell script and modprobe which actually makes the job easier for the system does not run at early stages.

 

 

Edited by pocopico
Link to comment
Share on other sites

48 minutes ago, pocopico said:

@fbelavenuto also for addon tg3, libphy.ko is a dependency. So i guess although without testing, it will not load. 

 

This will be the same for other addons. E.g. mptsas needs some dependencies as well. You cannot clearly destiguish the dependencies from platform to platform as some are build in the kernel and some are not.

 

since i have spent quite some time testing most of the extensions that exist on my repo, its a good startpoint for module dependencies and loading sequence.

 

So if i'm going back to

 

 

 

Then we need for each module to have its dependency and its dependency dependencies on a table.

 

Its quite difficult to do that on a shell script and modprobe which actually makes the job easier for the system does not run at early stages.

 

 

Yes, dependency issues. I read in the logs the words 'mdio' and 'mii', I thought those were the dependencies.

Now I will find the correct dependency 'libphy'. thanks.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...