LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-19-2003, 12:30 PM   #1
PrimaryDataLoop
Member
 
Registered: May 2003
Distribution: RedHat.
Posts: 41

Rep: Reputation: 15
Slackware 9.0 Kernel Source and Compile


Hello, my distro of slackware (version 9.0) does not have the kernel source package installed, I have downloaded the source from kernel.org to the 2.4-20 kernel that I use. Although I should be able to recompile the kernel on my own the reason I cant do it and the reason some other things wont install is that it needs the kernel source installed. ( most likeley in /usr/src/linux ) yet how to get the source in there? What stuff from the source package at kernel.org to I put/install in there?

I tired right now So hopefully my question makes sense. thanks,
 
Old 05-19-2003, 01:24 PM   #2
Half_Elf
Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 45
you probably downloaded the PATCH. Get the real complete source, untar it in /usr/src (tar -xzf linux-2.4.20.tar.gz) then create a symlink named linux in this directory (ln -s /usr/src/linux-2.4.20 linux).
Then enter this directory and recompile it...
If you don't know how to do, serach this forum, this have been asked at least 3 million times.
 
Old 05-19-2003, 02:11 PM   #3
DaOne
Member
 
Registered: Jan 2003
Location: USA
Distribution: Slackware
Posts: 498

Rep: Reputation: 30
I have always preferred downloading and installing the pre-patched kernel from a slackware ftp mirror.

So get
THIS

and cd to the directory where you saved it to, then do installpkg kernel-source-2.4.20-noarch-5.tgz. You'll then have the source installed to the proper location.
 
Old 05-19-2003, 05:07 PM   #4
PrimaryDataLoop
Member
 
Registered: May 2003
Distribution: RedHat.
Posts: 41

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by DaOne
I have always preferred downloading and installing the pre-patched kernel from a slackware ftp mirror.

So get
THIS

and cd to the directory where you saved it to, then do installpkg kernel-source-2.4.20-noarch-5.tgz. You'll then have the source installed to the proper location.


This one looks about right.

Yet during all this 'research' compiling my kernel looks fun AND productive (WAY-HEY)

Using that source and on THIS slackware system Could you recommend/link me to a good howto on compiling my kernel? Preferably one that words with xconfig. (id imagine most of them do)

Thanks again. God this website rules.
 
Old 05-19-2003, 07:13 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,986
Blog Entries: 11

Rep: Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880
The Linux-Documentation-Project
is always a good starting point ...

This is what you REALLY want :)
http://www.tldp.org/HOWTO/Kernel-HOWTO/index.html

Not sure about the xconfig part, but I believe that
this is still the most concise document on Kernels ;)

Cheers,
Tink
 
Old 05-19-2003, 08:39 PM   #6
contrasutra
Guru
 
Registered: Mar 2003
Location: New Jersey
Distribution: Arch Linux
Posts: 1,445

Rep: Reputation: 46
Why not use the one on this forum, its never done me wrong.
 
Old 05-19-2003, 08:41 PM   #7
DaOne
Member
 
Registered: Jan 2003
Location: USA
Distribution: Slackware
Posts: 498

Rep: Reputation: 30
Now...at the top of this forum is a good how to...lots of Q&A also. It pertains strictly to Slackware, and is a good guide for beginners and experienced alike. If you prefer xconfig, just substitute that wherever it states menuconfig.

On another note, Tinkster gave a good link which will shed some light on the kernel and compiling.
 
Old 05-19-2003, 09:32 PM   #8
PrimaryDataLoop
Member
 
Registered: May 2003
Distribution: RedHat.
Posts: 41

Original Poster
Rep: Reputation: 15
Goodie, I had tried out the kernel howto already but I doubt I had the correct source inside ( now I do) and since I accidentally printed it out 5 times Ill try it first. THanks.
 
  


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
compile a kernel from source??? vbtalent Fedora 5 11-22-2005 03:29 PM
Kernel-source, alsa-driver and kernel compile jasone Linux - General 13 05-26-2005 12:15 AM
What is the exact way to compile 2.6.7 kernel source on Slack 10? sennasan Slackware 2 06-28-2004 11:58 PM
Compile kernel source andy18 Linux - Newbie 4 02-14-2004 08:47 AM
Can't compile source code in Slackware 9.0 kernel 2.4.20) GrandTheft Slackware 2 04-29-2003 10:52 AM


All times are GMT -5. The time now is 10:54 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration