LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 03-24-2012, 11:14 PM   #31
propofol
Member
 
Registered: Nov 2007
Location: Seattle
Distribution: Debian Wheezy & Jessie; Ubuntu
Posts: 261

Rep: Reputation: 50

Quote:
Originally Posted by Ryan Hoots View Post
Okay, here's how I'm trying to do this:
..
2. In a terminal, start the configuration with make menuconfig. I go around, selecting anything that might apply. When using a previous config file, I ran make menuconfig and used the "Load alternate configuration file" to load the file I needed. I then fine tuned it.
...
BTW: When using a previous config file from an older version kernel, do make oldconfig before make menuconfig

One other thing: remember to clean up with make mrproper before starting a new build. This also deletes the ".config" file, so make a backup of it outside the source directory and then copy it back afterwards.

Last edited by propofol; 03-25-2012 at 10:30 AM.
 
Old 03-25-2012, 06:19 AM   #32
Ryan Hoots
Member
 
Registered: Sep 2011
Location: Indiana, USA
Distribution: Ubuntu, Fedora, Linux Mint, Debian
Posts: 35

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by propofol View Post
BTW: When using a previous config file from an older version kernel, do make oldconfig before make menuconfig
Okay, I'll try that. I can see how it may be important.
 
Old 03-25-2012, 01:29 PM   #33
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with Slackware 14.
Posts: 2,586

Rep: Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534
Quote:
Originally Posted by propofol View Post
BTW: When using a previous config file from an older version kernel, do make oldconfig before make menuconfig

One other thing: remember to clean up with make mrproper before starting a new build. This also deletes the ".config" file, so make a backup of it outside the source directory and then copy it back afterwards.
Not disagreeing but I have never had to do any of this. It seems like it adds steps that are not needed and therefore complicates things unnecessarily.
 
Old 03-25-2012, 01:58 PM   #34
Ryan Hoots
Member
 
Registered: Sep 2011
Location: Indiana, USA
Distribution: Ubuntu, Fedora, Linux Mint, Debian
Posts: 35

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by k3lt01 View Post
Not disagreeing but I have never had to do any of this. It seems like it adds steps that are not needed and therefore complicates things unnecessarily.
Yeah, I don't particularly need to clean my build environment. It's actually useful to have my old config file unchanged.

I've made no major breakthroughs on Google... best I can tell, what I've been trying would work on another distro.
 
Old 03-25-2012, 03:45 PM   #35
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with Slackware 14.
Posts: 2,586

Rep: Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534
I don't know why I missed it but I have only just seen your edit to yesterdays post. It is possible that Ubuntu is the problem, they have a lot of added extras in the kernel but I'm not sure how you would be able to prove it. Give Debian a go if you feel like it, I prefer Debian now, and I started with Ubuntu in 2007, because it is actually easier to work with after it has been setup.
 
Old 03-25-2012, 03:53 PM   #36
Ryan Hoots
Member
 
Registered: Sep 2011
Location: Indiana, USA
Distribution: Ubuntu, Fedora, Linux Mint, Debian
Posts: 35

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by k3lt01 View Post
I don't know why I missed it but I have only just seen your edit to yesterdays post. It is possible that Ubuntu is the problem, they have a lot of added extras in the kernel but I'm not sure how you would be able to prove it. Give Debian a go if you feel like it, I prefer Debian now, and I started with Ubuntu in 2007, because it is actually easier to work with after it has been setup.
Yeah, Ubuntu's generally easiest in the short term, but that has caused issues previously. I wouldn't be very surprised at all if that's my problem now, and I'm running out of ideas. So, I guess I'll get myself a Debian installation, retry the kernel build, and report back. This will take time, I may be done tomorrow, assuming nothing goes wrong.
 
Old 03-25-2012, 04:11 PM   #37
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with Slackware 14.
Posts: 2,586

Rep: Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534
That's fine Ryan, I'll help where I can. Ubuntu shouldn't be a problem but it is looking as though we have covered all the bases that are the usual suspects.
 
Old 03-25-2012, 04:14 PM   #38
Ryan Hoots
Member
 
Registered: Sep 2011
Location: Indiana, USA
Distribution: Ubuntu, Fedora, Linux Mint, Debian
Posts: 35

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by k3lt01 View Post
That's fine Ryan, I'll help where I can. Ubuntu shouldn't be a problem but it is looking as though we have covered all the bases that are the usual suspects.
Thanks.
 
Old 03-25-2012, 04:39 PM   #39
ukiuki
Senior Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,026

Rep: Reputation: 350Reputation: 350Reputation: 350Reputation: 350
You can pretty much follow the debian way to do it.
To use your working kernel config:
Code:
cp /boot/config-$(uname -r) ./.config
one important thing is don't forget to set the variable for multicore processor:
Code:
export CONCURRENCY_LEVEL=2
If you follow the steps from there you will get it working, still some other things might not work and it is the way Ubuntu set things up.

