Jump to content
XPEnology Community

Installing latest DSM with TinyCore RedPill, how do I add extra modules for my hardware?


wimpers

Recommended Posts

Meanwhile, when I boot from tinycore-redpill.v0.9.4.3.img during bootloader manufacture, after command ./rploader.sh satamap now, the terminal outputs:

tc@box:~$ ./rploader.sh satamap now

Found SCSI HBAs, We need to install the SCSI modules

scsi-5.10.3-tinycore64 is already installed!

Succesfully installed SCSI modules

 

Found SCSI/HBA "04:00.0 Silicon Image, Inc. SiI 3114 [SATALink/SATARaid] Serial ATA Controller (rev 02)" (3 drives)

lspci: -s: Invalid slot number

Found SCSI/HBA "" (0 drives)

lspci: -s: Invalid slot number

Found SCSI/HBA "" (0 drives)

lspci: -s: Invalid bus number

Found SCSI/HBA "" (0 drives)

lspci: -s: Invalid slot number

Found SCSI/HBA "" (0 drives)

lspci: -s: Invalid slot number

Found SCSI/HBA "" (0 drives)

lspci: -s: Invalid slot number

Found SCSI/HBA "" (0 drives)

lspci: -s: Invalid slot number

Found SCSI/HBA "" (0 drives)

lspci: -s: Invalid slot number

Found SCSI/HBA "" (0 drives)

lspci: -s: Invalid slot number

Found SCSI/HBA "" (0 drives)

lspci: -s: Invalid slot number

Found SCSI/HBA "" (0 drives)

lspci: -s: Invalid slot number

Found SCSI/HBA "" (0 drives)

lspci: -s: Invalid slot number

Found SCSI/HBA "" (0 drives)

lspci: -s: Invalid slot number

Found SCSI/HBA "" (0 drives)

lspci: -s: Invalid slot number

Found SCSI/HBA "" (0 drives)

 

Computed settings:

SataPortMap=1

DiskIdxMap=00

 

Should i update the user_config.json with these values ? [Yy/Nn] y

Done.

But the result is the same: after loading dsm at the stage of installing the operating system  - HDD not found.

Edited by Ostap60
Link to comment
Share on other sites

7 hours ago, Ostap60 said:

 

SynologyNAS> cat /var/log/linuxrc.syno.log
START /linuxrc.syno.impl
addons.sh called with params early
Starting ttyd...
[2012/01/05 15:52:48:7571] N: ttyd 1.7.0-3ba994a (libwebsockets 4.3.2-unknown)
[2012/01/05 15:52:48:7574] N: tty configuration:
[2012/01/05 15:52:48:7576] N:   start command: /usr/bin/ash -l
[2012/01/05 15:52:48:7578] N:   close signal: SIGHUP (1)
[2012/01/05 15:52:48:7579] N:   terminal type: xterm-256color
[2012/01/05 15:52:48:7582] N: lws_create_context: LWS: 4.3.2-unknown, NET SRV H1 WS MbedTLS ConMon IPV6-off
[2012/01/05 15:52:48:7590] N: elops_init_pt_uv:  Using foreign event loop...
[2012/01/05 15:52:48:7592] N: __lws_lc_tag:  ++ [wsi|0|pipe] (1)
[2012/01/05 15:52:48:7595] N: __lws_lc_tag:  ++ [vh|0|netlink] (1)
[2012/01/05 15:52:48:7597] N: __lws_lc_tag:  ++ [vh|1|default||7681] (2)
[2012/01/05 15:52:48:7600] N: [vh|1|default||7681]: lws_socket_bind: source ads 0.0.0.0
[2012/01/05 15:52:48:7603] N: __lws_lc_tag:  ++ [wsi|1|listen|default||7681] (2)
[2012/01/05 15:52:48:7605] N:  Listening on port: 7681
Insert Marvell 1475 SATA controller driver
Insert basic USB modules...
:: Loading module usb-common ... [  OK  ]
:: Loading module usbcore ... [  OK  ]
:: Loading module ehci-hcd ... [  OK  ]
:: Loading module ehci-pci ... [  OK  ]
:: Loading module uhci-hcd ... [  OK  ]
:: Loading module xhci-hcd ... [  OK  ]
:: Loading module xhci-pci ... [  OK  ]
addons.sh called with params modules
Starting eudev daemon
Triggering add events to udev
Loading FB and console modules...
modprobe: FATAL: Module i915 not found in directory /lib/modules
Loading 9p module
insmod: can't insert '/lib/modules/etxhci-hcd.ko': File exists
Insert net driver(Mindspeed only)...
Starting /usr/syno/bin/synocfgen...
/usr/syno/bin/synocfgen returns 0
addons.sh called with params patches
Adjust disks related configs automatically - patches
maxdisks=0
internalportcfg=0x0
esataportcfg=0
usbportcfg=0xf00000
Insert synorbd kernel module
Insert synofsbd kernel module
Insert sha256 kernel module
All disk ready or timeout execeed
Exit on error [1] DISK NOT INSTALLED...
Thu Jan  5 15:53:00 UTC 2012
addons.sh called with params jrExit
none /sys/kernel/debug debugfs rw,relatime 0 0
SynologyNAS> 

 

