LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-17-2005, 06:13 PM   #16
mcd
Member
 
Registered: Aug 2003
Location: Denver, CO
Distribution: CentOS, Debian
Posts: 825

Rep: Reputation: 33

Quote:
Im starting to get a little bit confused right now.
don't worry, it seems confusing at first but it's pretty simple. there are actually quite a few different ways of compiling the kernel, and some people do certain steps in different order and whatnot. i would recommend the method shilo posted just above, that will work great for the 2.6.x kernels. essentially, you have to create the .config file, then use that to create a kernel image (bzImage, which you rename vmlinuz), and the modules, then move the modules to /lib/modules/2.6.x, then move the kernel image to /boot, then edit lilo to include this new kernel you have lying around.
 
Old 02-17-2005, 10:42 PM   #17
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
Quote:
Originally posted by Shagrath239
What do you mean?

The sequence was:

make menuconfig
make
make modules_install
make install


Im starting to get a little bit confused right now.
??? where's the make modules... how can you install something you havn't built?
 
Old 02-17-2005, 10:57 PM   #18
vharishankar
Senior Member
 
Registered: Dec 2003
Distribution: Debian
Posts: 3,178

Original Poster
Blog Entries: 4

Rep: Reputation: 138Reputation: 138
I did in this order

Code:
make xconfig
make bzImage
make modules
make modules_install
Copy the bzImage to the /boot folder and name it vmlinuz-2.x.y where x and y are version number.

Copy the System.map to /boot folder under System.map-2.x.y
Copy the .config file to /boot folder under config-2.x.y

Then symbolic links in boot folder:

vmlinuz -> vmlinuz-2.x.y
System.map -> System.map-2.x.y
config -> config-2.x.y

You needn't update grub or lilo every time since your kernel is already pointing to vmlinuz.

Works!

Last edited by vharishankar; 02-17-2005 at 10:59 PM.
 
Old 02-18-2005, 08:06 PM   #19
shilo
Senior Member
 
Registered: Nov 2002
Location: Stockton, CA
Distribution: Slackware 11 - kernel 2.6.19.1 - Dropline Gnome 2.16.2
Posts: 1,132

Rep: Reputation: 50
Quote:
Then symbolic links in boot folder:

vmlinuz -> vmlinuz-2.x.y
System.map -> System.map-2.x.y
config -> config-2.x.y

You needn't update grub or lilo every time since your kernel is already pointing to vmlinuz.
Remember to make sure that you still have a method for booting a kernel that is known to work, though.
 
Old 02-18-2005, 09:18 PM   #20
vharishankar
Senior Member
 
Registered: Dec 2003
Distribution: Debian
Posts: 3,178

Original Poster
Blog Entries: 4

Rep: Reputation: 138Reputation: 138
No problem for me since I have Debian already installed. So if I cannot boot Slackware, I can get into Slackware partition through Debian and restore the old kernel files
 
Old 02-19-2005, 03:17 AM   #21
shilo
Senior Member
 
Registered: Nov 2002
Location: Stockton, CA
Distribution: Slackware 11 - kernel 2.6.19.1 - Dropline Gnome 2.16.2
Posts: 1,132

Rep: Reputation: 50
Quote:
No problem for me
I figured. That's why I mentioned it. For the clueless guy who reads it and doesn't have a second OS installed.
 
  


Reply



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
Kernel compile on Mandriva. lilo.conf only shows Windows listing for boot? Kramer Mandriva 2 08-20-2005 06:03 PM
Kernel Compile Lilo Question megadeth Slackware 2 04-09-2005 05:00 PM
compile kernel when lilo.conf doesn't locate /etc... sirpelidor Linux - Software 2 01-31-2005 09:38 PM
Upgraded kernel, lilo.conf, didn't run /sbin/lilo dtashima Linux - Newbie 4 10-18-2004 11:21 AM
new kernel causes lilo crash; /sbin/lilo = Warning: device 0x0305 exceeds 1024 cylind dandysf Linux - Software 0 08-26-2003 04:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:35 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
Open Source Consulting | Domain Registration