Skip to content

Instantly share code, notes, and snippets.

@oxavelar
Last active January 3, 2025 20:12
Show Gist options
  • Save oxavelar/230520452b925259e11ec80d4a39367f to your computer and use it in GitHub Desktop.
Save oxavelar/230520452b925259e11ec80d4a39367f to your computer and use it in GitHub Desktop.
IPQ8074 Wireless Firmware Override
# This will get the filenames in your currently running OpenWRT
# image and download to override into the firmware path.
#
# I've used this in my DL-WRX36 to override the firmware to perform
# some A/B comparisions, and choose which one to use based on my
# environment needs
#
# NOTE: Run this in your DL-WRX36 directly
(
path="/lib/firmware/IPQ8074"
repo="https://git.codelinaro.org/clo/ath-firmware/ath11k-firmware/-/raw/main/IPQ8074/hw2.0/2.7.0.1/WLAN.HK.2.7.0.1-02409-QCAHKSWPL_SILICONZ-1"
cd "$path"
state=$(md5sum *)
echo -e "# info: pulling from\n# '$repo'"
for file in $(ls $path); do
(
wget -q --no-check-certificate "$repo/$file" -O "$file"
echo "ok # wrote: $path/$file"
);
done
printf '%*s\n' 80 '' | tr ' ' '-'
echo -e "before:\n$state"
printf '%*s\n' 80 '' | tr ' ' '-'
echo "after:"
md5sum *
printf '%*s\n' 80 '' | tr ' ' '-'
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment