summaryrefslogtreecommitdiff
path: root/scripts/debugger/xdb_scripts/bootloader.xdb
blob: 9cc912eecd0e6db7696b5dc347473f81996790b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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