Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

13
  • I need to dig a bit further but akmod seems to be the way to go. Thanks for the explanation! Commented Nov 30, 2022 at 10:10
  • 1
    @Alexis You don't actually need akmod if you specifically only care about RHEL(-likes), not something like Fedora. RHEL kernels have a stable kABI, so a module built for a particular major release stays compatible with any later kernel updates (the weak-modules mechanism takes care of that by symlinking the .ko into /lib/modules/*/weak-updates for all compatible kernels). Commented Nov 30, 2022 at 20:57
  • @TooTea ah thanks! In that case, really, you need to test your module anyway, go with the one-RPM-per-Distro-release method (my first heading) Commented Nov 30, 2022 at 21:01
  • 1
    @Alexis The authoritative source explaining this is behind a subscription wall. Those without access can infer what's in there from this release note, which says that starting with EL9 the kABI can actually change between minor releases (I didn't know that, haven't seen EL9 yet). But if your module happens to use internal symbols (ones not on the kABI stablelists), you're on your own (= need akmod). Commented Dec 1, 2022 at 9:11
  • 1
    @Alexis really, no matter which route you'll take, having an SRPM is the first step :) But it's also not very hard – in essence, writing a .spec file; see the v4l2loopback example I linked to as how such an SRPM can look like, and just remove all the "magicy" things that make it an akmod. Once you have an SRPM, all you need to do is use either a build service like copr to build it for your N distro versions of choice, or do that yourself using mock. Commented Dec 1, 2022 at 9:18