littlekernel / lk

LK embedded kernel

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

qemu-system-riscv64 cannot start up

weiyongjun-yyds opened this issue · comments

When I enter a command[qemu-system-riscv64 -machine virt -cpu rv64 -m 48 -smp 1 -bios none -nographic -kernel build-project1/lk.elf], the system cannot start up.

Well, there's no reason it shouldn't, but it depends a lot on how that particular project was configured. Since you're mentioning 'project1' in this case I assume you're building something different than the usual qemu-virt project?

Otherwise if you start it with ./script/do-qemuriscv -6 -m 48 you should get pretty much that exact build, which is a riscv64 build designed to run in Machine mode (vs supervisor mode build, specified with -S).