HDD - not found

 

 

 

I asked you to change it to DDSML instead of EUDEV, but it seems you didn't see it.
The menu to switch from EUDEV to DDSML is at the top of the M SHELL menu.


You have to go through DDSML to make the sata_sil module visible.
And I noticed that TCRP is missing additional settings to handle DDSML.
These settings have now been added.

 

https://github.com/PeterSuh-Q3/tcrp-modules/blob/main/modprobe/auxfiles/modules.alias.4.json#L14691

You need to check the CLASS / VID / PID of your ATA controller.


Your VID / PID should be in the newly added 7 sata_sil PID/VID range.


Please let us know the result of the lspci -nn command at the Linux prompt.


Before rebuilding the loader in the DDSML method, M SHELL for TCRP must be maintained once more so that all CLASS / VID / PID are hit.

 

If the CLASS ID Number is [0101], TCRP has already been applied.


If only VID / PID matching is confirmed, build immediately and start retesting.

 

 

Edited by Peter Suh
Link to comment
Share on other sites

5 часов назад, Peter Suh сказал:

I asked you to change it to DDSML instead of EUDEV, but it seems you didn't see it.
The menu to switch from EUDEV to DDSML is at the top of the M SHELL menu.

Sorry I'm just a dumb user.
I'll try searching for it now...

Link to comment
Share on other sites

1 час назад, Ostap60 сказал:

  6 часов назад, Peter Suh сказал:

I asked you to change it to DDSML instead of EUDEV, but it seems you didn't see it.
The menu to switch from EUDEV to DDSML is at the top of the M SHELL menu.

 

SynologyNAS login: root

Synology strongly advises you not to run commands as the root user, who has
the highest privileges on the system. Doing so may cause major damages
to the system. Please note that if you choose to proceed, all consequences are
at your own risk.

BusyBox v1.30.1 () built-in shell (ash)

