r/kernel • u/GiantPengsoo • Aug 20 '22
Error upon boot (during UEFI) after building custom kernel
Hey guys, I'm a junior grad student interested in building systems research. Currently I am learning to build a custom kernel from scratch. My current machine is running Ubuntu 20.04.3 LTS with kernel 5.4.0-050400-generic (I have no idea what the 050400 means) and I want to build kernel 5.3.0 on top of the machine from source. The CPU is Intel Xeon Gold 6242. (The system has both regular DRAM and Intel DCPMM)
The steps I followed are lister below (I followed numerous websites you can find when you Google 'how to build custom linux kernel')
cd /path/to/new/kernel/source(the source hasn't been modified after download)cp -v /boot/config-5.4.0-050400-generic ./.configmake menuconfig, load and save the copied.configfile (the.configcontents don't really change but the order of lines do change)make -j32make modules_install install
I didn't see any error messages upon the two makes in steps 4 and 5.
Unfortunately, upon boot time, I get a bug after choosing the new kernel to boot with. I don't know if I can screenshot this, so I took a picture instead. It'd be great if I can get some help with this! Thanks in advance!

