Skip to content

Commit 587ba65

Browse files
committed
add interface
1 parent f884a25 commit 587ba65

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ RUN apt-get update \
1818
cmake \
1919
git \
2020
tftpd-hpa \
21+
iproute2 \
2122
ca-certificates \
2223
binfmt-support \
2324
dosfstools \

runner.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1260,13 +1260,15 @@ shell_generate_compose_file() {
12601260
" - -c" \
12611261
" - |" \
12621262
" set -e" \
1263-
" mkdir -p /home/runner/board" \
1263+
" mkdir -p /home/runner/board /home/runner/tftp" \
12641264
" cd /home/runner/board" \
12651265
" echo \"Attempting to download visionfive2 files...\"" \
12661266
" if curl -fsSL --connect-timeout 30 --max-time 300 https://github.com/user-attachments/files/26230373/visionfive2.tar.gz -o visionfive2.tar.gz; then" \
12671267
" echo \"Download successful, extracting...\"" \
12681268
" tar -xzf visionfive2.tar.gz" \
12691269
" echo \"Extraction completed\"" \
1270+
" echo \"Syncing visionfive2 files to /home/runner/tftp...\"" \
1271+
" find . -mindepth 1 -maxdepth 1 ! -name visionfive2.tar.gz -exec cp -a {} /home/runner/tftp/ \\;" \
12701272
" else" \
12711273
" echo \"Download failed, continuing with existing files if any...\"" \
12721274
" fi" \
@@ -1293,6 +1295,7 @@ shell_generate_compose_file() {
12931295
" BOARD_DTB: \"/home/runner/board/jh7110-visionfive-v2.dtb\"" \
12941296
" BOARD_COMM_UART_DEV: \"/dev/ttyUSB6\"" \
12951297
" BOARD_COMM_UART_BAUD: \"115200\"" \
1298+
" BOARD_COMM_NET_IFACE: \"eno2np1\"" \
12961299
" TFTP_DIR: \"visionfive2\"" \
12971300
" BIN_DIR: \"/home/runner/test/visionfive2\"" \
12981301
"${extra_env_visionfive2[@]}" \

0 commit comments

Comments
 (0)