SparkFun Forums 

Where electronics enthusiasts find answers.

Open source ARM Debugger
By te0543
#170755
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
Code: Select all
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
Code: Select all
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"
By hsutherl
#170774
Hi te0543,

I have a couple of the Odroid boards from Hardkernel. I'm curious what sort of hardware you're using?

I can't really help with openOCD for exynos - that is a MUCH more complex system than anything I've looked at.

But you might try
Code: Select all
monitor reset halt
monitor poll
By te0543
#170778
I can't step by step to debug kernel.

"Warn : Invalid ACK 0 in JTAG-DP transaction
Polling target S5PC210.cpu failed, GDB will be halted. Polling again in 100ms
Polling target S5PC210.cpu succeeded again
Polling target S5PC210.cpu failed, GDB will be halted. Polling again in 100ms
Polling target S5PC210.cpu succeeded again
Error: cortex_a8_mmu: target not halted
"
hsutherl wrote:Hi te0543,

I have a couple of the Odroid boards from Hardkernel. I'm curious what sort of hardware you're using?

I can't really help with openOCD for exynos - that is a MUCH more complex system than anything I've looked at.

But you might try
Code: Select all
monitor reset halt
monitor poll