mirror of
https://github.com/lupyuen/nuttx-release.git
synced 2025-01-12 23:28:30 +08:00
Close the screen
session
This commit is contained in:
parent
87d1622b39
commit
96d6a4bd98
3 changed files with 41 additions and 1 deletions
22
README.md
22
README.md
|
@ -1,11 +1,27 @@
|
|||
# Scripts for Apache NuttX RTOS Release Testing
|
||||
|
||||
(Milk-V Duo S, Ox64 BL808, Star64 JH7110, PinePhone)
|
||||
Apache NuttX Release Testing for Milk-V Duo S, Ox64 BL808, Star64 JH7110, PinePhone:
|
||||
|
||||
```bash
|
||||
## TODO: Update `release.sh` and enter the release / candidate / hash:
|
||||
## export release=12.5.1
|
||||
## export candidate=RC0
|
||||
## export hash=9e8753d625
|
||||
|
||||
## Run the Release Test Script for Milk-V Duo S, Ox64 BL808, Star64 JH7110, PinePhone:
|
||||
./release.sh milkvduos
|
||||
./release.sh ox64
|
||||
./release.sh star64
|
||||
./release.sh pinephone
|
||||
```
|
||||
|
||||
To prepare Ubuntu for NuttX Release Testing:
|
||||
|
||||
```bash
|
||||
## 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 \
|
||||
|
@ -13,6 +29,9 @@ sudo apt install -y \
|
|||
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
|
||||
|
||||
## Optional: For TinyEMU
|
||||
sudo apt install -y emscripten
|
||||
|
||||
## To import the keys:
|
||||
|
@ -21,5 +40,6 @@ wget https://dist.apache.org/repos/dist/dev/nuttx/KEYS && gpg --import KEYS
|
|||
gpg --edit-key 9208D2E4B800D66F749AD4E94137A71698C5E4DB
|
||||
## Then enter "trust" and "5"
|
||||
|
||||
## Optional: For VSCode
|
||||
sudo snap install code
|
||||
```
|
||||
|
|
17
close.exp
Executable file
17
close.exp
Executable file
|
@ -0,0 +1,17 @@
|
|||
#!/usr/bin/expect
|
||||
## Expect Script for closing a `screen` session
|
||||
|
||||
## Wait at most 10 seconds
|
||||
set timeout 10
|
||||
|
||||
## For every 1 character sent, wait 0.001 milliseconds
|
||||
set send_slow {1 0.001}
|
||||
|
||||
## Connect to SBC over USB Serial Port
|
||||
spawn screen -x
|
||||
|
||||
## Wait a while
|
||||
sleep 5
|
||||
|
||||
## Terminate the session: Ctrl-A k y
|
||||
send "\x01ky"
|
|
@ -25,6 +25,9 @@ else
|
|||
script_option=
|
||||
fi
|
||||
|
||||
## Close the `screen` session
|
||||
$script_dir/close.exp
|
||||
|
||||
## Run the script
|
||||
pushd /tmp
|
||||
script $log_file \
|
||||
|
|
Loading…
Reference in a new issue