littlekernel / lk

LK embedded kernel
MIT License
3.11k stars 611 forks source link

qemu-system-riscv64 cannot start up #403

Open weiyongjun-yyds opened 2 months ago

weiyongjun-yyds commented 2 months ago

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.

travisg commented 1 month ago

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).