SynologyNAS> cat /var/log/linuxrc.syno.log
START /linuxrc.syno.impl
Insert Marvell 1475 SATA controller driver
Insert basic USB modules...
:: Loading module usb-common ... [  OK  ]
:: Loading module usbcore ... [  OK  ]
:: Loading module ehci-hcd ... [  OK  ]
:: Loading module ehci-pci ... [  OK  ]
:: Loading module xhci-hcd ... [  OK  ]
:: Loading module xhci-pci ... [  OK  ]
:: Loading module usb-storage ... [  OK  ]
:: Loading kernel modules from extensions ...
Checking if kmods for thethorgroup.virtio should run using check-virtio.sh script
Checking for VirtIO
*No* VirtIO hypervisor detected
NOT loading kmods for thethorgroup.virtio
:: Loading kernel modules from extensions ... [  OK  ]
:: Executing "on_boot" custom scripts ...
Running "install.sh" for all-modules->on_boot
Copying kmod,tar to /bin/
'kmod' -> '/bin/kmod'
link depmod to kmod
3w-9xxx.ko
3w-sas.ko
8139cp.ko
aacraid.ko
acpi-cpufreq.ko
aic94xx.ko
alx.ko
aqc111.ko
arcmsr.ko
asix.ko
atkbd.ko
atl1.ko
atl1c.ko
atl1e.ko
atl2.ko
atlantic.ko
atlantic_v2.ko
auxiliary.ko
ax88179_178a.ko
b44.ko
be2net.ko
bitblit.ko
bna.ko
bnx2.ko
bnx2x.ko
bnxt_en.ko
button.ko
cdc_ncm.ko
cdrom.ko
cfbcopyarea.ko
cfbfillrect.ko
cfbimgblt.ko
cpufreq_conservative.ko
cpufreq_ondemand.ko
cpufreq_performance.ko
crc-ccitt.ko
crc-itu-t.ko
cxgb.ko
cxgb3.ko
cxgb4.ko
cxgb4vf.ko
dm9601.ko
dvb-core.ko
dvb-usb-dib0700.ko
dvb-usb-dvbsky.ko
dvb-usb.ko
dvb_usb_v2.ko
e1000.ko
e1000e.ko
efifb.ko
ehci-hcd.ko
ehci-pci.ko
etxhci-hcd.ko
fb.ko
fb_sys_fops.ko
fbcon.ko
fbdev.ko
font.ko
forcedeth.ko
hid-generic.ko
hpsa.ko
i2c-algo-bit.ko
i40e.ko
i8042.ko
iavf.ko
ice.ko
igb.ko
igbvf.ko
igc.ko
intel_auxiliary.ko
it87.ko
ixgb.ko
ixgbe.ko
ixgbevf.ko
jc42.ko
jme.ko
libphy.ko
m88ds3103.ko
mdio.ko
megaraid_mbox.ko
megaraid_mm.ko
megaraid_sas.ko
mii.ko
mlx4_core.ko
mlx4_en.ko
mlx4_ib.ko
mlx5_core.ko
mlx5_ib.ko
mlx_compat.ko
mlxsw_core.ko
mlxsw_pci.ko
mmc_block.ko
mmc_core.ko
mpt3sas.ko
mptbase.ko
mptctl.ko
mptsas.ko
mptscsih.ko
mptspi.ko
mtk-sd.ko
nct6775.ko
processor.ko
qlcnic.ko
r8101.ko
r8125.ko
r8152.ko
r8168.ko
r8169.ko
rc-core.ko
rtl8150.ko
sata_nv.ko
sata_sil.ko
scsi_transport_spi.ko
sdhci.ko
sfc.ko
si2157.ko
si2168.ko
skge.ko
sky2.ko
softcursor.ko
sp2.ko
sr_mod.ko
syscopyarea.ko
sysfillrect.ko
sysimgblt.ko
tg3.ko
thermal.ko
tn40xx.ko
ts2020.ko
uhci-hcd.ko
ushc.ko
vesafb.ko
vga16fb.ko
vgastate.ko
via-rhine.ko
via-sdmmc.ko
via-velocity.ko
virtio.ko
virtio_input.ko
virtio_mmio.ko
virtio_net.ko
virtio_pci.ko
virtio_ring.ko
virtio_scsi.ko
vmw_pvscsi.ko
vmxnet3.ko
vub300.ko
vxge.ko
xhci-hcd.ko
xhci-pci.ko
depmod: WARNING: could not open /lib/modules//modules.order: No such file or directory
depmod: WARNING: could not open /lib/modules//modules.builtin: No such file or directory
Ran "install.sh" for all-modules->on_boot - exit=0
Running "install_rd.sh" for misc->on_boot
Starting ttyd, listening on port: 7681
Ran "install_rd.sh" for misc->on_boot - exit=0
Running "check-all-modules.sh" for modprobe->on_boot
broadwellnk
4.4.180
modules.alias.4.json
Copying kmod to /bin/
'kmod' -> '/bin/kmod'
Copying sed,jq,lspci files to /sbin/
'sed' -> '/usr/sbin/sed'
'jq' -> '/usr/sbin/jq'
'lspci' -> '/usr/sbin/lspci'
Copying lspci libraries to /lib/
'libz.so.1' -> '/lib/libz.so.1'
'libudev.so.1' -> '/lib/libudev.so.1'
'libattr.so.1' -> '/lib/libattr.so.1'
'libcap.so.2' -> '/lib/libcap.so.2'
link modprobe to kmod
modprobe: FATAL: Module i915 not found.
insmod: can't insert '/lib/modules/i915.ko': No such file or directory
Found VGA Controller : pciid 8086d00000f31  Required Extension : Searching for matching extension for i915
Found Ethernet Interface : pciid 10ecd00008168 Required Extension : Searching for matching extension for r8168
Module r8168 loaded succesfully
modprobe: ERROR: could not insert 'sata_sil': Unknown symbol in module, or unknown parameter (see dmesg)
insmod: can't insert '/lib/modules/sata_sil.ko': unknown symbol in module, or unknown parameter
Found RAID bus Controller : pciid 1095d00003114  Required Extension : Searching for matching extension for sata_sil
Found SATA Controller : pciid 1b4bd00009235  Required Extension : No matching extension
Found SATA Controller : pciid 1b4bd00009235  Required Extension : No matching extension
Ran "check-all-modules.sh" for modprobe->on_boot - exit=0
Running "install-nvme-cache.sh" for nvme-cache->on_boot
System is booting
nvme-cache - early
Ran "install-nvme-cache.sh" for nvme-cache->on_boot - exit=0
Running "install.sh" for smb3-multi->on_boot
System is booting
smb3-multi - early
Ran "install.sh" for smb3-multi->on_boot - exit=0
Running "boot-wait.sh" for thethorgroup.boot-wait->on_boot
Ran "boot-wait.sh" for thethorgroup.boot-wait->on_boot - exit=0
:: Executing "on_boot" custom scripts ... [  OK  ]
Extensions processed
Insert net driver(Mindspeed only)...
Starting /usr/syno/bin/synocfgen...
/usr/syno/bin/synocfgen returns 0
Insert synorbd kernel module
Insert synofsbd kernel module
Insert sha256 kernel module
All disk ready or timeout execeed
Exit on error [1] DISK NOT INSTALLED...
Fri Jan  6 04:58:05 UTC 2012
none /sys/kernel/debug debugfs rw,relatime 0 0
SynologyNAS> 

 

