I haven't tested this myself, and it will be a time-consuming process,
but you can rebuild the realtime kernel with this driver included.

0. Because you're going to overwrite the installed kernel, install a
generic kernel so you can still boot even if something goes wrong
with the new kernel you're installing
    sudo apt-get install linux-image-2.6.24-16-generic
(if you can live with rebooting between work on arduino and work on emc,
maybe it's sufficient to stop here -- the -generic kernel should have
the ftdi_sio driver available)

1. Prepare your system with packages needed to rebuild the kernel
    sudo apt-get install build-essential fakeroot
    sudo apt-get build-dep linux-image-2.6.24-16-rtai

2. Get the kernel source in a subdirectory of the current directory
    wget 
http://linuxcnc.org/hardy/dists/hardy/base/source/linux_2.6.24-16.30.linuxcnc.1.tar.gz
    wget 
http://linuxcnc.org/hardy/dists/hardy/base/source/linux_2.6.24-16.30.linuxcnc.1.dsc

3. Extract the kernel source
        dpkg-src -x linux_2.6.24-16.30.linuxcnc.1.dsc

4. Change to the linux-2.6.24 directory and apply this patch with 'patch -p0':

--- debian/binary-custom.d/rtai/config.i386.1   2008-09-20 15:24:36.000000000 
-0500
+++ debian/binary-custom.d/rtai/config.i386     2008-09-20 15:24:45.000000000 
-0500
@@ -2905,7 +2905,7 @@
 # CONFIG_USB_SERIAL_CP2101 is not set
 # CONFIG_USB_SERIAL_CYPRESS_M8 is not set
 CONFIG_USB_SERIAL_EMPEG=m
-# CONFIG_USB_SERIAL_FTDI_SIO is not set
+CONFIG_USB_SERIAL_FTDI_SIO=m
 CONFIG_USB_SERIAL_FUNSOFT=m
 CONFIG_USB_SERIAL_VISOR=m
 CONFIG_USB_SERIAL_IPAQ=m

5. Build the binary package
    NOEXTRAS=1 fakeroot debian/rules custom-binary-rtai

6. Install the package
    sudo dpkg -i ../linux-image*.deb

7. Reboot and test the new kernel (with two kernels you may need to
choose the rtai kernel at the boot menu)

8. If you're satisfied with the new kernel, you can remove the
linux-2.6.24 directory and the linux-image-2.6.24-16-generic package you
installed.

Jeff

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to