Follow

Let's boot Apache Real-Time Operating System on a 64-bit Device (QEMU Emulator) ... And study the Boot Code inside NuttX

Article: lupyuen.codeberg.page/articles

Let's boot Apache Real-Time Operating System on a 64-bit Device ( Emulator) ... And explore the RISC-V Boot Code inside NuttX

lupyuen.codeberg.page/articles

Show thread

@lupyuen Hi Lup thx for your awesome posts about #nuttx on embedded systems! I'm currently doing some research for a students tutorial and asking myself if GPIO can be simulated with #qemu and #riscv running #nuttx. Do you have any ideas on how to simulate this using the emu and how must #nuttx be configured to provide the /dev/gpioXX device?

@nekron Thanks :-) I don't think NuttX on RISC-V QEMU supports GPIO. That's because NuttX is hardcoded to use the "Generic Virtual Platform (virt)", which doesn't support GPIO:

lupyuen.codeberg.page/articles

We might need to switch to the PolarFire Icicle Emulator for QEMU:

qemu.org/docs/master/system/ri

And boot NuttX for PolarFire Icicle:

nuttx.apache.org/docs/latest/p

Sounds complicated though.

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.