dangowrt / owrt-ubi-installer

OpenWrt firmware installer for the Linksys E8450 aka. Belkin RT3200
GNU General Public License v2.0
388 stars 49 forks source link

build_installer.sh script is failing to build images due to OpenWrt main / master branch changing from tar.xz to tar.zst (zstandard aka zstd) compression #184

Closed KA2107 closed 2 months ago

KA2107 commented 2 months ago
% ./build_installer.sh 
+ set -o errexit
+ set -o nounset
+ set -o pipefail
+ DESTDIR=/home/kshv/Documents/GIT/Mediatek_MTK/linksys-e8450-openwrt-installer_GIT
+ OPENWRT_PGP=0xCD84BCED626471F1
+ KEYSERVER=keyserver.ubuntu.com
+++ dirname ./build_installer.sh
++ cd .
++ pwd
+ INSTALLERDIR=/home/kshv/Documents/GIT/Mediatek_MTK/linksys-e8450-openwrt-installer_GIT
+ OPENWRT_DIR=/home/kshv/Documents/GIT/Mediatek_MTK/linksys-e8450-openwrt-installer_GIT/openwrt-ib
+ CPIO=/home/kshv/Documents/GIT/Mediatek_MTK/linksys-e8450-openwrt-installer_GIT/openwrt-ib/staging_dir/host/bin/cpio
+ MKIMAGE=/home/kshv/Documents/GIT/Mediatek_MTK/linksys-e8450-openwrt-installer_GIT/openwrt-ib/staging_dir/host/bin/mkimage
+ OPKG=/home/kshv/Documents/GIT/Mediatek_MTK/linksys-e8450-openwrt-installer_GIT/openwrt-ib/staging_dir/host/bin/opkg
+ XZ=/home/kshv/Documents/GIT/Mediatek_MTK/linksys-e8450-openwrt-installer_GIT/openwrt-ib/staging_dir/host/bin/xz
+ UNFIT=/home/kshv/Documents/GIT/Mediatek_MTK/linksys-e8450-openwrt-installer_GIT/unfit
+ '[' -x /home/kshv/Documents/GIT/Mediatek_MTK/linksys-e8450-openwrt-installer_GIT/unfit ']'
+ cd /home/kshv/Documents/GIT/Mediatek_MTK/linksys-e8450-openwrt-installer_GIT/src
+ cmake .
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

