Hello,
I have been racking my brain trying to get a usb to serial adapter to work with a wl-500gp v2 ( this worked fine with a V1 on WR)
I am running kamikaze trunk (latest as of tonight) when I try to access the usb serial port the entire system locks up. I have tried setting the correct speed. backporting the 2.6 pl2303 driver , etc but nothing seems to work. This worked correctly on 2.4 on the V1 or this router. I am not able to use 2.6 because of its lack of bcom wifi support.
A simple "screen /dev/usb/tts/0 2400" will lock up the system
or cat /dev/usb/tts/0
Can anyone offer any help ?
details below
root@OpenWrt:~# stty -F /dev/usb/tts/0 speed 2400
2400
root@OpenWrt:~# stty -F /dev/usb/tts/0
speed 2400 baud;
lsmod
Module Size Used by Tainted: P
pl2303 13896 0 (unused)
usbserial 23884 0 [pl2303]
wlcompat 9504 0 (unused)
usb-ohci 19252 0 (unused)
ip_conntrack_tftp 1712 0 (unused)
ip_nat_irc 2336 0 (unused)
ip_conntrack_irc 3128 1
ip_nat_ftp 2960 0 (unused)
ip_conntrack_ftp 4272 1
ppp_async 8044 0 (unused)
ppp_generic 22380 0 [ppp_async]
slhc 6064 0 [ppp_generic]
wl 666224 0 (unused)
usbcore 71296 1 [pl2303 usbserial usb-ohci]
switch-robo 5052 0 (unused)
switch-core 4928 0 [switch-robo]
diag 28544 0 (unused)
root@OpenWrt:~# uname -a
Linux OpenWrt 2.4.35.4 #4 Tue May 20 23:39:58 EDT 2008 mips unknown
Jan 1 00:00:14 OpenWrt user.info kernel: usb-ohci.c: USB OHCI at membase 0xb8003000, IRQ 6
Jan 1 00:00:14 OpenWrt user.info kernel: usb-ohci.c: usb-00:03.0, PCI device 14e4:471a
Jan 1 00:00:14 OpenWrt user.info kernel: usb.c: new USB bus registered, assigned bus number 1
Jan 1 00:00:14 OpenWrt user.info kernel: hub.c: USB hub found
Jan 1 00:00:14 OpenWrt user.info kernel: hub.c: 2 ports detected
Jan 1 00:00:14 OpenWrt user.info kernel: usb.c: registered new driver serial
Jan 1 00:00:14 OpenWrt user.info kernel: usbserial.c: USB Serial support registered for Generic
Jan 1 00:00:14 OpenWrt user.info kernel: usbserial.c: USB Serial Driver core v1.4
Jan 1 00:00:14 OpenWrt user.info kernel: usbserial.c: USB Serial support registered for PL-2303
Jan 1 00:00:14 OpenWrt user.info kernel: pl2303.c: Prolific PL2303 USB to serial adaptor driver v0.10.1
Jan 1 00:00:15 OpenWrt user.info : /etc/rc.common: eval: line 1: swapon: not found
Jan 1 00:00:15 OpenWrt user.info kernel: hub.c: new USB device 00:03.0-1, assigned address 2
Jan 1 00:00:15 OpenWrt user.info kernel: hub.c: USB hub found
Jan 1 00:00:15 OpenWrt user.info kernel: hub.c: 2 ports detected
Jan 1 00:00:15 OpenWrt user.info : 'wl0' is disabled
Jan 1 00:00:15 OpenWrt user.info : 'wl0' is disabled
Jan 1 00:00:15 OpenWrt user.info kernel: hub.c: new USB device 00:03.0-1.1, assigned address 3
Jan 1 00:00:15 OpenWrt user.info kernel: usbserial.c: PL-2303 converter detected
Jan 1 00:00:15 OpenWrt user.info kernel: usbserial.c: PL-2303 converter now attached to ttyUSB0 (or usb/tts/0 for de
I put the pl2303 driver in debug this is what i got:
pl2303.c: pl2303_read_int_callback (0)
pl2303.c: pl2303_read_int_callback - length = 10, data = a1 20 00 00 00 00 02 00 9b 00
pl2303.c: pl2303_read_bulk_callback - port 0
pl2303.c: pl2303_read_bulk_callback - length = 1, data = f8
pl2303.c: pl2303_read_bulk_callback - tty_flag = 2
pl2303.c: pl2303_read_bulk_callback - port 0
pl2303.c: pl2303_read_bulk_callback - length = 1, data = 80
pl2303.c: pl2303_read_bulk_callback - tty_flag = 0
pl2303.c: pl2303_read_bulk_callback - port 0
pl2303.c: pl2303_read_bulk_callback - length = 1, data = 00
pl2303.c: pl2303_read_bulk_callback - tty_flag = 0
pl2303.c: pl2303_read_int_callback (0)
pl2303.c: pl2303_read_int_callback - length = 10, data = a1 20 00 00 00 00 02 00 9b 00
pl2303.c: pl2303_read_bulk_callback - port 0
pl2303.c: pl2303_read_bulk_callback - length = 1, data = 80
pl2303.c: pl2303_read_bulk_callback - tty_flag = 2
pl2303.c: pl2303_write - port 0, 1 bytes
pl2303.c: pl2303_write - length = 1, data = 78
pl2303.c: pl2303_write - port 0, 1 bytes
pl2303.c: pl2303_write - already writing
pl2303.c: pl2303_write - port 0, 1 bytes
pl2303.c: pl2303_write - already writing
pl2303.c: pl2303_write - port 0, 1 bytes
pl2303.c: pl2303_write - already writing
pl2303.c: pl2303_write - port 0, 1 bytes
pl2303.c: pl2303_read_bulk_callback - port 0
pl2303.c: pl2303_read_bulk_callback - length = 1, data = 80
pl2303.c: pl2303_read_bulk_callback - tty_flag = 0
pl2303.c: pl2303_write_bulk_callback - port 0
pl2303.c: pl2303_write - length = 1, data = 5e
pl2303.c: pl2303_write - port 0, 1 bytes
pl2303.c: pl2303_write - already writing
pl2303.c: pl2303_write - port 0, 1 bytes
pl2303.c: pl2303_write - already writing
pl2303.c: pl2303_write - port 0, 1 bytes
pl2303.c: pl2303_write - already writing
pl2303.c: pl2303_write - port 0, 1 bytes
pl2303.c: pl2303_write - already writing
pl2303.c: pl2303_write - port 0, 1 bytes
pl2303.c: pl2303_write - already writing
pl2303.c: pl2303_write - port 0, 1 bytes
pl2303.c: pl2303_write - already writing
pl2303.c: pl2303_write - port 0, 1 bytes
pl2303.c: pl2303_write - already writing
pl2303.c: pl2303_write - port 0, 1 bytes
pl2303.c: pl2303_write - already writing
pl2303.c: pl2303_write - port 0, 1 bytes
pl2303.c: pl2303_write - already writing
pl2303.c: pl2303_write - port 0, 1 bytes
pl2303.c: pl2303_write - already writing
pl2303.c: pl2303_write - port 0, 1 bytes
pl2303.c: pl2303_write - already writing
pl2303.c: pl2303_write - port 0, 1 bytes
pl2303.c: pl2303_write - already writing
pl2303.c: pl2303_write - port 0, 1 bytes
pl2303.c: pl2303_write - already writing
pl2303.c: pl2303_write - port 0, 1 bytes
pl2303.c: pl2303_write - already writing
pl2303.c: pl2303_write - port 0, 1 bytes
pl2303.c: pl2303_write - already writing
pl2303.c: pl2303_write - port 0, 1 bytes
pl2303.c: pl2303_write - already writing
pl2303.c: pl2303_write - port 0, 1 bytes
pl2303.c: pl2303_write - already writing
pl2303.c: pl2303_write - port 0, 1 bytes
pl2303.c: pl2303_write_bulk_callback - port 0
pl2303.c: pl2303_write - length = 1, data = 40
pl2303.c: pl2303_read_bulk_callback - port 0
pl2303.c: pl2303_read_bulk_callback - length = 1, data = 80
pl2303.c: pl2303_read_bulk_callback - tty_flag = 0
pl2303.c: pl2303_write_bulk_callback - port 0
pl2303.c: pl2303_read_bulk_callback - port 0
pl2303.c: pl2303_read_bulk_callback - length = 1, data = 80
pl2303.c: pl2303_read_bulk_callback - tty_flag = 0
pl2303.c: pl2303_read_int_callback (0)
pl2303.c: pl2303_read_int_callback - length = 10, data = a1 20 00 00 00 00 02 00 9b 00
pl2303.c: pl2303_read_bulk_callback - port 0
pl2303.c: pl2303_read_bulk_callback - length = 1, data = 00
pl2303.c: pl2303_read_bulk_callback - tty_flag = 2
pl2303.c: pl2303_read_bulk_callback - port 0
pl2303.c: pl2303_read_bulk_callback - length = 1, data = 80
pl2303.c: pl2303_read_bulk_callback - tty_flag = 0
pl2303.c: pl2303_read_bulk_callback - port 0
pl2303.c: pl2303_read_bulk_callback - length = 1, data = 80
pl2303.c: pl2303_read_bulk_callback - tty_flag = 0
pl2303.c: pl2303_write - port 0, 1 bytes
pl2303.c: pl2303_write - length = 1, data = 80
pl2303.c: pl2303_read_bulk_callback - port 0
pl2303.c: pl2303_read_bulk_callback - length = 1, data = 80
pl2303.c: pl2303_read_bulk_callback - tty_flag = 0
pl2303.c: pl2303_write_bulk_callback - port 0
pl2303.c: pl2303_read_bulk_callback - port 0
pl2303.c: pl2303_read_bulk_callback - length = 1, data = 80
pl2303.c: pl2303_read_bulk_callback - tty_flag = 0
pl2303.c: pl2303_read_bulk_callback - port 0
pl2303.c: pl2303_read_bulk_callback - length = 1, data = 80
pl2303.c: pl2303_read_bulk_callback - tty_flag = 0
pl2303.c: pl2303_read_bulk_callback - port 0
pl2303.c: pl2303_read_bulk_callback - length = 1, data = 78
pl2303.c: pl2303_read_bulk_callback - tty_flag = 0
pl2303.c: pl2303_read_int_callback (0)
pl2303.c: pl2303_read_int_callback - length = 10, data = a1 20 00 00 00 00 02 00 9b 00
pl2303.c: pl2303_read_bulk_callback - port 0
pl2303.c: pl2303_read_bulk_callback - length = 1, data = f8
pl2303.c: pl2303_read_bulk_callback - tty_flag = 2
pl2303.c: pl2303_read_bulk_callback - port 0
pl2303.c: pl2303_read_bulk_callback - length = 1, data = f8
pl2303.c: pl2303_read_bulk_callback - tty_flag = 0
pl2303.c: pl2303_write - port 0, 1 bytes
pl2303.c: pl2303_write - length = 1, data = 80
pl2303.c: pl2303_read_bulk_callback - port 0
pl2303.c: pl2303_read_bulk_callback - length = 1, data = 80
pl2303.c: pl2303_read_bulk_callback - tty_flag = 0
pl2303.c: pl2303_write_bulk_callback - port 0
pl2303.c: pl2303_read_int_callback (0)
pl2303.c: pl2303_read_int_callback - length = 10, data = a1 20 00 00 00 00 02 00 9b 00
pl2303.c: pl2303_read_bulk_callback - port 0
pl2303.c: pl2303_read_bulk_callback - length = 1, data = 00
pl2303.c: pl2303_read_bulk_callback - tty_flag = 2
pl2303.c: pl2303_read_bulk_callback - port 0
pl2303.c: pl2303_read_bulk_callback - length = 1, data = 80
pl2303.c: pl2303_read_bulk_callback - tty_flag = 0
pl2303.c: pl2303_read_bulk_callback - port 0
pl2303.c: pl2303_read_bulk_callback - length = 1, data = f8
pl2303.c: pl2303_read_bulk_callback - tty_flag = 0
pl2303.c: pl2303_read_bulk_callback - port 0
pl2303.c: pl2303_read_bulk_callback - length = 1, data = 80
pl2303.c: pl2303_read_bulk_callback - tty_flag = 0
pl2303.c: pl2303_read_bulk_callback - port 0
pl2303.c: pl2303_read_bulk_callback - length = 1, data = f8
pl2303.c: pl2303_read_bulk_callback - tty_flag = 0
pl2303.c: pl2303_write - port 0, 1 bytes
pl2303.c: pl2303_write - length = 1, data = 80
pl2303.c: pl2303_read_int_callback (0)
pl2303.c: pl2303_read_int_callback - length = 10, data = a1 20 00 00 00 00 02 00 9b 00
pl2303.c: pl2303_write_bulk_callback - port 0
pl2303.c: pl2303_read_bulk_callback - port 0
pl2303.c: pl2303_read_bulk_callback - length = 1, data = 80
pl2303.c: pl2303_read_bulk_callback - tty_flag = 2
pl2303.c: pl2303_read_bulk_callback - port 0
pl2303.c: pl2303_read_bulk_callback - length = 1, data = f8
pl2303.c: pl2303_read_bulk_callback - tty_flag = 0
pl2303.c: pl2303_read_int_callback (0)
pl2303.c: pl2303_read_int_callback - length = 10, data = a1 20 00 00 00 00 02 00 9b 00
pl2303.c: pl2303_read_bulk_callback - port 0
pl2303.c: pl2303_read_bulk_callback - length = 1, data = 80
pl2303.c: pl2303_read_bulk_callback - tty_flag = 2
pl2303.c: pl2303_read_bulk_callback - port 0
pl2303.c: pl2303_read_bulk_callback - length = 1, data = f8
pl2303.c: pl2303_read_bulk_callback - tty_flag = 0
pl2303.c: pl2303_write - port 0, 1 bytes
pl2303.c: pl2303_write - length = 1, data = f8
pl2303.c: pl2303_write_bulk_callback - port 0
pl2303.c: pl2303_read_bulk_callback - port 0
pl2303.c: pl2303_read_bulk_callback - length = 1, data = 80
pl2303.c: pl2303_read_bulk_callback - tty_flag = 0
pl2303.c: pl2303_read_bulk_callback - port 0
pl2303.c: pl2303_read_bulk_callback - length = 1, data = f8
pl2303.c: pl2303_read_bulk_callback - tty_flag = 0
pl2303.c: pl2303_read_int_callback (0)
pl2303.c: pl2303_read_int_callback - length = 10, data = a1 20 00 00 00 00 02 00 9b 00
pl2303.c: pl2303_read_bulk_callback - port 0
pl2303.c: pl2303_read_bulk_callback - length = 1, data = 00
pl2303.c: pl2303_read_bulk_callback - tty_flag = 2
pl2303.c: pl2303_read_int_callback (0)
pl2303.c: pl2303_read_int_callback - length = 10, data = a1 20 00 00 00 00 02 00 9b 00
pl2303.c: pl2303_read_bulk_callback - port 0
pl2303.c: pl2303_read_bulk_callback - length = 1, data = f8
pl2303.c: pl2303_read_bulk_callback - tty_flag = 2
pl2303.c: pl2303_read_int_callback (0)
pl2303.c: pl2303_read_int_callback - length = 10, data = a1 20 00 00 00 00 02 00 9b 00
pl2303.c: pl2303_read_bulk_callback - port 0
pl2303.c: pl2303_read_bulk_callback - length = 1, data = 00
pl2303.c: pl2303_read_bulk_callback - tty_flag = 2
pl2303.c: pl2303_write - port 0, 1 bytes
pl2303.c: pl2303_write - length = 1, data = 80
pl2303.c: pl2303_read_int_callback (0)
pl2303.c: pl2303_read_int_callback - length = 10, data = a1 20 00 00 00 00 02 00 9b 00
pl2303.c: pl2303_read_bulk_callback - port 0
pl2303.c: pl2303_read_bulk_callback - length = 1, data = f8
pl2303.c: pl2303_read_bulk_callback - tty_flag = 2
pl2303.c: pl2303_write_bulk_callback - port 0
pl2303.c: pl2303_read_int_callback (0)
pl2303.c: pl2303_read_int_callback - length = 10, data = a1 20 00 00 00 00 02 00 9b 00
pl2303.c: pl2303_read_bulk_callback - port 0
pl2303.c: pl2303_read_bulk_callback - length = 1, data = f8
pl2303.c: pl2303_read_bulk_callback - tty_flag = 2
pl2303.c: pl2303_read_bulk_callback - port 0
pl2303.c: pl2303_read_bulk_callback - length = 1, data = 00
pl2303.c: pl2303_read_bulk_callback - tty_flag = 0
pl2303.c: pl2303_read_int_callback (0)
pl2303.c: pl2303_read_int_callback - length = 10, data = a1 20 00 00 00 00 02 00 9b 00
pl2303.c: pl2303_read_bulk_callback - port 0
pl2303.c: pl2303_read_bulk_callback - length = 1, data = 80
pl2303.c: pl2303_read_bulk_callback - tty_flag = 2
pl2303.c: pl2303_read_bulk_callback - port 0
pl2303.c: pl2303_read_bulk_callback - length = 1, data = 78
pl2303.c: pl2303_read_bulk_callback - tty_flag = 0
pl2303.c: pl2303_read_int_callback (0)
pl2303.c: pl2303_read_int_callback - length = 10, data = a1 20 00 00 00 00 02 00 9b 00
pl2303.c: pl2303_write - port 0, 1 bytes
pl2303.c: pl2303_write - length = 1, data = 5e
pl2303.c: pl2303_write - port 0, 1 bytes
pl2303.c: pl2303_write - already writing
pl2303.c: pl2303_write - port 0, 1 bytes
pl2303.c: pl2303_write - already writing
pl2303.c: pl2303_write - port 0, 1 bytes
pl2303.c: pl2303_write - already writing
pl2303.c: pl2303_write - port 0, 1 bytes
pl2303.c: pl2303_write - already writing
pl2303.c: pl2303_write_bulk_callback - port 0
pl2303.c: pl2303_write - port 0, 1 bytes
pl2303.c: pl2303_write - length = 1, data = 40
pl2303.c: pl2303_write_bulk_callback - port 0
pl2303.c: pl2303_close - port 0
pl2303.c: set_control_lines - value = 0, retval = 0
pl2303.c: pl2303_close - shutting down urbs
pl2303.c: pl2303_close - usb_unlink_urb (write_urb) failed with reason: -19
pl2303.c: pl2303_read_int_callback (0)
pl2303.c: pl2303_read_int_callback - length = 10, data = a1 20 00 00 00 00 02 00 0b 00
pl2303.c: pl2303_read_bulk_callback - port 0
pl2303.c: pl2303_read_bulk_callback - urb->status = -2
pl2303.c: pl2303_read_bulk_callback - port is closed, exiting.
pl2303.c: pl2303_read_int_callback (0)
pl2303.c: pl2303_read_int_callback - urb shutting down with status: -2
Thanks
Jason
(Last edited by enzo86 on 21 May 2008, 05:37)