I want to use openjtag to debug boot process.
I use these cmd in gdb.
file vmlinux
target remote :3333…
I got
"Info : accepting ‘gdb’ connection from 3333
Error: Register map is not available yet, the target is not fully initialised
undefined debug reason 7 - target needs reset
Error: Target not halted
Error: cortex_a8_mmu: target not halted
"
My setting:
openjtag.cfg
interface ftdi
ftdi_device_desc "USB<=>JTAG&RS232"
#ft2232_layout jtagkey
ftdi_layout_init 0x0c08 0x0f1b
ftdi_layout_signal nTRST -data 0x0100 -noe 0x0400
ftdi_layout_signal nSRST -data 0x0200 -noe 0x0800
ftdi_vid_pid 0x1457 0x5118
reset_config trst_and_srst
adapter_khz 1000
s5pc210.cfg
reset_config trst_and_srst
#jtag_rclk 8
#jtag_khz 1000
if { [info exists CHIPNAME] } {
set _CHIPNAME $CHIPNAME
} else {
set _CHIPNAME S5PC210
}
# CoreSight Debug Access Port
if { [info exists DAP_TAPID ] } {
set _DAP_TAPID $DAP_TAPID
} else {
set _DAP_TAPID 0x4ba00477
}
jtag newtap $_CHIPNAME DAP -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_DAP_TAPID
# GDB target: Cortex-A8, using DAP
set _TARGETNAME $_CHIPNAME.cpu
target create $_TARGETNAME cortex_a -endian little -chain-position $_CHIPNAME.DAP
#etm config $_TARGETNAME 16 normal full etb
#etb config $_TARGETNAME $_CHIPNAME.etb
gdb_breakpoint_override hard
proc S5PC110_dbginit {target} {
# General Cortex A8 debug initialisation
cortex_a8 dbginit
}
# Slow speed to be sure it will work
#jtag_rclk 1000
#$_TARGETNAME configure -event "reset-start" { jtag_rclk 1000 }
$_TARGETNAME configure -event reset-assert-post "S5PC110_dbginit $_TARGETNAME"