diff options
Diffstat (limited to 'scripts/debugger/xdb_scripts/bootloader.xdb')
-rw-r--r-- | scripts/debugger/xdb_scripts/bootloader.xdb | 28 |
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 |