d0iasm/rvemu

how to run your kernel using qemu

quantrpeter opened this issue · 1 comments

Hi
I tried to run your kernel image using qemu but nothing on the screen.

qemu-system-riscv64 -machine virt -bios none -kernel kernel -m 32M -smp 1 -nographic -global virtio-mmio.force-legacy=false -drive file=fs.img,if=none,format=raw,id=x0 -device virtio-blk-device,drive=x0,bus=virtio-mmio-bus.0

thanks
Peter

@quantrpeter
Hi, I can run the kernel bbl (from the root folder of rvemu)

ubuntu@:rvemu$ qemu-system-riscv64 --version
QEMU emulator version 5.0.0
Copyright (c) 2003-2020 Fabrice Bellard and the QEMU Project developers
qemu-system-riscv64 -nographic -machine virt -kernel bin/linux/bbl   -append "root=/dev/vda ro console=ttyS0"   -drive file=bin/linux/busybear.bin,format=raw,id=hd0   -device virtio-blk-device,drive=hd0

But the serial console continully print a lot of error messages like below, even after I logged in(with username: root, password: busybear).

/sbin/dropbear: line 2: syntax error: unterminated quoted string
/sbin/dropbear: line 2: syntax error: unterminated quoted string