LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-25-2003, 03:03 AM   #1
box_l
Member
 
Registered: Jul 2003
Location: Hereford,England
Distribution: mandrake 10 , Novell Desktop Linux (suse) , knoppix
Posts: 85

Rep: Reputation: 15
Question mandrake kernel location?


i am using mandrake 9.1 staight from the download disks.
when i try to compile a driver (broadcom 5700) i am told that my kernel tree does not exist.
when i go to the control centre to the kernel configurator there is no kernel to be seen.
where is the kernel??
 
Old 07-25-2003, 03:36 AM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
Normally in /usr/src/linux-version
However if you didn't install the kernel sources and headers from the install disc it won't be there. You can do that afterwards, simply fire up a terminal and type:
urpmi kernel
And see what pops up. You'll wanna install the kernel sources for the kernel version that is shown when you type:
uname -r

Welcome to LQ

Cool
 
Old 07-25-2003, 04:22 AM   #3
box_l
Member
 
Registered: Jul 2003
Location: Hereford,England
Distribution: mandrake 10 , Novell Desktop Linux (suse) , knoppix
Posts: 85

Original Poster
Rep: Reputation: 15
urpmi gives command not found.
uname -r gives 2.4.21-0.13mdk.
have tried to install the appropriate rpm but am told everything is already installed.
i think this is the latest version avaliable.
any more ideas?
 
Old 07-25-2003, 05:13 AM   #4
mrhyde
Member
 
Registered: Jul 2003
Location: Europe
Posts: 198

Rep: Reputation: 30
As root cd to /usr/src, download the kernel you want from ftp.kernel.org, let's say the file name is linux-2.4.21.tar.gz, issue this command "tar zxvf linux-2.4.21.tar.gz" this will unpack the kernel to /usr/src/linux. Move the directory to /usr/src/linux-version ( use the command "mv /usr/src/linux /usr/src/linux-2.4.21" ) create a symbolic link by using this command "ln -s /usr/src/linux-2.4.21 /usr/src/linux" cd to linux, run your configuration command "make config" and include the required module.

Last edited by mrhyde; 07-25-2003 at 05:18 AM.
 
Old 07-25-2003, 05:15 AM   #5
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
Quote:
Originally posted by box_l
urpmi gives command not found.
uname -r gives 2.4.21-0.13mdk.
have tried to install the appropriate rpm but am told everything is already installed.
i think this is the latest version avaliable.
any more ideas?
urpmi must be used as root, and hopefully you installed draktools as they are very handy

Cool
 
Old 07-25-2003, 05:30 AM   #6
box_l
Member
 
Registered: Jul 2003
Location: Hereford,England
Distribution: mandrake 10 , Novell Desktop Linux (suse) , knoppix
Posts: 85

Original Poster
Rep: Reputation: 15
to masterc
ok as root
still sez everthing already installed

mr hyde

am downloading kernel now will try inna bit
 
Old 07-25-2003, 06:05 AM   #7
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
Good deal

You can verify that it is indeed installed simply by looking in /usr/src and see if your sources are there

Cool
 
Old 07-25-2003, 06:26 AM   #8
box_l
Member
 
Registered: Jul 2003
Location: Hereford,England
Distribution: mandrake 10 , Novell Desktop Linux (suse) , knoppix
Posts: 85

Original Poster
Rep: Reputation: 15
masterc
that was the first place i looked the other day.
its still not there.

am now following mr hydes instructions
do i have to answre all the questions when i have typed make config?? there seem to be thousands!
 
Old 07-25-2003, 06:31 AM   #9
mrhyde
Member
 
Registered: Jul 2003
Location: Europe
Posts: 198

Rep: Reputation: 30
Yes you do. However there is a GUI kernel editor, press "control c" and you will exit " make config " use the command " make xconfig " this should present you with a GUI, if there are any errors tell me what they are and I'll tell you what packages you'll need to install.
 
Old 07-25-2003, 06:50 AM   #10
box_l
Member
 
Registered: Jul 2003
Location: Hereford,England
Distribution: mandrake 10 , Novell Desktop Linux (suse) , knoppix
Posts: 85

Original Poster
Rep: Reputation: 15
aha!
Thx for that!

hmm.... i wonder does anyone have a configuration file for a n610c compaq laptop?(wishing!!)

thank-you both
 
Old 07-25-2003, 06:59 AM   #11
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
To install the current kernel sources? He could just as easily force an RPM install from his install CD, there is no need for him to be going through a kernel compile at this point? I say walk then run, unless of course I'm missing something here???

Open up your install CD in a konqueror window. Browse the RPM's and locate your RPM for your kernel source, it will be named something like:
kernel-source-2.4.20-16.1.i586.rpm
Once you find it (it should be on your second or 3rd CD) install that. If it gives you an error about being installed use:
rpm -ivh --force kernel-source-2.4.20-16.1.i586.rpm (not the exact name, but attempt to show you what it looks like)

After you get that installed, give your application a try and see if it works on getting it installed. Also, after getting that installed, check your /usr/src to see if that directory is now present.

Cool

Last edited by MasterC; 07-25-2003 at 07:02 AM.
 
Old 07-25-2003, 07:20 AM   #12
box_l
Member
 
Registered: Jul 2003
Location: Hereford,England
Distribution: mandrake 10 , Novell Desktop Linux (suse) , knoppix
Posts: 85

Original Poster
Rep: Reputation: 15
that worked too
 
Old 07-25-2003, 07:37 AM   #13
box_l
Member
 
Registered: Jul 2003
Location: Hereford,England
Distribution: mandrake 10 , Novell Desktop Linux (suse) , knoppix
Posts: 85

Original Poster
Rep: Reputation: 15
rebooted
now i get a text login
and x will not start
<path> cannot create temp file for here document: no space left on device
 
Old 07-25-2003, 07:55 AM   #14
mrhyde
Member
 
Registered: Jul 2003
Location: Europe
Posts: 198

Rep: Reputation: 30
I think when configuring the kernel you may have left out support for your graphics card or something like that, check your hardware and reconfigure your kernel.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Location of Kernel sall Linux - Wireless Networking 2 04-10-2005 10:46 PM
location of mandrake 9.0 linux kernel source files Mariory Mandriva 3 12-20-2004 08:01 PM
kernel location phatboyz Fedora 6 11-16-2004 09:55 AM
mandrake 9.1 kernel location Strider99 Linux - Newbie 1 11-30-2003 02:55 PM
Kernel Source Location in Mandrake 9.1? Ken Ju-On Linux - Newbie 11 08-13-2003 07:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:49 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