[v2,2/5] Add support for Archer C60 v1

Submitted by Adrian Schmutzler on Jan. 28, 2019, 1:54 p.m.

Details

Message ID 20190128135425.8722-2-freifunk@adrianschmutzler.de
State Accepted
Headers show

Commit Message

Adrian Schmutzler Jan. 28, 2019, 1:54 p.m.
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>

---

Recent changes:
- Also use -ct firmware

Changes in v2:
- Move reordering into separate (preceding) patch
- Remove CPU-Port

This has not been tested with official firmware by me, but it runs
nicely with my firmware (newer OpenWrt, generic subtarget).
---
 bsp/ar71xx/.config                                        |  2 ++
 bsp/board_ar71xx.bsp                                      |  1 +
 .../openwrt/0005-allow-building-all-devives-as-tiny.patch | 15 ++++++++-------
 src/packages/fff/fff-network/ar71xx/network.archer-c60-v1 |  9 +++++++++
 4 files changed, 20 insertions(+), 7 deletions(-)
 create mode 100644 src/packages/fff/fff-network/ar71xx/network.archer-c60-v1

Patch hide | download patch | download mbox

diff --git a/bsp/ar71xx/.config b/bsp/ar71xx/.config
index 571357d9..22716c40 100644
--- a/bsp/ar71xx/.config
+++ b/bsp/ar71xx/.config
@@ -6,6 +6,8 @@  CONFIG_TARGET_ar71xx_tiny=y
 CONFIG_TARGET_MULTI_PROFILE=y
 CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_archer-c25-v1=y
 CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_tiny_DEVICE_archer-c25-v1="-kmod-ath10k kmod-ath10k-ct"
+CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_archer-c60-v1=y
+CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_tiny_DEVICE_archer-c60-v1="-kmod-ath10k kmod-ath10k-ct -ath10k-firmware-qca9888 ath10k-firmware-qca9888-ct"
 CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_archer-c7-v2=y
 CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_tiny_DEVICE_archer-c7-v2="-kmod-ath10k kmod-ath10k-ct"
 CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_cpe210-220-v1=y
