Re: [PATCH 0/2] riscv: support ELF format binaries in nommu mode

From: Niklas Cassel
Date: Wed Mar 01 2023 - 04:46:49 EST


On Wed, Mar 01, 2023 at 07:49:05AM +0900, Damien Le Moal wrote:

(snip)

> > Adding Damien, as IIRC he's had some hacked up userspace bits for the
> > K210. I'm yet to get anything running, but it'd be great if we get this
> > to a point where I can actually boot test this on QEMU (I'm just doing
> > builds now).
>
> +Niklas
>
> Niklas, didn't you add a nommu qemu build for buildroot ? Can't find the config
> though...

Yes, I did.

In buildroot:
$ make qemu_riscv64_nommu_virt_defconfig

The QEMU command line generated by buildroot:
qemu-system-riscv64 -M virt -bios none -kernel output/images/Image -append "rootwait root=/dev/vda ro" -drive file=output/images/rootfs.ext2,format=raw,id=hd0 -device virtio-blk-device,drive=hd0 -nographic -cpu rv64,mmu=off # qemu_riscv64_nommu_virt_defconfig

Compared to a regular riscv64 QEMU command line, the relevant parameter is:
-cpu rv64,mmu=off


Kind regards,
Niklas