Question

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?

Was it helpful?

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

OTHER TIPS

Edit the .config:

make ARCH=arm menuconfig 

Make and install modules: make modules and make modules_install

Don't forget: insmod usbserial.ko and insmod ftdi_sio.ko if you need to, and depmod -a to have them load after a power cycle.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top