LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 10-01-2003, 02:19 PM   #1
xlinuxSlayer
LQ Newbie
 
Registered: Sep 2003
Posts: 18

Rep: Reputation: 0
Exclamation Kernal help


I'm having trouble compiling a new kernel. I need to make a .config file based on my current kernel. The tutorial says I have to goto /usr/src/(original kernel folder) and type make oldconfig. But when I goto that folder there is only a folder called rpm and it's almost empty.

I'm using slacklware 9.0. Is it in a different place in this version? Also after I make the .config file I have to copy it to my new kernel folder and edit it to remove some options. What do I have to run? make xconfig, or will that make a new config file. The tutorial says to copy my original .config file in order to make a stable kernel.
 
Old 10-01-2003, 02:46 PM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,791
Blog Entries: 1

Rep: Reputation: 414Reputation: 414Reputation: 414Reputation: 414Reputation: 414
Quote:
Is it in a different place in this version?
I kinda depends on how you installed Slackware. If you downloaded an ISO and installed from that, odds are you didn't install the kernel source package. If you installed from purchased disks, you MAY have installed the kernel source, in which case it should be in /usr/src.

Not to worry though, if your /usr/src is essentially empty, you can either download the kernel source Slackware package from your favorite Slackware mirror (look in the k folder), or you can get the source from kernel.org and extract it to your /usr/src directory.
 
Old 10-01-2003, 02:49 PM   #3
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,539

Rep: Reputation: 149Reputation: 149
It looks you don't have the older version kernel source installed. Install it from your installation cd first.

One more thing...it may be that your old kernel config doesn't fit the new one. It happens sometimes. In such case you need to configure it yourself.
 
Old 10-01-2003, 03:14 PM   #4
xlinuxSlayer
LQ Newbie
 
Registered: Sep 2003
Posts: 18

Original Poster
Rep: Reputation: 0
Oh great, I installed from an iso I downloaded. I guess I don't have a kernel source. If I had to install with the ibmmca.s kernel, will I have trouble compiling a new kernel? I need to have a kernel that's error free and I noticed that when I started there was an "error 2" and an "error 3" right away. I used make xconfig and selected my options. Then I ran make dep and noticed those errors. So I quit right there and started to look around for help.

If I re-install linux from the cd, is there an option to copy the source to the hard drive?
 
Old 10-01-2003, 04:46 PM   #5
xlinuxSlayer
LQ Newbie
 
Registered: Sep 2003
Posts: 18

Original Poster
Rep: Reputation: 0
OK I downloaded the ibmmca.s folder from the kernels folder from a slackware 9.0 mirror and copied it to my /usr/src/directory. It has 3 files: bzImage, config, and System.map.gz. Is this the right file? When I try to run make configold it says no rule to make target "oldconfig". Am I doing this right?
 
Old 10-01-2003, 06:40 PM   #6
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,791
Blog Entries: 1

Rep: Reputation: 414Reputation: 414Reputation: 414Reputation: 414Reputation: 414
Um, not quite.

What you probably want to do is make menuconfig (or make xconfig if you have X running). At the bottom of the menu is an option that allows you to import a config file. Use that to import the config file you extracted to /usr/src.

Just in case you don't know, the 3 files you downloaded are the results from going through a kernel compile. bzImage is the kernel, config is the configuration (this is the file you want to import).

If you haven't already, be sure to read through the sticky thread by DaOne at the top of this forum. It has truly excellent advice on compiling your own kernel.
 
Old 10-02-2003, 03:29 AM   #7
xlinuxSlayer
LQ Newbie
 
Registered: Sep 2003
Posts: 18

Original Poster
Rep: Reputation: 0
Thanks Hangdog42. I figured it out and got my kernel running properly.
 
  


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
Kernal modules on a Newly Compiled Kernal sethgeekx86 Slackware 4 05-04-2004 12:08 AM
How do you configure the kernal, overwriting the old version of the same kernal? sabaka Linux - Newbie 13 10-04-2003 11:00 AM
Help! Configuring Kernal failed, GRUB can't boot new kernal, help! sabaka Linux - Newbie 4 09-16-2003 10:12 PM
Kernal 2.4.22 newbie45 Linux - Software 4 09-08-2003 05:15 AM
kernal q linus1981 Linux - Newbie 1 03-06-2003 11:56 AM


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