LibCheckpointAlpha is a transitional version of LibCheckpoint(https://github.com/OpenXiangShan/LibCheckpoint), currently offers two uses, one for restore checkpoint, and the other for linking the next level bootloader (riscv-pk or opensbi)
using the following command to build gcpt.bin, which could overwrite 0x80000000 ~ sizeof(gcpt.bin) during restore checkpoint process
make clean && make
using the following command to build gcpt.bin, which could link next level bootloader, then gcpt.bin can be used boot directly
make clean && make GCPT_PAYLOAD_PATH=/path/to/bbl.bin
- rv64gcbkhv
- If gcpt.bin is loaded into flash and the system boots from flash, gcpt.bin will either jump to 0x80000000 or restore the checkpoint from the flash image, regardless of whether a payload is linked.
- If gcpt.bin is loaded into memory, it will jump to 0x80100000 if a payload is linked else restore the checkpoint from the memory image.