diff --git a/bsp/board_ar71xx.bsp b/bsp/board_ar71xx.bsp
index 36f45611..dad4d1f5 100644
--- a/bsp/board_ar71xx.bsp
+++ b/bsp/board_ar71xx.bsp
@@ -3,6 +3,7 @@  chipset=ar71xx
 subtarget=tiny
 target=$builddir/$machine
 images=("openwrt-${chipset}-${subtarget}-archer-c25-v1-squashfs-sysupgrade.bin"
+        "openwrt-${chipset}-${subtarget}-archer-c60-v1-squashfs-sysupgrade.bin"
         "openwrt-${chipset}-${subtarget}-archer-c7-v2-squashfs-sysupgrade.bin"
         "openwrt-${chipset}-${subtarget}-cpe210-220-v1-squashfs-sysupgrade.bin"
         "openwrt-${chipset}-${subtarget}-cpe510-520-v1-squashfs-sysupgrade.bin"
diff --git a/build_patches/openwrt/0005-allow-building-all-devives-as-tiny.patch b/build_patches/openwrt/0005-allow-building-all-devives-as-tiny.patch
index 447f0672..326dff6d 100644
--- a/build_patches/openwrt/0005-allow-building-all-devives-as-tiny.patch
+++ b/build_patches/openwrt/0005-allow-building-all-devives-as-tiny.patch
@@ -1,15 +1,15 @@ 
-From a90784d1eb5eff968d6d2ced5c33b980dcfe40d0 Mon Sep 17 00:00:00 2001
+From 7b0cf3e8670a1cb67f96d53b4aaf34f1a9774c6b Mon Sep 17 00:00:00 2001
 From: Tim Niemeyer <tim@tn-x.org>
 Date: Mon, 6 Aug 2018 18:39:04 +0200
 Subject: [PATCH] allow building all devives as tiny
 
 ---
  target/linux/ar71xx/image/Makefile      |  5 +++++
- target/linux/ar71xx/tiny/config-default | 14 ++++++++++++++
- 2 files changed, 19 insertions(+)
+ target/linux/ar71xx/tiny/config-default | 15 +++++++++++++++
+ 2 files changed, 20 insertions(+)
 
 diff --git a/target/linux/ar71xx/image/Makefile b/target/linux/ar71xx/image/Makefile
-index 1eaf1e457c..602323bba2 100644
+index 1eaf1e4..602323b 100644
 --- a/target/linux/ar71xx/image/Makefile
 +++ b/target/linux/ar71xx/image/Makefile
 @@ -22,6 +22,11 @@ endif
@@ -25,15 +25,16 @@  index 1eaf1e457c..602323bba2 100644
  ifeq ($(SUBTARGET),nand)
  include ./nand.mk
 diff --git a/target/linux/ar71xx/tiny/config-default b/target/linux/ar71xx/tiny/config-default
-index 2e9031a24c..fa62b41047 100644
+index 2e9031a..4549c4a 100644
 --- a/target/linux/ar71xx/tiny/config-default
 +++ b/target/linux/ar71xx/tiny/config-default
-@@ -70,3 +70,17 @@ CONFIG_SOC_AR933X=y
+@@ -70,3 +70,18 @@ CONFIG_SOC_AR933X=y
  CONFIG_SOC_AR934X=y
  CONFIG_SOC_QCA953X=y
  CONFIG_SOC_QCA956X=y
 +# FFF
 +CONFIG_ATH79_MACH_ARCHER_C25_V1=y
++CONFIG_ATH79_MACH_ARCHER_C60_V1=y
 +CONFIG_ATH79_MACH_ARCHER_C7=y
 +CONFIG_ATH79_MACH_CPE510=y
 +CONFIG_ATH79_MACH_GL_AR150=y
@@ -47,5 +48,5 @@  index 2e9031a24c..fa62b41047 100644
 +CONFIG_ATH79_MACH_UBNT_UNIFIAC=y
 +CONFIG_ATH79_MACH_UBNT_XM=y
 -- 
-2.11.0
+2.7.4
 
diff --git a/src/packages/fff/fff-network/ar71xx/network.archer-c60-v1 b/src/packages/fff/fff-network/ar71xx/network.archer-c60-v1
new file mode 100644
index 00000000..c1be2dc1
--- /dev/null
+++ b/src/packages/fff/fff-network/ar71xx/network.archer-c60-v1
@@ -0,0 +1,9 @@ 
+PORTORDER="4 3 2 1"
+
+WANDEV=eth0
+SWITCHDEV=eth1
+CLIENT_PORTS="1 2 0t"
+BATMAN_PORTS="3 4 0t"
+
+ETHMESHMAC=$(cat /sys/class/net/eth1/address)
+ROUTERMAC=$(cat /sys/class/net/eth0/address)

Comments

Fabian Blaese Jan. 28, 2019, 2:33 p.m.
So sieht es gut aus.

Reviewed-by: Fabian Bläse <fabian@blaese.de>

On 28.01.19 14:54, Adrian Schmutzler wrote:
> Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
> 
> ---
> 
> Recent changes:
> - Also use -ct firmware
> 
> Changes in v2:
> - Move reordering into separate (preceding) patch
> - Remove CPU-Port
> 
> This has not been tested with official firmware by me, but it runs
> nicely with my firmware (newer OpenWrt, generic subtarget).
> ---
>  bsp/ar71xx/.config                                        |  2 ++
>  bsp/board_ar71xx.bsp                                      |  1 +
>  .../openwrt/0005-allow-building-all-devives-as-tiny.patch | 15 ++++++++-------
>  src/packages/fff/fff-network/ar71xx/network.archer-c60-v1 |  9 +++++++++
>  4 files changed, 20 insertions(+), 7 deletions(-)
>  create mode 100644 src/packages/fff/fff-network/ar71xx/network.archer-c60-v1
> 
> diff --git a/bsp/ar71xx/.config b/bsp/ar71xx/.config
> index 571357d9..22716c40 100644
> --- a/bsp/ar71xx/.config
> +++ b/bsp/ar71xx/.config
> @@ -6,6 +6,8 @@ CONFIG_TARGET_ar71xx_tiny=y
>  CONFIG_TARGET_MULTI_PROFILE=y
>  CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_archer-c25-v1=y
>  CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_tiny_DEVICE_archer-c25-v1="-kmod-ath10k kmod-ath10k-ct"
> +CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_archer-c60-v1=y
> +CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_tiny_DEVICE_archer-c60-v1="-kmod-ath10k kmod-ath10k-ct -ath10k-firmware-qca9888 ath10k-firmware-qca9888-ct"
>  CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_archer-c7-v2=y
>  CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_tiny_DEVICE_archer-c7-v2="-kmod-ath10k kmod-ath10k-ct"
>  CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_cpe210-220-v1=y
> diff --git a/bsp/board_ar71xx.bsp b/bsp/board_ar71xx.bsp
> index 36f45611..dad4d1f5 100644
> --- a/bsp/board_ar71xx.bsp
> +++ b/bsp/board_ar71xx.bsp
> @@ -3,6 +3,7 @@ chipset=ar71xx
>  subtarget=tiny
>  target=$builddir/$machine
>  images=("openwrt-${chipset}-${subtarget}-archer-c25-v1-squashfs-sysupgrade.bin"
> +        "openwrt-${chipset}-${subtarget}-archer-c60-v1-squashfs-sysupgrade.bin"
>          "openwrt-${chipset}-${subtarget}-archer-c7-v2-squashfs-sysupgrade.bin"
>          "openwrt-${chipset}-${subtarget}-cpe210-220-v1-squashfs-sysupgrade.bin"
>          "openwrt-${chipset}-${subtarget}-cpe510-520-v1-squashfs-sysupgrade.bin"
> diff --git a/build_patches/openwrt/0005-allow-building-all-devives-as-tiny.patch b/build_patches/openwrt/0005-allow-building-all-devives-as-tiny.patch
> index 447f0672..326dff6d 100644
> --- a/build_patches/openwrt/0005-allow-building-all-devives-as-tiny.patch
> +++ b/build_patches/openwrt/0005-allow-building-all-devives-as-tiny.patch
> @@ -1,15 +1,15 @@
> -From a90784d1eb5eff968d6d2ced5c33b980dcfe40d0 Mon Sep 17 00:00:00 2001
> +From 7b0cf3e8670a1cb67f96d53b4aaf34f1a9774c6b Mon Sep 17 00:00:00 2001
>  From: Tim Niemeyer <tim@tn-x.org>
>  Date: Mon, 6 Aug 2018 18:39:04 +0200
>  Subject: [PATCH] allow building all devives as tiny
>  
>  ---
>   target/linux/ar71xx/image/Makefile      |  5 +++++
> - target/linux/ar71xx/tiny/config-default | 14 ++++++++++++++
> - 2 files changed, 19 insertions(+)
> + target/linux/ar71xx/tiny/config-default | 15 +++++++++++++++
> + 2 files changed, 20 insertions(+)
>  
>  diff --git a/target/linux/ar71xx/image/Makefile b/target/linux/ar71xx/image/Makefile
> -index 1eaf1e457c..602323bba2 100644
> +index 1eaf1e4..602323b 100644
>  --- a/target/linux/ar71xx/image/Makefile
>  +++ b/target/linux/ar71xx/image/Makefile
>  @@ -22,6 +22,11 @@ endif
> @@ -25,15 +25,16 @@ index 1eaf1e457c..602323bba2 100644
>   ifeq ($(SUBTARGET),nand)
>   include ./nand.mk
>  diff --git a/target/linux/ar71xx/tiny/config-default b/target/linux/ar71xx/tiny/config-default
> -index 2e9031a24c..fa62b41047 100644
> +index 2e9031a..4549c4a 100644
>  --- a/target/linux/ar71xx/tiny/config-default
>  +++ b/target/linux/ar71xx/tiny/config-default
> -@@ -70,3 +70,17 @@ CONFIG_SOC_AR933X=y
> +@@ -70,3 +70,18 @@ CONFIG_SOC_AR933X=y
>   CONFIG_SOC_AR934X=y
>   CONFIG_SOC_QCA953X=y
>   CONFIG_SOC_QCA956X=y
>  +# FFF
>  +CONFIG_ATH79_MACH_ARCHER_C25_V1=y
> ++CONFIG_ATH79_MACH_ARCHER_C60_V1=y
>  +CONFIG_ATH79_MACH_ARCHER_C7=y
>  +CONFIG_ATH79_MACH_CPE510=y
>  +CONFIG_ATH79_MACH_GL_AR150=y
> @@ -47,5 +48,5 @@ index 2e9031a24c..fa62b41047 100644
>  +CONFIG_ATH79_MACH_UBNT_UNIFIAC=y
>  +CONFIG_ATH79_MACH_UBNT_XM=y
>  -- 
> -2.11.0
> +2.7.4
>  
> diff --git a/src/packages/fff/fff-network/ar71xx/network.archer-c60-v1 b/src/packages/fff/fff-network/ar71xx/network.archer-c60-v1
> new file mode 100644
> index 00000000..c1be2dc1
> --- /dev/null
> +++ b/src/packages/fff/fff-network/ar71xx/network.archer-c60-v1
> @@ -0,0 +1,9 @@
> +PORTORDER="4 3 2 1"
> +
> +WANDEV=eth0
> +SWITCHDEV=eth1
> +CLIENT_PORTS="1 2 0t"
> +BATMAN_PORTS="3 4 0t"
> +
> +ETHMESHMAC=$(cat /sys/class/net/eth1/address)
> +ROUTERMAC=$(cat /sys/class/net/eth0/address)
>
Adrian Schmutzler Jan. 29, 2019, 12:01 a.m.
Hab den Patch applied.

 

Wegen –ct oder nicht bin ich hin- und hergerissen. Da das aber eine Detailfrage ist und scheinbar beides funktioniert, kann man das immer noch separat rein und rauspatchen, ist ja nur eine Zeile.

 

From: franken-dev [mailto:franken-dev-bounces@freifunk.net] On Behalf Of Fabian Bläse
Sent: Montag, 28. Januar 2019 15:34
To: Adrian Schmutzler <freifunk@adrianschmutzler.de>; franken-dev@freifunk.net
Subject: Re: [PATCH v2 2/5] Add support for Archer C60 v1

 

So sieht es gut aus. 

Reviewed-by: Fabian Bläse <fabian@blaese.de <mailto:fabian@blaese.de> > 

On 28.01.19 14:54, Adrian Schmutzler wrote: 
> Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de <mailto:freifunk@adrianschmutzler.de> > 
> 
> --- 
> 
> Recent changes: 
> - Also use -ct firmware 
> 
> Changes in v2: 
> - Move reordering into separate (preceding) patch 
> - Remove CPU-Port 
> 
> This has not been tested with official firmware by me, but it runs 
> nicely with my firmware (newer OpenWrt, generic subtarget). 
> --- 
>  bsp/ar71xx/.config                                        |  2 ++ 
>  bsp/board_ar71xx.bsp                                      |  1 + 
>  .../openwrt/0005-allow-building-all-devives-as-tiny.patch | 15 ++++++++------- 
>  src/packages/fff/fff-network/ar71xx/network.archer-c60-v1 |  9 +++++++++ 
>  4 files changed, 20 insertions(+), 7 deletions(-) 
>  create mode 100644 src/packages/fff/fff-network/ar71xx/network.archer-c60-v1 
> 
> diff --git a/bsp/ar71xx/.config b/bsp/ar71xx/.config 
> index 571357d9..22716c40 100644 
> --- a/bsp/ar71xx/.config 
> +++ b/bsp/ar71xx/.config 
> @@ -6,6 +6,8 @@ CONFIG_TARGET_ar71xx_tiny=y 
>  CONFIG_TARGET_MULTI_PROFILE=y 
>  CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_archer-c25-v1=y 
>  CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_tiny_DEVICE_archer-c25-v1="-kmod-ath10k kmod-ath10k-ct" 
> +CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_archer-c60-v1=y 
> +CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_tiny_DEVICE_archer-c60-v1="-kmod-ath10k kmod-ath10k-ct -ath10k-firmware-qca9888 ath10k-firmware-qca9888-ct"

>  CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_archer-c7-v2=y 
>  CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_tiny_DEVICE_archer-c7-v2="-kmod-ath10k kmod-ath10k-ct" 
>  CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_cpe210-220-v1=y 
> diff --git a/bsp/board_ar71xx.bsp b/bsp/board_ar71xx.bsp 
> index 36f45611..dad4d1f5 100644 
> --- a/bsp/board_ar71xx.bsp 
> +++ b/bsp/board_ar71xx.bsp 
> @@ -3,6 +3,7 @@ chipset=ar71xx 
>  subtarget=tiny 
>  target=$builddir/$machine 
>  images=("openwrt-${chipset}-${subtarget}-archer-c25-v1-squashfs-sysupgrade.bin" 
> +        "openwrt-${chipset}-${subtarget}-archer-c60-v1-squashfs-sysupgrade.bin" 
>          "openwrt-${chipset}-${subtarget}-archer-c7-v2-squashfs-sysupgrade.bin" 
>          "openwrt-${chipset}-${subtarget}-cpe210-220-v1-squashfs-sysupgrade.bin" 
>          "openwrt-${chipset}-${subtarget}-cpe510-520-v1-squashfs-sysupgrade.bin" 
> diff --git a/build_patches/openwrt/0005-allow-building-all-devives-as-tiny.patch b/build_patches/openwrt/0005-allow-building-all-devives-as-tiny.patch

> index 447f0672..326dff6d 100644 
> --- a/build_patches/openwrt/0005-allow-building-all-devives-as-tiny.patch 
> +++ b/build_patches/openwrt/0005-allow-building-all-devives-as-tiny.patch 
> @@ -1,15 +1,15 @@ 
> -From a90784d1eb5eff968d6d2ced5c33b980dcfe40d0 Mon Sep 17 00:00:00 2001 
> +From 7b0cf3e8670a1cb67f96d53b4aaf34f1a9774c6b Mon Sep 17 00:00:00 2001 
>  From: Tim Niemeyer <tim@tn-x.org <mailto:tim@tn-x.org> > 
>  Date: Mon, 6 Aug 2018 18:39:04 +0200 
>  Subject: [PATCH] allow building all devives as tiny 
>  
>  --- 
>   target/linux/ar71xx/image/Makefile      |  5 +++++ 
> - target/linux/ar71xx/tiny/config-default | 14 ++++++++++++++ 
> - 2 files changed, 19 insertions(+) 
> + target/linux/ar71xx/tiny/config-default | 15 +++++++++++++++ 
> + 2 files changed, 20 insertions(+) 
>  
>  diff --git a/target/linux/ar71xx/image/Makefile b/target/linux/ar71xx/image/Makefile 
> -index 1eaf1e457c..602323bba2 100644 
> +index 1eaf1e4..602323b 100644 
>  --- a/target/linux/ar71xx/image/Makefile 
>  +++ b/target/linux/ar71xx/image/Makefile 
>  @@ -22,6 +22,11 @@ endif 
> @@ -25,15 +25,16 @@ index 1eaf1e457c..602323bba2 100644 
>   ifeq ($(SUBTARGET),nand) 
>   include ./nand.mk 
>  diff --git a/target/linux/ar71xx/tiny/config-default b/target/linux/ar71xx/tiny/config-default 
> -index 2e9031a24c..fa62b41047 100644 
> +index 2e9031a..4549c4a 100644 
>  --- a/target/linux/ar71xx/tiny/config-default 
>  +++ b/target/linux/ar71xx/tiny/config-default 
> -@@ -70,3 +70,17 @@ CONFIG_SOC_AR933X=y 
> +@@ -70,3 +70,18 @@ CONFIG_SOC_AR933X=y 
>   CONFIG_SOC_AR934X=y 
>   CONFIG_SOC_QCA953X=y 
>   CONFIG_SOC_QCA956X=y 
>  +# FFF 
>  +CONFIG_ATH79_MACH_ARCHER_C25_V1=y 
> ++CONFIG_ATH79_MACH_ARCHER_C60_V1=y 
>  +CONFIG_ATH79_MACH_ARCHER_C7=y 
>  +CONFIG_ATH79_MACH_CPE510=y 
>  +CONFIG_ATH79_MACH_GL_AR150=y 
> @@ -47,5 +48,5 @@ index 2e9031a24c..fa62b41047 100644 
>  +CONFIG_ATH79_MACH_UBNT_UNIFIAC=y 
>  +CONFIG_ATH79_MACH_UBNT_XM=y 
>  -- 
> -2.11.0 
> +2.7.4 
>  
> diff --git a/src/packages/fff/fff-network/ar71xx/network.archer-c60-v1 b/src/packages/fff/fff-network/ar71xx/network.archer-c60-v1

> new file mode 100644 
> index 00000000..c1be2dc1 
> --- /dev/null 
> +++ b/src/packages/fff/fff-network/ar71xx/network.archer-c60-v1 
> @@ -0,0 +1,9 @@ 
> +PORTORDER="4 3 2 1" 
> + 
> +WANDEV=eth0 
> +SWITCHDEV=eth1 
> +CLIENT_PORTS="1 2 0t" 
> +BATMAN_PORTS="3 4 0t" 
> + 
> +ETHMESHMAC=$(cat /sys/class/net/eth1/address) 
> +ROUTERMAC=$(cat /sys/class/net/eth0/address) 
>