Search code examples
linuxlinux-kernelserial-portkernel-moduleftdi

Compile FTDI kernel module


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?


Solution

  • 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