[scripts] trace32 debug scripts for lk on 7k/8k
This commit is contained in:
10
scripts/attach.cmm
Normal file
10
scripts/attach.cmm
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
sys.down
|
||||||
|
|
||||||
|
do config_scorpion.cmm
|
||||||
|
|
||||||
|
sys.mode attach
|
||||||
|
|
||||||
|
if state.run()
|
||||||
|
(
|
||||||
|
break
|
||||||
|
)
|
||||||
16
scripts/config_a11.cmm
Normal file
16
scripts/config_a11.cmm
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
; MSM7200 ARM11 in JTAG Direct Mode
|
||||||
|
|
||||||
|
system.option.TRST ON
|
||||||
|
system.option.CFLUSH ON
|
||||||
|
system.option.ResBreak ON
|
||||||
|
system.option.EnReset ON
|
||||||
|
system.option.WaitReset ON
|
||||||
|
system.jtagclock RTCK
|
||||||
|
|
||||||
|
sys.cpu arm1136j
|
||||||
|
system.multicore irpre 0.
|
||||||
|
system.multicore drpre 0.
|
||||||
|
system.multicore irpost 0.
|
||||||
|
system.multicore drpost 0.
|
||||||
|
sys.mode attach
|
||||||
|
|
||||||
14
scripts/config_scorpion.cmm
Normal file
14
scripts/config_scorpion.cmm
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
|
||||||
|
system.option.TRST ON
|
||||||
|
system.option.CFLUSH ON
|
||||||
|
system.option.ResBreak ON
|
||||||
|
system.option.EnReset ON
|
||||||
|
system.option.WaitReset ON
|
||||||
|
system.jtagclock 5.0mhz
|
||||||
|
|
||||||
|
sys.cpu scorpion
|
||||||
|
system.multicore irpre 0.
|
||||||
|
system.multicore drpre 0.
|
||||||
|
system.multicore irpost 0.
|
||||||
|
system.multicore drpost 0.
|
||||||
|
|
||||||
39
scripts/lk.cmm
Normal file
39
scripts/lk.cmm
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
|
||||||
|
global &KERNEL_SRC
|
||||||
|
global &KERNEL_ELF
|
||||||
|
|
||||||
|
&KERNEL_SRC="../"
|
||||||
|
&KERNEL_ELF="../build-aboot/lk"
|
||||||
|
|
||||||
|
sys.down
|
||||||
|
|
||||||
|
do config_scorpion.cmm
|
||||||
|
|
||||||
|
sys.mode attach
|
||||||
|
|
||||||
|
if state.run()
|
||||||
|
(
|
||||||
|
break
|
||||||
|
)
|
||||||
|
|
||||||
|
data.load.ELF &KERNEL_ELF /RELPATH /PATH &KERNEL_SRC
|
||||||
|
|
||||||
|
register.set pc 0
|
||||||
|
register.set r0 0
|
||||||
|
;register.set r1 &MACHINE_ID
|
||||||
|
;register.set r2 &TAGS_ADDR
|
||||||
|
|
||||||
|
;tronchip.set dabort off
|
||||||
|
;tronchip.set pabort off
|
||||||
|
|
||||||
|
term.reset
|
||||||
|
term.size 70 100
|
||||||
|
term.scroll.on
|
||||||
|
term
|
||||||
|
|
||||||
|
break.select program onchip
|
||||||
|
break.delete
|
||||||
|
;break.set platform_early_init
|
||||||
|
|
||||||
|
go
|
||||||
|
|
||||||
Reference in New Issue
Block a user