[SLUG] kernel build environment questions

From: Bill Glidden (bill@thegliddenfamily.com)
Date: Thu Feb 08 2007 - 19:02:39 EST


Hello all,

 

I am trying to install a driver on my Debian sarge system, with 2.4 kernel.
The instructions say the following:

 

I. You must have a kernel mode driver build environment setup

     on your system.

 

III. For a systems usings 2.4 kernels, the kernel source is assumed

     to be present in /usr/src/linux. If the kernel source resides

     in a different location, make a corresponding change to the

     Makefile in the 'wrapper' directory.

 

So, I did an apt-get install kernel-build-2.4.27-3 which put several
directories under /usr/src:

 

pos11:/usr/src# ls

kernel-build-2.4.27-3 kernel-headers-2.4.27-3-586tsc
kernel-headers-2.4.27-3-k6

kernel-headers-2.4.27-3 kernel-headers-2.4.27-3-686
kernel-headers-2.4.27-3-k7

kernel-headers-2.4.27-3-386 kernel-headers-2.4.27-3-686-smp
kernel-headers-2.4.27-3-k7-smp

pos11:/usr/src#

 

There is a line in the makefile for the driver that reads:

INCLUDE_DIR=/usr/src/linux/drivers/usb

 

I don't have a linux directory under /usr/src. I can't find a directory
named "drivers" which contains .h files, anywhere on the system. Must I do
something else to get the build environment set up properly?

The net result is that the driver doesn't compile correctly, because I'm
assuming it's missing the include files that it needs.

Any hints or suggestions welcome! Or, put another way, does anyone want to
come to my office and figure this out for me? I don't have the time, but I
do have the money!

 

Thanks.

 

Bill

 

-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS). Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 15:23:42 EDT