Hi Rick, I saw the openocd.udev file. Unfortunately, OpenSUSE doesn't have a group named "plugdev". I created the following using some existing rules as an example, but it doesn't help:
BUS=="usb", SYSFS{idVendor}=="0403", SYSFS{idProduct}=="cff8", MODE="664", RUN="/etc/udev/setmode" These are my /sys and /dev usb nodes: cea05:~ # ls -l /sys/bus/usb/devices/ total 0 lrwxrwxrwx 1 root root 0 2009-06-09 14:55 1-0:1.0 -> ../../../devices/pci0000:00/0000:00:02.0/usb1/1-0:1.0 lrwxrwxrwx 1 root root 0 2009-06-09 14:55 1-1 -> ../../../devices/pci0000:00/0000:00:02.0/usb1/1-1 lrwxrwxrwx 1 root root 0 2009-06-09 14:55 1-1:1.0 -> ../../../devices/pci0000:00/0000:00:02.0/usb1/1-1/1-1:1.0 lrwxrwxrwx 1 root root 0 2009-06-09 14:55 1-3 -> ../../../devices/pci0000:00/0000:00:02.0/usb1/1-3 lrwxrwxrwx 1 root root 0 2009-06-09 14:55 1-3:1.0 -> ../../../devices/pci0000:00/0000:00:02.0/usb1/1-3/1-3:1.0 lrwxrwxrwx 1 root root 0 2009-06-09 14:55 1-3:1.1 -> ../../../devices/pci0000:00/0000:00:02.0/usb1/1-3/1-3:1.1 lrwxrwxrwx 1 root root 0 2009-06-09 14:55 2-0:1.0 -> ../../../devices/pci0000:00/0000:00:02.2/usb2/2-0:1.0 lrwxrwxrwx 1 root root 0 2009-06-09 14:55 2-3 -> ../../../devices/pci0000:00/0000:00:02.2/usb2/2-3 lrwxrwxrwx 1 root root 0 2009-06-09 14:55 2-3:1.0 -> ../../../devices/pci0000:00/0000:00:02.2/usb2/2-3/2-3:1.0 lrwxrwxrwx 1 root root 0 2009-06-09 14:55 3-0:1.0 -> ../../../devices/pci0000:00/0000:00:02.1/usb3/3-0:1.0 lrwxrwxrwx 1 root root 0 2009-06-09 14:55 3-2 -> ../../../devices/pci0000:00/0000:00:02.1/usb3/3-2 lrwxrwxrwx 1 root root 0 2009-06-09 14:55 3-2:1.0 -> ../../../devices/pci0000:00/0000:00:02.1/usb3/3-2/3-2:1.0 lrwxrwxrwx 1 root root 0 2009-06-09 14:55 usb1 -> ../../../devices/pci0000:00/0000:00:02.0/usb1 lrwxrwxrwx 1 root root 0 2009-06-09 14:55 usb2 -> ../../../devices/pci0000:00/0000:00:02.2/usb2 lrwxrwxrwx 1 root root 0 2009-06-09 14:55 usb3 -> ../../../devices/pci0000:00/0000:00:02.1/usb3 cea05:~ # ls -l /dev/usb* crw-rw---- 1 root root 253, 0 2009-06-08 02:08 /dev/usbdev1.1_ep00 crw-rw---- 1 root root 253, 1 2009-06-08 02:08 /dev/usbdev1.1_ep81 crw-rw---- 1 root root 253, 9 2009-06-08 02:08 /dev/usbdev1.2_ep00 crw-rw---- 1 root root 253, 10 2009-06-08 02:08 /dev/usbdev1.2_ep81 crw-rw-r-- 1 root root 253, 13 2009-06-09 14:54 /dev/usbdev1.5_ep00 crw-rw-r-- 1 root root 253, 15 2009-06-09 14:54 /dev/usbdev1.5_ep02 crw-rw-r-- 1 root root 253, 17 2009-06-09 14:54 /dev/usbdev1.5_ep04 crw-rw-r-- 1 root root 253, 14 2009-06-09 14:54 /dev/usbdev1.5_ep81 crw-rw-r-- 1 root root 253, 16 2009-06-09 14:54 /dev/usbdev1.5_ep83 crw-rw---- 1 root root 253, 2 2009-06-08 02:08 /dev/usbdev2.1_ep00 crw-rw---- 1 root root 253, 3 2009-06-08 02:08 /dev/usbdev2.1_ep81 crw-rw---- 1 root root 253, 6 2009-06-08 02:08 /dev/usbdev2.3_ep00 crw-rw---- 1 root root 253, 7 2009-06-08 02:08 /dev/usbdev2.3_ep01 crw-rw---- 1 root root 253, 8 2009-06-08 02:08 /dev/usbdev2.3_ep82 crw-rw---- 1 root root 253, 4 2009-06-08 02:08 /dev/usbdev3.1_ep00 crw-rw---- 1 root root 253, 5 2009-06-08 02:08 /dev/usbdev3.1_ep81 crw-rw---- 1 root root 253, 11 2009-06-08 02:08 /dev/usbdev3.2_ep00 crw-rw---- 1 root root 253, 12 2009-06-08 02:08 /dev/usbdev3.2_ep81 /sys/bus/usb/devices/1-3 is the Amontec, based on the pid/vid, but I don't see a corresponding device. Thanks, Paul Rick Altherr wrote: > There is a udev rule file in the contrib folder. It's been a while > since I've messed with Linux device nodes, but I believe the device will > show up in /sys but udev needs to create the /dev node. > -- > Rick Altherr > kc8...@kc8apf.net > > "He said he hadn't had a byte in three days. I had a short, so I split > it with him." > -- Unsigned > > > > On Jun 9, 2009, at 2:32 PM, Paul J THACKER wrote: > >> Hi, >> >> Openocd-0.1.0 on OpenSUSE 11.0 with Amontec jtagkey-tiny: >> >> thack...@cea05:~/cartesio/eclipse/trunk> openocd -f jtagkey-tiny.cfg >> Open On-Chip Debugger 0.1.0 (2009-05-21-09:56) Release >> >> >> BUGS? Read http://svn.berlios.de/svnroot/repos/openocd/trunk/BUGS >> >> >> $URL: >> https://kc8...@svn.berlios.de/svnroot/repos/openocd/tags/openocd-0.1.0/src/openocd.c >> >> >> $ >> Error: unable to open ftdi device: 18 >> initialise_usb failed >> Error: ListDevices: NONE >> >> Runtime error, file "command.c", line 456: >> >> Trace and debug outputs: >> >> open("jtagkey-tiny.cfg", O_RDONLY) = 3 >> close(3) = 0 >> open("jtagkey-tiny.cfg", O_RDONLY) = 3 >> fstat64(3, {st_mode=S_IFREG|0644, st_size=118, ...}) = 0 >> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, >> 0) = 0xb8092000 >> read(3, "#interface\ninterface ft2232\nft22"..., 4096) = 118 >> read(3, "", 4096) = 0 >> read(3, "", 4096) = 0 >> close(3) = 0 >> munmap(0xb8092000, 4096) = 0 >> gettimeofday({1244582536, 328068}, NULL) = 0 >> gettimeofday({1244582536, 328114}, NULL) = 0 >> gettimeofday({1244582536, 329023}, NULL) = 0 >> gettimeofday({1244582536, 329079}, NULL) = 0 >> gettimeofday({1244582536, 329212}, NULL) = 0 >> gettimeofday({1244582536, 329255}, NULL) = 0 >> gettimeofday({1244582536, 329362}, NULL) = 0 >> gettimeofday({1244582536, 329404}, NULL) = 0 >> gettimeofday({1244582536, 329534}, NULL) = 0 >> gettimeofday({1244582536, 329577}, NULL) = 0 >> open("/proc/sys/kernel/osrelease", O_RDONLY) = 3 >> fstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0 >> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, >> 0) = 0xb8092000 >> read(3, "2.6.25.18-0.2-pae\n", 1024) = 18 >> read(3, "", 1024) = 0 >> close(3) = 0 >> munmap(0xb8092000, 4096) = 0 >> open("/proc/bus/usb", >> O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|0x80000) = 3 >> fstat64(3, {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0 >> fcntl64(3, F_GETFD) = 0x1 (flags FD_CLOEXEC) >> getdents64(3, /* 2 entries */, 1024) = 48 >> getdents64(3, /* 0 entries */, 1024) = 0 >> close(3) = 0 >> open("/dev/usb", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|0x80000) = >> -1 ENOENT (No such file or directory) >> write(2, "Error: unable to open ftdi devic"..., 38Error: unable to open >> ftdi device: 18 >> ) = 38 >> open("/proc/bus/usb", >> O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|0x80000) = 3 >> fstat64(3, {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0 >> getdents64(3, /* 2 entries */, 1024) = 48 >> getdents64(3, /* 0 entries */, 1024) = 0 >> close(3) = 0 >> open("/dev/usb", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|0x80000) = >> -1 ENOENT (No such file or directory) >> fstat64(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 6), ...}) = 0 >> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, >> 0) = 0xb8092000 >> write(1, "initialise_usb failed\n", 22initialise_usb failed >> ) = 22 >> write(2, "Error: ListDevices: NONE\n\n", 26Error: ListDevices: NONE >> >> ) = 26 >> write(2, "Runtime error, file \"command.c\","..., 47Runtime error, file >> "command.c", line 456: >> ) = 47 >> exit_group(1) >> >> cea05:/home/thackerp/cartesio/eclipse/trunk # openocd -d 3 -f >> jtagkey-tiny.cfg >> Open On-Chip Debugger 0.1.0 (2009-05-21-09:56) Release >> >> >> BUGS? Read http://svn.berlios.de/svnroot/repos/openocd/trunk/BUGS >> >> >> $URL: >> https://kc8...@svn.berlios.de/svnroot/repos/openocd/tags/openocd-0.1.0/src/openocd.c >> >> >> $ >> User : 5 0 command.c:494 command_run_line(): >> Debug: 6 0 configuration.c:88 find_file(): found jtagkey-tiny.cfg >> Debug: 8 0 command.c:91 script_command(): script_command - interface >> Debug: 9 0 command.c:108 script_command(): script_command - interface, >> argv[0]=ocd_interface >> Debug: 10 0 command.c:108 script_command(): script_command - interface, >> argv[1]=ft2232 >> Debug: 12 0 command.c:91 script_command(): script_command - >> ft2232_device_desc >> Debug: 13 0 command.c:108 script_command(): script_command - >> ft2232_device_desc, argv[0]=ocd_ft2232_device_desc >> Debug: 14 0 command.c:108 script_command(): script_command - >> ft2232_device_desc, argv[1]=Amontec JTAGkey A >> Debug: 16 0 command.c:91 script_command(): script_command - ft2232_layout >> Debug: 17 0 command.c:108 script_command(): script_command - >> ft2232_layout, argv[0]=ocd_ft2232_layout >> Debug: 18 0 command.c:108 script_command(): script_command - >> ft2232_layout, argv[1]=jtagkey >> Debug: 20 0 command.c:91 script_command(): script_command - >> ft2232_vid_pid >> Debug: 21 0 command.c:108 script_command(): script_command - >> ft2232_vid_pid, argv[0]=ocd_ft2232_vid_pid >> Debug: 22 0 command.c:108 script_command(): script_command - >> ft2232_vid_pid, argv[1]=0x0403 >> Debug: 23 0 command.c:108 script_command(): script_command - >> ft2232_vid_pid, argv[2]=0xcff8 >> User : 24 0 command.c:494 command_run_line(): >> Debug: 26 0 command.c:91 script_command(): script_command - init >> Debug: 27 0 command.c:108 script_command(): script_command - init, >> argv[0]=ocd_init >> Debug: 28 0 openocd.c:144 handle_init_command(): target init complete >> Debug: 29 0 ft2232.c:1463 ft2232_init_ftd2xx(): 'ft2232' interface using >> FTD2XX with 'jtagkey' layout (0403:cff8) >> Error: 30 1 ft2232.c:1506 ft2232_init_ftd2xx(): unable to open ftdi >> device: 18 >> initialise_usb failed >> Error: 31 1 ft2232.c:1532 ft2232_init_ftd2xx(): ListDevices: NONE >> >> Debug: 32 1 command.c:427 run_command(): Command failed with error >> code -100 >> User : 33 1 command.c:626 openocd_jim_vfprintf(): Runtime error, file >> "command.c", line 456: >> User : 34 1 command.c:626 openocd_jim_vfprintf(): >> >> Same error when run as root. FTDI device shows up under lsusb: >> >> thack...@cea05:~/cartesio/eclipse/trunk> lsusb >> Bus 003 Device 002: ID 046d:c315 Logitech, Inc. Classic New Touch >> Keyboard >> Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub >> Bus 002 Device 003: ID 0bc2:0502 Seagate RSS LLC >> Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub >> Bus 001 Device 004: ID 0403:cff8 Future Technology Devices >> International, Ltd >> Bus 001 Device 002: ID 045e:0040 Microsoft Corp. Wheel Mouse Optical >> Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub >> >> I have no /dev/usb. Do I need some kind of udev rule to create it? >> Anybody see this before? >> >> Thanks, >> Paul >> _______________________________________________ >> Openocd-development mailing list >> Openocd-development@lists.berlios.de >> https://lists.berlios.de/mailman/listinfo/openocd-development > _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development