LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Kernel Tree in Mandrake 9.1 (https://www.linuxquestions.org/questions/linux-newbie-8/kernel-tree-in-mandrake-9-1-a-54653/)

Parksy 04-11-2003 09:49 PM

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.

pablob 04-12-2003 07:30 AM

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....

Parksy 04-12-2003 08:26 AM

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.

pablob 04-12-2003 12:33 PM

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.

Parksy 04-12-2003 10:51 PM

I installed the kernel sources from the Mandrake CD and the installer took care of everything.

Thanks a lot for your help!


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