Skip to content

boards/raspberrypi-4b: Add NXInit configuration#19002

Merged
lupyuen merged 2 commits into
apache:masterfrom
linguini1:rpi4b-nxinit
May 31, 2026
Merged

boards/raspberrypi-4b: Add NXInit configuration#19002
lupyuen merged 2 commits into
apache:masterfrom
linguini1:rpi4b-nxinit

Conversation

@linguini1
Copy link
Copy Markdown
Contributor

Summary

This commit adds a configuration which uses the new "NXInit" to start up the board and the NSH shell. The init.rc file is pulled from the SD card, allowing users to create their own.

Impact

Configuration using the nxinit system! Users can now modify it as they need to
launch their own applications with nxinit.

Testing

Logs from config showing nxinit running before NSH on the Pi4B:

NuttShell (NSH) NuttX-12.13.0
nsh> ps
  TID   PID  PPID PRI POLICY   TYPE    NPX STATE    EVENT     SIGMASK            STACK    USED FILLED COMMAND
    0     0     0   0 FIFO     Kthread   - Ready              0000000000000000 0008144 0000928  11.3%  Idle_Task
    1     0     0 192 RR       Kthread   - Waiting  Semaphore 0000000000000000 0008080 0001088  13.4%  hpwork 0x48
    3     3     0 100 RR       Task      - Waiting  Semaphore 0000000000000000 0008112 0002880  35.5%  init_main
    4     4     3 100 RR       Task      - Running            0000000000000000 0008112 0003520  43.3%  nsh
nsh> ls
/:
 dev/
 proc/
 sd/

init.rc script used:

on boot
    start console
service console nsh
    class core
    restart_period 1000

linguini1 added 2 commits May 30, 2026 14:16
This commit adds a configuration which uses the new "NXInit" to start up
the board and the NSH shell. The `init.rc` file is pulled from the SD
card, allowing users to create their own.

Signed-off-by: Matteo Golin <matteo.golin@gmail.com>
Document a new nxinit configuration.

Signed-off-by: Matteo Golin <matteo.golin@gmail.com>
@linguini1 linguini1 added this to the RPi4B milestone May 30, 2026
@github-actions github-actions Bot added Area: Documentation Improvements or additions to documentation Size: S The size of the change in this PR is small Board: arm64 labels May 30, 2026
Copy link
Copy Markdown
Contributor

@acassis acassis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing!!!

@linguini1
Copy link
Copy Markdown
Contributor Author

It's good to have some configs to test NXinit with! Sim would be a good target as well.

@acassis
Copy link
Copy Markdown
Contributor

acassis commented May 30, 2026

It's good to have some configs to test NXinit with! Sim would be a good target as well.

For sure! Maybe including more example showing all the features

Copy link
Copy Markdown
Contributor

@cederom cederom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @linguini1 :-)

@lupyuen lupyuen merged commit 15a68cc into apache:master May 31, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: Documentation Improvements or additions to documentation Board: arm64 Size: S The size of the change in this PR is small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants