This repository has been archived by the owner on Mar 7, 2024. It is now read-only.
Merge branch 'main' of https://github.com/macaron/WAB-I1750-PS #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build genuine firmware | |
on: | |
push: | |
branches: [ 'main' ] | |
jobs: | |
build-openwrt: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Download encrypted firmware from elecom support | |
run: | | |
curl -O https://dl.elecom.co.jp/support/download/network/wireless_lan/ap/wab-i1750-ps/WAB-I1750-PS-FW-V1-5-10.zip | |
unzip WAB-I1750-PS-FW-V1-5-10.zip | |
mv WAB-I1750-PS-FW-V1-5-10/WAB-I1750-PS-FW-V1-5-10.bin . | |
- name: Remove the first 128 bytes. | |
run: dd if=WAB-I1750-PS-FW-V1-5-10.bin of=WAB-I1750-PS-FW-V1-5-10.bin.enc bs=1 skip=128 | |
- name: Decrypt binary file | |
run: python3 decrypt.py WAB-I1750-PS-uboot-V1.0.2.bin.enc 8844a2d168b45a2d dec.bin | |
- run: file dec.bin | |
# - name: Upload build result | |
# uses: actions/upload-artifact@v4 | |
# with: | |
# name: restore-genuine-firmware | |
# path: | | |
# dec.bin |