Compile FTDI kernel module

user3215598 picture user3215598 · Jan 20, 2014 · Viewed 10.1k times · Source

I'm trying to add the usb to serial port driver to my arch linux arm device, and I noticed that the kernel source tree already includes the source files for the FTDI driver, located in:

drivers/usb/serial, there exists the ftdi_sio.c and ftdi_sio.h files.

When I navigate to kernel/drivers, I cannot find the ftdi_sio.ko module anywhere.

How do I build the ftdi kernel module and include it to boot so I can have usb to serial port capability on my arch linux arm?

Answer

Mali picture Mali · Jan 21, 2014

I suppose you have the kernel source tree (from your distro package manager) on your arm device and you don't cross-compile :

make menuconfig

Navigate to : Device Drivers -> USB Support -> USB Serial Converter Support

And choose 'M'odule for USB FTDI Single Port Serial Driver

Exit, save changes and

make M=drivers/usb/serial/
make modules_install