CodexBloom - Programming Q&A Platform

Compiling a Custom Linux Kernel on Ubuntu 22.04 Results in Missing Modules and Boot Issues

👀 Views: 82 đŸ’Ŧ Answers: 1 📅 Created: 2025-06-19
linux kernel ubuntu bash

I'm getting frustrated with I need help solving I've looked through the documentation and I'm still confused about I've been banging my head against this for hours... I'm trying to compile a custom Linux kernel (version 5.15) on Ubuntu 22.04 to include some specific patches for my hardware. After following the standard procedure, I noticed that upon booting with the new kernel, several kernel modules that I expected to be available are missing, and the system fails to recognize my network interface. I've set up the configuration using `make menuconfig`, ensuring I included support for my specific hardware. Here's a snippet from my `.config` file that pertains to networking: ```plaintext CONFIG_NET=y CONFIG_NET_ETHERNET=y CONFIG_8139TOO=m CONFIG_8139CP=m ``` Despite these settings, the modules aren't being generated. After running: ```bash make -j$(nproc) make modules_install make install update-initramfs -u update-grub ``` I reboot my system, but it hangs during boot with a message saying it want to find the network device. I checked `/lib/modules/5.15.0-custom/` and noticed the modules for 8139too and 8139cp aren't present, though they were supposed to be compiled. I've also tried running `depmod -a` after the installation, but that didn't resolve the scenario. Can someone guide to figure out what I'm missing? Is there a specific step I should be paying attention to during the configuration or compilation that could cause these modules to be absent? I'm working on a API that needs to handle this. I'd really appreciate any guidance on this. Any ideas what could be causing this? My development environment is Ubuntu 20.04. I'm open to any suggestions. I'm using Bash 3.10 in this project. Any examples would be super helpful.