# 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 #stop script here if you need to debug first pass of SPL 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 *0x0 thbreak spl_boot_device #stop script here if you need to debug second pass of SPL continue wait 60s # load u-boot and run up to board_init_r delete loadfile u-boot-socfpga/u-boot start wait restore u-boot-socfpga/u-boot.dtb binary &_end # restore u-boot-socfpga/u-boot.dtb binary 0x01000080 thbreak relocate_code continue wait 60s symbol-file u-boot-socfpga/u-boot ((gd_t*)$r9)->reloc_off thbreak board_init_r continue wait 60s stop continue