Here the Ubuntu page about it: https://help.ubuntu.com/community/Kernel/Compile

Regards

Last edited by ukiuki; 03-25-2012 at 04:40 PM.
 
Old 03-25-2012, 08:27 PM   #40
Ryan Hoots
Member
 
Registered: Sep 2011
Location: Indiana, USA
Distribution: Ubuntu, Fedora, Linux Mint, Debian
Posts: 35

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ukiuki View Post
You can pretty much follow the debian way to do it.
To use your working kernel config:
Code:
cp /boot/config-$(uname -r) ./.config
one important thing is don't forget to set the variable for multicore processor:
Code:
export CONCURRENCY_LEVEL=2
If you follow the steps from there you will get it working, still some other things might not work and it is the way Ubuntu set things up.

Here the Ubuntu page about it: https://help.ubuntu.com/community/Kernel/Compile

Regards
Thanks for the link, but unfortunately, that didn't work. I tried it, but got an error, "not in control info". A quick Google search reveals it's a bug.
 
Old 03-27-2012, 08:42 PM   #41
Ryan Hoots
Member
 
Registered: Sep 2011
Location: Indiana, USA
Distribution: Ubuntu, Fedora, Linux Mint, Debian
Posts: 35

Original Poster
Rep: Reputation: Disabled
Okay, I've got good news.

I tried compiling Linux 2.6.32 (the version Ubuntu 10.04 uses out of the box these days), and I got to the login screen. After login, though, the computer crashes. But at least it boots.

Also, while working on it, I figured out how to make an initrd image. Now, I'm going to try Linux 3.2 again, this time with initrd. If that fails, I'm going for version 2.6.35, the version Ubuntu Maverick uses. Maverick has never failed me yet, but as it is going to loose support I migrated to 10.04, which is a little more stable on my computer. But the audio doesn't work well. So, I thought I'd try a custom kernel to see if I could coax the sound to work right.
 
Old 03-27-2012, 09:24 PM   #42
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with Slackware 14.
Posts: 2,586

Rep: Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534
Well at least things have happened differently this time around. I have to be honest and say I don't understand why you don;t just enable backports and use the kernel from something like Natty. That's what I did for my fathers laptop with 10.04 and it's running well.
 
Old 03-27-2012, 09:30 PM   #43
Ryan Hoots
Member
 
Registered: Sep 2011
Location: Indiana, USA
Distribution: Ubuntu, Fedora, Linux Mint, Debian
Posts: 35

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by k3lt01 View Post
Well at least things have happened differently this time around. I have to be honest and say I don't understand why you don;t just enable backports and use the kernel from something like Natty. That's what I did for my fathers laptop with 10.04 and it's running well.
I haven't tried the Natty kernel, but I know the Oneric kernel (one of the two I have now) causes random crashes for me. And because audio doesn't work with the Lucid kernel, my best idea is to get something else. But I wish it was as simple as typing something like "sudo apt-get install working-linux-kernel-3.2-generic". Maybe I should look for (or just make) an app that scans your computer, and creates a kernel config file with everything you need. Maybe it even compiles and installs the kernel for you. That would be nice...
 
Old 03-27-2012, 09:32 PM   #44
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with Slackware 14.
Posts: 2,586

Rep: Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534
Have you tried KernelCHeck?
 
Old 03-27-2012, 09:36 PM   #45
Ryan Hoots
Member
 
Registered: Sep 2011
Location: Indiana, USA
Distribution: Ubuntu, Fedora, Linux Mint, Debian
Posts: 35

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by k3lt01 View Post
Have you tried KernelCHeck?
Now, that sounds like an interesting project. I'd never heard of it until now, but I'm going to have to check it out, weather or not I get it working myself. KernelCheck could save me some time.

Edit:

Meh. KernelCheck depends on kpkg, which, as before, died with "error 2", whatever that is.

Linux 2.6.35.13 won't boot, maybe it has something to do with it having 30+ selection mismatches.

I'm going to have to scour the Ubuntu repositories a bit, then I'll try another compile.

Last edited by Ryan Hoots; 03-28-2012 at 10:52 AM. Reason: Update
 
  


Reply

Tags
compile, kernel 3


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems booting custom kernel smartacus Linux - General 2 02-09-2011 11:07 PM
[SOLVED] Custom kernel problems after encrypting disk brooky9999 Slackware 15 09-18-2008 02:30 PM
Problems with custom kernel k3rnel Debian 9 03-08-2007 01:15 PM
Custom Kernel Problems Penguin of Wonder Ubuntu 13 03-14-2006 10:20 PM
problems installing custom 2.6.14 kernel (for SATA problems) Ekkume Ubuntu 0 12-29-2005 02:39 PM


All times are GMT -5. The time now is 07:37 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration