LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware - ARM (https://www.linuxquestions.org/questions/slackware-arm-108/)
-   -   xtables-addons slackbuild compiles to the wrong kernel version with sarpi and raspberry pi3 (https://www.linuxquestions.org/questions/slackware-arm-108/xtables-addons-slackbuild-compiles-to-the-wrong-kernel-version-with-sarpi-and-raspberry-pi3-4175692571/)

nelsonslament 03-24-2021 10:17 AM

xtables-addons slackbuild compiles to the wrong kernel version with sarpi and raspberry pi3
 
I'm trying to get xtables-addons to work on my raspberry pi. It will compile fine and build the package but, my issue is that it is building the kernel modules for a kernel other than what I am running. The slackbuild puts the kernel modules into /lib/modules/5.10.23-armv7/extra/ where as my kernel is 5.10.23-v7-sarpi3. I also tried just copying the modules into /lib/modules/5.10.23-v7-sarpi3/extra but when I modprobe the module I get the following:

Code:

modprobe: ERROR: could not insert 'xt_geoip': Exec format error
I ran modinfo on the module and this is the output:
Code:

filename:      /lib/modules/5.10.23-armv7/extra/xt_geoip.ko
alias:          ipt_geoip
alias:          ip6t_geoip
description:    xtables module for geoip match
author:        Samuel Jean
author:        Nicolas Bouliane
license:        GPL
depends:        x_tables
name:          xt_geoip
vermagic:      5.10.23-armv7 SMP mod_unload modversions ARMv6 p2v8

for comparison, I also ran modinfo on one of the modules for my kernel:

Code:

filename: /lib/modules/5.10.23-v7-sarpi3/kernel/net/rose/rose.ko
alias:          net-pf-11
license:        GPL
description:    The amateur radio ROSE network layer protocol
author:        Jonathan Naylor G4KLX <g4klx@g4klx.demon.co.uk>
srcversion:    994CAB55A6871B1AB53F906
depends:        ax25
intree:        Y
name:          rose
vermagic:      5.10.23-v7-sarpi3 SMP mod_unload modversions ARMv7 p2v8
parm:          rose_ndevs:number of ROSE devices (int)

The only difference I see is the vermagic, the slackbuilds uses a kernel that I don't have and is using ARMv6 rather than ARMv7

Is there any way to get the slackbuild to build against the kernel I have?

mralk3 03-26-2021 08:18 PM

Can you post a link to the SlackBuild script you are using? It is difficult to know what went wrong without it.


All times are GMT -5. The time now is 07:57 PM.