LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-08-2003, 07:35 PM   #1
tricky_linux
Member
 
Registered: Jul 2003
Distribution: Red Hat Linux 9.0; Old and Solid
Posts: 674

Rep: Reputation: 30
Patching kernel 2.4.22


I had just download the latest stable version of linux kernel from www.kernel.org.
After i extract the .bz2 file. Then i had compress it to .gz.
Then i did "zcat patch.gz | patch -s -p0"
it shows
The text leading up to this was:
--------------------------
|patch-2.4.220100600000000000000000016773131307741107605011347 0ustar rootrootd
iff -urN linux-2.4.21/CREDITS linux-2.4.22/CREDITS
|--- linux-2.4.21/CREDITS 2003-06-13 07:51:29.000000000 -0700
|+++ linux-2.4.22/CREDITS 2003-08-25 04:44:39.000000000 -0700
--------------------------
File to patch:

what should i type or what should i put next to "File to patch:"
I had tried either linux-2.4.21/CREDITS or linux-2.4.22/CREDITS. But it shows
"linux-2.4.21/CREDITS: No such file or directory"
What's the problem here. I am using Red Hat Linux 9.0 with kernel 2.4.20-8 & source was installed from my installation cd.
 
Old 10-09-2003, 12:15 AM   #2
retep
Member
 
Registered: Sep 2003
Distribution: RedHat/Debian
Posts: 50

Rep: Reputation: 15
Why did you compress it to a .gz?

Usually you'd do something like this:

Code:
cd /usr/src
export LINUX_VERSION=linux-2.4.22
#Download kernel
wget "http://www.kernel.org/pub/linux/kernel/v2.4/$LINUX_VERSION.tar.bz2" 
bzcat $LINUX_VERSION.tar.bz2 | tar xv
cd /usr/src/$LINUX_VERSION
zcat ../patch.gz | patch -p1 --dry-run > patchlog.txt
(The --dry-run just to make sure everything is ok. then repeat without it).
 
Old 10-10-2003, 07:43 PM   #3
tricky_linux
Member
 
Registered: Jul 2003
Distribution: Red Hat Linux 9.0; Old and Solid
Posts: 674

Original Poster
Rep: Reputation: 30
download i had download 2.4.22's full source and i had successful install it which had shows up in grub at start up.
but the thing was i wasn't able to boot my system all the way up.
it says something like

[u] VFS: Cannot open root device "LABEL=/" or 00:00
Please append a correct "root=" boot option
Kernel panic :VFS: Unable to mount root fs on 00:00

and here is my grub.conf

default=2
timeout=10
splashimage=(hd0,6)/grub/splash.xpm.gz
title Red Hat Linux (2.4.22)
root (hd0,6)
kernel /vmlinuz-2.4.22 ro root=LABEL=/ hdc=ide-scsi
initrd /initrd-2.4.22.img
title Red Hat Linux-up (2.4.20-8)
root (hd0,6)
kernel /vmlinuz-2.4.20-8 ro root=LABEL=/ hdc=ide-scsi
initrd /initrd-2.4.20-8.img
title Window XP Professional
rootnoverify (hd0,0)
chainloader +1

and ideas?
 
Old 10-10-2003, 09:45 PM   #4
schaez
LQ Newbie
 
Registered: Aug 2003
Location: Baton Rouge, LA
Posts: 17

Rep: Reputation: 0
Here's one of my entry's. hda1 is my /boot partition and hda5 is my / partition.

title Mandrake-2.6.0-test7
root (hd0,0)
kernel /bzImage-2.6.0-test7 root=/dev/hda5 ro hdc=ide-scsi hdd=ide-scsi

I'm not familiar w/ your root=LABEL=/ convention. You may want to start there.
 
Old 10-11-2003, 08:57 PM   #5
tricky_linux
Member
 
Registered: Jul 2003
Distribution: Red Hat Linux 9.0; Old and Solid
Posts: 674

Original Poster
Rep: Reputation: 30
but how did you installed the new kernel.
did u do "make install" to get the intro on either grub.conf or lilo.conf?
 
Old 10-11-2003, 11:29 PM   #6
schaez
LQ Newbie
 
Registered: Aug 2003
Location: Baton Rouge, LA
Posts: 17

Rep: Reputation: 0
I followed the how-to on kerneltrap.org for compiling the kernel. Then edited my menu.lst for grub for the my Mandrake kernel and I used "update-grub" in Debian. Grub is installed through Debian on my system.
 
Old 10-11-2003, 11:52 PM   #7
lupin_the_3rd
Member
 
Registered: Oct 2003
Location: Memphis, TN
Distribution: Slackware current
Posts: 485

Rep: Reputation: 30
point your grub.conf to your root partition:

title Red Hat Linux (2.4.22)
root (hd0,6)
kernel /vmlinuz-2.4.22 ro root=/dev/hda6 hdc=ide-scsi
initrd /initrd-2.4.22.img

mine is /dev/hda6 yours may differ but it will work
 
Old 10-25-2003, 04:30 PM   #8
tricky_linux
Member
 
Registered: Jul 2003
Distribution: Red Hat Linux 9.0; Old and Solid
Posts: 674

Original Poster
Rep: Reputation: 30
only something though!!!
Not if you are lucky enough!!!
 
  


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
Kernel patching.. new.thing Linux - Hardware 3 07-13-2005 07:36 AM
Patching a 2.6 kernel with a 2.4 kernel keyboard driver..possible? dxx Linux - Laptop and Netbook 3 11-18-2004 05:18 AM
Patching the kernel grazie Fedora 4 11-09-2004 04:29 PM
Patching the Kernel LinuxBlackBox Linux - Software 2 06-16-2004 07:54 AM
Kernel Patching? wr3ck3d Linux - General 4 04-13-2003 04:17 PM


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