Skip to content

Instantly share code, notes, and snippets.

@tosiara
Last active June 23, 2019 11:38
Show Gist options
  • Save tosiara/b32acc22f340e02e86c548ce297cfa97 to your computer and use it in GitHub Desktop.
Save tosiara/b32acc22f340e02e86c548ce297cfa97 to your computer and use it in GitHub Desktop.
Info : auto-selecting first available session transport "jtag". To override use 'transport select <transport>'.
jtag_ntrst_assert_width: 200
jtag_ntrst_delay: 1
trst_only separate trst_push_pull
adapter speed: 6000 kHz
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : clock speed 6000 kHz
Info : JTAG tap: ath79.cpu tap/device found: 0x00000001 (mfg: 0x000 (<invalid>), part: 0x0000, ver: 0x0)
Info : Listening on port 3333 for gdb connections
Info : accepting 'telnet' connection on tcp/4444
User : 42 30059 command.c:544 command_print(): debug_level: 4
Debug: 43 96377 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_reset
Debug: 44 96377 command.c:143 script_debug(): command - reset ocd_reset
Debug: 46 96378 target.c:1592 target_call_reset_callbacks(): target reset 1 (run)
Debug: 47 96378 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_target names
Debug: 48 96378 command.c:143 script_debug(): command - ocd_target ocd_target names
Debug: 49 96378 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_ath79.cpu invoke-event reset-start
Debug: 50 96378 command.c:143 script_debug(): command - ocd_ath79.cpu ocd_ath79.cpu invoke-event reset-start
Debug: 51 96378 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_transport select
Debug: 52 96378 command.c:143 script_debug(): command - ocd_transport ocd_transport select
Debug: 53 96378 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_jtag arp_init-reset
Debug: 54 96378 command.c:143 script_debug(): command - ocd_jtag ocd_jtag arp_init-reset
Debug: 55 96378 core.c:1521 jtag_init_reset(): Initializing with hard TRST+SRST reset
Debug: 56 96380 core.c:748 jtag_add_reset(): TRST line asserted
Debug: 57 96599 core.c:753 jtag_add_reset(): TRST line released
Debug: 58 96599 core.c:327 jtag_call_event_callbacks(): jtag event: TAP reset
Debug: 59 96601 core.c:1407 jtag_init_inner(): Init JTAG chain
Debug: 60 96601 core.c:327 jtag_call_event_callbacks(): jtag event: TAP reset
Debug: 61 96603 core.c:1060 jtag_examine_chain(): DR scan interrogation for IDCODE/BYPASS
Debug: 62 96603 core.c:327 jtag_call_event_callbacks(): jtag event: TAP reset
Debug: 63 96605 jep106.c:33 jep106_manufacturer(): BUG: Caller passed out-of-range JEP106 ID!
Info : 64 96605 core.c:959 jtag_examine_chain_display(): JTAG tap: ath79.cpu tap/device found: 0x00000001 (mfg: 0x000 (<invalid>), part: 0x0000, ver: 0x0)
Debug: 65 96605 core.c:1190 jtag_validate_ircapture(): IR capture validation scan
Debug: 66 96607 core.c:1248 jtag_validate_ircapture(): ath79.cpu: IR capture 0x01
Debug: 67 96607 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_transport select
Debug: 68 96607 command.c:143 script_debug(): command - ocd_transport ocd_transport select
Debug: 69 96607 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_ath79.cpu cget -chain-position
Debug: 70 96607 command.c:143 script_debug(): command - ocd_ath79.cpu ocd_ath79.cpu cget -chain-position
Debug: 71 96607 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_jtag tapisenabled ath79.cpu
Debug: 72 96607 command.c:143 script_debug(): command - ocd_jtag ocd_jtag tapisenabled ath79.cpu
Debug: 73 96607 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_ath79.cpu invoke-event examine-start
Debug: 74 96607 command.c:143 script_debug(): command - ocd_ath79.cpu ocd_ath79.cpu invoke-event examine-start
Debug: 75 96607 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_ath79.cpu arp_examine allow-defer
Debug: 76 96607 command.c:143 script_debug(): command - ocd_ath79.cpu ocd_ath79.cpu arp_examine allow-defer
Debug: 77 96609 mips_ejtag.c:357 mips_ejtag_init(): EJTAG: Version 3.1 Detected
Debug: 78 96609 mips_ejtag.c:317 ejtag_main_print_imp(): EJTAG main: features: ASID_8 MIPS16 noDMA MIPS32
Debug: 79 96609 mips_ejtag.c:307 ejtag_v26_print_imp(): EJTAG v2.6: features: R4k
Debug: 80 96609 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_ath79.cpu invoke-event examine-end
Debug: 81 96609 command.c:143 script_debug(): command - ocd_ath79.cpu ocd_ath79.cpu invoke-event examine-end
Debug: 82 96609 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_ath79.cpu invoke-event reset-assert-pre
Debug: 83 96609 command.c:143 script_debug(): command - ocd_ath79.cpu ocd_ath79.cpu invoke-event reset-assert-pre
Debug: 84 96609 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_transport select
Debug: 85 96609 command.c:143 script_debug(): command - ocd_transport ocd_transport select
Debug: 86 96609 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_ath79.cpu cget -chain-position
Debug: 87 96609 command.c:143 script_debug(): command - ocd_ath79.cpu ocd_ath79.cpu cget -chain-position
Debug: 88 96609 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_jtag tapisenabled ath79.cpu
Debug: 89 96609 command.c:143 script_debug(): command - ocd_jtag ocd_jtag tapisenabled ath79.cpu
Debug: 90 96609 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_ath79.cpu arp_reset assert 0
Debug: 91 96609 command.c:143 script_debug(): command - ocd_ath79.cpu ocd_ath79.cpu arp_reset assert 0
Debug: 92 96609 target.c:1998 target_free_all_working_areas_restore(): freeing all working areas
Debug: 93 96609 mips_m4k.c:316 mips_m4k_assert_reset(): target->state: running
Debug: 94 96610 mips_m4k.c:363 mips_m4k_assert_reset(): Using EJTAG reset (PRRST) to reset processor...
Debug: 95 96610 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_ath79.cpu invoke-event reset-assert-post
Debug: 96 96610 command.c:143 script_debug(): command - ocd_ath79.cpu ocd_ath79.cpu invoke-event reset-assert-post
Debug: 97 96610 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_ath79.cpu invoke-event reset-deassert-pre
Debug: 98 96610 command.c:143 script_debug(): command - ocd_ath79.cpu ocd_ath79.cpu invoke-event reset-deassert-pre
Debug: 99 96610 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_transport select
Debug: 100 96610 command.c:143 script_debug(): command - ocd_transport ocd_transport select
Debug: 101 96610 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_ath79.cpu cget -chain-position
Debug: 102 96610 command.c:143 script_debug(): command - ocd_ath79.cpu ocd_ath79.cpu cget -chain-position
Debug: 103 96610 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_jtag tapisenabled ath79.cpu
Debug: 104 96610 command.c:143 script_debug(): command - ocd_jtag ocd_jtag tapisenabled ath79.cpu
Debug: 105 96610 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_ath79.cpu arp_reset deassert 0
Debug: 106 96610 command.c:143 script_debug(): command - ocd_ath79.cpu ocd_ath79.cpu arp_reset deassert 0
Debug: 107 96610 target.c:1998 target_free_all_working_areas_restore(): freeing all working areas
Debug: 108 96610 mips_m4k.c:385 mips_m4k_deassert_reset(): target->state: reset
Debug: 109 96610 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_ath79.cpu invoke-event reset-deassert-post
Debug: 110 96610 command.c:143 script_debug(): command - ocd_ath79.cpu ocd_ath79.cpu invoke-event reset-deassert-post
Debug: 111 96610 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_ath79.cpu invoke-event reset-end
Debug: 112 96610 command.c:143 script_debug(): command - ocd_ath79.cpu ocd_ath79.cpu invoke-event reset-end
Debug: 113 105970 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_halt
Debug: 114 105970 command.c:143 script_debug(): command - halt ocd_halt
Debug: 116 105970 target.c:3008 handle_halt_command(): -
Debug: 117 105970 mips_m4k.c:271 mips_m4k_halt(): target->state: running
Debug: 118 105974 mips_ejtag.c:226 mips_ejtag_enter_debug(): ejtag_ctrl: 0x4004c008
Debug: 119 106424 mips_m4k.c:1028 mips_m4k_read_memory(): address: 0xff300000, size: 0x00000004, count: 0x00000001
Debug: 120 106466 target.c:2337 target_read_u32(): address: 0xff300000, value: 0x200303db
Debug: 121 106466 mips_m4k.c:1028 mips_m4k_read_memory(): address: 0xff301000, size: 0x00000004, count: 0x00000001
Debug: 123 106508 target.c:2337 target_read_u32(): address: 0xff301000, value: 0x44000000
Debug: 124 106508 target.c:2425 target_write_u32(): address: 0xff301000, value: 0x00000000
Debug: 125 106508 mips_m4k.c:1087 mips_m4k_write_memory(): address: 0xff301000, size: 0x00000004, count: 0x00000001
Debug: 126 106539 mips_m4k.c:1028 mips_m4k_read_memory(): address: 0xff302000, size: 0x00000004, count: 0x00000001
Debug: 127 106580 target.c:2337 target_read_u32(): address: 0xff302000, value: 0x42000000
Debug: 128 106581 target.c:2425 target_write_u32(): address: 0xff302000, value: 0x00000000
Debug: 129 106581 mips_m4k.c:1087 mips_m4k_write_memory(): address: 0xff302000, size: 0x00000004, count: 0x00000001
Debug: 130 106612 mips32.c:661 mips32_configure_break_unit(): DCR 0x200303db numinst 4 numdata 2
Debug: 131 106760 mips32.c:723 mips32_read_config_regs(): read 4 config registers
User : 132 106760 mips32.c:727 mips32_read_config_regs(): MIPS32 with MIPS16 support implemented
Debug: 133 106760 mips_m4k.c:122 mips_m4k_debug_entry(): entered debug state at PC 0xbfc00380, target->state: halted
Debug: 134 106760 target.c:1574 target_call_event_callbacks(): target event 0 (gdb-halt)
Debug: 135 106760 target.c:1574 target_call_event_callbacks(): target event 1 (halted)
User : 136 106760 mips32.c:298 mips32_arch_state(): target halted in MIPS32 mode due to debug-request, pc: 0xbfc00380
Debug: 137 115051 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_reset init
Debug: 138 115051 command.c:143 script_debug(): command - reset ocd_reset init
Debug: 140 115052 target.c:1592 target_call_reset_callbacks(): target reset 3 (init)
Debug: 141 115052 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_target names
Debug: 142 115052 command.c:143 script_debug(): command - ocd_target ocd_target names
Debug: 143 115052 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_ath79.cpu invoke-event reset-start
Debug: 144 115052 command.c:143 script_debug(): command - ocd_ath79.cpu ocd_ath79.cpu invoke-event reset-start
Debug: 145 115052 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_transport select
Debug: 146 115052 command.c:143 script_debug(): command - ocd_transport ocd_transport select
Debug: 147 115052 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_jtag arp_init-reset
Debug: 148 115052 command.c:143 script_debug(): command - ocd_jtag ocd_jtag arp_init-reset
Debug: 149 115052 core.c:1521 jtag_init_reset(): Initializing with hard TRST+SRST reset
Debug: 150 115054 core.c:748 jtag_add_reset(): TRST line asserted
Debug: 151 115273 core.c:753 jtag_add_reset(): TRST line released
Debug: 152 115273 core.c:327 jtag_call_event_callbacks(): jtag event: TAP reset
Debug: 153 115275 core.c:1407 jtag_init_inner(): Init JTAG chain
Debug: 154 115275 core.c:327 jtag_call_event_callbacks(): jtag event: TAP reset
Debug: 155 115277 core.c:1060 jtag_examine_chain(): DR scan interrogation for IDCODE/BYPASS
Debug: 156 115277 core.c:327 jtag_call_event_callbacks(): jtag event: TAP reset
Debug: 157 115279 jep106.c:33 jep106_manufacturer(): BUG: Caller passed out-of-range JEP106 ID!
Info : 158 115279 core.c:959 jtag_examine_chain_display(): JTAG tap: ath79.cpu tap/device found: 0x00000001 (mfg: 0x000 (<invalid>), part: 0x0000, ver: 0x0)
Debug: 159 115279 core.c:1190 jtag_validate_ircapture(): IR capture validation scan
Debug: 160 115281 core.c:1248 jtag_validate_ircapture(): ath79.cpu: IR capture 0x01
Debug: 161 115281 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_transport select
Debug: 162 115281 command.c:143 script_debug(): command - ocd_transport ocd_transport select
Debug: 163 115281 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_ath79.cpu cget -chain-position
Debug: 164 115281 command.c:143 script_debug(): command - ocd_ath79.cpu ocd_ath79.cpu cget -chain-position
Debug: 165 115281 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_jtag tapisenabled ath79.cpu
Debug: 166 115281 command.c:143 script_debug(): command - ocd_jtag ocd_jtag tapisenabled ath79.cpu
Debug: 167 115281 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_ath79.cpu invoke-event examine-start
Debug: 168 115282 command.c:143 script_debug(): command - ocd_ath79.cpu ocd_ath79.cpu invoke-event examine-start
Debug: 169 115282 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_ath79.cpu arp_examine allow-defer
Debug: 170 115282 command.c:143 script_debug(): command - ocd_ath79.cpu ocd_ath79.cpu arp_examine allow-defer
Debug: 171 115283 mips_ejtag.c:357 mips_ejtag_init(): EJTAG: Version 3.1 Detected
Debug: 172 115283 mips_ejtag.c:317 ejtag_main_print_imp(): EJTAG main: features: ASID_8 MIPS16 noDMA MIPS32
Debug: 173 115283 mips_ejtag.c:307 ejtag_v26_print_imp(): EJTAG v2.6: features: R4k
Debug: 174 115283 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_ath79.cpu invoke-event examine-end
Debug: 175 115283 command.c:143 script_debug(): command - ocd_ath79.cpu ocd_ath79.cpu invoke-event examine-end
Debug: 176 115283 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_ath79.cpu invoke-event reset-assert-pre
Debug: 177 115283 command.c:143 script_debug(): command - ocd_ath79.cpu ocd_ath79.cpu invoke-event reset-assert-pre
Debug: 178 115283 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_transport select
Debug: 179 115283 command.c:143 script_debug(): command - ocd_transport ocd_transport select
Debug: 180 115283 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_ath79.cpu cget -chain-position
Debug: 181 115283 command.c:143 script_debug(): command - ocd_ath79.cpu ocd_ath79.cpu cget -chain-position
Debug: 182 115283 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_jtag tapisenabled ath79.cpu
Debug: 183 115284 command.c:143 script_debug(): command - ocd_jtag ocd_jtag tapisenabled ath79.cpu
Debug: 184 115284 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_ath79.cpu arp_reset assert 1
Debug: 185 115284 command.c:143 script_debug(): command - ocd_ath79.cpu ocd_ath79.cpu arp_reset assert 1
Debug: 186 115284 target.c:1998 target_free_all_working_areas_restore(): freeing all working areas
Debug: 187 115284 mips_m4k.c:316 mips_m4k_assert_reset(): target->state: halted
Debug: 188 115284 mips_m4k.c:363 mips_m4k_assert_reset(): Using EJTAG reset (PRRST) to reset processor...
Debug: 189 115284 mips_m4k.c:271 mips_m4k_halt(): target->state: reset
Debug: 190 115284 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_ath79.cpu invoke-event reset-assert-post
Debug: 191 115284 command.c:143 script_debug(): command - ocd_ath79.cpu ocd_ath79.cpu invoke-event reset-assert-post
Debug: 192 115284 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_ath79.cpu invoke-event reset-deassert-pre
Debug: 193 115284 command.c:143 script_debug(): command - ocd_ath79.cpu ocd_ath79.cpu invoke-event reset-deassert-pre
Debug: 194 115284 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_transport select
Debug: 195 115284 command.c:143 script_debug(): command - ocd_transport ocd_transport select
Debug: 196 115284 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_ath79.cpu cget -chain-position
Debug: 197 115284 command.c:143 script_debug(): command - ocd_ath79.cpu ocd_ath79.cpu cget -chain-position
Debug: 198 115284 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_jtag tapisenabled ath79.cpu
Debug: 199 115284 command.c:143 script_debug(): command - ocd_jtag ocd_jtag tapisenabled ath79.cpu
Debug: 200 115284 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_ath79.cpu arp_reset deassert 1
Debug: 201 115284 command.c:143 script_debug(): command - ocd_ath79.cpu ocd_ath79.cpu arp_reset deassert 1
Debug: 202 115284 target.c:1998 target_free_all_working_areas_restore(): freeing all working areas
Debug: 203 115284 mips_m4k.c:385 mips_m4k_deassert_reset(): target->state: reset
Debug: 204 115284 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_ath79.cpu invoke-event reset-deassert-post
Debug: 205 115284 command.c:143 script_debug(): command - ocd_ath79.cpu ocd_ath79.cpu invoke-event reset-deassert-post
Debug: 206 115284 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_transport select
Debug: 207 115284 command.c:143 script_debug(): command - ocd_transport ocd_transport select
Debug: 208 115285 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_ath79.cpu cget -chain-position
Debug: 209 115285 command.c:143 script_debug(): command - ocd_ath79.cpu ocd_ath79.cpu cget -chain-position
Debug: 210 115285 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_jtag tapisenabled ath79.cpu
Debug: 211 115285 command.c:143 script_debug(): command - ocd_jtag ocd_jtag tapisenabled ath79.cpu
Debug: 212 115285 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_ath79.cpu was_examined
Debug: 213 115285 command.c:143 script_debug(): command - ocd_ath79.cpu ocd_ath79.cpu was_examined
Debug: 214 115285 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_ath79.cpu arp_waitstate halted 1000
Debug: 215 115285 command.c:143 script_debug(): command - ocd_ath79.cpu ocd_ath79.cpu arp_waitstate halted 1000
Debug: 217 115787 mips_m4k.c:122 mips_m4k_debug_entry(): entered debug state at PC 0xbfc00380, target->state: halted
Debug: 218 115787 target.c:1574 target_call_event_callbacks(): target event 0 (gdb-halt)
Debug: 219 115787 target.c:1574 target_call_event_callbacks(): target event 1 (halted)
User : 220 115787 mips32.c:298 mips32_arch_state(): target halted in MIPS32 mode due to debug-request, pc: 0xbfc00380
Debug: 221 115787 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_ath79.cpu curstate
Debug: 222 115787 command.c:143 script_debug(): command - ocd_ath79.cpu ocd_ath79.cpu curstate
Debug: 223 115788 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_transport select
Debug: 224 115788 command.c:143 script_debug(): command - ocd_transport ocd_transport select
Debug: 225 115788 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_ath79.cpu cget -chain-position
Debug: 226 115788 command.c:143 script_debug(): command - ocd_ath79.cpu ocd_ath79.cpu cget -chain-position
Debug: 227 115788 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_jtag tapisenabled ath79.cpu
Debug: 228 115788 command.c:143 script_debug(): command - ocd_jtag ocd_jtag tapisenabled ath79.cpu
Debug: 229 115789 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_ath79.cpu was_examined
Debug: 230 115789 command.c:143 script_debug(): command - ocd_ath79.cpu ocd_ath79.cpu was_examined
Debug: 231 115789 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_ath79.cpu arp_waitstate halted 5000
Debug: 232 115789 command.c:143 script_debug(): command - ocd_ath79.cpu ocd_ath79.cpu arp_waitstate halted 5000
Debug: 233 115790 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_ath79.cpu invoke-event reset-init
Debug: 234 115790 command.c:143 script_debug(): command - ocd_ath79.cpu ocd_ath79.cpu invoke-event reset-init
Debug: 235 115790 target.c:4525 target_handle_event(): target(0): ath79.cpu (mips_m4k) event: 13 (reset-init) action:
# disable flash remap
mww 0xbf000004 0x43
Debug: 236 115790 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_mww 0xbf000004 0x43
Debug: 237 115790 command.c:143 script_debug(): command - mww ocd_mww 0xbf000004 0x43
Debug: 239 115790 mips_m4k.c:1087 mips_m4k_write_memory(): address: 0xbf000004, size: 0x00000004, count: 0x00000001
Debug: 240 115821 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_ath79.cpu invoke-event reset-end
Debug: 241 115821 command.c:143 script_debug(): command - ocd_ath79.cpu ocd_ath79.cpu invoke-event reset-end
Debug: 242 130909 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_flash probe 0
Debug: 243 130909 command.c:143 script_debug(): command - ocd_flash ocd_flash probe 0
Debug: 245 130910 ath79.c:800 ath79_probe(): Found device ATH79 at address 0xbf000000
Debug: 246 130911 ath79.c:279 ath79_spi_bitbang_chunk(): ath79_spi_bitbang_bytes(0x285f580, bf000000, 0x7ffefc555e80, 4)
Debug: 247 130911 ath79.c:282 ath79_spi_bitbang_chunk(): max code 1920 => max len 105. to_xfer 4
Debug: 248 130911 ath79.c:288 ath79_spi_bitbang_chunk(): Assembled 89 instructions, 1 stores
Debug: 249 131267 ath79.c:317 ath79_spi_bitbang_chunk(): bitbang 9f => ff
Debug: 250 131268 ath79.c:317 ath79_spi_bitbang_chunk(): bitbang 00 => 1c
Debug: 251 131268 ath79.c:317 ath79_spi_bitbang_chunk(): bitbang 00 => 30
Debug: 252 131268 ath79.c:317 ath79_spi_bitbang_chunk(): bitbang 00 => 17
Info : 253 131268 ath79.c:819 ath79_probe(): Found flash device 'EN25Q64-104HIP' (ID 0x0017301c)
User : 254 131268 command.c:544 command_print(): flash 'ath79' found at 0xbf000000
Debug: 255 211807 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_flash info 0
Debug: 256 211807 command.c:143 script_debug(): command - ocd_flash ocd_flash info 0
User : 258 211808 command.c:544 command_print(): #0 : ath79 at 0xbf000000, size 0x00800000, buswidth 0, chipwidth 0
User : 259 211808 command.c:544 command_print(): # 0: 0x00000000 (0x10000 64kB) protected
User : 260 211808 command.c:544 command_print(): # 1: 0x00010000 (0x10000 64kB) protected
User : 261 211808 command.c:544 command_print(): # 2: 0x00020000 (0x10000 64kB) protected
User : 262 211808 command.c:544 command_print(): # 3: 0x00030000 (0x10000 64kB) protected
User : 263 211808 command.c:544 command_print(): # 4: 0x00040000 (0x10000 64kB) protected
User : 264 211808 command.c:544 command_print(): # 5: 0x00050000 (0x10000 64kB) protected
User : 265 211808 command.c:544 command_print(): # 6: 0x00060000 (0x10000 64kB) protected
User : 266 211808 command.c:544 command_print(): # 7: 0x00070000 (0x10000 64kB) protected
User : 267 211808 command.c:544 command_print(): # 8: 0x00080000 (0x10000 64kB) protected
User : 268 211808 command.c:544 command_print(): # 9: 0x00090000 (0x10000 64kB) protected
User : 269 211808 command.c:544 command_print(): # 10: 0x000a0000 (0x10000 64kB) protected
User : 270 211808 command.c:544 command_print(): # 11: 0x000b0000 (0x10000 64kB) protected
User : 271 211808 command.c:544 command_print(): # 12: 0x000c0000 (0x10000 64kB) protected
User : 272 211808 command.c:544 command_print(): # 13: 0x000d0000 (0x10000 64kB) protected
User : 273 211808 command.c:544 command_print(): # 14: 0x000e0000 (0x10000 64kB) protected
User : 274 211808 command.c:544 command_print(): # 15: 0x000f0000 (0x10000 64kB) protected
User : 275 211808 command.c:544 command_print(): # 16: 0x00100000 (0x10000 64kB) protected
User : 276 211808 command.c:544 command_print(): # 17: 0x00110000 (0x10000 64kB) protected
User : 277 211808 command.c:544 command_print(): # 18: 0x00120000 (0x10000 64kB) protected
User : 278 211808 command.c:544 command_print(): # 19: 0x00130000 (0x10000 64kB) protected
User : 279 211808 command.c:544 command_print(): # 20: 0x00140000 (0x10000 64kB) protected
User : 280 211808 command.c:544 command_print(): # 21: 0x00150000 (0x10000 64kB) protected
User : 281 211808 command.c:544 command_print(): # 22: 0x00160000 (0x10000 64kB) protected
User : 282 211808 command.c:544 command_print(): # 23: 0x00170000 (0x10000 64kB) protected
User : 283 211808 command.c:544 command_print(): # 24: 0x00180000 (0x10000 64kB) protected
User : 284 211808 command.c:544 command_print(): # 25: 0x00190000 (0x10000 64kB) protected
User : 285 211808 command.c:544 command_print(): # 26: 0x001a0000 (0x10000 64kB) protected
User : 286 211808 command.c:544 command_print(): # 27: 0x001b0000 (0x10000 64kB) protected
User : 287 211808 command.c:544 command_print(): # 28: 0x001c0000 (0x10000 64kB) protected
User : 288 211808 command.c:544 command_print(): # 29: 0x001d0000 (0x10000 64kB) protected
User : 289 211808 command.c:544 command_print(): # 30: 0x001e0000 (0x10000 64kB) protected
User : 290 211808 command.c:544 command_print(): # 31: 0x001f0000 (0x10000 64kB) protected
User : 291 211808 command.c:544 command_print(): # 32: 0x00200000 (0x10000 64kB) protected
User : 292 211808 command.c:544 command_print(): # 33: 0x00210000 (0x10000 64kB) protected
User : 293 211808 command.c:544 command_print(): # 34: 0x00220000 (0x10000 64kB) protected
User : 294 211808 command.c:544 command_print(): # 35: 0x00230000 (0x10000 64kB) protected
User : 295 211808 command.c:544 command_print(): # 36: 0x00240000 (0x10000 64kB) protected
User : 296 211808 command.c:544 command_print(): # 37: 0x00250000 (0x10000 64kB) protected
User : 297 211808 command.c:544 command_print(): # 38: 0x00260000 (0x10000 64kB) protected
User : 298 211808 command.c:544 command_print(): # 39: 0x00270000 (0x10000 64kB) protected
User : 299 211808 command.c:544 command_print(): # 40: 0x00280000 (0x10000 64kB) protected
User : 300 211808 command.c:544 command_print(): # 41: 0x00290000 (0x10000 64kB) protected
User : 301 211808 command.c:544 command_print(): # 42: 0x002a0000 (0x10000 64kB) protected
User : 302 211808 command.c:544 command_print(): # 43: 0x002b0000 (0x10000 64kB) protected
User : 303 211808 command.c:544 command_print(): # 44: 0x002c0000 (0x10000 64kB) protected
User : 304 211808 command.c:544 command_print(): # 45: 0x002d0000 (0x10000 64kB) protected
User : 305 211808 command.c:544 command_print(): # 46: 0x002e0000 (0x10000 64kB) protected
User : 306 211808 command.c:544 command_print(): # 47: 0x002f0000 (0x10000 64kB) protected
User : 307 211808 command.c:544 command_print(): # 48: 0x00300000 (0x10000 64kB) protected
User : 308 211808 command.c:544 command_print(): # 49: 0x00310000 (0x10000 64kB) protected
User : 309 211808 command.c:544 command_print(): # 50: 0x00320000 (0x10000 64kB) protected
User : 310 211808 command.c:544 command_print(): # 51: 0x00330000 (0x10000 64kB) protected
User : 311 211808 command.c:544 command_print(): # 52: 0x00340000 (0x10000 64kB) protected
User : 312 211808 command.c:544 command_print(): # 53: 0x00350000 (0x10000 64kB) protected
User : 313 211808 command.c:544 command_print(): # 54: 0x00360000 (0x10000 64kB) protected
User : 314 211809 command.c:544 command_print(): # 55: 0x00370000 (0x10000 64kB) protected
User : 315 211809 command.c:544 command_print(): # 56: 0x00380000 (0x10000 64kB) protected
User : 316 211809 command.c:544 command_print(): # 57: 0x00390000 (0x10000 64kB) protected
User : 317 211809 command.c:544 command_print(): # 58: 0x003a0000 (0x10000 64kB) protected
User : 318 211809 command.c:544 command_print(): # 59: 0x003b0000 (0x10000 64kB) protected
User : 319 211809 command.c:544 command_print(): # 60: 0x003c0000 (0x10000 64kB) protected
User : 320 211810 command.c:544 command_print(): # 61: 0x003d0000 (0x10000 64kB) protected
User : 321 211810 command.c:544 command_print(): # 62: 0x003e0000 (0x10000 64kB) protected
User : 322 211810 command.c:544 command_print(): # 63: 0x003f0000 (0x10000 64kB) protected
User : 323 211810 command.c:544 command_print(): # 64: 0x00400000 (0x10000 64kB) protected
User : 324 211810 command.c:544 command_print(): # 65: 0x00410000 (0x10000 64kB) protected
User : 325 211810 command.c:544 command_print(): # 66: 0x00420000 (0x10000 64kB) protected
User : 326 211811 command.c:544 command_print(): # 67: 0x00430000 (0x10000 64kB) protected
User : 327 211811 command.c:544 command_print(): # 68: 0x00440000 (0x10000 64kB) protected
User : 328 211811 command.c:544 command_print(): # 69: 0x00450000 (0x10000 64kB) protected
User : 329 211811 command.c:544 command_print(): # 70: 0x00460000 (0x10000 64kB) protected
User : 330 211811 command.c:544 command_print(): # 71: 0x00470000 (0x10000 64kB) protected
User : 331 211811 command.c:544 command_print(): # 72: 0x00480000 (0x10000 64kB) protected
User : 332 211811 command.c:544 command_print(): # 73: 0x00490000 (0x10000 64kB) protected
User : 333 211812 command.c:544 command_print(): # 74: 0x004a0000 (0x10000 64kB) protected
User : 334 211812 command.c:544 command_print(): # 75: 0x004b0000 (0x10000 64kB) protected
User : 335 211812 command.c:544 command_print(): # 76: 0x004c0000 (0x10000 64kB) protected
User : 336 211812 command.c:544 command_print(): # 77: 0x004d0000 (0x10000 64kB) protected
User : 337 211812 command.c:544 command_print(): # 78: 0x004e0000 (0x10000 64kB) protected
User : 338 211812 command.c:544 command_print(): # 79: 0x004f0000 (0x10000 64kB) protected
User : 339 211812 command.c:544 command_print(): # 80: 0x00500000 (0x10000 64kB) protected
User : 340 211812 command.c:544 command_print(): # 81: 0x00510000 (0x10000 64kB) protected
User : 341 211813 command.c:544 command_print(): # 82: 0x00520000 (0x10000 64kB) protected
User : 342 211813 command.c:544 command_print(): # 83: 0x00530000 (0x10000 64kB) protected
User : 343 211813 command.c:544 command_print(): # 84: 0x00540000 (0x10000 64kB) protected
User : 344 211813 command.c:544 command_print(): # 85: 0x00550000 (0x10000 64kB) protected
User : 345 211813 command.c:544 command_print(): # 86: 0x00560000 (0x10000 64kB) protected
User : 346 211813 command.c:544 command_print(): # 87: 0x00570000 (0x10000 64kB) protected
User : 347 211814 command.c:544 command_print(): # 88: 0x00580000 (0x10000 64kB) protected
User : 348 211814 command.c:544 command_print(): # 89: 0x00590000 (0x10000 64kB) protected
User : 349 211814 command.c:544 command_print(): # 90: 0x005a0000 (0x10000 64kB) protected
User : 350 211814 command.c:544 command_print(): # 91: 0x005b0000 (0x10000 64kB) protected
User : 351 211814 command.c:544 command_print(): # 92: 0x005c0000 (0x10000 64kB) protected
User : 352 211815 command.c:544 command_print(): # 93: 0x005d0000 (0x10000 64kB) protected
User : 353 211815 command.c:544 command_print(): # 94: 0x005e0000 (0x10000 64kB) protected
User : 354 211815 command.c:544 command_print(): # 95: 0x005f0000 (0x10000 64kB) protected
User : 355 211815 command.c:544 command_print(): # 96: 0x00600000 (0x10000 64kB) protected
User : 356 211815 command.c:544 command_print(): # 97: 0x00610000 (0x10000 64kB) protected
User : 357 211815 command.c:544 command_print(): # 98: 0x00620000 (0x10000 64kB) protected
User : 358 211815 command.c:544 command_print(): # 99: 0x00630000 (0x10000 64kB) protected
User : 359 211816 command.c:544 command_print(): #100: 0x00640000 (0x10000 64kB) protected
User : 360 211816 command.c:544 command_print(): #101: 0x00650000 (0x10000 64kB) protected
User : 361 211816 command.c:544 command_print(): #102: 0x00660000 (0x10000 64kB) protected
User : 362 211816 command.c:544 command_print(): #103: 0x00670000 (0x10000 64kB) protected
User : 363 211816 command.c:544 command_print(): #104: 0x00680000 (0x10000 64kB) protected
User : 364 211817 command.c:544 command_print(): #105: 0x00690000 (0x10000 64kB) protected
User : 365 211817 command.c:544 command_print(): #106: 0x006a0000 (0x10000 64kB) protected
User : 366 211817 command.c:544 command_print(): #107: 0x006b0000 (0x10000 64kB) protected
User : 367 211817 command.c:544 command_print(): #108: 0x006c0000 (0x10000 64kB) protected
User : 368 211817 command.c:544 command_print(): #109: 0x006d0000 (0x10000 64kB) protected
User : 369 211817 command.c:544 command_print(): #110: 0x006e0000 (0x10000 64kB) protected
User : 370 211817 command.c:544 command_print(): #111: 0x006f0000 (0x10000 64kB) protected
User : 371 211818 command.c:544 command_print(): #112: 0x00700000 (0x10000 64kB) protected
User : 372 211818 command.c:544 command_print(): #113: 0x00710000 (0x10000 64kB) protected
User : 373 211818 command.c:544 command_print(): #114: 0x00720000 (0x10000 64kB) protected
User : 374 211818 command.c:544 command_print(): #115: 0x00730000 (0x10000 64kB) protected
User : 375 211818 command.c:544 command_print(): #116: 0x00740000 (0x10000 64kB) protected
User : 376 211818 command.c:544 command_print(): #117: 0x00750000 (0x10000 64kB) protected
User : 377 211819 command.c:544 command_print(): #118: 0x00760000 (0x10000 64kB) protected
User : 378 211819 command.c:544 command_print(): #119: 0x00770000 (0x10000 64kB) protected
User : 379 211819 command.c:544 command_print(): #120: 0x00780000 (0x10000 64kB) protected
User : 380 211819 command.c:544 command_print(): #121: 0x00790000 (0x10000 64kB) protected
User : 381 211819 command.c:544 command_print(): #122: 0x007a0000 (0x10000 64kB) protected
User : 382 211819 command.c:544 command_print(): #123: 0x007b0000 (0x10000 64kB) protected
User : 383 211819 command.c:544 command_print(): #124: 0x007c0000 (0x10000 64kB) protected
User : 384 211820 command.c:544 command_print(): #125: 0x007d0000 (0x10000 64kB) protected
User : 385 211820 command.c:544 command_print(): #126: 0x007e0000 (0x10000 64kB) protected
User : 386 211820 command.c:544 command_print(): #127: 0x007f0000 (0x10000 64kB) protected
User : 387 211820 command.c:544 command_print():
ATH79 flash information:
Device 'EN25Q64-104HIP' (ID 0x0017301c)
Debug: 388 260572 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_dump_image cfe.bin 0x9f000000 0x10000
Debug: 389 260572 command.c:143 script_debug(): command - dump_image ocd_dump_image cfe.bin 0x9f000000 0x10000
Debug: 391 260574 target.c:2190 target_read_buffer(): reading buffer of 4096 byte at 0x9f000000
Debug: 392 260574 mips_m4k.c:1028 mips_m4k_read_memory(): address: 0x9f000000, size: 0x00000004, count: 0x00000400
Debug: 420 274446 target.c:2190 target_read_buffer(): reading buffer of 4096 byte at 0x9f001000
Debug: 421 274446 mips_m4k.c:1028 mips_m4k_read_memory(): address: 0x9f001000, size: 0x00000004, count: 0x00000400
Debug: 450 288263 target.c:2190 target_read_buffer(): reading buffer of 4096 byte at 0x9f002000
Debug: 451 288263 mips_m4k.c:1028 mips_m4k_read_memory(): address: 0x9f002000, size: 0x00000004, count: 0x00000400
Debug: 479 302068 target.c:2190 target_read_buffer(): reading buffer of 4096 byte at 0x9f003000
Debug: 480 302068 mips_m4k.c:1028 mips_m4k_read_memory(): address: 0x9f003000, size: 0x00000004, count: 0x00000400
Debug: 509 315911 target.c:2190 target_read_buffer(): reading buffer of 4096 byte at 0x9f004000
Debug: 510 315911 mips_m4k.c:1028 mips_m4k_read_memory(): address: 0x9f004000, size: 0x00000004, count: 0x00000400
Debug: 539 329783 target.c:2190 target_read_buffer(): reading buffer of 4096 byte at 0x9f005000
Debug: 540 329783 mips_m4k.c:1028 mips_m4k_read_memory(): address: 0x9f005000, size: 0x00000004, count: 0x00000400
Debug: 568 343684 target.c:2190 target_read_buffer(): reading buffer of 4096 byte at 0x9f006000
Debug: 569 343685 mips_m4k.c:1028 mips_m4k_read_memory(): address: 0x9f006000, size: 0x00000004, count: 0x00000400
Debug: 598 357564 target.c:2190 target_read_buffer(): reading buffer of 4096 byte at 0x9f007000
Debug: 599 357564 mips_m4k.c:1028 mips_m4k_read_memory(): address: 0x9f007000, size: 0x00000004, count: 0x00000400
Debug: 628 371426 target.c:2190 target_read_buffer(): reading buffer of 4096 byte at 0x9f008000
Debug: 629 371426 mips_m4k.c:1028 mips_m4k_read_memory(): address: 0x9f008000, size: 0x00000004, count: 0x00000400
Debug: 657 385336 target.c:2190 target_read_buffer(): reading buffer of 4096 byte at 0x9f009000
Debug: 658 385336 mips_m4k.c:1028 mips_m4k_read_memory(): address: 0x9f009000, size: 0x00000004, count: 0x00000400
Debug: 687 399297 target.c:2190 target_read_buffer(): reading buffer of 4096 byte at 0x9f00a000
Debug: 688 399297 mips_m4k.c:1028 mips_m4k_read_memory(): address: 0x9f00a000, size: 0x00000004, count: 0x00000400
Debug: 717 413281 target.c:2190 target_read_buffer(): reading buffer of 4096 byte at 0x9f00b000
Debug: 718 413281 mips_m4k.c:1028 mips_m4k_read_memory(): address: 0x9f00b000, size: 0x00000004, count: 0x00000400
Debug: 747 427090 target.c:2190 target_read_buffer(): reading buffer of 4096 byte at 0x9f00c000
Debug: 748 427090 mips_m4k.c:1028 mips_m4k_read_memory(): address: 0x9f00c000, size: 0x00000004, count: 0x00000400
Debug: 777 441194 target.c:2190 target_read_buffer(): reading buffer of 4096 byte at 0x9f00d000
Debug: 778 441194 mips_m4k.c:1028 mips_m4k_read_memory(): address: 0x9f00d000, size: 0x00000004, count: 0x00000400
Debug: 807 455166 target.c:2190 target_read_buffer(): reading buffer of 4096 byte at 0x9f00e000
Debug: 808 455166 mips_m4k.c:1028 mips_m4k_read_memory(): address: 0x9f00e000, size: 0x00000004, count: 0x00000400
Debug: 836 469032 target.c:2190 target_read_buffer(): reading buffer of 4096 byte at 0x9f00f000
Debug: 837 469032 mips_m4k.c:1028 mips_m4k_read_memory(): address: 0x9f00f000, size: 0x00000004, count: 0x00000400
User : 866 482931 command.c:544 command_print(): dumped 65536 bytes in 222.356995s (0.288 KiB/s)
Debug: 867 2252233 mips_m4k.c:214 mips_m4k_poll(): Reset Detected
Debug: 868 2255991 mips_m4k.c:214 mips_m4k_poll(): Reset Detected
Debug: 869 2268146 mips_m4k.c:214 mips_m4k_poll(): Reset Detected
Debug: 870 2268550 mips_m4k.c:214 mips_m4k_poll(): Reset Detected
Debug: 871 2354287 telnet_server.c:524 telnet_input(): unhandled nonprintable: 09
Debug: 872 2378755 command.c:143 script_debug(): command - ocd_command ocd_command type ocd_flash write_image unlock cfe-1043.bin 0xbf000000
Debug: 873 2378755 command.c:143 script_debug(): command - ocd_flash ocd_flash write_image unlock cfe-1043.bin 0xbf000000
User : 875 2378756 command.c:544 command_print(): auto unlock enabled
Debug: 876 2378756 configuration.c:97 find_file(): found cfe-1043.bin
Debug: 877 2378756 configuration.c:97 find_file(): found cfe-1043.bin
Debug: 878 2378756 core.c:893 flash_write_unlock(): image_read_section: section = 0, t_section_num = 0, section_offset = 0, buffer_idx = 0, size_read = 131072
Debug: 879 2378756 ath79.c:643 ath79_write(): ath79_write: offset=0x00000000 count=0x00020000
Error: 880 2378756 ath79.c:646 ath79_write(): Start address out of range: 0 bf000000 800000
Error: 881 2378756 core.c:99 flash_driver_write(): error writing to flash at address 0xbf000000 at offset 0x00000000
Debug: 882 2378756 command.c:642 run_command(): Command failed with error code -4
@psyborg55
Copy link

Hi

Which pins you connected on the board and which on the adapter? I am getting many mips_m4k_poll(): Reset Detected messages :
https://pastebin.com/qNcpA3Np

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment