Oliver Neukum wrote:
I tried a handful of modules but nothing would bind to it. So I'm wondering how hard it would be to get it to bind to a port with an existing module or new module, or if I'm completely thinking in the wrong direction.

Short of changing a few device IDs in the code per peoeple here I haven't really looked into linux's usb code, but ya gotta start somewhere, right?


The cable itself is a USB device, most likely a USB<->serial converter.
You can try to bind the generic driver to it using module parameters.

Good call. This:
modprobe usbserial vendor=0x0731 product=0x0528
works well. However, there seems to be an issue when I rmmod the driver -- the rmmod segfaults, and the kernel appears to oops:


Jul 18 16:26:36 rider kernel: drivers/usb/serial/usb-serial.c: USB Serial deregistering driver Generic
Jul 18 16:26:36 rider kernel: generic ttyUSB0: Generic converter now disconnected from ttyUSB0
Jul 18 16:26:36 rider kernel: usbserial 1-2:1.0: device disconnected
Jul 18 16:26:36 rider kernel: e09ebe9d
Jul 18 16:26:36 rider kernel: PREEMPT
Jul 18 16:26:36 rider kernel: Modules linked in: usbserial sd_mod lp snd_seq_midi snd_seq_midi_event snd_seq ide_cd cdrom parport_pc parport snd_via82xx snd_ac97_codec snd_mpu401_uart snd_rawmidi snd_seq_device usb_storage scsi_mod via686a i2c_sensor i2c_isa i2c_core nvidia psmouse snd_pcm_oss snd_pcm snd_page_alloc snd_timer snd_mixer_oss snd soundcore autofs4 tulip crc32 uhci_hcd usbcore rtc
Jul 18 16:26:36 rider kernel: CPU: 0
Jul 18 16:26:36 rider kernel: EIP: 0060:[pg0+543538845/1069998080] Tainted: P
Jul 18 16:26:36 rider kernel: EFLAGS: 00010246 (2.6.7rider)
Jul 18 16:26:36 rider kernel: EIP is at usb_serial_disconnect+0x1d/0x90 [usbserial]
Jul 18 16:26:36 rider kernel: eax: 00000000 ebx: 00000010 ecx: 00000003 edx: 00000000
Jul 18 16:26:36 rider kernel: esi: 00000000 edi: 00000000 ebp: 00000000 esp: d899bf18
Jul 18 16:26:36 rider kernel: ds: 007b es: 007b ss: 0068
Jul 18 16:26:36 rider kernel: Process rmmod (pid: 2120, threadinfo=d899a000 task=dabe58d0)
Jul 18 16:26:36 rider kernel: Stack: dffc73f0 dffc73c8 00000000 d9ac63cc 00000000 e09ef880 e09ec252 00000000
Jul 18 16:26:36 rider kernel: dffc73b8 e09ed440 d899a000 e09efa60 c02e7260 e09ec2af e09ef880 e09ecf38
Jul 18 16:26:36 rider kernel: c02e7260 c012c9de e09efa60 00000880 d899bf6c 00000000 73627375 61697265
Jul 18 16:26:36 rider kernel: Call Trace:
Jul 18 16:26:36 rider kernel: [pg0+543539794/1069998080] usb_serial_deregister+0x92/0xa0 [usbserial]
Jul 18 16:26:36 rider kernel: [pg0+543539887/1069998080] usb_serial_generic_deregister+0xf/0x20 [usbserial]
Jul 18 16:26:36 rider kernel: [pg0+543543096/1069998080] usb_serial_exit+0x8/0x3c [usbserial]
Jul 18 16:26:36 rider kernel: [sys_delete_module+318/384] sys_delete_module+0x13e/0x180
Jul 18 16:26:36 rider kernel: [unmap_mapping_range+444/448] unmap_mapping_range+0x1bc/0x1c0
Jul 18 16:26:36 rider kernel: [syscall_call+7/11] syscall_call+0x7/0xb
Jul 18 16:26:36 rider kernel:
Jul 18 16:26:36 rider kernel: Code: 8b 73 74 75 4e c7 43 74 00 00 00 00 85 f6 74 0b 8d 46 38 89

I don't really plan on removing the module very often, but I thought I'd at least bring it up...

Thanks for your help.

--
Phil Dibowitz                             [EMAIL PROTECTED]
Freeware and Technical Pages              Insanity Palace of Metallica
http://www.phildev.net/                   http://www.ipom.com/

"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety."
 - Benjamin Franklin, 1759


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to