Follow

Try our Online Demo of Apache Real-Time Operating System ... Powered by TinyEMU Emulator 👍

Source: nuttx.apache.org/demo/

@lupyuen i wanna port r2 to nuttx, could be fun to learn from this system. Is there any guide to crosscompile posix programs for it? Whats the essiest way to get an emulated system running with your code in it?

@pancake That's very cool! We can follow these steps to build and run NuttX on QEMU RISC-V 64-bit:

lupyuen.github.io/articles/ris

Then add our code to the `hello` app:

apps/examples/hello/hello_main.c

Note that the Hello App needs to be enabled (change "M" to "*"):

github.com/lupyuen/lupyuen.git

Generally, any code that targets Linux Command-Line, will probably compile on NuttX without changes.

If NuttX fails to build something because of missing headers (e.g. GTK), then it's probably not supported by NuttX :-)

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.