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 07-02-2003, 03:24 AM   #1
mipia
Member
 
Registered: May 2003
Location: lake michigan
Distribution: Debian, Mint, Slackware
Posts: 457

Rep: Reputation: 35
kernel compile for newbie directory problem


I started to follow along with that kernel compile tutorial at the top of the slackware forum and ran into a problem
I got as far as cd /usr/src/linux.....no such file or directory.
for some reason it is showing a /RPM directory instead of /linux. Don't know what to do next........?

If it helps I have 2 seperate partitions

1) hda7 "/"
2) hda8 "/home"

and Im running slackware 9/win2k dual boot
 
Old 07-02-2003, 04:16 AM   #2
nvn
Member
 
Registered: Apr 2003
Location: Sweden
Distribution: Slackware
Posts: 242

Rep: Reputation: 30
You could search the forum. Anyway, what you need to do is to install the kernel source. It's available from slackware ftp sites - you'd better get the .tgz with patches applied, to save time (compared to getting the plain vanilla and patching it yourself). Slackware 9 uses 2.4.20 by default, but the 2.4.21 kernel has recently been released so you might want to use that one instead. Check out http://www.slackware.com/security/vi...ecurity.522012
 
Old 07-02-2003, 04:30 AM   #3
mipia
Member
 
Registered: May 2003
Location: lake michigan
Distribution: Debian, Mint, Slackware
Posts: 457

Original Poster
Rep: Reputation: 35
hey thanks for replying, yea, search the forums for this....that would be fun.
But yea, I'm downloading right now. Thanks.
i was curious about how to find out about updates. Maybe I should subscribe to that little newsletter they have...
 
Old 07-02-2003, 06:36 PM   #4
mipia
Member
 
Registered: May 2003
Location: lake michigan
Distribution: Debian, Mint, Slackware
Posts: 457

Original Poster
Rep: Reputation: 35
well, I updatepkg'ed the kernel and modules.
I still dont have a /linux directory, just that /rpm directory.

Also I cant connect to the internet. (I found info from the slackbook on this issue, just cand find the netmods.tgz anywhere).

Any more suggestons, or should i jsut do a reinstall?
 
Old 07-02-2003, 07:09 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,978
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
You didn't want to upgrade your kernel,
mate, you want the kernel sources :} ...

ftp://ftp.slackware.com/pub/slackwar...0-noarch-5.tgz

Cheers,
Tink
 
Old 07-02-2003, 08:20 PM   #6
mipia
Member
 
Registered: May 2003
Location: lake michigan
Distribution: Debian, Mint, Slackware
Posts: 457

Original Poster
Rep: Reputation: 35
Hey Tink good to see you again.

Thanks for the tip!! LOL

This is what i hate about having dual boot...having to reboot to look up iformation on how to fix this.

i need another computer
 
Old 07-02-2003, 09:18 PM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,978
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
Pleasure, mate, and a real geek
can't have enough computers ;)

Cheers,
Tink
 
Old 07-02-2003, 10:50 PM   #8
mipia
Member
 
Registered: May 2003
Location: lake michigan
Distribution: Debian, Mint, Slackware
Posts: 457

Original Poster
Rep: Reputation: 35
alright, well I'm back online again with the default slack 9 kernel and I'm downloading the source right now. Im guessing this will all come together now.

Thanks again for the help.
 
Old 07-03-2003, 06:07 AM   #9
elliore
LQ Newbie
 
Registered: Jun 2003
Distribution: Slackware
Posts: 17

Rep: Reputation: 0
erm a question pls...

is the kernel compiled for 486 architectures?
and the precompiled kernel on the slackware cds is also compiled for 486?

thx
 
Old 07-03-2003, 06:51 AM   #10
nvn
Member
 
Registered: Apr 2003
Location: Sweden
Distribution: Slackware
Posts: 242

Rep: Reputation: 30
Hmm?

You get me a bit confused here. First you ask if the kernel is compiled for 486 architectures...and then you ask about the precompiled kernel(s) on the Slackware CD. Well, the precompiled kernels on the Slack 9 CD's are afaik compiled for i386 (though that'll change with Slack 9.1). Now, since you talk about kernels and precompiled kernels I assume that you in the former case refer to the kernel source...which, of course, isn't compiled at all...?

Or maybe I just totally misunderstood you.
 
Old 07-03-2003, 03:01 PM   #11
mipia
Member
 
Registered: May 2003
Location: lake michigan
Distribution: Debian, Mint, Slackware
Posts: 457

Original Poster
Rep: Reputation: 35
well, I got the source from kernel.org, followed the tutorial givin at the top on the slackware forum and everything seemed to go fine until rebooting. Under LILO I only have the options to boot from Windows or linux.old, nothing about the new kernel.

Strange.....
 
Old 07-03-2003, 07:03 PM   #12
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Milwaukee, WI
Distribution: Mint
Posts: 6,642

Rep: Reputation: 69
Did you run lilo after editing the lilo.conf file? If you don't , the new kernel won't appear on the lilo menu. This is an easy thing to overlook (I've done it several times) but based on your description, I'd bet it's the cause of that problem. -- J.W.
 
Old 07-03-2003, 07:04 PM   #13
elliore
LQ Newbie
 
Registered: Jun 2003
Distribution: Slackware
Posts: 17

Rep: Reputation: 0
ah, sorry, now only i notice how poor my question was...

i mean those precompiled kernel comes with standard slackware 9.0 cd and the newest precompiled 2.4.21 kernel packages on slack ftp( in /patch/packages/ ) that we can use to update our system directly....

are they both use i386 configuration only?

if so, then is there a different if i compile my own the kernel to use the pentium 4 option?
will it be faster? or their performance are just identical....

(y they never bundle with a kernel compiled for i686?)
thx

Last edited by elliore; 07-03-2003 at 07:06 PM.
 
Old 07-04-2003, 02:30 AM   #14
mipia
Member
 
Registered: May 2003
Location: lake michigan
Distribution: Debian, Mint, Slackware
Posts: 457

Original Poster
Rep: Reputation: 35
Quote:
Originally posted by J.W.
Did you run lilo after editing the lilo.conf file? If you don't , the new kernel won't appear on the lilo menu. This is an easy thing to overlook (I've done it several times) but based on your description, I'd bet it's the cause of that problem. -- J.W.
You where absolutely correct on that one. Problem is now that my hard drive crapped out since last I was in here. Had to do it all over again. New install n everything. Oh well. At least its working now.
 
  


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
newbie Kernel compile problem begining Linux - Newbie 11 08-05-2005 02:12 AM
Compile Mandrake linux kernel in home directory? Klas Mandriva 1 02-07-2005 02:01 PM
compile kernel help for newbie gazza Linux - Software 0 07-07-2004 06:37 PM
Newbie kernel compile problem seanro Slackware 5 02-06-2004 11:04 AM
newbie wants to compile new kernel taoweijia Linux - Newbie 2 01-30-2004 12:37 PM


All times are GMT -5. The time now is 03:17 AM.

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