Driver for Acecad "Acecat Flair" (serial and USB models) 302 (USB) and A-Series serial models Version 3.1 ************************************* Introduction: * ************************************* This file explain you how to build driver and how to configure your system in case of Serial or USB acecat flair or A-Series tablet. Xfree code should now be integrated acecad driver. Xfree CVS at 28/02/03 include version 2.0 (without A-series support). ************************************* How to build from sources : * ************************************* PREPARE YOUR ENVIRONEMENT ------------------------ - Unpack acecad_3.1.tgz with $ tar xvfz acecad_3.1.tgz $ cd acecad_3.1 XFREE DRIVER MODULE --------------------- If you have already built X from an Xfree tree which is still present on your system, go to step 6. If not, start from step 1. 1) Download Xfree 4.x source (exemple for 4.1.0, make sure to download the same version yo are running) $ ncftpget ftp://ftp.xfree86.org/pub/XFree86/4.1.0/source/X410src-1.tgz 2) and unpack them in the directory. $ tar xvfz X410src-1.tgz 3) Replace content of acecad driver in Xfree tree by content of xfree_driver $ rm -rf xc/programs/Xserver/hw/xfree86/input/acecad/* $ cp acecad_src/* [your_dir]/xc/programs/Xserver/hw/xfree86/input/acecad 4) Optionally, edit xc/config/cf/host.def and add "acecad" in the #define XInputDrivers directive. This will make step 6 unnecessary 5) Build Xfree (this should be very long (1-2 hours) and finish without any errors) $ cd xc $ make World TIP : If you don't have time for that long build and you just want the driver to be build, edit Xfree top makefile and comment this line in World rules (you will have to follow step 6): # $(MAKE_CMD) $(MFLAGS) $(WORLDOPTS) World 6) If you have not followed instructions in step 4, or you have already built X from an Xfree tree still present on your system, build Acecad Driver: $ cd programs/Xserver/hw/xfree86/input/acecad $ xmkmf ../../../../../../ $ make Note: xmkmf will build the Makefile from Imakefile. A Makefile is already included; depending on your configuration, however, the generated Makefile might be different from the included Makefile 7) Copy the driver in your Xfree input driver modules directory (as root !!) $ su $ cp acecad_drv.o /usr/X11R6/lib/modules/input/ KERNEL DRIVER MODULE -------------------- This is needed only if you have the USB interface. Without patching the kernel --------------------------- WARNING: building driver module with this method doesn't modify hid-core module, and let it take the tablet for a mouse. You will have to make sure that acecad.o is loaded before hid-core.o at startup. -Make sure that thart curently running kernel source (or headers) are installed (rpm package or tgz original source) On RPM based distro: $ rpm -qa |grep -i kernel ... kernel-source-2.4.3-20mdk ... On Debian: $ dpkg -l | grep kernel* ... ii kernel-source- 2.4.19-5 Linux kernel source for version 2.4.19 ... - Build directly in the kernel_driver directory $ cd kernel_driver $ gcc -D__KERNEL__ -I/_path_to_your_kernel_tree_/include -O2 -DMODULE -c -o acecad.o acecad.c - Copy the module in the kernel USB drivers modules directory $ cp acecad.o /lib/modules/`uname -r`/kernel/drivers/usb/ Patching the kernel ------------------- cd _path_to_my_kernel_tree_ patch -p1