How to auto-load kernel module when peripheral
Woody Wu
narkewoody at gmail.com
Tue Mar 31 00:27:50 EDT 2015
Hi,
I want my usb-serial converter can be automatically ready to use after
it plugged into an USB port. Currently I have to manually do
'modprobe ftdi_sio' before use it, otherwise, no module will be loaded
and there is no a /dev/ttyUSB0 appearing.
I am using mdev instead of udev in this embedded system, and full
pathname of mdev had already put in /proc/sys/kernel/hotplug file. I
also already added a line into my mdev.conf:
ttyUSB* root:tty 660
To make it clear, the problem is when I inserted the convert, I did
not see /dev/ttyUSB0 was created and 'lsmod' also not list the
'ftdi_sio' module. If I check the kernel message at the time of
inserting the device, I can see:
[ 43.425000] usb 1-1: new full speed USB device number 2 using s3c2416-ohci
[ 43.585000] usb 1-1: New USB device found, idVendor=0403, idProduct=6001
[ 43.585000] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 43.585000] usb 1-1: Product: FT232R USB UART
[ 43.585000] usb 1-1: Manufacturer: FTDI
[ 43.585000] usb 1-1: SerialNumber: A900aMbV
How do I do? Thanks in advance!
--
Life is the only flaw in an otherwise perfect nonexistence
-- Schopenhauer
woody
public key at http://subkeys.pgp.net:11371 (narkewoody at gmail.com)
More information about the Kernelnewbies
mailing list