-- The C compiler identification is GNU 13.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Configuring done (0.2s)
-- Generating done (0.0s)
-- Build files have been written to: /home/kshv/Documents/GIT/Mediatek_MTK/linksys-e8450-openwrt-installer_GIT/src
+ make all
[ 50%] Building C object CMakeFiles/unfit.dir/unfit.c.o
[100%] Linking C executable unfit
[100%] Built target unfit
+ cp unfit ..
++ git log -1 --pretty=%ct -C /home/kshv/Documents/GIT/Mediatek_MTK/linksys-e8450-openwrt-installer_GIT
+ SOURCE_DATE_EPOCH=1709320821
+ DTC=
+ FILEBASE=
+ WORKDIR=
+ ITSFILE=
+ TFA_PLAT=
+ TFA_MAKEARGS=
+ linksys_e8450_installer
+ TFA_PLAT=mt7622
+ OPENWRT_TARGET=https://downloads.openwrt.org/snapshots/targets/mediatek/mt7622
+ OPENWRT_IB=openwrt-imagebuilder-mediatek-mt7622.Linux-x86_64.tar.xz
+ OPENWRT_INITRD=openwrt-mediatek-mt7622-linksys_e8450-ubi-initramfs-recovery.itb
+ OPENWRT_SYSUPGRADE=openwrt-mediatek-mt7622-linksys_e8450-ubi-squashfs-sysupgrade.itb
+ OPENWRT_ADD_REC_PACKAGES=(uhttpd luci-mod-admin-full luci-theme-bootstrap)
+ OPENWRT_REMOVE_PACKAGES=(firewall4 kmod-mt7622-firmware kmod-mt7915-firmware kmod-mt7615e kmod-mt7615-common kmod-mt7915e kmod-mt76-connac kmod-mt76-core kmod-firewall4 nftables kmod-nft-offload odhcp6c odhcpd-ipv6only ppp ppp-mod-pppoe wpad-basic-mbedtls)
+ OPENWRT_ADD_PACKAGES=()
+ VENDOR_FW=https://web.archive.org/web/20220511153700if_/https://www.belkin.com/support/assets/belkin/firmware/FW_RT3200_1.1.01.272918_PROD_unsigned.img
+ VENDOR_FW_HASH=01a9efa97120ff6692c252f2958269afbc87acd2528b281adfc8b55b0ca6cf8a
+ prepare_openwrt_ib
++ mktemp -d
+ GNUPGHOME=/tmp/tmp.qJh6Pu2jfG
+ export GNUPGHOME
+ trap 'rm -rf -- "${GNUPGHOME}"' EXIT
+ mkdir -p /home/kshv/Documents/GIT/Mediatek_MTK/linksys-e8450-openwrt-installer_GIT/dl
+ cd /home/kshv/Documents/GIT/Mediatek_MTK/linksys-e8450-openwrt-installer_GIT/dl
+ gpg --no-default-keyring --keyring /home/kshv/Documents/GIT/Mediatek_MTK/linksys-e8450-openwrt-installer_GIT/openwrt-keyring --list-key 0xCD84BCED626471F1
+ gpg --no-default-keyring --keyring /home/kshv/Documents/GIT/Mediatek_MTK/linksys-e8450-openwrt-installer_GIT/openwrt-keyring --keyserver keyserver.ubuntu.com --recv-key 0xCD84BCED626471F1
gpg: key CD84BCED626471F1: public key "LEDE Build System (LEDE GnuPG key for unattended build jobs) <lede-adm@lists.infradead.org>" imported
gpg: Total number processed: 1
gpg:               imported: 1
+ gpg --no-default-keyring --keyring /home/kshv/Documents/GIT/Mediatek_MTK/linksys-e8450-openwrt-installer_GIT/openwrt-keyring --list-key 0xCD84BCED626471F1
+ rm -f sha256sums.asc sha256sums
+ wget https://downloads.openwrt.org/snapshots/targets/mediatek/mt7622/sha256sums.asc
--2024-05-04 12:20:49--  https://downloads.openwrt.org/snapshots/targets/mediatek/mt7622/sha256sums.asc
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving downloads.openwrt.org (downloads.openwrt.org)... 2a04:4e42:84::644, 146.75.78.132
Connecting to downloads.openwrt.org (downloads.openwrt.org)|2a04:4e42:84::644|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 877 [text/plain]
Saving to: ‘sha256sums.asc’

sha256sums.asc                      100%[================================================================>]     877  --.-KB/s    in 0s      

2024-05-04 12:20:49 (54.5 MB/s) - ‘sha256sums.asc’ saved [877/877]

+ wget https://downloads.openwrt.org/snapshots/targets/mediatek/mt7622/sha256sums
--2024-05-04 12:20:49--  https://downloads.openwrt.org/snapshots/targets/mediatek/mt7622/sha256sums
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving downloads.openwrt.org (downloads.openwrt.org)... 2a04:4e42:84::644, 146.75.78.132
Connecting to downloads.openwrt.org (downloads.openwrt.org)|2a04:4e42:84::644|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 145341 (142K) [text/plain]
Saving to: ‘sha256sums’

sha256sums                          100%[================================================================>] 141.93K  --.-KB/s    in 0.02s   

2024-05-04 12:20:50 (6.49 MB/s) - ‘sha256sums’ saved [145341/145341]