Edited by Ostap60
Link to comment
Share on other sites

6 часов назад, Peter Suh сказал:

Please let us know the result of the lspci -nn command at the Linux prompt

SynologyNAS> lspci -nn
0000:00:00.0 Class [0600]: Device [8086:0f00] (rev 0c)
0000:00:02.0 Class [0300]: Device [8086:0f31] (rev 0c)
0000:00:14.0 Class [0c03]: Device [8086:0f35] (rev 0c)
0000:00:1a.0 Class [1080]: Device [8086:0f18] (rev 0c)
0000:00:1b.0 Class [0403]: Device [8086:0f04] (rev 0c)
0000:00:1c.0 Class [0604]: Device [8086:0f48] (rev 0c)
0000:00:1c.1 Class [0604]: Device [8086:0f4a] (rev 0c)
0000:00:1c.2 Class [0604]: Device [8086:0f4c] (rev 0c)
0000:00:1c.3 Class [0604]: Device [8086:0f4e] (rev 0c)
0000:00:1f.0 Class [0601]: Device [8086:0f1c] (rev 0c)
0000:00:1f.3 Class [0c05]: Device [8086:0f12] (rev 0c)
0000:01:00.0 Class [0200]: Device [10ec:8168] (rev 06)
0000:03:00.0 Class [0604]: Device [8086:244e] (rev 41)
0000:04:00.0 Class [0104]: Device [1095:3114] (rev 02)
0001:09:00.0 Class [0106]: Device [1b4b:9235] (rev 11)
0001:0c:00.0 Class [0106]: Device [1b4b:9235] (rev 11)
SynologyNAS> 

