On Sun, Feb 28, 2010 at 3:09 PM, Xiaofan Chen <xiaof...@gmail.com> wrote:
> On Sun, Feb 28, 2010 at 3:00 PM, Xiaofan Chen <xiaof...@gmail.com> wrote:
>>> Somehow the latest git is broken.
> Hmm, latest git works under Arch Linux. Need to check back
> Ubuntu 9.10 64bit later.

Under Ubuntu 9.10 64bit, it is still broken.

mc...@ubuntu64:~/Desktop/build/openocd/lm3s1968$ openocd -f
board/ek-lm3s1968.cfg
Open On-Chip Debugger 0.5.0-dev-00026-g6376334 (2010-02-28-15:13)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.berlios.de/doc/doxygen/bugs.html
3000 kHz
jtag_nsrst_delay: 100
srst_only separate srst_gates_jtag srst_open_drain
Error: unable to select FT2232 channel A: USB device unavailable
Command handler execution failed

The permission is correct.
mc...@ubuntu64:~/Desktop/build/openocd/lm3s1968$ lsusb
Bus 001 Device 009: ID 0403:bcd9 Future Technology Devices
International, Ltd Stellaris Evaluation Board

mc...@ubuntu64:~/Desktop/build/openocd/lm3s1968$ ls -la /dev/bus/usb/001/009
crw-rw-rw- 1 root root 189, 8 2010-02-28 15:11 /dev/bus/usb/001/009

Anyway, sudo does not help either so it is not a permission problem.
mc...@ubuntu64:~/Desktop/build/openocd/lm3s1968$ sudo openocd -f
board/ek-lm3s1968.cfg
Open On-Chip Debugger 0.5.0-dev-00026-g6376334 (2010-02-28-15:13)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.berlios.de/doc/doxygen/bugs.html
3000 kHz
jtag_nsrst_delay: 100
srst_only separate srst_gates_jtag srst_open_drain
Error: unable to select FT2232 channel A: USB device unavailable
Command handler execution failed

