How openhwfoundation/cva6-sdk works
CVA6 SDK builds bootable RISC-V Linux images for Genesys 2 and Agilex 7 FPGA boards, with a QEMU target. The main workflow selects a board and XLEN, uses Buildroot to build the toolchain and boot components, packages them into an SD-card image, then boots that image through OpenSBI, U-Boot, and Linux on FPGA boards. The README also documents a simpler QEMU boot path. Relationships below follow README statements; source excerpts are limited to an unrelated cache benchmark, so implementation details beyond the documented workflow are not inferred.
Main entry points: buildroot Buildroot · configs Board configs · post_image.sh Image packaging · fitImage.its.template FIT template
Components 17
Board configuration
- Board configs
configs - Image layout
configs
Image build
- Buildroot
buildroot - RISC-V toolchain
buildroot - Root filesystem
rootfs - Extra packages
br2-ext-tree/package - FIT template
fitImage.its.template - Image packaging
post_image.sh - SD-card image
Boot chain
- OpenSBI
buildroot - U-Boot
buildroot - Linux kernel
buildroot - Board BootROM
Target runtime
- SD card
- QEMU
- Linux user space
Other components
- SDK user
Connections 22
- SDK user → Board configs: selects board
README.md - SDK user → Buildroot: starts build
README.md - Board configs → Buildroot: configures build
README.md - Buildroot → RISC-V toolchain: builds
README.md - Buildroot → OpenSBI: builds
README.md - Buildroot → U-Boot: builds
README.md - Buildroot → Linux kernel: builds
README.md - Buildroot → Root filesystem: builds
README.md - Buildroot → Extra packages: includes
README.md - Buildroot → Image packaging: calls
README.md - FIT template → SD-card image: defines FIT contents
README.md - Image layout → SD-card image: defines layout
README.md - Image packaging → SD-card image: packages
README.md - SD-card image → SD card: flashed to
README.md - SD card → Board BootROM: loads partition
README.md - Board BootROM → OpenSBI: loads and executes
README.md - OpenSBI → U-Boot: executes payload
README.md - U-Boot → Linux kernel: launches
README.md - Linux kernel → Linux user space: launches init
README.md - SDK user → QEMU: runs target
README.md - QEMU → Linux kernel: boots kernel
README.md - QEMU → Linux user space: loads initramfs
README.md