2024-05-20 09:36:59 +08:00
|
|
|
# Scripts for Apache NuttX RTOS Release Testing
|
|
|
|
|
2024-06-25 15:19:03 +08:00
|
|
|
Apache NuttX Release Testing for Milk-V Duo S, Ox64 BL808, Star64 JH7110, PinePhone:
|
|
|
|
|
|
|
|
```bash
|
2024-11-29 17:42:46 +08:00
|
|
|
## TODO: Make sure ../github-token.sh contains a GitHub Token with Gist Permission
|
|
|
|
## export GITHUB_TOKEN=...
|
2024-06-25 15:19:03 +08:00
|
|
|
|
|
|
|
## Run the Release Test Script for Milk-V Duo S, Ox64 BL808, Star64 JH7110, PinePhone:
|
2024-11-29 17:42:46 +08:00
|
|
|
. ../github-token.sh && ./release.sh milkvduos
|
|
|
|
. ../github-token.sh && ./release.sh ox64
|
|
|
|
. ../github-token.sh && ./release.sh star64
|
|
|
|
. ../github-token.sh && ./release.sh pinephone
|
2024-06-25 15:19:03 +08:00
|
|
|
```
|
2024-06-25 13:56:11 +08:00
|
|
|
|
|
|
|
To prepare Ubuntu for NuttX Release Testing:
|
|
|
|
|
|
|
|
```bash
|
2024-06-25 15:19:03 +08:00
|
|
|
## Grant access to /dev/tty*
|
2024-06-25 13:56:11 +08:00
|
|
|
sudo usermod -a -G dialout $USER
|
2024-06-25 15:19:03 +08:00
|
|
|
|
|
|
|
## Install NuttX prerequisities
|
2024-06-25 13:56:11 +08:00
|
|
|
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
|
2024-06-25 15:33:26 +08:00
|
|
|
sudo apt install -y expect gh
|
2024-06-25 15:19:03 +08:00
|
|
|
|
2024-08-18 09:26:31 +08:00
|
|
|
## 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)`
|
|
|
|
|
2024-11-29 17:36:25 +08:00
|
|
|
## 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))`
|
2024-08-18 09:26:31 +08:00
|
|
|
|
2024-06-25 15:19:03 +08:00
|
|
|
## Optional: For TinyEMU
|
2024-06-25 13:56:11 +08:00
|
|
|
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"
|
|
|
|
|
2024-06-25 15:19:03 +08:00
|
|
|
## Optional: For VSCode
|
2024-06-25 13:56:11 +08:00
|
|
|
sudo snap install code
|
2024-08-18 09:26:31 +08:00
|
|
|
|
|
|
|
## 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+/-.
|
2024-06-25 13:56:11 +08:00
|
|
|
```
|