2 years agokernel: bump 4.9 to 4.9.138
Koen Vandeputte [Wed, 21 Nov 2018 09:43:44 +0000 (10:43 +0100)]
kernel: bump 4.9 to 4.9.138

Refreshed all patches.

Compile-tested: ar71xx, layerscape
Runtime-tested: ar71xx

Signed-off-by: Koen Vandeputte <>
2 years agobcm53xx: request Seama parser on DIR-885L directly
Rafał Miłecki [Thu, 22 Nov 2018 09:12:19 +0000 (10:12 +0100)]
bcm53xx: request Seama parser on DIR-885L directly

It's more reliable as mtd subsystem doesn't have to blindly try that
parser. It allows disabling MTD_SPLIT_FIRMWARE completely (TRX is
handled in a similar way).

Signed-off-by: Rafał Miłecki <>
2 years agokernel: add DT binding support to the Seama parser
Rafał Miłecki [Thu, 22 Nov 2018 09:11:30 +0000 (10:11 +0100)]
kernel: add DT binding support to the Seama parser

It allows specifying that parser directly in the DT.

Signed-off-by: Rafał Miłecki <>
2 years agoglibc: update to latest 2.27 commit
Hans Dedecker [Wed, 21 Nov 2018 10:11:26 +0000 (11:11 +0100)]
glibc: update to latest 2.27 commit

1517dfb8aa Add an additional test to resolv/tst-resolv-network.c
1050634904 libanl: properly cleanup if first helper thread creation failed (bug 22927)

Signed-off-by: Hans Dedecker <>
2 years agomt76: update to the latest version
Felix Fietkau [Wed, 21 Nov 2018 14:14:36 +0000 (15:14 +0100)]
mt76: update to the latest version

4734108 mt7603: use mt7603_wtbl_clear on station removal
9428e34 mt7603: fix watchdog reset sequence
b3f82a3 mt7603: report PSE reset failures via debugfs
a301dec mt7603: add back PSE client reset code
94cebfc mt7603: fix handling lost interrupt events during watchdog reset
b38fe7d mt7603: only issue PSE reset on PSE stuck
da666a7 mt7603: issue PSE reset if firmware debug register indicates stuck queues

Signed-off-by: Felix Fietkau <>
2 years agomt76: update to the latest version
Felix Fietkau [Tue, 20 Nov 2018 15:55:47 +0000 (16:55 +0100)]
mt76: update to the latest version

471d397 mt7603: fix priority for buffered multicast packets
3873e82 mt7603: fix MT_BMAP_0/MT_GROUP_THD_0 register initializion for mt7628
749d5c3 mt7603: fix reserved page handling for mt7628
d22799b mt7603: reduce reserved pages for beacons
42c5281 mt7603: fix maximum frame size in scheduler init
fa7335b mt76: fix potential NULL pointer dereference in mt76_stop_tx_queues
84aa12a mt76: fix potential null pointer deref in mt76_sta_add
7c4c33c mt7603: skip efuse tx power data for mt7628
ca2c875 mt7603: add support for accessing remapped registers via ops
b44d793 mt7603: clear PSE redirections before MCU init
82363ab mt7603: move tx status to rx queue 0
c09e8a4 mt7603: fix buffering of tx packets for powersave clients

Signed-off-by: Felix Fietkau <>
2 years agokernel: move diff adding run_parsers_by_type() between mtd patches
Rafał Miłecki [Tue, 20 Nov 2018 13:28:25 +0000 (14:28 +0100)]
kernel: move diff adding run_parsers_by_type() between mtd patches

It makes more sense to add run_parsers_by_type() in a patch that
introduces parser types. That makes the other one just add a code using

Signed-off-by: Rafał Miłecki <>
2 years agokernel: don't export parse_mtd_partitions_by_type() in 4.9 and 4.14
Rafał Miłecki [Tue, 20 Nov 2018 12:42:19 +0000 (13:42 +0100)]
kernel: don't export parse_mtd_partitions_by_type() in 4.9 and 4.14

That function isn't used anywhere out of the mtdpart.c & can be static.

Signed-off-by: Rafał Miłecki <>
2 years agowireguard: bump to 0.0.20181119
Jason A. Donenfeld [Mon, 19 Nov 2018 17:30:17 +0000 (18:30 +0100)]
wireguard: bump to 0.0.20181119

* chacha20,poly1305: fix up for win64
* poly1305: only export neon symbols when in use
* poly1305: cleanup leftover debugging changes
* crypto: resolve target prefix on buggy kernels
* chacha20,poly1305: don't do compiler testing in generator and remove xor helper
* crypto: better path resolution and more specific generated .S
* poly1305: make frame pointers for auxiliary calls
* chacha20,poly1305: do not use xlate

This should fix up the various build errors, warnings, and insertion errors
introduced by the previous snapshot, where we added some significant
refactoring. In short, we're trying to port to using Andy Polyakov's original
perlasm files, and this means quite a lot of work to re-do that had stableized
in our old .S.

Signed-off-by: Jason A. Donenfeld <>
2 years agokernel: drop mtd_pad_erasesize() helper from 4.9 and 4.14
Rafał Miłecki [Mon, 19 Nov 2018 12:33:05 +0000 (13:33 +0100)]
kernel: drop mtd_pad_erasesize() helper from 4.9 and 4.14

It has been last used in kernel 3.18 for uimage and squashfs splitters
embedded in the mtdpart.c.

Signed-off-by: Rafał Miłecki <>
2 years agonetifd: update to latest git HEAD
Hans Dedecker [Mon, 19 Nov 2018 09:12:28 +0000 (10:12 +0100)]
netifd: update to latest git HEAD

4b83102 treewide: switch to C-code style comments
70506bf treewide: make some functions static
d9872db interface: fix removal of dynamic interfaces
2f7ef7d interface: rework code to get rid of interface_set_dynamic

Signed-off-by: Hans Dedecker <>
2 years agoar71xx: fix TP-Link Archer C7 v5 switch LEDs
Rinki Kumari [Thu, 27 Sep 2018 16:10:15 +0000 (21:40 +0530)]
ar71xx: fix TP-Link Archer C7 v5 switch LEDs

Signed-off-by: Rinki Kumari <>
2 years agomt76: update to the latest version
Felix Fietkau [Fri, 16 Nov 2018 12:43:15 +0000 (13:43 +0100)]
mt76: update to the latest version

96b3b3d mt76x2u: main: fix typo setting sta_state mac80211 callback

Signed-off-by: Felix Fietkau <>
2 years agomt76: update to the latest version
Felix Fietkau [Fri, 16 Nov 2018 11:43:45 +0000 (12:43 +0100)]
mt76: update to the latest version

