Skip to content

Releases: fvasquez/building-riscv-yocto

Workshop Slides

21 Oct 02:23

Choose a tag to compare

Slides for Building RISC-V Linux Images with Yocto taking place on Wednesday October 22 at RISC-V Developer Workshops in Santa Clara.

Prepopulated sstate-cache

13 Oct 19:59

Choose a tag to compare

Download and extract all three parts to ${HOME}/yocto/sstate-cache before building qemuriscv64.yml:

  • sstate-cache-part1.tar.gz
  • sstate-cache-part2.tar.gz
  • sstate-cache-part3.tar.gz

Remember to source kas-build-env before running kas-container build kas/qemuriscv64.yml.

Prebuilt Linux Image

13 Oct 17:46

Choose a tag to compare

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.