Skip to content

Instantly share code, notes, and snippets.

View lupyuen's full-sized avatar
💭
Apache NuttX RTOS on StarPro64 RISC-V SBC / ESWIN EIC7700X

Lup Yuen Lee lupyuen

💭
Apache NuttX RTOS on StarPro64 RISC-V SBC / ESWIN EIC7700X
View GitHub Profile
luppy@thinkstation:~/nuttx-test-bot$ sudo docker run \
-it \
ghcr.io/apache/nuttx/apache-nuttx-ci-linux:latest \
/bin/bash
[sudo] password for luppy:
root@c903aa0b8a2a:/tools# pip install ntfc
mkdir $HOME/nuttx-ntfc
mkdir $HOME/nuttx-ntfc/external
cd $HOME/nuttx-ntfc/external
git clone -b release-0.0.1 https://github.com/apache/nuttx-ntfc-testing
luppy@thinkstation:~/nuttx-test-bot$ sudo docker run \
-it \
ghcr.io/apache/nuttx/apache-nuttx-ci-linux:latest \
/bin/bash
[sudo] password for luppy:
root@710fcf53e8ef:/tools# pip install ntfc
Collecting ntfc
Downloading ntfc-0.0.2-py3-none-any.whl.metadata (3.9 kB)
Requirement already satisfied: click>=8.1 in /usr/local/lib/python3.10/dist-packages (from ntfc) (8.4.1)
Requirement already satisfied: pyyaml in /usr/lib/python3/dist-packages (from ntfc) (5.4.1)
➜ nuttx-github-metrics git:(main) $ cd /tmp
➜ /tmp $ mkdir 260525a
➜ /tmp $ cd 260525a
➜ 260525a $ git clone https://github.com/toku-mac/nuttx --branch fix_cmake_sim_toolchain
Cloning into 'nuttx'...
remote: Enumerating objects: 909636, done.
remote: Counting objects: 100% (1339/1339), done.
remote: Compressing objects: 100% (541/541), done.
remote: Total 909636 (delta 955), reused 799 (delta 798), pack-reused 908297 (from 3)
Receiving objects: 100% (909636/909636), 367.18 MiB | 20.00 MiB/s, done.
@lupyuen
lupyuen / testbuild.md
Last active May 20, 2026 07:27
Gemini 3.1 Pro: Are there any issues with this code: `testbuild.sh` https://github.com/apache/nuttx/issues/18562#issuecomment-4301679279

Gemini 3.1 Pro: Are there any issues with this code: testbuild.sh

I've reviewed testbuild.sh (the active document) as well as the related cibuild.sh script, and I've found a few significant issues. Here are the main problems with the code:

1. cibuild.sh Incorrectly Parses Arguments Passed to testbuild.sh

In tools/ci/cibuild.sh, the script claims to support all testbuild.sh options via the -* catch-all. However, the while loop completely breaks on any option that requires an argument (like -j 4 or -a appsdir).

# cibuild.sh
 -* )
