# initialize system stop wait 5s reset stop wait 5s set trust-ro-sections-for-opcodes off # load SPL and run up until the warm reset restore u-boot-socfpga/spl/u-boot-spl-dtb.bin binary 0xFFE00000 symbol-file u-boot-socfpga/spl/u-boot-spl set $PC = $ENTRYPOINT thbreak *0x0 continue wait 60s # load SPL again and run up until spl_boot_device restore u-boot-socfpga/spl/u-boot-spl-dtb.bin binary 0xFFE00000 symbol-file u-boot-socfpga/spl/u-boot-spl set $PC = $ENTRYPOINT thbreak spl_boot_device continue wait 60s # load and start U-Boot delete loadfile u-boot-socfpga/u-boot start wait restore u-boot-socfpga/u-boot.dtb binary &_end # run until relocation, and adjust symbols accordingly thbreak relocate_code cont wait 60s symbol-file u-boot-socfpga/u-boot ((gd_t*)$r9)->reloc_off thbreak board_init_r continue wait 60s