inochisa commented on PR #12178: URL: https://github.com/apache/nuttx/pull/12178#issuecomment-2124575886
> @inochisa There might be a problem with QEMU SMP and OpenSBI / SSTC: > > When I tested with QEMU `-smp 8`: Out of 16 tries, 3 will boot OK, the rest will hang during NuttX Startup. It works fine without `-smp`. > I think this is simple because SBI does not guarantee the boot hart is 0, which is required for nuttx (Although the firmware used by qemu support setting boot hart, qemu itself does not provide this interface IIRC). If you set the correct hart number for the build, everything works well. > `-smp 8` comes from the NuttX Doc: https://nuttx.apache.org/docs/latest/platforms/risc-v/qemu-rv/boards/rv-virt/index.html#configurations > > ```shell > $ qemu-system-riscv64 -semihosting -M virt,aclint=on -cpu rv64 -smp 8 -bios none -kernel nuttx -nographic > ``` > > So we might have to remove `-smp 8` from the NuttX Doc. Or fix this issue in the NuttX Startup Code? (Due to Race Condition?) > At least for now, it seems we need to update the doc. I think setting the right number of CPU is always required. Fix this issue needs the capability of CPU discovery. And I have no idea for implementing it. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
