RE: [SLUG] kernel build environment questions

From: Mason Mullins (mason_mullins@hotmail.com)
Date: Thu Feb 08 2007 - 19:14:06 EST


----Original Message Follows----
From: "Bill Glidden" <bill@thegliddenfamily.com>
Reply-To: slug@nks.net
To: <slug@nks.net>
Subject: [SLUG] kernel build environment questions
Date: Thu, 08 Feb 2007 19:02:39 -0500

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

/usr/src/linux is a link to the /usr/src/<kernel version> directory

If installing the source didn't create the link, just create it yourself.

_________________________________________________________________
Search for grocery stores. Find gratitude. Turn a simple search into
something more.
http://click4thecause.live.com/search/charity/default.aspx?source=hmemtagline_gratitude&FORM=WLMTAG

-----------------------------------------------------------------------
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:24:14 EDT