Skip to content

system/toybox: Add toybox a tool box similar to busybox - #3722

Open
acassis wants to merge 1 commit into
apache:masterfrom
acassis:toybox
Open

system/toybox: Add toybox a tool box similar to busybox#3722
acassis wants to merge 1 commit into
apache:masterfrom
acassis:toybox

Conversation

@acassis

@acassis acassis commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Summary

Toybox is the tool box used on Android by default. Adding it to NuttX allows to have more advanced features from Linux, even better support for shell scripts.

Depends-on: apache/nuttx#19818

Impact

User could use a shell more similar to Linux and even use real shell scripts from Linux

Testing

$ ./nuttx 

Toybox 0.8.14-nuttx for NuttX -- 'help' lists commands, 'exit' leaves the prompt.

toybox> help
[ base64 basename cal cat chgrp chmod chown cksum clear cmp comm cp
cpio cut date dd df diff dirname dos2unix du echo egrep env expand
expr fallocate false fgrep file find fmt free fsync getopt grep groups
gunzip gzip head help hostname id kill killall ln logname ls md5sum
mkdir mkfifo mktemp mv nice nl nohup nproc od paste pgrep pidof pkill
printenv printf prlimit ps pwd readlink realpath renice rev rm rmdir
sed seq setsid sha1sum sha224sum sha256sum sha384sum sha512sum sleep
sort split stat strings sync tac tail tar tee test time timeout touch
tr true truncate ulimit uname uniq unix2dos unlink uptime usleep uudecode
uuencode uuidgen wc which whoami xargs xxd yes zcat 

toybox> uname -a
NuttX  0.0.0 6c5a59b1-dirty Aug 12 2026 14:38:48 sim Toybox

toybox> ls /dev
console  gpio1  gpio3  null     ram0  rtc0
gpio0    gpio2  loop   oneshot  ram1  zero
toybox> 

Toybox is the tool box used on Android by default. Adding it to NuttX
allows to have more advanced features from Linux, even better support
for shell scripts.

Signed-off-by: Alan C. Assis <acassis@gmail.com>
Assisted-by: Claude Sonnet 5 <noreply@anthropic.com>
@cederom

cederom commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Thank you @acassis amazing feature!! :-)

There are more patches than code.. do you think it would be possible to patch the upstream or not really possible and we need to perform all these patches downstream? :-)

I found documentation PR here apache/nuttx#19818 and updated the PR description :-)

@acassis

acassis commented Aug 12, 2026

Copy link
Copy Markdown
Contributor Author

Thank you @acassis amazing feature!! :-)

There are more patches than code.. do you think it would be possible to patch the upstream or not really possible and we need to perform all these patches downstream? :-)

I found documentation PR here apache/nuttx#19818 and updated the PR description :-)

Yes, I think many of these PR could be submitted upstream, but I don't know how opened they are to add NuttX support. So getting it working on NuttX and letting more people testing at same time is better.

Oh, I think we update the title at the same time

@cederom cederom left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thank you @acassis amazing feature and great work!! :-)

@github-actions

Copy link
Copy Markdown

🔗 Cross-repo PR dependencies

The read-only Build run reported the following dependent PR(s) and fetched head SHA(s):

CI run: https://github.com/apache/nuttx-apps/actions/runs/31626309080

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants