Getting my new OpenPCD working
Power, Mike
Mike_Power at intuit.com
Tue Jul 22 22:07:51 UTC 2008
A quick update:
I can load modules by hand while specifying the vendor and product. I
still have not figured out why udev does not load the module, I still do
not understand how it works in general. Of course it might be a problem
out side udev.
Two things that are particularly interesting.
I can run
sudo insmod
/lib/modules/2.6.24-19-server/kernel/drivers/usb/serial/usbserial.ko
vendor=0x16c0 product=0x076b
and then I get this output in my syslog:
Jul 11 11:26:42 mtvd04a119587 kernel: [ 6517.839188] usbcore: registered
new interface driver usbserial Jul 11 11:26:42 mtvd04a119587 kernel: [
6517.839221] /build/buildd/linux-2.6.24/drivers/usb/serial/usb-serial.c:
USB Serial support registered for generic Jul 11 11:26:42 mtvd04a119587
kernel: [ 6517.839256] usbserial_generic 3-2:1.0: generic converter
detected Jul 11 11:26:42 mtvd04a119587 kernel: [ 6517.839530] usb 3-2:
generic converter now attached to ttyUSB0 Jul 11 11:26:42 mtvd04a119587
kernel: [ 6517.839549] usbserial_generic 3-2:1.1: Generic device with no
bulk out, not allowed.
Jul 11 11:26:42 mtvd04a119587 kernel: [ 6517.839561] usbserial_generic:
probe of 3-2:1.1 failed with error -5 Jul 11 11:26:42 mtvd04a119587
kernel: [ 6517.839574] usbserial_generic 3-2:1.2: Generic device with no
bulk out, not allowed.
Jul 11 11:26:42 mtvd04a119587 kernel: [ 6517.839582] usbserial_generic:
probe of 3-2:1.2 failed with error -5 Jul 11 11:26:42 mtvd04a119587
kernel: [ 6517.839600] usbcore: registered new interface driver
usbserial_generic Jul 11 11:26:42 mtvd04a119587 kernel: [ 6517.839606]
/build/buildd/linux-2.6.24/drivers/usb/serial/usb-serial.c: USB Serial
Driver core Jul 11 11:26:42 mtvd04a119587 NetworkManager: <debug>
[1215800802.404478] nm_hal_device_added(): New device added (hal udi is
'/org/freedesktop/Hal/devices/usb_device_16c0_76b_noserial_if0_serial_us
b_0').
Just a guess it seems to try to use the generic driver instead of the
ftdi_sio and fails with -5. Is that bad?
But regardless I get a ttyUSB device
mpower at mtvd04a119587:~/temp$ ls -l /dev/ttyU*
crw-rw---- 1 root dialout 188, 0 2008-07-11 11:26 /dev/ttyUSB0
But now opcd_test doesn't even work:
mpower at mtvd04a119587:~/workspace/OpenPCD/host$ ./opcd_test -n opcd_test
- OpenPCD Test and Debug Program
(C) 2006 by Harald Welte <laforge at gnumonks.org>
Unable to claim usb interface 1 of device: could not claim interface 0:
Device or resource busy
I can also reset and run
mpower at mtvd04a119587:~/workspace/OpenPCD/host$ sudo insmod
/lib/modules/2.6.24-19-server/kernel/drivers/usb/serial/ftdi_sio.ko
vendor=0x16c0 product=0x076b
Then my syslog has:
Jul 11 11:38:23 mtvd04a119587 kernel: [ 7218.095084]
/build/buildd/linux-2.6.24/drivers/usb/serial/usb-serial.c: USB Serial
support registered for FTDI USB Serial Device Jul 11 11:38:23
mtvd04a119587 kernel: [ 7218.095162] ftdi_sio: probe of 3-2:1.0 failed
with error -5 Jul 11 11:38:23 mtvd04a119587 kernel: [ 7218.095192]
ftdi_sio: probe of 3-2:1.1 failed with error -5 Jul 11 11:38:23
mtvd04a119587 kernel: [ 7218.095222] ftdi_sio: probe of 3-2:1.2 failed
with error -5 Jul 11 11:38:23 mtvd04a119587 kernel: [ 7218.095236]
usbcore: registered new interface driver ftdi_sio Jul 11 11:38:23
mtvd04a119587 kernel: [ 7218.095241]
/build/buildd/linux-2.6.24/drivers/usb/serial/ftdi_sio.c: v1.4.3:USB
FTDI Serial Converters Driver
Still getting the -5 error and more importantly no device:
mpower at mtvd04a119587:~/workspace/OpenPCD/host$ ls /dev/ttyU*
ls: cannot access /dev/ttyU*: No such file or directory
but opcd_test works:
mpower at mtvd04a119587:~/workspace/OpenPCD/host$ ./opcd_test -n opcd_test
- OpenPCD Test and Debug Program
(C) 2006 by Harald Welte <laforge at gnumonks.org>
TX: (8): 03 01 00 01 00 00 00 00
SERIAL: (4): 2d 74 a0 53
At this point I am at a loss of what to do next. The device works on my
XP machine, so it seems like it is a Linux configuration problem.
Mike Power
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openpcd.org/pipermail/openpcd-devel/attachments/20080722/ec93c519/attachment-0001.htm
More information about the openpcd-devel
mailing list