]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
ath79: fix GL.iNet GL-AR300M sysupgrade
authorMathias Kresin <dev@kresin.me>
Thu, 6 Dec 2018 10:53:05 +0000 (11:53 +0100)
committerMathias Kresin <dev@kresin.me>
Thu, 6 Dec 2018 12:28:22 +0000 (13:28 +0100)
The userspace boardname derived from the dts compatible was out of sync
with the expected board added to the image metadata. This way a
sysupgrade is refused.

Sync the userspace boardname and the baordname used in the image metdata
to allow a seamless sasupgrade.

Signed-off-by: Mathias Kresin <dev@kresin.me>
target/linux/ath79/dts/qca9531_glinet_ar300m-nand.dts [moved from target/linux/ath79/dts/qca9531_glinet_ar300m_nand.dts with 91% similarity]
target/linux/ath79/dts/qca9531_glinet_ar300m-nor.dts [moved from target/linux/ath79/dts/qca9531_glinet_ar300m_nor.dts with 88% similarity]
target/linux/ath79/dts/qca9531_glinet_ar300m.dtsi
target/linux/ath79/image/generic.mk
target/linux/ath79/image/nand.mk

similarity index 91%
rename from target/linux/ath79/dts/qca9531_glinet_ar300m_nand.dts
rename to target/linux/ath79/dts/qca9531_glinet_ar300m-nand.dts
index f188ac6c33ad92d3e3d6e98f5dd52ec3633341f7..82f8418b312c1948ac0f7b6f21cc68110e1d1d87 100644 (file)
@@ -2,6 +2,11 @@
 
 #include "qca9531_glinet_ar300m.dtsi"
 
+/ {
+       compatible = "glinet,ar300m-nand", "qca,qca9531";
+       model = "GL.iNet GL-AR300M (NAND)";
+};
+
 &spi {
        status = "okay";
        num-cs = <1>;
similarity index 88%
rename from target/linux/ath79/dts/qca9531_glinet_ar300m_nor.dts
rename to target/linux/ath79/dts/qca9531_glinet_ar300m-nor.dts
index 1128e2da38a0feeeb46ef7379cda127525ff0267..36903bdb992e2d258493f1ea9861e332d6a398a2 100644 (file)
@@ -5,6 +5,11 @@
 
 #include "qca9531_glinet_ar300m.dtsi"
 
+/ {
+       compatible = "glinet,ar300m-nor", "qca,qca9531";
+       model = "GL.iNet GL-AR300M (NOR)";
+};
+
 &spi {
        status = "okay";
        num-cs = <0>;
index 986177df018781e3f889c42a29719da19512e1c0..34fcfb32c338c2b0ddeecafc7bdc3296eeb4e2ea 100644 (file)
@@ -6,9 +6,6 @@
 #include "qca953x.dtsi"
 
 / {
-       compatible = "glinet,ar300m", "qca,qca9531";
-       model = "GL.iNet GL-AR300M";
-
        keys {
                compatible = "gpio-keys-polled";
                poll-interval = <20>;
index f0c76911024f2559ae4dbfc97f6068793b737a12..d5d527fa44412c886244368adc217200815fa665 100644 (file)
@@ -174,14 +174,14 @@ define Device/glinet_ar150
 endef
 TARGET_DEVICES += glinet_ar150
 
-define Device/glinet_ar300m_nor
+define Device/glinet_ar300m-nor
   ATH_SOC := qca9531
   DEVICE_TITLE := GL.iNet GL-AR300M
   DEVICE_PACKAGES := kmod-usb-core kmod-usb2
   IMAGE_SIZE := 16000k
   SUPPORTED_DEVICES += gl-ar300m
 endef
-TARGET_DEVICES += glinet_ar300m_nor
+TARGET_DEVICES += glinet_ar300m-nor
 
 define Device/glinet_gl-x750
   ATH_SOC := qca9531
index 1852ca41793b3532728e2c6247464a29e94f7bdd..e5694b8af454f149eca6feb542311a3422475600 100644 (file)
@@ -1,4 +1,4 @@
-define Device/glinet_ar300m_nand
+define Device/glinet_ar300m-nand
   ATH_SOC := qca9531
   DEVICE_TITLE := GL-AR300M (NAND)
   DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-storage kmod-usb-ledtrig-usbport
@@ -10,4 +10,4 @@ define Device/glinet_ar300m_nand
   IMAGE/sysupgrade.tar := sysupgrade-tar
   IMAGE/factory.ubi := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi
 endef
-TARGET_DEVICES += glinet_ar300m_nand
+TARGET_DEVICES += glinet_ar300m-nand