On Tue, Mar 31, 2015 at 12:27:50PM +0800, Woody Wu wrote:
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!
https://wiki.gentoo.org/wiki/Mdev#Notes "mdev unlike udev does not support auto-modules loading thus you will need to use /etc/conf.d/modules(depends on your distro) and put there all the modules like you used to load." -- Adam Lee http://adam8157.info