mirror of
https://github.com/lupyuen/nuttx-release.git
synced 2025-01-12 15:18:30 +08:00
Scripts for Apache NuttX RTOS Release Testing
close.exp | ||
compute-github-runners.sh | ||
compute-github-runners2.sh | ||
enable-macos-windows.sh | ||
enable-macos-windows2.sh | ||
kill-push-master.sh | ||
LICENSE | ||
README.md | ||
release-milkvduos.sh | ||
release-ox64.sh | ||
release-pinephone.sh | ||
release-star64.sh | ||
release.sh | ||
restart-failed-job.sh | ||
run-ci.sh | ||
run-job.sh | ||
sync-build-ingest.sh |
Scripts for Apache NuttX RTOS Release Testing
Apache NuttX Release Testing for Milk-V Duo S, Ox64 BL808, Star64 JH7110, PinePhone:
## TODO: Make sure ../github-token.sh contains a GitHub Token with Gist Permission
## export GITHUB_TOKEN=...
## Run the Release Test Script for Milk-V Duo S, Ox64 BL808, Star64 JH7110, PinePhone:
. ../github-token.sh && ./release.sh milkvduos
. ../github-token.sh && ./release.sh ox64
. ../github-token.sh && ./release.sh star64
. ../github-token.sh && ./release.sh pinephone
To prepare Ubuntu for NuttX Release Testing:
## Grant access to /dev/tty*
sudo usermod -a -G dialout $USER
## Install NuttX prerequisities
sudo apt install -y git neofetch screen curl
sudo apt install -y \
bison flex gettext texinfo libncurses5-dev libncursesw5-dev xxd \
gperf automake libtool pkg-config build-essential gperf genromfs \
libgmp-dev libmpc-dev libmpfr-dev libisl-dev binutils-dev libelf-dev \
libexpat-dev gcc-multilib g++-multilib picocom u-boot-tools util-linux
sudo apt install -y kconfig-frontends
sudo apt install -y expect gh
## Install xPack GCC Toolchain for RISC-V (Linux x64)
wget https://github.com/xpack-dev-tools/riscv-none-elf-gcc-xpack/releases/download/v13.2.0-2/xpack-riscv-none-elf-gcc-13.2.0-2-linux-x64.tar.gz
tar xf xpack-riscv-none-elf-gcc-13.2.0-2-linux-x64.tar.gz
export PATH=$PWD/xpack-riscv-none-elf-gcc-13.2.0-2/bin:$PATH
riscv-none-elf-gcc -v
## Should show: `gcc version 13.2.0 (xPack GNU RISC-V Embedded GCC x86_64)`
## Install GCC Toolchain for Arm64 (Linux x64)
wget https://developer.arm.com/-/media/Files/downloads/gnu/13.2.rel1/binrel/arm-gnu-toolchain-13.2.rel1-x86_64-aarch64-none-elf.tar.xz
tar xf arm-gnu-toolchain-13.2.rel1-x86_64-aarch64-none-elf.tar.xz
export PATH=$PWD/arm-gnu-toolchain-13.2.Rel1-x86_64-aarch64-none-elf/bin:$PATH
aarch64-none-elf-gcc -v
## Should show: `gcc version 13.2.1 20231009 (Arm GNU Toolchain 13.2.rel1 (Build arm-13.7))`
## Optional: For TinyEMU
sudo apt install -y emscripten
## To import the keys:
wget https://dist.apache.org/repos/dist/dev/nuttx/KEYS && gpg --import KEYS
## To trust the keys:
gpg --edit-key 9208D2E4B800D66F749AD4E94137A71698C5E4DB
## Then enter "trust" and "5"
## Optional: For VSCode
sudo snap install code
## Tested on Ubuntu 24.04 LTS x86_64
$ neofetch
.-/+oossssoo+/-. luppy@luppy-macbook-ubuntu
`:+ssssssssssssssssss+:` --------------------------
-+ssssssssssssssssssyyssss+- OS: Ubuntu 24.04 LTS x86_64
.ossssssssssssssssssdMMMNysssso. Host: MacBookPro10,1 1.0
/ssssssssssshdmmNNmmyNMMMMhssssss/ Kernel: 6.8.0-40-generic
+ssssssssshmydMMMMMMMNddddyssssssss+ Uptime: 20 mins
/sssssssshNMMMyhhyyyyhmNMMMNhssssssss/ Packages: 2447 (dpkg), 26 (snap)
.ssssssssdMMMNhsssssssssshNMMMdssssssss. Shell: bash 5.2.21
+sssshhhyNMMNyssssssssssssyNMMMysssssss+ Resolution: 1920x1080
ossyNMMMNyMMhsssssssssssssshmmmhssssssso Terminal: /dev/pts/2
ossyNMMMNyMMhsssssssssssssshmmmhssssssso CPU: Intel i7-3820QM (8) @ 3.700GHz
+sssshhhyNMMNyssssssssssssyNMMMysssssss+ GPU: NVIDIA GeForce GT 650M Mac Edition
.ssssssssdMMMNhsssssssssshNMMMdssssssss. GPU: Intel 3rd Gen Core processor Graphics Controller
/sssssssshNMMMyhhyyyyhdNMMMNhssssssss/ Memory: 4210MiB / 15898MiB
+sssssssssdmydMMMMMMMMddddyssssssss+
/ssssssssssshdmNNNNmyNMMMMhssssss/
.ossssssssssssssssssdMMMNysssso.
-+sssssssssssssssssyyyssss+-
`:+ssssssssssssssssss+:`
.-/+oossssoo+/-.