mc...@ubuntu64:~/Desktop/build/openocd/lm3s1968$ openocd -d3 -f
board/ek-lm3s1968.cfg
Open On-Chip Debugger 0.5.0-dev-00026-g6376334 (2010-02-28-15:13)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.berlios.de/doc/doxygen/bugs.html
User : 10 3 command.c:539 command_print(): debug_level: 3
Debug: 11 3 configuration.c:45 add_script_search_dir(): adding
/home/mcuee/.openocd
Debug: 12 3 configuration.c:45 add_script_search_dir(): adding
/usr/local/share/openocd/site
Debug: 13 3 configuration.c:45 add_script_search_dir(): adding
/usr/local/share/openocd/scripts
Debug: 14 3 configuration.c:87 find_file(): found
/usr/local/share/openocd/scripts/board/ek-lm3s1968.cfg
Debug: 15 3 configuration.c:87 find_file(): found
/usr/local/share/openocd/scripts/interface/luminary.cfg
Debug: 16 3 command.c:133 script_debug(): command - ocd_command
ocd_command type ocd_interface ft2232
Debug: 17 3 command.c:133 script_debug(): command - interface
ocd_interface ft2232
Debug: 19 3 command.c:346 register_command_handler(): registering
'ocd_ft2232_device_desc'...
Debug: 20 3 command.c:346 register_command_handler(): registering
'ocd_ft2232_serial'...
Debug: 21 3 command.c:346 register_command_handler(): registering
'ocd_ft2232_layout'...
Debug: 22 3 command.c:346 register_command_handler(): registering
'ocd_ft2232_vid_pid'...
Debug: 23 3 command.c:346 register_command_handler(): registering
'ocd_ft2232_latency'...
Debug: 24 3 command.c:133 script_debug(): command - ocd_command
ocd_command type ocd_ft2232_device_desc Stellaris Evaluation Board
Debug: 25 3 command.c:133 script_debug(): command - ft2232_device_desc
ocd_ft2232_device_desc Stellaris Evaluation Board
Debug: 27 4 command.c:133 script_debug(): command - ocd_command
ocd_command type ocd_ft2232_layout luminary_icdi
Debug: 28 4 command.c:133 script_debug(): command - ft2232_layout
ocd_ft2232_layout luminary_icdi
Debug: 30 4 command.c:133 script_debug(): command - ocd_command
ocd_command type ocd_ft2232_vid_pid 0x0403 0xbcd9
Debug: 31 4 command.c:133 script_debug(): command - ft2232_vid_pid
ocd_ft2232_vid_pid 0x0403 0xbcd9
Debug: 33 4 configuration.c:87 find_file(): found
/usr/local/share/openocd/scripts/target/lm3s1968.cfg
Debug: 34 4 command.c:133 script_debug(): command - ocd_command
ocd_command type ocd_jtag newtap lm3s1968 cpu -irlen 4 -ircapture 1
-irmask 0xf -expected-id 0x3ba00477
Debug: 35 4 command.c:133 script_debug(): command - ocd_jtag ocd_jtag
newtap lm3s1968 cpu -irlen 4 -ircapture 1 -irmask 0xf -expected-id
0x3ba00477
Debug: 36 4 tcl.c:568 jim_newtap_cmd(): Creating New Tap, Chip:
lm3s1968, Tap: cpu, Dotted: lm3s1968.cpu, 8 params
Debug: 37 4 tcl.c:585 jim_newtap_cmd(): Processing option: -irlen
Debug: 38 4 tcl.c:585 jim_newtap_cmd(): Processing option: -ircapture
Debug: 39 4 tcl.c:585 jim_newtap_cmd(): Processing option: -irmask
Debug: 40 4 tcl.c:585 jim_newtap_cmd(): Processing option: -expected-id
Debug: 41 4 core.c:1329 jtag_tap_init(): Created Tap: lm3s1968.cpu @
abs position 0, irlen 4, capture: 0x1 mask: 0xf
Debug: 42 4 command.c:133 script_debug(): command - ocd_command
ocd_command type ocd_target create lm3s1968.cpu cortex_m3
-chain-position lm3s1968.cpu -variant lm3s
Debug: 43 4 command.c:133 script_debug(): command - ocd_target
ocd_target create lm3s1968.cpu cortex_m3 -chain-position lm3s1968.cpu
-variant lm3s
Debug: 44 4 command.c:346 register_command_handler(): registering 'ocd_dap'...
Debug: 45 4 command.c:346 register_command_handler(): registering 'ocd_dap'...
Debug: 46 4 command.c:346 register_command_handler(): registering 'ocd_dap'...
Debug: 47 4 command.c:346 register_command_handler(): registering 'ocd_dap'...
Debug: 48 4 command.c:346 register_command_handler(): registering 'ocd_dap'...
Debug: 49 4 command.c:346 register_command_handler(): registering
'ocd_cortex_m3'...
Debug: 50 4 command.c:346 register_command_handler(): registering
'ocd_cortex_m3'...
Debug: 51 4 command.c:346 register_command_handler(): registering
'ocd_cortex_m3'...
Debug: 52 4 command.c:346 register_command_handler(): registering
'ocd_lm3s1968.cpu'...
Debug: 53 5 command.c:346 register_command_handler(): registering
'ocd_lm3s1968.cpu'...
Debug: 54 5 command.c:346 register_command_handler(): registering
'ocd_lm3s1968.cpu'...
Debug: 55 5 command.c:346 register_command_handler(): registering
'ocd_lm3s1968.cpu'...
Debug: 56 5 command.c:346 register_command_handler(): registering
'ocd_lm3s1968.cpu'...
Debug: 57 5 command.c:346 register_command_handler(): registering
'ocd_lm3s1968.cpu'...
Debug: 58 5 command.c:346 register_command_handler(): registering
'ocd_lm3s1968.cpu'...
Debug: 59 5 command.c:346 register_command_handler(): registering
'ocd_lm3s1968.cpu'...
Debug: 60 5 command.c:346 register_command_handler(): registering
'ocd_lm3s1968.cpu'...
Debug: 61 5 command.c:346 register_command_handler(): registering
'ocd_lm3s1968.cpu'...
Debug: 62 5 command.c:346 register_command_handler(): registering
'ocd_lm3s1968.cpu'...
Debug: 63 5 command.c:346 register_command_handler(): registering
'ocd_lm3s1968.cpu'...
Debug: 64 5 command.c:346 register_command_handler(): registering
'ocd_lm3s1968.cpu'...
Debug: 65 5 command.c:346 register_command_handler(): registering
'ocd_lm3s1968.cpu'...
Debug: 66 5 command.c:346 register_command_handler(): registering
'ocd_lm3s1968.cpu'...
Debug: 67 5 command.c:346 register_command_handler(): registering
'ocd_lm3s1968.cpu'...
Debug: 68 5 command.c:346 register_command_handler(): registering
'ocd_lm3s1968.cpu'...
Debug: 69 5 command.c:346 register_command_handler(): registering
'ocd_lm3s1968.cpu'...
Debug: 70 5 command.c:346 register_command_handler(): registering
'ocd_lm3s1968.cpu'...
Debug: 71 5 command.c:346 register_command_handler(): registering
'ocd_lm3s1968.cpu'...
Debug: 72 9 command.c:346 register_command_handler(): registering
'ocd_lm3s1968.cpu'...
Debug: 73 9 command.c:346 register_command_handler(): registering
'ocd_lm3s1968.cpu'...
Debug: 74 9 command.c:346 register_command_handler(): registering
'ocd_lm3s1968.cpu'...
Debug: 75 9 command.c:346 register_command_handler(): registering
'ocd_lm3s1968.cpu'...
Debug: 76 9 command.c:346 register_command_handler(): registering
'ocd_lm3s1968.cpu'...
Debug: 77 9 command.c:346 register_command_handler(): registering
'ocd_lm3s1968.cpu'...
Debug: 78 9 command.c:346 register_command_handler(): registering
'ocd_lm3s1968.cpu'...
Debug: 79 9 command.c:346 register_command_handler(): registering
'ocd_lm3s1968.cpu'...
Debug: 80 9 command.c:346 register_command_handler(): registering
'ocd_lm3s1968.cpu'...
Debug: 81 9 command.c:133 script_debug(): command - ocd_command
ocd_command type ocd_lm3s1968.cpu configure -work-area-phys 0x20000000
-work-area-size 0x2000
Debug: 82 9 command.c:133 script_debug(): command - ocd_lm3s1968.cpu
ocd_lm3s1968.cpu configure -work-area-phys 0x20000000 -work-area-size
0x2000
Debug: 83 9 command.c:133 script_debug(): command - ocd_command
ocd_command type ocd_flash bank lm3s1968.flash stellaris 0 0 0 0
lm3s1968.cpu
Debug: 84 9 command.c:133 script_debug(): command - ocd_flash
ocd_flash bank lm3s1968.flash stellaris 0 0 0 0 lm3s1968.cpu
Debug: 86 9 command.c:346 register_command_handler(): registering
'ocd_stellaris'...
Debug: 87 9 command.c:346 register_command_handler(): registering
'ocd_stellaris'...
Debug: 88 9 command.c:133 script_debug(): command - ocd_command
ocd_command type ocd_jtag_khz 3000
Debug: 89 9 command.c:133 script_debug(): command - jtag_khz ocd_jtag_khz 3000
Debug: 91 9 core.c:1589 jtag_config_khz(): handle jtag khz
Debug: 92 9 core.c:1552 jtag_khz_to_speed(): convert khz to interface
specific speed value
User : 93 9 command.c:539 command_print(): 3000 kHz
Debug: 94 9 command.c:133 script_debug(): command - ocd_command
ocd_command type ocd_jtag_nsrst_delay 100
Debug: 95 9 command.c:133 script_debug(): command - jtag_nsrst_delay
ocd_jtag_nsrst_delay 100
User : 97 9 command.c:539 command_print(): jtag_nsrst_delay: 100
Debug: 98 9 command.c:133 script_debug(): command - ocd_command
ocd_command type ocd_reset_config srst_only
Debug: 99 10 command.c:133 script_debug(): command - reset_config
ocd_reset_config srst_only
User : 101 10 command.c:539 command_print(): srst_only separate
srst_gates_jtag srst_open_drain
Debug: 102 10 httpd_stubs.c:28 httpd_start(): libocdserver was built
without HTTPD support
Debug: 103 10 command.c:133 script_debug(): command - ocd_command
ocd_command type ocd_init
Debug: 104 10 command.c:133 script_debug(): command - init ocd_init
Debug: 106 10 command.c:133 script_debug(): command - ocd_command
ocd_command type ocd_target init
Debug: 107 10 command.c:133 script_debug(): command - ocd_target ocd_target init
Debug: 109 10 target.c:835 handle_target_init_command(): Initializing targets...
Debug: 110 10 command.c:346 register_command_handler(): registering
'ocd_target_request'...
Debug: 111 10 command.c:346 register_command_handler(): registering
'ocd_trace'...
Debug: 112 10 command.c:346 register_command_handler(): registering
'ocd_trace'...
Debug: 113 10 command.c:346 register_command_handler(): registering
'ocd_fast_load_image'...
Debug: 114 10 command.c:346 register_command_handler(): registering
'ocd_fast_load'...
Debug: 115 10 command.c:346 register_command_handler(): registering
'ocd_profile'...
Debug: 116 10 command.c:346 register_command_handler(): registering
'ocd_virt2phys'...
Debug: 117 10 command.c:346 register_command_handler(): registering 'ocd_reg'...
Debug: 118 10 command.c:346 register_command_handler(): registering
'ocd_poll'...
Debug: 119 10 command.c:346 register_command_handler(): registering
'ocd_wait_halt'...
Debug: 120 10 command.c:346 register_command_handler(): registering
'ocd_halt'...
Debug: 121 10 command.c:346 register_command_handler(): registering
'ocd_resume'...
Debug: 122 10 command.c:346 register_command_handler(): registering
'ocd_reset'...
Debug: 123 10 command.c:346 register_command_handler(): registering
'ocd_soft_reset_halt'...
Debug: 124 10 command.c:346 register_command_handler(): registering
'ocd_step'...
Debug: 125 10 command.c:346 register_command_handler(): registering 'ocd_mdw'...
Debug: 126 10 command.c:346 register_command_handler(): registering 'ocd_mdh'...
Debug: 127 10 command.c:346 register_command_handler(): registering 'ocd_mdb'...
Debug: 128 10 command.c:346 register_command_handler(): registering 'ocd_mww'...
Debug: 129 10 command.c:346 register_command_handler(): registering 'ocd_mwh'...
Debug: 130 10 command.c:346 register_command_handler(): registering 'ocd_mwb'...
Debug: 131 10 command.c:346 register_command_handler(): registering 'ocd_bp'...
Debug: 132 10 command.c:346 register_command_handler(): registering 'ocd_rbp'...
Debug: 133 10 command.c:346 register_command_handler(): registering 'ocd_wp'...
Debug: 134 10 command.c:346 register_command_handler(): registering 'ocd_rwp'...
Debug: 135 10 command.c:346 register_command_handler(): registering
'ocd_load_image'...
Debug: 136 10 command.c:346 register_command_handler(): registering
'ocd_dump_image'...
Debug: 137 10 command.c:346 register_command_handler(): registering
'ocd_verify_image'...
Debug: 138 10 command.c:346 register_command_handler(): registering
'ocd_test_image'...
Debug: 139 11 command.c:346 register_command_handler(): registering
'ocd_reset_nag'...
Debug: 140 11 ft2232.c:2265 ft2232_init(): ft2232 interface using
shortest path jtag state transitions
Debug: 141 11 ft2232.c:2176 ft2232_init_libftdi(): 'ft2232' interface
using libftdi with 'luminary_icdi' layout (0403:bcd9)
Error: 142 11 ft2232.c:2186 ft2232_init_libftdi(): unable to select
FT2232 channel A: USB device unavailable
Debug: 143 11 command.c:620 run_command(): Command failed with error code -100
User : 144 11 command.c:824 openocd_jim_vfprintf(): Command handler
execution failed
User : 147 26 command.c:824 openocd_jim_vfprintf():
User : 149 26 command.c:824 openocd_jim_vfprintf():

-- 
Xiaofan http://mcuee.blogspot.com
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to