You are not logged in.
Hi,
I've cross-compiled a Linux kernel https://github.com/raspberrypi/linux (6.6.63)
with
CONFIG_IKCONFIG=m
CONFIG_IKCONFIG_PROC=y
but when I do modprobe ikconfig on the client, I get:
FATAL: Module ikconfig not found in directory /lib/modules/6.6.63-v8_TESTT+
I've launched depmod but the error remain.
tree -F -L 2 /lib/modules/6.6.63-v8_TESTT+
|-- build -> /tmp/RaspKernel6-6y/linux
|-- kernel/
| |-- arch/
| |-- crypto/
| |-- drivers/
| |-- fs/
| |-- kernel/
| |-- lib/
| |-- mm/
| |-- net/
| `-- sound/
|-- modules.alias
|-- modules.alias.bin
|-- modules.builtin
|-- modules.builtin.alias.bin
|-- modules.builtin.bin
|-- modules.builtin.modinfo
|-- modules.dep
|-- modules.dep.bin
|-- modules.devname
|-- modules.order
|-- modules.softdep
|-- modules.symbols
`-- modules.symbols.bin
I don't know if /lib/modules/6.6.63-v8_TESTT+/build is required to load the module, as /tmp/RaspKernel6-6y/linux was actually in the host (cross-compile) and not on the raspberry..
Here the ~commands that I use to cross-compile the kernel
su
apt install bc bison flex libssl-dev make libc6-dev libncurses5-dev crossbuild-essential-arm64
cd /tmp/LinuxKernel/linux
git clone --depth=1 --branch rpi-6.6.y https://github.com/raspberrypi/linux
## applying the default configuration
cd linux
KERNEL=kernel8
make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- bcm2711_defconfig
##
make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- menuconfig
make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- Image modules dtbs
## install the kernel modules onto the boot media:
env PATH=$PATH make -j12 ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- INSTALL_MOD_PATH=/mnt/rasprootfs modules_install
cp arch/arm64/boot/Image /mnt/raspboot/$KERNEL.img
cp arch/arm64/boot/dts/broadcom/*.dtb /mnt/raspboot/
mkdir /mnt/raspboot/overlays
cp arch/arm64/boot/dts/overlays/*.dtb* /mnt/raspboot/overlays/
cp arch/arm64/boot/dts/overlays/README /mnt/raspboot/overlays/
If you have any ideas, I'm all ears..
Last edited by SpongeBOB (2024-12-14 12:36:35)
Linux noob, plz be kind
Offline
I recompiled the kernel with that change
CONFIG_IKCONFIG=m y
CONFIG_IKCONFIG_PROC=y
but still get
FATAL: Module ikconfig not found in directory /lib/modules/6.6.63-v8_TESTT+
😓
Linux noob, plz be kind
Offline
any ideas
Only the obvious: Read the documentation (or a good wiki). The module this option builds is not named 'ikconfig'.
And the blindingly obvious:
CONFIG_IKCONFIG=
my
Selecting 'y' will build the option into the kernel image, so there definitely won't be a module to load.
Aside, no idea why you would want IKCONFIG as a module anyway. There's sod-all to be saved by not including a copy of .config in the kernel, so you might as well build it in.
Last edited by steve_v (2024-12-15 09:16:14)
Once is happenstance. Twice is coincidence. Three times is enemy action. Four times is Official GNOME Policy.
Offline
Thanks steve_v
indeed trying to activate it (modprobe) as it's no longer a module, will definitly not work.
I've tried a zless /etc/config.gz and it works so recompiling the kernel worked
Linux noob, plz be kind
Offline