Link to comment
Share on other sites

modprobe: ERROR: could not insert 'sata_sil': Unknown symbol in module, or unknown parameter (see dmesg)
insmod: can't insert '/lib/modules/sata_sil.ko': unknown symbol in module, or unknown parameter
Found RAID bus Controller : pciid 1095d00003114  Required Extension : Searching for matching extension for sata_sil

 

Of the 7 settings mentioned above, your controller is the 4th.

     {
       "name": "sata_sil",
       "alias": "pci:v00001095d00003114sv*sd*bc*sc*i*"
     },

Among the lspci -nn results you gave me, the information below is mapped.

 

0000:04:00.0 Class [0104]: Device [1095:3114] (rev 02)

 

CLASS ID NO corresponds to 0104

 

Matching is successful as a RAID bus controller.

 

https://github.com/PeterSuh-Q3/tcrp-modules/blob/main/modprobe/src/check-all-modules.sh#L103

 

All conditions for using the module seem to be met.

 

However, it seems that the expected problem "unknown symbol in module, or unknown parameter" did not escape the libata dependency problem.

 

Again, we need help from other developers.

 

Thanks for the test results.

Edited by Peter Suh
Link to comment
Share on other sites

3 минуты назад, Peter Suh сказал:

0000:04:00.0 Class [0104]: Device [1095:3114] (rev 02)

Thank you so much for not giving up halfway through!

Maybe I need to somehow enter the VID / PID data somewhere or something else in the bootloader manufacturing process?

Link to comment
Share on other sites

On 3/28/2023 at 3:14 AM, wimpers said:

If I can contribute anything don't hesitate to let me know...
I'll also try and see how far I can get with the current modifications.

 

@Peter Suh, how did you compile those modules? With a dev environment on TCRP or a different setup.
Compiling kernels is something I used to do from time to time when I was using Gentoo Linux and is not too hard once your host is set up for it, even for older or non-vannlla kernels, perhaps I can help with that or test some stuff?

 

https://github.com/PeterSuh-Q3/arpl-modules/blob/main/src/4.x/drivers/ata/Makefile#L44

 
As shown in Line 44, we only prepared for the make of sata_sil and sata_nv
There are only two files, sata_sil.c and sata_nv.c, that are referenced here.


https://github.com/PeterSuh-Q3/arpl-modules/blob/main/src/4.x/drivers/ata/sata_sil.c

https://github.com/PeterSuh-Q3/arpl-modules/blob/main/src/4.x/drivers/ata/sata_nv.c


Dependencies between modules are not considered at all.

Link to comment
Share on other sites

6 minutes ago, Ostap60 said:

Maybe I need to somehow enter the VID / PID data somewhere or something else in the bootloader manufacturing process?

 

It's not like that. As mentioned before, VID / PID only needs to be prepared in the modules.alias.4.json file. That's why I added your settings to this file today.

Link to comment
Share on other sites

  • 5 months later...
14 hours ago, Alexandr21 said:

Ни у кого так и не получилось победить данную проблему с SIL3114?

 

Since this research, there have been some recent modifications to the SCSI sub-ATA module.
I plan to try again with my next assignment.
Unlike last time, I learned how to refer to the Synology toolchain.
If you're new here, you may not know this, but my first language is Korean, but this forum is supposed to be in English.
There are separate topics where Russian is allowed.

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