Remove HS303 as pseudo platform and fix autoupgrade script

pull/454/head
Igor Zalatov (from Citadel PC) 2022-09-11 12:34:02 +03:00
parent 171abf006b
commit 2feb5866aa
1 changed files with 8 additions and 7 deletions

View File

@ -135,13 +135,13 @@ rename_initramfs() {
} }
autoup_rootfs() { autoup_rootfs() {
echo_c 34 "\nDownloading u-boot-hi3518ev200-universal.bin" echo_c 34 "\nDownloading u-boot created by OpenIPC"
curl --location --output ./output/images/u-boot-hi3518ev200-universal.bin \ curl --location --output ./output/images/u-boot-${SOC}-universal.bin \
https://github.com/OpenIPC/firmware/releases/download/latest/u-boot-hi3518ev200-universal.bin https://github.com/OpenIPC/firmware/releases/download/latest/u-boot-${SOC}-universal.bin
echo_c 34 "\nMaking autoupdate u-boot image" echo_c 34 "\nMaking autoupdate u-boot image"
./output/host/bin/mkimage -A arm -O linux -T firmware -n "$OPENIPC_VER" \ ./output/host/bin/mkimage -A arm -O linux -T firmware -n "$OPENIPC_VER" \
-a 0x0 -e 0x50000 -d ./output/images/u-boot-hi3518ev200-universal.bin \ -a 0x0 -e 0x50000 -d ./output/images/u-boot-${SOC}-universal.bin \
./output/images/autoupdate-uboot.img ./output/images/autoupdate-uboot.img
echo_c 34 "\nMaking autoupdate kernel image" echo_c 34 "\nMaking autoupdate kernel image"
@ -192,7 +192,7 @@ FUNCS=(
hi3518ev100 hi3518ev100
hi3516cv200 hi3516cv200
hi3518ev200 hi3518ev200_hs303v1 hi3518ev200_ultimate hi3518ev200 hi3518ev200_ultimate
hi3516cv300 hi3516cv300_ultimate hi3516cv300 hi3516cv300_ultimate
hi3516ev100 hi3516ev100
@ -259,8 +259,9 @@ uni_build() {
set -e set -e
if [ "$(echo $BOARD | cut -sd '_' -f 2)" == "" ]; then if [ "$(echo $BOARD | cut -sd '_' -f 2)" == "" ]; then
BOARD="${BOARD}_openipc" BOARD="${BOARD}_openipc"
elif [ "$BOARD" == "hi3518ev200_hs303v1" ]; then fi
BOARD=hi3518ev200_openipc
if [ "$BOARD" == "hi3518ev200_openipc" ]; then
NEED_AUTOUP=1 NEED_AUTOUP=1
fi fi