<div dir="auto">Someone of you asked what is the need of compiling source code of kernel and I am doing so due to the following reasons.<div dir="auto"><br></div><div dir="auto">The main issues are when I click the shutdown button in desktop environments like gnome, mate the system is not shutting down immediately. When I run the command halt in terminal the monitor gets turned off but still the cpu runs a long time until I switch off the power.</div><div dir="auto"><br></div><div dir="auto">Previously I have tried to connect to internet through android tethering and the connection turns off with in 6 minutes and so I have tried a number of ways such as installing android udev rools and trying the commands</div><div dir="auto"><br></div><div dir="auto">adb tcpip 5555</div><div dir="auto">adb connect <my phone ip address></div><div dir="auto"><br></div><div dir="auto">Still there is no use and so I have bought usb wifi adapter which consists of RTL 8188 and this time I am able to connect to internet all the time through wifi.</div><div dir="auto"><br></div><div dir="auto">Now the issue is when I want to copy files from android smartphone to pc and connect the phone to pc the system is showing error as usb device not recognised.</div><div dir="auto"><br></div><div dir="auto">Before installing wifi dongle through usb I am able to connect my phone to pc and transfer files between the two but now it is not possible.</div><div dir="auto"><br></div><div dir="auto">Most of the time I work using ffmpeg tool and so I have installed open CL packages like beignet, beignet devel, opencl headers, ocl-dev, clinfo packages. When I issue the command clinfo I am getting errors as no open CL devices found etc.,.</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">If these issues are resolved then there is no need to compile source code of kernel.</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">Try to suggest how to configure the system for the following</div><div dir="auto">1) shutdown the system properly when I click on the shutdown button.</div><div dir="auto">2) shutdown the system properly when I issue the command halt or poweroff.</div><div dir="auto">3) how to connect my smartphone through usb at the same time wifi adapter or dongle running.</div><div dir="auto">4) how tools such as ffmpeg or clinfo detect my cpu.</div><div dir="auto">Hi let me know how to compile source code of kernel first.</div><div dir="auto"><br></div><div dir="auto">At present I have made changes in bios secure boot as</div><div dir="auto"><br></div><div dir="auto">Os type to  "other os"</div><div dir="auto">Secure boot mode to "standard"</div><div dir="auto"><br></div><div dir="auto">After that I have disabled secure boot option in yast boot loader.</div><div dir="auto"><br></div><div dir="auto">After that I have compiled kernel source code and this time also when I issue the command "make install" I am getting same error as " must have certificates....".</div><div dir="auto"><br></div><div dir="auto">After reboot when I select the new kernel I am not getting shim error but instead I am getting error as</div><div dir="auto"><br></div><div dir="auto">"systemd: failed to load modules"</div><div dir="auto"><br></div><div dir="auto">After some time I am able to see message as reached target but there is no user login window.</div><div dir="auto"><br></div><div dir="auto">Another thing I want to mention is that when I issue the command " make install " I am able to see messages as moving vmlinuz.5.11 to vmlinuz.5.11.old, initrd.5.11 to United.5.11.old etc.,.</div><div dir="auto"><br></div><div dir="auto">Also the modules newly compiled are going to overwrite the existing modules present in /lib/modules/kernel version.</div><div dir="auto"><br></div><div dir="auto">My question is suppose I download the kernel source code from <a href="http://kernel.org">kernel.org</a> and it's file name is kernel.5.13.1 and the present kernel I am running is 5.13.1 then how to compile source code of kernel and create kernel with file name vmlinuz.5.13.1-new and initrd.5.13.1-new and finally place the kernel modules under the directory /lib/modules/5.13.1-new</div><div dir="auto"><br></div><div dir="auto">Regards,</div><div dir="auto">Rupesh.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 28 Feb 2022, 11:14 pm Guddla Rupesh, <<a href="mailto:rupeshforu3@gmail.com">rupeshforu3@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div dir="auto">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 <a href="http://kernel.org" target="_blank" rel="noreferrer">kernel.org</a> and the kernel source code present in /usr/src/linux*** but I can't.<br></div><div dir="auto"><br></div><div dir="auto">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.,.</div><div dir="auto"><br></div><div dir="auto">I have created the config file from the existing configuration of system using the following command</div><div dir="auto"><br></div><div dir="auto">make localmodconfig</div><div dir="auto"><br></div><div dir="auto">I have succeeded in compiling source code of new kernel using make command but when I execute the command </div><div dir="auto"><br></div><div dir="auto">make install</div><div dir="auto"><br></div><div dir="auto">I am getting error as</div><div dir="auto"><br></div><div dir="auto">" certificate must have code signing extended key usage defined for secure boot ".</div><div dir="auto"><br></div><div dir="auto">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</div><div dir="auto"><br></div><div dir="auto">"bad shim signature"</div><div dir="auto">"you need to load the kernel first"</div><div dir="auto"><br></div><div dir="auto">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 signature etc.,.</div><div dir="auto"><br></div><div dir="auto">Currently my .config file consists of the following lines containing the word sig</div><div dir="auto"><br></div><div dir="auto">[CODE]</div><div dir="auto">CONFIG_SIGNALFD=y</div><div dir="auto">CONFIG_KEXEC_SIG=y</div><div dir="auto">CONFIG_KEXEC_SIG_FORCE=y</div><div dir="auto">CONFIG_KEXEC_BZIMAGE_VERIFY_SIG=y</div><div dir="auto"># CONFIG_STRICT_SIGALTSTACK_SIZE is not set</div><div dir="auto">CONFIG_ACPI_TINY_POWER_BUTTON_SIGNAL=38</div><div dir="auto">CONFIG_OLD_SIGSUSPEND3=y</div><div dir="auto">CONFIG_COMPAT_OLD_SIGACTION=y</div><div dir="auto">CONFIG_DYNAMIC_SIGFRAME=y</div><div dir="auto">CONFIG_MODULE_SIG_FORMAT=y</div><div dir="auto">CONFIG_MODULE_SIG=y</div><div dir="auto">CONFIG_MODULE_SIG_FORCE=y</div><div dir="auto">CONFIG_MODULE_SIG_ALL=y</div><div dir="auto"># CONFIG_MODULE_SIG_SHA1 is not set</div><div dir="auto"># CONFIG_MODULE_SIG_SHA224 is not set</div><div dir="auto">CONFIG_MODULE_SIG_SHA256=y</div><div dir="auto"># CONFIG_MODULE_SIG_SHA384 is not set</div><div dir="auto"># CONFIG_MODULE_SIG_SHA512 is not set</div><div dir="auto">CONFIG_MODULE_SIG_HASH="sha256"</div><div dir="auto">CONFIG_TCP_MD5SIG=y</div><div dir="auto">CONFIG_CFG80211_REQUIRE_SIGNED_REGDB=y</div><div dir="auto"># DesignWare PCI Core Support</div><div dir="auto"># end of DesignWare PCI Core Support</div><div dir="auto">CONFIG_I2C_DESIGNWARE_CORE=y</div><div dir="auto"># CONFIG_I2C_DESIGNWARE_SLAVE is not set</div><div dir="auto">CONFIG_I2C_DESIGNWARE_PLATFORM=y</div><div dir="auto">CONFIG_I2C_DESIGNWARE_BAYTRAIL=y</div><div dir="auto"># CONFIG_I2C_DESIGNWARE_PCI is not set</div><div dir="auto"># CONFIG_SPI_DESIGNWARE is not set</div><div dir="auto"># CONFIG_SND_HDA_CODEC_SIGMATEL is not set</div><div dir="auto"># CONFIG_USB_ISIGHTFW is not set</div><div dir="auto">CONFIG_FS_VERITY_BUILTIN_SIGNATURES=y</div><div dir="auto">CONFIG_INTEGRITY_SIGNATURE=y</div><div dir="auto"># CONFIG_IMA_SIG_TEMPLATE is not set</div><div dir="auto">CONFIG_IMA_APPRAISE_MODSIG=y</div><div dir="auto">CONFIG_IMA_KEYRINGS_PERMIT_SIGNED_BY_BUILTIN_OR_SECONDARY=y</div><div dir="auto">CONFIG_SIGNED_PE_FILE_VERIFICATION=y</div><div dir="auto"># Certificates for signature checking</div><div dir="auto">CONFIG_MODULE_SIG_KEY="certs/signing_key.pem"</div><div dir="auto">CONFIG_MODULE_SIG_KEY_TYPE_RSA=y</div><div dir="auto"># CONFIG_MODULE_SIG_KEY_TYPE_ECDSA is not set</div><div dir="auto"># end of Certificates for signature checking</div><div dir="auto">CONFIG_CHECK_SIGNATURE=y</div><div dir="auto">CONFIG_SIGNATURE=y</div><div dir="auto">[/CODE]</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">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 grub2.</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">Regards,</div><div dir="auto">Rupesh.</div></div>
</blockquote></div>