Node:Compiling and loading, Next:Unloading, Previous:Quick Start, Up:Usb Driver
In order to successfully load the module you need to have the following facilities compiled in your kernel or loaded as modules:
usbcore.o
)
usb-ohci.o
o usb-uhci.o
)
To compile the driver just make
. If your 2.4 or 2.2 kernel headers
are not available from /usr/src/linux/include
then specify KERNELDIR
to point to your kernel source directory, either on the make command
line or in the environment. For example:
make KERNELDIR=/usr/src/linux-2.4
To load the driver, use insmod:
insmod ./gunzets.o
To use the input mechanism, specify it on the command line:
insmod ./gunzets.o use_input=1
To automatically create the entry point in /dev
(needed if you are not
using the input mechanism) run the gunzets_load script instead:
./gunzets_load