which major/minor device numbers?

Greetings,

I want to hook up a simple serial device to the master USB port; I read that openwrt doesn't dynamically create an interface in /dev, so I want to mknod c ttyUSBx but what are the and device numbers supposed to be?

In /dev//bus/usb/001 I find this:

crw-r--r-- 1 root root 189, 0 Feb 25 14:07 001
crw-r--r-- 1 root root 189, 1 Feb 25 14:07 002
crw-r--r-- 1 root root 189, 2 Feb 25 14:07 003

... so I guess that the device number is supposed to be 189, but the moment I connect my simple serial device a new entry is created in the directory mentioned above.

I have the following USB modules installed:

kmod-usb-acm - 3.8.3-1
kmod-usb-core - 3.8.3-1
kmod-usb-storage - 3.8.3-1
kmod-usb2 - 3.8.3-1
libusb-1.0 - 1.0.9-1
libusb-compat - 0.1.4-1
usbutils - 006-1

So, basically, my question is: what are the and device numbers supposed to be? (and does the name of the interface really matter?)

kind regards,

Jos

bump, anyone? fyi: there are no /dev/ttyACM0 or /dev/ttyUSB0 nodes on my machine and I don't know how to create them (manually?) All I want is to make the OpenWRT box talk to a serial device (no AtMega is involved here) ...

kind regards,

Jos

Openwrt/Linino use hotplug2 auto to create them. You need load correct driver.

lsusb
Bus 001 Device 002: ID 058f:6254 Alcor Micro Corp. USB Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 2341:0001 Arduino SA Uno (CDC ACM)
Bus 001 Device 004: ID 058f:6366 Alcor Micro Corp. Multi Flash Reader
lsusb -d 2341:0001 -v

find out more info, now we know it is ACM.

opkg update
opkg install kmod-usb-acm

common USB-to-Serial driver:

kmod-usb-acm - 3.8.3-1 - Kernel support for USB ACM devices (modems/isdn controllers)
kmod-usb-serial-cp210x - 3.8.3-1 - Kernel support for Silicon Labs cp210x USB-to-Serial converters
kmod-usb-serial-ftdi - 3.8.3-1 - Kernel support for FTDI USB-to-Serial converters
kmod-usb-serial-pl2303 - 3.8.3-1 - Kernel support for Prolific PL2303 USB-to-Serial converters

http://forum.arduino.cc/index.php?topic=193540.msg1533530#msg1533530

Thanks a bunch! It was the last line that did it! I have Prolific PL2303 usb-TTL serial converter but I had only the kmod-usb-serial module installed (I thought that was enough but I also had to install the kmod-usb-serial-pl2303 module); now a /dev/ttyUSB0 device interface is created when I plug my serial device in the OpenWRT (Linino) thingy; Phew, that took me more than a week; thanks again!

kind regards,

Jos