009ab91 mt76: clean up more unused EXPORT_SYMBOLs
963768d mt76x02: fix regression in tx station race condition fix
d7788cc mt76: mt76x02: make group_wcid the first member in struct mt76x02_vif
e65ad4c mt7603: make group_wcid the first member in struct mt7603_vif
7b1373e mt76: mt76x02: remove mt76x02_txq_init
a97127b mt76: replace sta_add/remove ops with common sta_state function
13f1e82 mt7603: clear wtbl entry for removed stations
90e2c1b mt7603: add mt7603_wtbl_set_skip_tx, change mt7603_wtbl_set_ps users
41931e4 mt7603: toggle skip_tx on station add/remove
d0fdf01 mt7603: avoid unnecessary wtbl writes for ps-filter

Signed-off-by: Felix Fietkau <>
2 years agowireguard: bump to 0.0.20181115
Jason A. Donenfeld [Thu, 15 Nov 2018 20:14:49 +0000 (12:14 -0800)]
wireguard: bump to 0.0.20181115

* Zinc no longer ships generated assembly code. Rather, we now
  bundle in the original perlasm generator for it. The primary purpose
  of this snapshot is to get testing of this.
* Clarify the peer removal logic and make lifetimes more precise.
* Use READ_ONCE for is_valid and is_dead.
* No need to use atomic when the recounter is mutex protected.
* Fix up macros and annotations in allowedips.
* Increment drop counter when staged packets are dropped.
* Use static constants instead of enums for 64-bit values in selftest.
* Mark large constants as ULL in poly1305-donna64.
* Fix sparse warnings in allowedips debugging code.
* Do not use wg_peer_get_maybe_zero in timer callbacks, since we now can
  carefully control the lifetime of these functions and ensure they never
  execute after dropping the last reference.
* Cleanup hashing in ratelimiter.
* Do not guard timer removals, since del_timer is always okay.
* We now check for PM_AUTOSLEEP, which makes the clear*on-suspend decision a
  bit more general.
* Set csum_level to ~0, since the poly1305 authenticator certainly means
  that no data was modified in transit.
* Use CHECKSUM_PARTIAL check for skb_checksum_help instead of
  skb_checksum_setup check.
* wg.8: specify that wg(8) shows runtime info too
* wg.8: AllowedIPs isn't actually required
* keygen-html: add missing glue macro
* wg-quick: android: do not choke on empty allowed-ips

Signed-off-by: Jason A. Donenfeld <>
2 years agoutil-linux: Update to 2.33
Daniel Engberg [Fri, 9 Nov 2018 06:56:47 +0000 (07:56 +0100)]
util-linux: Update to 2.33

Update util-linux to 2.33
Refresh patch

Signed-off-by: Daniel Engberg <>
2 years agoar71xx: add support for Gainstrong MiniBox V3.2
Pau Escrich [Fri, 12 Jan 2018 15:36:25 +0000 (16:36 +0100)]
ar71xx: add support for Gainstrong MiniBox V3.2

Adds MiniBox V3.2 ar71xx target (QCA99531 + QCA9887)
Reference patch:
Installation: Upload firmware to uboot via HTTP at (press button for 5 seconds)

Signed-off-by: Pau Escrich <>
Signed-off-by: Daniel Golle <>
( rebased and fixed conflicts, fixed LED name,
                        added ath10k eeprom)

2 years agokernel: fix ubifs loosing O_TMPFILE data after power cut
Rafał Miłecki [Thu, 15 Nov 2018 11:28:50 +0000 (12:28 +0100)]
kernel: fix ubifs loosing O_TMPFILE data after power cut

