############################################################ # # Copyright Altera 2013 # All Rights Reserved # File: preloader.ds # ############################################################ # # stop processor if running # reset system pause 1s stop wait 30s set var $Core::$R0 = 0 set semihosting enabled 0 # # load the preloader (a.k.a the spl from our uboot dist) # restore "$sdir/u-boot-socfpga/spl/u-boot-spl.sfp" binary S:0xFFFF0000 file "$sdir/u-boot-socfpga/spl/u-boot-spl" pause 1s # # set pc to entry point # set debug-from *$entrypoint # Set start-at setting to address of $entrypoint start # # delete any breakpoints # delete # # set hw breakpoint in spl in function, spl_boot_device, # The function, spl_boot_device, is called right before the spl tries # to load. We stop here so we don't have to change any spl. # tbreak spl_boot_device # tell target to continue executing spl cont # wait for breakpoint wait 60s