LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 08-22-2016, 04:35 PM   #1
nbklepp
LQ Newbie
 
Registered: Aug 2015
Posts: 2

Rep: Reputation: Disabled
Unhappy 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
 
Old 08-22-2016, 04:52 PM   #2
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, puppy, ubuntu
Posts: 2,189

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
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.

Last edited by colorpurple21859; 08-22-2016 at 04:56 PM.
 
Old 08-22-2016, 05:50 PM   #3
nbklepp
LQ Newbie
 
Registered: Aug 2015
Posts: 2

Original Poster
Rep: Reputation: Disabled
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Linux Kernel 3.19 Has Reached To End With Last Release Kernel 3.19.8, Install/Upgrade Kernel 3 LXer Syndicated Linux News 0 05-15-2015 01:03 AM
[SOLVED] VirtualBox & The New 2.6.37.3 Kernel. (Solution: DKMS Required To Install VB Kernel Module) cwizardone Slackware 49 03-17-2011 07:42 PM
Trying to install ethernet adapter driver, not finding kernel-devel or kernel-headers oneFishtwoFish Red Hat 5 08-31-2010 07:24 PM
Configure kernel source for standard debian kernel (module install) twinkers Debian 2 12-22-2005 12:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 01:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration