Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation of Kernel Modules #15901

Closed
ghost opened this issue Oct 29, 2019 · 4 comments
Closed

Installation of Kernel Modules #15901

ghost opened this issue Oct 29, 2019 · 4 comments

Comments

@ghost
Copy link

ghost commented Oct 29, 2019

I am trying to create a template file for the Data Plane Development Kit (DPDK).
DPDK uses a GNU makefile build system. Compiling the system creates apart from many library files two kernel object files.

masterdir/destdir/dpdk-19.08/lib/modules/5.3.7_1/extra/dpdk/rte_kni.ko
masterdir/destdir/dpdk-19.08/lib/modules/5.3.7_1/extra/dpdk/igb_uio.ko

I have no idea how I should install these two files:

  1. xbps-src does not accept lib directories.
  2. Even then I wouldn't know how to load these ko files. Are ko files Void Linux compliant? Do I have to create dkms.config files?
@Johnnynator
Copy link
Member

Firstly these are kernel modules not dkms modules, so you just load them with either insmode(8) ormodprobe(8). But I would recommend to look into getting it packages as a DKMS module, so it is automatically rebuild on a kernel update. Secondly these files you have there should just be in /usr/lib instead if /lib, there is probably some variable you can set so it installs them into the correct dir.

@ghost
Copy link
Author

ghost commented Oct 29, 2019

Perfect. This is a good guide line. Thanks a lot!

@ghost ghost closed this as completed Oct 29, 2019
@Johnnynator
Copy link
Member

At least with their meson build system you can set -Denable_kmods=off and just copy kernel/linux/{igb_uio,kni} to /usr/src/${module-name}-${version} and add a dkms.conf. E.g. the rtl8822bu-dkms package demonstrates on how to create a dkms pacakge out of a non dkms kernel module. Also I think you need to make a subpackage per dkms module, it won't work otherwise afaik.

@ghost
Copy link
Author

ghost commented Oct 29, 2019

Even better! Awesome. This helps me a lot.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant