Most likely this is not a BeagleBone specific thing, just happened to me, and I’m really confused, probably missing something obvious.
There are no problems with 4.14.51 kernel booted without any initramfs (initrd.img).
However, in certain setups I have to boot in rootfs in a raw image on a FAT partition, thus I prepared an initrd.img using the standard Debian tools.
The overall boot process is fine, everything works except loading modules. I get:
“modprobe: ERROR: could not insert : Exec format error”
I tried including modules in the initrd.img, but they are not loaded either.
Thanks for advises and directions!
Okay, I found that only xz compressed modules won’t be loaded. Will try to find the root cause.
Either you need to upgrad kmod, run "sudo depmod -a" or just disable
the config option (v4.14.x+ only kernels from my repo have it
enabled..)
-CONFIG_MODULE_COMPRESS=y
-# CONFIG_MODULE_COMPRESS_GZIP is not set
-CONFIG_MODULE_COMPRESS_XZ=y
+# CONFIG_MODULE_COMPRESS is not set
Regards,
Excerpts from Robert Nelson's message from Thu 23-Aug-18 14:26:
Excerpts from Sergey Manucharian's message from Thu 23-Aug-18 14:04:
Excerpts from Robert Nelson's message from Thu 23-Aug-18 14:26:
> >
> > Okay, I found that only xz compressed modules won't be loaded. Will try to find the root cause.
>
> Either you need to upgrad kmod, run "sudo depmod -a" or just disable
> the config option (v4.14.x+ only kernels from my repo have it
> enabled..)
>
> -CONFIG_MODULE_COMPRESS=y
> -# CONFIG_MODULE_COMPRESS_GZIP is not set
> -CONFIG_MODULE_COMPRESS_XZ=y
> +# CONFIG_MODULE_COMPRESS is not set
Thanks, Robert!
My kernel is from your repository, and I like the compression of
modules, I use the same kernel in all my setups.
Most likely, the rootfs I use has an older kmod, will try to upgrade it.
The problem is solved by upgrading the rootfs (Debian Stretch) to the latest version.
The latest kmod handles xz compressed modules.
Thanks,
Sergey