summaryrefslogtreecommitdiff
path: root/scripts/debugger/xdb_scripts/bootloader.xdb
diff options
context:
space:
mode:
authorKonstantin Porotchkin <kostap@marvell.com>2017-03-23 17:22:55 +0200
committerKonstantin Porotchkin <kostap@marvell.com>2017-04-02 17:38:13 +0300
commit80316c829d0c56b67eb60c39fe3fd6266b314860 (patch)
tree31d825c679a52aaef0abd4bab3e7d4367a1af66d /scripts/debugger/xdb_scripts/bootloader.xdb
parent3cbd96a876a00eb4c30af69ce827307a1dbf455c (diff)
scripts: Add XDB debugger scripts for A7K/A8K platformsHEADatf-v1.3-17.04
Add XDB scripts for A7K/A8K platforms Change-Id: I43577d83fe252a0a72f98df8bbd224a5091b189f Signed-off-by: Haim Boot <hayim@marvell.com> Signed-off-by: Konstantin Porotchkin <kostap@marvell.com> Reviewed-on: http://vgitil04.il.marvell.com:8080/37919
Diffstat (limited to 'scripts/debugger/xdb_scripts/bootloader.xdb')
-rw-r--r--scripts/debugger/xdb_scripts/bootloader.xdb28
1 files changed, 28 insertions, 0 deletions
diff --git a/scripts/debugger/xdb_scripts/bootloader.xdb b/scripts/debugger/xdb_scripts/bootloader.xdb
new file mode 100644
index 00000000..9cc912ee
--- /dev/null
+++ b/scripts/debugger/xdb_scripts/bootloader.xdb
@@ -0,0 +1,28 @@
+if (@strcmp(@BL_ELF_PATH,"EMPTY")==0) then
+ set value @BL_ELF_PATH = @queryinputfile("select Bootloader binary file", "all files (*.*)|*.*");
+ if @strlen(BL_ELF_PATH) == 0 then
+ !user hit cancel button
+ print "user abort\n"
+ MESSAGE "Update the path of the Bootloader binary, and reload the script"
+ EXIT
+ end
+end
+
+! if the ATF script is not run, reset the board and stop at 0xffff0000
+IF @atf_run != 1 THEN
+TCI TRESET
+RESTART
+END
+
+DELETE BREAKPOINT /ALL
+! break at U-Boot
+SET BREAKPOINT AT (0x0) HARD
+! Run till the U-boot
+RUN
+
+DELETE BREAKPOINT /ALL
+
+! load U-Boot ELF image
+LOAD /SEGMENT /DEBUG /GLOBAL /INIT="" OF @BL_ELF_PATH
+
+! RUN