Article 5SZRN Pb with insmod

Pb with insmod

by
Desiderius
from LinuxQuestions.org on (#5SZRN)
Hi all

I have just installed a new RPI4 with the latest Slackware ARM and the version of SARPI dated 30 November following as usual the Exaga tutorial

The installation was successful and eveything is working fine.

Now I want to compile a new driver and use it.

I git cloned the driver, compile it and try to "insmod it" into the kernel
but it fails !

Code:diskiopi1-ibgbi(8)% make
make -C /lib/modules/5.15.5-v7l-sarpi4/build M=/home/ibgbi/diskio-pi-battery-meter modules
make[1]*: on entre dans le repertoire */usr/src/linux-5.15.5*
CC [M] /home/ibgbi/diskio-pi-battery-meter/max1726x_battery.o
MODPOST /home/ibgbi/diskio-pi-battery-meter/Module.symvers
CC [M] /home/ibgbi/diskio-pi-battery-meter/max1726x_battery.mod.o
LD [M] /home/ibgbi/diskio-pi-battery-meter/max1726x_battery.ko
make[1]*: on quitte le repertoire */usr/src/linux-5.15.5*
diskiopi1-ibgbi(9)% ls /usr/src/linux-5.15.5
arch Documentation Kbuild MAINTAINERS.orig samples virt
block drivers Kconfig Makefile scripts
certs fs kernel mm security
COPYING include lib Module.symvers sound
CREDITS init LICENSES net tools
crypto ipc MAINTAINERS README usr
diskiopi1-ibgbi(10)% ls
1.0A_board.jpg indicateur_batt.jpg max1726x_battery.mod
1.0B_1.2_board.jpg Makefile max1726x_battery.mod.c
deb max1726x_battery.c max1726x_battery.mod.o
dkms.conf max1726x_battery.dts max1726x_battery.o
dkms.post_install max1726x_battery.h modules.order
dkms.post_remove max1726x_battery.h~ Module.symvers
doc max1726x_battery.ko README.md
diskiopi1-ibgbi(11)% file max1726x_battery.ko
max1726x_battery.ko: ELF 32-bit LSB relocatable, ARM, EABI5 version 1 (SYSV), BuildID[sha1]=765072c94f48529d6f5b2cb43a33b38a47da8f8e, not stripped
diskiopi1-ibgbi(12)% su -l root
Mot de passe :

If I had only known, I would have been a locksmith.
-- Albert Einstein

root@diskiopi1:~# insmod /home/ibgbi/diskio-pi-battery-meter/max1726x_battery.ko
insmod: ERROR: could not insert module /home/ibgbi/diskio-pi-battery-meter/max1726x_battery.ko: Invalid module formatWhat have I missed and how to fix this problem ?latest?d=yIl2AUoC8zA latest?i=ZOVJhPSZHs4:tiEZIbLtHyg:F7zBnMy latest?i=ZOVJhPSZHs4:tiEZIbLtHyg:V_sGLiP latest?d=qj6IDK7rITs latest?i=ZOVJhPSZHs4:tiEZIbLtHyg:gIN9vFw
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments