LinuxQuestions.org
Visit Jeremy's Blog.
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 12-09-2003, 08:10 PM   #1
brokenflea
Member
 
Registered: Nov 2003
Distribution: Slackware 11.0, FreeBSD
Posts: 284

Rep: Reputation: 30
Recompiling Kernel


I'm running kernel v 2.4.22 and i just downloaded a patch for v 2.4.23 .... i know this is gonna sound stupid and i'm really new to linux , but how do i recompile my kernel with this new patch.
thanks for the help!
 
Old 12-09-2003, 08:18 PM   #2
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
The below should work if you already have the 2.4.22 sources installed in /usr/src.

NOTE: if patch gives errors then you probably don't have a clean 2.4.22 source and you should just download 2.4.23.

WARNING Not checked for typos or errors.

mv patch-2.4.23.bz2 /usr/src
cd /usr/src
bzip2 -dc patch-2.4.23.bz2 | patch -p0
rm -f linux
mv linux-2.4.22 linux-2.4.23
ln -s linux-2.4.23 linux
cd linux
make mrproper
cp /boot/config-ide-2.4.22 .config #Your /boot/config may be different
make oldconfig
make dep
make bzImage
make modules
make modules_install
cat arch/i386/boot/bzImage >/boot/vmlinuz-2.4.23
cp .config /boot/config-ide-2.4.23
cp System.map /boot/System.map-2.4.23
cd /boot
mkinitrd initrd-2.4.23.img 2.4.23 #May not be necessary

Edit /etc/lilo.conf and add this:

image=/boot/vmlinuz-2.4.23
label="2.4.23"
initrd=/boot/initrd-2.4.23.img #May not be necessary
append=" your standard append"
root="your root partition"
read-only

Save lilo.conf
lilo
reboot
 
Old 12-09-2003, 08:20 PM   #3
brokenflea
Member
 
Registered: Nov 2003
Distribution: Slackware 11.0, FreeBSD
Posts: 284

Original Poster
Rep: Reputation: 30
thanks so much for your help
 
Old 12-11-2003, 07:43 PM   #4
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
You're welcome. HTH.
 
  


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
recompiling kernel DaveyB Linux - Newbie 3 08-10-2004 09:45 AM
can i compile just one kernel module whithout recompiling the whole kernel? edman007 Linux - Software 3 02-17-2004 03:05 PM
What does recompiling the kernel do? direwolf20 Linux - Newbie 2 10-08-2003 12:06 AM
What use does recompiling the kernel have? twinkers Debian 8 10-06-2003 10:46 AM
recompiling kernel slacknewbie Linux - General 3 05-08-2002 10:24 AM

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

All times are GMT -5. The time now is 01:28 AM.

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