LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 12-02-2004, 03:03 PM   #1
1madstork
Member
 
Registered: Aug 2004
Location: Southaven, Mississippi, USA
Distribution: Debian Etch
Posts: 108

Rep: Reputation: 15
kernel source location on Sid


I'm trying to install linuxant driverloader but it requires a path to my kernel source to build modules. I'm not finding it in /usr/src/linux since that directory doesn't exist. I'm using Sid with a 2.6.7 kernel that I loaded off the Sarge cd.
 
Old 12-02-2004, 03:20 PM   #2
m_yates
Senior Member
 
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,249

Rep: Reputation: 101Reputation: 101
It means that the kernel sources weren't installed. If you do:
Code:
apt-get update
apt-get install kernel-source-2.6.7
It will install the kernel source as a compressed file in /usr/src/kernel-source-2.6.7.tar.bz2 You can then uncompress the source and symbolically link it to /usr/src/linux following the kernel upgrade guide posted as a sticky at the top of this forum page. Good luck!
 
Old 12-02-2004, 03:38 PM   #3
1madstork
Member
 
Registered: Aug 2004
Location: Southaven, Mississippi, USA
Distribution: Debian Etch
Posts: 108

Original Poster
Rep: Reputation: 15
Thanks for the directions. Apt-get is the best!
 
Old 12-02-2004, 04:27 PM   #4
1madstork
Member
 
Registered: Aug 2004
Location: Southaven, Mississippi, USA
Distribution: Debian Etch
Posts: 108

Original Poster
Rep: Reputation: 15
I guess I posted too soon.
It still won't work. It says that /usr/src/linux/include/linux/autoconf.h is missing. It says that a proper /boot/config-2.6.7-1-386 file was found and asks if I'd like to try using it in a temporary kernel tree. When I say yes it says that it's unable to prepare a temporary kernel tree and recomends that I ensure that the proper kernel source and compiler packages are installed.
Also, I can't use the 'make' command to install the tar package from source.
 
Old 12-02-2004, 07:57 PM   #5
m_yates
Senior Member
 
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,249

Rep: Reputation: 101Reputation: 101
Take a look at this page: http://www.desktop-linux.net/debkernel.htm and check the list of system packages needed. You may need to install make if you can't do that, or install some of the other packages listed if some are missing.
 
Old 12-02-2004, 10:32 PM   #6
audibel
Member
 
Registered: Oct 2004
Distribution: Debian Sarge
Posts: 177

Rep: Reputation: 30
I had the same problem installing my conexant driver. Because I did not originally use the source to make my kernel I had to use the autoconf.h and version.h from the kernel-headers package (this should certainly get you going)
 
Old 12-02-2004, 11:00 PM   #7
1madstork
Member
 
Registered: Aug 2004
Location: Southaven, Mississippi, USA
Distribution: Debian Etch
Posts: 108

Original Poster
Rep: Reputation: 15
Now it's saying
Quote:
Linuxant DriverLoader for Wireless LAN devices, version 2.10

No pre-built modules for: Debian-3.1 linux-2.6.9-1-386 i686

Trying to automatically build the driver modules...
(this requires a C compiler and proper kernel sources to be installed)

Where is the linux source build directory that matches your running kernel?
[/usr/src/linux]

WARNING: the kernel version (2.6.9-1) defined in
/usr/src/linux/include/linux/version.h
does not match the currently running kernel (2.6.9-1-386)
The cause of this problem is an incorrect kernel source path.
Please check that /usr/src/linux points to the right tree.
The cause of this is usually a missing or unconfigured
kernel source tree (and sometimes an incorrect directory or symbolic link).

However, proper /boot/config-2.6.9-1-386 was found.
Would you like to try using it (in a temporary kernel tree)? [yes]

Unable to prepare temporary kernel tree

First, ensure that the proper kernel source and compiler packages
from your distribution vendor and/or the community are installed.

The Linux kernel can then be reconfigured by running "make menuconfig"
under the kernel source directory (usually /usr/src/linux).

Verify that the proper options for your system are selected.

Then compile and install your new kernel (for more information about
this procedure, see the README file under the kernel source directory),
reboot the system using the new kernel, and re-run "dldrconfig".
I know it's a simple fix but I can't seem to get it. I tried editing the version.h file to say 2.6.9-1-386 but that didn't work. Any ideas?
 
Old 12-03-2004, 06:00 PM   #8
audibel
Member
 
Registered: Oct 2004
Distribution: Debian Sarge
Posts: 177

Rep: Reputation: 30
If you did not use the kernel-source to compile your own kernel then use the kernel-headers directory (if you don't have it install the kernel-headers package) as your source directory... I could have sworn I posted that before...
 
Old 12-04-2004, 08:04 AM   #9
1madstork
Member
 
Registered: Aug 2004
Location: Southaven, Mississippi, USA
Distribution: Debian Etch
Posts: 108

Original Poster
Rep: Reputation: 15
Quote:
If you did not use the kernel-source to compile your own kernel then use the kernel-headers directory (if you don't have it install the kernel-headers package) as your source directory... I could have sworn I posted that before...
Yeah, I had the 2.6.9-1 headers and I needed the 2.6.9-1-386 headers instead.
You probably did post it before. I googled and searched this forum but couldn't really find an exact answer.
Thanks for the duplicate reply.
 
  


Reply



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 Location alltime Linux - General 2 10-18-2005 12:21 AM
Location of kernel source Echo Kilo Linux - General 2 12-19-2004 06:15 PM
Fedore Kernel Source location?? PeRKoniX Linux - Newbie 6 11-02-2004 09:00 AM
location of kernel source joe_sixpack Linux - General 2 02-19-2004 03:45 AM
Location of kernel source code mhl Mandriva 2 11-30-2003 05:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 10:59 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
Open Source Consulting | Domain Registration