Compare commits
131 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
1c76fcb58b | ||
|
3191012fe6 | ||
|
13befda80b | ||
|
d51a5bad2b | ||
|
8fba9d6179 | ||
|
b9a621f68c | ||
|
582b7f2944 | ||
|
205e66c743 | ||
|
3807f12250 | ||
|
4429905f5c | ||
|
22e27a5220 | ||
|
7821668445 | ||
|
74a41ea15f | ||
|
b3bb43c97c | ||
|
92e72fb7af | ||
|
52dfe84d4a | ||
|
7d2280de5a | ||
|
4d629013bf | ||
|
3174a9290a | ||
|
47aacffbef | ||
|
e01e66e716 | ||
|
258df6c848 | ||
|
d13bdc2c76 | ||
|
e427f0912c | ||
|
fcfed5b0b6 | ||
|
f1fa494883 | ||
|
52cfe1c0df | ||
|
fd15b63789 | ||
|
4d955690f5 | ||
|
e9a9d0150d | ||
|
bfae2e24c3 | ||
|
6bb60165a2 | ||
|
e9dcefee59 | ||
|
0b516a7e61 | ||
|
0b12f9cb80 | ||
|
daa00748ea | ||
|
3335e10363 | ||
|
7f3824ffac | ||
|
e3068698f3 | ||
|
1005cdd1fd | ||
|
d6f46a4ea5 | ||
|
be2fd8e16e | ||
|
039c5c38f4 | ||
|
bd343c7388 | ||
|
4cb1d45e19 | ||
|
223d25ba4a | ||
|
48e2b236de | ||
|
5361bcbabd | ||
|
8705a4cff9 | ||
|
ecbd7a3b6d | ||
|
63e52a2112 | ||
|
46b256d0af | ||
|
1ef72ba26f | ||
|
8673e67370 | ||
|
34f41c8ce3 | ||
|
8ca311cf0a | ||
|
21b3b46a41 | ||
|
508dec4d89 | ||
|
94731839c8 | ||
|
8b2cc206d3 | ||
|
6a1f66c51f | ||
|
fd4afb613a | ||
|
1b274e64ac | ||
|
033a3b971a | ||
|
53c0710a5e | ||
|
32a00f808d | ||
|
43954dd165 | ||
|
f0a617786c | ||
|
190d7f8701 | ||
|
4f8f6e7585 | ||
|
e6137d424d | ||
|
b5d90719cb | ||
|
1cafcde91c | ||
|
06df8b7aa1 | ||
|
73ddf5b453 | ||
|
2751daa655 | ||
|
1b4bffbde7 | ||
|
f000a605cd | ||
|
e491ba3ca4 | ||
|
ad145f356a | ||
|
358aef234a | ||
|
4a578512e6 | ||
|
33ad749fae | ||
|
a3e3cc7d71 | ||
|
e2d5df3d36 | ||
|
13053bf6bc | ||
|
d8724b0a6d | ||
|
ff8737bb16 | ||
|
5961575c33 | ||
|
9b840d1d87 | ||
|
c82fc9616b | ||
|
b85a9c54d5 | ||
|
8c1f5e9c9c | ||
|
7e6a0995d2 | ||
|
940874972b | ||
|
4b4765fbe7 | ||
|
ccd7fa3d7b | ||
|
d0565bc3b5 | ||
|
b24c73509d | ||
|
7614ac047d | ||
|
8b35fab23e | ||
|
51d5293ee6 | ||
|
6244c59524 | ||
|
a4243e0376 | ||
|
ab1fb054f6 | ||
|
30e97e8d6d | ||
|
59c5eb6866 | ||
|
7ca56084bc | ||
|
5d088754f0 | ||
|
1b547f9181 | ||
|
f03ada1816 | ||
|
5942f2925c | ||
|
81a643476b | ||
|
10a126e117 | ||
|
f69be80ac3 | ||
|
183f345979 | ||
|
7838e68c20 | ||
|
34383285b1 | ||
|
17a6e1d8d7 | ||
|
9667075b54 | ||
|
da41247139 | ||
|
73df762ec1 | ||
|
a6d75c010e | ||
|
ecd9f8cfe8 | ||
|
411f6c3859 | ||
|
8a2fdc502a | ||
|
81cf8164d5 | ||
|
43b1fc99dd | ||
|
013d049acf | ||
|
899e187f34 | ||
|
a6022475ff |
19
.github/filters.yml
vendored
19
.github/filters.yml
vendored
@ -56,6 +56,16 @@
|
||||
"targets/generic",
|
||||
"targets/targets.mk"
|
||||
],
|
||||
"ipq40xx-mikrotik": [
|
||||
"targets/ipq40xx-mikrotik",
|
||||
"modules",
|
||||
"Makefile",
|
||||
"patches/**",
|
||||
"scripts/**",
|
||||
"targets/generic",
|
||||
"targets/targets.mk",
|
||||
"targets/mikrotik.inc"
|
||||
],
|
||||
"ipq806x-generic": [
|
||||
"targets/ipq806x-generic",
|
||||
"modules",
|
||||
@ -137,6 +147,15 @@
|
||||
"targets/generic",
|
||||
"targets/targets.mk"
|
||||
],
|
||||
"realtek-rtl838x": [
|
||||
"targets/realtek-rtl838x",
|
||||
"modules",
|
||||
"Makefile",
|
||||
"patches/**",
|
||||
"scripts/**",
|
||||
"targets/generic",
|
||||
"targets/targets.mk"
|
||||
],
|
||||
"rockchip-armv8": [
|
||||
"targets/rockchip-armv8",
|
||||
"modules",
|
||||
|
@ -11,6 +11,10 @@ sphinx:
|
||||
|
||||
# Optionally set the version of Python and requirements required to build your docs
|
||||
python:
|
||||
version: 3.8
|
||||
install:
|
||||
- requirements: docs/requirements.txt
|
||||
|
||||
build:
|
||||
os: ubuntu-22.04
|
||||
tools:
|
||||
python: "3.8"
|
||||
|
@ -30,7 +30,7 @@ the future development of Gluon.
|
||||
|
||||
Please refrain from using the `master` branch for anything else but development purposes!
|
||||
Use the most recent release instead. You can list all releases by running `git tag`
|
||||
and switch to one by running `git checkout v2022.1 && make update`.
|
||||
and switch to one by running `git checkout v2022.1.4 && make update`.
|
||||
|
||||
If you're using the autoupdater, do not autoupdate nodes with anything but releases.
|
||||
If you upgrade using random master commits the nodes *might break* eventually.
|
||||
|
@ -1,4 +1,4 @@
|
||||
-- This is an example site configuration for Gluon v2018.2+
|
||||
-- This is an example site configuration for Gluon v2022.1.4
|
||||
--
|
||||
-- Take a look at the documentation located at
|
||||
-- https://gluon.readthedocs.io/ for details.
|
||||
|
@ -24,7 +24,7 @@ copyright = '2015-2022, Project Gluon'
|
||||
author = 'Project Gluon'
|
||||
|
||||
# The short X.Y version
|
||||
version = '2022.1'
|
||||
version = '2022.1.4'
|
||||
# The full version, including alpha/beta/rc tags
|
||||
release = version
|
||||
|
||||
|
@ -18,6 +18,9 @@ Config Mode by pressing and holding the RESET/WPS/DECT button for about three
|
||||
seconds. The device should reboot (all LEDs will turn off briefly) and
|
||||
Config Mode will be available.
|
||||
|
||||
If you have access to the console of the node, there is the
|
||||
``gluon-enter-setup-mode`` command, which reboots a node into Config Mode.
|
||||
|
||||
|
||||
Port Configuration
|
||||
------------------
|
||||
|
@ -5,6 +5,10 @@ Release Notes
|
||||
:caption: Gluon 2022.1
|
||||
:maxdepth: 2
|
||||
|
||||
v2022.1.4
|
||||
v2022.1.3
|
||||
v2022.1.2
|
||||
v2022.1.1
|
||||
v2022.1
|
||||
|
||||
.. toctree::
|
||||
|
85
docs/releases/v2022.1.1.rst
Normal file
85
docs/releases/v2022.1.1.rst
Normal file
@ -0,0 +1,85 @@
|
||||
Gluon 2022.1.1
|
||||
==============
|
||||
|
||||
Important notes
|
||||
---------------
|
||||
|
||||
This release mitigates multiple flaws in the Linux wireless stack fixing RCE and DoS vulnerabilities.
|
||||
|
||||
|
||||
Added hardware support
|
||||
----------------------
|
||||
|
||||
ipq40xx-generic
|
||||
~~~~~~~~~~~~~~~
|
||||
|
||||
- GL.iNet
|
||||
|
||||
- GL-AP1300
|
||||
|
||||
mpc85xx-p1010
|
||||
~~~~~~~~~~~~~
|
||||
|
||||
- TP-Link
|
||||
|
||||
- TL-WDR4900 (v1)
|
||||
|
||||
ramips-mt7621
|
||||
~~~~~~~~~~~~~
|
||||
|
||||
- ZyXEL
|
||||
|
||||
- NWA50AX
|
||||
|
||||
rockchip-armv8
|
||||
~~~~~~~~~~~~~~
|
||||
|
||||
- FriendlyElec
|
||||
|
||||
- NanoPi R4S (4GB LPDDR4)
|
||||
|
||||
Bugfixes
|
||||
--------
|
||||
|
||||
* Multiple mitigations for (`critical vulnerabilities <https://seclists.org/oss-sec/2022/q4/20>`_) in the Linux kernel WLAN stack. This only concerns Gluon v2022.1, older Gluon versions are unaffected.
|
||||
|
||||
* CVE-2022-41674
|
||||
* CVE-2022-42719
|
||||
* CVE-2022-42720
|
||||
* CVE-2022-42721
|
||||
* CVE-2022-42722
|
||||
* Fixes `security issues in WolfSSL <https://openwrt.org/releases/22.03/notes-22.03.1#security_fixes>`_. People who have installed additional, non-Gluon packages which rely on WolfSSL's TLS 1.3 implementation might be affected. Firmwares using either gluon-mesh-wireless-sae or gluon-wireless-encryption-wpa3 are unaffected by these issues, since only WPA-Enterprise relies on the affected TLS functionality.
|
||||
|
||||
* CVE-2022-38152
|
||||
* CVE-2022-39173
|
||||
|
||||
* Fixes the update path for GL-AR300M and NanoStation Loco M2/M5 (XW) devices.
|
||||
|
||||
Known issues
|
||||
------------
|
||||
|
||||
* A workaround for Android devices not waking up to their MLD subscriptions was removed,
|
||||
potentially breaking IPv6 connectivity for these devices after extended sleep periods.
|
||||
(`#2672 <https://github.com/freifunk-gluon/gluon/issues/2672>`_)
|
||||
|
||||
* Upgrading EdgeRouter-X from versions before v2020.1.x may lead to a soft-bricked state due to bad blocks on the NAND flash which the NAND driver before this release does not handle well.
|
||||
(`#1937 <https://github.com/freifunk-gluon/gluon/issues/1937>`_)
|
||||
|
||||
* The integration of the BATMAN_V routing algorithm is incomplete.
|
||||
|
||||
- Mesh neighbors don't appear on the status page. (`#1726 <https://github.com/freifunk-gluon/gluon/issues/1726>`_)
|
||||
Many tools have the BATMAN_IV metric hardcoded, these need to be updated to account for the new throughput
|
||||
metric.
|
||||
- Throughput values are not correctly acquired for different interface types.
|
||||
(`#1728 <https://github.com/freifunk-gluon/gluon/issues/1728>`_)
|
||||
This affects virtual interface types like bridges and VXLAN.
|
||||
|
||||
* Default TX power on many Ubiquiti devices is too high, correct offsets are unknown
|
||||
(`#94 <https://github.com/freifunk-gluon/gluon/issues/94>`_)
|
||||
|
||||
Reducing the TX power in the Advanced Settings is recommended.
|
||||
|
||||
* In configurations without VXLAN, the MAC address of the WAN interface is modified even when Mesh-on-WAN is disabled
|
||||
(`#496 <https://github.com/freifunk-gluon/gluon/issues/496>`_)
|
||||
|
||||
This may lead to issues in environments where a fixed MAC address is expected (like VMware when promiscuous mode is disallowed).
|
37
docs/releases/v2022.1.2.rst
Normal file
37
docs/releases/v2022.1.2.rst
Normal file
@ -0,0 +1,37 @@
|
||||
Gluon 2022.1.2
|
||||
==============
|
||||
|
||||
Bugfixes
|
||||
--------
|
||||
|
||||
* Various build-errors which sporadically occur when building with a large thread-count have been fixed
|
||||
|
||||
* Android devices do not lose their IPv6 connectivity after extended idle-time
|
||||
|
||||
* The 802.11s mesh network is now using 802.11ax HE-modes when supported by hardware
|
||||
|
||||
|
||||
Known issues
|
||||
------------
|
||||
|
||||
* Upgrading EdgeRouter-X from versions before v2020.1.x may lead to a soft-bricked state due to bad blocks on the NAND flash which the NAND driver before this release does not handle well.
|
||||
(`#1937 <https://github.com/freifunk-gluon/gluon/issues/1937>`_)
|
||||
|
||||
* The integration of the BATMAN_V routing algorithm is incomplete.
|
||||
|
||||
- Mesh neighbors don't appear on the status page. (`#1726 <https://github.com/freifunk-gluon/gluon/issues/1726>`_)
|
||||
Many tools have the BATMAN_IV metric hardcoded, these need to be updated to account for the new throughput
|
||||
metric.
|
||||
- Throughput values are not correctly acquired for different interface types.
|
||||
(`#1728 <https://github.com/freifunk-gluon/gluon/issues/1728>`_)
|
||||
This affects virtual interface types like bridges and VXLAN.
|
||||
|
||||
* Default TX power on many Ubiquiti devices is too high, correct offsets are unknown
|
||||
(`#94 <https://github.com/freifunk-gluon/gluon/issues/94>`_)
|
||||
|
||||
Reducing the TX power in the Advanced Settings is recommended.
|
||||
|
||||
* In configurations without VXLAN, the MAC address of the WAN interface is modified even when Mesh-on-WAN is disabled
|
||||
(`#496 <https://github.com/freifunk-gluon/gluon/issues/496>`_)
|
||||
|
||||
This may lead to issues in environments where a fixed MAC address is expected (like VMware when promiscuous mode is disallowed).
|
40
docs/releases/v2022.1.3.rst
Normal file
40
docs/releases/v2022.1.3.rst
Normal file
@ -0,0 +1,40 @@
|
||||
Gluon 2022.1.3
|
||||
==============
|
||||
|
||||
Bugfixes
|
||||
--------
|
||||
|
||||
* Ipq40xx Wave2 devices temporarily use non-ct firmware again to work around 802.11s unicast package loss in ath10k-ct
|
||||
(`#2692 <https://github.com/freifunk-gluon/gluon/issues/2692>`_)
|
||||
|
||||
* Modify kernel builds slightly to work around a boot hang on various devices based on the QCA9563 SoC - especially the Unifi AC-* devices
|
||||
(`#2784 <https://github.com/freifunk-gluon/gluon/issues/2784>`_)
|
||||
|
||||
* Work around an issue with wifi setup timing by waiting a bit while device initialisation is ongoing
|
||||
(`#2779 <https://github.com/freifunk-gluon/gluon/issues/2779>`_)
|
||||
|
||||
|
||||
Known issues
|
||||
------------
|
||||
|
||||
* Upgrading EdgeRouter-X from versions before v2020.1.x may lead to a soft-bricked state due to bad blocks on the NAND flash which the NAND driver before this release does not handle well.
|
||||
(`#1937 <https://github.com/freifunk-gluon/gluon/issues/1937>`_)
|
||||
|
||||
* The integration of the BATMAN_V routing algorithm is incomplete.
|
||||
|
||||
- Mesh neighbors don't appear on the status page. (`#1726 <https://github.com/freifunk-gluon/gluon/issues/1726>`_)
|
||||
Many tools have the BATMAN_IV metric hardcoded, these need to be updated to account for the new throughput
|
||||
metric.
|
||||
- Throughput values are not correctly acquired for different interface types.
|
||||
(`#1728 <https://github.com/freifunk-gluon/gluon/issues/1728>`_)
|
||||
This affects virtual interface types like bridges and VXLAN.
|
||||
|
||||
* Default TX power on many Ubiquiti devices is too high, correct offsets are unknown
|
||||
(`#94 <https://github.com/freifunk-gluon/gluon/issues/94>`_)
|
||||
|
||||
Reducing the TX power in the Advanced Settings is recommended.
|
||||
|
||||
* In configurations without VXLAN, the MAC address of the WAN interface is modified even when Mesh-on-WAN is disabled
|
||||
(`#496 <https://github.com/freifunk-gluon/gluon/issues/496>`_)
|
||||
|
||||
This may lead to issues in environments where a fixed MAC address is expected (like VMware when promiscuous mode is disallowed).
|
136
docs/releases/v2022.1.4.rst
Normal file
136
docs/releases/v2022.1.4.rst
Normal file
@ -0,0 +1,136 @@
|
||||
Gluon 2022.1.4
|
||||
==============
|
||||
|
||||
Added hardware support
|
||||
----------------------
|
||||
|
||||
ath79-generic
|
||||
~~~~~~~~~~~~~
|
||||
|
||||
- LibreRouter
|
||||
|
||||
- LibreRouter (v1)
|
||||
|
||||
- Teltonika
|
||||
|
||||
- RUT230 (v1)
|
||||
|
||||
|
||||
ath79-nand
|
||||
~~~~~~~~~~
|
||||
|
||||
- Aerohive
|
||||
|
||||
- HiveAP 121
|
||||
|
||||
- NETGEAR
|
||||
|
||||
- WNDR4300 (v1)
|
||||
|
||||
|
||||
lantiq-xrx200
|
||||
~~~~~~~~~~~~~
|
||||
|
||||
- Arcadyan
|
||||
|
||||
- o2 Box 6431
|
||||
|
||||
|
||||
ramips-mt7621
|
||||
~~~~~~~~~~~~~
|
||||
|
||||
- Cudy
|
||||
|
||||
- X6 (v1, v2)
|
||||
|
||||
- D-Link
|
||||
|
||||
- DAP-X1860 (A1)
|
||||
|
||||
- GL.iNet
|
||||
|
||||
- GL-MT1300
|
||||
|
||||
- Mercusys
|
||||
|
||||
- MR70X (v1)
|
||||
|
||||
- Xiaomi
|
||||
|
||||
- Mi Router 3G
|
||||
|
||||
|
||||
ramips-mt76x8
|
||||
~~~~~~~~~~~~~
|
||||
|
||||
- TP-Link
|
||||
|
||||
- RE200 (v3)
|
||||
|
||||
|
||||
realtek-rtl838x
|
||||
~~~~~~~~~~~~~~~
|
||||
|
||||
- D-Link
|
||||
|
||||
- DGS-1210-10P
|
||||
|
||||
|
||||
ipq40xx-generic
|
||||
~~~~~~~~~~~~~~~
|
||||
|
||||
- AVM
|
||||
|
||||
- FRITZBox 7520
|
||||
|
||||
|
||||
ipq40xx-mikrotik
|
||||
~~~~~~~~~~~~~~~~
|
||||
|
||||
- Mikrotik
|
||||
|
||||
- hAP ac2
|
||||
|
||||
|
||||
Bugfixes
|
||||
--------
|
||||
|
||||
* Enterasys WS-AP3705i now uses the correct image-name for use with the autoupdater
|
||||
(`#2819 <https://github.com/freifunk-gluon/gluon/issues/2819>`_)
|
||||
|
||||
* Reduce memory Usage for ath10k on ZyXEL WRE6606 devices
|
||||
(`#2842 <https://github.com/freifunk-gluon/gluon/issues/2842>`_)
|
||||
|
||||
* Replace the Workaround for failed boots on ath79 with a proper fix.
|
||||
(`#2784 <https://github.com/freifunk-gluon/gluon/issues/2784#issuecomment-1452126501>`_)
|
||||
|
||||
* AVM FRITZ!Box 7360 v2 flashed with the incorrect image for v1 will automatically update to the correct image.
|
||||
|
||||
* Revert OOM inducing switch of ath79 Wave2 firmware back to -ct
|
||||
(`#2879 <https://github.com/freifunk-gluon/gluon/pull/2879>`_)
|
||||
|
||||
Known issues
|
||||
------------
|
||||
|
||||
* Upgrading EdgeRouter-X from versions before v2020.1.x may lead to a soft-bricked state due to bad blocks on the NAND flash which the NAND driver before this release does not handle well.
|
||||
(`#1937 <https://github.com/freifunk-gluon/gluon/issues/1937>`_)
|
||||
|
||||
* The integration of the BATMAN_V routing algorithm is incomplete.
|
||||
|
||||
- Mesh neighbors don't appear on the status page. (`#1726 <https://github.com/freifunk-gluon/gluon/issues/1726>`_)
|
||||
Many tools have the BATMAN_IV metric hardcoded, these need to be updated to account for the new throughput
|
||||
metric.
|
||||
- Throughput values are not correctly acquired for different interface types.
|
||||
(`#1728 <https://github.com/freifunk-gluon/gluon/issues/1728>`_)
|
||||
This affects virtual interface types like bridges and VXLAN.
|
||||
|
||||
* Default TX power on many Ubiquiti devices is too high, correct offsets are unknown
|
||||
(`#94 <https://github.com/freifunk-gluon/gluon/issues/94>`_)
|
||||
|
||||
Reducing the TX power in the Advanced Settings is recommended.
|
||||
|
||||
* In configurations without VXLAN, the MAC address of the WAN interface is modified even when Mesh-on-WAN is disabled
|
||||
(`#496 <https://github.com/freifunk-gluon/gluon/issues/496>`_)
|
||||
|
||||
This may lead to issues in environments where a fixed MAC address is expected (like VMware when promiscuous mode is disallowed).
|
||||
|
@ -391,7 +391,8 @@ Known issues
|
||||
------------
|
||||
|
||||
* A workaround for Android devices not waking up to their MLD subscriptions was removed,
|
||||
potentially breaking IPv6 connectivity for these devices after extended sleep periods
|
||||
potentially breaking IPv6 connectivity for these devices after extended sleep periods.
|
||||
(`#2672 <https://github.com/freifunk-gluon/gluon/issues/2672>`_)
|
||||
|
||||
* Upgrading EdgeRouter-X from versions before v2020.1.x may lead to a soft-bricked state due to bad blocks on the NAND flash which the NAND driver before this release does not handle well.
|
||||
(`#1937 <https://github.com/freifunk-gluon/gluon/issues/1937>`_)
|
||||
|
@ -1,4 +1,4 @@
|
||||
-- This is an example site configuration for Gluon v2022.1
|
||||
-- This is an example site configuration for Gluon v2022.1.4
|
||||
--
|
||||
-- Take a look at the documentation located at
|
||||
-- https://gluon.readthedocs.io/ for details.
|
||||
|
@ -8,7 +8,7 @@ Gluon's releases are managed using `Git tags`_. If you are just getting
|
||||
started with Gluon we recommend to use the latest stable release of Gluon.
|
||||
|
||||
Take a look at the `list of gluon releases`_ and notice the latest release,
|
||||
e.g. *v2022.1*. Always get Gluon using git and don't try to download it
|
||||
e.g. *v2022.1.4*. Always get Gluon using git and don't try to download it
|
||||
as a Zip archive as the archive will be missing version information.
|
||||
|
||||
Please keep in mind that there is no "default Gluon" build; a site configuration
|
||||
@ -50,7 +50,7 @@ Building the images
|
||||
-------------------
|
||||
|
||||
To build Gluon, first check out the repository. Replace *RELEASE* with the
|
||||
version you'd like to checkout, e.g. *v2022.1*.
|
||||
version you'd like to checkout, e.g. *v2022.1.4*.
|
||||
|
||||
::
|
||||
|
||||
|
@ -53,6 +53,10 @@ ath79-generic
|
||||
|
||||
- JT-OR750i
|
||||
|
||||
* LibreRouter
|
||||
|
||||
- LibreRouter v1 [#missing_radios]_
|
||||
|
||||
* Netgear
|
||||
|
||||
- WNDR3700 (v1, v2)
|
||||
@ -91,6 +95,10 @@ ath79-generic
|
||||
|
||||
- WS-AP3610
|
||||
|
||||
* Teltonika
|
||||
|
||||
- RUT230 (v1)
|
||||
|
||||
* TP-Link
|
||||
|
||||
- Archer A7 (v5)
|
||||
@ -134,6 +142,10 @@ ath79-generic
|
||||
ath79-nand
|
||||
----------
|
||||
|
||||
* Aerohive
|
||||
|
||||
- HiveAP 121
|
||||
|
||||
* GL.iNet
|
||||
|
||||
- GL-AR300M
|
||||
@ -142,6 +154,7 @@ ath79-nand
|
||||
* Netgear
|
||||
|
||||
- WNDR3700 (v4)
|
||||
- WNDR4300 (v1)
|
||||
|
||||
ath79-mikrotik
|
||||
--------------
|
||||
@ -176,6 +189,7 @@ ipq40xx-generic
|
||||
* AVM
|
||||
|
||||
- FRITZ!Box 4040 [#avmflash]_
|
||||
- FRITZ!Box 7520 (v1) [#eva_ramboot]_
|
||||
- FRITZ!Box 7530 [#eva_ramboot]_
|
||||
- FRITZ!Repeater 1200 [#eva_ramboot]_
|
||||
|
||||
@ -185,6 +199,7 @@ ipq40xx-generic
|
||||
|
||||
* GL.iNet
|
||||
|
||||
- GL-AP1300
|
||||
- GL-B1300
|
||||
|
||||
* Linksys
|
||||
@ -217,6 +232,7 @@ ipq40xx-mikrotik
|
||||
* Mikrotik
|
||||
|
||||
- DISC Lite5 ac (RBDiscG-5acD)
|
||||
- hAP ac2
|
||||
- SXTsq 5 ac (RBSXTsqG-5acD)
|
||||
|
||||
ipq806x-generic
|
||||
@ -229,6 +245,10 @@ ipq806x-generic
|
||||
lantiq-xrx200
|
||||
-------------
|
||||
|
||||
* Arcadyan
|
||||
|
||||
- VGV7510KW22 (o2 Box 6431)
|
||||
|
||||
* AVM
|
||||
|
||||
- FRITZ!Box 7360 (v1, v2) [#avmflash]_ [#lan_as_wan]_
|
||||
@ -236,6 +256,10 @@ lantiq-xrx200
|
||||
- FRITZ!Box 7362 SL [#eva_ramboot]_ [#lan_as_wan]_
|
||||
- FRITZ!Box 7412 [#eva_ramboot]_
|
||||
|
||||
* TP-Link
|
||||
|
||||
- TD-W8970 (v1) [#lan_as_wan]_
|
||||
|
||||
lantiq-xway
|
||||
-----------
|
||||
|
||||
@ -269,6 +293,10 @@ mpc85xx-p1010
|
||||
|
||||
- RED 15w Rev.1
|
||||
|
||||
* TP-Link
|
||||
|
||||
- TL-WDR4900 (v1)
|
||||
|
||||
mpc85xx-p1020
|
||||
---------------
|
||||
|
||||
@ -330,12 +358,23 @@ ramips-mt7621
|
||||
|
||||
* Cudy
|
||||
|
||||
- WR1300 (v1)
|
||||
- WR2100
|
||||
- X6 (v1, v2)
|
||||
|
||||
* D-Link
|
||||
|
||||
- DAP-X1860 (A1)
|
||||
- DIR-860L (B1)
|
||||
|
||||
* GL.iNet
|
||||
|
||||
- GL-MT1300
|
||||
|
||||
* Mercusys
|
||||
|
||||
- MR70X (v1)
|
||||
|
||||
* NETGEAR
|
||||
|
||||
- EX6150 (v1)
|
||||
@ -360,10 +399,14 @@ ramips-mt7621
|
||||
- WG3526-16M
|
||||
- WG3526-32M
|
||||
|
||||
* ZyXEL
|
||||
|
||||
- NWA50AX
|
||||
|
||||
* Xiaomi
|
||||
|
||||
- Xiaomi Mi Router 4A (Gigabit Edition)
|
||||
- Xiaomi Mi Router 3G v2
|
||||
- Xiaomi Mi Router 3G (v1, v2)
|
||||
|
||||
ramips-mt76x8
|
||||
-------------
|
||||
@ -392,7 +435,7 @@ ramips-mt76x8
|
||||
- Archer C20 (v4, v5)
|
||||
- Archer C50 (v3)
|
||||
- Archer C50 (v4)
|
||||
- RE200 (v2)
|
||||
- RE200 (v2, v3)
|
||||
- RE305 (v1) [#device-class-tiny]
|
||||
- TL-MR3020 (v3)
|
||||
- TL-MR3420 (v5)
|
||||
@ -410,12 +453,20 @@ ramips-mt76x8
|
||||
- Xiaomi Mi Router 4A (100M International Edition)
|
||||
- Xiaomi Mi Router 4C
|
||||
|
||||
realtek-rtl838x
|
||||
---------------
|
||||
|
||||
* D-Link
|
||||
|
||||
- DGS-1210-10P (F1)
|
||||
|
||||
rockchip-armv8
|
||||
--------------
|
||||
|
||||
* FriendlyElec
|
||||
|
||||
- NanoPi R2S
|
||||
- NanoPi R4S (4GB LPDDR4)
|
||||
|
||||
sunxi-cortexa7
|
||||
--------------
|
||||
@ -468,6 +519,10 @@ Footnotes
|
||||
.. [#lan_as_wan]
|
||||
All LAN ports on this device are used as WAN.
|
||||
|
||||
.. [#missing_radios]
|
||||
This device contains more than two WLAN radios, which is currently
|
||||
unsupported by Gluon. Only the first two radios will work.
|
||||
|
||||
.. [#modular_ethernet]
|
||||
These devices follow a modular principle,
|
||||
which means even basic functionality like ethernet is provided by an expansion-board,
|
||||
|
8
modules
8
modules
@ -2,15 +2,15 @@ GLUON_FEEDS='packages routing gluon'
|
||||
|
||||
OPENWRT_REPO=https://github.com/openwrt/openwrt.git
|
||||
OPENWRT_BRANCH=openwrt-22.03
|
||||
OPENWRT_COMMIT=d1f14d17aaa1866eee1fe2d0d074b2a003c2a210
|
||||
OPENWRT_COMMIT=e500494771537b9f42f78e4d907bed18b6383606
|
||||
|
||||
PACKAGES_PACKAGES_REPO=https://github.com/openwrt/packages.git
|
||||
PACKAGES_PACKAGES_BRANCH=openwrt-22.03
|
||||
PACKAGES_PACKAGES_COMMIT=bcafba4320e5942f2ca8c1ad63b3a8a84ca0c3d1
|
||||
PACKAGES_PACKAGES_COMMIT=55eed1761207f4dfdb8e7d79138f6f65c8849b50
|
||||
|
||||
PACKAGES_ROUTING_REPO=https://github.com/openwrt/routing.git
|
||||
PACKAGES_ROUTING_BRANCH=openwrt-22.03
|
||||
PACKAGES_ROUTING_COMMIT=8872359011eee64981804f7ed42d5d6b54add6d8
|
||||
PACKAGES_ROUTING_COMMIT=1cc7676b9f32acc30ec47f15fcb70380d5d6ef01
|
||||
|
||||
PACKAGES_GLUON_REPO=https://github.com/freifunk-gluon/packages.git
|
||||
PACKAGES_GLUON_COMMIT=04d2b6ffbb6ee02012f2733b7752d8db0d12eaff
|
||||
PACKAGES_GLUON_COMMIT=29912ec6308fd10b47763b4cf28a638d07f59973
|
||||
|
@ -1,5 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Work around an issue with wifi setup timing by waiting a bit
|
||||
# while device initialisation is ongoing.
|
||||
# https://github.com/freifunk-gluon/gluon/issues/2779
|
||||
sleep 3
|
||||
|
||||
gluon-reconfigure
|
||||
|
||||
exit 0
|
||||
|
@ -87,6 +87,9 @@ local primary_addrs = {
|
||||
{'ipq806x', 'generic', {
|
||||
'netgear,r7800',
|
||||
}},
|
||||
{'lantiq', 'xrx200', {
|
||||
'arcadyan,vgv7510kw22-nor',
|
||||
}},
|
||||
{'lantiq', 'xway', {
|
||||
'netgear,dgn3500b',
|
||||
}},
|
||||
@ -102,6 +105,7 @@ local primary_addrs = {
|
||||
}},
|
||||
{'rockchip', 'armv8', {
|
||||
'friendlyarm,nanopi-r2s',
|
||||
'friendlyarm,nanopi-r4s',
|
||||
}},
|
||||
{'x86'},
|
||||
}},
|
||||
|
@ -67,6 +67,14 @@ elseif platform.match('ramips', 'mt7621', {
|
||||
'netgear,wac104',
|
||||
}) then
|
||||
lan_ifname, wan_ifname = 'lan2 lan3 lan4', 'lan1'
|
||||
elseif platform.match('lantiq', 'xrx200', {
|
||||
'arcadyan,vgv7510kw22-nor',
|
||||
}) then
|
||||
lan_ifname, wan_ifname = 'lan1 lan2 lan3 lan4', 'wan'
|
||||
elseif platform.match('realtek', 'rtl838x', {
|
||||
'd-link,dgs-1210-10p',
|
||||
}) then
|
||||
lan_ifname, wan_ifname = 'lan2 lan3 lan4 lan5 lan6 lan7 lan8 lan9 lan10', 'lan1'
|
||||
end
|
||||
|
||||
if wan_ifname and lan_ifname then
|
||||
|
@ -33,6 +33,14 @@ if #mesh_interfaces_other > 0 then
|
||||
else
|
||||
iftype = 'bridge'
|
||||
ifname = mesh_interfaces_other
|
||||
|
||||
for _, iface in ipairs(ifname) do
|
||||
uci:section('network', 'device', nil, {
|
||||
name = iface,
|
||||
isolate = true,
|
||||
})
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
uci:section('network', 'interface', 'mesh_other', {
|
||||
|
@ -25,6 +25,7 @@ end
|
||||
function M.is_outdoor_device()
|
||||
if M.match('ath79', 'generic', {
|
||||
'devolo,dvl1750x',
|
||||
'librerouter,librerouter-v1',
|
||||
'plasmacloud,pa300',
|
||||
'plasmacloud,pa300e',
|
||||
'tplink,cpe210-v1',
|
||||
|
@ -3,10 +3,10 @@ Date: Sun, 5 Jun 2022 23:43:38 +0200
|
||||
Subject: ramips-mt7621: make DSA images swconfig upgradable
|
||||
|
||||
diff --git a/target/linux/ramips/image/mt7621.mk b/target/linux/ramips/image/mt7621.mk
|
||||
index 7f903485aa9e3055ae0bb490bb8e6d5aab565b45..5b502710b7959825bc2e079d0ffcbbe9c1b063ae 100644
|
||||
index ab0ff95f7529aa43e69e67a4e3a303242c9b2605..e559f1b14714fe5310a7d37eca1048565036db58 100644
|
||||
--- a/target/linux/ramips/image/mt7621.mk
|
||||
+++ b/target/linux/ramips/image/mt7621.mk
|
||||
@@ -172,7 +172,6 @@ endef
|
||||
@@ -180,7 +180,6 @@ endef
|
||||
TARGET_DEVICES += asiarf_ap7621-nv1
|
||||
|
||||
define Device/asus_rt-ac57u
|
||||
@ -14,23 +14,23 @@ index 7f903485aa9e3055ae0bb490bb8e6d5aab565b45..5b502710b7959825bc2e079d0ffcbbe9
|
||||
DEVICE_VENDOR := ASUS
|
||||
DEVICE_MODEL := RT-AC57U
|
||||
DEVICE_ALT0_VENDOR := ASUS
|
||||
@@ -418,7 +417,6 @@ endef
|
||||
@@ -466,7 +465,6 @@ endef
|
||||
TARGET_DEVICES += dlink_dir-853-r1
|
||||
|
||||
define Device/dlink_dir-860l-b1
|
||||
- $(Device/dsa-migration)
|
||||
$(Device/seama)
|
||||
$(Device/seama-lzma-loader)
|
||||
SEAMA_SIGNATURE := wrgac13_dlink.2013gui_dir860lb
|
||||
LOADER_TYPE := bin
|
||||
@@ -1226,7 +1224,6 @@ endef
|
||||
IMAGE_SIZE := 16064k
|
||||
@@ -1286,7 +1284,6 @@ endef
|
||||
TARGET_DEVICES += mts_wg430223
|
||||
|
||||
define Device/netgear_ex6150
|
||||
- $(Device/dsa-migration)
|
||||
$(Device/uimage-lzma-loader)
|
||||
DEVICE_VENDOR := NETGEAR
|
||||
DEVICE_MODEL := EX6150
|
||||
DEVICE_PACKAGES := kmod-mt76x2
|
||||
@@ -1238,7 +1235,6 @@ endef
|
||||
@@ -1299,7 +1296,6 @@ endef
|
||||
TARGET_DEVICES += netgear_ex6150
|
||||
|
||||
define Device/netgear_sercomm_nand
|
||||
@ -38,7 +38,7 @@ index 7f903485aa9e3055ae0bb490bb8e6d5aab565b45..5b502710b7959825bc2e079d0ffcbbe9
|
||||
$(Device/uimage-lzma-loader)
|
||||
BLOCKSIZE := 128k
|
||||
PAGESIZE := 2048
|
||||
@@ -1421,7 +1417,6 @@ endef
|
||||
@@ -1482,7 +1478,6 @@ endef
|
||||
TARGET_DEVICES += netgear_wax202
|
||||
|
||||
define Device/netgear_wndr3700-v5
|
||||
@ -46,7 +46,7 @@ index 7f903485aa9e3055ae0bb490bb8e6d5aab565b45..5b502710b7959825bc2e079d0ffcbbe9
|
||||
$(Device/netgear_sercomm_nor)
|
||||
$(Device/uimage-lzma-loader)
|
||||
IMAGE_SIZE := 15232k
|
||||
@@ -1745,7 +1740,6 @@ endef
|
||||
@@ -1819,7 +1814,6 @@ endef
|
||||
TARGET_DEVICES += tplink_tl-wpa8631p-v3
|
||||
|
||||
define Device/ubnt_edgerouter_common
|
||||
@ -54,7 +54,7 @@ index 7f903485aa9e3055ae0bb490bb8e6d5aab565b45..5b502710b7959825bc2e079d0ffcbbe9
|
||||
$(Device/uimage-lzma-loader)
|
||||
DEVICE_VENDOR := Ubiquiti
|
||||
IMAGE_SIZE := 256768k
|
||||
@@ -2131,7 +2125,6 @@ endef
|
||||
@@ -2235,7 +2229,6 @@ endef
|
||||
TARGET_DEVICES += zbtlink_zbt-wg2626
|
||||
|
||||
define Device/zbtlink_zbt-wg3526-16m
|
||||
@ -62,7 +62,7 @@ index 7f903485aa9e3055ae0bb490bb8e6d5aab565b45..5b502710b7959825bc2e079d0ffcbbe9
|
||||
$(Device/uimage-lzma-loader)
|
||||
IMAGE_SIZE := 16064k
|
||||
DEVICE_VENDOR := Zbtlink
|
||||
@@ -2144,7 +2137,6 @@ endef
|
||||
@@ -2248,7 +2241,6 @@ endef
|
||||
TARGET_DEVICES += zbtlink_zbt-wg3526-16m
|
||||
|
||||
define Device/zbtlink_zbt-wg3526-32m
|
||||
|
@ -16,7 +16,7 @@ index 756105b94c7f844439132ab57837c9ac87d231ca..5563968de9ab3f491fa89d755fcc6e6f
|
||||
endef
|
||||
|
||||
diff --git a/target/linux/lantiq/image/vr9.mk b/target/linux/lantiq/image/vr9.mk
|
||||
index d17045b6db157a878534a28988accd8998ddd572..e83da928e57d827d33bca6bdef96df290bb67347 100644
|
||||
index deea3996670fcef6d2a546373425c4ca5d92734b..d23b80e94e5548ccb19738f22c29c75fa19ab1e7 100644
|
||||
--- a/target/linux/lantiq/image/vr9.mk
|
||||
+++ b/target/linux/lantiq/image/vr9.mk
|
||||
@@ -1,7 +1,7 @@
|
||||
|
@ -0,0 +1,914 @@
|
||||
From: Linus Lüssing <linus.luessing@c0d3.blue>
|
||||
Date: Sat, 1 Jan 2022 10:09:13 +0100
|
||||
Subject: kernel: bridge: Implement MLD Querier wake-up calls / Android bug workaround
|
||||
|
||||
Implement a configurable MLD Querier wake-up calls "feature" which
|
||||
works around a widely spread Android bug in connection with IGMP/MLD
|
||||
snooping.
|
||||
|
||||
Currently there are mobile devices (e.g. Android) which are not able
|
||||
to receive and respond to MLD Queries reliably because the Wifi driver
|
||||
filters a lot of ICMPv6 when the device is asleep - including
|
||||
MLD. This in turn breaks IPv6 communication when MLD Snooping is
|
||||
enabled. However there is one ICMPv6 type which is allowed to pass and
|
||||
which can be used to wake up the mobile device: ICMPv6 Echo Requests.
|
||||
|
||||
If this bridge is the selected MLD Querier then setting
|
||||
"multicast_wakeupcall" to a number n greater than 0 will send n
|
||||
ICMPv6 Echo Requests to each host behind this port to wake
|
||||
them up with each MLD Query. Upon receiving a matching ICMPv6 Echo
|
||||
Reply an MLD Query with a unicast ethernet destination will be sent
|
||||
to the specific host(s).
|
||||
|
||||
Link: https://issuetracker.google.com/issues/149630944
|
||||
Link: https://github.com/freifunk-gluon/gluon/issues/1832
|
||||
|
||||
Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
|
||||
|
||||
diff --git a/package/network/config/netifd/patches/0001-bridge-Add-multicast_wakeupcall-option.patch b/package/network/config/netifd/patches/0001-bridge-Add-multicast_wakeupcall-option.patch
|
||||
new file mode 100644
|
||||
index 0000000000000000000000000000000000000000..e3da684dc950ea4c226705d27b23b0470499d54b
|
||||
--- /dev/null
|
||||
+++ b/package/network/config/netifd/patches/0001-bridge-Add-multicast_wakeupcall-option.patch
|
||||
@@ -0,0 +1,176 @@
|
||||
+From 6db5050d9e046a486260ea23a77118db4f8a6672 Mon Sep 17 00:00:00 2001
|
||||
+From: =?UTF-8?q?Linus=20L=C3=BCssing?= <linus.luessing@c0d3.blue>
|
||||
+Date: Sun, 5 Jul 2020 23:33:51 +0200
|
||||
+Subject: [PATCH] bridge: Add multicast_wakeupcall option
|
||||
+MIME-Version: 1.0
|
||||
+Content-Type: text/plain; charset=UTF-8
|
||||
+Content-Transfer-Encoding: 8bit
|
||||
+
|
||||
+This makes the new per bridge port multicast_wakeupcall feature
|
||||
+for the Linux bridge configurable for wireless interfaces and enables it
|
||||
+by default for an AP interface.
|
||||
+
|
||||
+The MLD Querier wake-up calls "feature" works around a widely spread Android
|
||||
+bug in connection with IGMP/MLD snooping.
|
||||
+
|
||||
+Currently there are mobile devices (e.g. Android) which are not able
|
||||
+to receive and respond to MLD Queries reliably because the Wifi driver
|
||||
+filters a lot of ICMPv6 when the device is asleep - including
|
||||
+MLD. This in turn breaks IPv6 communication when MLD Snooping is
|
||||
+enabled. However there is one ICMPv6 type which is allowed to pass and
|
||||
+which can be used to wake up the mobile device: ICMPv6 Echo Requests.
|
||||
+
|
||||
+If this bridge is the selected MLD Querier then setting
|
||||
+"multicast_wakeupcall" to a number n greater than 0 will send n
|
||||
+ICMPv6 Echo Requests to each host behind this port to wake
|
||||
+them up with each MLD Query. Upon receiving a matching ICMPv6 Echo
|
||||
+Reply an MLD Query with a unicast ethernet destination will be sent
|
||||
+to the specific host(s).
|
||||
+
|
||||
+Link: https://issuetracker.google.com/issues/149630944
|
||||
+Link: https://github.com/freifunk-gluon/gluon/issues/1832
|
||||
+
|
||||
+Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
|
||||
+---
|
||||
+ device.c | 9 +++++++++
|
||||
+ device.h | 37 ++++++++++++++++++++-----------------
|
||||
+ system-linux.c | 13 +++++++++++++
|
||||
+ 3 files changed, 42 insertions(+), 17 deletions(-)
|
||||
+
|
||||
+--- a/device.c
|
||||
++++ b/device.c
|
||||
+@@ -47,6 +47,7 @@ static const struct blobmsg_policy dev_a
|
||||
+ [DEV_ATTR_NEIGHGCSTALETIME] = { .name = "neighgcstaletime", .type = BLOBMSG_TYPE_INT32 },
|
||||
+ [DEV_ATTR_DADTRANSMITS] = { .name = "dadtransmits", .type = BLOBMSG_TYPE_INT32 },
|
||||
+ [DEV_ATTR_MULTICAST_TO_UNICAST] = { .name = "multicast_to_unicast", .type = BLOBMSG_TYPE_BOOL },
|
||||
++ [DEV_ATTR_MULTICAST_WAKEUPCALL] = { .name = "multicast_wakeupcall", .type = BLOBMSG_TYPE_INT32 },
|
||||
+ [DEV_ATTR_MULTICAST_ROUTER] = { .name = "multicast_router", .type = BLOBMSG_TYPE_INT32 },
|
||||
+ [DEV_ATTR_MULTICAST_FAST_LEAVE] = { .name = "multicast_fast_leave", . type = BLOBMSG_TYPE_BOOL },
|
||||
+ [DEV_ATTR_MULTICAST] = { .name ="multicast", .type = BLOBMSG_TYPE_BOOL },
|
||||
+@@ -261,6 +262,7 @@ device_merge_settings(struct device *dev
|
||||
+ n->multicast = s->flags & DEV_OPT_MULTICAST ?
|
||||
+ s->multicast : os->multicast;
|
||||
+ n->multicast_to_unicast = s->multicast_to_unicast;
|
||||
++ n->multicast_wakeupcall = s->multicast_wakeupcall;
|
||||
+ n->multicast_router = s->multicast_router;
|
||||
+ n->multicast_fast_leave = s->multicast_fast_leave;
|
||||
+ n->learning = s->learning;
|
||||
+@@ -386,6 +388,11 @@ device_init_settings(struct device *dev,
|
||||
+ s->flags |= DEV_OPT_MULTICAST_TO_UNICAST;
|
||||
+ }
|
||||
+
|
||||
++ if ((cur = tb[DEV_ATTR_MULTICAST_WAKEUPCALL])) {
|
||||
++ s->multicast_wakeupcall = blobmsg_get_u32(cur);
|
||||
++ s->flags |= DEV_OPT_MULTICAST_WAKEUPCALL;
|
||||
++ }
|
||||
++
|
||||
+ if ((cur = tb[DEV_ATTR_MULTICAST_ROUTER])) {
|
||||
+ s->multicast_router = blobmsg_get_u32(cur);
|
||||
+ if (s->multicast_router <= 2)
|
||||
+@@ -1186,6 +1193,8 @@ device_dump_status(struct blob_buf *b, s
|
||||
+ blobmsg_add_u32(b, "dadtransmits", st.dadtransmits);
|
||||
+ if (st.flags & DEV_OPT_MULTICAST_TO_UNICAST)
|
||||
+ blobmsg_add_u8(b, "multicast_to_unicast", st.multicast_to_unicast);
|
||||
++ if (st.flags & DEV_OPT_MULTICAST_WAKEUPCALL)
|
||||
++ blobmsg_add_u32(b, "multicast_wakeupcall", st.multicast_wakeupcall);
|
||||
+ if (st.flags & DEV_OPT_MULTICAST_ROUTER)
|
||||
+ blobmsg_add_u32(b, "multicast_router", st.multicast_router);
|
||||
+ if (st.flags & DEV_OPT_MULTICAST_FAST_LEAVE)
|
||||
+--- a/device.h
|
||||
++++ b/device.h
|
||||
+@@ -44,6 +44,7 @@ enum {
|
||||
+ DEV_ATTR_NEIGHREACHABLETIME,
|
||||
+ DEV_ATTR_DADTRANSMITS,
|
||||
+ DEV_ATTR_MULTICAST_TO_UNICAST,
|
||||
++ DEV_ATTR_MULTICAST_WAKEUPCALL,
|
||||
+ DEV_ATTR_MULTICAST_ROUTER,
|
||||
+ DEV_ATTR_MULTICAST_FAST_LEAVE,
|
||||
+ DEV_ATTR_MULTICAST,
|
||||
+@@ -109,23 +110,24 @@ enum {
|
||||
+ DEV_OPT_MTU6 = (1ULL << 12),
|
||||
+ DEV_OPT_DADTRANSMITS = (1ULL << 13),
|
||||
+ DEV_OPT_MULTICAST_TO_UNICAST = (1ULL << 14),
|
||||
+- DEV_OPT_MULTICAST_ROUTER = (1ULL << 15),
|
||||
+- DEV_OPT_MULTICAST = (1ULL << 16),
|
||||
+- DEV_OPT_LEARNING = (1ULL << 17),
|
||||
+- DEV_OPT_UNICAST_FLOOD = (1ULL << 18),
|
||||
+- DEV_OPT_NEIGHGCSTALETIME = (1ULL << 19),
|
||||
+- DEV_OPT_MULTICAST_FAST_LEAVE = (1ULL << 20),
|
||||
+- DEV_OPT_SENDREDIRECTS = (1ULL << 21),
|
||||
+- DEV_OPT_NEIGHLOCKTIME = (1ULL << 22),
|
||||
+- DEV_OPT_ISOLATE = (1ULL << 23),
|
||||
+- DEV_OPT_IP6SEGMENTROUTING = (1ULL << 24),
|
||||
+- DEV_OPT_DROP_V4_UNICAST_IN_L2_MULTICAST = (1ULL << 25),
|
||||
+- DEV_OPT_DROP_V6_UNICAST_IN_L2_MULTICAST = (1ULL << 26),
|
||||
+- DEV_OPT_DROP_GRATUITOUS_ARP = (1ULL << 27),
|
||||
+- DEV_OPT_DROP_UNSOLICITED_NA = (1ULL << 28),
|
||||
+- DEV_OPT_ARP_ACCEPT = (1ULL << 29),
|
||||
+- DEV_OPT_SPEED = (1ULL << 30),
|
||||
+- DEV_OPT_DUPLEX = (1ULL << 31),
|
||||
++ DEV_OPT_MULTICAST_WAKEUPCALL = (1ULL << 15),
|
||||
++ DEV_OPT_MULTICAST_ROUTER = (1ULL << 16),
|
||||
++ DEV_OPT_MULTICAST = (1ULL << 17),
|
||||
++ DEV_OPT_LEARNING = (1ULL << 18),
|
||||
++ DEV_OPT_UNICAST_FLOOD = (1ULL << 19),
|
||||
++ DEV_OPT_NEIGHGCSTALETIME = (1ULL << 20),
|
||||
++ DEV_OPT_MULTICAST_FAST_LEAVE = (1ULL << 21),
|
||||
++ DEV_OPT_SENDREDIRECTS = (1ULL << 22),
|
||||
++ DEV_OPT_NEIGHLOCKTIME = (1ULL << 23),
|
||||
++ DEV_OPT_ISOLATE = (1ULL << 24),
|
||||
++ DEV_OPT_IP6SEGMENTROUTING = (1ULL << 25),
|
||||
++ DEV_OPT_DROP_V4_UNICAST_IN_L2_MULTICAST = (1ULL << 26),
|
||||
++ DEV_OPT_DROP_V6_UNICAST_IN_L2_MULTICAST = (1ULL << 27),
|
||||
++ DEV_OPT_DROP_GRATUITOUS_ARP = (1ULL << 28),
|
||||
++ DEV_OPT_DROP_UNSOLICITED_NA = (1ULL << 29),
|
||||
++ DEV_OPT_ARP_ACCEPT = (1ULL << 30),
|
||||
++ DEV_OPT_SPEED = (1ULL << 31),
|
||||
++ DEV_OPT_DUPLEX = (1ULL << 32),
|
||||
+ };
|
||||
+
|
||||
+ /* events broadcasted to all users of a device */
|
||||
+@@ -187,6 +189,7 @@ struct device_settings {
|
||||
+ int neigh4locktime;
|
||||
+ unsigned int dadtransmits;
|
||||
+ bool multicast_to_unicast;
|
||||
++ unsigned int multicast_wakeupcall;
|
||||
+ unsigned int multicast_router;
|
||||
+ bool multicast_fast_leave;
|
||||
+ bool multicast;
|
||||
+--- a/system-linux.c
|
||||
++++ b/system-linux.c
|
||||
+@@ -465,6 +465,11 @@ static void system_bridge_set_multicast_
|
||||
+ system_set_dev_sysfs("brport/multicast_to_unicast", dev->ifname, val);
|
||||
+ }
|
||||
+
|
||||
++static void system_bridge_set_multicast_wakeupcall(struct device *dev, const char *val)
|
||||
++{
|
||||
++ system_set_dev_sysfs("brport/multicast_wakeupcall", dev->ifname, val);
|
||||
++}
|
||||
++
|
||||
+ static void system_bridge_set_multicast_fast_leave(struct device *dev, const char *val)
|
||||
+ {
|
||||
+ system_set_dev_sysfs("brport/multicast_fast_leave", dev->ifname, val);
|
||||
+@@ -844,8 +849,10 @@ static char *system_get_bridge(const cha
|
||||
+ static void
|
||||
+ system_bridge_set_wireless(struct device *bridge, struct device *dev)
|
||||
+ {
|
||||
++ unsigned int mcast_wakeupcall = dev->wireless_ap ? 2 : 0;
|
||||
+ bool mcast_to_ucast = dev->wireless_ap;
|
||||
+ bool hairpin;
|
||||
++ char buf[64];
|
||||
+
|
||||
+ if (bridge->settings.flags & DEV_OPT_MULTICAST_TO_UNICAST &&
|
||||
+ !bridge->settings.multicast_to_unicast)
|
||||
+@@ -858,6 +865,12 @@ system_bridge_set_wireless(struct device
|
||||
+ system_bridge_set_multicast_to_unicast(dev, mcast_to_ucast ? "1" : "0");
|
||||
+ system_bridge_set_hairpin_mode(dev, hairpin ? "1" : "0");
|
||||
+ system_bridge_set_proxyarp_wifi(dev, dev->wireless_proxyarp ? "1" : "0");
|
||||
++
|
||||
++ if (bridge->settings.flags & DEV_OPT_MULTICAST_WAKEUPCALL)
|
||||
++ mcast_wakeupcall = dev->settings.multicast_wakeupcall;
|
||||
++
|
||||
++ snprintf(buf, sizeof(buf), "%u", mcast_wakeupcall);
|
||||
++ system_bridge_set_multicast_wakeupcall(dev, buf);
|
||||
+ }
|
||||
+
|
||||
+ int system_bridge_addif(struct device *bridge, struct device *dev)
|
||||
diff --git a/target/linux/generic/config-5.10 b/target/linux/generic/config-5.10
|
||||
index a348d4821ecef796c8c2b983a969b7becb7ae334..dad7baabe69f53ca9afeff8e9392397dd9dc35aa 100644
|
||||
--- a/target/linux/generic/config-5.10
|
||||
+++ b/target/linux/generic/config-5.10
|
||||
@@ -738,6 +738,7 @@ CONFIG_BRIDGE=y
|
||||
# CONFIG_BRIDGE_EBT_T_NAT is not set
|
||||
# CONFIG_BRIDGE_EBT_VLAN is not set
|
||||
CONFIG_BRIDGE_IGMP_SNOOPING=y
|
||||
+CONFIG_BRIDGE_IGMP_SNOOPING_WAKEUPCALLS=y
|
||||
# CONFIG_BRIDGE_MRP is not set
|
||||
# CONFIG_BRIDGE_NETFILTER is not set
|
||||
# CONFIG_BRIDGE_NF_EBTABLES is not set
|
||||
diff --git a/target/linux/generic/hack-5.10/601-bridge-Implement-MLD-Querier-wake-up-calls-Android-b.patch b/target/linux/generic/hack-5.10/601-bridge-Implement-MLD-Querier-wake-up-calls-Android-b.patch
|
||||
new file mode 100644
|
||||
index 0000000000000000000000000000000000000000..17df35fe4a812b5b5118beb9239bf825be7b67ed
|
||||
--- /dev/null
|
||||
+++ b/target/linux/generic/hack-5.10/601-bridge-Implement-MLD-Querier-wake-up-calls-Android-b.patch
|
||||
@@ -0,0 +1,687 @@
|
||||
+From e0fd3ecf9b4f6825ad0380b759baf88ef508bed5 Mon Sep 17 00:00:00 2001
|
||||
+From: =?UTF-8?q?Linus=20L=C3=BCssing?= <linus.luessing@c0d3.blue>
|
||||
+Date: Mon, 29 Jun 2020 19:04:05 +0200
|
||||
+Subject: [PATCH] bridge: Implement MLD Querier wake-up calls / Android bug
|
||||
+ workaround
|
||||
+MIME-Version: 1.0
|
||||
+Content-Type: text/plain; charset=UTF-8
|
||||
+Content-Transfer-Encoding: 8bit
|
||||
+
|
||||
+Implement a configurable MLD Querier wake-up calls "feature" which
|
||||
+works around a widely spread Android bug in connection with IGMP/MLD
|
||||
+snooping.
|
||||
+
|
||||
+Currently there are mobile devices (e.g. Android) which are not able
|
||||
+to receive and respond to MLD Queries reliably because the Wifi driver
|
||||
+filters a lot of ICMPv6 when the device is asleep - including
|
||||
+MLD. This in turn breaks IPv6 communication when MLD Snooping is
|
||||
+enabled. However there is one ICMPv6 type which is allowed to pass and
|
||||
+which can be used to wake up the mobile device: ICMPv6 Echo Requests.
|
||||
+
|
||||
+If this bridge is the selected MLD Querier then setting
|
||||
+"multicast_wakeupcall" to a number n greater than 0 will send n
|
||||
+ICMPv6 Echo Requests to each host behind this port to wake
|
||||
+them up with each MLD Query. Upon receiving a matching ICMPv6 Echo
|
||||
+Reply an MLD Query with a unicast ethernet destination will be sent
|
||||
+to the specific host(s).
|
||||
+
|
||||
+Link: https://issuetracker.google.com/issues/149630944
|
||||
+Link: https://github.com/freifunk-gluon/gluon/issues/1832
|
||||
+
|
||||
+Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
|
||||
+---
|
||||
+ include/linux/if_bridge.h | 1 +
|
||||
+ include/net/addrconf.h | 1 +
|
||||
+ include/uapi/linux/if_link.h | 1 +
|
||||
+ net/bridge/Kconfig | 26 ++++
|
||||
+ net/bridge/br_fdb.c | 10 ++
|
||||
+ net/bridge/br_input.c | 4 +-
|
||||
+ net/bridge/br_multicast.c | 289 ++++++++++++++++++++++++++++++++++-
|
||||
+ net/bridge/br_netlink.c | 19 +++
|
||||
+ net/bridge/br_private.h | 19 +++
|
||||
+ net/bridge/br_sysfs_if.c | 18 +++
|
||||
+ net/core/rtnetlink.c | 2 +-
|
||||
+ net/ipv6/mcast_snoop.c | 3 +-
|
||||
+ 12 files changed, 383 insertions(+), 10 deletions(-)
|
||||
+
|
||||
+diff --git a/include/linux/if_bridge.h b/include/linux/if_bridge.h
|
||||
+index ea1c7d151f46..d7714f60b88a 100644
|
||||
+--- a/include/linux/if_bridge.h
|
||||
++++ b/include/linux/if_bridge.h
|
||||
+@@ -58,6 +58,7 @@ struct br_ip_list {
|
||||
+ #define BR_MRP_LOST_IN_CONT BIT(19)
|
||||
+ #define BR_BPDU_FILTER BIT(20)
|
||||
+ #define BR_OFFLOAD BIT(21)
|
||||
++#define BR_MULTICAST_WAKEUPCALL BIT(22)
|
||||
+
|
||||
+ #define BR_DEFAULT_AGEING_TIME (300 * HZ)
|
||||
+
|
||||
+diff --git a/include/net/addrconf.h b/include/net/addrconf.h
|
||||
+index e7ce719838b5..af8f153e1b5f 100644
|
||||
+--- a/include/net/addrconf.h
|
||||
++++ b/include/net/addrconf.h
|
||||
+@@ -235,6 +235,7 @@ void ipv6_mc_unmap(struct inet6_dev *idev);
|
||||
+ void ipv6_mc_remap(struct inet6_dev *idev);
|
||||
+ void ipv6_mc_init_dev(struct inet6_dev *idev);
|
||||
+ void ipv6_mc_destroy_dev(struct inet6_dev *idev);
|
||||
++int ipv6_mc_check_icmpv6(struct sk_buff *skb);
|
||||
+ int ipv6_mc_check_mld(struct sk_buff *skb);
|
||||
+ void addrconf_dad_failure(struct sk_buff *skb, struct inet6_ifaddr *ifp);
|
||||
+
|
||||
+diff --git a/include/uapi/linux/if_link.h b/include/uapi/linux/if_link.h
|
||||
+index ffeb05c061d2..1956ab99e97d 100644
|
||||
+--- a/include/uapi/linux/if_link.h
|
||||
++++ b/include/uapi/linux/if_link.h
|
||||
+@@ -525,6 +525,7 @@ enum {
|
||||
+ IFLA_BRPORT_MRP_RING_OPEN,
|
||||
+ IFLA_BRPORT_MRP_IN_OPEN,
|
||||
+ IFLA_BRPORT_BPDU_FILTER,
|
||||
++ IFLA_BRPORT_MCAST_WAKEUPCALL,
|
||||
+ __IFLA_BRPORT_MAX
|
||||
+ };
|
||||
+ #define IFLA_BRPORT_MAX (__IFLA_BRPORT_MAX - 1)
|
||||
+diff --git a/net/bridge/Kconfig b/net/bridge/Kconfig
|
||||
+index 80879196560c..056e80bf00c4 100644
|
||||
+--- a/net/bridge/Kconfig
|
||||
++++ b/net/bridge/Kconfig
|
||||
+@@ -48,6 +48,32 @@ config BRIDGE_IGMP_SNOOPING
|
||||
+
|
||||
+ If unsure, say Y.
|
||||
+
|
||||
++config BRIDGE_IGMP_SNOOPING_WAKEUPCALLS
|
||||
++ bool "MLD Querier wake-up calls"
|
||||
++ depends on BRIDGE_IGMP_SNOOPING
|
||||
++ depends on IPV6
|
||||
++ help
|
||||
++ If you say Y here, then the MLD Snooping Querier will be built
|
||||
++ with a per bridge port wake-up call "feature"/workaround.
|
||||
++
|
||||
++ Currently there are mobile devices (e.g. Android) which are not able
|
||||
++ to receive and respond to MLD Queries reliably because the Wifi driver
|
||||
++ filters a lot of ICMPv6 when the device is asleep - including MLD.
|
||||
++ This in turn breaks IPv6 communication when MLD Snooping is enabled.
|
||||
++ However there is one ICMPv6 type which is allowed to pass and
|
||||
++ which can be used to wake up the mobile device: ICMPv6 Echo Requests.
|
||||
++
|
||||
++ If this bridge is the selected MLD Querier then setting
|
||||
++ "multicast_wakeupcall" to a number n greater than 0 will send n
|
||||
++ ICMPv6 Echo Requests to each host behind this port to wake them up
|
||||
++ with each MLD Query. Upon receiving a matching ICMPv6 Echo Reply
|
||||
++ an MLD Query with a unicast ethernet destination will be sent to the
|
||||
++ specific host(s).
|
||||
++
|
||||
++ Say N to exclude this support and reduce the binary size.
|
||||
++
|
||||
++ If unsure, say N.
|
||||
++
|
||||
+ config BRIDGE_VLAN_FILTERING
|
||||
+ bool "VLAN filtering"
|
||||
+ depends on BRIDGE
|
||||
+diff --git a/net/bridge/br_fdb.c b/net/bridge/br_fdb.c
|
||||
+index bc6c8d5cd1e1..98ca86b7ca42 100644
|
||||
+--- a/net/bridge/br_fdb.c
|
||||
++++ b/net/bridge/br_fdb.c
|
||||
+@@ -85,6 +85,10 @@ static void fdb_rcu_free(struct rcu_head *head)
|
||||
+ {
|
||||
+ struct net_bridge_fdb_entry *ent
|
||||
+ = container_of(head, struct net_bridge_fdb_entry, rcu);
|
||||
++
|
||||
++#ifdef CONFIG_BRIDGE_IGMP_SNOOPING_WAKEUPCALLS
|
||||
++ del_timer_sync(&ent->wakeupcall_timer);
|
||||
++#endif
|
||||
+ kmem_cache_free(br_fdb_cache, ent);
|
||||
+ }
|
||||
+
|
||||
+@@ -516,6 +520,12 @@ static struct net_bridge_fdb_entry *fdb_create(struct net_bridge *br,
|
||||
+ fdb->updated = fdb->used = jiffies;
|
||||
+ INIT_HLIST_HEAD(&fdb->offload_in);
|
||||
+ INIT_HLIST_HEAD(&fdb->offload_out);
|
||||
++
|
||||
++#ifdef CONFIG_BRIDGE_IGMP_SNOOPING_WAKEUPCALLS
|
||||
++ timer_setup(&fdb->wakeupcall_timer,
|
||||
++ br_multicast_send_wakeupcall, 0);
|
||||
++#endif
|
||||
++
|
||||
+ if (rhashtable_lookup_insert_fast(&br->fdb_hash_tbl,
|
||||
+ &fdb->rhnode,
|
||||
+ br_fdb_rht_params)) {
|
||||
+diff --git a/net/bridge/br_input.c b/net/bridge/br_input.c
|
||||
+index 64f3eaa3879d..a449a1f60f1b 100644
|
||||
+--- a/net/bridge/br_input.c
|
||||
++++ b/net/bridge/br_input.c
|
||||
+@@ -163,8 +163,10 @@ int br_handle_frame_finish(struct net *net, struct sock *sk, struct sk_buff *skb
|
||||
+ if (dst) {
|
||||
+ unsigned long now = jiffies;
|
||||
+
|
||||
+- if (test_bit(BR_FDB_LOCAL, &dst->flags))
|
||||
++ if (test_bit(BR_FDB_LOCAL, &dst->flags)) {
|
||||
++ br_multicast_wakeupcall_rcv(br, p, skb, vid);
|
||||
+ return br_pass_frame_up(skb);
|
||||
++ }
|
||||
+
|
||||
+ if (now != dst->used)
|
||||
+ dst->used = now;
|
||||
+diff --git a/net/bridge/br_multicast.c b/net/bridge/br_multicast.c
|
||||
+index e5328a2777ec..a2f45bd523ab 100644
|
||||
+--- a/net/bridge/br_multicast.c
|
||||
++++ b/net/bridge/br_multicast.c
|
||||
+@@ -833,15 +833,16 @@ static struct sk_buff *br_ip6_multicast_alloc_query(struct net_bridge *br,
|
||||
+ const struct in6_addr *group,
|
||||
+ bool with_srcs, bool over_llqt,
|
||||
+ u8 sflag, u8 *igmp_type,
|
||||
+- bool *need_rexmit)
|
||||
++ bool *need_rexmit,
|
||||
++ bool delay)
|
||||
+ {
|
||||
+ struct net_bridge_port *p = pg ? pg->key.port : NULL;
|
||||
+ struct net_bridge_group_src *ent;
|
||||
+ size_t pkt_size, mld_hdr_size;
|
||||
+ unsigned long now = jiffies;
|
||||
++ unsigned long interval = 0;
|
||||
+ struct mld2_query *mld2q;
|
||||
+ void *csum_start = NULL;
|
||||
+- unsigned long interval;
|
||||
+ __sum16 *csum = NULL;
|
||||
+ struct ipv6hdr *ip6h;
|
||||
+ struct mld_msg *mldq;
|
||||
+@@ -922,9 +923,13 @@ static struct sk_buff *br_ip6_multicast_alloc_query(struct net_bridge *br,
|
||||
+
|
||||
+ /* ICMPv6 */
|
||||
+ skb_set_transport_header(skb, skb->len);
|
||||
+- interval = ipv6_addr_any(group) ?
|
||||
+- br->multicast_query_response_interval :
|
||||
+- br->multicast_last_member_interval;
|
||||
++ if (delay) {
|
||||
++ interval = ipv6_addr_any(group) ?
|
||||
++ br->multicast_query_response_interval :
|
||||
++ br->multicast_last_member_interval;
|
||||
++ interval = jiffies_to_msecs(interval);
|
||||
++ }
|
||||
++
|
||||
+ *igmp_type = ICMPV6_MGM_QUERY;
|
||||
+ switch (br->multicast_mld_version) {
|
||||
+ case 1:
|
||||
+@@ -932,7 +937,7 @@ static struct sk_buff *br_ip6_multicast_alloc_query(struct net_bridge *br,
|
||||
+ mldq->mld_type = ICMPV6_MGM_QUERY;
|
||||
+ mldq->mld_code = 0;
|
||||
+ mldq->mld_cksum = 0;
|
||||
+- mldq->mld_maxdelay = htons((u16)jiffies_to_msecs(interval));
|
||||
++ mldq->mld_maxdelay = htons((u16)interval);
|
||||
+ mldq->mld_reserved = 0;
|
||||
+ mldq->mld_mca = *group;
|
||||
+ csum = &mldq->mld_cksum;
|
||||
+@@ -1022,7 +1027,7 @@ static struct sk_buff *br_multicast_alloc_query(struct net_bridge *br,
|
||||
+ &ip6_dst, &group->dst.ip6,
|
||||
+ with_srcs, over_lmqt,
|
||||
+ sflag, igmp_type,
|
||||
+- need_rexmit);
|
||||
++ need_rexmit, true);
|
||||
+ }
|
||||
+ #endif
|
||||
+ }
|
||||
+@@ -1427,6 +1432,168 @@ static void br_multicast_select_own_querier(struct net_bridge *br,
|
||||
+ #endif
|
||||
+ }
|
||||
+
|
||||
++#ifdef CONFIG_BRIDGE_IGMP_SNOOPING_WAKEUPCALLS
|
||||
++
|
||||
++#define BR_MC_WAKEUP_ID htons(0xEC6B) /* random identifier */
|
||||
++#define BR_MC_ETH_ZERO { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }
|
||||
++#define BR_MC_IN6_ZERO \
|
||||
++{ \
|
||||
++ .s6_addr32[0] = 0, .s6_addr32[1] = 0, \
|
||||
++ .s6_addr32[2] = 0, .s6_addr32[3] = 0, \
|
||||
++}
|
||||
++
|
||||
++#define BR_MC_IN6_FE80 \
|
||||
++{ \
|
||||
++ .s6_addr32[0] = htonl(0xfe800000), \
|
||||
++ .s6_addr32[1] = 0, \
|
||||
++ .s6_addr32[2] = htonl(0x000000ff), \
|
||||
++ .s6_addr32[3] = htonl(0xfe000000), \
|
||||
++}
|
||||
++
|
||||
++#define BR_MC_ECHO_LEN sizeof(pkt->echohdr)
|
||||
++
|
||||
++static struct sk_buff *br_multicast_alloc_wakeupcall(struct net_bridge *br,
|
||||
++ struct net_bridge_port *port,
|
||||
++ u8 *eth_dst)
|
||||
++{
|
||||
++ struct in6_addr ip6_src, ip6_dst = BR_MC_IN6_FE80;
|
||||
++ struct sk_buff *skb;
|
||||
++ __wsum csum_part;
|
||||
++ __sum16 csum;
|
||||
++
|
||||
++ struct wakeupcall_pkt {
|
||||
++ struct ethhdr ethhdr;
|
||||
++ struct ipv6hdr ip6hdr;
|
||||
++ struct icmp6hdr echohdr;
|
||||
++ } __packed;
|
||||
++
|
||||
++ struct wakeupcall_pkt *pkt;
|
||||
++
|
||||
++ static const struct wakeupcall_pkt __pkt_template = {
|
||||
++ .ethhdr = {
|
||||
++ .h_dest = BR_MC_ETH_ZERO, // update
|
||||
++ .h_source = BR_MC_ETH_ZERO, // update
|
||||
++ .h_proto = htons(ETH_P_IPV6),
|
||||
++ },
|
||||
++ .ip6hdr = {
|
||||
++ .priority = 0,
|
||||
++ .version = 0x6,
|
||||
++ .flow_lbl = { 0x00, 0x00, 0x00 },
|
||||
++ .payload_len = htons(BR_MC_ECHO_LEN),
|
||||
++ .nexthdr = IPPROTO_ICMPV6,
|
||||
++ .hop_limit = 1,
|
||||
++ .saddr = BR_MC_IN6_ZERO, // update
|
||||
++ .daddr = BR_MC_IN6_ZERO, // update
|
||||
++ },
|
||||
++ .echohdr = {
|
||||
++ .icmp6_type = ICMPV6_ECHO_REQUEST,
|
||||
++ .icmp6_code = 0,
|
||||
++ .icmp6_cksum = 0, // update
|
||||
++ .icmp6_dataun.u_echo = {
|
||||
++ .identifier = BR_MC_WAKEUP_ID,
|
||||
++ .sequence = 0,
|
||||
++ },
|
||||
++ },
|
||||
++ };
|
||||
++
|
||||
++ memcpy(&ip6_dst.s6_addr32[2], ð_dst[0], ETH_ALEN / 2);
|
||||
++ memcpy(&ip6_dst.s6_addr[13], ð_dst[3], ETH_ALEN / 2);
|
||||
++ ip6_dst.s6_addr[8] ^= 0x02;
|
||||
++ if (ipv6_dev_get_saddr(dev_net(br->dev), br->dev, &ip6_dst, 0,
|
||||
++ &ip6_src))
|
||||
++ return NULL;
|
||||
++
|
||||
++ skb = netdev_alloc_skb_ip_align(br->dev, sizeof(*pkt));
|
||||
++ if (!skb)
|
||||
++ return NULL;
|
||||
++
|
||||
++ skb->protocol = htons(ETH_P_IPV6);
|
||||
++ skb->dev = port->dev;
|
||||
++
|
||||
++ pkt = (struct wakeupcall_pkt *)skb->data;
|
||||
++ *pkt = __pkt_template;
|
||||
++
|
||||
++ ether_addr_copy(pkt->ethhdr.h_source, br->dev->dev_addr);
|
||||
++ ether_addr_copy(pkt->ethhdr.h_dest, eth_dst);
|
||||
++
|
||||
++ pkt->ip6hdr.saddr = ip6_src;
|
||||
++ pkt->ip6hdr.daddr = ip6_dst;
|
||||
++
|
||||
++ csum_part = csum_partial(&pkt->echohdr, sizeof(pkt->echohdr), 0);
|
||||
++ csum = csum_ipv6_magic(&ip6_src, &ip6_dst, sizeof(pkt->echohdr),
|
||||
++ IPPROTO_ICMPV6, csum_part);
|
||||
++ pkt->echohdr.icmp6_cksum = csum;
|
||||
++
|
||||
++ skb_reset_mac_header(skb);
|
||||
++ skb_set_network_header(skb, offsetof(struct wakeupcall_pkt, ip6hdr));
|
||||
++ skb_set_transport_header(skb, offsetof(struct wakeupcall_pkt, echohdr));
|
||||
++ skb_put(skb, sizeof(*pkt));
|
||||
++ __skb_pull(skb, sizeof(pkt->ethhdr));
|
||||
++
|
||||
++ return skb;
|
||||
++}
|
||||
++
|
||||
++void br_multicast_send_wakeupcall(struct timer_list *t)
|
||||
++{
|
||||
++ struct net_bridge_fdb_entry *fdb = from_timer(fdb, t, wakeupcall_timer);
|
||||
++ struct net_bridge_port *port = fdb->dst;
|
||||
++ struct net_bridge *br = port->br;
|
||||
++ struct sk_buff *skb, *skb0;
|
||||
++ int i;
|
||||
++
|
||||
++ skb0 = br_multicast_alloc_wakeupcall(br, port, fdb->key.addr.addr);
|
||||
++ if (!skb0)
|
||||
++ return;
|
||||
++
|
||||
++ for (i = port->wakeupcall_num_rings; i > 0; i--) {
|
||||
++ if (i > 1) {
|
||||
++ skb = skb_clone(skb0, GFP_ATOMIC);
|
||||
++ if (!skb) {
|
||||
++ kfree_skb(skb0);
|
||||
++ break;
|
||||
++ }
|
||||
++ } else {
|
||||
++ skb = skb0;
|
||||
++ }
|
||||
++
|
||||
++ NF_HOOK(NFPROTO_BRIDGE, NF_BR_LOCAL_OUT,
|
||||
++ dev_net(port->dev), NULL, skb, NULL, skb->dev,
|
||||
++ br_dev_queue_push_xmit);
|
||||
++ }
|
||||
++}
|
||||
++
|
||||
++static void br_multicast_schedule_wakeupcalls(struct net_bridge *br,
|
||||
++ struct net_bridge_port *port,
|
||||
++ const struct in6_addr *group)
|
||||
++{
|
||||
++ struct net_bridge_fdb_entry *fdb;
|
||||
++ unsigned long delay;
|
||||
++
|
||||
++ rcu_read_lock();
|
||||
++ hlist_for_each_entry_rcu(fdb, &br->fdb_list, fdb_node) {
|
||||
++ if (!fdb->dst || fdb->dst->dev != port->dev)
|
||||
++ continue;
|
||||
++
|
||||
++ /* Wake-up calls to VLANs unsupported for now */
|
||||
++ if (fdb->key.vlan_id)
|
||||
++ continue;
|
||||
++
|
||||
++ /* Spread the ICMPv6 Echo Requests to avoid congestion.
|
||||
++ * We then won't use a max response delay for the queries later,
|
||||
++ * as that would be redundant. Spread randomly by a little less
|
||||
++ * than max response delay to anticipate the extra round trip.
|
||||
++ */
|
||||
++ delay = ipv6_addr_any(group) ?
|
||||
++ br->multicast_query_response_interval :
|
||||
++ br->multicast_last_member_interval;
|
||||
++ delay = prandom_u32() % (3 * delay / 4);
|
||||
++
|
||||
++ timer_reduce(&fdb->wakeupcall_timer, jiffies + delay);
|
||||
++ }
|
||||
++ rcu_read_unlock();
|
||||
++}
|
||||
++#endif /* CONFIG_BRIDGE_IGMP_SNOOPING_WAKEUPCALLS */
|
||||
++
|
||||
+ static void __br_multicast_send_query(struct net_bridge *br,
|
||||
+ struct net_bridge_port *port,
|
||||
+ struct net_bridge_port_group *pg,
|
||||
+@@ -1455,6 +1622,13 @@ static void __br_multicast_send_query(struct net_bridge *br,
|
||||
+ dev_net(port->dev), NULL, skb, NULL, skb->dev,
|
||||
+ br_dev_queue_push_xmit);
|
||||
+
|
||||
++#ifdef CONFIG_BRIDGE_IGMP_SNOOPING_WAKEUPCALLS
|
||||
++ if (port->wakeupcall_num_rings &&
|
||||
++ group->proto == htons(ETH_P_IPV6))
|
||||
++ br_multicast_schedule_wakeupcalls(br, port,
|
||||
++ &group->dst.ip6);
|
||||
++#endif
|
||||
++
|
||||
+ if (over_lmqt && with_srcs && sflag) {
|
||||
+ over_lmqt = false;
|
||||
+ goto again_under_lmqt;
|
||||
+@@ -3164,6 +3338,98 @@ int br_multicast_rcv(struct net_bridge *br, struct net_bridge_port *port,
|
||||
+ return ret;
|
||||
+ }
|
||||
+
|
||||
++#ifdef CONFIG_BRIDGE_IGMP_SNOOPING_WAKEUPCALLS
|
||||
++
|
||||
++static bool br_multicast_wakeupcall_check(struct net_bridge *br,
|
||||
++ struct net_bridge_port *port,
|
||||
++ struct sk_buff *skb, u16 vid)
|
||||
++{
|
||||
++ struct ethhdr *eth = eth_hdr(skb);
|
||||
++ const struct ipv6hdr *ip6h;
|
||||
++ unsigned int offset, len;
|
||||
++ struct icmp6hdr *icmp6h;
|
||||
++
|
||||
++ /* Wake-up calls to VLANs unsupported for now */
|
||||
++ if (!port->wakeupcall_num_rings || vid ||
|
||||
++ eth->h_proto != htons(ETH_P_IPV6))
|
||||
++ return false;
|
||||
++
|
||||
++ if (!ether_addr_equal(eth->h_dest, br->dev->dev_addr) ||
|
||||
++ is_multicast_ether_addr(eth->h_source) ||
|
||||
++ is_zero_ether_addr(eth->h_source))
|
||||
++ return false;
|
||||
++
|
||||
++ offset = skb_network_offset(skb) + sizeof(*ip6h);
|
||||
++ if (!pskb_may_pull(skb, offset))
|
||||
++ return false;
|
||||
++
|
||||
++ ip6h = ipv6_hdr(skb);
|
||||
++
|
||||
++ if (ip6h->version != 6)
|
||||
++ return false;
|
||||
++
|
||||
++ len = offset + ntohs(ip6h->payload_len);
|
||||
++ if (skb->len < len || len <= offset)
|
||||
++ return false;
|
||||
++
|
||||
++ if (ip6h->nexthdr != IPPROTO_ICMPV6)
|
||||
++ return false;
|
||||
++
|
||||
++ skb_set_transport_header(skb, offset);
|
||||
++
|
||||
++ if (ipv6_mc_check_icmpv6(skb) < 0)
|
||||
++ return false;
|
||||
++
|
||||
++ icmp6h = (struct icmp6hdr *)skb_transport_header(skb);
|
||||
++ if (icmp6h->icmp6_type != ICMPV6_ECHO_REPLY ||
|
||||
++ icmp6h->icmp6_dataun.u_echo.identifier != BR_MC_WAKEUP_ID)
|
||||
++ return false;
|
||||
++
|
||||
++ return true;
|
||||
++}
|
||||
++
|
||||
++static void br_multicast_wakeupcall_send_mldq(struct net_bridge *br,
|
||||
++ struct net_bridge_port *port,
|
||||
++ const u8 *eth_dst)
|
||||
++{
|
||||
++ const struct in6_addr group = BR_MC_IN6_ZERO;
|
||||
++ struct in6_addr ip6_dst;
|
||||
++ struct sk_buff *skb;
|
||||
++ u8 igmp_type;
|
||||
++
|
||||
++ /* we might have been triggered by multicast-address-specific query
|
||||
++ * but reply with a general MLD query for now to keep things simple
|
||||
++ */
|
||||
++ ipv6_addr_set(&ip6_dst, htonl(0xff020000), 0, 0, htonl(1));
|
||||
++
|
||||
++ skb = br_ip6_multicast_alloc_query(br, NULL, &ip6_dst, &group, false,
|
||||
++ false, false, &igmp_type, NULL,
|
||||
++ false);
|
||||
++ if (!skb)
|
||||
++ return;
|
||||
++
|
||||
++ skb->dev = port->dev;
|
||||
++ ether_addr_copy(eth_hdr(skb)->h_dest, eth_dst);
|
||||
++
|
||||
++ br_multicast_count(br, port, skb, igmp_type,
|
||||
++ BR_MCAST_DIR_TX);
|
||||
++ NF_HOOK(NFPROTO_BRIDGE, NF_BR_LOCAL_OUT,
|
||||
++ dev_net(port->dev), NULL, skb, NULL, skb->dev,
|
||||
++ br_dev_queue_push_xmit);
|
||||
++}
|
||||
++
|
||||
++void br_multicast_wakeupcall_rcv(struct net_bridge *br,
|
||||
++ struct net_bridge_port *port,
|
||||
++ struct sk_buff *skb, u16 vid)
|
||||
++{
|
||||
++ if (!br_multicast_wakeupcall_check(br, port, skb, vid))
|
||||
++ return;
|
||||
++
|
||||
++ br_multicast_wakeupcall_send_mldq(br, port, eth_hdr(skb)->h_source);
|
||||
++}
|
||||
++
|
||||
++#endif /* CONFIG_BRIDGE_IGMP_SNOOPING_WAKEUPCALLS */
|
||||
++
|
||||
+ static void br_multicast_query_expired(struct net_bridge *br,
|
||||
+ struct bridge_mcast_own_query *query,
|
||||
+ struct bridge_mcast_querier *querier)
|
||||
+@@ -3444,6 +3710,15 @@ int br_multicast_set_port_router(struct net_bridge_port *p, unsigned long val)
|
||||
+ return err;
|
||||
+ }
|
||||
+
|
||||
++int br_multicast_set_wakeupcall(struct net_bridge_port *p, unsigned long val)
|
||||
++{
|
||||
++ if (val > U8_MAX)
|
||||
++ return -EINVAL;
|
||||
++
|
||||
++ p->wakeupcall_num_rings = val;
|
||||
++ return 0;
|
||||
++}
|
||||
++
|
||||
+ static void br_multicast_start_querier(struct net_bridge *br,
|
||||
+ struct bridge_mcast_own_query *query)
|
||||
+ {
|
||||
+diff --git a/net/bridge/br_netlink.c b/net/bridge/br_netlink.c
|
||||
+index e8116a4438b9..b544889fb7fe 100644
|
||||
+--- a/net/bridge/br_netlink.c
|
||||
++++ b/net/bridge/br_netlink.c
|
||||
+@@ -151,6 +151,9 @@ static inline size_t br_port_info_size(void)
|
||||
+ + nla_total_size_64bit(sizeof(u64)) /* IFLA_BRPORT_HOLD_TIMER */
|
||||
+ #ifdef CONFIG_BRIDGE_IGMP_SNOOPING
|
||||
+ + nla_total_size(sizeof(u8)) /* IFLA_BRPORT_MULTICAST_ROUTER */
|
||||
++#endif
|
||||
++#ifdef CONFIG_BRIDGE_IGMP_SNOOPING_WAKEUPCALLS
|
||||
++ + nla_total_size(sizeof(u8)) /* IFLA_BRPORT_MCAST_WAKEUPCALL */
|
||||
+ #endif
|
||||
+ + nla_total_size(sizeof(u16)) /* IFLA_BRPORT_GROUP_FWD_MASK */
|
||||
+ + nla_total_size(sizeof(u8)) /* IFLA_BRPORT_MRP_RING_OPEN */
|
||||
+@@ -243,6 +246,11 @@ static int br_port_fill_attrs(struct sk_buff *skb,
|
||||
+ p->multicast_router))
|
||||
+ return -EMSGSIZE;
|
||||
+ #endif
|
||||
++#ifdef CONFIG_BRIDGE_IGMP_SNOOPING_WAKEUPCALLS
|
||||
++ if (nla_put_u8(skb, IFLA_BRPORT_MCAST_WAKEUPCALL,
|
||||
++ p->wakeupcall_num_rings))
|
||||
++ return -EMSGSIZE;
|
||||
++#endif
|
||||
+
|
||||
+ /* we might be called only with br->lock */
|
||||
+ rcu_read_lock();
|
||||
+@@ -723,6 +731,7 @@ static const struct nla_policy br_port_policy[IFLA_BRPORT_MAX + 1] = {
|
||||
+ [IFLA_BRPORT_PROXYARP_WIFI] = { .type = NLA_U8 },
|
||||
+ [IFLA_BRPORT_MULTICAST_ROUTER] = { .type = NLA_U8 },
|
||||
+ [IFLA_BRPORT_MCAST_TO_UCAST] = { .type = NLA_U8 },
|
||||
++ [IFLA_BRPORT_MCAST_WAKEUPCALL] = { .type = NLA_U8 },
|
||||
+ [IFLA_BRPORT_MCAST_FLOOD] = { .type = NLA_U8 },
|
||||
+ [IFLA_BRPORT_BCAST_FLOOD] = { .type = NLA_U8 },
|
||||
+ [IFLA_BRPORT_VLAN_TUNNEL] = { .type = NLA_U8 },
|
||||
+@@ -872,6 +881,16 @@ static int br_setport(struct net_bridge_port *p, struct nlattr *tb[])
|
||||
+ }
|
||||
+ #endif
|
||||
+
|
||||
++#ifdef CONFIG_BRIDGE_IGMP_SNOOPING_WAKEUPCALLS
|
||||
++ if (tb[IFLA_BRPORT_MCAST_WAKEUPCALL]) {
|
||||
++ u8 wakeupcall = nla_get_u8(tb[IFLA_BRPORT_MCAST_WAKEUPCALL]);
|
||||
++
|
||||
++ err = br_multicast_set_wakeupcall(p, wakeupcall);
|
||||
++ if (err)
|
||||
++ return err;
|
||||
++ }
|
||||
++#endif
|
||||
++
|
||||
+ if (tb[IFLA_BRPORT_GROUP_FWD_MASK]) {
|
||||
+ u16 fwd_mask = nla_get_u16(tb[IFLA_BRPORT_GROUP_FWD_MASK]);
|
||||
+
|
||||
+diff --git a/net/bridge/br_private.h b/net/bridge/br_private.h
|
||||
+index 61b5b81b6828..6390d2fe88f6 100644
|
||||
+--- a/net/bridge/br_private.h
|
||||
++++ b/net/bridge/br_private.h
|
||||
+@@ -214,6 +214,10 @@ struct net_bridge_fdb_entry {
|
||||
+ };
|
||||
+ struct rcu_head rcu;
|
||||
+ };
|
||||
++
|
||||
++#ifdef CONFIG_BRIDGE_IGMP_SNOOPING_WAKEUPCALLS
|
||||
++ struct timer_list wakeupcall_timer;
|
||||
++#endif
|
||||
+ };
|
||||
+
|
||||
+ #define MDB_PG_FLAGS_PERMANENT BIT(0)
|
||||
+@@ -333,6 +337,7 @@ struct net_bridge_port {
|
||||
+ struct timer_list multicast_router_timer;
|
||||
+ struct hlist_head mglist;
|
||||
+ struct hlist_node rlist;
|
||||
++ u8 wakeupcall_num_rings;
|
||||
+ #endif
|
||||
+
|
||||
+ #ifdef CONFIG_SYSFS
|
||||
+@@ -1065,6 +1070,20 @@ static inline int br_multicast_igmp_type(const struct sk_buff *skb)
|
||||
+ }
|
||||
+ #endif
|
||||
+
|
||||
++#ifdef CONFIG_BRIDGE_IGMP_SNOOPING_WAKEUPCALLS
|
||||
++void br_multicast_wakeupcall_rcv(struct net_bridge *br,
|
||||
++ struct net_bridge_port *port,
|
||||
++ struct sk_buff *skb, u16 vid);
|
||||
++void br_multicast_send_wakeupcall(struct timer_list *t);
|
||||
++int br_multicast_set_wakeupcall(struct net_bridge_port *p, unsigned long val);
|
||||
++#else
|
||||
++static inline void br_multicast_wakeupcall_rcv(struct net_bridge *br,
|
||||
++ struct net_bridge_port *port,
|
||||
++ struct sk_buff *skb, u16 vid)
|
||||
++{
|
||||
++}
|
||||
++#endif /* CONFIG_BRIDGE_IGMP_SNOOPING_WAKEUPCALLS */
|
||||
++
|
||||
+ /* br_vlan.c */
|
||||
+ #ifdef CONFIG_BRIDGE_VLAN_FILTERING
|
||||
+ bool br_allowed_ingress(const struct net_bridge *br,
|
||||
+diff --git a/net/bridge/br_sysfs_if.c b/net/bridge/br_sysfs_if.c
|
||||
+index 969eb6ca0776..88b74a5a7ccb 100644
|
||||
+--- a/net/bridge/br_sysfs_if.c
|
||||
++++ b/net/bridge/br_sysfs_if.c
|
||||
+@@ -254,6 +254,21 @@ BRPORT_ATTR_FLAG(multicast_fast_leave, BR_MULTICAST_FAST_LEAVE);
|
||||
+ BRPORT_ATTR_FLAG(multicast_to_unicast, BR_MULTICAST_TO_UNICAST);
|
||||
+ #endif
|
||||
+
|
||||
++#ifdef CONFIG_BRIDGE_IGMP_SNOOPING_WAKEUPCALLS
|
||||
++static ssize_t show_multicast_wakeupcall(struct net_bridge_port *p, char *buf)
|
||||
++{
|
||||
++ return sprintf(buf, "%d\n", p->wakeupcall_num_rings);
|
||||
++}
|
||||
++
|
||||
++static int store_multicast_wakeupcall(struct net_bridge_port *p,
|
||||
++ unsigned long v)
|
||||
++{
|
||||
++ return br_multicast_set_wakeupcall(p, v);
|
||||
++}
|
||||
++static BRPORT_ATTR(multicast_wakeupcall, 0644, show_multicast_wakeupcall,
|
||||
++ store_multicast_wakeupcall);
|
||||
++#endif
|
||||
++
|
||||
+ static const struct brport_attribute *brport_attrs[] = {
|
||||
+ &brport_attr_path_cost,
|
||||
+ &brport_attr_priority,
|
||||
+@@ -279,6 +294,9 @@ static const struct brport_attribute *brport_attrs[] = {
|
||||
+ &brport_attr_multicast_router,
|
||||
+ &brport_attr_multicast_fast_leave,
|
||||
+ &brport_attr_multicast_to_unicast,
|
||||
++#endif
|
||||
++#ifdef CONFIG_BRIDGE_IGMP_SNOOPING_WAKEUPCALLS
|
||||
++ &brport_attr_multicast_wakeupcall,
|
||||
+ #endif
|
||||
+ &brport_attr_proxyarp,
|
||||
+ &brport_attr_proxyarp_wifi,
|
||||
+diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c
|
||||
+index ccb62f7d1054..3b269aafd3b5 100644
|
||||
+--- a/net/core/rtnetlink.c
|
||||
++++ b/net/core/rtnetlink.c
|
||||
+@@ -55,7 +55,7 @@
|
||||
+ #include <net/net_namespace.h>
|
||||
+
|
||||
+ #define RTNL_MAX_TYPE 50
|
||||
+-#define RTNL_SLAVE_MAX_TYPE 37
|
||||
++#define RTNL_SLAVE_MAX_TYPE 38
|
||||
+
|
||||
+ struct rtnl_link {
|
||||
+ rtnl_doit_func doit;
|
||||
+diff --git a/net/ipv6/mcast_snoop.c b/net/ipv6/mcast_snoop.c
|
||||
+index 04d5fcdfa6e0..9a5061edbaf3 100644
|
||||
+--- a/net/ipv6/mcast_snoop.c
|
||||
++++ b/net/ipv6/mcast_snoop.c
|
||||
+@@ -131,7 +131,7 @@ static inline __sum16 ipv6_mc_validate_checksum(struct sk_buff *skb)
|
||||
+ return skb_checksum_validate(skb, IPPROTO_ICMPV6, ip6_compute_pseudo);
|
||||
+ }
|
||||
+
|
||||
+-static int ipv6_mc_check_icmpv6(struct sk_buff *skb)
|
||||
++int ipv6_mc_check_icmpv6(struct sk_buff *skb)
|
||||
+ {
|
||||
+ unsigned int len = skb_transport_offset(skb) + sizeof(struct icmp6hdr);
|
||||
+ unsigned int transport_len = ipv6_transport_len(skb);
|
||||
+@@ -150,6 +150,7 @@ static int ipv6_mc_check_icmpv6(struct sk_buff *skb)
|
||||
+
|
||||
+ return 0;
|
||||
+ }
|
||||
++EXPORT_SYMBOL(ipv6_mc_check_icmpv6);
|
||||
+
|
||||
+ /**
|
||||
+ * ipv6_mc_check_mld - checks whether this is a sane MLD packet
|
||||
+--
|
||||
+2.36.1
|
||||
+
|
@ -0,0 +1,81 @@
|
||||
From: Grische <github@grische.xyz>
|
||||
Date: Sun, 18 Sep 2022 14:03:16 +0200
|
||||
Subject: xrx200: migrate fritz7360-v2 using incorrect image
|
||||
|
||||
Migrate AVM FRITZ!Box 7360 v2 boards flashed with the incorrect v1 image to use
|
||||
the newly added v2 target image during the next upgrade.
|
||||
Using the v2 target image allows the boards to read the TFFS partition, which
|
||||
is misaligned when using the v1 image.
|
||||
|
||||
Ref: https://github.com/freifunk-gluon/gluon/pull/2648
|
||||
|
||||
Co-authored-by: Jan-Niklas Burfeind <git@aiyionpri.me>
|
||||
|
||||
diff --git a/target/linux/lantiq/xrx200/base-files/lib/preinit/01_sysinfo.sh b/target/linux/lantiq/xrx200/base-files/lib/preinit/01_sysinfo.sh
|
||||
new file mode 100644
|
||||
index 0000000000000000000000000000000000000000..fab50d708e872f819c643cea79327e4f438de524
|
||||
--- /dev/null
|
||||
+++ b/target/linux/lantiq/xrx200/base-files/lib/preinit/01_sysinfo.sh
|
||||
@@ -0,0 +1,62 @@
|
||||
+set_sysinfo_xrx200_for_fritz7360_model() {
|
||||
+ local board_name=$1
|
||||
+ local model
|
||||
+ local urlader_version urlader_memsize urlader_flashsize
|
||||
+ local hexdump_format='4/1 "%02x""\n"'
|
||||
+
|
||||
+ # Values are based on urlader-parser-py
|
||||
+ # https://github.com/grische/urlader-parser-py/blob/42970bf8dec7962317df4ff734c57ebf36df8905/parser.py#L77-L84
|
||||
+ urlader_version="$(dd if=/dev/mtd0ro bs=1 skip=$((0x580+0x0)) count=4 | hexdump -e "${hexdump_format}")"
|
||||
+ if [ "${urlader_version}" != "00000003" ]; then
|
||||
+ logger -s -p warn -t sysinfo-xrx200 "unexpected urlader version found: ${urlader_version}"
|
||||
+ return
|
||||
+ fi
|
||||
+
|
||||
+ urlader_memsize="$(dd if=/dev/mtd0ro bs=1 skip=$((0x580+0x4)) count=4 | hexdump -e "${hexdump_format}")"
|
||||
+ if [ "${urlader_memsize}" != "08000000" ]; then
|
||||
+ logger -s -p warn -t sysinfo-xrx200 "unexpected memsize found: ${urlader_memsize}"
|
||||
+ return
|
||||
+ fi
|
||||
+
|
||||
+ urlader_flashsize="$(dd if=/dev/mtd0ro bs=1 skip=$((0x580+0x8)) count=4 | hexdump -e "${hexdump_format}")"
|
||||
+ case "${urlader_flashsize}" in
|
||||
+ "02000000") # 32MB
|
||||
+ # see vr9_avm_fritz7360-v2.dts
|
||||
+ board_name="avm,fritz7360-v2"
|
||||
+ model="AVM FRITZ!Box 7360 V2"
|
||||
+ ;;
|
||||
+ "01000000") # 16MB
|
||||
+ return
|
||||
+ ;;
|
||||
+ *)
|
||||
+ logger -s -p warn -t sysinfo-xrx200 "unexpected flashsize found: ${urlader_flashsize}"
|
||||
+ return
|
||||
+ ;;
|
||||
+ esac
|
||||
+
|
||||
+ logger -s -p notice -t sysinfo-xrx200 "detected ${board_name} from urlader partition /dev/mtd0ro. Enforcing model ${model}."
|
||||
+ echo "${board_name}" > /tmp/sysinfo/board_name
|
||||
+ echo "${model}" > /tmp/sysinfo/model
|
||||
+}
|
||||
+
|
||||
+do_sysinfo_xrx200() {
|
||||
+ local reported_board board_name model
|
||||
+
|
||||
+ [ -d /proc/device-tree ] || return
|
||||
+ reported_board="$(strings /proc/device-tree/compatible | head -1)"
|
||||
+
|
||||
+ mkdir -p /tmp/sysinfo
|
||||
+ # 7360 is notoriously known for not writing "v2" on their labels and many
|
||||
+ # routers have flashed the wrong firmware with the wrong flash layout.
|
||||
+ # We ensure that the underlying hardware is reported correctly, so that
|
||||
+ # future upgrades will use the correct flash layout.
|
||||
+ # Using 7360v2 hardware, an upgrade from a 7360v1/sl firmware to a 7360v2
|
||||
+ # is working.
|
||||
+ case "${reported_board}" in
|
||||
+ avm,fritz7360sl)
|
||||
+ set_sysinfo_xrx200_for_fritz7360_model "${reported_board}"
|
||||
+ ;;
|
||||
+ esac
|
||||
+}
|
||||
+
|
||||
+boot_hook_add preinit_main do_sysinfo_xrx200
|
@ -109,7 +109,7 @@ device('d-link-dir825b1', 'dlink_dir-825-b1', {
|
||||
|
||||
-- Enterasys
|
||||
|
||||
device('enterasys-ws-ap3705', 'enterasys_ws-ap3705i', {
|
||||
device('enterasys-ws-ap3705i', 'enterasys_ws-ap3705i', {
|
||||
factory = false,
|
||||
})
|
||||
|
||||
@ -147,6 +147,12 @@ device('joy-it-jt-or750i', 'joyit_jt-or750i', {
|
||||
factory = false,
|
||||
})
|
||||
|
||||
-- LibreRouter
|
||||
|
||||
-- lacks support for additional radios
|
||||
device('librerouter-v1', 'librerouter_librerouter-v1', {
|
||||
factory = false,
|
||||
})
|
||||
|
||||
-- Netgear
|
||||
|
||||
@ -336,6 +342,12 @@ device('siemens-ws-ap3610', 'siemens_ws-ap3610', {
|
||||
factory = false,
|
||||
})
|
||||
|
||||
|
||||
-- Teltonika
|
||||
|
||||
device('teltonika-rut230-v1', 'teltonika_rut230-v1')
|
||||
|
||||
|
||||
-- TP-Link
|
||||
|
||||
device('tp-link-archer-a7-v5', 'tplink_archer-a7-v5', {
|
||||
@ -503,6 +515,7 @@ device('tp-link-wbs510-v1', 'tplink_wbs510-v1', {
|
||||
|
||||
device('ubiquiti-nanostation-loco-m-xw', 'ubnt_nanostation-loco-m-xw', {
|
||||
manifest_aliases = {
|
||||
'ubiquiti-loco-m-xw', -- upgrade from OpenWrt 19.07
|
||||
'ubiquiti-nanostation-loco-m2-xw', -- upgrade from OpenWrt 19.07
|
||||
'ubiquiti-nanostation-loco-m5-xw', -- upgrade from OpenWrt 19.07
|
||||
},
|
||||
|
@ -6,11 +6,21 @@ local ATH10K_PACKAGES_QCA9887 = {
|
||||
'-ath10k-firmware-qca9887-ct',
|
||||
}
|
||||
|
||||
local ATH10K_PACKAGES_QCA9888 = {}
|
||||
|
||||
|
||||
-- Aerohive
|
||||
|
||||
device('aerohive-hiveap-121', 'aerohive_hiveap-121')
|
||||
|
||||
|
||||
-- GL.iNet
|
||||
|
||||
device('gl.inet-gl-ar300m-nor', 'glinet_gl-ar300m-nor', {
|
||||
factory = false,
|
||||
manifest_aliases = {
|
||||
'gl.inet-gl-ar300m', -- Upgrade from OpenWrt 19.07
|
||||
},
|
||||
})
|
||||
|
||||
device('gl.inet-gl-ar750s-nor', 'glinet_gl-ar750s-nor', {
|
||||
@ -27,3 +37,15 @@ device('netgear-wndr3700-v4', 'netgear_wndr3700-v4', {
|
||||
'netgear-wndr3700v4', -- Upgrade from OpenWrt 19.07
|
||||
},
|
||||
})
|
||||
|
||||
device('netgear-wndr4300', 'netgear_wndr4300', {
|
||||
factory_ext = '.img',
|
||||
})
|
||||
|
||||
|
||||
-- ZTE
|
||||
|
||||
device('zte-mf281', 'zte_mf281', {
|
||||
broken = true,
|
||||
packages = ATH10K_PACKAGES_QCA9888,
|
||||
})
|
||||
|
@ -38,7 +38,7 @@ config('TARGET_ROOTFS_INITRAMFS', false)
|
||||
config('DEVEL', true)
|
||||
config('ALL_NONSHARED', true)
|
||||
|
||||
config('PACKAGE_usbip', false) -- fails to build
|
||||
try_config('PACKAGE_usbip', false) -- fails to build
|
||||
|
||||
try_config('PACKAGE_ATH_DEBUG', true)
|
||||
|
||||
|
@ -1,5 +1,27 @@
|
||||
local ATH10K_PACKAGES_IPQ40XX = {}
|
||||
local ATH10K_PACKAGES_IPQ40XX_QCA9888 = {}
|
||||
local ATH10K_PACKAGES_IPQ40XX = {
|
||||
'kmod-ath10k',
|
||||
'-kmod-ath10k-ct',
|
||||
'-kmod-ath10k-ct-smallbuffers',
|
||||
'ath10k-firmware-qca4019',
|
||||
'-ath10k-firmware-qca4019-ct',
|
||||
}
|
||||
local ATH10K_PACKAGES_IPQ40XX_QCA9888 = {
|
||||
'kmod-ath10k',
|
||||
'-kmod-ath10k-ct',
|
||||
'-kmod-ath10k-ct-smallbuffers',
|
||||
'ath10k-firmware-qca4019',
|
||||
'-ath10k-firmware-qca4019-ct',
|
||||
'ath10k-firmware-qca9888',
|
||||
'-ath10k-firmware-qca9888-ct',
|
||||
}
|
||||
local ATH10K_PACKAGES_IPQ40XX_SMALLBUFFERS = {
|
||||
'-kmod-ath10k',
|
||||
'kmod-ath10k-smallbuffers',
|
||||
'-kmod-ath10k-ct',
|
||||
'-kmod-ath10k-ct-smallbuffers',
|
||||
'ath10k-firmware-qca4019',
|
||||
'-ath10k-firmware-qca4019-ct',
|
||||
}
|
||||
|
||||
|
||||
defaults {
|
||||
@ -36,6 +58,7 @@ device('avm-fritz-box-4040', 'avm_fritzbox-4040', {
|
||||
|
||||
device('avm-fritz-box-7530', 'avm_fritzbox-7530', {
|
||||
factory = false,
|
||||
aliases = {'avm-fritz-box-7520'},
|
||||
})
|
||||
|
||||
device('avm-fritz-repeater-1200', 'avm_fritzrepeater-1200', {
|
||||
@ -56,6 +79,13 @@ device('engenius-ens620ext', 'engenius_ens620ext', {
|
||||
|
||||
-- GL.iNet
|
||||
|
||||
device('gl.inet-gl-ap1300', 'glinet_gl-ap1300', {
|
||||
factory = '-squashfs-nand-factory',
|
||||
factory_ext = '.ubi',
|
||||
sysupgrade = '-squashfs-nand-sysupgrade',
|
||||
sysupgrade_ext = '.bin',
|
||||
})
|
||||
|
||||
device('gl.inet-gl-b1300', 'glinet_gl-b1300', {
|
||||
factory = false,
|
||||
})
|
||||
@ -100,6 +130,7 @@ device('plasma-cloud-pa2200', 'plasmacloud_pa2200', {
|
||||
device('zyxel-nbg6617', 'zyxel_nbg6617')
|
||||
|
||||
device('zyxel-wre6606', 'zyxel_wre6606', {
|
||||
packages = ATH10K_PACKAGES_IPQ40XX_SMALLBUFFERS,
|
||||
factory = false,
|
||||
class = 'tiny', -- 128M ath10k + ath10k
|
||||
})
|
||||
|
@ -1,5 +1,11 @@
|
||||
include 'mikrotik.inc'
|
||||
|
||||
local ATH10K_PACKAGES_IPQ40XX = {}
|
||||
|
||||
device('mikrotik-hap-ac2', 'mikrotik_hap-ac2', {
|
||||
packages = ATH10K_PACKAGES_IPQ40XX,
|
||||
})
|
||||
|
||||
device('mikrotik-sxtsq-5-ac-rbsxtsqg-5acd', 'mikrotik_sxtsq-5-ac', {
|
||||
factory = false,
|
||||
aliases = {'mikrotik-discg-5acd'},
|
||||
|
@ -4,7 +4,7 @@
|
||||
-- The QCA9984 on the other hand works fine for 11s meshes on both bands.
|
||||
|
||||
local QCA9980_PACKAGES = {'-kmod-ath10k', 'kmod-ath10k-ct', '-ath10k-firmware-qca99x0', 'ath10k-firmware-qca99x0-ct'}
|
||||
local QCA9984_PACKAGES = {}
|
||||
local QCA9984_PACKAGES = {'kmod-ath10k', '-kmod-ath10k-ct', 'ath10k-firmware-qca9984', '-ath10k-firmware-qca9984-ct'}
|
||||
|
||||
|
||||
--
|
||||
|
@ -47,6 +47,11 @@ device('avm-fritz-box-7412', 'avm_fritz7412', {
|
||||
factory = false,
|
||||
})
|
||||
|
||||
device('arcadyan-vgv7510kw22', 'arcadyan_vgv7510kw22-nor', {
|
||||
factory = false,
|
||||
aliases = {'o2-box-6431'},
|
||||
})
|
||||
|
||||
-- TP-Link
|
||||
|
||||
-- CAVEAT: These devices don't have a dedicated WAN port.
|
||||
|
@ -5,3 +5,7 @@ device('sophos-red-15w-rev.1', 'sophos_red-15w-rev1', {
|
||||
})
|
||||
|
||||
|
||||
-- TP-Link
|
||||
|
||||
device('tp-link-tl-wdr4900-v1', 'tplink_tl-wdr4900-v1')
|
||||
|
||||
|
@ -7,16 +7,42 @@ device('asus-rt-ac57u', 'asus_rt-ac57u', {
|
||||
|
||||
-- Cudy
|
||||
|
||||
device('cudy-wr1300', 'cudy_wr1300', {
|
||||
factory = false,
|
||||
})
|
||||
|
||||
device('cudy-wr2100', 'cudy_wr2100', {
|
||||
factory = false,
|
||||
})
|
||||
|
||||
device('cudy-x6-v1', 'cudy_x6-v1', {
|
||||
factory = false,
|
||||
})
|
||||
|
||||
device('cudy-x6-v2', 'cudy_x6-v2', {
|
||||
factory = false,
|
||||
})
|
||||
|
||||
|
||||
-- D-Link
|
||||
|
||||
device('d-link-dap-x1860-a1', 'dlink_dap-x1860-a1')
|
||||
|
||||
device('d-link-dir-860l-b1', 'dlink_dir-860l-b1')
|
||||
|
||||
|
||||
-- GL.iNet
|
||||
|
||||
device('gl.inet-gl-mt1300', 'glinet_gl-mt1300', {
|
||||
factory = false,
|
||||
})
|
||||
|
||||
|
||||
-- Mercusys
|
||||
|
||||
device('mercusys-mr70x-v1', 'mercusys_mr70x-v1')
|
||||
|
||||
|
||||
-- Netgear
|
||||
|
||||
device('netgear-ex6150', 'netgear_ex6150', {
|
||||
@ -47,12 +73,14 @@ device('netgear-wndr3700-v5', 'netgear_wndr3700-v5', {
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
-- TP-Link
|
||||
|
||||
device('tp-link-re500-v1', 'tplink_re500-v1')
|
||||
|
||||
device('tp-link-re650-v1', 'tplink_re650-v1')
|
||||
|
||||
|
||||
-- Ubiquiti
|
||||
|
||||
device('ubiquiti-unifi-6-lite', 'ubnt_unifi-6-lite', {
|
||||
@ -66,6 +94,10 @@ device('xiaomi-mi-router-4a-gigabit-edition', 'xiaomi_mi-router-4a-gigabit', {
|
||||
factory = false,
|
||||
})
|
||||
|
||||
device('xiaomi-mi-router-3g', 'xiaomi_mi-router-3g', {
|
||||
factory = false,
|
||||
})
|
||||
|
||||
device('xiaomi-mi-router-3g-v2', 'xiaomi_mi-router-3g-v2', {
|
||||
factory = false,
|
||||
})
|
||||
@ -90,6 +122,11 @@ device('zbtlink-zbt-wg3526-32m', 'zbtlink_zbt-wg3526-32m', {
|
||||
})
|
||||
|
||||
|
||||
-- ZyXEL
|
||||
|
||||
device('zyxel-nwa50ax', 'zyxel_nwa50ax')
|
||||
|
||||
|
||||
-- Devices without WLAN
|
||||
|
||||
-- Ubiquiti
|
||||
|
@ -60,6 +60,8 @@ device('tp-link-archer-c50-v4', 'tplink_archer-c50-v4', {
|
||||
|
||||
device('tp-link-re200-v2', 'tplink_re200-v2')
|
||||
|
||||
device('tp-link-re200-v3', 'tplink_re200-v3')
|
||||
|
||||
device('tp-link-re305', 'tplink_re305-v1', {
|
||||
class = 'tiny', -- Only 6M of usable Firmware space
|
||||
})
|
||||
|
5
targets/realtek-rtl838x
Normal file
5
targets/realtek-rtl838x
Normal file
@ -0,0 +1,5 @@
|
||||
-- D-Link
|
||||
|
||||
device('d-link_dgs-1210-10p', 'd-link_dgs-1210-10p', {
|
||||
factory = '-squashfs-factory_image1',
|
||||
})
|
@ -4,3 +4,4 @@ defaults {
|
||||
}
|
||||
|
||||
device('friendlyelec-nanopi-r2s', 'friendlyarm_nanopi-r2s')
|
||||
device('friendlyelec-nanopi-r4s', 'friendlyarm_nanopi-r4s') -- 4GB LPDDR4
|
||||
|
@ -14,6 +14,7 @@ $(eval $(call GluonTarget,mpc85xx,p1020))
|
||||
$(eval $(call GluonTarget,ramips,mt7620))
|
||||
$(eval $(call GluonTarget,ramips,mt7621))
|
||||
$(eval $(call GluonTarget,ramips,mt76x8))
|
||||
$(eval $(call GluonTarget,realtek,rtl838x))
|
||||
$(eval $(call GluonTarget,rockchip,armv8))
|
||||
$(eval $(call GluonTarget,sunxi,cortexa7))
|
||||
$(eval $(call GluonTarget,x86,generic))
|
||||
|
Loading…
Reference in New Issue
Block a user