LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   /usr/source/ missing source tree (https://www.linuxquestions.org/questions/linux-newbie-8/usr-source-missing-source-tree-74179/)

swingert 07-19-2003 06:49 PM

/usr/source/ missing source tree
 
We are trying to get the NIC drivers on a Dell D800 (BCM570x) to work, but we first (apparently) need to rebuild the kernel with the correct drivers. BUT, we don't have the /usr/src/linux directory (we're using Mandrake 9.0). We only have /usr/src/RPM (the only thing listed in /usr/src).

We *do* have the kernel downloaded but our question is:
How do we create (populate) the /usr/src/linux folder (via symlink or not) when all we have is the kernel-2.4.19.16mdk-1-1mdk.i586.rpm?

Thanks!

Sean

DrOzz 07-19-2003 07:07 PM

you need to download the source, or get it off your distros cds..

Dark_Helmet 07-19-2003 08:48 PM

Get to the source directory:
cd /usr/src

If your source tarball ends in ".tar.gz" or ".tgz":
tar xvzf /path/to/kernel/source.tar.gz

If your source tarball ends in ".bz2":
tar xvjf /path/to/kernel/source.bz2

Of course, replace /path/to/kernel/source.* with the real path on your system

When the tarball unpacks, you'll see it creates a new directory, probably linux-2.4.20. You can symlink it to make /usr/src/linux point to the same directory with:
ln -s linux-2.4.20 linux

If your kernel source is in RPM format, then you'll need to unpack it (man rpm) and adjust the symlink command to wherever it places the source when installed (probably the same place, but I can't guarantee that).


All times are GMT -5. The time now is 12:57 AM.