LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 04-11-2003, 10:49 PM   #1
Parksy
Member
 
Registered: Apr 2003
Distribution: Gentoo/Mandrake 10.0
Posts: 110

Rep: Reputation: 15
Kernel Tree in Mandrake 9.1


I am trying to install the rm-kernel module for my Radeon 8500 video card. I am following instructions from a HOWTO that comes with the Mandrake documentation. My problem occurs when I try to perform this action:
Code:
make -f Makefile.linux
I get the following error:
Code:
Error: Could not locate kernel tree in /lib/modules/2.4.21-0.13mdk/build/include /usr/src/linux-2.4.21-0.13mdk/include /usr/src/linux/include /usr/include
What is the correct location for the kernel tree in Mandrake 9.1? I have tried editing the locations in the Makefile.linux file but I really don't know what I'm looking for here.
 
Old 04-12-2003, 08:30 AM   #2
pablob
Member
 
Registered: Apr 2003
Location: Madrid
Distribution: RHEL, Kubuntu, Solaris, TRU64
Posts: 382

Rep: Reputation: 31
you must look inside /usr/src, and check if there's a directory named 'linux' or 'linux-2.4....." full of archives :-)

you must also look for a modules directory inside /lib/modules/2.4....
 
Old 04-12-2003, 09:26 AM   #3
Parksy
Member
 
Registered: Apr 2003
Distribution: Gentoo/Mandrake 10.0
Posts: 110

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by pablob
you must look inside /usr/src, and check if there's a directory named 'linux' or 'linux-2.4....." full of archives :-)
In /usr/src/ there's only a directory named 'RPM'. Is there something I have to download?

Quote:
you must also look for a modules directory inside /lib/modules/2.4....
In /lib/modules/2.4.../ there's a directory named 'kernel' and a bunch of files whose names start with 'modules.'. Is this the directory you're referring to?

Thanks for your help.
 
Old 04-12-2003, 01:33 PM   #4
pablob
Member
 
Registered: Apr 2003
Location: Madrid
Distribution: RHEL, Kubuntu, Solaris, TRU64
Posts: 382

Rep: Reputation: 31
With the info you supplied, I guess you don't have installed the kernel sources. You need them to install your module.

Look: "Your" error says:

<<...... in /usr/src/linux-2.4.21-0.13mdk/include /usr/src/linux/include /usr/include >>

That means maybe all you need are the "kernel headers" (because what goes inside /usr/src/linux/include are them.
They are a group of files ending with .h extensions.

Look within your Mandrake CD's for a package named something like kernel_headers_whatever.mdk
That should fill your /usr/include directory.

If you find it, install and try again.

If it does not work, you need all the kernel sources -->Look within your Mandrake CD's for a package named something like
kernel_sources_whatever.mdk and do the same.

Note:

/usr/src/linux must be a "soft link" to /usr/src/linux-2.4.21-0.13mdk

That means that if you install kernel headers or sources, you must issue:

cd /usr/src
ln -s linux-2.4.21-0.13mdk linux
(maybe that linking is automatically made by the kernel headers install process)

That will make a link from "linux" to "linux-2.4....." and if you cd into that new "linux" file is exactly as if you get into "linux-2.4....."

Note2:
/usr/include/linux is related with /usr/src/linux/include/linux, but maybe you still don't need to know that.

Last edited by pablob; 04-12-2003 at 01:36 PM.
 
Old 04-12-2003, 11:51 PM   #5
Parksy
Member
 
Registered: Apr 2003
Distribution: Gentoo/Mandrake 10.0
Posts: 110

Original Poster
Rep: Reputation: 15
I installed the kernel sources from the Mandrake CD and the installer took care of everything.

Thanks a lot for your help!
 
  


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
Kernel Source Tree? raxxal Fedora 1 04-07-2005 06:14 PM
kernel-tree-2.6.5 The Seeker 11 Debian 2 04-26-2004 03:33 AM
no kernel source tree?? adambeazley Linux - Wireless Networking 3 04-22-2004 06:25 PM
No kernel source tree? rhuntley12 Debian 3 04-14-2004 11:12 PM
the bible = the tree of the knowledge of good and evil () Jesus = the tree of life Michael111 General 2 04-14-2004 05:28 PM


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