apache / nuttx-website

Apache NuttX Website
https://nuttx.apache.org/
Apache License 2.0
18 stars 23 forks source link

Add NuttX Online Demo #104

Closed lupyuen closed 9 months ago

lupyuen commented 9 months ago

Summary

As suggested by @hartmannathan, this PR adds the NuttX Online Demo based on TinyEMU 64-bit RISC-V Emulator and WebAssembly.

The TinyEMU Port of NuttX shall be upstreamed later to NuttX Mainline. This will allow the Online Demo to be refreshed for new releases of NuttX. More about NuttX for TinyEMU

Modified Files

index.md: Add link to Demo Page: "Try the online demo here"

_includes/themes/apache/default.html: Add Demo CSS

New Files

demo.md: New Demo Page with NuttX in TinyEMU Emulator

demo/nuttx.bin: NuttX Image compiled from the upcoming TinyEMU Port of NuttX (64-bit RISC-V). Compiled with these steps to produce these Build Outputs.

demo/*.js, *.wasm, *.cfg, *.png: Demo Files from TinyEMU project, based on MIT Licence.

assets/themes/apache/css/demo.css: Demo CSS from TinyEMU project, based on MIT Licence.

_includes/themes/apache/demo.html: New Theme for Demo Page

_layouts/demo.html: New Layout for Demo Page

Impact

NuttX Online Demo is now accessible via a link on the Home Page.

Testing

Watch the Demo on YouTube

For Testing: I copied the Jekyll-generated files to my website: lupyuen.github.io/nuttx-tinyemu/target/demo

The Home Page now includes a link to Demo Page: "Try the online demo here"

Screenshot 2024-01-23 at 7 12 13 PM

The Demo Page runs NuttX in the TinyEMU Emulator. We tested these commands: uname, hello, ostest, free, help, ls, ps:

Screenshot 2024-01-23 at 7 12 35 PM

The Demo Page also works on Mobile:

Screenshot_20240123-191433