feat(scripts/liminix): make it easy to extract the firmware part of the Zyxel NWA FIT image
Some checks failed
Check meta / check_dns (pull_request) Successful in 18s
Check meta / check_meta (pull_request) Successful in 19s
Check workflows / check_workflows (pull_request) Successful in 25s
Run pre-commit on all files / check (push) Successful in 26s
Build all the nodes / ap01 (pull_request) Failing after 1m8s
Build all the nodes / bridge01 (pull_request) Successful in 1m49s
Build all the nodes / geo01 (pull_request) Successful in 2m7s
Build all the nodes / geo02 (pull_request) Successful in 2m5s
Build all the nodes / compute01 (pull_request) Successful in 2m35s
Build all the nodes / rescue01 (pull_request) Successful in 2m27s
Build all the nodes / storage01 (pull_request) Successful in 2m12s
Run pre-commit on all files / check (pull_request) Successful in 36s
Build all the nodes / vault01 (pull_request) Successful in 1m54s
Build all the nodes / web02 (pull_request) Successful in 1m48s
Build all the nodes / web03 (pull_request) Successful in 1m45s
Build all the nodes / web01 (pull_request) Successful in 2m33s
Some checks failed
Check meta / check_dns (pull_request) Successful in 18s
Check meta / check_meta (pull_request) Successful in 19s
Check workflows / check_workflows (pull_request) Successful in 25s
Run pre-commit on all files / check (push) Successful in 26s
Build all the nodes / ap01 (pull_request) Failing after 1m8s
Build all the nodes / bridge01 (pull_request) Successful in 1m49s
Build all the nodes / geo01 (pull_request) Successful in 2m7s
Build all the nodes / geo02 (pull_request) Successful in 2m5s
Build all the nodes / compute01 (pull_request) Successful in 2m35s
Build all the nodes / rescue01 (pull_request) Successful in 2m27s
Build all the nodes / storage01 (pull_request) Successful in 2m12s
Run pre-commit on all files / check (pull_request) Successful in 36s
Build all the nodes / vault01 (pull_request) Successful in 1m54s
Build all the nodes / web02 (pull_request) Successful in 1m48s
Build all the nodes / web03 (pull_request) Successful in 1m45s
Build all the nodes / web01 (pull_request) Successful in 2m33s
This is useful when reflashing the system from scratch in the levitation mode. Note that doing this will reset the UBI counter to zero, this is bad for wear leveling. Signed-off-by: Ryan Lahfa <ryan@dgnum.eu>
This commit is contained in:
parent
6a4fd0ea36
commit
0cbaf39aa5
1 changed files with 12 additions and 0 deletions
12
scripts/extract-firmware-from-zyxel-nwa-fit.sh
Executable file
12
scripts/extract-firmware-from-zyxel-nwa-fit.sh
Executable file
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/env nix-shell
|
||||
#!nix-shell -i bash -p ubootTools
|
||||
|
||||
usage() {
|
||||
echo "extract the firmware part to write it manually from a Zyxel NWA FIT image"
|
||||
echo "$0 <zyxel_nwa_fit_image_path> <firmware_output_file>"
|
||||
}
|
||||
|
||||
ZYXEL_NWA_FIT="$1"
|
||||
FIRMWARE_OUTPUT="$2"
|
||||
|
||||
dumpimage -T flat_dt -p 0 $ZYXEL_NWA_FIT -o $FIRMWARE_OUTPUT
|
Loading…
Reference in a new issue