LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-04-2003, 09:29 PM   #1
über-noob
LQ Newbie
 
Registered: Sep 2003
Distribution: Redhat 9 with 2.4.22 kernel
Posts: 27

Rep: Reputation: 15
Question Installing kernel source code for Redhat 9


I'm attempting to patch my Redhat 9 kernel to setup ACPI support for my Picturebook (yea, I did my first Lunix install on a Sony Picturebook, I'm a massochist.)

ls /usr/src/ only lists 'debug' so I figured I had to download and install the kernel source. I used uname to find my kernel version and processor:

$ uname -rm
2.4.20-8 i686

and downloaded and installed this rpm:

kernel-2.4.20-8.i686.rpm

by double clicking on it. It seemed to install fine but /usr/src still only had 'debug' in it! I think the rpm installed a bunch of files in /lib/modules/2.4.20-8 but I can't seem to be able to use the patch command in there? How do I get a subdirectory like /usr/src/linux-2.4.20-8
 
Old 10-04-2003, 09:33 PM   #2
nakkaya
LQ Guru
 
Registered: Jan 2003
Location: Turkey&USA
Distribution: Emacs and linux is its device driver(Slackware,redhat)
Posts: 1,398

Rep: Reputation: 45
you need to install

kernel-source not kernel
 
Old 10-04-2003, 09:54 PM   #3
über-noob
LQ Newbie
 
Registered: Sep 2003
Distribution: Redhat 9 with 2.4.22 kernel
Posts: 27

Original Poster
Rep: Reputation: 15
Thanks nakkaya, why am I having such a hard time finding

kernel-source.2.4.20-8.i686.rpm? I can't use i386, can I?
 
Old 10-04-2003, 10:11 PM   #4
nakkaya
LQ Guru
 
Registered: Jan 2003
Location: Turkey&USA
Distribution: Emacs and linux is its device driver(Slackware,redhat)
Posts: 1,398

Rep: Reputation: 45
you can use i386 the source code is a collection of text files so it realy doesnt matter if it is 686 or 386 but you can always use 386 on a 686 machines for binary files. cpu s are backward compatible so 486 can run 386 code and 686 can run 386 code
 
Old 10-04-2003, 10:38 PM   #5
über-noob
LQ Newbie
 
Registered: Sep 2003
Distribution: Redhat 9 with 2.4.22 kernel
Posts: 27

Original Poster
Rep: Reputation: 15
Thanks again. I'm trying to install kernel-source-2.4.20-8.i386.rpm from the second disk of the RedHat 9 install CDs but now I have to work through a gcc dependency...
 
Old 10-05-2003, 12:57 PM   #6
über-noob
LQ Newbie
 
Registered: Sep 2003
Distribution: Redhat 9 with 2.4.22 kernel
Posts: 27

Original Poster
Rep: Reputation: 15
Thanks nakkaya. I booted up the installer CD, installed the kernel source, gcc, tcl, and tk. I rebooted, applied the patch, recompiled the kernel and APCI works perfectly. My Picturebook is no longer a toaster oven (man would that thing get HOT!) Now I just have to figure out why my wireless PCMCIA card is totally dead (no lights). I can't remember what I had to do to get it working in the first place but I'll post another thread on that if I get stuck.
 
  


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
unpackaging Kernel source code on Redhat ES4 mgaleano Linux - Wireless Networking 0 05-25-2005 01:26 AM
Installing kernel source code? daedalusonlinux Mandriva 1 02-22-2005 10:19 PM
Installing source code of the kernel vasanthraghavan Linux - Software 2 03-23-2004 04:14 PM
Redhat 9 kernel source code local? crimsontide Linux - Software 1 11-02-2003 09:09 AM
how to compile redhat 9.0 source code. wood Linux - General 5 09-16-2003 10:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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