Bob Dodds wrote:
Greg KH wrote:
Any reason you didn't respond back on the mailing list?
It bounced because I needed to set text vs. html pref for that
address.
I'm coaching A. Andria on how to update pl2303.ko in
ubuntu, on gnokii list. That would be vendor id 0x6547 and
product id 0x232. A. Andria is working on the grub
details, having done exceptionally well for an "ubuntu
user" or for any newbie, getting pl2303.ko compiled
without assistance. Menu "System, Administration,Boot"
was my advice. I'll let you know when I hear about that id.
I see /dev/tts/USB0 now, but gnokii has a problem using it.
dmesg
ohci_hcd 0000:00:02.1: wakeup
usb 2-2: new full speed USB device using ohci_hcd and address 4
usb 2-2: configuration #1 chosen from 1 choice
pl2303 2-2:1.0: pl2303 converter detected
usb 2-2: pl2303 converter now attached to ttyUSB0
pl2303 2-2:1.1: pl2303 converter detected
usb 2-2: pl2303 converter now attached to ttyUSB2
Why both ttyUSB0 and ttyUSB2? And what I see is /dev/tts/USB0
and /dev/tts/USB2. Do I need a /etc/udev rule for /dev/ttyUSB0?
It looks like tts is devfs.
I have this in /etc/udev/udev.rules --
# USB devices
BUS=="usb", KERNEL=="ttyUSB*", SYSFS{product}=="Palm Handheld*", \
BUS=="usb", KERNEL=="ttyUSB*", SYSFS{product}=="Nokia*", \
ll rules.d
drwxr-xr-x 2 root root 13 Jan 16 22:45 .
drwxr-xr-x 5 root root 22 Jan 16 22:43 ..
lrwxrwxrwx 1 root root 20 Jul 12 2005 020_permissions.rules ->
../permissions.rules
lrwxrwxrwx 1 root root 12 Jul 16 2005 050_hal-plugdev.rules ->
../hal.rules
-rw-r--r-- 1 root root 2330 Jul 13 2005 050_permissions.rules
lrwxrwxrwx 1 root root 19 Jul 12 2005 cd-aliases.rules ->
../cd-aliases.rules
lrwxrwxrwx 1 root root 15 Jul 12 2005 compat.rules -> ../compat.rules
lrwxrwxrwx 1 root root 14 Jul 12 2005 devfs.rules -> ../devfs.rules
lrwxrwxrwx 1 root root 13 Jul 13 2005 udev.rules -> ../udev.rules
lrwxrwxrwx 1 root root 19 Jan 16 22:42 z20_persistent.rules ->
../persistent.rules
lrwxrwxrwx 1 root root 12 Jul 16 2005 z50_run.rules -> ../run.rules
lrwxrwxrwx 1 root root 16 Jan 16 22:42 z55_hotplug.rules ->
../hotplug.rules
lrwxrwxrwx 1 root root 17 Jul 16 2005 z70_hotplugd.rules ->
../hotplugd.rules
for a in * ; do grep USB $a && echo $a ; done
KERNEL=="ttyUSB[0-9]*", SYMLINK+="%k"
compat-full.rules
#KERNEL=="ttyUSB[0-9]*", SYMLINK+="%k"
compat.rules
#KERNEL=="ttyUSB[0-9]*", SYMLINK+="%k"
compat.rules.dpkg-dist
# USB devices
BUS=="usb", KERNEL=="ttyUSB*", SYSFS{product}=="Palm Handheld*", \
KERNEL=="ttyUSB[0-9]*", NAME="tts/USB%n"
devfs.rules
# USB devices
permissions.rules
# USB devices
permissions.rules.dpkg-old
# USB devices
BUS=="usb", KERNEL=="ttyUSB*", SYSFS{product}=="Palm Handheld*", \
BUS=="usb", KERNEL=="ttyUSB*", SYSFS{product}=="Nokia*", \
udev.rules
# USB devices
BUS=="usb", KERNEL=="ttyUSB*", SYSFS{product}=="Palm Handheld*", \
udev.rules.dpkg-dist
On Wed, Jan 18, 2006 at 04:20:01AM -0500, Bob Dodds wrote:
A. Andria asep.andria.:.gmail.com (unverified)
#define CA_42_AA_VENDOR_ID 0x6547
#define CA_42_AA_PRODUCT_ID 0x0232
mine(verified)...
#define CA_42_AB_VENDOR_ID 0x0421
#define CA_42_AB_PRODUCT_ID 0x0802
so, add two more ca42 clones...
# 2.6.15-mm3
# diff -Naur /tmp/pl2303.h ./drivers/usb/serial/pl2303.h
--- /tmp/pl2303.h 2006-01-17 00:06:27.284812036 -0500
+++ ./drivers/usb/serial/pl2303.h 2006-01-17
00:06:37.917811971 -0500
@@ -69,6 +69,14 @@
#define CA_42_CA42_VENDOR_ID 0x10b5
#define CA_42_CA42_PRODUCT_ID 0xac70
+/* More CA-42 clones */
+
+#define CA_42_AA_VENDOR_ID 0x6547
+#define CA_42_AA_PRODUCT_ID 0x0232
+#define CA_42_AB_VENDOR_ID 0x0421
+#define CA_42_AB_PRODUCT_ID 0x0802
+
+
#diff -Naur /tmp/pl2303.c ./drivers/usb/serial/pl2303.c
--- /tmp/pl2303.c 2006-01-17 00:06:10.722812138 -0500
+++ ./drivers/usb/serial/pl2303.c 2006-01-17
00:06:37.917811971 -0500
@@ -77,6 +77,8 @@
{ USB_DEVICE(SYNTECH_VENDOR_ID, SYNTECH_PRODUCT_ID) },
{ USB_DEVICE(NOKIA_CA42_VENDOR_ID, NOKIA_CA42_PRODUCT_ID ) },
{ USB_DEVICE(CA_42_CA42_VENDOR_ID, CA_42_CA42_PRODUCT_ID ) },
+ { USB_DEVICE(CA_42_AA_VENDOR_ID, CA_42_AA_PRODUCT_ID ) },
+ { USB_DEVICE(CA_42_AB_VENDOR_ID, CA_42_AB_PRODUCT_ID ) },
{ } /* Terminating entry */
};
Care to redo the patch in a format that I can apply it to the kernel
tree with? Please read Documentation/SubmittingPatches for more
details.
thanks,
greg k-h
OK, I've never done that and I will get it right, but what about this
first? Is this symlinking circular?
ls -l
/sys/bus/usb-serial/drivers/pl2303/ttyUSB*/tty*/device/tty*/*/tty*/device/tty*
/sys/bus/usb-serial/drivers/pl2303/ttyUSB0/tty:ttyUSB0/device/tty:ttyUSB0/device/tty:ttyUSB0/device/tty:ttyUSB0:
. .. dev device uevent
/sys/bus/usb-serial/drivers/pl2303/ttyUSB2/tty:ttyUSB2/device/tty:ttyUSB2/device/tty:ttyUSB2/device/tty:ttyUSB2:
. .. dev device uevent
ohci_hcd 0000:00:02.1: wakeup
usb 2-2: new full speed USB device using ohci_hcd and address 4
usb 2-2: configuration #1 chosen from 1 choice
pl2303 2-2:1.0: pl2303 converter detected
usb 2-2: pl2303 converter now attached to ttyUSB0
pl2303 2-2:1.1: pl2303 converter detected
usb 2-2: pl2303 converter now attached to ttyUSB2
Why both ttyUSB0 and ttyUSB2? Circular symlinking in /sys tree?
I could not fix that by my /etc/udev/my.rules
Here is some debug output from a third new idVendor, IdProduct
pair that may help there--see "pl2303: already loaded"--
On 1/18/06, Michael Moritz <[EMAIL PROTECTED]> wrote:
> Hi
>
> I have a problem with a cable I purchased from ABC Products. Apparently it has
> a PL2303 chip. It reports as
>
> 0ea0:6858 Ours Technology, Inc.
>
> I have tried following the instructions from the wiki
> (http://wiki.gnokii.org/index.php/New_DKU_cable) - added the vendor id and
> device id in pl2303.c in the kernel sources, reload kernel module, and it
> gives:
>
> Jan 18 11:29:58 haendel kernel: usb 3-2: new full speed USB device using
> uhci_hcd and address 17
> Jan 18 11:29:58 haendel kernel: pl2303 3-2:1.0: PL-2303 converter detected
> Jan 18 11:29:58 haendel
> kernel: /usr/src/kernel-source-2.6.10/drivers/usb/serial/pl2303.c: device
> type: 2
> Jan 18 11:29:58 haendel kernel: usb 3-2: PL-2303 converter now attached to
> ttyUSB0
> Jan 18 11:29:59 haendel usb.agent[12989]: pl2303: already loaded
> Jan 18 11:30:15 haendel
> kernel: /usr/src/kernel-source-2.6.10/drivers/usb/serial/pl2303.c:
> pl2303_open - port 0
> Jan 18 11:30:15 haendel
> kernel: /usr/src/kernel-source-2.6.10/drivers/usb/serial/pl2303.c:
> 0xc0:0x1:0x8484:0x0 1 - 9c
> Jan 18 11:30:15 haendel kernel: usb 3-2: gnokii timed out on ep0out
> Jan 18 11:30:15 haendel
> kernel: /usr/src/kernel-source-2.6.10/drivers/usb/serial/pl2303.c:
> 0x40:0x1:0x404:0x0 -110
> Jan 18 11:30:15 haendel
> kernel: /usr/src/kernel-source-2.6.10/drivers/usb/serial/pl2303.c:
> 0xc0:0x1:0x8484:0x0 0 - 9c
> Jan 18 11:30:15 haendel
> kernel: /usr/src/kernel-source-2.6.10/drivers/usb/serial/pl2303.c:
> 0xc0:0x1:0x8383:0x0 1 - c0
> Jan 18 11:30:15 haendel
> kernel: /usr/src/kernel-source-2.6.10/drivers/usb/serial/pl2303.c:
> 0xc0:0x1:0x8484:0x0 1 - c0
> Jan 18 11:30:15 haendel
> kernel: /usr/src/kernel-source-2.6.10/drivers/usb/serial/pl2303.c:
> 0x40:0x1:0x404:0x1 0
> Jan 18 11:30:15 haendel
> kernel: /usr/src/kernel-source-2.6.10/drivers/usb/serial/pl2303.c:
> 0xc0:0x1:0x8484:0x0 1 - 9c
> Jan 18 11:30:15 haendel
> kernel: /usr/src/kernel-source-2.6.10/drivers/usb/serial/pl2303.c:
> 0xc0:0x1:0x8383:0x0 1 - 9c
> Jan 18 11:30:15 haendel kernel: usb 3-2: gnokii timed out on ep0out
> Jan 18 11:30:15 haendel
> kernel: /usr/src/kernel-source-2.6.10/drivers/usb/serial/pl2303.c:
> 0x40:0x1:0x0:0x1 -110
> Jan 18 11:30:15 haendel
> kernel: /usr/src/kernel-source-2.6.10/drivers/usb/serial/pl2303.c:
> 0x40:0x1:0x1:0x0 0
> Jan 18 11:30:16 haendel kernel: usb 3-2: gnokii timed out on ep0out
> Jan 18 11:30:16 haendel
> kernel: /usr/src/kernel-source-2.6.10/drivers/usb/serial/pl2303.c:
> 0x40:0x1:0x2:0x44 -110
> Jan 18 11:30:16 haendel
> kernel: /usr/src/kernel-source-2.6.10/drivers/usb/serial/pl2303.c:
> 0x40:0x1:0x8:0x0 0
> Jan 18 11:30:16 haendel kernel: usb 3-2: gnokii timed out on ep0out
>
> Jan 18 11:30:18 haendel kernel: usb 3-2: gnokii timed out on ep0out
> Jan 18 11:30:18 haendel
> kernel: /usr/src/kernel-source-2.6.10/drivers/usb/serial/pl2303.c:
> set_control_lines - value = 3, retval = -110
> Jan 18 11:30:18 haendel
> kernel: /usr/src/kernel-source-2.6.10/drivers/usb/serial/pl2303.c:
> pl2303_ioctl (0) cmd = 0x5401
> Jan 18 11:30:18 haendel
> kernel: /usr/src/kernel-source-2.6.10/drivers/usb/serial/pl2303.c:
> pl2303_ioctl not supported = 0x5401
> Jan 18 11:30:18 haendel
> kernel: /usr/src/kernel-source-2.6.10/drivers/usb/serial/pl2303.c:
> pl2303_ioctl (0) cmd = 0x5401
> Jan 18 11:30:18 haendel
> kernel: /usr/src/kernel-source-2.6.10/drivers/usb/serial/pl2303.c:
> pl2303_ioctl not supported = 0x5401
> Jan 18 11:30:18 haendel
> kernel: /usr/src/kernel-source-2.6.10/drivers/usb/serial/pl2303.c:
> pl2303_ioctl (0) cmd = 0x5403
> Jan 18 11:30:18 haendel
> kernel: /usr/src/kernel-source-2.6.10/drivers/usb/serial/pl2303.c:
> pl2303_ioctl not supported = 0x5403
> Jan 18 11:30:18 haendel
> kernel: /usr/src/kernel-source-2.6.10/drivers/usb/serial/pl2303.c:
> pl2303_chars_in_buffer - port 0
> Jan 18 11:30:18 haendel
> kernel: /usr/src/kernel-source-2.6.10/drivers/usb/serial/pl2303.c:
> pl2303_chars_in_buffer - returns 0
> Jan 18 11:30:18 haendel
> kernel: /usr/src/kernel-source-2.6.10/drivers/usb/serial/pl2303.c:
> pl2303_set_termios - port 0
> Jan 18 11:30:18 haendel
> kernel: /usr/src/kernel-source-2.6.10/drivers/usb/serial/pl2303.c:
> pl2303_set_termios - nothing to change...
> Jan 18 11:30:18 haendel
> kernel: /usr/src/kernel-source-2.6.10/drivers/usb/serial/pl2303.c:
> pl2303_ioctl (0) cmd = 0x5401
> Jan 18 11:30:18 haendel
> kernel: /usr/src/kernel-source-2.6.10/drivers/usb/serial/pl2303.c:
> pl2303_ioctl not supported = 0x5401
> Jan 18 11:30:18 haendel
> kernel: /usr/src/kernel-source-2.6.10/drivers/usb/serial/pl2303.c:
> pl2303_read_int_callback (0)
> |:
> Jan 18 11:30:18 haendel kernel: PL-2303 ttyUSB0: pl2303_read_int_callback -
> length = 8, data = 9c 00 03 43 4c 00 4b 00
> Jan 18 11:30:18 haendel
> kernel: /usr/src/kernel-source-2.6.10/drivers/usb/serial/pl2303.c:
> pl2303_read_int_callback (0)
> :| (repeat many times)
>
> Any ideas,
>
> Thanks
>
> mimo
-Bob
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users