nicupavel / emlog

emlog -- the EMbedded-system LOG-device
GNU General Public License v2.0
57 stars 20 forks source link

insmod: ERROR: could not insert module emlog.ko: Invalid module format #14

Closed maurorappa closed 4 years ago

maurorappa commented 4 years ago

Hello,

I would really like to use this module, but I get the error above, compilation is fine:

[root@ip-172-30-0-16 emlog]# make KDIR=/usr/src/kernels/4.14.173-137.228.amzn2.x86_64/ make -C /usr/src/kernels/4.14.173-137.228.amzn2.x86_64/ M=/root/emlog modules make[1]: Entering directory/usr/src/kernels/4.14.173-137.228.amzn2.x86_64' CC [M] /root/emlog/emlog.o Building modules, stage 2. MODPOST 1 modules CC /root/emlog/emlog.mod.o LD [M] /root/emlog/emlog.ko make[1]: Leaving directory /usr/src/kernels/4.14.173-137.228.amzn2.x86_64' cc -o nbcat nbcat.c -Wall -O2 cc -o mkemlog mkemlog.c -Wall -O2

but the loading not:

[root@ip-172-30-0-16 emlog]# insmod emlog.ko insmod: ERROR: could not insert module emlog.ko: Invalid module format

Do I need a different configuration? does it work with recent kernels? Thanks for any reply.

Cheers, Mauro

maurorappa commented 4 years ago

dmesg shows:

[88114.186983] emlog: disagrees about version of symbol module_layout [88129.509854] emlog: disagrees about version of symbol module_layout

maurorappa commented 4 years ago

my bad , sorry!