ath79: allow skipping hash for Senao sysupgrade

Some vendors of Senao boards have a similar flash layout
situation that causes the need to split the firmware partition
and use the lzma-loader, but do not store
checksums of the partitions or otherwise
do not even have a uboot environment partition.

This adds simple shell logic to skip that part.

Also, simplify some lines and variable usage.

Signed-off-by: Michael Pratt <mcpratt@pm.me>
This commit is contained in:
Michael Pratt
2022-12-09 17:47:11 -05:00
committed by Hauke Mehrtens
parent 8342c092a0
commit 766de7013f
4 changed files with 30 additions and 28 deletions

View File

@@ -19,6 +19,7 @@ platform_do_upgrade() {
engenius,eap350-v1|\
engenius,ecb350-v1|\
engenius,enh202-v1)
ENV_SCRIPT="/tmp/fw_env"
IMAGE_LIST="tar tzf $1"
IMAGE_CMD="tar xzOf $1"
KERNEL_PART="loader"