I'm new to the kernel community and I'm learning how to compile and install the Linux kernel, but I'm unable to install it. I'm running a 6 core Ryzen 5 and Ubuntu 20.04 LTS, and I'm using gcc for my compiler. My current kernel version is 5.11.0-38-generic and I'm trying to compile and install version 5.14.14. I'm using Greg Kroah Heartman's Linux Kernel in a nutshell as a guide. First I download the most recent mainline kernel from kernel.org. Then, I run make menuconfig to generate a .config for my system. Next, I run make -j12 to compile the kernel, which runs fine and doesn't return any errors. I've been running into trouble with installing it. After running make install I get the following error output:
arch/x86/Makefile:148: CONFIG_X86_X32 enabled but no binutils support
sh ./arch/x86/boot/install.sh \
5.14.14 arch/x86/boot/bzImage \
System.map "/boot"
*** Missing file: arch/x86/boot/bzImage
*** You need to run "make" before "make install".
make[1]: *** [arch/x86/boot/Makefile:161: install] Error 1
make: *** [arch/x86/Makefile:280: install] Error 2
install.sh is telling me that there is no bzImage file in my arch directory. I checked and indeed the file is missing. I tried looking up "missing bzImage file" but couldn't find anything helpful. Why isn't make generating a big zImage file?
I tried Justin Iurman's recommendation in the above comment and it worked for installing the kernel. I needed to run
make bzImagebeforemake. I had to edit one line in the config file beforemake bzImagewas successful. However,sudo make installgave some strange output:It seems that although I was able to install the kernel, it didn't boot properly, but since my question was on installing the kernel, I'll mark this question closed.