There was a bug in ubifs related to the O_TMPFILE. When reapplying
changes after power cut data could be lost. This problem was exposed by
overlayfs and the upstream commit 3a1e819b4e80 ("ovl: store file handle
of lower inode on copy up").

This fixes a regression introduced when switching from 4.9 to 4.14.

Signed-off-by: Rafał Miłecki <>
2 years agobison: update to 3.2.1
Hans Dedecker [Thu, 15 Nov 2018 10:29:04 +0000 (11:29 +0100)]
bison: update to 3.2.1

Chnages since 3.2:

b590ad02 version 3.2.1
05e70adf build: fix issues in the generated tarball
7efe0b5d build: fix typo
351e3630 NEWS: update
4fd1fc70 examples: ship them
e02ce4c7 build: minor fixes in doc/
7cab285e CI: maximize chances of errors sooner
86efe282 c++: improve the generated documentation
cf1446dc tests: don't fail if the C++ compiler does not work
e93c40b3 tests: don't disable C++ warnings in C files
eff67391 c++: workaround portability issue
5a0d7802 tests: work around getopt portability issues
f1e0839c doc: -Wzero-as-null-pointer-constant was added to GCC 4.7
3bf429ae examples: #include <cstring> in calc++
f8cadc73 c: provide a definition of _Noreturn that works for C++
bd7aebb8 c: update the definition of _Noreturn
ca8039e6 tests: don't expect the shell to support 'local'
5d07f4f7 bitset: fix warning
e605ad96 build: fix use of gnulib Make variables
50fac71d maint: post-release administrivia

Signed-off-by: Hans Dedecker <>
2 years agohostapd: add utf8_ssid flag & enable as default
Kevin Darbyshire-Bryant [Mon, 12 Nov 2018 22:46:13 +0000 (22:46 +0000)]
hostapd: add utf8_ssid flag & enable as default

SSIDs may contain UTF8 characters but ideally hostapd should be told
this is the case so it can advertise the fact. Default enable this

add uci option utf8_ssid '0'/'1' for disable/enable e.g.

config wifi-iface
option utf8_ssid '0'

Signed-off-by: Kevin Darbyshire-Bryant <>
2 years agokernel: bump 4.14 to 4.14.81
Koen Vandeputte [Wed, 14 Nov 2018 12:53:59 +0000 (13:53 +0100)]
kernel: bump 4.14 to 4.14.81

Refreshed all patches.

Removed upstreamed patches:
- 081-spi-bcm-qspi-switch-back-to-reading-flash-using-smal.patch

Altered patches:
- 0054-cpufreq-dt-Handle-OPP-voltage-adjust-events

Compile-tested on: cns3xxx, imx6, ipq806x, x86_64
Runtime-tested on: cns3xxx, imx6, x86_64

Signed-off-by: Koen Vandeputte <>
2 years agokernel: bump 4.9 to 4.9.137
Koen Vandeputte [Wed, 14 Nov 2018 12:53:03 +0000 (13:53 +0100)]
kernel: bump 4.9 to 4.9.137

Refreshed all patches.

Removed upstreamed hunks in:
- 703-phy-support-layerscape.patch

Compile-tested on: ar71xx, layerscape
Runtime-tested on: ar71xx

Signed-off-by: Koen Vandeputte <>
2 years agokernel: bump 3.18 to 3.18.125
Koen Vandeputte [Wed, 14 Nov 2018 12:47:36 +0000 (13:47 +0100)]
kernel: bump 3.18 to 3.18.125

Refreshed all patches.

Compile-tested on: adm5120
Compile-tested on: none

Signed-off-by: Koen Vandeputte <>
2 years agotools/pkg-config: Handle variable substitution of 'bindir' to redirect to STAGING_DIR/bin
Ted Hess [Tue, 13 Nov 2018 20:40:30 +0000 (15:40 -0500)]
tools/pkg-config: Handle variable substitution of 'bindir' to redirect to STAGING_DIR/bin

Signed-off-by: Ted Hess <>
2 years agomt76: update to the latest version
Felix Fietkau [Tue, 13 Nov 2018 20:21:51 +0000 (21:21 +0100)]
mt76: update to the latest version

6745830 mt76: fix race condition in station removal
7e5c819 mt76: add mt76_sta_remove helper
75aa36e mt7603: use wcid/wcid_mask from struct mt76_dev
fd85ff9 mt7603: use mt76_sta_remove helper
0848d2d mt7603: simplify mt7603_mcu_msg_send, remove skb_ret handling
83a80ca mt76: request tx status for powersave released EOSP packet
df5c797 mt76: fix uninitialized mutex access setting rts threshold
0bfa98e mt76: introduce mt76x02_config_mac_addr_list routine
4248446 mt76x0: pci: enable VHT rates in IBSS mode
f75efd8 mt76x2u: phy: add TX_SHAPING calibration
c1d67b4 mt76x2u: phy: run phy_channel_calibrate after channel switch
9fe0fe8 mt76x2u: main: use mt76x02_bss_info_changed utility routine
3fc95d7 mt76x2u: init: remove mt76x2u_init_beacon_offsets routine
88f6883 mt76: remove wait argument from mt76x02_mcu_calibrate

Signed-off-by: Felix Fietkau <>
2 years agomac80211: fix spurious disconnections with powersave clients
Felix Fietkau [Tue, 13 Nov 2018 19:34:35 +0000 (20:34 +0100)]
mac80211: fix spurious disconnections with powersave clients

Affects all drivers using ieee80211_tx_status_noskb, e.g. ath9k and mt76

Signed-off-by: Felix Fietkau <>
2 years agokernel: bump 4.14 to 4.14.80
Stijn Tintel [Mon, 12 Nov 2018 17:58:36 +0000 (19:58 +0200)]
kernel: bump 4.14 to 4.14.80

Refresh patches.

Compile-tested: ar71xx, ath79, x86/64
Runtime-tested: ar71xx, ath79, x86/64

Signed-off-by: Stijn Tintel <>
2 years agokernel: drop old bluetooth config symbols
Stijn Tintel [Sat, 10 Nov 2018 15:36:44 +0000 (17:36 +0200)]
kernel: drop old bluetooth config symbols

They do not exist in any of the supported kernel versions.

Signed-off-by: Stijn Tintel <>
2 years agobzip2: Replace main site with mirrors (FS#1913)
Daniel Engberg [Wed, 7 Nov 2018 21:36:03 +0000 (22:36 +0100)]
bzip2: Replace main site with mirrors (FS#1913)

Use Gentoo and FreeBSDs distfile caches as mirrors because
main site/domain is abandoned.

Fixes FS#1913

Signed-off-by: Daniel Engberg <>
Signed-off-by: Hans Dedecker <>
2 years agotools/cmake: Update to 3.12.4
Daniel Engberg [Fri, 9 Nov 2018 06:38:30 +0000 (07:38 +0100)]
tools/cmake: Update to 3.12.4

Update cmake to 3.12.4

Signed-off-by: Daniel Engberg <>
2 years agougps: update to latest git HEAD
Alexander Couzens [Sun, 11 Nov 2018 01:31:41 +0000 (02:31 +0100)]
ugps: update to latest git HEAD

07528d43f9bc nmea.c: set _BSD_SOURCE to have timegm() & stime() on musl
b88037b6bf6a check timegm return code
ccabdf6c235f nmea.c: Add null byte to nmea fields
cdc1478a8133 remove deprication warning

Signed-off-by: Alexander Couzens <>
2 years agoRevert "iptables: fix dependency for libip6tc on IPV6"
Petr Štetiar [Fri, 9 Nov 2018 11:09:29 +0000 (12:09 +0100)]
Revert "iptables: fix dependency for libip6tc on IPV6"

This patch reverts commit 2dc1f54b1205094e7c6036cae6275d2c326bad3e as it
breaks the build for me on x86-64 if I've IPV6 support disabled. Same config
builds fine on `openwrt-18.06` branch at 55d078b2.

  $ grep IPV6 .config

  # CONFIG_KERNEL_IPV6 is not set
  # CONFIG_IPV6 is not set

Build errors out on:

  Package libiptc is missing dependencies for the following libraries:

Looking at iptables-1.6.2/libiptc/

  libiptc_la_LIBADD   =

and to iptables-1.6.2/libiptc/

  Requires: libip4tc libip6tc

It seems that libiptc needs v4/v6 libs, so v6 isn't optional.

Cc: Rosy Song <>
Signed-off-by: Petr Štetiar <>
2 years agoethtool: update to 4.19
Hans Dedecker [Sat, 10 Nov 2018 12:40:45 +0000 (13:40 +0100)]
ethtool: update to 4.19

8a1ad80 Release version 4.19.
ecdf295 ethtool: Fix uninitialized variable use at qsfp dump
98c148e ethtool: better syntax for combinations of FEC modes
d4b9f3f ethtool: support combinations of FEC modes

Signed-off-by: Hans Dedecker <>
2 years agobcm53xx: add DT patch describing pins mux controller
Rafał Miłecki [Fri, 9 Nov 2018 21:28:31 +0000 (22:28 +0100)]
bcm53xx: add DT patch describing pins mux controller

It's needed to support new devices that use specific pin functions.

Signed-off-by: Rafał Miłecki <>
2 years agomt76: update to the latest version
Felix Fietkau [Fri, 9 Nov 2018 14:26:05 +0000 (15:26 +0100)]
mt76: update to the latest version

ffccb48 mt76: do not wake tx queues during flush

Signed-off-by: Felix Fietkau <>
2 years agokernel: deprecate support for the generic "linux,part-probe" DT binding
Rafał Miłecki [Fri, 9 Nov 2018 13:57:45 +0000 (14:57 +0100)]
kernel: deprecate support for the generic "linux,part-probe" DT binding

It has been rejected upstream and instead a nice/more generic solution
has been implemented. It's possible now to describe partitions format
using "compatible" DT string.

No OpenWrt target uses "linux,part-probe" anymore, leave it only in case
some forks need it. It will be dropped with support for new kernels.

Signed-off-by: Rafał Miłecki <>
2 years agotools: firmware-utils: mksercommfw build on Darwin
Kevin Darbyshire-Bryant [Thu, 8 Nov 2018 21:35:17 +0000 (21:35 +0000)]
tools: firmware-utils: mksercommfw build on Darwin

asm/byteorder.h & hence __cpu_to_be32() doesn't exist on Darwin

Shamelessly copy some byte swap functions from oseama.c

Acked-by: Koen Vandeputte <>
Signed-off-by: Kevin Darbyshire-Bryant <>
2 years agoramips: use separated mtd patch reverting write_page() removal
Rafał Miłecki [Fri, 9 Nov 2018 12:30:51 +0000 (13:30 +0100)]
ramips: use separated mtd patch reverting write_page() removal

This helps understanding mtd changes needed to get downstream NAND
driver working.

Signed-off-by: Rafał Miłecki <>
2 years agopopt: Add main site back to PKG_SOURCE_URL
Daniel Engberg [Wed, 7 Nov 2018 21:44:36 +0000 (22:44 +0100)]
popt: Add main site back to PKG_SOURCE_URL

Main site is back up after weeks of downtime.
Add it back as last resort

Signed-off-by: Daniel Engberg <>
2 years agobcm53xx: update pinctrl driver
Rafał Miłecki [Fri, 9 Nov 2018 06:40:42 +0000 (07:40 +0100)]
bcm53xx: update pinctrl driver

It's upstream now with a one trivial fix.

Signed-off-by: Rafał Miłecki <>
2 years agoprocd: update to latest git HEAD
Hans Dedecker [Thu, 8 Nov 2018 13:46:56 +0000 (14:46 +0100)]
procd: update to latest git HEAD

20192e4 watchdog: improve seting watchdog timeout and frequency

Signed-off-by: Hans Dedecker <>
2 years agooxnas: remove superseded sysupgrade image check
Daniel Golle [Mon, 5 Nov 2018 18:04:48 +0000 (19:04 +0100)]
oxnas: remove superseded sysupgrade image check

Signed-off-by: Daniel Golle <>
2 years agooxnas: kd20: correct memory size to 256MB
Daniel Golle [Mon, 5 Nov 2018 17:17:35 +0000 (18:17 +0100)]
oxnas: kd20: correct memory size to 256MB

Signed-off-by: Daniel Golle <>
2 years agoramips: fix netgear r6120 factory image generation
Koen Vandeputte [Thu, 8 Nov 2018 11:46:37 +0000 (12:46 +0100)]
ramips: fix netgear r6120 factory image generation

as indicated in commit c5bf408ed6bd "(ramips: fix image generation for mt76x8")
more rework was needed to fix the other issues.

Building on another machine, but using the same arch, showed
the application failing again for different reasons.

Fix this by completely rewriting the application, fixing following found issues:

- buffer overflows, resulting in stack corruption
- flaws in memory requirement calculations (too small, too large)
- memory leaks
- missing bounds checking on string handling
- non-reproducable images, by using unitilized memory in checksum calculation
- missing error handling, resulting in succes on specific image errors
- endianness errors when building on BE machines
- various minor build warnings
- documentation did not match the code actions (header item locations)
- allowing input to be decimal, hex or octal now

Signed-off-by: Koen Vandeputte <>
2 years agoscript: ipkg-build: honour $SOURCE_DATE_EPOCH
Jo-Philipp Wich [Thu, 8 Nov 2018 10:52:33 +0000 (11:52 +0100)]
script: ipkg-build: honour $SOURCE_DATE_EPOCH

When the SOURCE_DATE_EPOCH environment variable is set, use it to
override the timestamps of .ipk archive contents.

This ensures that .ipk archives built in environments without SCM
metadata (mainly the SDK) are reproducible between different runs.

Signed-off-by: Jo-Philipp Wich <>
2 years agoiproute2: update to 4.19.0
Hans Dedecker [Mon, 5 Nov 2018 14:32:48 +0000 (15:32 +0100)]
iproute2: update to 4.19.0

Update to the latest version of iproute2; see
for a full overview of the changes in 4.19.
Remove 190-add-cake-to-tc patch as CAKE qdisc is now supported in 4.19.0

Signed-off-by: Hans Dedecker <>
2 years agomt76: update to the latest version, fix a typo
Felix Fietkau [Thu, 8 Nov 2018 08:17:18 +0000 (09:17 +0100)]
mt76: update to the latest version, fix a typo

29d9532 mt7603: fix faulty variable initialization in last commit

Signed-off-by: Felix Fietkau <>
2 years agomt76: update to the latest version
Felix Fietkau [Wed, 7 Nov 2018 19:35:23 +0000 (20:35 +0100)]
mt76: update to the latest version

417cf49 mt7603: improve recovery from MCU hang

Signed-off-by: Felix Fietkau <>
2 years agomac80211: brcmfmac: backport the last accepted 4.21 changes
Rafał Miłecki [Wed, 7 Nov 2018 10:16:25 +0000 (11:16 +0100)]
mac80211: brcmfmac: backport the last accepted 4.21 changes

It's a typo fix & patch that helps debugging possible WARN-ings.

Signed-off-by: Rafał Miłecki <>
2 years agomac80211: brcmfmac: backport NVRAM loading improvements
Rafał Miłecki [Wed, 7 Nov 2018 10:06:16 +0000 (11:06 +0100)]
mac80211: brcmfmac: backport NVRAM loading improvements

This adds support for storing board specific NVRAM files as firmware.

Signed-off-by: Rafał Miłecki <>
2 years agomac80211: brcmfmac: backport firmware loading cleanup
Rafał Miłecki [Wed, 7 Nov 2018 08:43:14 +0000 (09:43 +0100)]
mac80211: brcmfmac: backport firmware loading cleanup

Signed-off-by: Rafał Miłecki <>
2 years agomac80211: brcmfmac: backport the latest 4.20 changes
Rafał Miłecki [Wed, 7 Nov 2018 08:01:32 +0000 (09:01 +0100)]
mac80211: brcmfmac: backport the latest 4.20 changes

Signed-off-by: Rafał Miłecki <>
2 years agomac80211: brcmfmac: rename 4.20 backport patches
Rafał Miłecki [Wed, 7 Nov 2018 07:52:46 +0000 (08:52 +0100)]
mac80211: brcmfmac: rename 4.20 backport patches

Include kernel version to help tracking changes.

Signed-off-by: Rafał Miłecki <>
2 years agomt76: update to the latest version
Felix Fietkau [Tue, 6 Nov 2018 21:25:06 +0000 (22:25 +0100)]
mt76: update to the latest version

172f081 mt76x0: do not overwrite other MT_BBP(AGC, 8) fields
2ae2046 mt76x0: phy: use mt76_poll_msec in mt76x0_phy_temp_sensor
add66a0 mt76x0: init: use mt76x02_mac_shared_key_setup in mt76x0_init_hardware
1f24db9 mt76x2: move wcid_tx_rate conf at bootstrap
097b2bd mt76x0: init: use mt76x02_mac_wcid_setup for wcid configuration
d0eb03e mt76x2u: init: remove not useful configuration
c7aa8f4 mt76x2u: init: use common routines for wcid/key initialization
bd568d9 mt76: move mt76x02_eeprom_copy in mt76x02-lib module
57b441d mt76x0: phy: introduce tssi calibration support
a78802c mt76x0: phy: use tssi reported value to configure tx power if available
94ad030 mt76: remove mcu_msg_alloc
15cb426 mt76: remove wait argument from mt76x02_mcu_function_select
cd76a83 mt76: remove wait argument from mt76x02_mcu_set_radio_state
9b97e0f mt76x02: run calibration after scanning
663b197 mt76x02: assure we update gain after scan
eb53745 mt76x0: dfs: fix IBI_R11 configuration on non-radar channels
ef06c30 mt76: avoid queue/status spinlocks while passing tx status to mac80211
5195257 mt7603: fix maximum rx frame size
01815e9 mt7603: use mutex from struct mt76_dev
3c8e8a7 mt7603: use irq_lock/irqmask from struct mt76_dev
8b7f50d mt76: add size check for additional rx fragments
87bad3a mt7603: stop MAC on watchdog reset
c34baab mt7603: add missing unlock in case changing the channel fails
ac6fc78 mt7603: add debugfs file to trigger watchdog resets
d9b5324 mt7603: add SPDX license identifiers
498d716 mt7603: fix checkpatch issues
a1afefd mt7603: fix handling of fixed rate packets
5ee0523 mt7603: fix tx status rate reporting for fixed-rate packets

Signed-off-by: Felix Fietkau <>
2 years agoramips: add missing DTS frequency limit for the 5 GHz radio on Archer C20i
Felix Fietkau [Tue, 6 Nov 2018 21:24:03 +0000 (22:24 +0100)]
ramips: add missing DTS frequency limit for the 5 GHz radio on Archer C20i

Signed-off-by: Felix Fietkau <>
2 years agovalgrind: bump to 4.14.0
Koen Vandeputte [Tue, 6 Nov 2018 15:33:09 +0000 (16:33 +0100)]
valgrind: bump to 4.14.0

Release notes can be found here:

Signed-off-by: Koen Vandeputte <>
2 years agoramips: fix image generation for mt76x8
Koen Vandeputte [Tue, 6 Nov 2018 14:10:17 +0000 (15:10 +0100)]
ramips: fix image generation for mt76x8

Buildbot fails to generate images for targets also generating a
Sercomm binary with following error:

Opening file: /mnt/ramdisk/koen/firmware/builds/owrt_mt76x8/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/tmp/
Filesize: 3648606 .
mksercommfw: malloc.c:2427: sysmalloc: Assertion `(old_top == initial_top (av) && old_size == 0) || ((unsigned long) (old_size) >= MINSIZE && prev_inuse (old_top) && ((unsigned long) old_end & (pagesize - 1)) == 0)' failed.
Makefile:287: recipe for target '/mnt/ramdisk/koen/firmware/builds/owrt_mt76x8/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/tmp/openwrt-ramips-mt76x8-netgear_r6120-squashfs-factory.img' failed

Debugging using valgrind shows stack corruption due to a buffer overflow.
The author of the generator assumes the filename ends with "root",
while it should be "rootfs".

Fix this by accounting for the 2 missing characters which solves the build issues.

More work is required to cleanup this source, which will be done later on.

Reported-by: Hannu Nyman <>
Signed-off-by: Koen Vandeputte <>
2 years agoimx6: fix DMA transaction errors
Koen Vandeputte [Mon, 5 Nov 2018 16:41:00 +0000 (17:41 +0100)]
imx6: fix DMA transaction errors

Following errors were seen in the past on imx6 when using serial:

[ 22.617622] imx-uart 2020000.serial: DMA transaction error.
[ 22.623228] imx-uart 2020000.serial: DMA transaction error.
[ 22.628826] imx-uart 2020000.serial: DMA transaction error.
[ 22.648951] imx-uart 2020000.serial: DMA transaction error.
[ 22.654558] imx-uart 2020000.serial: DMA transaction error.
[ 22.660156] imx-uart 2020000.serial: DMA transaction error.

Which is the reason why DMA for the serial ports
got disabled in commits:

efb362cd93b0 ("imx6: disable dma on uart")
3b4241071dd4 ("imx6: disable UART dma")

As indicated on mailinglist discussion, the cause seems to be
the usage of very old SDMA firmware which is present in the soc:

[    0.624302] imx-sdma 20ec000.sdma: Direct firmware load for imx/sdma/sdma-imx6q.bin failed with error -2
[    0.624318] imx-sdma 20ec000.sdma: Falling back to user helper
[   64.531607] imx-sdma 20ec000.sdma: external firmware not found, using ROM firmware

This patch adds the new firmware binary. (2196 bytes)

It is required to embed the binary into the kernel image, as it
gets loaded very early in the boot process where the rootfs is not
available yet:

[    0.622966] imx-sdma 20ec000.sdma: loaded firmware 3.3

Extended testing shows that the DMA errors are not seen anymore
when using this newer firmware version.

Signed-off-by: Koen Vandeputte <>
2 years agoath9k: fix dynack in IBSS mode
Koen Vandeputte [Mon, 5 Nov 2018 10:31:12 +0000 (11:31 +0100)]
ath9k: fix dynack in IBSS mode

Currently, dynack was only tested upstream using AP/STA mode.
Testing it on IBSS, showed that late-ack detection was broken.

This is caused due to dynack using Association Request/Response
frames for late-ack detection, which IBSS does not use.
Also allowing Authentication frames here solves this.

A second issue also got fixed, which was also seen AP/STA mode:

When a station was added, the estimated value would be exponentially averaged
using 0 as a starting point.

This means that on larger distances, the ack timeout was still not high
enough before synchronizing would run out of late-ack's for estimation.

Fix this by using the initial estimated value as a baseline
and only start averaging in the following estimation rounds.

Test setup:
- 2x identical devices:  RB912UAG-5HPnD + 19dB sector
- 2x2 802.11an (ar9340), HT20, long GI
- RSSI's  -70 / -71
- Real distance: 23910 meter

Results (60s iperf runs):

Fixed coverage class 54 (up to 24300m):
* 21.5 Mbits/sec

* 28.9 Mbits/sec

Signed-off-by: Koen Vandeputte <>
2 years agoar71xx: disable some tiny targets with kernel 4.14
Koen Vandeputte [Mon, 5 Nov 2018 11:53:55 +0000 (12:53 +0100)]
ar71xx: disable some tiny targets with kernel 4.14

The bump to kernel 4.14 caused a massive increase in kernel size.

For most targets, switching them to dynamic partitioning allowed
to cope with this.

On some targets, the kernel partition is located behind the rootfs,
which disallows switching to dynamic partitioning as the boot location
would be altered, requiring a u-boot change.

Also within the tiny section, which disables kernel symbols etc
to decrease the image size,  the partition size is still too small.

Disable these targets for now, fixing image generation:

- Buffalo BHR-4GRV2
- Zbtlink ZBT-WE1526

Signed-off-by: Koen Vandeputte <>
2 years agokernel: bump 4.14 to 4.14.79
Koen Vandeputte [Mon, 5 Nov 2018 10:22:43 +0000 (11:22 +0100)]
kernel: bump 4.14 to 4.14.79

Refreshed all patches.

Compile-tested on: ar71xx, cns3xxx, imx6, x86_64
Runtime-tested on: ar71xx, cns3xxx, imx6, x86_64

Signed-off-by: Koen Vandeputte <>
2 years agoglibc: update to latest 2.27 commit (BZ#23709,BZ#23822)
Hans Dedecker [Mon, 5 Nov 2018 13:19:33 +0000 (14:19 +0100)]
glibc: update to latest 2.27 commit (BZ#23709,BZ#23822)

d8eee5ef55 x86: Fix Haswell CPU string flags (BZ#23709)
5cd5309d91 i64: fix missing exp2f, log2f and powf symbols in libm.a [BZ #23822]
1759ea197b conform: XFAIL siginfo_t si_band test on sparc64

Signed-off-by: Hans Dedecker <>
2 years agotools/bison: update to version 3.2
Hannu Nyman [Sun, 4 Nov 2018 15:42:09 +0000 (17:42 +0200)]
tools/bison: update to version 3.2

Update bison to version 3.2

Signed-off-by: Hannu Nyman <>
2 years agoipq40xx: fix NBG6617 LED mapping
David Bauer [Sun, 4 Nov 2018 15:01:39 +0000 (16:01 +0100)]
ipq40xx: fix NBG6617 LED mapping

The NBG6617's LEDs are wrongly identified in the 01_leds boardinit
script (board instead of boardname), resulting in referencing
non-existent LEDs in UCI.

Signed-off-by: David Bauer <>
2 years agooxnas: add console=ttyS0,115200 argument to bootargs
Daniel Golle [Sun, 4 Nov 2018 17:26:28 +0000 (18:26 +0100)]
oxnas: add console=ttyS0,115200 argument to bootargs

Signed-off-by: Daniel Golle <>
2 years agooxnas: enable image metadata by setting SUPPORTED_DEVICES
Daniel Golle [Sun, 4 Nov 2018 17:24:57 +0000 (18:24 +0100)]
oxnas: enable image metadata by setting SUPPORTED_DEVICES

For each board, set the legacy name as well as the new based on the
compatible-string from devicetree.

Signed-off-by: Daniel Golle <>
2 years agooxnas: remove stray kernel config symbols
Daniel Golle [Sun, 4 Nov 2018 17:23:51 +0000 (18:23 +0100)]
oxnas: remove stray kernel config symbols

CONFIG_CRYPTO_* shouldn't be set by the target

Signed-off-by: Daniel Golle <>
2 years agooxnas: switch to generic board detect
Daniel Golle [Sun, 4 Nov 2018 17:22:33 +0000 (18:22 +0100)]
oxnas: switch to generic board detect

remove /lib/ platform-specific board-detection and use
generic which is based on device-tree compatible node instead.

Signed-off-by: Daniel Golle <>
2 years agoiperf: allow non-ipv6 builds
Alexander Couzens [Sat, 3 Nov 2018 00:22:59 +0000 (01:22 +0100)]
iperf: allow non-ipv6 builds

Add configure argument --disable-ipv6 when ipv6 is deselected.
Add fix-non-ipv6-builds.patch as long there is no new upstream

Signed-off-by: Alexander Couzens <>
2 years agoramips: fix leds on GL.iNet GL-MT300N-V2
Martin Weinelt [Fri, 2 Nov 2018 19:52:01 +0000 (20:52 +0100)]
ramips: fix leds on GL.iNet GL-MT300N-V2

The WAN LED now shows the link state. It's color is green,
not blue.

Signed-off-by: Martin Weinelt <>
2 years agocurl: noop commit to refer CVEs fixed in 7.62.0
Hans Dedecker [Fri, 2 Nov 2018 12:05:13 +0000 (13:05 +0100)]
curl: noop commit to refer CVEs fixed in 7.62.0

When bumping Curl to 7.62.0 in commit 278e4eba09 I did not include the fixed
CVEs in the commit message; this commit fixes this.

The following CVEs were fixed in 7.62.0 :


Signed-off-by: Hans Dedecker <>
2 years agoipq-wifi: drop custom board-2.bins
Christian Lamparter [Mon, 22 Oct 2018 21:47:56 +0000 (23:47 +0200)]
ipq-wifi: drop custom board-2.bins

The BDFs for all boards were upstreamed to the ath10k-firmware
repository and linux-firmware.git.

We switched to the upstream board-2.bin, hence the files can be removed

Keep the ipq-wifi package in case new boards are added. It might take
some time till board-2.bins send upstream are merged.

Signed-off-by: Christian Lamparter <>
2 years agoipq40xx: nbg6617: switch to upstream boardfile variant
Christian Lamparter [Mon, 22 Oct 2018 21:47:55 +0000 (23:47 +0200)]
ipq40xx: nbg6617: switch to upstream boardfile variant

The NBG6617's boardfile was merged and this device can
now switch to the upstream ath10k board-2.bin.

Signed-off-by: Christian Lamparter <>
2 years agoath10k-firmware: update board-2.bin for community firmwares
Christian Lamparter [Mon, 22 Oct 2018 21:47:54 +0000 (23:47 +0200)]
ath10k-firmware: update board-2.bin for community firmwares

This patch updates the board-2.bin for the default
IPQ4019, QCA9984 and QCA9888 ath10k-firmware-xyz-ct
and -ct-htt firmwares.

Signed-off-by: Christian Lamparter <>
2 years agoipq40xx: rt-ac58u: replace ubi auto load hack
Christian Lamparter [Mon, 22 Oct 2018 21:47:53 +0000 (23:47 +0200)]
ipq40xx: rt-ac58u: replace ubi auto load hack

This patch replaces the custom autoload quirk of the
RT-AC58U with a bootargs-append overwrite.

The vendor's u-boot doesn't leave the bootargs / cmdline alone,
so the it can't be overwritten in any other way right now...
And of course, this will be a lot of fun to deal with once
the device switches to the new spi-nand subsystem.

Signed-off-by: Christian Lamparter <>
2 years agokernel: Remove dependencies on old kernels
Rosen Penev [Sun, 28 Oct 2018 01:53:52 +0000 (18:53 -0700)]
kernel: Remove dependencies on old kernels

Kernels 4.1 and 4.4 are not part of the tree anymore.

Signed-off-by: Rosen Penev <>
2 years agotools/patch: Add fedora patch for crashing git style patches
Rosen Penev [Wed, 31 Oct 2018 23:55:14 +0000 (16:55 -0700)]
tools/patch: Add fedora patch for crashing git style patches

I assume a CVE number will be assigned soon.

Signed-off-by: Rosen Penev <>
2 years agolibconfig: Fix tarball filename (and URL)
Daniel Engberg [Fri, 19 Oct 2018 21:05:44 +0000 (23:05 +0200)]
libconfig: Fix tarball filename (and URL)

v$(PKG_VERSION).tar.gz is a bad idea and will clash for obvious reasons.

Signed-off-by: Daniel Engberg <>
2 years agoscripts: update config.guess and config.sub
Hauke Mehrtens [Thu, 1 Nov 2018 13:05:59 +0000 (14:05 +0100)]
scripts: update config.guess and config.sub

This updates these two files to commit 2fa97a8a0ed3 ("config.guess
(amd64:CYGWIN*:*:*, x86_64:CYGWIN*:*:*): Set master") which is the
current master of;a=summary

This contains updates for multiple architectures and will unbreak the
build on the x32 ABI.

Signed-off-by: Hauke Mehrtens <>
2 years agobuild: fix libressl build on x32 (amd64ilp32) host
Thorsten Glaser [Mon, 22 Oct 2018 19:00:57 +0000 (21:00 +0200)]
build: fix libressl build on x32 (amd64ilp32) host

disable use of assembly code since x32 gets misdetected as amd64

Signed-off-by: Thorsten Glaser <>
2 years agouboot-mxs: bump to v2018.09
Michael Heimpold [Sun, 28 Oct 2018 14:26:08 +0000 (15:26 +0100)]
uboot-mxs: bump to v2018.09

Also update the U-Boot BSP patch for I2SE Duckbill devices
and remove upstreamed patch for LibreSSL support.

Signed-off-by: Michael Heimpold <>
2 years agotools/ccache: update to 3.5
Hannu Nyman [Sun, 28 Oct 2018 14:49:28 +0000 (16:49 +0200)]
tools/ccache: update to 3.5

Update ccache to 3.5

Signed-off-by: Hannu Nyman <>
2 years agomwlwifi: update to version
Kabuli Chana [Mon, 29 Oct 2018 16:58:07 +0000 (10:58 -0600)]
mwlwifi: update to version

compile / test target mvebu / mamba

Signed-off-by: Kabuli Chana <>
2 years agokernel: add kmod-usb-serial-mos7840
Thomas Fuzeau [Tue, 30 Oct 2018 11:06:22 +0000 (12:06 +0100)]
kernel: add kmod-usb-serial-mos7840

Enable build of kernel module for mos7840 usb-serial devices.

Signed-off-by: Thomas Fuzeau <>
2 years agocurl: bump to 7.62.0
Hans Dedecker [Wed, 31 Oct 2018 21:58:54 +0000 (22:58 +0100)]
curl: bump to 7.62.0

Refresh patches, for changes in version 7.62.0 see

Signed-off-by: Hans Dedecker <>
2 years agoopenssl: enable OPENSSL_WITH_DEPRECATED when OpenSSL is built as a build dep
Matthias Schiffer [Tue, 30 Oct 2018 19:38:34 +0000 (20:38 +0100)]
openssl: enable OPENSSL_WITH_DEPRECATED when OpenSSL is built as a build dep

Some package (e.g. libunbound) depend on OPENSSL_WITH_DEPRECATED. In some
situations it may happen that libunbound and openssl are only pulled in as
build dependencies, but are not enabled in .config.

In such cases, the defaults of symbols like OPENSSL_WITH_DEPRECATED are
ignored (as the whole symbol depends on PACKAGE_libopenssl), and config
symbol dependencies of libunbound aren't effective either (as libunbound
is not actually enabled).

This commit works around the issue by introducing a hidden negated symbol
OPENSSL_NO_DEPRECATED, which is always disabled when PACKAGE_libopenssl is
disabled, and ensures that OpenSSL is built with deprecated APIs in this
case. A user can still manage to break the build by explicitly enabling
libopenssl and disabling OPENSSL_WITH_DEPRECATED; the interaction between
build dependencies and config symbols will require further discussion.

Signed-off-by: Matthias Schiffer <>
2 years agodnsmasq: tighten config file permissions
Kevin Darbyshire-Bryant [Thu, 11 Oct 2018 08:46:42 +0000 (09:46 +0100)]
dnsmasq: tighten config file permissions

Install following as config files (600) perms instead of as data (644)


dnsmasq reads relevant config files before dropping root privilege and
running as dnsmasq:dnsmasq

ntpd runs as root so the hotplug script is still accessible

Signed-off-by: Kevin Darbyshire-Bryant <>
2 years agoar71xx: expand kernel size for ubnt targets
Koen Vandeputte [Mon, 29 Oct 2018 14:48:10 +0000 (15:48 +0100)]
ar71xx: expand kernel size for ubnt targets

Kernel 4.14 is pretty large causing a build error as the partition is too small.
Expand the kernel partition a bit to make it fit.

* ubnt-uap-pro
* ubnt-unifi-outdoor-plus

Signed-off-by: Koen Vandeputte <>
2 years agoar71xx: disable ap91-5g due to kernel size
Koen Vandeputte [Mon, 29 Oct 2018 14:44:54 +0000 (15:44 +0100)]
ar71xx: disable ap91-5g due to kernel size

This target causes a build failure as the kernel image does not fit
into the kernel partition.

As the kernel is located behind the rootfs, it cannot be enlarged
as the boot entry location would get altered.

Disable this target for now.

Signed-off-by: Koen Vandeputte <>
2 years agoar71xx: fix sysupgrade generation for some targets
Koen Vandeputte [Wed, 24 Oct 2018 12:44:30 +0000 (14:44 +0200)]
ar71xx: fix sysupgrade generation for some targets

These targets are already defined as having a dynamic partition
but the safeloader was not adapted for them.

This causes a build warning for the sysupgrade image being too big.

- c58-v1
- c60-v1
- c60-v2
- TL-WR1043 v5
- TL-WR902AC v1
- TL-WR942N V1

Signed-off-by: Koen Vandeputte <>
2 years agoar71xx: switch more targets to dynamic partitioning
Koen Vandeputte [Wed, 24 Oct 2018 12:49:07 +0000 (14:49 +0200)]
ar71xx: switch more targets to dynamic partitioning

- TP-LINK C25 V1
- TP-LINK C59 V1

Fixes build issues seen due to the kernel being too big

Signed-off-by: Koen Vandeputte <>
2 years agoar71xx: switch TP-Link RE450 v1 to dynamic partitioning
Radek Dostál [Mon, 22 Oct 2018 20:34:17 +0000 (22:34 +0200)]
ar71xx: switch TP-Link RE450 v1 to dynamic partitioning

As mentioned in commit 5f24933 recent changes on ar71xx (switch to 4.14,
memory compaction, ...) cause an increase in kernel size, making it too
big for RE450.

RE450 images were not build due to the following error message:
os-image partition too big (more than 1572864 bytes): Success

Tested on RE450, device boots and was used to send this patch.

Reported-by: Enrico Mioso <>
Suggested-by: David Bauer <>
Signed-off-by: Radek Dostál <>
[rewrote commit msg keeping it tight + fixed SoB lines]
Signed-off-by: Koen Vandeputte <>
2 years agoar71xx: move OCEDO Koala to generic and use dynamic partitioning
David Bauer [Thu, 18 Oct 2018 18:43:42 +0000 (20:43 +0200)]
ar71xx: move OCEDO Koala to generic and use dynamic partitioning

This changes the OCEDO Koala flash-layout to a unified firmware
partition, thus making the ar71xx-generic kernel fit in flash.

Compile and runtested on OCEDO Koala.

Signed-off-by: David Bauer <>
[small title reword]
Signed-off-by: Koen Vandeputte <>
2 years agoath79: fix PQI Air Pen support
Mathias Kresin [Sun, 28 Oct 2018 10:03:49 +0000 (11:03 +0100)]
ath79: fix PQI Air Pen support

Use the correct dts filename. It has to be <soc>_<manufacturer>_<device>.

Signed-off-by: Mathias Kresin <>
2 years agoath79: add support for PQI Air Pen
YuheiOKAWA [Thu, 4 Oct 2018 16:08:51 +0000 (01:08 +0900)]
ath79: add support for PQI Air Pen

SoC: AR9330 (or AR9331 revision?)
Ethernet x1, Wireless 2.4G, uSD card slot x1.
USB Power, include Li-Po Battery.

Flash 8MiB. (factory is dual image)
1. write image is use half 4MiB size from factory.
  write initramfs image to mtd6 and mtd7.
2. change next boot setting. next is mtd6 boot.
  echo -ne "\x01" | dd of=/dev/mtdblock8 conv=notrunc bs=1 count=1 seek=0

3. rewrite sysupgrade image.
  change next boot setting. next is mtd4.
  echo -ne "\x00" | dd of=/dev/mtdblock8 conv=notrunc bs=1 count=1 seek=0

OEM mtd.
dev:    size   erasesize  name
mtd0: 00040000 00010000 "u-boot"
mtd1: 00010000 00010000 "u-boot-env"
mtd2: 00010000 00010000 "ART"
mtd3: 00010000 00010000 "NVRAM"
mtd4: 00140000 00010000 "uImage"
mtd5: 00280000 00010000 "rootfs"
mtd6: 00140000 00010000 "uImage2"
mtd7: 00280000 00010000 "rootfs2"
mtd8: 00010000 00010000 "CONF"

Signed-off-by: YuheiOKAWA <>
2 years agoath79: Add support for Ubiquiti LiteAP ac (LAP-120)
Roger Pueyo Centelles [Wed, 19 Sep 2018 12:17:35 +0000 (14:17 +0200)]
ath79: Add support for Ubiquiti LiteAP ac (LAP-120)

This commit adds support for the Ubiquiti LiteAP ac (LAP-120), an outdoor
5 GHz AC access point with an integrated 120° 16 dBi antenna. The device
was previously known as LiteBeam AP ac but was later rebranded.

CPU:    Atheros AR9342 SoC
RAM:    64 MB DDR2
Flash:  16 MB NOR SPI
Ports:  1 GbE port (PoE in)
WLAN:   5 GHz QCA899X (PCI)

The integrated QCA899X is a Ubiquiti branded part with modified vendor
and product id (0777:11ac9). It is very similar to the NanoStation loco
AC, except for the 2.4 GHz management radio (missing here).

Installation procedure is the same as the NanoStation [loco] AC:

1. Connect to serial header on device
2. Power on device and enter uboot console
3. Set up tftp server serving an openwrt initramfs build
4. Load initramfs build using the command tftpboot in the uboot cli
5. Boot the loaded image using the command bootm
6. Copy squashfs openwrt sysupgrade build to the booted device
7. Use mtd to write sysupgrade to partition "firmware"
8. Reboot and enjoy

Signed-off-by: Roger Pueyo Centelles <>
2 years agomt76: update to the latest version
Felix Fietkau [Sat, 27 Oct 2018 15:54:36 +0000 (17:54 +0200)]
mt76: update to the latest version

fdc63f1 mt76: fix regression in tx status handling

Signed-off-by: Felix Fietkau <>
2 years agomt76: Fix dependencies for PCI support
Daniel Engberg [Wed, 10 Oct 2018 11:04:31 +0000 (13:04 +0200)]
mt76: Fix dependencies for PCI support

USB support doesn't necessarily mean that there's
PCI support available so move that to the drivers
which requires PCI support. This applies to the
sunxi platform for instance.

Signed-off-by: Daniel Engberg <>
Signed-off-by: Felix Fietkau <> [fix mt76x0e]
2 years agomt76: update to the latest version
Felix Fietkau [Thu, 25 Oct 2018 20:48:49 +0000 (22:48 +0200)]
mt76: update to the latest version

0b8b15f mt7603: use common mmio mcu struct
d612e2e mt76: mt76x02: skip station tx status for non-sta wcid entries
d89d84b mt76: mt76x02: only override control->sta on sw-encrypted tx
9d59d2a mt76: add support for reporting tx status with skb
ed17ba2 mt7603: use common tx status handling code
14b6c59 mt76x0: use band parameter for LC calibration

Signed-off-by: Felix Fietkau <>
2 years agogrub2: fix regression caused by binutils-2.31.1
Philip Prindeville [Sun, 21 Oct 2018 02:23:12 +0000 (20:23 -0600)]
grub2: fix regression caused by binutils-2.31.1

grub-efi no longer works:

grub-mkimage: error: relocation 0x4 is not implemented yet.


Signed-off-by: Philip Prindeville <>
Signed-off-by: Hans Dedecker <>i [PKG_RELEASE increase]