문제

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?

도움이 되었습니까?

해결책

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

다른 팁

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top