Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Installing a new kernel built from source takes too much time

I have built Linux kernel from source with make and make modules_install. But I issue the install command:

$ sudo make -j8 V=1 install
arch/x86/Makefile:142: CONFIG_X86_X32 enabled but no binutils support
test -e include/generated/autoconf.h -a -e include/config/auto.conf || (        \
echo >&2;                           \
echo >&2 "  ERROR: Kernel configuration is invalid.";       \
echo >&2 "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 "         Run 'make oldconfig && make prepare' on kernel src to fix it.";  \
echo >&2 ;                          \
/bin/false)
sh ./arch/x86/boot/install.sh 5.15.10 \
    arch/x86/boot/bzImage System.map "/boot"
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 5.15.10 /boot/vmlinuz-5.15.10
run-parts: executing /etc/kernel/postinst.d/dkms 5.15.10 /boot/vmlinuz-5.15.10
 * dkms: running auto installation service for kernel 5.15.10                                                      
Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area......
make KERNELRELEASE=5.15.10 all INCLUDEDIR=/lib/modules/5.15.10/build/include KVERSION=5.15.10 DKMS_BUILD=1
...

This command goes on for hours. What is really going?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

From the output you show, it looks like your machine is recompiling all of the kernel modules you have, to work with the new kernel. That’s what dkms (Dynamic Kernel Module Support) does. Since this is compilation, it is expected to take quite a long time.

As long as you keep seeing output there (there should be various compilation messages), there should be no problem and it will finish. Eventually.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading