Can't Build Linux Kernel from Tutorial
Richard Akintola <[email protected]>
| Newsgroups | dev.linux.lists.outreachy |
|---|---|
| Message-ID | <[email protected]> |
Hello Julia, I have been trying to build the Linux Kernel via the tutorial on my machine to no avail. This has prevented me from making a PATCH. This is the Os and Kernel version of my machine OS: Parrot Security 6.3 (lorikeet) x86_64 Kernel: 6.5.0-13parrot1-amd64 Below is the error I got while installing the kernel build ... INSTALL /lib/modules/6.14.0-rc1custom- ola+/kernel/net/vmw_vsock/vmw_vsock_virtio_transport_common.ko INSTALL /lib/modules/6.14.0-rc1custom- ola+/kernel/net/vmw_vsock/hv_sock.ko INSTALL /lib/modules/6.14.0-rc1custom- ola+/kernel/net/vmw_vsock/vsock_loopback.ko INSTALL /lib/modules/6.14.0-rc1custom-ola+/kernel/net/nsh/nsh.ko INSTALL /lib/modules/6.14.0-rc1custom-ola+/kernel/net/hsr/hsr.ko INSTALL /lib/modules/6.14.0-rc1custom-ola+/kernel/net/qrtr/qrtr.ko INSTALL /lib/modules/6.14.0-rc1custom-ola+/kernel/net/qrtr/qrtr- mhi.ko DEPMOD /lib/modules/6.14.0-rc1custom-ola+ INSTALL /boot run-parts: executing /etc/kernel/postinst.d/dkms 6.14.0-rc1custom-ola+ /boot/vmlinuz-6.14.0-rc1custom-ola+ dkms: running auto installation service for kernel 6.14.0-rc1custom- ola+. readelf: Error: Not an ELF file - it has the wrong magic bytes at the start readelf: Error: Not an ELF file - it has the wrong magic bytes at the start readelf: Error: Not an ELF file - it has the wrong magic bytes at the start readelf: Error: Not an ELF file - it has the wrong magic bytes at the start readelf: Error: Not an ELF file - it has the wrong magic bytes at the start readelf: Error: Not an ELF file - it has the wrong magic bytes at the start readelf: Error: Not an ELF file - it has the wrong magic bytes at the start readelf: Error: Not an ELF file - it has the wrong magic bytes at the start readelf: Error: Not an ELF file - it has the wrong magic bytes at the start readelf: Error: Not an ELF file - it has the wrong magic bytes at the start readelf: Error: Not an ELF file - it has the wrong magic bytes at the start readelf: Error: Not an ELF file - it has the wrong magic bytes at the start readelf: Error: Not an ELF file - it has the wrong magic bytes at the start readelf: Error: Not an ELF file - it has the wrong magic bytes at the start Sign command: /lib/modules/6.14.0-rc1custom-ola+/build/scripts/sign- file Binary /lib/modules/6.14.0-rc1custom-ola+/build/scripts/sign-file not found, modules won't be signed Building module: Cleaning build area... make -j4 KERNELRELEASE=6.14.0-rc1custom-ola+ KVER=6.14.0-rc1custom- ola+........(bad exit status: 2) Error! Bad return status for module build on kernel: 6.14.0-rc1custom- ola+ (x86_64) Consult /var/lib/dkms/broadcom-sta/6.30.223.271/build/make.log for more information. Sign command: /lib/modules/6.14.0-rc1custom-ola+/build/scripts/sign- file Binary /lib/modules/6.14.0-rc1custom-ola+/build/scripts/sign-file not found, modules won't be signed Building module: Cleaning build area...(bad exit status: 2) kernelver=6.14.0-rc1custom-ola+ ./dkms-make.sh...(bad exit status: 2) Error! Bad return status for module build on kernel: 6.14.0-rc1custom- ola+ (x86_64) Consult /var/lib/dkms/realtek- rtl8814au/5.8.5.1~git20240527.d8208c8/build/make.log for more information. Sign command: /lib/modules/6.14.0-rc1custom-ola+/build/scripts/sign- file Binary /lib/modules/6.14.0-rc1custom-ola+/build/scripts/sign-file not found, modules won't be signed Building module: Cleaning build area...(bad exit status: 2) 'make' -j4 KVER=6.14.0-rc1custom-ola+ KSRC=/lib/modules/6.14.0- rc1custom-ola+/build...(bad exit status: 2) Error! Bad return status for module build on kernel: 6.14.0-rc1custom- ola+ (x86_64) Consult /var/lib/dkms/realtek- rtl88xxau/5.6.4.2~git20240510.b44d288/build/make.log for more information. Error! One or more modules failed to install during autoinstall. Refer to previous errors for more information. dkms: autoinstall for kernel: 6.14.0-rc1custom-ola+ failed! run-parts: /etc/kernel/postinst.d/dkms exited with return code 11 make[2]: *** [arch/x86/Makefile:321: install] Error 1 make[1]: *** [/home/laolu/Desktop/Outreachy_Contributions/Linux- Kernel/git/kernels/staging/Makefile:372: __build_one_by_one] Error 2 make[1]: Target 'modules_install' not remade because of errors. make[1]: Target 'install' not remade because of errors. make: *** [Makefile:251: __sub-make] Error 2 make: Target 'modules_install' not remade because of errors. make: Target 'install' not remade because of errors.