
Boot Linux on RISC-V in QEMU With OpenSBI and U-Boot
Build OpenSBI, U-Boot and a Linux 6.12 Image for riscv64, boot them on QEMU virt in the real firmware chain and load the kernel from an ext4 disk with booti.
Tag
7 posts

Build OpenSBI, U-Boot and a Linux 6.12 Image for riscv64, boot them on QEMU virt in the real firmware chain and load the kernel from an ext4 disk with booti.

Build the smallest RISC-V kernel that boots on QEMU virt: a linker script at 0x80200000, an entry stub, a C main printing through the UART, and a GDB check.

Write a PCI driver for QEMU 9.2's educational edu device on Linux 6.12: ID check, liveness register, factorial engine and interrupt, with the register map.

Trace what QEMU does with /dev/kvm, from open and KVM_CREATE_VM to the anonymous VM and vCPU file descriptors, using strace and /proc to see each step.

Enable nested virtualization on a KVM host, pass the vmx or svm flag to a guest with -cpu host and start a second-level VM, with the checks that prove it works.

Emulation translates a foreign CPU, virtualization runs guest code natively under a hypervisor, and containers share the host kernel. Here is how they differ.

How virtual machines really work, from CPU privilege rings and VM exits to EPT, virtio, containers and confidential VMs, with C code you can read line by line.