LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   First Kernel Install (https://www.linuxquestions.org/questions/linux-kernel-70/first-kernel-install-4175587696/)

nbklepp 08-22-2016 03:35 PM

First Kernel Install
 
This is my first time trying to download, compile, and install the Linux kernel from the source code and I'm having a little trouble. The machine currently has Ubuntu 16.04 installed with 4.4.0-21-generic kernel. In the future it will be my intention to apply a patch to the kernel which patch was based on the 4.1.30 kernel. To that end I am attempting to download the source code for the 4.1.30 kernel, compile, configure and boot from that new image. I am running into a little bit of trouble though. I'm following Jem's Guide: [URL="http://www.berkes.ca/guides/linux_kernel.html"]

After following the guide step-by-step and trying to boot from the new image I get an error message about Kernel panic mode and VFS: unable to mount root fs on unknown-block(0,0).

I'm wondering if this has something to do with a bad configuration? I really don't know anything about the configuration process and I was attempting to just use a "default" configuration. By that I mean that when I run

sudo make menuconfig

I don't actually do anything once I'm in the menu. I just immediately click save to save the current configuration. Once I have saved the configuration I am also not able to run

sudo make dep

That command returns the error message:

make: *** No rule to make target 'dep'. Stop.

Is there anybody out there willing to help me along in this process which I apparently know so little about? Thanks in advance! - Nick

colorpurple21859 08-22-2016 03:52 PM

with "make menuconfig" you have to go though the menu and select the drivers and filesystems needed to make the system bootable. Using "make localyesconfig" may be a better option as per this thread http://www.linuxquestions.org/questi...-linux-911172/ The guide your following while still relevent is a bit old and "make dep" isn't needed anymore. The only problem that may arise with "make local" is with the newer kernel having modules in use that the older kernel doesn't have.

nbklepp 08-22-2016 04:50 PM

Okay, thanks for the advice. What do you think about make defconfig? I don't want to be lazy but I also don't know much about the file systems and device drivers that I will need to make the system bootable. Is there any literature you can point me to on what configuration options may be suitable for my purposes?

Thanks again!

- Nick


All times are GMT -5. The time now is 04:12 AM.