How to compile source code of new kernel specifically for my pc hardware with uefi secure boot.
rupeshforu3 at gmail.com
Mon Feb 28 12:44:32 EST 2022
Hi I am Rupesh from India and I have pc i3 processor and h510 motherboard
It has uefi. I have installed open suse tumblewood and all the packages
have been updated. As the default kernel provided by open suse tumblewood
is not working properly I want to compile source code of new kernel which
is obtained from kernel.org and the kernel source code present in
/usr/src/linux*** but I can't.
As the pc is uefi based I am getting lot of errors related to signing. I
have installed all latest packages related to gcc, make, ctags, cscope,
open ssh, open SSL, auto make, auto conf, cmake etc.,.
I have created the config file from the existing configuration of system
using the following command
I have succeeded in compiling source code of new kernel using make command
but when I execute the command
I am getting error as
" certificate must have code signing extended key usage defined for secure
After some time vmlinux, initrd files are created but when I try to boot
the newly compiled kernel from grub I am getting errors as
"bad shim signature"
"you need to load the kernel first"
I have tried a number of ways to compile successfully such as disabling
secure boot in yast boot loader, selecting load all modules by verifying
Currently my .config file consists of the following lines containing the
# CONFIG_STRICT_SIGALTSTACK_SIZE is not set
# CONFIG_MODULE_SIG_SHA1 is not set
# CONFIG_MODULE_SIG_SHA224 is not set
# CONFIG_MODULE_SIG_SHA384 is not set
# CONFIG_MODULE_SIG_SHA512 is not set
# DesignWare PCI Core Support
# end of DesignWare PCI Core Support
# CONFIG_I2C_DESIGNWARE_SLAVE is not set
# CONFIG_I2C_DESIGNWARE_PCI is not set
# CONFIG_SPI_DESIGNWARE is not set
# CONFIG_SND_HDA_CODEC_SIGMATEL is not set
# CONFIG_USB_ISIGHTFW is not set
# CONFIG_IMA_SIG_TEMPLATE is not set
# Certificates for signature checking
# CONFIG_MODULE_SIG_KEY_TYPE_ECDSA is not set
# end of Certificates for signature checking
Kindly try to suggest how to compile the source code of kernel for uefi
system with automatic key singing and how to boot the compiled kernel from
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Kernelnewbies