lkml.org 
[lkml]   [2023]   [Mar]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH 0/2] riscv: support ELF format binaries in nommu mode
Date
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
\
 
 \ /
  Last update: 2023-03-27 00:39    [W:0.124 / U:0.156 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site