Author AJR
Date  20/7/2004

Heber X10 Linux kernel driver notes.
The source for the Linux kernel driver for the Heber X10 USB board
has been updated so it will build under both 2.4 and 2.6 kernels from the
one source.
However the process of compiling a kernel module differs according to which kernel version
is being used. The final name of the module produced also differs.

Compiling under kernel version 2.4
The prodcedure to compile a 2.4 compatible module has not changed run the makefile provided note
if the targeted kernel is not the same as the host kernel than the uname -r command will need to 
change so the correct kernel sources are selected.


Compiling under kernel version 2.6
For a good introduction to the changes needed to port modules to the 2.6 kernel see. 
http://lwn.net/Articles/21823/

The compile process is slightly different. Rather than providing a full makefile the kernel
makefile for the required target kernel is used instead. This does mean a full configured set of 
kernel sources are needed to make the driver. The 2.6 makefile called Makefile (the case does matter)
is called via the kernel makefile.
So to build the driver issue the command from the driver directory.
make -C /usr/src/linux SUBDIRS=`pwd` modules
If your target kernel source isn't in /usr/src/linux then that path may need changing.


Changes for 2.6
Under version 2.6 kernels modules now have a new extension so the final module is called X10.ko
any call to insmod will need to change to reflect this so the X10init script will need changing.

