[Ftdi-usb-sio-devel] Oops errors when outputting to /dev/ttyUSB?
Brought to you by:
bryder
From: jbassettCorrilan <jba...@co...> - 2009-10-05 18:34:44
|
Hello folks I have a Zalmand VFD LCD style device with id 040b:7000. I have compiled ftdi_sio as a module on Gentoo 2.6.27 kernel. "modprobe ftdi_sio vendor=0x040b product=0x7000" produces this dmesg output, it appears the device has been configured properly with the nodes: [ 128.579883] usbcore: registered new interface driver usbserial [ 128.581490] usbserial: USB Serial support registered for generic [ 128.582308] usbserial_generic 1-2:1.0: usb_probe_interface [ 128.582323] usbserial_generic 1-2:1.0: usb_probe_interface - got id [ 128.582713] usbserial_generic 1-2:1.2: usb_probe_interface [ 128.582724] usbserial_generic 1-2:1.2: usb_probe_interface - got id [ 128.583524] usbserial_generic 5-1:1.0: usb_probe_interface [ 128.583537] usbserial_generic 5-1:1.0: usb_probe_interface - got id [ 128.583929] usbserial_generic 5-1:1.1: usb_probe_interface [ 128.583940] usbserial_generic 5-1:1.1: usb_probe_interface - got id [ 128.584405] usbcore: registered new interface driver usbserial_generic [ 128.584415] usbserial: USB Serial Driver core [ 128.597107] usbserial: USB Serial support registered for FTDI USB Serial Device [ 128.597453] ftdi_sio 5-1:1.0: usb_probe_interface [ 128.597476] ftdi_sio 5-1:1.0: usb_probe_interface - got id [ 128.597920] ftdi_sio 5-1:1.0: FTDI USB Serial Device converter detected [ 128.598174] ftdi_sio: Detected FT2232C [ 128.598479] usb 5-1: FTDI USB Serial Device converter now attached to ttyUSB0 [ 128.598711] ftdi_sio 5-1:1.1: usb_probe_interface [ 128.598735] ftdi_sio 5-1:1.1: usb_probe_interface - got id [ 128.599035] ftdi_sio 5-1:1.1: FTDI USB Serial Device converter detected [ 128.599223] ftdi_sio: Detected FT2232C [ 128.599487] usb 5-1: FTDI USB Serial Device converter now attached to ttyUSB1 [ 128.599682] usbcore: registered new interface driver ftdi_sio [ 128.599694] ftdi_sio: v1.4.3:USB FTDI Serial Converters Driver Upon attempting to use the nodes at all (such as echo "Hello" > /dev/ttyUSB0 or 1) I receive the following errors in dmesg output and that particular console effectively locks up: [ 248.073129] ftdi_sio: ftdi_set_termios FAILED to set databits/stopbits/parity [ 248.074131] ftdi_sio: ftdi_set_termios urb failed to set baudrate [ 248.075130] ftdi_sio: urb failed to clear flow control [ 248.076133] ftdi_sio: update_mctrl Error from MODEM_CTRL urb: DTR HIGH, RTS HIGH [ 248.076151] BUG: unable to handle kernel NULL pointer dereference at 00000028 [ 248.076158] IP: [<f9230446>] :ftdi_sio:ftdi_open+0x144/0x191 [ 248.076191] *pde = 00000000 [ 248.076198] Oops: 0002 [#1] SMP [ 248.076213] Modules linked in: ftdi_sio usbserial i915 snd_pcm_oss snd_mixer_oss mt352 saa7134_alsa saa7134_dvb videobuf_dvb dvb_core saa7134 tuner tuner_xc2028 snd_hda_intel ir_common videodev intelfb snd_pcm v4l1_compat compat_ioctl32 v4l2_common snd_timer videobuf_dma_sg snd_page_alloc snd_hwdep videobuf_core i2c_algo_bit lirc_mceusb2 snd tveeprom ohci1394 lirc_dev usbhid ieee1394 soundcore [ 248.076305] [ 248.076314] Pid: 6328, comm: bash Not tainted (2.6.27-gentoo-r8 #26) [ 248.076325] EIP: 0060:[<f9230446>] EFLAGS: 00010246 CPU: 0 [ 248.076342] EIP is at ftdi_open+0x144/0x191 [ftdi_sio] [ 248.076353] EAX: 00000002 EBX: f70b5000 ECX: 00000000 EDX: 00000000 [ 248.076363] ESI: f71e7540 EDI: efd71000 EBP: efe23e4c ESP: efe23e34 [ 248.076374] DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068 [ 248.076385] Process bash (pid: 6328, ti=efe22000 task=efd953f0 task.ti=efe22000) [ 248.076392] Stack: efdb5400 f70b5000 efd71000 f9239a60 efd71000 f6c11840 efe23e6c f9227e72 [ 248.076412] f73d7f00 efdb5400 efd7104c f9227d93 f73d7f00 0bc00001 efe23e90 c0359792 [ 248.076431] 00008241 00000000 00000001 efdb5400 00000000 f71e7f04 00000000 efe23eb0 [ 248.076449] Call Trace: [ 248.076462] [<f9227e72>] ? serial_open+0xdf/0x138 [usbserial] [ 248.076481] [<f9227d93>] ? serial_open+0x0/0x138 [usbserial] [ 248.076498] [<c0359792>] ? tty_open+0x167/0x2ab [ 248.076513] [<c027c25d>] ? chrdev_open+0x11f/0x158 [ 248.076527] [<c0278509>] ? __dentry_open+0x10e/0x1fc [ 248.076539] [<c0278616>] ? nameidata_to_filp+0x1f/0x33 [ 248.076552] [<c027c13e>] ? chrdev_open+0x0/0x158 [ 248.076564] [<c0282ffc>] ? do_filp_open+0x344/0x5ed [ 248.076577] [<c02665b0>] ? handle_mm_fault+0x4fa/0x54e [ 248.076591] [<c028b6fa>] ? alloc_fd+0x5c/0xd4 [ 248.076603] [<c0278327>] ? do_sys_open+0x44/0xb9 [ 248.076615] [<c02783de>] ? sys_open+0x1e/0x26 [ 248.076627] [<c02038b6>] ? syscall_call+0x7/0xb [ 248.076640] ======================= [ 248.076648] Code: 34 c7 80 66 2a fc 89 c2 89 d8 e8 92 44 34 c7 c7 46 74 00 00 00 00 8b 5d ec 0f b6 8f 88 00 00 00 8b 97 84 00 00 00 8b 03 c1 e1 0f <89> 5a 28 c7 42 68 5f 0a 23 f9 c1 e0 08 0d 80 00 00 c0 09 c1 89 [ 248.076724] EIP: [<f9230446>] ftdi_open+0x144/0x191 [ftdi_sio] SS:ESP 0068:efe23e34 [ 248.076749] ---[ end trace 8622a1ddfc18a9dc ]--- Here is my lsmod output: Module Size Used by ftdi_sio 44808 1 usbserial 26600 3 ftdi_sio i915 26112 3 snd_pcm_oss 33312 0 snd_mixer_oss 12800 1 snd_pcm_oss mt352 5892 2 saa7134_alsa 10432 0 saa7134_dvb 18444 32 videobuf_dvb 4740 1 saa7134_dvb dvb_core 64896 2 saa7134_dvb,videobuf_dvb saa7134 127444 2 saa7134_alsa,saa7134_dvb tuner 20936 0 tuner_xc2028 17840 4 snd_hda_intel 253324 0 ir_common 35076 1 saa7134 videodev 30336 2 saa7134,tuner intelfb 31396 0 snd_pcm 57988 3 snd_pcm_oss,saa7134_alsa,snd_hda_intel v4l1_compat 12548 1 videodev compat_ioctl32 1536 1 saa7134 v4l2_common 9216 2 saa7134,tuner snd_timer 16904 1 snd_pcm videobuf_dma_sg 10244 3 saa7134_alsa,saa7134_dvb,saa7134 snd_page_alloc 7176 2 snd_hda_intel,snd_pcm snd_hwdep 6532 1 snd_hda_intel videobuf_core 14340 3 videobuf_dvb,saa7134,videobuf_dma_sg i2c_algo_bit 5380 1 intelfb lirc_mceusb2 12416 1 snd 41764 7 snd_pcm_oss,snd_mixer_oss,saa7134_alsa,snd_hda_intel,snd_pcm,snd_timer,snd_hwdep tveeprom 11012 1 saa7134 ohci1394 25776 0 lirc_dev 9752 3 lirc_mceusb2 usbhid 23680 0 ieee1394 67648 1 ohci1394 soundcore 5856 1 snd And here is my lsusb output: Bus 003 Device 002: ID 179d:0010 Bus 003 Device 001: ID 1d6b:0001 Bus 004 Device 001: ID 1d6b:0001 Bus 005 Device 002: ID 040b:7000 Weltrend Semiconductor Bus 005 Device 001: ID 1d6b:0001 Bus 002 Device 002: ID 0c16:0001 Gyration, Inc. Bus 002 Device 001: ID 1d6b:0001 Bus 001 Device 004: ID 0aec:3260 Neodio Technologies Corp. 7-in-1 Card Reader Bus 001 Device 003: ID 03f0:4e11 Hewlett-Packard Bus 001 Device 001: ID 1d6b:0002 Any finally the output of cat /proc/bus/usb/devices for the Weltrend device after modprobing the ftdi_sio module: T: Bus=05 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=12 MxCh= 0 D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 P: Vendor=040b ProdID=7000 Rev= 0.00 S: Manufacturer=AOpen Inc. S: Product=AOpen Inc. C:* #Ifs= 2 Cfg#= 1 Atr=a0 MxPwr= 64mA I:* If#= 0 Alt= 0 #EPs= 2 Cls=03(HID ) Sub=00 Prot=00 Driver=ftdi_sio E: Ad=81(I) Atr=03(Int.) MxPS= 64 Ivl=36ms E: Ad=03(O) Atr=03(Int.) MxPS= 64 Ivl=10ms I:* If#= 1 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=01 Prot=01 Driver=ftdi_sio E: Ad=82(I) Atr=03(Int.) MxPS= 64 Ivl=36ms Does anyone know what may be the problem or of any fixes? Any help/advice greatly appreciated. Thankyou Jason |