You are not logged in.

#1 2018-09-26 13:34:54

Doron.Behar
Member
Registered: 2016-12-21
Posts: 36

Are there any batman modules compiled by default in arch's kernel?

I've lately started to get interested in kernel modules. I've came across the AUR package `batman-adv` which is really outdated by I've updated it myself before building it but I have several questions:

  1. Would it be true to say the most important file a kernel module package should contain is something like this:

    /usr/lib/modules/`uname -r`/updates/net/<name>/<name>.ko

    ?

  2. If the above is correct, does this mean a kernel module package should be recompiled with a bigger `pkgrel` every time a new kernel release is available?

  3. I understand that the default Arch Linux kernel comes with modules built in to the package, Does it contain the batman-adv kernel module already? If not, what is the meaning of this:

    $ pacman -Ql linux | grep batman
    linux /usr/lib/modules/4.18.9-arch1-1-ARCH/kernel/net/batman-adv/
    linux /usr/lib/modules/4.18.9-arch1-1-ARCH/kernel/net/batman-adv/batman-adv.ko.xz
  4. If the above is true, does it mean the aur package should be requested for removal?

Last edited by Doron.Behar (2018-09-26 13:46:03)

Offline

#2 2018-09-26 14:12:38

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 27,576
Website

Re: Are there any batman modules compiled by default in arch's kernel?

I know nothing about this module or what it does, but most of these questions can be answered by first understanding the 3 states a module can be in, and second by looking at the kernel config.  First, modules can either be compiled in to the kernel (in which case there'd be no .ko.xz file for them) or they can be compiled as a loadable module, in which case there would be the .ko.xz file, or they might not be compiled with the package at all.

Looking at the config file for the currently running kernel, you can see the state for each module of interest:

$ zgrep -i batman /proc/config.gz
CONFIG_BATMAN_ADV=m
CONFIG_BATMAN_ADV_BATMAN_V=y
CONFIG_BATMAN_ADV_BLA=y
CONFIG_BATMAN_ADV_DAT=y
CONFIG_BATMAN_ADV_NC=y
CONFIG_BATMAN_ADV_MCAST=y
CONFIG_BATMAN_ADV_DEBUGFS=y
# CONFIG_BATMAN_ADV_DEBUG is not set

"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2018-09-26 14:13:04

loqs
Member
Registered: 2014-03-06
Posts: 15,509

Re: Are there any batman modules compiled by default in arch's kernel?

1 No arch uses usr/lib/modules/extramodules-ARCH/ for out of tree none DKMS modules
2 Depends MODVERSIONS
3 Yes
4 What are the differences between the current in tree and out of tree modules?

Offline

#4 2018-09-26 14:22:51

Doron.Behar
Member
Registered: 2016-12-21
Posts: 36

Re: Are there any batman modules compiled by default in arch's kernel?

loqs wrote:

4 What are the differences between the current in tree and out of tree modules?

I'm not sure I understand what you mean, As for the `/usr/lib/modules/`uname -r`/updates/net/<name>/<name>.ko` scheme for additional kernel modules, the original `batman-adv` package which will be requested for removal soon thanks to my current understanding, provides the following file:

/usr/lib/modules/4.18.9-arch1-1-ARCH/updates/net/batman-adv/batman-adv.ko

Offline

#5 2018-09-26 14:26:25

loqs
Member
Registered: 2014-03-06
Posts: 15,509

Re: Are there any batman modules compiled by default in arch's kernel?

The AUR package is using a different module source.  What differences if any does that provide from the in tree version?
Have you compared the sources of the two modules or functionality of the two modules in use?
If you use such a path it would need to be updated with every kernel release even if MODVERSIONS matched.

Offline

#6 2018-09-26 16:38:30

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: Are there any batman modules compiled by default in arch's kernel?

It's explicitly available as both an in-tree and out-of-tree module, and I guess the AUR version has experimental or unpolished code that people very interested in batman-adv might want to try out, but which aren't ready to be pulled into Linus' tree yet.

I see no reason to delete it.


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

Board footer

Powered by FluxBB