Re: [PATCH v2 2/2] RISC-V: Don't use a global include guard for uapi/asm/syscalls.h

From: Guenter Roeck
Date: Fri Aug 10 2018 - 00:53:40 EST


On 08/09/2018 08:59 PM, Palmer Dabbelt wrote:
[ ... ]
Also, what is your methodology? I follow

ÂÂÂ https://wiki.qemu.org/Documentation/Platforms/RISCV

Here are my qemu command lines:

qemu-system-riscv64 -M virt -m 512M -no-reboot -bios bbl \
-kernel vmlinux -netdev user,id=net0 -device virtio-net-device,netdev=net0 \
-initrd rootfs.cpio \
-append 'rdinit=/sbin/init earlycon console=ttyS0,115200' \
-nographic -monitor none

qemu-system-riscv64 -M virt -m 512M -no-reboot -bios bbl \
-kernel vmlinux -netdev user,id=net0 -device virtio-net-device,netdev=net0 \
-device virtio-blk-device,drive=d0 \
-drive file=rootfs.ext2,if=none,id=d0,format=raw \
-append 'root=/dev/vda rw earlycon console=ttyS0,115200' \
-nographic -monitor none

Root file systems and the bbl binary are published at
https://github.com/groeck/linux-build-test/tree/master/rootfs/riscv64

Hint: If you specify "noreboot" as additional command line option, you'll end up in a shell.

Qemu version:
https://github.com/riscv/riscv-qemu.git branch 'v3.0.0-local-riscv'

Guenter