Jump to content
XPEnology Community
  • 0

Driver install without integration to kernel module


Dvalin21

Question

14 answers to this question

Recommended Posts

  • 0

Is it possible to install drivers on xpenology nas without installing or integrating the drivers into the kernel? If so how?

First, after checking the dependencies between the driver (module) en files you want to use,

 

1. Copy desired module.ko file(s) to /lib/modules directory as root user.

 

2. /usr/sbin/depmod -a
Recreate all module dependencies in /etc/modules.conf with the command

 

3. modprobe module_name
The driver injection process is performed considering the dependencies of the module as a command.

 

Recently I developed M SHELL for TCRP FRIEND
Please refer to the contents of the script used in all-modules of

 

https://github.com/PeterSuh-Q3/rp-ext/blob/main/all-modules/src/check-all-modules.sh

  • Thanks 1
Link to comment
Share on other sites

  • 0
On 12/9/2022 at 9:35 AM, Peter Suh said:

Is it possible to install drivers on xpenology nas without installing or integrating the drivers into the kernel? If so how?

First, after checking the dependencies between the driver (module) en files you want to use,

 

1. Copy desired module.ko file(s) to /lib/modules directory as root user.

 

2. /usr/sbin/depmod -a
Recreate all module dependencies in /etc/modules.conf with the command

 

3. modprobe module_name
The driver injection process is performed considering the dependencies of the module as a command.

 

Recently I developed M SHELL for TCRP FRIEND
Please refer to the contents of the script used in all-modules of

 

https://github.com/PeterSuh-Q3/rp-ext/blob/main/all-modules/src/check-all-modules.sh

So snd_hda_intel is the .ko for my AMD GPU. With the kernel for synology being different than the common linux kernel, how would I compile and make it compatible for synology kernel?

Link to comment
Share on other sites

  • 0
11 minutes ago, Dvalin21 said:

So snd_hda_intel is the .ko for my AMD GPU. With the kernel for synology being different than the common linux kernel, how would I compile and make it compatible for synology kernel?

 

I also don't know a specific way to recompile it as an extension module for Synology.
However, I am using the .ko files already created by pocopico or fabio.

Link to comment
Share on other sites

  • 0
On 12/9/2022 at 11:35 PM, Peter Suh said:

Is it possible to install drivers on xpenology nas without installing or integrating the drivers into the kernel? If so how?

First, after checking the dependencies between the driver (module) en files you want to use,

 

1. Copy desired module.ko file(s) to /lib/modules directory as root user.

 

2. /usr/sbin/depmod -a
Recreate all module dependencies in /etc/modules.conf with the command

 

3. modprobe module_name
The driver injection process is performed considering the dependencies of the module as a command.

 

Recently I developed M SHELL for TCRP FRIEND
Please refer to the contents of the script used in all-modules of

 

https://github.com/PeterSuh-Q3/rp-ext/blob/main/all-modules/src/check-all-modules.sh

For some reason it didn't work for me.. depmod command does not exist on my DS923+ build (RR loader), and the NCT6775.KO file already exists in the lib/modules folder.

Am I missing anything? Do I need to put "nct6775" in modules.conf file?

 

Thanks.

Link to comment
Share on other sites

  • 0
8 hours ago, Fox Mulder said:

For some reason it didn't work for me.. depmod command does not exist on my DS923+ build (RR loader), and the NCT6775.KO file already exists in the lib/modules folder.

Am I missing anything? Do I need to put "nct6775" in modules.conf file?

 

Thanks.

 

rr may have already loaded this module.
Check the module loading results with the command below.
dmesg | grep nct6775
If you don't have modprobe
You can also use insmod instead.

Link to comment
Share on other sites

  • 0
On 5/15/2024 at 7:30 PM, Peter Suh said:

 

rr may have already loaded this module.
Check the module loading results with the command below.
dmesg | grep nct6775
If you don't have modprobe
You can also use insmod instead.

I have i915 loaded in RR, but when I run the "dmesg | grep nct6775" I get nothing.

When I try insmod, I get "insmod: ERROR: could not load module NCT6775.KO: No such file or directory"

Link to comment
Share on other sites

  • 0
12 hours ago, Fox Mulder said:

I have i915 loaded in RR, but when I run the "dmesg | grep nct6775" I get nothing.

When I try insmod, I get "insmod: ERROR: could not load module NCT6775.KO: No such file or directory"

 

Have you confirmed that this file actually exists in the path below?
/usr/lib/modules/nct6775.ko
insmod must be performed within the /usr/lib/modules path where the actual ko file exists.
If you want to run it from another path, try as below.
insmod /usr/lib/modules/nct6775.ko

Link to comment
Share on other sites

  • 0
12 hours ago, Peter Suh said:

 

Have you confirmed that this file actually exists in the path below?
/usr/lib/modules/nct6775.ko
insmod must be performed within the /usr/lib/modules path where the actual ko file exists.
If you want to run it from another path, try as below.
insmod /usr/lib/modules/nct6775.ko

Tried that, with Sudo, and got "insmod: ERROR: could not insert module /usr/lib/modules/nct6775.ko: Unknown symbol in module"

Link to comment
Share on other sites

  • 0
12 hours ago, Fox Mulder said:

Tried that, with Sudo, and got "insmod: ERROR: could not insert module /usr/lib/modules/nct6775.ko: Unknown symbol in module"

 

Before making the request, add the addon below and try building the rr loader again.

 

https://github.com/RROrg/rr-addons/tree/main/sensors

 

It seems to integrate and activate sensor-related modules.
To me, the command below seems to be the key in the script related to this.

 

modprobe -q nct6775

 

 

 

 

 

Link to comment
Share on other sites

  • 0
14 hours ago, Peter Suh said:

 

Before making the request, add the addon below and try building the rr loader again.

 

https://github.com/RROrg/rr-addons/tree/main/sensors

 

It seems to integrate and activate sensor-related modules.
To me, the command below seems to be the key in the script related to this.

 

modprobe -q nct6775

 

 

 

 

 

Thanks, but I am getting a 404 webpage error when I try to access the link.

And getting nothing from the "modprobe -q nct6775" line

Link to comment
Share on other sites

  • 0
On 5/15/2024 at 7:30 PM, Peter Suh said:

 

rr may have already loaded this module.
Check the module loading results with the command below.
dmesg | grep nct6775
If you don't have modprobe
You can also use insmod instead.

I changed model from DS923+ to DS920+ and "dmesg | grep nct6775" command now returns:

[  494.707520] nct6775: Unknown symbol vid_from_reg (err 0)
[  494.707984] nct6775: Unknown symbol vid_which_vrm (err 0)

 

Link to comment
Share on other sites

  • 0
On 5/26/2024 at 2:45 PM, Fox Mulder said:

I changed model from DS923+ to DS920+ and "dmesg | grep nct6775" command now returns:

[  494.707520] nct6775: Unknown symbol vid_from_reg (err 0)
[  494.707984] nct6775: Unknown symbol vid_which_vrm (err 0)

 

 

I'm sorry. If you look at the list here, I failed to tell you that rr-addons are said to be private. 
https://github.com/orgs/RROrg/repositories

 

So, as I told you, did you check the "sensors" addon in rr and add it separately?

Link to comment
Share on other sites

  • 0
34 minutes ago, Peter Suh said:

 

I'm sorry. If you look at the list here, I failed to tell you that rr-addons are said to be private. 
https://github.com/orgs/RROrg/repositories

 

So, as I told you, did you check the "sensors" addon in rr and add it separately?

how do I add it separately? I just added it either via rr manager, or via the installation menu addons.

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
Answer this question...

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