LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-08-2004, 03:47 PM   #1
Linux24
Member
 
Registered: Aug 2004
Distribution: Mandrake 10.1
Posts: 204

Rep: Reputation: 30
Compiling Kernel From Source: Uh Oh


Last weekend I tried to compile a custom kernel from source using various guides and a lot of reading in advance. I grabbed the source for

2.6.3-16mdk, which is a security release.

I ran x-config and enabled 4gig support (I have a gig of ram) and also removed nvidia riva framebuffer so Nvidia drivers would work.

When it booted up, there were tons of failure messages. I tried it again and again (took hours), and everytime my custom kernels were crap.

Anyone have any generalized sage wisdom from experience about compiling your own kernel?

Other than "Don't do it if you aren an idiot." Thanks, I know that already.
 
Old 09-08-2004, 04:04 PM   #2
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 56
You are going to have to post the errors for someone to help,need more information.
 
Old 09-08-2004, 05:53 PM   #3
amf57
LQ Newbie
 
Registered: Feb 2003
Posts: 22

Rep: Reputation: 15
The biggest issues usualy deal with not having the proper versions of the compilers etc. You should compare the output from the /usr/src/linux/scripts/ver_linux script with that from the /usr/src/linux/Documentation/Changes file.

Also, I would suggest running
make mrproper before you even do the make xconfig or make menu config command.

As comprookie2000 said above, the output from the errors would be a good thing to look at. I suggest when you start with the make command to compile everything that you do
make 2> kernerrs so you can look them over.

I am sure you have seen from the docs that you no longer need to do
make dep clean bzImage etc etc any more.
Simply make and then make modules_install will suffice.
A final make install should move ur kernel, create ur initrd and edit ur grub or lilo.conf for you.
 
Old 09-10-2004, 09:10 AM   #4
Linux24
Member
 
Registered: Aug 2004
Distribution: Mandrake 10.1
Posts: 204

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by amf57
I suggest when you start with the make command to compile everything that you do
make 2> kernerrs so you can look them over.
Thanks that's a great suggestion!
 
Old 09-10-2004, 11:53 AM   #5
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959Reputation: 1959
Are you perhaps referring to getting a bunch of "fatal error" messages flashing by during boot up? That happens when your previous kernel used certain modules but your current one doesn't, either because you removed them or you compiled them directly into the kernel. The boot sequence is still trying to load the previous modules list, but of course it's not finding them, so it spits out error codes. You need to edit a file (I believe it's /etc/modules.conf, someone correct me if I'm wrong) to get rid of the invalid entries.
 
Old 09-10-2004, 02:40 PM   #6
Linux24
Member
 
Registered: Aug 2004
Distribution: Mandrake 10.1
Posts: 204

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by David the H.
Are you perhaps referring to getting a bunch of "fatal error" messages flashing by during boot up? That happens when your previous kernel used certain modules but your current one doesn't, either because you removed them or you compiled them directly into the kernel. The boot sequence is still trying to load the previous modules list, but of course it's not finding them, so it spits out error codes. You need to edit a file (I believe it's /etc/modules.conf, someone correct me if I'm wrong) to get rid of the invalid entries.
AHA!!!! OK! That makes a lot of sense.

Unfortunately, when I tried to boot up with this kernel compiled like that, it gave all of those failure messages, and then when it finished and X was supposed to load, it just locked up and gave me the black screen (Linux equivalent of the middle finger).

I was pretty careful when using xconfig and I left anything in that I didn't know what it was, so I was really surprised when that happened.

Of course, after the first compilation failed, which took hours rooting through directories in xconfig, I tried to just compile one with only two tweaks: 4GB and no riva framebuffer.

It did the same thing - just locked up.

What I don't understand is why the dorks who make the RPM's with the maintenance releases of Mandrake kernels insist on compiling them with framebuffer support built in. It's the only reason I was trying to compile my own - so I could install nvidia drivers against them.

Even in xconfig framebuffer is commented as being obsolete and "only enable if you want to play with it and it may hurt performance."

So why the heck are they doing that and how do I get them to stop it?

Another question: can I edit modules.conf on my current kernel to reduce the load and boot time and increase performance for the modules I don't need?

Last edited by Linux24; 09-10-2004 at 02:43 PM.
 
  


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
compiling apt from source - where's the source? stynhx9000 Ubuntu 2 12-01-2005 07:32 AM
does compiling from source avoid kernel version probs? disorderly Linux - Newbie 1 03-25-2005 04:28 PM
Compiling Kernel and other source code davegermiquet Conectiva 2 01-26-2005 06:01 PM
compiling software from source...how do i delete the folder w/ source? webazoid Linux - Software 2 07-01-2004 09:09 PM
ati driver compiling with wrong kernel source madcow007 Linux - Hardware 7 02-15-2004 10:04 AM


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

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