k210-linux-nommu icon indicating copy to clipboard operation
k210-linux-nommu copied to clipboard

Missing qemu instructions (perhaps silly :)

Open affixalex opened this issue 4 years ago • 1 comments

Following your (excellent) instructions, I then try to run the resultant image in qemu like so:

qemu-system-riscv64 -nographic -machine sifive_u -smp 2 -m 8M -bios arch/riscv/boot/loader.bin 

This doesn't work, hence the question. I'm running NuttX like this (also built for the K210), so curious what the problem is here or if there are any special steps that need to be taken to use qemu.

affixalex avatar Apr 02 '20 21:04 affixalex

Sorry for late reply, this is a good issue, but arch/riscv/boot/loader.bin need the bootrom code for k210 to start, I think you need read this, https://bootlin.com/pub/conferences/2019/cdl/opdenacker-embedded-linux-40minutes-riscv/opdenacker-embedded-linux-40minutes-riscv.pdf, thanks

vowstar avatar Oct 21 '20 03:10 vowstar