OpenWrt Forum Archive

Topic: usb-serial

The content of this topic has been archived on 28 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I would like to have 2 different modems attached as serial devices so I can change them without editing the file:

/etc/modules/60-usb-serial
usbserial vendor=0x12d1 product=0x1001 maxSize=4096
usbserial vendor=0x12d1 product=0x1003 maxSize=4096

It only recognizes the first line. What is the correct way to write this?

Regards

I think you need to patch the usbserial.c module directly to include your devices

I don't have any file with that name on my build folder...

the usbserial is a kernel module. So you need to write a patch for it and put in target/linux/brcm-2.4/patches.

Regards

But I have to find the file somewhere first, to know what/where to patch..
That's what I don't know..

Thanks

the usbserial.c is in your kernel tarball, in the following subdir: drivers/usb/serial

Regards

isn't there a way to do this with hotplug2?

The discussion might have continued from here.