LinuxQuestions.org
Review your favorite Linux distribution.
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 07-19-2003, 06:49 PM   #1
swingert
LQ Newbie
 
Registered: Jul 2003
Posts: 1

Rep: Reputation: 0
/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
 
Old 07-19-2003, 07:07 PM   #2
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
you need to download the source, or get it off your distros cds..
 
Old 07-19-2003, 08:48 PM   #3
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
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).
 
  


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
how to integrate driver source into kernel source tree zhchang Linux - Software 5 11-23-2005 12:34 AM
Kernel Source Tree? raxxal Fedora 1 04-07-2005 05:14 PM
where is linux source build directory/kernel source tree? webazoid Linux - Software 2 07-01-2004 08:37 PM
No kernel source tree? rhuntley12 Debian 3 04-14-2004 10:12 PM
Source tree appler Slackware 2 06-20-2003 12:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:13 AM.

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
Open Source Consulting | Domain Registration