forked from riscv-software-src/opensbi
-
Notifications
You must be signed in to change notification settings - Fork 0
Usage Of The OpenSBI
Shawn Xu edited this page Aug 13, 2024
·
3 revisions
- First build the OpenSBI, refs Build Guidance
- Write the fw_jump.bin into flash
- Use a bootloader to copy the OpenSBI binary into address FW_TEXT_START
- Use a bootloader to init SDRAM and then copy the kernel binary(or other binary running in S mode) to address FW_JUMP_ADDR
- Use a bootloader to copy the DTB to address FW_JUMP_FDT_ADDR
- Make sure all memory access operation is done, ex use 'fence iorw, iorw' and 'fence.i', then set the pc to FW_TEXT_START to run OpenSBI.
Here is an example pre-loader for OpenSBI: A-Previous-Stage-Bootloader-Example