LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 03-09-2004, 06:17 AM   #1
equinox
Member
 
Registered: Dec 2003
Location: Johannesburg, South Africa
Posts: 846

Rep: Reputation: 30
Am I correct?


Hi, I've just compiled my new kernel. I had the kernel sources installed so I did this:

# cd /usr/src/linux*

# make mrproper

# make xconfig

from there on i configured the kernel and the things/features i needed support for, after that i ran:

# make

# make bzImage

# make modules

# make modules_install

# make install

# /sbin/lilo

I did all that and the kernel compiled successfully, i rebooted and i had the custom kernel added to lilo and i booted into it with no problems, even the bootsplash was still working. The kernel never complained about anything! If i do a uname -a this is what i get:

[mike@linux mike]$ uname -a
Linux linux 2.6.3-4mdkcustom #1 Tue Mar 9 00:40:32 GMT 2004 i686 unknown unknown GNU/Linux

Was I right with the way I went about compiling? Like with the steps i did?

cheers.
 
Old 03-09-2004, 06:40 AM   #2
guygriffiths
Member
 
Registered: Jun 2003
Location: Reading, UK
Distribution: Debian 3.0, LFS
Posts: 524

Rep: Reputation: 34
Yes, that's why it worked.
I don't think you needed to run /sbin/lilo, I think "make install" does that. You could also look into kernel versioning if you run several kernels with different things installed as modules, and you could consider building with gcc-2.95 if it's not your default compiler. You could also do the "make install" step by hand so that you have more control over the process.
 
Old 03-09-2004, 06:46 AM   #3
equinox
Member
 
Registered: Dec 2003
Location: Johannesburg, South Africa
Posts: 846

Original Poster
Rep: Reputation: 30
heh cool, its the first time i've compiled a kernel and im just so happy i havent ran into any problems, i've read many peoples posts about kernel panics etc.

Thanks
 
Old 03-09-2004, 06:55 AM   #4
guygriffiths
Member
 
Registered: Jun 2003
Location: Reading, UK
Distribution: Debian 3.0, LFS
Posts: 524

Rep: Reputation: 34
Kernel compiling is pretty easy once you have all of the correct options selected. However, that's pretty impressive that you managed to get all of the right options first time. It took me about five goes I think.
 
Old 03-09-2004, 08:24 AM   #5
equinox
Member
 
Registered: Dec 2003
Location: Johannesburg, South Africa
Posts: 846

Original Poster
Rep: Reputation: 30
lets just say that i created a dir in my home dir as /home/mike/kernel-2.6.3 for example, and i built it from there, would it still work and do the mapping for lilo etc?
 
Old 03-09-2004, 09:20 AM   #6
guygriffiths
Member
 
Registered: Jun 2003
Location: Reading, UK
Distribution: Debian 3.0, LFS
Posts: 524

Rep: Reputation: 34
Yes, I think so. You would need to be root to do the install stuff, and certainly on my system, /lib/modules/version is linked to the source directory, so it's not the ideal place what with permissions and all, but yes it would work.
 
Old 03-11-2004, 05:49 AM   #7
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: KirraMail Live Email Server
Posts: 1,275

Rep: Reputation: 61
I had mine running right the very first time, ran it for three or four weeks it was booting so quick it wasn't funny, then i had to stuff around with it, could leave it alone and it crashed. I tried twice since then with no luck, when I get some more time i'll give it another go
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Correct IO conflicts? roste Fedora 1 04-16-2005 11:00 AM
Correct ISO? Tuul Linux - Newbie 1 10-24-2004 03:20 AM
What are the correct permissions for /etc? KingofBLASH Slackware 1 01-31-2004 08:56 PM
what is the correct syntax shanenin Linux - Software 2 10-19-2003 12:31 PM
Correct Command, anyone? tomplate Linux - General 3 02-26-2002 08:39 PM


All times are GMT -5. The time now is 03:52 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