Commit Graph

6168 Commits

Author SHA1 Message Date
CN_SZTL
4df558cc5a
target/rockchip: fix dependency 2020-07-24 03:51:17 +08:00
CN_SZTL
4aa6119e75
target/rockchip: add missing dependency 2020-07-24 03:24:00 +08:00
AmadeusGhost
f1a2f32050
luci-app-mtwifi: add wifi relay support (#5168)
* luci-app-mtwifi: add wifi relay support

Source code: Nossiac/mtk-openwrt-feeds
Based on commit 'wireless: wext: remove ndo_do_ioctl fallback'

* luci-app-mtwifi: fix ap-scan failed

* luci-app-mtwifi: show overview when relay is enabled
2020-07-23 22:49:50 +08:00
CN_SZTL
e941758ba2
Merge Mainline 2020-07-23 22:49:02 +08:00
David Bauer
f4321098b5
ramips: switch MT7620 subtarget to 5.4
MT7620 seems to work fine with kernel 5.4. Set the default kernel
version to 5.4 to bring this to a broader audience.

Tested on Archer C2 v1 / Archer C20i

Signed-off-by: David Bauer <mail@david-bauer.net>
2020-07-23 22:48:49 +08:00
David Bauer
5302c79953
ath79: re-enable image generation for GL-AR750S
The bootloader only writes the first 2MB of the image to the NOR flash
when installing the NAND factory image. The bootloader is capable of
booting larger kernels as it boots from the memory mapped SPI flash.

Disable the NAND factory image. The NAND can be bootstrapped by writing
the NAND initramfs image using the NOR upgrade method in the bootloader
web-recovery and sysupgrading from there. The NOR variant is not
affected.

Also refactor the partition definitions in the DTS to make them less
annoying to read.

Signed-off-by: David Bauer <mail@david-bauer.net>
2020-07-23 22:48:07 +08:00
David Bauer
903f30b801
ramips: increase SPI frequency for MT7620 Archer
Increase the SPI frequency for the MT7620 based TP-Link Archer
series to 30MHz.

TP-Link uses different SPI flash chips for the same board
revision, so be conservative to not break boards with a
different chip. 30MHz should be well supported by all chips.

Tested on Archer C2 v1 (GD25Q64B) and Archer C20i (W25Q64FV).

Archer C20i (before)
====================
root@OpenWrt:~# time dd if=/dev/mtd1 of=/tmp/test.bin bs=64k
122+0 records in
122+0 records out
real	0m 15.30s
user	0m 0.00s
sys	0m 15.29s

Archer C20i (after)
===================
root@OpenWrt:~# time dd if=/dev/mtd1 of=/tmp/test.bin bs=64k
122+0 records in
122+0 records out
real	0m 5.99s
user	0m 0.00s
sys	0m 5.98s

Signed-off-by: David Bauer <mail@david-bauer.net>
Acked-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-07-23 22:47:48 +08:00
Adrian Schmutzler
1c9cd3b359
arc770: use generic 02_sysinfo
Currently arc770 sets a board name from compatible for no apparent
reason. Just use the compatible directly instead.

This theoretically removes a board name "generic" when no compatible
was present, however, there is no case where this "generic" board
name was actually used.

This also fixes an issue where snps,axs101 would not have been
properly detected anyway, as its case was not set up syntactically
correct.

Fixes: 576621f1e3 ("linux: add support of Synopsys ARC770-based boards")

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-07-23 22:47:18 +08:00
Adrian Schmutzler
5786f1efaa
archs38: use generic 02_sysinfo
Currently archs38 sets a board name from compatible for no apparent
reason. Just use the compatible directly instead.

This theoretically removes a board name "generic" when no compatible
was present, however, there is no case where this "generic" board
name was actually used.

This also fixes an issue where snps,axs103 would not have been
properly detected anyway, as its case was not set up syntactically
correct.

Fixes: 73015c4cb3 ("linux: add support of Synopsys ARCHS38-based boards")

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-07-23 22:47:13 +08:00
Paul Spooren
cef6808d80
tools/flock: add PKG_{VERSION,RELEASE}
The stored source code of flock contains the version string of version
2.18, reflect that in the Makefile.

Motivation is the tracking of changes in the buildsystem, which requires
versioning of packages.

Signed-off-by: Paul Spooren <mail@aparcar.org>
2020-07-23 22:45:21 +08:00
Paul Spooren
cfe8c10798
tools/sstrip: add PKG_{VERSION,RELEASE}
Comparing the in tree stored source file of sstrip suggests it's version
2.0[0], reflect that in the Makefile.

Motivation is the tracking of changes in the buildsystem, which requires
versioning of packages.

[0]: df4426a0f0 (diff-d3ba694d91432a068d5d3b36abf8cd0f)

Signed-off-by: Paul Spooren <mail@aparcar.org>
2020-07-23 22:45:02 +08:00
Paul Spooren
6430074631
tools/firmware-utils: add PKG_RELEASE
There is no versioning information in the firmware-utils code nor the
Makefile. Consider it as first release by adding PKG_RELEASE.

Motivation is the tracking of changes in the buildsystem, which requires
versioning of packages.

Also update copyright.

Signed-off-by: Paul Spooren <mail@aparcar.org>
2020-07-23 22:44:43 +08:00
Paul Spooren
5242ffe822
tools/patch-image: add PKG_RELEASE
There is no versioning information in the patch-image code nor the
Makefile. Consider it as first release by adding PKG_RELEASE.

Motivation is the tracking of changes in the buildsystem, which requires
versioning of packages.

Also update copyright.

Signed-off-by: Paul Spooren <mail@aparcar.org>
2020-07-23 22:44:24 +08:00
Adrian Schmutzler
bc64ff56c5
tools: drop PKG_VERSION for purely local packages
This applies to tools directory what has been done for package/ in
commit 9c170cb92f ("package: drop PKG_VERSION for purely local
packages"):

In the package guidelines, PKG_VERSION is supposed to be used as
"The upstream version number that we're downloading", while
PKG_RELEASE is referred to as "The version of this package Makefile".
Thus, the variables in a strict interpretation provide a clear
distinction between "their" (upstream) version in PKG_VERSION and
"our" (local OpenWrt trunk) version in PKG_RELEASE.

For local (OpenWrt-only) packages, this implies that those will only
need PKG_RELEASE defined, while PKG_VERSION does not apply following
a strict interpretation. While the majority of "our" packages actually
follow that scheme, there are also some that mix both variables or
have one of them defined but keep them at "1".

This is misleading and confusing, which can be observed by the fact
that there typically either one of the variables is never bumped or
the choice of the variable to increase depends on the person doing the
change.

Consequently, this patch aims at clarifying the situation by
consistently using only PKG_RELEASE for "our" packages. For tools/,
only three packages were affected. This fixes two of them, and
leaves the remaining wrt350nv2-builder untouched, as the code there
seems to have some versioning of its own that is treated as upstream
version in PKG_VERSION.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-07-23 22:44:05 +08:00
Kevin Darbyshire-Bryant
20ce78efa8
kmod-sched-cake-oot: fix PKG_MIRROR_HASH
Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
2020-07-23 22:42:34 +08:00
CN_SZTL
75f51faaab
Merge Mainline 2020-07-23 17:42:33 +08:00
CN_SZTL
cca14e259a
luci-app-clash: sync with upstream source 2020-07-23 17:36:33 +08:00
CN_SZTL
537dc8b487
luci-app-beardropper: add package 2020-07-23 17:33:32 +08:00
CN_SZTL
afbd16610a
luci-app-oled: sync with upstream source 2020-07-23 17:27:56 +08:00
CN_SZTL
15871ca98e
Merge Mainline 2020-07-23 17:25:14 +08:00
CN_SZTL
49a6a98fed
luci-app-adguardhome: simplify Makefile 2020-07-23 17:24:46 +08:00
CN_SZTL
dda2d05a59
AdGuardHome: support luci-app-adguardhome 2020-07-23 17:15:35 +08:00
CN_SZTL
e9cd265cba
msgpack-c: drop variant 2020-07-23 17:07:40 +08:00
CN_SZTL
0b8a71d166
Merge Mainline 2020-07-23 02:02:02 +08:00
CN_SZTL
20ef96075c
luci-app-passwal: sync with upstream source 2020-07-23 02:00:14 +08:00
CN_SZTL
104e4ea91e
OpenClash: sync with upstream source 2020-07-23 01:50:45 +08:00
CN_SZTL
5f347d3243
Merge Mainline 2020-07-23 01:20:42 +08:00
CN_SZTL
fe5e355670
firmware-utils: sync with upstream source 2020-07-23 01:14:02 +08:00
Rosen Penev
d8d36f3ddd
toolchain/gcc: eliminate uClibc atexit hack
This seems to be over 10 years old. It doesn't seem to be needed anymore.

Tested on malta with uClibc (selected BROKEN).

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-07-23 01:11:21 +08:00
Hans Dedecker
ae0587cda3
glibc: fix memcpy and memmove for negative length [BZ #25620]
6f3459f985 Add NEWS entry for CVE-2020-6096 (bug 25620)
64246fccaf arm: CVE-2020-6096: Fix multiarch memcpy for negative length [BZ #25620]
9bbd2b6172 arm: CVE-2020-6096: fix memcpy and memmove for negative length [BZ #25620]

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
2020-07-23 01:10:23 +08:00
CN_SZTL
1fe4e25cff
kmod-sched-cake-oot: fix depends 2020-07-23 00:55:21 +08:00
CN_SZTL
074b9da09f
Merge Mainline 2020-07-22 21:34:38 +08:00
CN_SZTL
8dd28634ff
subconverter: bump to latest git HEAD 2020-07-22 20:36:17 +08:00
CN_SZTL
aa3224a9de
tmate: bump to latest git HEAD 2020-07-22 20:32:12 +08:00
CN_SZTL
102ed1c668
Merge Mainline 2020-07-22 17:48:51 +08:00
ElonH
af51718224
spdlog: upgrade version to 1.7.0
libfmt has been upgraded to 7.0.1

spdog-1.7.0 support for using external fmt version 7.x
2020-07-22 17:47:43 +08:00
ricksuzade-maker
2d70a2ec01
v2ray-plugin: bump to v1.3.4 2020-07-22 17:44:04 +08:00
CN_SZTL
6049374622
kernel: bump 4.19 to 4.19.134
Resolve conflicted:
395-v5.8-net-sch_cake-Take-advantage-of-skb-hash-where-appropriate.patch
641-sch_cake-fix-IP-protocol-handling-in-the-presence-of.patch

Remove upstreamed:
742-v5.5-net-sfp-add-support-for-module-quirks.patch
743-v5.5-net-sfp-add-some-quirks-for-GPON-modules.patch

Refreshed all patches.

Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2020-07-22 17:41:51 +08:00
CN_SZTL
69e815a417
kernel: bump 5.4 to 5.4.53
Resolve conflicted:
- 395-v5.8-net-sch_cake-Take-advantage-of-skb-hash-where-appropriate.patch
- 641-sch_cake-fix-IP-protocol-handling-in-the-presence-of.patch

Remove upstreamed:
- 022-v5.8-mtd-rawnand-brcmnand-correctly-verify-erased-pages.patch
- 024-v5.8-mtd-rawnand-brcmnand-fix-CS0-layout.patch
- 742-v5.5-net-sfp-add-support-for-module-quirks.patch
- 743-v5.5-net-sfp-add-some-quirks-for-GPON-modules.patch

Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2020-07-22 16:59:36 +08:00
CN_SZTL
7e893c7b8f
kernel: bump 4.14 to 4.14.189
Resolve conflicted:
- 818-qspi-support-layerscape.patch

Refreshed all patches.

Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2020-07-22 16:52:00 +08:00
CN_SZTL
6e0a62a71c
kernel: bump 4.9 to 4.9.231
Remove upstreamed:
- 821-usb-Remove-annoying-warning-about-bogus-URB.patch

Refreshed all patches.

Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2020-07-22 15:45:41 +08:00
CN_SZTL
1095ef2dc7
Merge Mainline 2020-07-22 03:31:43 +08:00
CN_SZTL
07730e3197
luci-app-turboacc: fix typo/logic error 2020-07-22 03:30:26 +08:00
CN_SZTL
b1c13dfe62
target/rockchip: rework nanopi-r2s rtl8152 LEDs
Reference: jayanta525/openwrt-nanopi-r2s@d1679edd38.
2020-07-22 03:18:33 +08:00
ElonH
31d8b81a08
ipv6helper: typo fix 2020-07-22 01:33:38 +08:00
CN_SZTL
f40c065781
Merge Mainline 2020-07-21 15:13:18 +08:00
CN_SZTL
aef54ffe68
luci-app-turboacc: fix order 2020-07-21 15:12:10 +08:00
CN_SZTL
9506b2d815
Merge Mainline 2020-07-21 14:35:29 +08:00
Johannes Kimmel
196fa6609b
vxlan: add capability for multiple fdb entries
Similar to wireguard, vxlan can configure multiple peers or add specific
entries to the fdb for a single mac address.

While you can still use peeraddr/peer6addr option within the proto
vxlan/vxlan6 section to not break existing configurations, this patch
allows to add multiple sections that conigure fdb entries via the bridge
command. As such, the bridge command is now a dependency of the vxlan
package. (To be honest without the bridge command available, vxlan isn't
very much fun to use or debug at all)

Field names are taken direclty from the bridge command.

Example with all supported parameters, since this hasn't been documented so
far:

  config interface 'vx0'
      option proto     'vxlan6'      # use vxlan over ipv6

      # main options
      option ip6addr   '2001:db8::1' # listen address
      option tunlink   'wan6'        # optional if listen address given
      option peer6addr '2001:db8::2' # now optional
      option port      '8472'        # this is the standard port under linux
      option vid       '42'          # VXLAN Network Identifier to use
      option mtu       '1430'        # vxlan6 has 70 bytes overhead

      # extra options
      option rxcsum  '0'  # allow receiving packets without checksum
      option txcsum  '0'  # send packets without checksum
      option ttl     '16' # specifies the TTL value for outgoing packets
      option tos     '0'  # specifies the TOS value for outgoing packets
      option macaddr '11:22:33:44:55:66' # optional, manually specify mac
                                         # default is a random address

Single peer with head-end replication. Corresponds to the following call
to bridge:

  $ bridge fdb append 00:00:00:00:00:00 dev vx0 dst 2001:db8::3

  config vxlan_peer
      option vxlan 'vx0'
      option dst '2001:db8::3' # always required

For multiple peers, this section can be repeated for each dst address.

It's possible to specify a multicast address as destination. Useful when
multicast routing is available or within one lan segment:

  config vxlan_peer
      option vxlan 'vx0'
      option dst 'ff02::1337' # multicast group to join.
                              # all bum traffic will be send there
      option via 'eth1'       # for multicast, an outgoing interface needs
                              # to be specified

All available peer options for completeness:

  config vxlan_peer
      option vxlan   'vx0'               # the interface to configure
      option lladdr  'aa:bb:cc:dd:ee:ff' # specific mac,
      option dst     '2001:db8::4'       # connected to this peer
      option via     'eth0.1'            # use this interface only
      option port    '4789'              # use different port for this peer
      option vni     '23'                # override vni for this peer
      option src_vni '123'               # see man 3 bridge

Signed-off-by: Johannes Kimmel <fff@bareminimum.eu>
2020-07-21 14:34:36 +08:00
Johannes Kimmel
3a00aaf288
vxlan: remove mandatory peeraddr
vxlan can be configured without a peer address. This is used to prepare
an interface and add peers later.

Fixes: FS#2743

Signed-off-by: Johannes Kimmel <fff@bareminimum.eu>
Acked-by: Matthias Schiffer <mschiffer@universe-factory.net>
2020-07-21 14:34:15 +08:00