Releases: fvasquez/building-riscv-yocto
Releases · fvasquez/building-riscv-yocto
Workshop Slides
Prepopulated sstate-cache
Download and extract all three parts to ${HOME}/yocto/sstate-cache before building qemuriscv64.yml:
sstate-cache-part1.tar.gzsstate-cache-part2.tar.gzsstate-cache-part3.tar.gz
Remember to source kas-build-env before running kas-container build kas/qemuriscv64.yml.
Prebuilt Linux Image
The qemuriscv64.tar.gz archive contains the Mackerel rootfs.ext4 and Linux kernel Image files for qemu-system-riscv64.
To boot Mackerel without sudo:
qemu-system-riscv64 \
-machine virt \
-cpu rv64 \
-smp 4 \
-m 2G \
-netdev user,id=net0 \
-device virtio-net-device,netdev=net0 \
-kernel Image \
-drive file=core-image-minimal-qemuriscv64.rootfs.ext4,format=raw,if=none,id=hd0 \
-device virtio-blk-device,drive=hd0 \
-append "root=/dev/vda rw console=ttyS0" \
-nographic
Replace <path-to-Image> and <path-to-rootfs.ext4> with the locations of Image and core-image-minimal-qemuriscv64.rootfs.ext4.