Ubuntu Core 18 systemd-modules-load.service fail

Hello there. I am using a CM4, with a custom baseboard, but it seems that the latest kernel from the Raspberry Pi Foundation fails to load the modules?

I used the latest kernel version 5.15.y -> 5.15.53. The board boots fine, but the lsmod command turns up nothing, journalctl shows this:

Jul 18 10:39:40 mydevboard systemd-modules-load[423]: Failed to find module ‘i2c-dev’

Jul 18 10:39:40 mydevboard systemd-modules-load[423]: Failed to find module ‘arp_tables’

Jul 18 10:39:40 mydevboard systemd-modules-load[423]: Failed to find module ‘br_netfilter’

Jul 18 10:39:40 mydevboard systemd-modules-load[423]: Failed to find module ‘ip6table_filter’

Jul 18 10:39:40 mydevboard systemd-modules-load[423]: Failed to find module ‘iptable_filter’

Jul 18 10:39:40 mydevboard systemd-modules-load[423]: Failed to find module ‘ppp_generic’

Modprobing a kernel module also states this:

admin@mydevboard:~$ modprobe i2c-dev modprobe: FATAL: Module i2c-dev not found in directory /lib/modules/5.15.53-mykernel-v12+

Trying to find the kernel module:

admin@mydevboard:/lib/modules/5.15.53-mykernel-v12+$ find . -name “i2c-dev*” ./kernel/drivers/i2c/i2c-dev.ko.xz

It seems that along the line, something has changed with the module loading, or how the kernel modules are handled/created during compile?

Ah, Found it. Turns out that the kernel module compression was enabled. CONFIG_MODULE_COMPRESS_XZ=y Disabled it, compiled, and seems to work now.

1 Like