1 ############################################################
\r
3 # Copyright Altera 2013
\r
4 # All Rights Reserved
\r
7 ############################################################
\r
10 # stop processor if running
\r
17 #set semihosting enabled 0
\r
20 # load the preloader (a.k.a the spl from our uboot dist)
\r
22 loadfile "$sdir/uboot-socfpga/spl/u-boot-spl" 0x0
\r
25 # set pc to entry point
\r
27 set debug-from *$entrypoint # Set start-at setting to address of $entrypoint
\r
31 # delete any breakpoints
\r
36 # set hw breakpoint in spl in function, spl_boot_device,
\r
37 # The function, spl_boot_device, is called right before the spl tries
\r
38 # to load. We stop here so we don't have to change any spl.
\r
40 tbreak spl_boot_device
\r
42 # tell target to continue executing spl
\r
45 # wait for breakpoint
\r