LinuxQuestions.org
Help answer threads with 0 replies.
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 11-28-2005, 10:11 PM   #16
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,463
Blog Entries: 7

Rep: Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561

Here's some good reading on the subject:

http://www.digitalhermit.com/linux/K...ild-HOWTO.html
 
Old 11-28-2005, 10:11 PM   #17
odevans
Member
 
Registered: Nov 2005
Location: Columbus, OH, USA
Distribution: Slackware
Posts: 246

Rep: Reputation: 30
If that's all you did, you won't be running your new kernel.

Here's my method:

As root:

Code:
root@box: cd /usr/src/linux

root@box: make mrproper; make menuconfig      
          # configure as appropriate, save the config witha filename (e.g. 2.6.13-SMP-1.config), exit (saving configuration)

root@box: make all && make modules_install
          # go make a snack ("make all" is the equiv of "make zimage; make bzimage; make modules" - see "make help")
Then to install the new kernel:

Code:
root@box: cat arch/i386/boot/bzImage > /boot/2.6.13-SMP-1

root@box: cp System.map /boot/System.map.2.6.13-SMP-1
DISCLAIMER: The next bit depends a little on how your box is set up, but the following assumes you're using one of the Slackware kernels (from the boot/install CD). Exercise caution!

Code:
root@box: cd /boot

root@box: rm System.map
          # On Slack, /boot/System.map is just a symlink to the relevant System.map for the installed kernel

root@box: ln -s System.map System.map.2.6.13-SMP-1
          # an ls -l should now show the symlink pointing to your new System.map
The last section is to edit the lilo config file:

Code:
root@box: vim /etc/lilo.conf
          # or whatever editor you like
Add an entry for your new kernel. If you want it to be the "default" choice on the lilo boot menu, make it the first entry in the list. If you're leaving your 'old' kernel there (just in case), make sure the timeout is set to 20 or more (2 seconds). I've shot myself in the foot more than once here!

Adjust as necessary:


image = /boot/2.6.13-SMP-1
root = /dev/hda
label = 2.6.13-SMP
read-only


Save and exit, then run the lilo program to write the configuration to the drive:

Code:
root@box: /sbin/lilo
Cross fingers, make any sacrificial offerings you feel necessary, and reboot
 
Old 11-28-2005, 10:13 PM   #18
odevans
Member
 
Registered: Nov 2005
Location: Columbus, OH, USA
Distribution: Slackware
Posts: 246

Rep: Reputation: 30
You beat me to it, rkelsen. Much more elegant too!
 
Old 11-28-2005, 10:22 PM   #19
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,463
Blog Entries: 7

Rep: Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561
Quote:
Originally posted by odevans
You beat me to it, rkelsen. Much more elegant too!
But I forgot the part about making sacrificial offerings & crossing fingers....
 
  


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
Slack 10.1 kernel(2.4.29) rebuild with SMP and SCSI support amphiBian Slackware 8 02-28-2005 10:25 PM
newbie smp kernel question djgerbavore Programming 3 11-18-2004 07:43 AM
Slack 9.1 SMP 2.6.1-kernel tungsten Slackware 4 01-12-2004 01:13 PM
Quick SMP kernel question Coldfirex Slackware 3 10-19-2003 11:05 AM
SMP, Kernel and NIC module question...weirdness tarballed Linux - General 1 07-02-2003 05:33 PM

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

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
Open Source Consulting | Domain Registration