openwrt/staging/dedeckeh.git
6 years agonetifd: update to latest git HEAD
Daniel Golle [Fri, 20 Apr 2018 05:36:36 +0000 (07:36 +0200)]
netifd: update to latest git HEAD

b3dca7b wireless: include noscan option in common wdev vars

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
6 years agobuild: fix uImage fake header command
Mathias Kresin [Thu, 19 Apr 2018 17:09:11 +0000 (19:09 +0200)]
build: fix uImage fake header command

Use a syntax compatible with mkimage from u-boot 2018.03 to fix the
build errors spotted by the build bot.

The images are binary identical to the ones generated with mkimage from
u-boot 2014.10.

Signed-off-by: Mathias Kresin <dev@kresin.me>
6 years agoodhcpd: update to latest git HEAD (FS#1457)
Hans Dedecker [Thu, 19 Apr 2018 13:30:37 +0000 (15:30 +0200)]
odhcpd: update to latest git HEAD (FS#1457)

dcfc06a router: fix managed address configuration setting

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
6 years agomac80211: join 5GHz checks
Leon M. George [Wed, 10 Jan 2018 16:20:22 +0000 (17:20 +0100)]
mac80211: join 5GHz checks

Before this commit, devices supporting both 2.4GHz and 5GHz would be
configured for 2.4GHz by default - unless they have VHT capabilities.

With this commit, channel 36 is only set when the frequency is supported.
VHT isn't checked unless that is the case.

Signed-off-by: Leon M. George <leon@georgemail.eu>
6 years agotoolchain/glibc: unset LD_LIBRARY_PATH
Hyeonsik Song [Mon, 5 Mar 2018 07:57:45 +0000 (16:57 +0900)]
toolchain/glibc: unset LD_LIBRARY_PATH

Fix build error when use glibc

Signed-off-by: Hyeonsik Song <blogcin@naver.com>
6 years agonetwork/uqmi: pipe the output off qmi_wds_stop to /dev/null
Florian Eckert [Fri, 8 Sep 2017 11:11:07 +0000 (13:11 +0200)]
network/uqmi: pipe the output off qmi_wds_stop to /dev/null

Pipe uqmi output from qmi_wds_stop function into /dev/null.
This will supress the following output in proto teardown.

netifd: wwan (x): "No effect"
netifd: wwan (x): Command failed: Permission denied

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
6 years agoorion: remove linux 4.4 support
Felix Fietkau [Mon, 9 Apr 2018 07:56:38 +0000 (09:56 +0200)]
orion: remove linux 4.4 support

Signed-off-by: Felix Fietkau <nbd@nbd.name>
6 years agoomap: remove linux 4.4 support
Felix Fietkau [Mon, 9 Apr 2018 07:56:21 +0000 (09:56 +0200)]
omap: remove linux 4.4 support

Signed-off-by: Felix Fietkau <nbd@nbd.name>
6 years agomvebu: drop linux 4.4 and 4.9 support
Felix Fietkau [Mon, 9 Apr 2018 07:49:44 +0000 (09:49 +0200)]
mvebu: drop linux 4.4 and 4.9 support

Signed-off-by: Felix Fietkau <nbd@nbd.name>
6 years agotools: mkimage: provide dtc path during build
Jo-Philipp Wich [Thu, 19 Apr 2018 06:26:15 +0000 (08:26 +0200)]
tools: mkimage: provide dtc path during build

The new mkimage version requires a CONFIG_MKIMAGE_DTC_PATH variable to be
provided during build, in order to hardcode a path to a suitable DT
compiler executable.

Failure to do so will result in stray "sh: 1: -I: not found" errors when
invoking mkimage for FIT image generation.

Fix the issue by supplying "dtc" as CONFIG_MKIMAGE_DTC_PATH value during
build. As we intend our host utilities to be relocatable and since we're
already overriding PATH when invoking mkimage, an absolute path is not
required.

Fixes: b13e981d72 ("tools/mkimage: update to version 2018.03")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agopackage/utils/lua: cleanup source mirrors
Paul Wassi [Sun, 1 Apr 2018 16:18:18 +0000 (18:18 +0200)]
package/utils/lua: cleanup source mirrors

Remove inactive mirrors from the sources list.

Signed-off-by: Paul Wassi <p.wassi@gmx.at>
6 years agotools/mkimage: update to version 2018.03
Hauke Mehrtens [Sat, 14 Apr 2018 21:00:12 +0000 (23:00 +0200)]
tools/mkimage: update to version 2018.03

This activates support for fit images and some other new mkimage
features. Some of the patches were applied upstream and could be
removed.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 years agouboot-envtools: update to 2018.03
Luis Araneda [Fri, 6 Apr 2018 14:23:34 +0000 (11:23 -0300)]
uboot-envtools: update to 2018.03

Several changes has been made:

+ AES support has been removed by
  upstream commit c6831c7 (2017-11-14)
  [remove patch "200-fw_env_no_aes.patch"]

+ Support for UBI volumes has beed added by
  upstream commit 34255b9 (2017-11-15)
  [remove patch "300-support-env-in-ubivol-chardev.patch"]

+ A command line argument has beed added ("-c") to manually indicate
  the location of the environment configuration file

Also, patch "400-u-boot-2015.10-stdint.patch" is no longer
necessary, and the config option to enable UBI support has
been removed.

Size comparisons:

fw_printenv size:
Target    Before         After
ar71xx    15,189 bytes   18,133 bytes (+2,944 bytes)
ipq40xx   20,873 bytes   20,987 bytes (+114 bytes)
mvebu     20,881 bytes   20,991 bytes (+110 bytes)
ramips    15,128 bytes   18,072 bytes (+2,944 bytes)

OPKG package size:
Target    Before         After
ar71xx    11,309 bytes   12,875 bytes (+1,566 bytes)
ipq40xx   11,772 bytes   13,299 bytes (+1,527 bytes)
mvebu     11,609 bytes   13,114 bytes (+1,505 bytes)
ramips    10,975 bytes   12,503 bytes (+1,528 bytes)

Compile tested: ipq40xx (musl, glibc, gcc5-musl), ar71xx, mvebu, ramips
Run tested: ipq40xx (ASUS RT-AC58U)

Signed-off-by: Luis Araneda <luaraneda@gmail.com>
6 years agoustream-ssl: px5g: Rebuild package
Hauke Mehrtens [Sat, 14 Apr 2018 12:33:46 +0000 (14:33 +0200)]
ustream-ssl: px5g: Rebuild package

mbedtls changed in version 2.7.0 the soversion of the libmbedcrypto.so
library, all applications using this shared library have to be
recompiled to be able to load the new library.

Some binaries got rebuild to for the 2.7.0 release and are now using
libmbedcrypto.so.1, the older ones are still using libmbedcrypto.so.0.

Fixes: 75c5ab4ca ("mbedtls: update to version 2.7.0")
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 years agomwlwifi: update to version 10.3.4.0-2018-03-30
Kabuli Chana [Fri, 30 Mar 2018 16:35:47 +0000 (10:35 -0600)]
mwlwifi: update to version 10.3.4.0-2018-03-30

Upgrade 88W8964 firmware to 9.3.2.6

Signed-off-by: Kabuli Chana <newtownBuild@gmail.com>
6 years agomac80211: ipw2200-fw: fix download mirror(s)
Stefan Lippers-Hollmann [Tue, 10 Apr 2018 20:24:27 +0000 (22:24 +0200)]
mac80211: ipw2200-fw: fix download mirror(s)

bughost.org hasn't existed for 6-8 years, add a couple of current
mirrors to avoid the fallback to http://mirror2.openwrt.org/sources/.

Signed-off-by: Stefan Lippers-Hollmann <s.l-h@gmx.de>
6 years agomac80211: ipw2100-fw: fix download mirror(s)
Stefan Lippers-Hollmann [Tue, 10 Apr 2018 20:20:49 +0000 (22:20 +0200)]
mac80211: ipw2100-fw: fix download mirror(s)

bughost.org hasn't existed for 6-8 years, add a couple of current
mirrors to avoid the fallback to http://mirror2.openwrt.org/sources/.

Signed-off-by: Stefan Lippers-Hollmann <s.l-h@gmx.de>
6 years agoath10k-ct: make it depend on PCI support again
Hauke Mehrtens [Sun, 15 Apr 2018 10:47:43 +0000 (12:47 +0200)]
ath10k-ct: make it depend on PCI support again

The missing dependency causes build problems on systems without PCI
support.
The ath10k_pci kernel module depends on PCI support so this dependency
should be added. ath10k now also supported the ahb interface on the
IPQ4019 SoC, but this SoC also has PCI support so this extra dependency
is not as problem.

Fixes: d0f3dd5b9f34176 ("ath10k-ct: update to latest version, enable AHB.")
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 years agomac80211: ath10k: Suppress "Unknown eventid: 36925" warnings
Stefan Lippers-Hollmann [Tue, 27 Mar 2018 00:32:08 +0000 (02:32 +0200)]
mac80211: ath10k: Suppress "Unknown eventid: 36925" warnings

Merge upstream patch from Sathishkumar Muruganandam
<murugana@codeaurora.org> for OpenWrt's backports package:
https://lkml.kernel.org/r/<1522049641-19521-1-git-send-email-murugana@codeaurora.org>
Commit-ID: 606204bb863fa3b0bb54929d79b4dc46338f9180

* FW has Smart Logging feature enabled by default for detecting failures
* and processing FATAL_CONDITION_EVENTID (36925 - 0x903D) back to host.
*
* Since ath10k doesn't implement the Smart Logging and FATAL CONDITION
* EVENT processing yet, suppressing the unknown event ID warning by moving
* this under ATH10K_DBG_WMI.
*
* Simulated the same issue by having associated STA powered off when
* ping flood was running from AP backbone. This triggerd STA KICKOUT
* in AP followed by FATAL CONDITION event 36925.
*
* Issue was reproduced and verified in below DUT
* ------------------------------------------------
* AP mode of OpenWRT QCA9984 running 6.0.8 with FW ver 10.4-3.5.3-00053
*
* Signed-off-by: Sathishkumar Muruganandam <murugana@codeaurora.org>

Signed-off-by: Stefan Lippers-Hollmann <s.l-h@gmx.de>
6 years agomac80211: Fix loading of rsi_sdio module
Hauke Mehrtens [Wed, 18 Apr 2018 21:50:25 +0000 (23:50 +0200)]
mac80211: Fix loading of rsi_sdio module

When CONFIG_PM was not set rsi_sdio_reinit_device() was not compiled
into the driver but referenced.
This is a backport form the mainline Linux kernel.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 years agomac80211: add RedPine RS9113 module support
Evgeniy Didin [Wed, 4 Apr 2018 10:52:24 +0000 (13:52 +0300)]
mac80211: add RedPine RS9113 module support

RedPine RS9113 wireless module requires rsi91x driver to be built
and linux-firmware/rsi/rs9113_wlan_qspi.rps to be installed.
Also we add patch for successful compilation of rsi91x driver.

Signed-off-by: Evgeniy Didin <Evgeniy.Didin@synopsys.com>
Cc: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Hauke Mehrtens <hauke@hauke-m.de>
Cc: John Crispin <john@phrozen.org>
6 years agohostapd: mesh: make forwarding configurable
Daniel Golle [Wed, 18 Apr 2018 20:08:21 +0000 (22:08 +0200)]
hostapd: mesh: make forwarding configurable

For unencrypted mesh networks our scripts take care of setting
the various mesh_param values. wpa_supplicant changes somes of them
when being used for SAE encrypted mesh and previously didn't allow
configuring any of them. Add support for setting mesh_fwding (which
has to be set to 0 when using other routing protocols on top of
802.11s) and update our script to pass the value to wpa_supplicant.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
6 years agoRevert "mac80211: pass hostapd control socket to mesh-mode supplicant"
Daniel Golle [Wed, 18 Apr 2018 15:52:51 +0000 (17:52 +0200)]
Revert "mac80211: pass hostapd control socket to mesh-mode supplicant"

This reverts commit 1356a66f94f31e636fafec514a1c658356ef51b3.
The change breaks wpa_supplicant.conf generation, more work is needed
to fix mesh+AP.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
6 years agomt76: update to the latest version
Felix Fietkau [Wed, 18 Apr 2018 10:19:30 +0000 (12:19 +0200)]
mt76: update to the latest version

ec8435e mt76: initialize rx lock earlier
e08d5da mt76x2: fix is_mt7612 routine
e2eedc9 mt7603: retry PSE reset calls

Signed-off-by: Felix Fietkau <nbd@nbd.name>
6 years agokernel: fix an issue with infinite stack traces on MIPS
Felix Fietkau [Wed, 18 Apr 2018 09:21:01 +0000 (11:21 +0200)]
kernel: fix an issue with infinite stack traces on MIPS

Reproduced by enabling lockdep on MT7621

Signed-off-by: Felix Fietkau <nbd@nbd.name>
6 years agokernel: disable accept_ra by default
Matthias Schiffer [Thu, 12 Apr 2018 20:14:56 +0000 (22:14 +0200)]
kernel: disable accept_ra by default

Our commands setting accept_ra to 0 on all interfaces got lost in the
transition to procd. This remained unnoticed for a long time, as we also
enable forwarding on all interfaces, which prevents RA handling by default.

Restore the commands, while also fixing a possible race condition in the
old version.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
6 years agomt76: update to the latest version
Felix Fietkau [Tue, 17 Apr 2018 13:02:27 +0000 (15:02 +0200)]
mt76: update to the latest version

ea6dd6f mt7603: add missing spin lock init
2d08440 mt76: add rcu locking around tx scheduling
8c92c91 mt7603: turn vif wcid entry back into a full mt7603_sta
ca5cc9a mt76: fix concurrent rx calls on A-MPDU release

Signed-off-by: Felix Fietkau <nbd@nbd.name>
6 years agomediatek: enable ramdisk support by default
Felix Fietkau [Tue, 17 Apr 2018 11:47:54 +0000 (13:47 +0200)]
mediatek: enable ramdisk support by default

Signed-off-by: Felix Fietkau <nbd@nbd.name>
6 years agomediatek: fix target FPU settings
Felix Fietkau [Tue, 17 Apr 2018 11:43:06 +0000 (13:43 +0200)]
mediatek: fix target FPU settings

This reverts commit 5555545494c876adedf4f0038db49c1d85527e78.
The target supports both NEON and VFPv4, but for this to work properly,
a few more changes are needed:
- enable NEON support in the kernel config
- add the fpu feature flag to the makefile

Signed-off-by: Felix Fietkau <nbd@nbd.name>
6 years agobase-files: /lib/functions.sh: remove unused insert_modules
Matthias Schiffer [Tue, 17 Apr 2018 09:30:59 +0000 (11:30 +0200)]
base-files: /lib/functions.sh: remove unused insert_modules

insert_modules has been unused since r5279.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
6 years agoramips: fix locking issues in the ethernet driver
Felix Fietkau [Sun, 15 Apr 2018 17:24:42 +0000 (19:24 +0200)]
ramips: fix locking issues in the ethernet driver

The stats update needs to protect against being interrupted by a tasklet
The u64 stats seqlock needs to be initialized

Signed-off-by: Felix Fietkau <nbd@nbd.name>
6 years agoramips: mt7620: fix double use of pins
Mathias Kresin [Tue, 17 Apr 2018 06:20:42 +0000 (08:20 +0200)]
ramips: mt7620: fix double use of pins

The pins are used as (LED) GPIOs and can't be used at the same time as
hardware controlled ephy (LED) pins.

Fixes: FS#1500
Signed-off-by: Mathias Kresin <dev@kresin.me>
6 years agocurl: Deprecate idn(1) support and switch to xz tarball
Daniel Engberg [Sun, 15 Apr 2018 08:01:31 +0000 (10:01 +0200)]
curl: Deprecate idn(1) support and switch to xz tarball

libidn(1) is deprecated, add libidn2 support
Switch to xz tarball (smaller size)

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
6 years agofstools: update to latest master branch
Rafał Miłecki [Mon, 16 Apr 2018 17:46:35 +0000 (19:46 +0200)]
fstools: update to latest master branch

e243683 libfstools: move mount points when switching to JFFS2
3782b59 libfstools: add "const" to char pointer arguments in mount_move()
79721f0 libfstools: fix foreachdir() to pass dir with a trailing slash

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
6 years agonetifd: update to latest git HEAD (coverity fixes)
Hans Dedecker [Mon, 16 Apr 2018 11:08:44 +0000 (13:08 +0200)]
netifd: update to latest git HEAD (coverity fixes)

513eb27 system-linux: check ioctl return value in system_vlan()
df1625d system-linux: check ioctl return value in system_if_flags()
209c508 system-linux: fix segfault on alloc failure in system_if_check()
4a8e20e system-linux: fix segfault on error in system_add_ip6_tunnel()
36e4700 handler: fix resource leak on error in netifd_init_script_handlers()
86a0e7c system-linux: remove unnecessary open call in system_if_dump_info()
1e2cf67 system-linux: fix memory leak on error in system_add_vxlan()

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
6 years agokernel: bump 4.14 to 4.14.34
Stijn Tintel [Sun, 15 Apr 2018 21:00:49 +0000 (00:00 +0300)]
kernel: bump 4.14 to 4.14.34

Refresh patches.
Update patches that no longer apply:
- backport/313-netfilter-remove-defensive-check-on-malformed-packet.patch
- pending/642-net-8021q-support-hardware-flow-table-offload.patch

Compile-tested: x86/64.
Runtime-tested: x86/64.

Signed-off-by: Stefan Lippers-Hollmann <s.l-h@gmx.de>
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
6 years agolldpd: bump to 1.0.1
Stijn Tintel [Sun, 15 Apr 2018 18:41:11 +0000 (21:41 +0300)]
lldpd: bump to 1.0.1

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
6 years agonghttp2: bump to 1.31.1
Hans Dedecker [Sun, 15 Apr 2018 18:10:56 +0000 (20:10 +0200)]
nghttp2: bump to 1.31.1

1e22b36c Update manual pages
0f818baf Bump up version number to 1.31.1
c411d169 Fix frame handling

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
6 years agomt76: update to the latest version
Felix Fietkau [Sun, 15 Apr 2018 08:21:53 +0000 (10:21 +0200)]
mt76: update to the latest version

1d23142 mt76: add led active low to debugfs
549f43b mt7603: ensure that the ACK flag is set for A-MPDUs with any acked subframe
df9f9f6 mt7603: always try tx rate1 first
9c52f36 mt7603: pull the final rate index from the status descriptor
f36f308 mt7603: improve validation of rx frames
9a23989 mt7603: remove warning on rx with invalid channel info
7a31731 mt76: check for pending reset before attempting to schedule tx
873a7c9 mt7603: call mt76_txq_schedule_all as a barrier to prevent tx during reset
d9e5da3 mt76: add rcu locking in tid reorder function
a8e8921 mt7603: add more checks to avoid dereferencing invalid pointers in wcid lookup

Signed-off-by: Felix Fietkau <nbd@nbd.name>
6 years agoramips: remove broken and bogus spinlock in the SPI driver
Felix Fietkau [Sat, 14 Apr 2018 17:52:36 +0000 (19:52 +0200)]
ramips: remove broken and bogus spinlock in the SPI driver

Based on patch by Neil Brown

Signed-off-by: Felix Fietkau <nbd@nbd.name>
6 years agoramips: add missing unlock in fe_phy_link_adjust
Felix Fietkau [Sat, 14 Apr 2018 17:48:58 +0000 (19:48 +0200)]
ramips: add missing unlock in fe_phy_link_adjust

Based on patch by Neil Brown

Signed-off-by: Felix Fietkau <nbd@nbd.name>
6 years agobase-files: remove /etc/sysctl.d/ from conffiles
Matthias Schiffer [Fri, 13 Apr 2018 12:36:43 +0000 (14:36 +0200)]
base-files: remove /etc/sysctl.d/ from conffiles

Let's use /etc/sysctl.d for package-provided snippets and leave
/etc/sysctl.conf to the admin. Don't backup /etc/sysctl.d on upgrades, so
old defaults get replaced properly.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
6 years agoramips: fix usb phy compatible string (should fix FS#1489)
Felix Fietkau [Fri, 13 Apr 2018 11:13:20 +0000 (13:13 +0200)]
ramips: fix usb phy compatible string (should fix FS#1489)

In the new USB phy driver, it checks the compatible string before
attempting to iomap its mem resource and do the extra PHY init

Signed-off-by: Felix Fietkau <nbd@nbd.name>
6 years agobase-files: move netfilter sysctl defaults to specific kmod packages
Matthias Schiffer [Thu, 12 Apr 2018 15:57:44 +0000 (17:57 +0200)]
base-files: move netfilter sysctl defaults to specific kmod packages

Avoid warnings when applying settings for uninstalled kmods. See also
FS#1073.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
6 years agobase-files: move sysctl defaults to /etc/sysctl.d/10-default.conf
Matthias Schiffer [Thu, 12 Apr 2018 15:37:29 +0000 (17:37 +0200)]
base-files: move sysctl defaults to /etc/sysctl.d/10-default.conf

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
6 years agobase-files: evaluate /etc/sysctl.d/* before /etc/sysctl.conf
Matthias Schiffer [Thu, 12 Apr 2018 15:33:51 +0000 (17:33 +0200)]
base-files: evaluate /etc/sysctl.d/* before /etc/sysctl.conf

We can use /etc/sysctl.d/* for package-supplied sysctl snippets, giving
admins the option to use /etc/sysctl.conf to override settings.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
6 years agobase-files: remove /etc/uci-defaults/11_migrate-sysctl
Matthias Schiffer [Thu, 12 Apr 2018 15:30:16 +0000 (17:30 +0200)]
base-files: remove /etc/uci-defaults/11_migrate-sysctl

11_migrate-sysctl has not been updated with new file hashes since 2012.
Let's get rid of it.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
6 years agoapm821xx: Force Ethernet PHYID on MX60/MX60W
Christian Lamparter [Tue, 10 Apr 2018 15:59:42 +0000 (10:59 -0500)]
apm821xx: Force Ethernet PHYID on MX60/MX60W

The MX60's uboot disables all the PHYs before starting linux.
This causes the PHY/switch detection code to malfunction
almost all of the time. To get around this, set a compatible
flag to force PHYID.

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
Signed-off-by: Chris Blake <chrisrblake93@gmail.com>
6 years agoath10k-ct: Update firmware
Ben Greear [Thu, 12 Apr 2018 18:13:55 +0000 (11:13 -0700)]
ath10k-ct: Update firmware

This firmware has only small changes from the last commit, but
it does have an important fix for at least some PTK rekey logic.

The old firmware would have issues if the driver managed to set
a clear key while encryption was 'enabled'.  This new firmware for
both wave-1 and wave-2 should not be susceptible to this type of
bug any more.

And remove mesh-bcast IE flag from wave-2, still need more work before
we can enable that flag in ath10k-ct firmware it seems.

Signed-off-by: Ben Greear <greearb@candelatech.com>
6 years agoipq40xx: unbundle firmware and board file
Mathias Kresin [Thu, 12 Apr 2018 18:48:35 +0000 (20:48 +0200)]
ipq40xx: unbundle firmware and board file

Don't select the firmware with the board file, it prevents an easy use
of the -ct ath10k firmware. Select the firmware within the default
packages instead.

Remove the per device selection of the firmware now that it the
firmware is selected by default.

Signed-off-by: Mathias Kresin <dev@kresin.me>
6 years agoipq40xx: add support for Netgear EX6100v2/EX6150v2
David Bauer [Wed, 28 Mar 2018 22:32:38 +0000 (00:32 +0200)]
ipq40xx: add support for Netgear EX6100v2/EX6150v2

Specifications:
SOC: Qualcomm IPQ4018 (DAKOTA) ARM Quad-Core
RAM: 256 MB Winbond W632GU6KB12J
FLASH: 16 MiB Macronix MX25L12805D
ETH: Qualcomm QCA8072
WLAN1:  Qualcomm Atheros QCA4018 2.4GHz 802.11b/g/n/ac 2x2
WLAN2:  Qualcomm Atheros QCA4018 5GHz 802.11n/ac
1x1 (EX6100)
2x2 (EX6150)
INPUT:  Power, WPS, reset button
AP / Range-extender toggle
LED: Power, Router, Extender (dual), WPS, Left-/Right-arrow
SERIAL: Header next to QCA8072 chip.
VCC, TX, RX, GND (Square hole is VCC)
WARNING: The serial port needs a TTL/RS-232 v3.3 level converter!
        The Serial setting is 115200-8-N-1.

Tested and working:
 - Ethernet
 - 2.4 GHz WiFi (Correct MAC-address)
 - 5 GHz WiFi (Correct MAC-address)
 - Factory installation from WebIF
 - Factory installation from tftp
 - OpenWRT sysupgrade (Preserving and non-preserving)
 - LEDs
 - Buttons

Not Working:
 - AP/Extender toggle-switch

Untested:
 - Support on EX6100v2. They share the same GPL-Code and vendor-images.
   The 6100v2 seems to lack one 5GHz stream and differs in the 5GHz
   board-blob. I only own a EX6150v2, therefore i am only able to verify
   functionality on this device.

Install via Web-Interface:
Upload the factory image to the device to the Netgear Web-Interface.
The device might asks you to confirm the update a second time due to
detecting the OpenWRT firmware as older. The device will automatically
reboot after the image is written to flash.

Install via TFTP:
Connect to the devices serial. Hit Enter-Key in bootloader to stop
autobooting. Command "fw_recovery" will start a tftp server, waiting for
a DNI image to be pushed.
Assign your computer the IP-address 192.168.1.10/24. Push image with
tftp -4 -v -m binary 192.168.1.1 -c put <OPENWRT_FACTORY>
Device will erase factory-partition first, then writes the pushed image
to flash and reboots.

Parts of this commit are based on Thomas Hebb's work on the
openwrt-devel mailinglist.

See https://lists.openwrt.org/pipermail/openwrt-devel/2018-January/043418.html

Signed-off-by: David Bauer <mail@david-bauer.net>
6 years agoipq-wifi: Add 8devices Jalapeno
Robert Marko [Fri, 16 Mar 2018 17:09:19 +0000 (18:09 +0100)]
ipq-wifi: Add 8devices Jalapeno

Add custom board-2.bin for 8devices Jalapeno.
Upstreaming is in progress.

Signed-off-by: Robert Marko <robimarko@gmail.com>
6 years agoipq40xx: add support for 8devices Jalapeno
Robert Marko [Wed, 11 Apr 2018 09:14:36 +0000 (11:14 +0200)]
ipq40xx: add support for 8devices Jalapeno

This patch adds support for 8devices Jalapeno.

Specification:
QCA IPQ4018, Quad core ARM v7 Cortex A7 717MHz
256 MB of DDR3 RAM
8 MB of SPI NOR flash
128 MB of Winbond SPI NAND flash
WLAN1: Qualcomm Atheros QCA4018 2.4GHz 802.11bgn 2:2x2
requires special BDF in QCA4019/hw1.0/board-2.bin with:
bus=ahb,bmi-chip-id=0,bmi-board-id=16,variant=8devices-Jalapeno
WLAN2: Qualcomm Atheros QCA4018 5GHz 802.11a/n/ac 2:2x2
requires special BDF in QCA4019/hw1.0/board-2.bin with:
bus=ahb,bmi-chip-id=0,bmi-board-id=17,variant=8devices-Jalapeno
ETH: Qualcomm Atheros QCA8072 Gigabit Switch (1 x LAN, 1 x WAN)
phy@mdio3:
Label: eth0
gmac0
phy@mdio4:
Label: eth1
gmac1

Installation instructions:
Since boards ship with old version of LEDE installation is simple.
Just use sysupgrade -n -F sysupgrade.bin

Syuspgrade needs to be forced since OpenWRT uses DT detection in recent
releases.

If you get error that FIT configuration is not found during boot it is
due to older U-boot used on your board.
That is because 8devices used custom FIT configuration partition name
as they internally had v1 and v2 boards.
Only v2 boards are sold so now they are shipping boards with never
U-boot using generic config@1 FIT partition name.

Also for old uboot it is possible to force loading config@1 by changing
uboot environment:

setenv boot5 'bootm 0x84000000#config@1’
saveenv

Signed-off-by: Robert Marko <robimarko@gmail.com>
6 years agohostapd: fix compile of -mini variants
Daniel Golle [Fri, 13 Apr 2018 04:00:03 +0000 (06:00 +0200)]
hostapd: fix compile of -mini variants

Fixes commit d88934aa5a (hostapd: update to git snapshot of 2018-04-09)

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
6 years agomac80211: pass hostapd control socket to mesh-mode supplicant
Daniel Golle [Thu, 12 Apr 2018 23:37:06 +0000 (01:37 +0200)]
mac80211: pass hostapd control socket to mesh-mode supplicant

Unlike when operating in Ad-Hoc mode, we apparently need to pass the
hostapd control socket interface to wpa_supplicant when using 802.11s
mesh mode.

There also seems to still be something wrong with the logic setting
channel and (v)htmode parameters...

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
6 years agohostapd: update to git snapshot of 2018-04-09
Daniel Golle [Thu, 12 Apr 2018 11:07:22 +0000 (13:07 +0200)]
hostapd: update to git snapshot of 2018-04-09

And import patchset to allow 802.11s mesh on DFS channels, see also
http://lists.infradead.org/pipermail/hostap/2018-April/038418.html
Fix sae_password for encryption mesh (sent upstream as well).
Also refreshed existing patches and fixed 463-add-mcast_rate-to-11s.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
6 years agolibubox: update to latest git HEAD
Hans Dedecker [Thu, 12 Apr 2018 11:57:57 +0000 (13:57 +0200)]
libubox: update to latest git HEAD

6eff829 utils: fix build error with g++

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
6 years agokernel: mtd: bcm47xxpart: improve handling TRX partition size
Rafał Miłecki [Thu, 12 Apr 2018 06:25:17 +0000 (08:25 +0200)]
kernel: mtd: bcm47xxpart: improve handling TRX partition size

This is important fix for flash parsing in some corner cases. In case
of TRX subpartition with rootfs being aligned to the flash block size it
was incorrectly registered twice. Detecting & registering it as a
standalone partition was resulting in an incorrect "firmware" partition
size and possibly broken sysupgrade.

It wasn't noticed before because "rootfs" alignment depends on a kernel
size. It can happen though - depending on the configuration and the
kernel size.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
6 years agoebtables: update to latest git 2018-04-11
Matthias Schiffer [Thu, 12 Apr 2018 05:34:57 +0000 (07:34 +0200)]
ebtables: update to latest git 2018-04-11

2e783b227766 ebt_ip: add support for matching IGMP type
b5fbb8d786c9 ebt_ip: add support for matching ICMP type and code
c5e5b784fd1a Move ICMP type handling functions from ebt_ip6 to useful_functions.c
11da52177196 include: sync linux/netfilter_bridge/ebt_ip.h with kernel

Note: the new features require at least kernel 4.17 or backported patches.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
6 years agoinclude/kernel.mk: build kmod packages with empty FILES
Matthias Schiffer [Tue, 10 Apr 2018 07:03:52 +0000 (09:03 +0200)]
include/kernel.mk: build kmod packages with empty FILES

kmod packages without FILES did not have an install step defined, leading
to no package being built. This affected netfilter/iptables packages, which
filter out builtin modules from FILES.

Not building a package that it is selected in .config is problematic, as
the generated empty package may be necessary to satisfy dependencies.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
6 years agotools/mpfr: Update to 4.0.1
Daniel Engberg [Mon, 12 Mar 2018 15:59:24 +0000 (16:59 +0100)]
tools/mpfr: Update to 4.0.1

Update mpfr to 4.0.1

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
6 years agotools/cmake: Update to 3.11.0
Daniel Engberg [Wed, 4 Apr 2018 08:02:32 +0000 (10:02 +0200)]
tools/cmake: Update to 3.11.0

Update cmake to 3.11.0
Remove 110-alpine_musl-compat.patch as it's integrated upstream
Rename and refresh patches

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
6 years agopackages/uboot-omap: bugfix: serial using ns16550 fifo not enabled
Alexander Couzens [Wed, 11 Apr 2018 01:17:44 +0000 (03:17 +0200)]
packages/uboot-omap: bugfix: serial using ns16550 fifo not enabled

The serial was working before, but not when doing copy&pasting longer
commands in a short time.

Fixes: a4def18f29e1 ("uboot-omap: Update to u-boot v2017.01")
Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
6 years agoomap: kernel update and switch to 4.14
Lucian Cristian [Mon, 19 Feb 2018 13:53:53 +0000 (15:53 +0200)]
omap: kernel update and switch to 4.14

Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
6 years agoar71xx: increase kernel partition size for CPE/WBS 210/510
Matthias Schiffer [Tue, 10 Apr 2018 16:14:41 +0000 (18:14 +0200)]
ar71xx: increase kernel partition size for CPE/WBS 210/510

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
6 years agofirmware-utils: tplink-safeloader: move CPE/WBS 210/510 version metainfo to the end
Matthias Schiffer [Tue, 10 Apr 2018 15:26:34 +0000 (17:26 +0200)]
firmware-utils: tplink-safeloader: move CPE/WBS 210/510 version metainfo to the end

Having the metainfo between kernel and rootfs prevents us from resizing
the kernel partition as necessary.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
6 years agoar71xx: sysupgrade: improve CPE/WBS 210/510 validation, add new metadata offset
Matthias Schiffer [Tue, 10 Apr 2018 16:06:20 +0000 (18:06 +0200)]
ar71xx: sysupgrade: improve CPE/WBS 210/510 validation, add new metadata offset

Previously, tplink_pharos_check_image() would accept any image with ELF
magic and only non-printable data in the support-list, as in this case the
while-read loop would not run at all. Add the new support-list offset and
ensure an image is only accepted when the model string is actually found.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
6 years agoar71xx: increase kernel partition size for UniFi AP Pro and Outdoor+, enable devices...
Matthias Schiffer [Tue, 10 Apr 2018 13:19:52 +0000 (15:19 +0200)]
ar71xx: increase kernel partition size for UniFi AP Pro and Outdoor+, enable devices again

Tested on UAP Outdoor+.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
6 years agoar71xx: limit Ethernet speed of UBNT Airmax M (XM) devices to 100Mbit/s
Matthias Schiffer [Tue, 10 Apr 2018 11:00:42 +0000 (13:00 +0200)]
ar71xx: limit Ethernet speed of UBNT Airmax M (XM) devices to 100Mbit/s

Some Airmax devices can establish a Gigabit link even though the MAC only
supports 10/100 MBit/s, leading to broken connectivity. Prevent this from
happening by limiting the speed to 100MBit/s.

Fixes: FS#296
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
6 years agoiptables: split physdev match out as a separate package
Matthias Schiffer [Mon, 9 Apr 2018 17:41:26 +0000 (19:41 +0200)]
iptables: split physdev match out as a separate package

Split physdev match out of ipt-extra to allow installing ipt-extra without
pulling in br-netfilter.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
6 years agokernel: kmod-ebtables: do not depend on kmod-br-netfilter
Matthias Schiffer [Mon, 9 Apr 2018 17:01:56 +0000 (19:01 +0200)]
kernel: kmod-ebtables: do not depend on kmod-br-netfilter

While ebtables can be combined with br-netfilter, there is no good reason
to make it a dependency.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
6 years agokernel: unhide kmod-br-netfilter
Matthias Schiffer [Mon, 9 Apr 2018 16:56:53 +0000 (18:56 +0200)]
kernel: unhide kmod-br-netfilter

kmod-br-netfilter is not only a support module, but can be useful on its
own, using the net.bridge.bridge-nf-call-* sysctls.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
6 years agokernel: change dependency of kmod-ebtables-* on kmod-ebtables to selecting
Matthias Schiffer [Mon, 9 Apr 2018 16:51:57 +0000 (18:51 +0200)]
kernel: change dependency of kmod-ebtables-* on kmod-ebtables to selecting

Non-selecting dependencies easily lead to Kconfig failures due to recursive
dependencies. We hit such an issue in Gluon; the easiest fix is to make
the dependency selecting.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
6 years agodnsmasq: remove example domains from rfc6761.conf (FS#1447)
Hans Dedecker [Mon, 9 Apr 2018 15:19:14 +0000 (17:19 +0200)]
dnsmasq: remove example domains from rfc6761.conf (FS#1447)

RFC6771 does not exclude the forwarding of the example domain as it
states : "Caching DNS servers SHOULD NOT recognize example names as
special and SHOULD resolve them normally."
Example domains cannot be assigned to any user or person by DNS
registrars as they're registered in perpetuity to IANA meaning
they can be resolved; therefore let's remove the example domains
from the rfc6761.conf file.

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
6 years agoodhcpd: update to latest git HEAD
Hans Dedecker [Mon, 9 Apr 2018 15:13:11 +0000 (17:13 +0200)]
odhcpd: update to latest git HEAD

31f217f router: improve RFC7084 compliancy

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
6 years agomt76: update to the latest version
Felix Fietkau [Mon, 9 Apr 2018 08:43:11 +0000 (10:43 +0200)]
mt76: update to the latest version

c66094e mt76x2: fix possible NULL pointer dereferencing in mt76x2_tx()
249fa2d mt76x2: fix warning in ieee80211_get_key_rx_seq()
54d6710 mt76: use mt76_poll_msec routine in mt76pci_load_firmware()
eb359f1 mt76x2: remove unnecessary len variable in mt76x2_eeprom_load()
7e6e00b mt76: initialize available_antennas_{tx,rx} info
6469dca mt76: add mt76_init_stream_cap routine
ced433d mt76x2: add mac80211 {set,get}_antenna callbacks
238f3f1 mt76x2: remove warnings in mt76x2_mac_write_txwi()
880611b mt7603: main: fix warning in ieee80211_get_key_rx_seq()
bc35af8 mt76x2: fix tssi initialization for 5GHz band
700ed20 mt76x2: make mt76x2_mac_reset routine static
6e7d5ce mt76x2: remove unnecessary MT_TX_ALC_CFG_4 configuration
5153ece mt76x2: set default values in TX_ALC_CFG_{1,2} for tempetaure compensation
a3e7740 mt76x2: fix tx_alc_enabled check

Signed-off-by: Felix Fietkau <nbd@nbd.name>
6 years agoipq806x: replace linux,part-probe with a proper partitions subnode
Rafał Miłecki [Mon, 9 Apr 2018 05:44:55 +0000 (07:44 +0200)]
ipq806x: replace linux,part-probe with a proper partitions subnode

This solution is more upstream compatible as it only requires specifying
of_match_table in the parser code and doesn't depend on linux,part-probe
which is solution made generic by a LEDE downstream patch that can't be
upstreamed.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Tested-by: Stefan Lippers-Hollmann <s.l-h@gmx.de>
Acked-by: John Crispin <john@phrozen.org>
6 years agokernel: use accepted mtd patchset adding support for "compatible" string
Rafał Miłecki [Mon, 9 Apr 2018 05:14:04 +0000 (07:14 +0200)]
kernel: use accepted mtd patchset adding support for "compatible" string

These patches were finally accepted and are already present in the
Linus's tree. This should be good enough to make is "backport" material.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
6 years agoramips: rename pwm kernel module
Mathias Kresin [Sun, 8 Apr 2018 09:49:02 +0000 (11:49 +0200)]
ramips: rename pwm kernel module

With kernel 4.14 the OpenWrt specific module name collides with the
upstream added module for Mediatek ARM Socs.

During addition of preliminary support for kernel 4.14, the config
symbol used by the out of tree driver was already renamed but the ramips
kernel package wasn't updated.

Fix the build error by updating the config and kernel module name for
the kernel package.

Signed-off-by: Mathias Kresin <dev@kresin.me>
6 years agoramips: add support for Zorlik ZL5900V2
Vianney le Clément de Saint-Marcq [Tue, 3 Apr 2018 23:19:22 +0000 (01:19 +0200)]
ramips: add support for Zorlik ZL5900V2

The Zorlik ZL5900V2 is an unbranded clone of HAME MPR-A1/2.  It is
marketed as "3G Wi-Fi Router".  Only the PCB has the model name
"ZL5900V2" printed on it.

Specifications:
- Ralink RT5350F (360 MHz)
- 32 MB RAM
- 8 MB Flash
- 802.11bgn 1T1R
- 1x 10/100 Mbps Ethernet
- 1x USB 2.0 (Type-A)
- 5200 mAh battery

The ramdisk image (not the squashfs sysupgrade image) can be flashed
through the web interface (named "GoAhead") of the factory firmware.
However, as the factory firmware does not cleanly unmount the rootfs
before flashing, the device may hang instead of rebooting after
successful write.  Power cycling the device gets you in OpenWrt where
the squashfs image may be flashed through normal sysupgrade procedure.

Signed-off-by: Vianney le Clément de Saint-Marcq <code@quartic.eu>
6 years agoramips: add support for the YouHua WR1200JS
Zheng Qian [Thu, 29 Mar 2018 10:33:02 +0000 (18:33 +0800)]
ramips: add support for the YouHua WR1200JS

YouHua tech WR1200JS is an AC1200 router with 5 1Gb ports (4 Lan, 1 Wan)
and 1 USB 2.0 port.

Devices is base on MediaTek MT7621AT + MT7603E + MT7612E.

Specification:

- MT7612AT (880 MHz)
- 128 MB of RAM
- 16 MB of FLASH (SPI NOR)
- 5x 10/100/1000 Mbps Ethernet
- 2T2R 2.4 GHz (MT7603E)
- 2T2R 5 GHz (MT7612E)
- 1x USB 2.0
- 10x LED (Power 2G 5G WPS Internet LAN4-1 USB)
- 3x button (reset wifi wps)
- DC jack for main power input (12V)

Installation:

1.) Press reset key 5 sec and restore the factory default
2.) Login webUI and change username to root and set a
    new password
3.) Visit http://192.168.2.254/adm/telnetd.shtml and
    turn on the telnet service
4.) Copy openwrt-ramips-mt7621-youhua_wr1200js-initramfs-kernel.bin
    to a usb pan
5.) Plug the usb pan to the router, telnet to the router
    and login by root
6.) cd /media/sda1 and check the initramfs file is there
7.) exec command:
    mtd_write write openwrt-ramips-mt7621-youhua_wr1200js-initramfs-kernel.bin Kernel
8.) reboot and visit 192.168.1.1

Signed-off-by: Zheng Qian <sotux82@gmail.com>
6 years agoramips: add dwr-512 jboot firmware configuration
Giuseppe Lippolis [Thu, 5 Apr 2018 16:01:41 +0000 (18:01 +0200)]
ramips: add dwr-512 jboot firmware configuration

The previous fw version require the replacement of the stock bootloader
with u-boot. This prevent an easy stock restore of the original fw.

Now a proper fw util has been developed to manage the stock jboot
bootloader. Therefore make sense have a fw image for the stock
bootloader.

The old fw configuration (u-boot) is not compatible with the new one
and will not be supported anymore.

So at the end 2 image can be generated:

1) factory image with jboot bootloader
     openwrt-ramips-rt305x-dwr-512-b-squashfs-factory.bin
2) sysupgrade image with jboot bootloader
     openwrt-ramips-rt305x-dwr-512-b-squashfs-sysupgrade.bin

Signed-off-by: Giuseppe Lippolis <giu.lippolis@gmail.com>
6 years agoar8216: reduce latency even further for ar8327 chips
Felix Fietkau [Sun, 8 Apr 2018 07:27:09 +0000 (09:27 +0200)]
ar8216: reduce latency even further for ar8327 chips

Signed-off-by: Felix Fietkau <nbd@nbd.name>
6 years agoar8216: reduce latency by inserting scheduling points into code hogging the CPU
Felix Fietkau [Sat, 7 Apr 2018 11:02:08 +0000 (13:02 +0200)]
ar8216: reduce latency by inserting scheduling points into code hogging the CPU

Should reduce network related latency caused by accessing MIB counters

Signed-off-by: Felix Fietkau <nbd@nbd.name>
6 years agoramips: fix usbphy DT nodes on linux 4.14
Vianney le Clément de Saint-Marcq [Sat, 7 Apr 2018 12:02:25 +0000 (14:02 +0200)]
ramips: fix usbphy DT nodes on linux 4.14

The Ralink USB PHY driver merged into mainline has a slightly different
device tree binding than the patch that was used with linux 4.9.
The new driver requires a `ralink,sysctl` node pointing to the `syscon`
node.

This patch also sets `#phy-cells` to 0, as recommended by the mainline
documentation [1].

[1] Documentation/devicetree/bindings/phy/ralink-usb-phy.txt

Signed-off-by: Vianney le Clément de Saint-Marcq <code@quartic.eu>
6 years agolibubox: update to the latest version
Felix Fietkau [Sat, 7 Apr 2018 12:47:41 +0000 (14:47 +0200)]
libubox: update to the latest version

42a8ecd jshn: fix format string for int64 type
92009b7 utils: ensure that byte-order conversion functions evaluate the argument only once
ace6489 switch from typeof to the more portable __typeof__

Signed-off-by: Felix Fietkau <nbd@nbd.name>
6 years agoRevert "libubox: update to the latest version"
Felix Fietkau [Sat, 7 Apr 2018 13:06:02 +0000 (15:06 +0200)]
Revert "libubox: update to the latest version"

This reverts commit def82714d92d124dc5376c340132392ff7a3d4a5.
Needs further fixes

Signed-off-by: Felix Fietkau <nbd@nbd.name>
6 years agolibubox: update to the latest version
Felix Fietkau [Sat, 7 Apr 2018 12:47:41 +0000 (14:47 +0200)]
libubox: update to the latest version

42a8ecd jshn: fix format string for int64 type
92009b7 utils: ensure that byte-order conversion functions evaluate the argument only once

Signed-off-by: Felix Fietkau <nbd@nbd.name>
6 years agoar71xx: add support for TP-Link Archer C60 v2
Henryk Heisig [Mon, 15 Jan 2018 05:44:14 +0000 (06:44 +0100)]
ar71xx: add support for TP-Link Archer C60 v2

TP-Link Archer C60 v2 is a dual-band AC1350 router, based on
Qualcomm/Atheros QCA9561 + QCA9886.

Specification:

- 775/650/258 MHz (CPU/DDR/AHB)
- 64 MB of RAM (DDR2)
- 8 MB of FLASH (SPI NOR)
- 3T3R 2.4 GHz
- 2T2R 5 GHz
- 5x 10/100 Mbps Ethernet
- 7x LED, 2x button
- UART header on PCB

Flash instruction (web):

Download lede-ar71xx-generic-archer-c60-v2-squashfs-factory.bin and use
OEM System Tools - Firmware Upgrade site.

Flash instruction (recovery):

1. Set PC to fixed IP address 192.168.0.66
2. Download lede-ar71xx-generic-archer-c60-v2-squashfs-factory.bin and
   rename it to tp_recovery.bin
3. Start a tftp server with the file tp_recovery.bin in its root
   directory
4. Turn off the router
5. Press and hold reset button
6. Turn on router with the reset button pressed and wait ~15 seconds
7. Release the reset button and after a short time the firmware should
   be transferred from the tftp server
8. Wait ~30 second to complete recovery

Flash instruction (under U-Boot, using UART):

tftp 0x81000000 lede-ar71xx-...-sysupgrade.bin
erase 0x9f030000 +$filesize
cp.b $fileaddr 0x9f030000 $filesize
reset

Signed-off-by: Henryk Heisig <hyniu@o2.pl>
6 years agoar71xx: add support for TP-Link TL-WR940N v6
Robert Marko [Wed, 21 Feb 2018 12:15:17 +0000 (13:15 +0100)]
ar71xx: add support for TP-Link TL-WR940N v6

Add support for TL-WR940N v6 board. It is pretty much the same as v5
except they only left WAN LED and removed other ones.

Installation: flash factory image through WEB UI or use TFTP.

Signed-off-by: Robert Marko <robimarko@gmail.com>
6 years agoar71xx: drop kernel 4.4 support
Piotr Dymacz [Wed, 4 Apr 2018 21:43:51 +0000 (23:43 +0200)]
ar71xx: drop kernel 4.4 support

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
6 years agoar71xx: change brand name WHQX to Qxwlan
Peng Zhang [Tue, 27 Feb 2018 09:40:28 +0000 (17:40 +0800)]
ar71xx: change brand name WHQX to Qxwlan

Signed-off-by: Peng Zhang <sd20@qxwlan.com>
6 years agoar71xx: rework chipidea controller support, add QCA9531
Piotr Dymacz [Fri, 9 Mar 2018 23:06:50 +0000 (00:06 +0100)]
ar71xx: rework chipidea controller support, add QCA9531

Rework (again) platform support for dual-role chipidea USB controller:

- include support for QCA9531
- use correct EHCI block size
- drop ar933x_usb_setup_ctrl_config() function
- simplify code after previous "register chipidea only in device mode"
  change (fa22714181)

Reworked patch was tested on devices with below QCA WiSOCs (signal/GPIO
name with required bootstrap state for USB bus 0 in device mode):

- AR9331  (GPIO13 pull-down)
- AR9342  (RGMII_TXD1/ETXD1 pull-up)
- AR9344  (GPIO20 pull-up)
- QCA9531 (GPIO13 pull-up)
- QCA9558 (GPIO13 pull-up)

The only way to select device mode for bus 0 is to change SOC bootstrap
configuration which is sampled only once, at hard reset. Likely, other
models, like QCA9556 or AR9341, should also support dual-role USB mode
but they were not tested.

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
6 years agoramips: add U-Boot env support for ALFA Network AC1200RM
Piotr Dymacz [Mon, 26 Feb 2018 22:00:07 +0000 (23:00 +0100)]
ramips: add U-Boot env support for ALFA Network AC1200RM

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
6 years agouboot-envtools: fix ALFA Network AWUSFREE1 support
Piotr Dymacz [Mon, 26 Feb 2018 21:24:26 +0000 (22:24 +0100)]
uboot-envtools: fix ALFA Network AWUSFREE1 support

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
6 years agoramips: image: drop redundant SUPPORTED_DEVICES
Piotr Dymacz [Sat, 24 Feb 2018 10:02:33 +0000 (11:02 +0100)]
ramips: image: drop redundant SUPPORTED_DEVICES

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
6 years agoramips: fix build error caused by missing ifdef guard in hwnat code
John Crispin [Fri, 6 Apr 2018 19:33:35 +0000 (21:33 +0200)]
ramips: fix build error caused by missing ifdef guard in hwnat code

Signed-off-by: John Crispin <john@phrozen.org>
6 years agoramips: implement hardware NAT offload for MT7621
John Crispin [Fri, 23 Mar 2018 12:42:56 +0000 (13:42 +0100)]
ramips: implement hardware NAT offload for MT7621

Supports IPv4 flow offloading on MT7621 for Routing, SNAT and DNAT

Supported are regular ethernet->ethernet connections, including one
802.1q VLAN and/or PPPoE encapsulation

Signed-off-by: John Crispin <john@phrozen.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
6 years agoramips: drop linux 4.9 support
Felix Fietkau [Fri, 6 Apr 2018 16:20:46 +0000 (18:20 +0200)]
ramips: drop linux 4.9 support

4.14 has been tested a lot by a number of users, and we want to use it
for the release.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
6 years agoramips: switch to linux 4.14
Felix Fietkau [Wed, 21 Feb 2018 19:14:35 +0000 (20:14 +0100)]
ramips: switch to linux 4.14

Signed-off-by: Felix Fietkau <nbd@nbd.name>