+ gpg --no-default-keyring --keyring /home/kshv/Documents/GIT/Mediatek_MTK/linksys-e8450-openwrt-installer_GIT/openwrt-keyring --verify sha256sums.asc sha256sums
gpg: Signature made Sat 04 May 2024 10:42:22 AM CDT
gpg:                using RSA key 6D9278A33A9AB3146262DCECF93525A88B699029
gpg: Good signature from "LEDE Build System (LEDE GnuPG key for unattended build jobs) <lede-adm@lists.infradead.org>" [unknown]
gpg: WARNING: This key is not certified with a trusted signature!
gpg:          There is no indication that the signature belongs to the owner.
Primary key fingerprint: 54CC 7430 7A2C 6DC9 CE61  8269 CD84 BCED 6264 71F1
     Subkey fingerprint: 6D92 78A3 3A9A B314 6262  DCEC F935 25A8 8B69 9029
+ trap - EXIT
+ rm -rf -- /tmp/tmp.qJh6Pu2jfG
+ export -n GNUPGHOME
+ sha256sum -c sha256sums --ignore-missing
sha256sum: sha256sums: no file was verified
+ rm -f openwrt-mediatek-mt7622-linksys_e8450-ubi-squashfs-sysupgrade.itb openwrt-imagebuilder-mediatek-mt7622.Linux-x86_64.tar.xz openwrt-mediatek-mt7622-linksys_e8450-ubi-initramfs-recovery.itb
+ wget -c https://downloads.openwrt.org/snapshots/targets/mediatek/mt7622/openwrt-mediatek-mt7622-linksys_e8450-ubi-initramfs-recovery.itb
--2024-05-04 12:20:50--  https://downloads.openwrt.org/snapshots/targets/mediatek/mt7622/openwrt-mediatek-mt7622-linksys_e8450-ubi-initramfs-recovery.itb
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving downloads.openwrt.org (downloads.openwrt.org)... 2a04:4e42:83::644, 146.75.78.132
Connecting to downloads.openwrt.org (downloads.openwrt.org)|2a04:4e42:83::644|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7995392 (7.6M) [application/octet-stream]
Saving to: ‘openwrt-mediatek-mt7622-linksys_e8450-ubi-initramfs-recovery.itb’

openwrt-mediatek-mt7622-linksys_e84 100%[================================================================>]   7.62M  1.03MB/s    in 7.4s    

2024-05-04 12:20:59 (1.03 MB/s) - ‘openwrt-mediatek-mt7622-linksys_e8450-ubi-initramfs-recovery.itb’ saved [7995392/7995392]

+ wget -c https://downloads.openwrt.org/snapshots/targets/mediatek/mt7622/openwrt-mediatek-mt7622-linksys_e8450-ubi-squashfs-sysupgrade.itb
--2024-05-04 12:20:59--  https://downloads.openwrt.org/snapshots/targets/mediatek/mt7622/openwrt-mediatek-mt7622-linksys_e8450-ubi-squashfs-sysupgrade.itb
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving downloads.openwrt.org (downloads.openwrt.org)... 2a04:4e42:83::644, 146.75.82.132
Connecting to downloads.openwrt.org (downloads.openwrt.org)|2a04:4e42:83::644|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 10380001 (9.9M) [application/octet-stream]
Saving to: ‘openwrt-mediatek-mt7622-linksys_e8450-ubi-squashfs-sysupgrade.itb’

openwrt-mediatek-mt7622-linksys_e84 100%[================================================================>]   9.90M  1.04MB/s    in 9.6s    

2024-05-04 12:21:09 (1.04 MB/s) - ‘openwrt-mediatek-mt7622-linksys_e8450-ubi-squashfs-sysupgrade.itb’ saved [10380001/10380001]

+ wget -c https://downloads.openwrt.org/snapshots/targets/mediatek/mt7622/openwrt-imagebuilder-mediatek-mt7622.Linux-x86_64.tar.xz
--2024-05-04 12:21:09--  https://downloads.openwrt.org/snapshots/targets/mediatek/mt7622/openwrt-imagebuilder-mediatek-mt7622.Linux-x86_64.tar.xz
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving downloads.openwrt.org (downloads.openwrt.org)... 2a04:4e42:83::644, 146.75.82.132
Connecting to downloads.openwrt.org (downloads.openwrt.org)|2a04:4e42:83::644|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2024-05-04 12:21:10 ERROR 404: Not Found.