Skip to content

Commit

Permalink
Add local hardware related script
Browse files Browse the repository at this point in the history
  • Loading branch information
nekorouter committed May 24, 2024
1 parent d44230d commit 1241550
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion .github/workflows/th1520.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,36 @@ jobs:
]
if: ${{ always() && !cancelled() && needs.kernel.result == 'success' }}
steps:
- name: Install software
run: |
sudo apt update && \
sudo apt install -y fastboot
- name: 'Download artifact'
uses: actions/download-artifact@v4
- name: Download th1520 u-boot
run: |
wget ${TH1520_IMAGE_BASE_URL}/${TH1520_IMAGE_DATE}/${TH1520_UBOOT}
- name: 'List all downloaded files'
run: ls -R $GITHUB_WORKSPACE
run: ls -R $GITHUB_WORKSPACE
- name: Decompress image files
run: |
zstd -d ./th1520-linux-64lp64/*.zst
zstd -d ./th1520-linux-64lp64-xt/*.zst
- name: 'Burn images into board'
run: |
init_cp2112.sh
# hold boot -> press reset -> flash uboot to ram -> press reboot -> flash uboot,root,boot
# --hold boot key and reset--
board_reset_to_boot.sh
# --flash u-boot--
fastboot flash ram ${TH1520_UBOOT}
# --reset board--
sleep 2
fastboot reboot
# --flash root & boot--
fastboot flash uboot ${TH1520_UBOOT}
sleep 2
fastboot flash boot ./th1520-linux-64lp64-xt/boot*.ext4 && fastboot flash root ./th1520-linux-64lp64-xt/root*.ext4
# --reset board--
board_reset.sh

0 comments on commit 1241550

Please sign in to comment.