CC: barrier.c CC: cancel.c CC: cond.c CC: dev_null.c CC: nsh_alias.c CC: fpu.c CC: getopt.c CC: nsh_command.c CC: libc_memmem.c CC: mqueue.c CC: mutex.c CC: posixtimer.c CC: nsh_console.c CC: nsh_consolemain.c CC: nsh_dbgcmds.c CC: pthread_exit.c CC: nsh_envcmds.c CC: pthread_rwlock.c CC: nsh_fileapps.c CC: board/dummy.c fpu.c:57:8: warning: #warning "FPU test not built; Only available in the flat build (CONFIG_BUILD_FLAT)" [^[]8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wcpp^G-Wcpp^[]8;;^G]
Script started on 2026-05-06 10:37:00+08:00 [COMMAND="/home/luppy/nuttx-build-farm/build-test-oz64.sh HEAD HEAD https://github.com/xiaoxiang781216/incubator-nuttx sched/remove-system-time64 https://github.com/xiaoxiang781216/incubator-nuttx-apps sched/remove-system-time64" TERM="xterm-256color" TTY="/dev/pts/26" COLUMNS="101" LINES="69"]
Now running https://github.com/lupyuen/nuttx-build-farm/blob/main/build-test-oz64.sh HEAD HEAD https://github.com/xiaoxiang781216/incubator-nuttx
CC: robust.c CC: roundrobin.c CC: sem.c CC: schedlock.c CC: semtimed.c CC: setvbuf.c CC: sighand.c fpu.c:57:8: warning: #warning "FPU test not built; Only available in the flat build (CONFIG_BUILD_FLAT)" [^[]8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wcpp^G-Wcpp^[]8;;^G]
Script started on 2026-05-06 10:32:24+08:00 [COMMAND="/home/luppy/nuttx-build-farm/build-test-starpro64.sh HEAD HEAD https://github.com/xiaoxiang781216/incubator-nuttx sched/remove-system-time64 https://github.com/xiaoxiang781216/incubator-nuttx-apps sched/remove-system-time64" TERM="xterm-256color" TTY="/dev/pts/26" COLUMNS="101" LINES="69"]
Now running https://github.com/lupyuen/nuttx-build-farm/blob/main/build-test-starpro64.sh HEAD HEAD https://github.com/xiaoxiang781216/incubator-nuttx sched/remove-system-time64 https://github.com/xiaoxiang781216/incubator-nuttx-apps sched/remove-system-time64
+ export STARPRO64_SERVER=thinkcentre
+ STARPRO64_SERVER=thinkcentre
+ export TFTP_SERVER=tftpserver
+ TFTP_SERVER=tf
Script started on 2026-05-06 10:27:28+08:00 [COMMAND="/home/luppy/nuttx-build-farm/build-test-avaota.sh HEAD HEAD https://github.com/xiaoxiang781216/incubator-nuttx sched/remove-system-time64 https://github.com/xiaoxiang781216/incubator-nuttx-apps sched/remove-system-time64" TERM="xterm-256color" TTY="/dev/pts/26" COLUMNS="101" LINES="69"]
Now running https://github.com/lupyuen/nuttx-build-farm/blob/main/build-test-avaota.sh HEAD HEAD https://github.com/xiaoxiang781216/incubator-nuttx sched/remove-system-time64 https://github.com/xiaoxiang781216/incubator-nuttx-apps sched/remove-system-time64
+ export AVAOTA_SERVER=thinkcentre
+ AVAOTA_SERVER=thinkcentre
+ nuttx_hash=HEAD
+ apps_hash=HEAD
+ nuttx_url=https://github.com/xiaoxiang781216/incubator-nuttx
+ nuttx_ref=sched/remove-system-time64
+ apps_url=https://github.com/xiaoxiang781216/incubator-nuttx-apps
+ apps_ref=sched/remove-system-time64
fpu.c:57:8: warning: #warning "FPU test not built; Only available in the flat build (CONFIG_BUILD_FLAT)" [^[]8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wcpp^G-Wcpp^[]8;;^G]
Script started on 2026-05-06 07:01:18+08:00 [COMMAND="/home/luppy/nuttx-build-farm/build-test-oz64.sh HEAD HEAD https://github.com/apache/nuttx master https://github.com/linguini1/nuttx-apps byebye-archinit" TERM="xterm-256color" TTY="/dev/pts/25" COLUMNS="101" LINES="69"]
Now running https://github.com/lupyuen/nuttx-build-farm/blob/main/build-test-oz64.sh HEAD HEAD https://github.com/apache/nuttx master https://github.com/linguini1/nuttx-apps byebye-archinit
+ export OZ64_SERVER=tftpserver
+ OZ64_SERVER=tftpserver
+ nuttx_hash=HEAD
+ apps_hash=HEAD
+ nuttx_url=https://github.com/apache/nuttx
+ nuttx_ref=master
+ apps_url=https://github.com/linguini1/nuttx-apps
CC: timedmutex.c CC: sigprocmask.c CC: timedmqueue.c CC: timedwait.c CC: waitpid.c CC: vfork.c CC: wqueue.c fpu.c:57:8: warning: #warning "FPU test not built; Only available in the flat build (CONFIG_BUILD_FLAT)" [^[]8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wcpp^G-Wcpp^[]8;;^G]
Script started on 2026-05-06 06:57:04+08:00 [COMMAND="/home/luppy/nuttx-build-farm/build-test-starpro64.sh HEAD HEAD https://github.com/apache/nuttx master https://github.com/linguini1/nuttx-apps byebye-archinit" TERM="xterm-256color" TTY="/dev/pts/25" COLUMNS="101" LINES="69"]
Now running https://github.com/lupyuen/nuttx-build-farm/blob/main/build-test-starpro64.sh HEAD HEAD https://github.com/apache/nuttx master https://github.com/linguini1/nuttx-apps byebye-archinit
+ export STARPRO64_SERVER=thinkcentre
+ STARPRO64_SERVER=thinkcentre
+ export TFTP_SERVER=tftpserver
+ TFTP_SERVER=tftpserver
+ nuttx_hash=HEAD
+ apps_hash=HEAD
+ nuttx_url=https://github.com/apache/nuttx
Script started on 2026-05-06 06:52:06+08:00 [COMMAND="/home/luppy/nuttx-build-farm/build-test-avaota.sh HEAD HEAD https://github.com/apache/nuttx master https://github.com/linguini1/nuttx-apps byebye-archinit" TERM="xterm-256color" TTY="/dev/pts/25" COLUMNS="101" LINES="69"]
Now running https://github.com/lupyuen/nuttx-build-farm/blob/main/build-test-avaota.sh HEAD HEAD https://github.com/apache/nuttx master https://github.com/linguini1/nuttx-apps byebye-archinit
+ export AVAOTA_SERVER=thinkcentre
+ AVAOTA_SERVER=thinkcentre
+ nuttx_hash=HEAD
+ apps_hash=HEAD
+ nuttx_url=https://github.com/apache/nuttx
+ nuttx_ref=master
+ apps_url=https://github.com/linguini1/nuttx-apps
+ apps_ref=byebye-archinit