|
From: Xiaofan C. <xia...@gm...> - 2012-05-13 10:13:05
|
On Sun, May 13, 2012 at 6:10 PM, Xiaofan Chen <xia...@gm...> wrote: > Just wondering what is the minimum kernel version to > ignore the device for usb-storage, I am running Ubuntu 12.04 > (kernel 3.2.0-24) and it still does not ignore the device. > > On the other hand, it is possible to manually detach the > driver using the instruction from Alan Stern. However, it still does not work after detaching the kernel usb-storage driver. mcuee@GX620Ubuntu:~/Desktop/build/openocd/stlink$ sudo openocd -f board/stm32ldiscovery.cfg Open On-Chip Debugger 0.6.0-dev-00549-g47cf0aa (2012-05-10-21:06) Licensed under GNU GPL v2 For bug reports, read http://openocd.sourceforge.net/doc/doxygen/bugs.html 1000 kHz Info : clock speed 1000 kHz Error: open failed in procedure 'transport' in procedure 'init' mcuee@GX620Ubuntu:~/Desktop/build/openocd/stlink$ sudo openocd -d3 -f board/stm32ldiscovery.cfg Open On-Chip Debugger 0.6.0-dev-00549-g47cf0aa (2012-05-10-21:06) Licensed under GNU GPL v2 For bug reports, read http://openocd.sourceforge.net/doc/doxygen/bugs.html User : 11 4 command.c:547 command_print(): debug_level: 3 Debug: 12 4 configuration.c:45 add_script_search_dir(): adding /home/mcuee/.openocd Debug: 13 4 configuration.c:45 add_script_search_dir(): adding /usr/local/share/openocd/site Debug: 14 4 configuration.c:45 add_script_search_dir(): adding /usr/local/share/openocd/scripts Debug: 15 5 configuration.c:86 find_file(): found /usr/local/share/openocd/scripts/board/stm32ldiscovery.cfg Debug: 16 5 configuration.c:86 find_file(): found /usr/local/share/openocd/scripts/interface/stlink-v2.cfg Debug: 17 5 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_interface stlink Debug: 18 5 command.c:145 script_debug(): command - interface ocd_interface stlink Debug: 20 5 command.c:367 register_command_handler(): registering 'ocd_stlink_device_desc'... Debug: 21 5 command.c:367 register_command_handler(): registering 'ocd_stlink_serial'... Debug: 22 5 command.c:367 register_command_handler(): registering 'ocd_stlink_layout'... Debug: 23 5 command.c:367 register_command_handler(): registering 'ocd_stlink_vid_pid'... Debug: 24 5 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_stlink_layout usb Debug: 25 6 command.c:145 script_debug(): command - stlink_layout ocd_stlink_layout usb Debug: 27 6 stlink_interface.c:161 stlink_interface_handle_layout_command(): stlink_interface_handle_layout_command Debug: 28 6 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_stlink_device_desc ST-LINK/V2 Debug: 29 6 command.c:145 script_debug(): command - stlink_device_desc ocd_stlink_device_desc ST-LINK/V2 Debug: 31 6 stlink_interface.c:133 stlink_interface_handle_device_desc_command(): stlink_interface_handle_device_desc_command Debug: 32 6 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_stlink_vid_pid 0x0483 0x3748 Debug: 33 6 command.c:145 script_debug(): command - stlink_vid_pid ocd_stlink_vid_pid 0x0483 0x3748 Debug: 35 6 stlink_interface.c:189 stlink_interface_handle_vid_pid_command(): stlink_interface_handle_vid_pid_command Debug: 36 6 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_adapter_khz 1000 Debug: 37 6 command.c:145 script_debug(): command - adapter_khz ocd_adapter_khz 1000 Debug: 39 6 core.c:1625 jtag_config_khz(): handle jtag khz Debug: 40 6 core.c:1592 adapter_khz_to_speed(): convert khz to interface specific speed value Debug: 41 6 core.c:1592 adapter_khz_to_speed(): convert khz to interface specific speed value User : 42 7 command.c:547 command_print(): 1000 kHz Debug: 43 7 configuration.c:86 find_file(): found /usr/local/share/openocd/scripts/target/stm32lx_stlink.cfg Debug: 44 7 configuration.c:86 find_file(): found /usr/local/share/openocd/scripts/target/stm32_stlink.cfg Debug: 45 7 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_transport select stlink_swd Debug: 46 7 command.c:145 script_debug(): command - ocd_transport ocd_transport select stlink_swd Debug: 47 7 stlink_transport.c:179 stlink_transport_select(): stlink_transport_select Debug: 48 7 command.c:367 register_command_handler(): registering 'ocd_stlink'... Debug: 49 7 command.c:367 register_command_handler(): registering 'ocd_jtag'... Debug: 50 7 command.c:367 register_command_handler(): registering 'ocd_jtag'... Debug: 51 7 command.c:367 register_command_handler(): registering 'ocd_jtag'... Debug: 52 8 command.c:367 register_command_handler(): registering 'ocd_jtag'... Debug: 53 8 command.c:367 register_command_handler(): registering 'ocd_jtag'... Debug: 54 8 command.c:367 register_command_handler(): registering 'ocd_jtag'... Debug: 55 8 command.c:367 register_command_handler(): registering 'ocd_jtag'... Debug: 56 8 command.c:367 register_command_handler(): registering 'ocd_jtag'... Debug: 57 8 command.c:367 register_command_handler(): registering 'ocd_jtag'... Debug: 58 8 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_stlink newtap stm32lx cpu -expected-id 0x2ba01477 Debug: 59 8 command.c:145 script_debug(): command - ocd_stlink ocd_stlink newtap stm32lx cpu -expected-id 0x2ba01477 Debug: 60 8 stlink_tcl.c:101 jim_stlink_newtap_cmd(): Creating New Tap, Chip: stm32lx, Tap: cpu, Dotted: stm32lx.cpu, 2 params Debug: 61 8 stlink_tcl.c:111 jim_stlink_newtap_cmd(): Processing option: -expected-id Debug: 62 8 core.c:1322 jtag_tap_init(): Created Tap: stm32lx.cpu @ abs position 0, irlen 0, capture: 0x0 mask: 0x0 Debug: 63 8 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_target create stm32lx.cpu stm32_stlink -chain-position stm32lx.cpu Debug: 64 8 command.c:145 script_debug(): command - ocd_target ocd_target create stm32lx.cpu stm32_stlink -chain-position stm32lx.cpu Debug: 65 8 target.c:1611 target_free_all_working_areas_restore(): freeing all working areas Debug: 66 8 stm32_stlink.c:298 stm32_stlink_target_create(): stm32_stlink_target_create Debug: 67 8 stm32_stlink.c:272 stm32_stlink_init_arch_info(): stm32_stlink_init_arch_info Debug: 68 8 command.c:367 register_command_handler(): registering 'ocd_stm32lx.cpu'... Debug: 69 9 command.c:367 register_command_handler(): registering 'ocd_stm32lx.cpu'... Debug: 70 9 command.c:367 register_command_handler(): registering 'ocd_stm32lx.cpu'... Debug: 71 9 command.c:367 register_command_handler(): registering 'ocd_stm32lx.cpu'... Debug: 72 9 command.c:367 register_command_handler(): registering 'ocd_stm32lx.cpu'... Debug: 73 9 command.c:367 register_command_handler(): registering 'ocd_stm32lx.cpu'... Debug: 74 9 command.c:367 register_command_handler(): registering 'ocd_stm32lx.cpu'... Debug: 75 9 command.c:367 register_command_handler(): registering 'ocd_stm32lx.cpu'... Debug: 76 9 command.c:367 register_command_handler(): registering 'ocd_stm32lx.cpu'... Debug: 77 9 command.c:367 register_command_handler(): registering 'ocd_stm32lx.cpu'... Debug: 78 9 command.c:367 register_command_handler(): registering 'ocd_stm32lx.cpu'... Debug: 79 9 command.c:367 register_command_handler(): registering 'ocd_stm32lx.cpu'... Debug: 80 9 command.c:367 register_command_handler(): registering 'ocd_stm32lx.cpu'... Debug: 81 9 command.c:367 register_command_handler(): registering 'ocd_stm32lx.cpu'... Debug: 82 9 command.c:367 register_command_handler(): registering 'ocd_stm32lx.cpu'... Debug: 83 9 command.c:367 register_command_handler(): registering 'ocd_stm32lx.cpu'... Debug: 84 9 command.c:367 register_command_handler(): registering 'ocd_stm32lx.cpu'... Debug: 85 9 command.c:367 register_command_handler(): registering 'ocd_stm32lx.cpu'... Debug: 86 9 command.c:367 register_command_handler(): registering 'ocd_stm32lx.cpu'... Debug: 87 9 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_stm32lx.cpu configure -work-area-phys 0x20000000 -work-area-size 0x3800 -work-area-backup 0 Debug: 88 9 command.c:145 script_debug(): command - ocd_stm32lx.cpu ocd_stm32lx.cpu configure -work-area-phys 0x20000000 -work-area-size 0x3800 -work-area-backup 0 Debug: 89 9 target.c:1611 target_free_all_working_areas_restore(): freeing all working areas Debug: 90 10 target.c:1611 target_free_all_working_areas_restore(): freeing all working areas Debug: 91 10 target.c:1611 target_free_all_working_areas_restore(): freeing all working areas Debug: 92 10 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_flash bank stm32lx.flash stm32lx 0 0 0 0 stm32lx.cpu Debug: 93 10 command.c:145 script_debug(): command - ocd_flash ocd_flash bank stm32lx.flash stm32lx 0 0 0 0 stm32lx.cpu Debug: 95 10 tcl.c:780 handle_flash_bank_command(): 'stm32lx' driver usage field missing Debug: 96 10 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_init Debug: 97 10 command.c:145 script_debug(): command - init ocd_init Debug: 99 10 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_target init Debug: 100 10 command.c:145 script_debug(): command - ocd_target ocd_target init Debug: 102 10 target.c:1174 handle_target_init_command(): Initializing targets... Debug: 103 10 stm32_stlink.c:288 stm32_stlink_init_target(): stm32_stlink_init_target Debug: 104 10 command.c:367 register_command_handler(): registering 'ocd_target_request'... Debug: 105 10 command.c:367 register_command_handler(): registering 'ocd_trace'... Debug: 106 10 command.c:367 register_command_handler(): registering 'ocd_trace'... Debug: 107 10 command.c:367 register_command_handler(): registering 'ocd_fast_load_image'... Debug: 108 10 command.c:367 register_command_handler(): registering 'ocd_fast_load'... Debug: 109 10 command.c:367 register_command_handler(): registering 'ocd_profile'... Debug: 110 10 command.c:367 register_command_handler(): registering 'ocd_virt2phys'... Debug: 111 10 command.c:367 register_command_handler(): registering 'ocd_reg'... Debug: 112 11 command.c:367 register_command_handler(): registering 'ocd_poll'... Debug: 113 11 command.c:367 register_command_handler(): registering 'ocd_wait_halt'... Debug: 114 11 command.c:367 register_command_handler(): registering 'ocd_halt'... Debug: 115 11 command.c:367 register_command_handler(): registering 'ocd_resume'... Debug: 116 11 command.c:367 register_command_handler(): registering 'ocd_reset'... Debug: 117 11 command.c:367 register_command_handler(): registering 'ocd_soft_reset_halt'... Debug: 118 11 command.c:367 register_command_handler(): registering 'ocd_step'... Debug: 119 11 command.c:367 register_command_handler(): registering 'ocd_mdw'... Debug: 120 11 command.c:367 register_command_handler(): registering 'ocd_mdh'... Debug: 121 11 command.c:367 register_command_handler(): registering 'ocd_mdb'... Debug: 122 11 command.c:367 register_command_handler(): registering 'ocd_mww'... Debug: 123 11 command.c:367 register_command_handler(): registering 'ocd_mwh'... Debug: 124 11 command.c:367 register_command_handler(): registering 'ocd_mwb'... Debug: 125 11 command.c:367 register_command_handler(): registering 'ocd_bp'... Debug: 126 11 command.c:367 register_command_handler(): registering 'ocd_rbp'... Debug: 127 11 command.c:367 register_command_handler(): registering 'ocd_wp'... Debug: 128 11 command.c:367 register_command_handler(): registering 'ocd_rwp'... Debug: 129 11 command.c:367 register_command_handler(): registering 'ocd_load_image'... Debug: 130 11 command.c:367 register_command_handler(): registering 'ocd_dump_image'... Debug: 131 11 command.c:367 register_command_handler(): registering 'ocd_verify_image'... Debug: 132 11 command.c:367 register_command_handler(): registering 'ocd_test_image'... Debug: 133 11 command.c:367 register_command_handler(): registering 'ocd_reset_nag'... Debug: 134 11 command.c:367 register_command_handler(): registering 'ocd_ps'... Debug: 135 11 stlink_interface.c:92 stlink_interface_init(): stlink_interface_init Debug: 136 11 stlink_layout.c:88 stlink_layout_init(): stlink_layout_init Debug: 137 11 core.c:1592 adapter_khz_to_speed(): convert khz to interface specific speed value Debug: 138 11 core.c:1595 adapter_khz_to_speed(): have interface set up Debug: 139 12 stlink_interface.c:107 stlink_interface_speed(): stlink_interface_speed: ignore speed 1000 Debug: 140 12 core.c:1592 adapter_khz_to_speed(): convert khz to interface specific speed value Debug: 141 12 core.c:1595 adapter_khz_to_speed(): have interface set up Info : 142 12 core.c:1399 adapter_init(): clock speed 1000 kHz Debug: 143 12 openocd.c:132 handle_init_command(): Debug Adapter init complete Debug: 144 12 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_transport init Debug: 145 12 command.c:145 script_debug(): command - ocd_transport ocd_transport init Debug: 147 12 transport.c:240 handle_transport_init(): handle_transport_init Debug: 148 12 stlink_transport.c:140 stlink_transport_init(): stlink_transport_init Debug: 149 12 stlink_transport.c:157 stlink_transport_init(): current transport stlink_swd Debug: 150 12 stlink_interface.c:41 stlink_interface_open(): stlink_interface_open Debug: 151 12 stlink_layout.c:43 stlink_layout_open(): stlink_layout_open Debug: 152 12 stlink_usb.c:1137 stlink_usb_open(): stlink_usb_open Debug: 153 12 stlink_usb.c:1152 stlink_usb_open(): transport: 1 vid: 0x0483 pid: 0x3748 Error: 154 14 stlink_usb.c:1155 stlink_usb_open(): open failed Debug: 155 14 stlink_layout.c:50 stlink_layout_open(): failed Debug: 156 14 command.c:628 run_command(): Command failed with error code -4 User : 157 14 command.c:666 command_run_line(): in procedure 'transport' Debug: 158 14 command.c:628 run_command(): Command failed with error code -4 User : 159 14 command.c:666 command_run_line(): in procedure 'init' Debug: 160 14 stlink_interface.c:100 stlink_interface_quit(): stlink_interface_quit -- Xiaofan |