SparkFun Forums 

Where electronics enthusiasts find answers.

Open source ARM Debugger
By khelben
#188894
I'm trying to resurrect a Netgear WNR854T Router and OpenOCD is crashing when I try.

I get the following output, then OpenOCD crashes:
Warn : Bad value '00000000' captured during DR or IR scan:
Warn : check_value: 0x00000009
Warn : check_mask: 0x00000009
Error: JTAG error while reading cpsr
Error: Unable to write block write code to target

I'm not sure what would cause a bad value, but I've quadruple checked all my connections to the TUMPA and the Router, everything is solid. I've never really had any experience with OpenOCD so I've done some searching which suggested bumping the jtag_khz lower, I didn't have that value present so i tried 1000, still failed.

I'm not finding a lot of helpful information regarding the error, looking for some guidance please.

Environment:
Windows 7 x64 SP1
TUMPA JTAG
Open On-Chip Debugger 0.9.0 (2015-05-19-12:06)
Note: I did not compile this myself I downloaded it from http://www.freddiechopin.info/en/downlo ... /4-openocd
zadig_2.2.exe Drivers Installed

OpenOCD Config (https://forum.openwrt.org/viewtopic.php ... 12#p181612)
Code: Select all
source [find ../scripts/interface/ftdi/tumpa.cfg]

set CPUTAPID 0x07926041
source [find ../scripts/target/feroceon.cfg]

$_TARGETNAME configure -work-area-phys 0x00400000 -work-area-size 0x40000 -work-area-backup 0

jtag_rclk 3000

arm7_9 dcc_downloads enable
arm7_9 fast_memory_access enable

set _FLASHNAME $_CHIPNAME.flash
flash bank $_FLASHNAME cfi 0xff800000 0x800000 2 2 $_TARGETNAME jedec_probe

$_TARGETNAME configure -event reset-init {
    # MPP
    mww 0xF1010000 0x55000003
    mww 0xF1010004 0x11110010
    mww 0xF1010050 0x00001111
    mww 0xF1010008 0x00000000

    # GPP
    mww 0xF1010104 0xFFFF0330

    # SDRAM
    mww 0xF1001480 0x00000001

    # PCI ARBITER
    mww 0xF1031d00 0x80000030

    flash probe 0
}
proc wuboot { } {
    flash erase_address 0xfff80000 0x80000
    flash write_image erase ../binary/u-boot.bin 0xFFF80000
    reset run
    resume
}
OpenOCD Process Output
Code: Select all
Open On-Chip Debugger 0.9.0 (2015-05-19-12:09)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
none separate
Info : auto-selecting first available session transport "jtag". To override use
'transport select <transport>'.
trst_and_srst separate srst_gates_jtag trst_push_pull srst_push_pull connect_dea
ssert_srst
adapter_nsrst_delay: 200
jtag_ntrst_delay: 200
RCLK - adaptive
dcc downloads are enabled
fast memory access is enabled
wuboot
Info : RCLK (adaptive clock speed)
Info : JTAG tap: feroceon.cpu tap/device found: 0x07926041 (mfg: 0x020, part: 0x
7926, ver: 0x0)
Info : Embedded ICE version 0
Info : feroceon.cpu: hardware has 1 breakpoint/watchpoint unit
Info : accepting 'telnet' connection on tcp/4444
Info : JTAG tap: feroceon.cpu tap/device found: 0x07926041 (mfg: 0x020, part: 0x
7926, ver: 0x0)
target state: halted
target halted in ARM state due to debug-request, current mode: Supervisor
cpsr: 0x000000d3 pc: 0xffff0000
MMU: disabled, D-Cache: disabled, I-Cache: disabled
Info : Flash Manufacturer/Device: 0x0089 0x0017
erased address 0xfff80000 (length 524288) in 2.286228s (223.950 KiB/s)
auto erase enabled
Warn : Bad value '00000000' captured during DR or IR scan:
Warn :  check_value: 0x00000009
Warn :  check_mask: 0x00000009
Error: JTAG error while reading cpsr
Error: Unable to write block write code to target
OpenOCD Terminal
Code: Select all
Open On-Chip Debugger
> reset halt
JTAG tap: feroceon.cpu tap/device found: 0x07926041 (mfg: 0x020, part: 0x7926, ver: 0x0)
target state: halted
target halted in ARM state due to debug-request, current mode: Supervisor
cpsr: 0x000000d3 pc: 0xffff0000
MMU: disabled, D-Cache: disabled, I-Cache: disabled
> wuboot
Flash Manufacturer/Device: 0x0089 0x0017
erased address 0xfff80000 (length 524288) in 2.286228s (223.950 KiB/s)
auto erase enabled
Bad value '00000000' captured during DR or IR scan:
 check_value: 0x00000009
 check_mask: 0x00000009
JTAG error while reading cpsr
Unable to write block write code to target
OpenOCD.exe exception:
Code: Select all
Problem signature:
  Problem Event Name:	APPCRASH
  Application Name:	openocd.exe
  Application Version:	0.0.0.0
  Application Timestamp:	00263a2c
  Fault Module Name:	ntdll.dll
  Fault Module Version:	6.1.7601.19160
  Fault Module Timestamp:	56bcd51f
  Exception Code:	c0000005
  Exception Offset:	0002e546
  OS Version:	6.1.7601.2.1.0.256.1
  Locale ID:	1033
  Additional Information 1:	0a9e
  Additional Information 2:	0a9e372d3b4ad19135b953a78882e789
  Additional Information 3:	0a9e
  Additional Information 4:	0a9e372d3b4ad19135b953a78882e789
Code: Select all
Debug: 17 11 options.c:98 add_default_dirs(): bindir=bin-x64
Debug: 18 11 options.c:99 add_default_dirs(): pkgdatadir=
Debug: 19 11 options.c:100 add_default_dirs(): run_prefix=D:/Temp/wnr854t/openocd-0.9.0/
Debug: 21 11 configuration.c:44 add_script_search_dir(): adding D:/Temp/wnr854t/openocd-0.9.0//site
Debug: 22 11 configuration.c:44 add_script_search_dir(): adding D:/Temp/wnr854t/openocd-0.9.0//scripts
Debug: 23 13 configuration.c:84 find_file(): found openocd.cfg
Debug: 24 14 configuration.c:84 find_file(): found ../scripts/interface/ftdi/tumpa.cfg
Debug: 25 14 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_interface ftdi
Debug: 26 14 command.c:145 script_debug(): command - interface ocd_interface ftdi
Debug: 28 14 command.c:366 register_command_handler(): registering 'ocd_ftdi_device_desc'...
Debug: 29 14 command.c:366 register_command_handler(): registering 'ocd_ftdi_serial'...
Debug: 30 14 command.c:366 register_command_handler(): registering 'ocd_ftdi_channel'...
Debug: 31 14 command.c:366 register_command_handler(): registering 'ocd_ftdi_layout_init'...
Debug: 32 14 command.c:366 register_command_handler(): registering 'ocd_ftdi_layout_signal'...
Debug: 33 14 command.c:366 register_command_handler(): registering 'ocd_ftdi_set_signal'...
Debug: 34 14 command.c:366 register_command_handler(): registering 'ocd_ftdi_vid_pid'...
Debug: 35 14 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_ftdi_vid_pid 0x0403 0x8a98 0x0403 0x6010
Debug: 36 14 command.c:145 script_debug(): command - ftdi_vid_pid ocd_ftdi_vid_pid 0x0403 0x8a98 0x0403 0x6010
Debug: 38 14 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_ftdi_layout_init 0x0038 0x087b
Debug: 39 14 command.c:145 script_debug(): command - ftdi_layout_init ocd_ftdi_layout_init 0x0038 0x087b
Debug: 41 14 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_ftdi_layout_signal nTRST -data 0x0020
Debug: 42 14 command.c:145 script_debug(): command - ftdi_layout_signal ocd_ftdi_layout_signal nTRST -data 0x0020
Debug: 44 14 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_ftdi_layout_signal nSRST -data 0x0010
Debug: 45 15 command.c:145 script_debug(): command - ftdi_layout_signal ocd_ftdi_layout_signal nSRST -data 0x0010
Debug: 47 15 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_reset_config srst_push_pull
Debug: 48 15 command.c:145 script_debug(): command - reset_config ocd_reset_config srst_push_pull
User : 50 15 command.c:546 command_print(): none separate
Debug: 51 15 configuration.c:84 find_file(): found ../scripts/target/feroceon.cfg
Debug: 52 15 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_transport select
Debug: 53 15 command.c:145 script_debug(): command - ocd_transport ocd_transport select
Info : 54 15 transport.c:287 jim_transport_select(): auto-selecting first available session transport "jtag". To override use 'transport select <transport>'.
Debug: 55 15 command.c:366 register_command_handler(): registering 'ocd_jtag_flush_queue_sleep'...
Debug: 56 15 command.c:366 register_command_handler(): registering 'ocd_jtag_rclk'...
Debug: 57 15 command.c:366 register_command_handler(): registering 'ocd_jtag_ntrst_delay'...
Debug: 58 15 command.c:366 register_command_handler(): registering 'ocd_jtag_ntrst_assert_width'...
Debug: 59 15 command.c:366 register_command_handler(): registering 'ocd_scan_chain'...
Debug: 60 15 command.c:366 register_command_handler(): registering 'ocd_jtag_reset'...
Debug: 61 15 command.c:366 register_command_handler(): registering 'ocd_runtest'...
Debug: 62 15 command.c:366 register_command_handler(): registering 'ocd_irscan'...
Debug: 63 15 command.c:366 register_command_handler(): registering 'ocd_verify_ircapture'...
Debug: 64 15 command.c:366 register_command_handler(): registering 'ocd_verify_jtag'...
Debug: 65 15 command.c:366 register_command_handler(): registering 'ocd_tms_sequence'...
Debug: 66 15 command.c:366 register_command_handler(): registering 'ocd_wait_srst_deassert'...
Debug: 67 15 command.c:366 register_command_handler(): registering 'ocd_jtag'...
Debug: 68 15 command.c:366 register_command_handler(): registering 'ocd_jtag'...
Debug: 69 16 command.c:366 register_command_handler(): registering 'ocd_jtag'...
Debug: 70 16 command.c:366 register_command_handler(): registering 'ocd_jtag'...
Debug: 71 16 command.c:366 register_command_handler(): registering 'ocd_jtag'...
Debug: 72 16 command.c:366 register_command_handler(): registering 'ocd_jtag'...
Debug: 73 16 command.c:366 register_command_handler(): registering 'ocd_jtag'...
Debug: 74 16 command.c:366 register_command_handler(): registering 'ocd_jtag'...
Debug: 75 16 command.c:366 register_command_handler(): registering 'ocd_jtag'...
Debug: 76 16 command.c:366 register_command_handler(): registering 'ocd_jtag'...
Debug: 77 16 command.c:366 register_command_handler(): registering 'ocd_jtag'...
Debug: 78 16 command.c:366 register_command_handler(): registering 'ocd_jtag'...
Debug: 79 16 command.c:366 register_command_handler(): registering 'ocd_jtag'...
Debug: 80 16 command.c:366 register_command_handler(): registering 'ocd_svf'...
Debug: 81 16 command.c:366 register_command_handler(): registering 'ocd_xsvf'...
Debug: 82 16 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_transport select
Debug: 83 16 command.c:145 script_debug(): command - ocd_transport ocd_transport select
Debug: 84 16 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_jtag newtap feroceon cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id 0x07926041
Debug: 85 16 command.c:145 script_debug(): command - ocd_jtag ocd_jtag newtap feroceon cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id 0x07926041
Debug: 86 16 tcl.c:549 jim_newtap_cmd(): Creating New Tap, Chip: feroceon, Tap: cpu, Dotted: feroceon.cpu, 8 params
Debug: 87 16 tcl.c:573 jim_newtap_cmd(): Processing option: -irlen
Debug: 88 16 tcl.c:573 jim_newtap_cmd(): Processing option: -ircapture
Debug: 89 16 tcl.c:573 jim_newtap_cmd(): Processing option: -irmask
Debug: 90 16 tcl.c:573 jim_newtap_cmd(): Processing option: -expected-id
Debug: 91 16 core.c:1302 jtag_tap_init(): Created Tap: feroceon.cpu @ abs position 0, irlen 4, capture: 0x1 mask: 0xf
Debug: 92 16 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_target create feroceon.cpu feroceon -endian little -chain-position feroceon.cpu
Debug: 93 16 command.c:145 script_debug(): command - ocd_target ocd_target create feroceon.cpu feroceon -endian little -chain-position feroceon.cpu
Debug: 94 17 target.c:1837 target_free_all_working_areas_restore(): freeing all working areas
Debug: 95 17 command.c:366 register_command_handler(): registering 'ocd_arm'...
Debug: 96 17 command.c:366 register_command_handler(): registering 'ocd_arm'...
Debug: 97 17 command.c:366 register_command_handler(): registering 'ocd_arm'...
Debug: 98 17 command.c:366 register_command_handler(): registering 'ocd_arm'...
Debug: 99 17 command.c:366 register_command_handler(): registering 'ocd_arm'...
Debug: 100 17 command.c:366 register_command_handler(): registering 'ocd_arm'...
Debug: 101 17 command.c:366 register_command_handler(): registering 'ocd_etm'...
Debug: 102 17 command.c:366 register_command_handler(): registering 'ocd_arm7_9'...
Debug: 103 17 command.c:366 register_command_handler(): registering 'ocd_arm7_9'...
Debug: 104 17 command.c:366 register_command_handler(): registering 'ocd_arm7_9'...
Debug: 105 17 command.c:366 register_command_handler(): registering 'ocd_arm9'...
Debug: 106 17 command.c:366 register_command_handler(): registering 'ocd_arm926ejs'...
Debug: 107 17 armv4_5.c:422 arm_set_cpsr(): set CPSR 0x00000010: User mode, ARM state
Debug: 108 17 command.c:366 register_command_handler(): registering 'ocd_feroceon.cpu'...
Debug: 109 17 command.c:366 register_command_handler(): registering 'ocd_feroceon.cpu'...
Debug: 110 17 command.c:366 register_command_handler(): registering 'ocd_feroceon.cpu'...
Debug: 111 17 command.c:366 register_command_handler(): registering 'ocd_feroceon.cpu'...
Debug: 112 17 command.c:366 register_command_handler(): registering 'ocd_feroceon.cpu'...
Debug: 113 17 command.c:366 register_command_handler(): registering 'ocd_feroceon.cpu'...
Debug: 114 17 command.c:366 register_command_handler(): registering 'ocd_feroceon.cpu'...
Debug: 115 17 command.c:366 register_command_handler(): registering 'ocd_feroceon.cpu'...
Debug: 116 17 command.c:366 register_command_handler(): registering 'ocd_feroceon.cpu'...
Debug: 117 17 command.c:366 register_command_handler(): registering 'ocd_feroceon.cpu'...
Debug: 118 17 command.c:366 register_command_handler(): registering 'ocd_feroceon.cpu'...
Debug: 119 17 command.c:366 register_command_handler(): registering 'ocd_feroceon.cpu'...
Debug: 120 17 command.c:366 register_command_handler(): registering 'ocd_feroceon.cpu'...
Debug: 121 17 command.c:366 register_command_handler(): registering 'ocd_feroceon.cpu'...
Debug: 122 17 command.c:366 register_command_handler(): registering 'ocd_feroceon.cpu'...
Debug: 123 17 command.c:366 register_command_handler(): registering 'ocd_feroceon.cpu'...
Debug: 124 17 command.c:366 register_command_handler(): registering 'ocd_feroceon.cpu'...
Debug: 125 17 command.c:366 register_command_handler(): registering 'ocd_feroceon.cpu'...
Debug: 126 17 command.c:366 register_command_handler(): registering 'ocd_feroceon.cpu'...
Debug: 127 18 command.c:366 register_command_handler(): registering 'ocd_feroceon.cpu'...
Debug: 128 18 command.c:366 register_command_handler(): registering 'ocd_feroceon.cpu'...
Debug: 129 18 command.c:366 register_command_handler(): registering 'ocd_feroceon.cpu'...
Debug: 130 18 command.c:366 register_command_handler(): registering 'ocd_feroceon.cpu'...
Debug: 131 18 command.c:366 register_command_handler(): registering 'ocd_feroceon.cpu'...
Debug: 132 18 command.c:366 register_command_handler(): registering 'ocd_feroceon.cpu'...
Debug: 133 18 command.c:366 register_command_handler(): registering 'ocd_feroceon.cpu'...
Debug: 134 18 command.c:366 register_command_handler(): registering 'ocd_feroceon.cpu'...
Debug: 135 18 command.c:366 register_command_handler(): registering 'ocd_feroceon.cpu'...
Debug: 136 18 command.c:366 register_command_handler(): registering 'ocd_feroceon.cpu'...
Debug: 137 18 command.c:366 register_command_handler(): registering 'ocd_feroceon.cpu'...
Debug: 138 18 command.c:366 register_command_handler(): registering 'ocd_feroceon.cpu'...
Debug: 139 18 command.c:366 register_command_handler(): registering 'ocd_feroceon.cpu'...
Debug: 140 18 command.c:366 register_command_handler(): registering 'ocd_feroceon.cpu'...
Debug: 141 18 command.c:366 register_command_handler(): registering 'ocd_feroceon.cpu'...
Debug: 142 18 command.c:366 register_command_handler(): registering 'ocd_feroceon.cpu'...
Debug: 143 18 command.c:366 register_command_handler(): registering 'ocd_feroceon.cpu'...
Debug: 144 18 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_reset_config trst_and_srst
Debug: 145 18 command.c:145 script_debug(): command - reset_config ocd_reset_config trst_and_srst
User : 147 18 command.c:546 command_print(): trst_and_srst separate srst_gates_jtag trst_push_pull srst_push_pull connect_deassert_srst
Debug: 148 18 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_adapter_nsrst_delay 200
Debug: 149 18 command.c:145 script_debug(): command - adapter_nsrst_delay ocd_adapter_nsrst_delay 200
User : 151 18 command.c:546 command_print(): adapter_nsrst_delay: 200
Debug: 152 18 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_jtag_ntrst_delay 200
Debug: 153 18 command.c:145 script_debug(): command - jtag_ntrst_delay ocd_jtag_ntrst_delay 200
User : 155 18 command.c:546 command_print(): jtag_ntrst_delay: 200
Debug: 156 18 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_feroceon.cpu configure -work-area-phys 0x00400000 -work-area-size 0x40000 -work-area-backup 0
Debug: 157 19 command.c:145 script_debug(): command - ocd_feroceon.cpu ocd_feroceon.cpu configure -work-area-phys 0x00400000 -work-area-size 0x40000 -work-area-backup 0
Debug: 158 19 target.c:1837 target_free_all_working_areas_restore(): freeing all working areas
Debug: 159 19 target.c:1837 target_free_all_working_areas_restore(): freeing all working areas
Debug: 160 19 target.c:1837 target_free_all_working_areas_restore(): freeing all working areas
Debug: 161 19 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_adapter_khz 1000
Debug: 162 19 command.c:145 script_debug(): command - adapter_khz ocd_adapter_khz 1000
Debug: 164 19 core.c:1629 jtag_config_khz(): handle jtag khz
Debug: 165 19 core.c:1596 adapter_khz_to_speed(): convert khz to interface specific speed value
Debug: 166 19 core.c:1596 adapter_khz_to_speed(): convert khz to interface specific speed value
User : 167 19 command.c:546 command_print(): adapter speed: 1000 kHz
Debug: 168 19 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_arm7_9 dcc_downloads enable
Debug: 169 19 command.c:145 script_debug(): command - ocd_arm7_9 ocd_arm7_9 dcc_downloads enable
User : 171 19 command.c:546 command_print(): dcc downloads are enabled
Debug: 172 19 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_arm7_9 fast_memory_access enable
Debug: 173 19 command.c:145 script_debug(): command - ocd_arm7_9 ocd_arm7_9 fast_memory_access enable
User : 175 19 command.c:546 command_print(): fast memory access is enabled
Debug: 176 19 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_flash bank feroceon.flash cfi 0xff800000 0x800000 2 2 feroceon.cpu jedec_probe
Debug: 177 19 command.c:145 script_debug(): command - ocd_flash ocd_flash bank feroceon.flash cfi 0xff800000 0x800000 2 2 feroceon.cpu jedec_probe
Debug: 179 19 tcl.c:824 handle_flash_bank_command(): 'cfi' driver usage field missing
Debug: 180 19 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_feroceon.cpu configure -event reset-init 
    # MPP
    mww 0xF1010000 0x55000003
    mww 0xF1010004 0x11110010
    mww 0xF1010050 0x00001111
    mww 0xF1010008 0x00000000

    # GPP
    mww 0xF1010104 0xFFFF0330

    # SDRAM
    mww 0xF1001480 0x00000001

    # PCI ARBITER
    mww 0xF1031d00 0x80000030

    flash probe 0

Debug: 181 19 command.c:145 script_debug(): command - ocd_feroceon.cpu ocd_feroceon.cpu configure -event reset-init 
    # MPP
    mww 0xF1010000 0x55000003
    mww 0xF1010004 0x11110010
    mww 0xF1010050 0x00001111
    mww 0xF1010008 0x00000000

    # GPP
    mww 0xF1010104 0xFFFF0330

    # SDRAM
    mww 0xF1001480 0x00000001

    # PCI ARBITER
    mww 0xF1031d00 0x80000030

    flash probe 0

User : 182 19 command.c:677 command_run_line(): wubootUser : 183 19 command.c:679 command_run_line(): 
Debug: 184 20 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_init
Debug: 185 20 command.c:145 script_debug(): command - init ocd_init
Debug: 187 20 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_target init
Debug: 188 20 command.c:145 script_debug(): command - ocd_target ocd_target init
Debug: 190 20 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_target names
Debug: 191 20 command.c:145 script_debug(): command - ocd_target ocd_target names
Debug: 192 20 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_feroceon.cpu cget -event gdb-flash-erase-start
Debug: 193 21 command.c:145 script_debug(): command - ocd_feroceon.cpu ocd_feroceon.cpu cget -event gdb-flash-erase-start
Debug: 194 21 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_feroceon.cpu configure -event gdb-flash-erase-start reset init
Debug: 195 21 command.c:145 script_debug(): command - ocd_feroceon.cpu ocd_feroceon.cpu configure -event gdb-flash-erase-start reset init
Debug: 196 21 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_feroceon.cpu cget -event gdb-flash-write-end
Debug: 197 21 command.c:145 script_debug(): command - ocd_feroceon.cpu ocd_feroceon.cpu cget -event gdb-flash-write-end
Debug: 198 21 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_feroceon.cpu configure -event gdb-flash-write-end reset halt
Debug: 199 21 command.c:145 script_debug(): command - ocd_feroceon.cpu ocd_feroceon.cpu configure -event gdb-flash-write-end reset halt
Debug: 200 21 target.c:1313 handle_target_init_command(): Initializing targets...
Debug: 201 21 command.c:366 register_command_handler(): registering 'ocd_target_request'...
Debug: 202 21 command.c:366 register_command_handler(): registering 'ocd_trace'...
Debug: 203 21 command.c:366 register_command_handler(): registering 'ocd_trace'...
Debug: 204 21 command.c:366 register_command_handler(): registering 'ocd_fast_load_image'...
Debug: 205 21 command.c:366 register_command_handler(): registering 'ocd_fast_load'...
Debug: 206 21 command.c:366 register_command_handler(): registering 'ocd_profile'...
Debug: 207 21 command.c:366 register_command_handler(): registering 'ocd_virt2phys'...
Debug: 208 21 command.c:366 register_command_handler(): registering 'ocd_reg'...
Debug: 209 21 command.c:366 register_command_handler(): registering 'ocd_poll'...
Debug: 210 21 command.c:366 register_command_handler(): registering 'ocd_wait_halt'...
Debug: 211 21 command.c:366 register_command_handler(): registering 'ocd_halt'...
Debug: 212 21 command.c:366 register_command_handler(): registering 'ocd_resume'...
Debug: 213 21 command.c:366 register_command_handler(): registering 'ocd_reset'...
Debug: 214 21 command.c:366 register_command_handler(): registering 'ocd_soft_reset_halt'...
Debug: 215 21 command.c:366 register_command_handler(): registering 'ocd_step'...
Debug: 216 21 command.c:366 register_command_handler(): registering 'ocd_mdw'...
Debug: 217 21 command.c:366 register_command_handler(): registering 'ocd_mdh'...
Debug: 218 22 command.c:366 register_command_handler(): registering 'ocd_mdb'...
Debug: 219 22 command.c:366 register_command_handler(): registering 'ocd_mww'...
Debug: 220 22 command.c:366 register_command_handler(): registering 'ocd_mwh'...
Debug: 221 22 command.c:366 register_command_handler(): registering 'ocd_mwb'...
Debug: 222 22 command.c:366 register_command_handler(): registering 'ocd_bp'...
Debug: 223 22 command.c:366 register_command_handler(): registering 'ocd_rbp'...
Debug: 224 22 command.c:366 register_command_handler(): registering 'ocd_wp'...
Debug: 225 22 command.c:366 register_command_handler(): registering 'ocd_rwp'...
Debug: 226 22 command.c:366 register_command_handler(): registering 'ocd_load_image'...
Debug: 227 22 command.c:366 register_command_handler(): registering 'ocd_dump_image'...
Debug: 228 22 command.c:366 register_command_handler(): registering 'ocd_verify_image'...
Debug: 229 22 command.c:366 register_command_handler(): registering 'ocd_test_image'...
Debug: 230 22 command.c:366 register_command_handler(): registering 'ocd_reset_nag'...
Debug: 231 22 command.c:366 register_command_handler(): registering 'ocd_ps'...
Debug: 232 22 command.c:366 register_command_handler(): registering 'ocd_test_mem_access'...
Debug: 233 22 ftdi.c:625 ftdi_initialize(): ftdi interface using shortest path jtag state transitions
Debug: 234 425 mpsse.c:363 mpsse_purge(): -
Debug: 235 425 mpsse.c:644 mpsse_loopback_config(): off
Debug: 236 425 mpsse.c:689 mpsse_set_frequency(): target 1000000 Hz
Debug: 237 425 mpsse.c:681 mpsse_rtck_config(): off
Debug: 238 425 mpsse.c:670 mpsse_divide_by_5_config(): off
Debug: 239 425 mpsse.c:650 mpsse_set_divisor(): 29
Debug: 240 425 mpsse.c:713 mpsse_set_frequency(): actually 1000000 Hz
Debug: 241 426 core.c:1596 adapter_khz_to_speed(): convert khz to interface specific speed value
Debug: 242 426 core.c:1599 adapter_khz_to_speed(): have interface set up
Debug: 243 426 mpsse.c:689 mpsse_set_frequency(): target 1000000 Hz
Debug: 244 426 mpsse.c:681 mpsse_rtck_config(): off
Debug: 245 426 mpsse.c:670 mpsse_divide_by_5_config(): off
Debug: 246 426 mpsse.c:650 mpsse_set_divisor(): 29
Debug: 247 426 mpsse.c:713 mpsse_set_frequency(): actually 1000000 Hz
Debug: 248 426 core.c:1596 adapter_khz_to_speed(): convert khz to interface specific speed value
Debug: 249 426 core.c:1599 adapter_khz_to_speed(): have interface set up
Info : 250 426 core.c:1384 adapter_init(): clock speed 1000 kHz
Debug: 251 426 openocd.c:137 handle_init_command(): Debug Adapter init complete
Debug: 252 426 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_transport init
Debug: 253 426 command.c:145 script_debug(): command - ocd_transport ocd_transport init
Debug: 255 426 transport.c:240 handle_transport_init(): handle_transport_init
Debug: 256 426 core.c:730 jtag_add_reset(): SRST line released
Debug: 257 426 core.c:754 jtag_add_reset(): TRST line released
Debug: 258 426 core.c:328 jtag_call_event_callbacks(): jtag event: TAP reset
Debug: 260 826 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_jtag arp_init
Debug: 261 826 command.c:145 script_debug(): command - ocd_jtag ocd_jtag arp_init
Debug: 262 826 core.c:1397 jtag_init_inner(): Init JTAG chain
Debug: 263 826 core.c:328 jtag_call_event_callbacks(): jtag event: TAP reset
Debug: 264 826 core.c:1058 jtag_examine_chain(): DR scan interrogation for IDCODE/BYPASS
Debug: 265 826 core.c:328 jtag_call_event_callbacks(): jtag event: TAP reset
Info : 266 827 core.c:958 jtag_examine_chain_display(): JTAG tap: feroceon.cpu tap/device found: 0x07926041 (mfg: 0x020, part: 0x7926, ver: 0x0)
Debug: 267 827 core.c:1188 jtag_validate_ircapture(): IR capture validation scan
Debug: 268 827 core.c:1246 jtag_validate_ircapture(): feroceon.cpu: IR capture 0x01
Debug: 269 827 openocd.c:150 handle_init_command(): Examining targets...
Debug: 270 827 target.c:1465 target_call_event_callbacks(): target event 21 (examine-start)
Info : 271 827 embeddedice.c:231 embeddedice_build_reg_cache(): Embedded ICE version 0
Info : 272 827 embeddedice.c:302 embeddedice_build_reg_cache(): feroceon.cpu: hardware has 1 breakpoint/watchpoint unit
Debug: 273 827 arm7_9_common.c:75 arm7_9_clear_watchpoints(): -
Debug: 274 827 embeddedice.c:501 embeddedice_write_reg(): 12: 0x00000000
Debug: 275 828 embeddedice.c:501 embeddedice_write_reg(): 20: 0x00000000
Debug: 276 828 embeddedice.c:501 embeddedice_write_reg(): 2: 0x00000000
Debug: 277 828 embeddedice.c:501 embeddedice_write_reg(): 0: 0x00000000
Debug: 278 828 target.c:1465 target_call_event_callbacks(): target event 22 (examine-end)
Debug: 279 828 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_flash init
Debug: 280 828 command.c:145 script_debug(): command - ocd_flash ocd_flash init
Debug: 282 829 tcl.c:890 handle_flash_init_command(): Initializing flash devices...
Debug: 283 829 command.c:366 register_command_handler(): registering 'ocd_flash'...
Debug: 284 829 command.c:366 register_command_handler(): registering 'ocd_flash'...
Debug: 285 829 command.c:366 register_command_handler(): registering 'ocd_flash'...
Debug: 286 829 command.c:366 register_command_handler(): registering 'ocd_flash'...
Debug: 287 829 command.c:366 register_command_handler(): registering 'ocd_flash'...
Debug: 288 829 command.c:366 register_command_handler(): registering 'ocd_flash'...
Debug: 289 829 command.c:366 register_command_handler(): registering 'ocd_flash'...
Debug: 290 829 command.c:366 register_command_handler(): registering 'ocd_flash'...
Debug: 291 829 command.c:366 register_command_handler(): registering 'ocd_flash'...
Debug: 292 829 command.c:366 register_command_handler(): registering 'ocd_flash'...
Debug: 293 829 command.c:366 register_command_handler(): registering 'ocd_flash'...
Debug: 294 829 command.c:366 register_command_handler(): registering 'ocd_flash'...
Debug: 295 829 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_mflash init
Debug: 296 829 command.c:145 script_debug(): command - ocd_mflash ocd_mflash init
Debug: 298 829 mflash.c:1379 handle_mflash_init_command(): Initializing mflash devices...
Debug: 299 829 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_nand init
Debug: 300 829 command.c:145 script_debug(): command - ocd_nand ocd_nand init
Debug: 302 830 tcl.c:497 handle_nand_init_command(): Initializing NAND devices...
Debug: 303 830 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_pld init
Debug: 304 830 command.c:145 script_debug(): command - ocd_pld ocd_pld init
Debug: 306 830 pld.c:207 handle_pld_init_command(): Initializing PLDs...
Info : 307 11712 server.c:91 add_connection(): accepting 'telnet' connection on tcp/4444
Debug: 308 16191 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_reset halt
Debug: 309 16191 command.c:145 script_debug(): command - reset ocd_reset halt
Debug: 311 16191 target.c:1483 target_call_reset_callbacks(): target reset 2 (halt)
Debug: 312 16192 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_target names
Debug: 313 16192 command.c:145 script_debug(): command - ocd_target ocd_target names
Debug: 314 16192 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_feroceon.cpu invoke-event reset-start
Debug: 315 16192 command.c:145 script_debug(): command - ocd_feroceon.cpu ocd_feroceon.cpu invoke-event reset-start
Debug: 316 16192 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_transport select
Debug: 317 16192 command.c:145 script_debug(): command - ocd_transport ocd_transport select
Debug: 318 16192 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_jtag arp_init-reset
Debug: 319 16192 command.c:145 script_debug(): command - ocd_jtag ocd_jtag arp_init-reset
Debug: 320 16192 core.c:1505 jtag_init_reset(): Initializing with hard TRST+SRST reset
Debug: 321 16192 core.c:726 jtag_add_reset(): SRST line asserted
Debug: 322 16192 core.c:749 jtag_add_reset(): TRST line asserted
Debug: 323 16192 core.c:754 jtag_add_reset(): TRST line released
Debug: 324 16192 core.c:328 jtag_call_event_callbacks(): jtag event: TAP reset
Debug: 325 16392 core.c:730 jtag_add_reset(): SRST line released
Debug: 326 16592 core.c:1397 jtag_init_inner(): Init JTAG chain
Debug: 327 16592 core.c:328 jtag_call_event_callbacks(): jtag event: TAP reset
Debug: 328 16592 core.c:1058 jtag_examine_chain(): DR scan interrogation for IDCODE/BYPASS
Debug: 329 16592 core.c:328 jtag_call_event_callbacks(): jtag event: TAP reset
Info : 330 16593 core.c:958 jtag_examine_chain_display(): JTAG tap: feroceon.cpu tap/device found: 0x07926041 (mfg: 0x020, part: 0x7926, ver: 0x0)
Debug: 331 16593 core.c:1188 jtag_validate_ircapture(): IR capture validation scan
Debug: 332 16593 core.c:1246 jtag_validate_ircapture(): feroceon.cpu: IR capture 0x01
Debug: 333 16593 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_transport select
Debug: 334 16593 command.c:145 script_debug(): command - ocd_transport ocd_transport select
Debug: 335 16593 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_feroceon.cpu cget -chain-position
Debug: 336 16593 command.c:145 script_debug(): command - ocd_feroceon.cpu ocd_feroceon.cpu cget -chain-position
Debug: 337 16593 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_jtag tapisenabled feroceon.cpu
Debug: 338 16593 command.c:145 script_debug(): command - ocd_jtag ocd_jtag tapisenabled feroceon.cpu
Debug: 339 16593 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_feroceon.cpu invoke-event examine-start
Debug: 340 16593 command.c:145 script_debug(): command - ocd_feroceon.cpu ocd_feroceon.cpu invoke-event examine-start
Debug: 341 16593 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_feroceon.cpu arp_examine
Debug: 342 16593 command.c:145 script_debug(): command - ocd_feroceon.cpu ocd_feroceon.cpu arp_examine
Debug: 343 16594 embeddedice.c:501 embeddedice_write_reg(): 0: 0x00000020
Debug: 344 16594 arm7_9_common.c:75 arm7_9_clear_watchpoints(): -
Debug: 345 16594 embeddedice.c:501 embeddedice_write_reg(): 12: 0x00000000
Debug: 346 16594 embeddedice.c:501 embeddedice_write_reg(): 20: 0x00000000
Debug: 347 16594 embeddedice.c:501 embeddedice_write_reg(): 2: 0x00000000
Debug: 348 16595 embeddedice.c:501 embeddedice_write_reg(): 0: 0x00000000
Debug: 349 16595 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_feroceon.cpu invoke-event examine-end
Debug: 350 16595 command.c:145 script_debug(): command - ocd_feroceon.cpu ocd_feroceon.cpu invoke-event examine-end
Debug: 351 16595 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_feroceon.cpu invoke-event reset-assert-pre
Debug: 352 16595 command.c:145 script_debug(): command - ocd_feroceon.cpu ocd_feroceon.cpu invoke-event reset-assert-pre
Debug: 353 16595 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_transport select
Debug: 354 16595 command.c:145 script_debug(): command - ocd_transport ocd_transport select
Debug: 355 16595 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_feroceon.cpu cget -chain-position
Debug: 356 16595 command.c:145 script_debug(): command - ocd_feroceon.cpu ocd_feroceon.cpu cget -chain-position
Debug: 357 16595 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_jtag tapisenabled feroceon.cpu
Debug: 358 16595 command.c:145 script_debug(): command - ocd_jtag ocd_jtag tapisenabled feroceon.cpu
Debug: 359 16595 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_feroceon.cpu arp_reset assert 1
Debug: 360 16595 command.c:145 script_debug(): command - ocd_feroceon.cpu ocd_feroceon.cpu arp_reset assert 1
Debug: 361 16595 target.c:1837 target_free_all_working_areas_restore(): freeing all working areas
Debug: 362 16595 arm7_9_common.c:1182 arm7_9_halt(): target->state: running
Debug: 363 16595 embeddedice.c:501 embeddedice_write_reg(): 9: 0xffffffff
Debug: 364 16595 embeddedice.c:501 embeddedice_write_reg(): 11: 0xffffffff
Debug: 365 16595 embeddedice.c:501 embeddedice_write_reg(): 12: 0x00000100
Debug: 366 16595 embeddedice.c:501 embeddedice_write_reg(): 13: 0x000000f7
Debug: 367 16595 arm7_9_common.c:878 arm7_9_assert_reset(): target->state: running
Debug: 368 16595 embeddedice.c:501 embeddedice_write_reg(): 2: 0x00000001
Debug: 369 16596 core.c:726 jtag_add_reset(): SRST line asserted
Debug: 370 16596 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_feroceon.cpu invoke-event reset-assert-post
Debug: 371 16596 command.c:145 script_debug(): command - ocd_feroceon.cpu ocd_feroceon.cpu invoke-event reset-assert-post
Debug: 372 16596 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_feroceon.cpu invoke-event reset-deassert-pre
Debug: 373 16596 command.c:145 script_debug(): command - ocd_feroceon.cpu ocd_feroceon.cpu invoke-event reset-deassert-pre
Debug: 374 16596 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_transport select
Debug: 375 16596 command.c:145 script_debug(): command - ocd_transport ocd_transport select
Debug: 376 16596 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_feroceon.cpu cget -chain-position
Debug: 377 16596 command.c:145 script_debug(): command - ocd_feroceon.cpu ocd_feroceon.cpu cget -chain-position
Debug: 378 16596 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_jtag tapisenabled feroceon.cpu
Debug: 379 16596 command.c:145 script_debug(): command - ocd_jtag ocd_jtag tapisenabled feroceon.cpu
Debug: 380 16596 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_feroceon.cpu arp_reset deassert 1
Debug: 381 16596 command.c:145 script_debug(): command - ocd_feroceon.cpu ocd_feroceon.cpu arp_reset deassert 1
Debug: 382 16596 target.c:1837 target_free_all_working_areas_restore(): freeing all working areas
Debug: 383 16596 arm7_9_common.c:973 arm7_9_deassert_reset(): target->state: reset
Debug: 384 16646 core.c:730 jtag_add_reset(): SRST line released
Debug: 385 16646 target.c:1465 target_call_event_callbacks(): target event 21 (examine-start)
Debug: 387 16846 embeddedice.c:501 embeddedice_write_reg(): 0: 0x00000000
Debug: 388 16846 arm7_9_common.c:75 arm7_9_clear_watchpoints(): -
Debug: 389 16846 embeddedice.c:501 embeddedice_write_reg(): 12: 0x00000000
Debug: 390 16846 embeddedice.c:501 embeddedice_write_reg(): 20: 0x00000000
Debug: 391 16846 embeddedice.c:501 embeddedice_write_reg(): 2: 0x00000000
Debug: 392 16847 embeddedice.c:501 embeddedice_write_reg(): 0: 0x00000000
Debug: 393 16847 target.c:1465 target_call_event_callbacks(): target event 22 (examine-end)
Debug: 394 16847 embeddedice.c:501 embeddedice_write_reg(): 0: 0x00000005
Debug: 395 16847 embeddedice.c:501 embeddedice_write_reg(): 0: 0x00000005
Debug: 396 16847 arm7_9_common.c:1290 arm7_9_debug_entry(): target entered debug from ARM state
Debug: 397 16850 armv4_5.c:422 arm_set_cpsr(): set CPSR 0x000000d3: Supervisor mode, ARM state
Debug: 398 16850 arm7_9_common.c:1318 arm7_9_debug_entry(): target entered debug state in Supervisor mode
Debug: 399 16850 arm7_9_common.c:1338 arm7_9_debug_entry(): r0: 0x00000000
Debug: 400 16850 arm7_9_common.c:1338 arm7_9_debug_entry(): r1: 0x00000000
Debug: 401 16850 arm7_9_common.c:1338 arm7_9_debug_entry(): r2: 0x00000000
Debug: 402 16850 arm7_9_common.c:1338 arm7_9_debug_entry(): r3: 0x00000000
Debug: 403 16850 arm7_9_common.c:1338 arm7_9_debug_entry(): r4: 0x00000000
Debug: 404 16850 arm7_9_common.c:1338 arm7_9_debug_entry(): r5: 0x00000000
Debug: 405 16850 arm7_9_common.c:1338 arm7_9_debug_entry(): r6: 0x00000000
Debug: 406 16850 arm7_9_common.c:1338 arm7_9_debug_entry(): r7: 0x00000000
Debug: 407 16850 arm7_9_common.c:1338 arm7_9_debug_entry(): r8: 0x00000000
Debug: 408 16850 arm7_9_common.c:1338 arm7_9_debug_entry(): r9: 0x00000000
Debug: 409 16850 arm7_9_common.c:1338 arm7_9_debug_entry(): r10: 0x00000000
Debug: 410 16850 arm7_9_common.c:1338 arm7_9_debug_entry(): r11: 0x00000000
Debug: 411 16850 arm7_9_common.c:1338 arm7_9_debug_entry(): r12: 0x00000000
Debug: 412 16850 arm7_9_common.c:1338 arm7_9_debug_entry(): r13: 0x00000000
Debug: 413 16850 arm7_9_common.c:1338 arm7_9_debug_entry(): r14: 0x00000000
Debug: 414 16850 arm7_9_common.c:1338 arm7_9_debug_entry(): r15: 0xffff0000
Debug: 415 16850 arm7_9_common.c:1346 arm7_9_debug_entry(): entered debug state at PC 0xffff0000
Debug: 416 16853 arm926ejs.c:442 arm926ejs_post_debug_entry(): cp15_control_reg: b0052078
Debug: 417 16857 arm926ejs.c:472 arm926ejs_post_debug_entry(): D FSR: 0x00000000, D FAR: 0x00000000, I FSR: 0x00000000
Debug: 418 16859 target.c:1465 target_call_event_callbacks(): target event 0 (gdb-halt)
Debug: 419 16859 target.c:1465 target_call_event_callbacks(): target event 1 (halted)
User : 420 16859 target.c:1889 target_arch_state(): target state: halted
User : 421 16860 armv4_5.c:671 arm_arch_state(): target halted in ARM state due to debug-request, current mode: Supervisor
cpsr: 0x000000d3 pc: 0xffff0000
User : 422 16860 arm926ejs.c:534 arm926ejs_arch_state(): MMU: disabled, D-Cache: disabled, I-Cache: disabled
Debug: 423 16860 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_feroceon.cpu invoke-event reset-deassert-post
Debug: 424 16860 command.c:145 script_debug(): command - ocd_feroceon.cpu ocd_feroceon.cpu invoke-event reset-deassert-post
Debug: 425 16860 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_transport select
Debug: 426 16860 command.c:145 script_debug(): command - ocd_transport ocd_transport select
Debug: 427 16860 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_feroceon.cpu cget -chain-position
Debug: 428 16860 command.c:145 script_debug(): command - ocd_feroceon.cpu ocd_feroceon.cpu cget -chain-position
Debug: 429 16860 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_jtag tapisenabled feroceon.cpu
Debug: 430 16860 command.c:145 script_debug(): command - ocd_jtag ocd_jtag tapisenabled feroceon.cpu
Debug: 431 16860 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_feroceon.cpu arp_waitstate halted 1000
Debug: 432 16860 command.c:145 script_debug(): command - ocd_feroceon.cpu ocd_feroceon.cpu arp_waitstate halted 1000
Debug: 433 16861 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_feroceon.cpu curstate
Debug: 434 16861 command.c:145 script_debug(): command - ocd_feroceon.cpu ocd_feroceon.cpu curstate
Debug: 435 16861 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_feroceon.cpu invoke-event reset-end
Debug: 436 16861 command.c:145 script_debug(): command - ocd_feroceon.cpu ocd_feroceon.cpu invoke-event reset-end
Debug: 437 40766 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_flash write_image d:/temp/wnr854t/openocd-0.9.0/binary/u-boot.bin 0xFFF80000
Debug: 438 40766 command.c:145 script_debug(): command - ocd_flash ocd_flash write_image d:/temp/wnr854t/openocd-0.9.0/binary/u-boot.bin 0xFFF80000
Debug: 440 40766 configuration.c:84 find_file(): found d:/temp/wnr854t/openocd-0.9.0/binary/u-boot.bin
Debug: 441 40766 configuration.c:84 find_file(): found d:/temp/wnr854t/openocd-0.9.0/binary/u-boot.bin
Debug: 442 40767 embeddedice.c:501 embeddedice_write_reg(): 0: 0x00000004
Debug: 443 40767 embeddedice.c:501 embeddedice_write_reg(): 0: 0x00000005
Debug: 444 40769 embeddedice.c:501 embeddedice_write_reg(): 0: 0x00000004
Debug: 445 40769 embeddedice.c:501 embeddedice_write_reg(): 0: 0x00000005
Debug: 446 40772 embeddedice.c:501 embeddedice_write_reg(): 0: 0x00000004
Debug: 447 40772 embeddedice.c:501 embeddedice_write_reg(): 0: 0x00000005
Debug: 448 40775 arm7_9_common.c:2108 arm7_9_read_memory(): address: 0xff800000, size: 0x00000002, count: 0x00000001
Debug: 449 40778 arm7_9_common.c:2108 arm7_9_read_memory(): address: 0xff800002, size: 0x00000002, count: 0x00000001
Info : 450 40780 cfi.c:2613 cfi_probe(): Flash Manufacturer/Device: 0x0089 0x0017
Debug: 451 40780 embeddedice.c:501 embeddedice_write_reg(): 0: 0x00000004
Debug: 452 40781 embeddedice.c:501 embeddedice_write_reg(): 0: 0x00000005
Debug: 453 40783 embeddedice.c:501 embeddedice_write_reg(): 0: 0x00000004
Debug: 454 40783 embeddedice.c:501 embeddedice_write_reg(): 0: 0x00000005
Debug: 455 40786 embeddedice.c:501 embeddedice_write_reg(): 0: 0x00000004
Debug: 456 40786 embeddedice.c:501 embeddedice_write_reg(): 0: 0x00000005
Debug: 457 40789 arm7_9_common.c:2108 arm7_9_read_memory(): address: 0xff800020, size: 0x00000002, count: 0x00000001
Debug: 458 40792 arm7_9_common.c:2108 arm7_9_read_memory(): address: 0xff800022, size: 0x00000002, count: 0x00000001
Debug: 459 40794 arm7_9_common.c:2108 arm7_9_read_memory(): address: 0xff800024, size: 0x00000002, count: 0x00000001
Debug: 460 40797 cfi.c:2525 cfi_query_string(): CFI qry returned: 0x51 0x52 0x59
Debug: 461 40797 arm7_9_common.c:2108 arm7_9_read_memory(): address: 0xff800026, size: 0x00000002, count: 0x00000002
Debug: 462 40800 arm7_9_common.c:2108 arm7_9_read_memory(): address: 0xff80002a, size: 0x00000002, count: 0x00000002
Debug: 463 40803 arm7_9_common.c:2108 arm7_9_read_memory(): address: 0xff80002e, size: 0x00000002, count: 0x00000002
Debug: 464 40806 arm7_9_common.c:2108 arm7_9_read_memory(): address: 0xff800032, size: 0x00000002, count: 0x00000002
Debug: 465 40809 cfi.c:2664 cfi_probe(): qry: 'QRY', pri_id: 0x0001, pri_addr: 0x0031, alt_id: 0x0000, alt_addr: 0x0000
Debug: 466 40809 arm7_9_common.c:2108 arm7_9_read_memory(): address: 0xff800036, size: 0x00000002, count: 0x00000001
Debug: 467 40812 arm7_9_common.c:2108 arm7_9_read_memory(): address: 0xff800038, size: 0x00000002, count: 0x00000001
Debug: 468 40814 arm7_9_common.c:2108 arm7_9_read_memory(): address: 0xff80003a, size: 0x00000002, count: 0x00000001
Debug: 469 40817 arm7_9_common.c:2108 arm7_9_read_memory(): address: 0xff80003c, size: 0x00000002, count: 0x00000001
Debug: 470 40820 arm7_9_common.c:2108 arm7_9_read_memory(): address: 0xff80003e, size: 0x00000002, count: 0x00000001
Debug: 471 40822 arm7_9_common.c:2108 arm7_9_read_memory(): address: 0xff800040, size: 0x00000002, count: 0x00000001
Debug: 472 40825 arm7_9_common.c:2108 arm7_9_read_memory(): address: 0xff800042, size: 0x00000002, count: 0x00000001
Debug: 473 40827 arm7_9_common.c:2108 arm7_9_read_memory(): address: 0xff800044, size: 0x00000002, count: 0x00000001
Debug: 474 40830 arm7_9_common.c:2108 arm7_9_read_memory(): address: 0xff800046, size: 0x00000002, count: 0x00000001
Debug: 475 40833 arm7_9_common.c:2108 arm7_9_read_memory(): address: 0xff800048, size: 0x00000002, count: 0x00000001
Debug: 476 40835 arm7_9_common.c:2108 arm7_9_read_memory(): address: 0xff80004a, size: 0x00000002, count: 0x00000001
Debug: 477 40838 arm7_9_common.c:2108 arm7_9_read_memory(): address: 0xff80004c, size: 0x00000002, count: 0x00000001
Debug: 478 40841 arm7_9_common.c:2108 arm7_9_read_memory(): address: 0xff80004e, size: 0x00000002, count: 0x00000001
Debug: 479 40843 arm7_9_common.c:2108 arm7_9_read_memory(): address: 0xff800050, size: 0x00000002, count: 0x00000002
Debug: 480 40846 arm7_9_common.c:2108 arm7_9_read_memory(): address: 0xff800054, size: 0x00000002, count: 0x00000002
Debug: 481 40849 arm7_9_common.c:2108 arm7_9_read_memory(): address: 0xff800058, size: 0x00000002, count: 0x00000001
Debug: 482 40852 cfi.c:2722 cfi_probe(): size: 0x800000, interface desc: 2, max buffer write size: 0x20
Debug: 483 40852 arm7_9_common.c:2108 arm7_9_read_memory(): address: 0xff80005a, size: 0x00000002, count: 0x00000004
Debug: 484 40856 cfi.c:2738 cfi_probe(): erase region[0]: 64 blocks of size 0x20000
Debug: 485 40856 arm7_9_common.c:2108 arm7_9_read_memory(): address: 0xff800062, size: 0x00000002, count: 0x00000001
Debug: 486 40859 arm7_9_common.c:2108 arm7_9_read_memory(): address: 0xff800064, size: 0x00000002, count: 0x00000001
Debug: 487 40861 arm7_9_common.c:2108 arm7_9_read_memory(): address: 0xff800066, size: 0x00000002, count: 0x00000001
Debug: 488 40864 arm7_9_common.c:2108 arm7_9_read_memory(): address: 0xff800068, size: 0x00000002, count: 0x00000001
Debug: 489 40866 arm7_9_common.c:2108 arm7_9_read_memory(): address: 0xff80006a, size: 0x00000002, count: 0x00000001
Debug: 490 40869 cfi.c:449 cfi_read_intel_pri_ext(): pri: 'PRI', version: 1.1
Debug: 491 40869 arm7_9_common.c:2108 arm7_9_read_memory(): address: 0xff80006c, size: 0x00000002, count: 0x00000004
Debug: 492 40873 arm7_9_common.c:2108 arm7_9_read_memory(): address: 0xff800074, size: 0x00000002, count: 0x00000001
Debug: 493 40876 arm7_9_common.c:2108 arm7_9_read_memory(): address: 0xff800076, size: 0x00000002, count: 0x00000002
Debug: 494 40879 cfi.c:465 cfi_read_intel_pri_ext(): feature_support: 0xce, suspend_cmd_support: 0x1, blk_status_reg_mask: 0x1
Debug: 495 40879 arm7_9_common.c:2108 arm7_9_read_memory(): address: 0xff80007a, size: 0x00000002, count: 0x00000001
Debug: 496 40881 arm7_9_common.c:2108 arm7_9_read_memory(): address: 0xff80007c, size: 0x00000002, count: 0x00000001
Debug: 497 40884 cfi.c:476 cfi_read_intel_pri_ext(): Vcc opt: 3.3, Vpp opt: 0.0
Debug: 498 40884 arm7_9_common.c:2108 arm7_9_read_memory(): address: 0xff80007e, size: 0x00000002, count: 0x00000001
Debug: 499 40886 arm7_9_common.c:2108 arm7_9_read_memory(): address: 0xff800080, size: 0x00000002, count: 0x00000002
Debug: 500 40889 arm7_9_common.c:2108 arm7_9_read_memory(): address: 0xff800084, size: 0x00000002, count: 0x00000001
Debug: 501 40892 arm7_9_common.c:2108 arm7_9_read_memory(): address: 0xff800086, size: 0x00000002, count: 0x00000001
Debug: 502 40895 cfi.c:499 cfi_read_intel_pri_ext(): protection_fields: 1, prot_reg_addr: 0x80, factory pre-programmed: 8, user programmable: 8
Debug: 503 40895 embeddedice.c:501 embeddedice_write_reg(): 0: 0x00000004
Debug: 504 40895 embeddedice.c:501 embeddedice_write_reg(): 0: 0x00000005
Debug: 505 40898 embeddedice.c:501 embeddedice_write_reg(): 0: 0x00000004
Debug: 506 40898 embeddedice.c:501 embeddedice_write_reg(): 0: 0x00000005
Debug: 507 40900 cfi.c:2780 cfi_probe(): Vcc min: 2.7, Vcc max: 3.6, Vpp min: 0.0, Vpp max: 0.0
Debug: 508 40900 cfi.c:2785 cfi_probe(): typ. word write timeout: 64 us, typ. buf write timeout: 128 us, typ. block erase timeout: 1024 ms, typ. chip erase timeout: 1 ms
Debug: 509 40900 cfi.c:2792 cfi_probe(): max. word write timeout: 256 us, max. buf write timeout: 1024 us, max. block erase timeout: 4096 ms, max. chip erase timeout: 1 ms
Debug: 510 40900 cfi.c:2807 cfi_probe(): calculated word write timeout: 1 ms, buf write timeout: 2 ms, block erase timeout: 4096 ms, chip erase timeout: 1 ms
Debug: 511 40900 core.c:706 flash_write_unlock(): image_read_section: section = 0, t_section_num = 0, section_offset = 0, buffer_size = 0, size_read = 458884
Debug: 512 40901 embeddedice.c:501 embeddedice_write_reg(): 0: 0x00000004
Debug: 513 40901 embeddedice.c:501 embeddedice_write_reg(): 0: 0x00000005
Debug: 514 40904 target.c:1662 target_alloc_working_area_try(): MMU disabled, using physical address for working memory 0x00400000
Debug: 515 40904 target.c:1715 target_alloc_working_area_try(): allocated new working area of 56 bytes at address 0x00400000
Debug: 516 40904 target.c:1578 print_wa_layout():  * 0x00400000-0x00400037 (56 bytes)
Debug: 517 40904 target.c:1578 print_wa_layout():    0x00400038-0x0043ffff (262088 bytes)
Debug: 518 40904 target.c:1970 target_write_buffer(): writing buffer of 56 byte at 0x00400000
Debug: 519 40904 embeddedice.c:501 embeddedice_write_reg(): 0: 0x00000004
Debug: 520 40904 embeddedice.c:501 embeddedice_write_reg(): 0: 0x00000005
Warn : 521 40908 core.c:797 jtag_check_value_inner(): Bad value '00000000' captured during DR or IR scan:
Warn : 522 40908 core.c:798 jtag_check_value_inner():  check_value: 0x00000009
Warn : 523 40908 core.c:807 jtag_check_value_inner():  check_mask: 0x00000009
Error: 524 40908 arm7_9_common.c:2452 arm7_9_write_memory(): JTAG error while reading cpsr
Error: 525 40908 cfi.c:1271 cfi_intel_write_block(): Unable to write block write code to target
Debug: 526 40908 target.c:1784 target_free_working_area_restore(): freed 56 bytes of working area at address 0x00400000
Debug: 527 40908 target.c:1578 print_wa_layout():    0x00400000-0x0043ffff (262144 bytes)
By khelben
#188933
Ok, so I worked with Paul Fertser a dev for OpenOCD and it looks like there was an issue with the work area I was allocating in the config.

Here's my working config to restore U-Boot

Just connect everything up, adjust your path for the uboot binary and issue wuboot to write the file.
Code: Select all
source [find ../scripts/interface/ftdi/tumpa.cfg]

set CPUTAPID 0x07926041
source [find ../scripts/target/feroceon.cfg]

adapter_khz 1000

arm7_9 dcc_downloads enable
arm7_9 fast_memory_access enable

set _FLASHNAME $_CHIPNAME.flash
flash bank $_FLASHNAME cfi 0xff800000 0x800000 2 2 $_TARGETNAME jedec_probe

$_TARGETNAME configure -event reset-init {
    # MPP
    mww 0xF1010000 0x55000003
    mww 0xF1010004 0x11110010
    mww 0xF1010050 0x00001111
    mww 0xF1010008 0x00000000

    # GPP
    mww 0xF1010104 0xFFFF0330

    # SDRAM
    mww 0xF1001480 0x00000001

    # PCI ARBITER
    mww 0xF1031d00 0x80000030

    flash probe 0
}
proc wuboot { } {
	reset halt
    flash erase_address 0xfff80000 0x80000
    flash write_image erase unlock d:/temp/wnr854t/openocd-0.9.0/binary/u-boot.bin 0xFFF80000
    reset run
	resume
}
By khelben
#189220
Still having some trouble, but not with OpenOCD.
None of the compiled GNU U-Boots for my router are detecting the flash properly.

I tried to compile from the source provided, but I'm getting an error within the jffs2 compilation.

I'm not familiar with the u-boot project, so if anyone has an idea or past experience with cross compiling, it would be greatly appreciated.
Code: Select all
root@vldubn01:~/uboot# cat build.log
make[1]: Entering directory '/root/uboot/tools'
make[1]: '.depend' is up to date.
make[1]: Leaving directory '/root/uboot/tools'
make[1]: Entering directory '/root/uboot/examples'
make[1]: '.depend' is up to date.
make[1]: Leaving directory '/root/uboot/examples'
make[1]: Entering directory '/root/uboot/post'
make[1]: '.depend' is up to date.
make[1]: Leaving directory '/root/uboot/post'
make[1]: Entering directory '/root/uboot/post/cpu'
make[1]: '.depend' is up to date.
make[1]: Leaving directory '/root/uboot/post/cpu'
make -C tools all
make[1]: Entering directory '/root/uboot/tools'
make[1]: Leaving directory '/root/uboot/tools'
make -C examples all
make[1]: Entering directory '/root/uboot/examples'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/root/uboot/examples'
make -C post all
make[1]: Entering directory '/root/uboot/post'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/root/uboot/post'
make -C post/cpu all
make[1]: Entering directory '/root/uboot/post/cpu'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/root/uboot/post/cpu'
make -C `dirname lib_generic/libgeneric.a`
make[1]: Entering directory '/root/uboot/lib_generic'
make[1]: 'libgeneric.a' is up to date.
make[1]: Leaving directory '/root/uboot/lib_generic'
make -C `dirname board/mv88fxx81/db88f5181/libdb88f5181.a`
make[1]: Entering directory '/root/uboot/board/mv88fxx81/db88f5181'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/root/uboot/board/mv88fxx81/db88f5181'
make -C `dirname cpu/arm926ejs/libarm926ejs.a`
make[1]: Entering directory '/root/uboot/cpu/arm926ejs'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/root/uboot/cpu/arm926ejs'
make -C `dirname lib_arm/libarm.a`
make[1]: Entering directory '/root/uboot/lib_arm'
make[1]: 'libarm.a' is up to date.
make[1]: Leaving directory '/root/uboot/lib_arm'
make -C `dirname fs/cramfs/libcramfs.a`
make[1]: Entering directory '/root/uboot/fs/cramfs'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/root/uboot/fs/cramfs'
make -C `dirname fs/fat/libfat.a`
make[1]: Entering directory '/root/uboot/fs/fat'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/root/uboot/fs/fat'
make -C `dirname fs/fdos/libfdos.a`
make[1]: Entering directory '/root/uboot/fs/fdos'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/root/uboot/fs/fdos'
make -C `dirname fs/jffs2/libjffs2.a`
make[1]: Entering directory '/root/uboot/fs/jffs2'
arm-linux-gnueabi-gcc -DRD_88F5181L_GE -DRD_DB_88F5181L -g  -Os   -fno-strict-aliasing  -fno-common -ffixed-r8 -msoft-float -D__KERNEL__ -DTEXT_BASE=0x00f10000 -I/root/uboot/include -fno-builtin -ffreestanding -nostdinc -isystem /usr/lib/gcc-cross/arm-linux-gnueabi/5/include -pipe  -DCONFIG_ARM -D__ARM__ -march=armv5t -g  -Os   -fno-strict-aliasing  -fno-common -ffixed-r8 -msoft-float -D__KERNEL__ -DTEXT_BASE=0x00f10000 -I/root/uboot/include -fno-builtin -ffreestanding -nostdinc -isystem /usr/lib/gcc-cross/arm-linux-gnueabi/5/include -pipe  -DCONFIG_ARM -D__ARM__ -march=armv5t -Wall -Wstrict-prototypes -c -o compr_rubin.o compr_rubin.c
compr_rubin.c: In function ‘rubin_do_decompress’:
compr_rubin.c:51:24: warning: pointer targets in initialization differ in signedness [-Wpointer-sign]
  register char *curr = page_out;
                        ^
compr_rubin.c:52:14: warning: pointer targets in initialization differ in signedness [-Wpointer-sign]
  char *end = page_out + destlen;
              ^
compr_rubin.c:89:15: error: lvalue required as increment operand
      temp = *(++((u32 *) in));
               ^
/root/uboot/config.mk:175: recipe for target 'compr_rubin.o' failed
make[1]: Leaving directory '/root/uboot/fs/jffs2'
Makefile:161: recipe for target 'fs/jffs2/libjffs2.a' failed
root@vldubn01:~/uboot#