Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to run your kernel using qemu #23

Open
quantrpeter opened this issue Mar 27, 2023 · 1 comment
Open

how to run your kernel using qemu #23

quantrpeter opened this issue Mar 27, 2023 · 1 comment

Comments

@quantrpeter
Copy link

quantrpeter commented Mar 27, 2023

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

@sunmin89
Copy link

sunmin89 commented May 9, 2023

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants