From 68c1ba7fa9a6e9e20e9ece20a4cb3be56e824d43 Mon Sep 17 00:00:00 2001 From: Joe AE6XE Date: Sun, 13 May 2018 13:11:25 -0700 Subject: [PATCH] bugfix: ubnt uboot firmware check fails via tftp newer versions of Ubiquiti uboot constrain the firmware header version sting. Current openwrt formated versioning results in a uboot firmware check error --- patches/002-firmware-check-fix.patch | 20 ++++++++++++++++++++ patches/series | 1 + 2 files changed, 21 insertions(+) create mode 100644 patches/002-firmware-check-fix.patch diff --git a/patches/002-firmware-check-fix.patch b/patches/002-firmware-check-fix.patch new file mode 100644 index 00000000..291b1dd3 --- /dev/null +++ b/patches/002-firmware-check-fix.patch @@ -0,0 +1,20 @@ +--- a/target/linux/ar71xx/image/generic-ubnt.mk ++++ b/target/linux/ar71xx/image/generic-ubnt.mk +@@ -4,7 +4,7 @@ + # routerboard creates partitions out of the ubnt header + define Build/mkubntimage + -$(STAGING_DIR_HOST)/bin/mkfwimage \ +- -B $(UBNT_BOARD) -v $(UBNT_TYPE).$(UBNT_CHIP).v6.0.0-$(VERSION_DIST)-$(REVISION) \ ++ -B $(UBNT_BOARD) -v $(UBNT_TYPE).$(UBNT_CHIP).v6.0.0-31296.170704.204 \ + -k $(IMAGE_KERNEL) \ + -r $@ \ + -o $@ +@@ -17,7 +17,7 @@ + dd if=$@ of=$@.old1 bs=1024k count=1; \ + dd if=$@ of=$@.old2 bs=1024k skip=1; \ + $(STAGING_DIR_HOST)/bin/mkfwimage \ +- -B $(UBNT_BOARD) -v $(UBNT_TYPE).$(UBNT_CHIP).v6.0.0-$(VERSION_DIST)-$(REVISION) \ ++ -B $(UBNT_BOARD) -v $(UBNT_TYPE).$(UBNT_CHIP).v6.0.0-31296.170704.204 \ + -k $@.old1 \ + -r $@.old2 \ + -o $@; \ diff --git a/patches/series b/patches/series index 23967d56..658b0a70 100644 --- a/patches/series +++ b/patches/series @@ -1,3 +1,4 @@ +002-firmware-check-fix.patch 701-extended-spectrum.patch 702-enable-country-hx.patch 703-fix-dnsmasq.patch