Page 1 of 1

Compiling a kernel module works, but not fully...

Posted: Sat Jan 23, 2021 9:40 pm
by MHHP

I am trying to compile a kernel module in Slacko-7.0 with kernel K4.19.164.

I have downloaded the kernel sources, extracted them and working in a directory ?/linux-4.19.164.

Then I issue the commands:

Code: Select all

# make M=fs/minix clean
  CLEAN   fs/minix/.tmp_versions
  CLEAN   fs/minix/Module.symvers
# make M=fs/minix modules 
  CC [M]  fs/minix/bitmap.o
  CC [M]  fs/minix/itree_v1.o
  CC [M]  fs/minix/itree_v2.o
  CC [M]  fs/minix/namei.o
  CC [M]  fs/minix/inode.o
  CC [M]  fs/minix/file.o
  CC [M]  fs/minix/dir.o
  LD [M]  fs/minix/minix.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      fs/minix/minix.mod.o
  LD [M]  fs/minix/minix.ko
# make M=fs/minix modules_install 
  INSTALL fs/minix/minix.ko
  DEPMOD  4.19.164
Warning: modules_install: missing 'System.map' file. Skipping depmod.

I have the kernel_sources-4.19.164-slacko64.sfs loaded and there is the System.map-file /boot/System.map-4.19.164.

The module installs as /lib/modules/4.19.164/kernel/extra/minix.ko.

Manually running depmod 4.19.164 runs without errors, but doesn't make it depmod'ed.

Copying it in to /lib/modules/4.19.164/kernel/fs/minix and running depmod 4.16.164 runs without errors, but still doesn't make it depmod'ed.

Where do I go wrong?
Any help on this?

regards
MHHP