Message ID | 20190403143401.23692-1-fabian@blaese.de |
---|---|
State | Superseded |
Headers | show |
diff --git a/bsp/ar71xx/.config b/bsp/ar71xx/.config index 85987e3..71ead40 100644 --- a/bsp/ar71xx/.config +++ b/bsp/ar71xx/.config @@ -10,6 +10,8 @@ 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_archer-c7-v5=y +CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_tiny_DEVICE_archer-c7-v5="-kmod-ath10k kmod-ath10k-ct" CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_cpe210-220-v1=y CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_tiny_DEVICE_cpe210-220-v1="" CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_cpe210-v2=y diff --git a/bsp/board_ar71xx.bsp b/bsp/board_ar71xx.bsp index 1879909..37130d0 100644 --- a/bsp/board_ar71xx.bsp +++ b/bsp/board_ar71xx.bsp @@ -5,6 +5,7 @@ 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}-archer-c7-v5-squashfs-sysupgrade.bin" "openwrt-${chipset}-${subtarget}-cpe210-220-v1-squashfs-sysupgrade.bin" "openwrt-${chipset}-${subtarget}-cpe210-v2-squashfs-sysupgrade.bin" "openwrt-${chipset}-${subtarget}-cpe210-v3-squashfs-sysupgrade.bin" diff --git a/src/packages/fff/fff-network/ar71xx/network.archer-c7-v5 b/src/packages/fff/fff-network/ar71xx/network.archer-c7-v5 new file mode 100644 index 0000000..58a4cf0 --- /dev/null +++ b/src/packages/fff/fff-network/ar71xx/network.archer-c7-v5 @@ -0,0 +1,12 @@ +WANDEV=eth0 +SWITCHDEV=eth0 +CLIENT_PORTS="4 5 0t" +WAN_PORTS="1 0t" +BATMAN_PORTS="2 3 0t" +CPUPORT="0t" + +# use mac address from phy1 with 'locally administered' bit set to '1' +# only possible, because wXmesh is created first and therefore gets the 'universally administered address' + +ETHMESHMAC=$(macFlipLocalBit "$(cat /sys/class/ieee80211/phy1/macaddress)") +ROUTERMAC=$(cat /sys/class/net/eth0/address)
Hi Fabian, vielen Dank für den Patch. Ein paar Kommentare unten vorab, sonst vergesse ich sie wieder ;-) > -----Original Message----- > From: franken-dev [mailto:franken-dev-bounces@freifunk.net] On Behalf Of > Fabian Bläse > Sent: Mittwoch, 3. April 2019 16:34 > To: franken-dev@freifunk.net > Subject: [RFC PATCH] Add support for TP-Link Archer C7 v5 > > Signed-off-by: Fabian Bläse <fabian@blaese.de> > --- > bsp/ar71xx/.config | 2 ++ > bsp/board_ar71xx.bsp | 1 + > .../fff/fff-network/ar71xx/network.archer-c7-v5 | 12 ++++++++++++ > 3 files changed, 15 insertions(+) > create mode 100644 src/packages/fff/fff-network/ar71xx/network.archer-c7- > v5 > > diff --git a/bsp/ar71xx/.config b/bsp/ar71xx/.config > index 85987e3..71ead40 100644 > --- a/bsp/ar71xx/.config > +++ b/bsp/ar71xx/.config > @@ -10,6 +10,8 @@ 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_archer-c7-v5=y > +CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_tiny_DEVICE_archer-c7-v5="- > kmod-ath10k kmod-ath10k-ct" > CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_cpe210-220-v1=y > CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_tiny_DEVICE_cpe210-220-v1="" > CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_cpe210-v2=y > diff --git a/bsp/board_ar71xx.bsp b/bsp/board_ar71xx.bsp > index 1879909..37130d0 100644 > --- a/bsp/board_ar71xx.bsp > +++ b/bsp/board_ar71xx.bsp > @@ -5,6 +5,7 @@ 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}-archer-c7-v5-squashfs-sysupgrade.bin" > "openwrt-${chipset}-${subtarget}-cpe210-220-v1-squashfs-sysupgrade.bin" > "openwrt-${chipset}-${subtarget}-cpe210-v2-squashfs-sysupgrade.bin" > "openwrt-${chipset}-${subtarget}-cpe210-v3-squashfs-sysupgrade.bin" > diff --git a/src/packages/fff/fff-network/ar71xx/network.archer-c7-v5 > b/src/packages/fff/fff-network/ar71xx/network.archer-c7-v5 > new file mode 100644 > index 0000000..58a4cf0 > --- /dev/null > +++ b/src/packages/fff/fff-network/ar71xx/network.archer-c7-v5 > @@ -0,0 +1,12 @@ PORTORDER werde ich noch herausfinden, die sollten wir hier ergänzen. > +WANDEV=eth0 > +SWITCHDEV=eth0 > +CLIENT_PORTS="4 5 0t" > +WAN_PORTS="1 0t" > +BATMAN_PORTS="2 3 0t" > +CPUPORT="0t" CPUPORT müsste zum jetzigen Stand eigtl. wieder raus. > + > +# use mac address from phy1 with 'locally administered' bit set to '1' > +# only possible, because wXmesh is created first and therefore gets the > 'universally administered address' > + > +ETHMESHMAC=$(macFlipLocalBit "$(cat > /sys/class/ieee80211/phy1/macaddress)") Ich denke, dass es hier mehr Sinn macht, die eth1-Adresse zu nehmen (eth0 +1). Werde mich dazu aber nach dem Test nochmal ausführlich äußern. > +ROUTERMAC=$(cat /sys/class/net/eth0/address) > -- > 2.21.0 Ansonsten fehlt ATH79_MACH_ARCHER_C7_V5 in dem generic-zu-tiny OpenWrt-Patch: https://github.com/openwrt/openwrt/commit/bf39d5594b3c8f9409e6d9408a1f370c9f18d0dd#diff-d3d7f2ed32814702d2aabcea4a942da8R55 Zum Testen ist das aber erstmal super. Beste Grüße Adrian
Hallo Adrian, On 03.04.19 17:21, Adrian Schmutzler wrote: >> diff --git a/src/packages/fff/fff-network/ar71xx/network.archer-c7-v5 >> b/src/packages/fff/fff-network/ar71xx/network.archer-c7-v5 >> new file mode 100644 >> index 0000000..58a4cf0 >> --- /dev/null >> +++ b/src/packages/fff/fff-network/ar71xx/network.archer-c7-v5 >> @@ -0,0 +1,12 @@ > > PORTORDER werde ich noch herausfinden, die sollten wir hier ergänzen. Gern. Ich selbst hab das nicht begriffen, die richtige Zeile darf mir gern jemand für eine v2 mitteilen :-) >> +WANDEV=eth0 >> +SWITCHDEV=eth0 >> +CLIENT_PORTS="4 5 0t" >> +WAN_PORTS="1 0t" >> +BATMAN_PORTS="2 3 0t" >> +CPUPORT="0t" > > CPUPORT müsste zum jetzigen Stand eigtl. wieder raus. Verdammt, stimmt. Wird Zeit, dass die GW-Firmware fertig wird.. > >> + >> +# use mac address from phy1 with 'locally administered' bit set to '1' >> +# only possible, because wXmesh is created first and therefore gets the >> 'universally administered address' >> + >> +ETHMESHMAC=$(macFlipLocalBit "$(cat >> /sys/class/ieee80211/phy1/macaddress)") > > Ich denke, dass es hier mehr Sinn macht, die eth1-Adresse zu nehmen (eth0 +1). > Werde mich dazu aber nach dem Test nochmal ausführlich äußern. Musst du an konkreter Hardware sehen. Ich glaube aber, dass das aus irgendeinem Grund nicht ging.. > >> +ROUTERMAC=$(cat /sys/class/net/eth0/address) >> -- >> 2.21.0 > > Ansonsten fehlt ATH79_MACH_ARCHER_C7_V5 in dem generic-zu-tiny OpenWrt-Patch: > https://github.com/openwrt/openwrt/commit/bf39d5594b3c8f9409e6d9408a1f370c9f18d0dd#diff-d3d7f2ed32814702d2aabcea4a942da8R55 Fehlt nicht. Alle drei Object-Files werden in "CONFIG_ATH79_MACH_ARCHER_C7" eingebaut. Siehe genau die Stelle, die du verlinkt hast :-) Wir haben nur die Kernel-Config verändert. Gruß Fabian
Signed-off-by: Fabian Bläse <fabian@blaese.de> --- bsp/ar71xx/.config | 2 ++ bsp/board_ar71xx.bsp | 1 + .../fff/fff-network/ar71xx/network.archer-c7-v5 | 12 ++++++++++++ 3 files changed, 15 insertions(+) create mode 100644 src/packages/fff/fff-network/ar71xx/network.archer-c7-v5