openwrt/staging/jow.git
5 years agoramips: add support for Edimax BR-6478AC v2
Daniel Gimpelevich [Mon, 16 Jul 2018 14:19:19 +0000 (07:19 -0700)]
ramips: add support for Edimax BR-6478AC v2

Roll-up of patches by Rohan Murch, Hans Ulli Kroll, and James McKenzie.
Taken from https://forum.openwrt.org/viewtopic.php?id=67192 and updated.

Specification:
- System-On-Chip: MT7620A
- CPU/Speed: 580 MHz
- Flash-Chip: Macronix MX25L6405D
- Flash size: 8192 KiB
- RAM: 64 MiB
- Wireless No1: SoC-integrated: MT7620A 2.4GHz 802.11bgn
- Wireless No2: On-board chip: MT7612E 5GHz 802.11ac
- Switch: Mediatek MT7530W Gigabit Switch
- USB: Yes 1 x 2.0

Installation:
1. Download sysupgrade.bin
2. Open vendor web interface
3. Choose to upgrade firmware
4. After reboot connect via ethernet at 192.168.1.1

Signed-off-by: Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us>
(backported from f72fa883b324311c1972c39ed521e536b25d674c)

5 years agoramips: move partitions into partition table node
Alex Maclean [Wed, 1 Aug 2018 20:32:34 +0000 (21:32 +0100)]
ramips: move partitions into partition table node

Starting with kernel 4.4, the use of partitions as direct subnodes of the
mtd device is discouraged and only supported for backward compatiblity
reasons.

Signed-off-by: Alex Maclean <monkeh@monkeh.net>
(backported from 6031ab345df86c285ea55d6523d6888cc596f63d)

5 years agoramips: unify partition node names in dts files
Mathias Kresin [Fri, 3 Aug 2018 18:14:49 +0000 (20:14 +0200)]
ramips: unify partition node names in dts files

Use partition@ as name for all partition nodes. Add a label where
necessary.

Signed-off-by: Mathias Kresin <dev@kresin.me>
(backported from 6dd94c2781b79ffd20f1a57a48fa2314d67ee190)

5 years agoramips: fix whitespace and comment issues in dts
Mathias Kresin [Sun, 22 Jul 2018 08:33:42 +0000 (10:33 +0200)]
ramips: fix whitespace and comment issues in dts

Fix space vs. tabs issue and trainling whitespaces. Use C style
comments or drop the comments if they explain what is already to see in
the devicetree parameters.

Signed-off-by: Mathias Kresin <dev@kresin.me>
(backported from bfd65fc4ab71b9504a9280e91a67698ac4e1e06d)

5 years agoramips: fix dtc warnings
Mathias Kresin [Sat, 21 Jul 2018 21:00:20 +0000 (23:00 +0200)]
ramips: fix dtc warnings

Fix individual boards dtc warnings or obvious mistakes.

Signed-off-by: Mathias Kresin <dev@kresin.me>
(backported from 53624c1702e6aad5b3e5e442c064dd30f81db2e4)

5 years agoramips: fix hnat dtc warning
Mathias Kresin [Sat, 21 Jul 2018 16:20:59 +0000 (18:20 +0200)]
ramips: fix hnat dtc warning

The hardware NAT node has the same reg/unit as the ethernet node. One
of them need to be a child of the other.

Make the hardware NAT node a child of the ethernet node since the it
"reference" the netdev in its properties.

Signed-off-by: Mathias Kresin <dev@kresin.me>
(backported from 6384e0d16a91cdfa1f7afc73268d9485dda8065b)

5 years agoramips: fix pci/pcie related dtc warnings
Mathias Kresin [Sat, 21 Jul 2018 14:19:46 +0000 (16:19 +0200)]
ramips: fix pci/pcie related dtc warnings

Add the ranges property to the PCI bridges where missing. Add the unit
address to PCI bridge where missing.

Rework the complete rt3883 pci node. Drop the PCI unit nodes from the
dtsi. They are not used by any dts file and should be rather in the dts
than in the SoC dtsi. Express the PCI-PCI bridge in a clean devicetree
syntax. The ralink,pci-slot isn't used by any driver, drop it. Move the
pci interrupt controller out of the pci node. It doesn't share the same
reg and therefore should be an independent/SoC child node.

Move the pci related rt3883 pinctrl setting to the dtsi instead of
defining the very same for each rt3883 board.

If the device_type property is used for PCI units, the unit is treated
as pci bridge which it isn't. Drop it for PCI units.

Reference pci-bridges or the pci node defined in the dtsi instead of
recreating the whole node hierarchy. It allows to change the referenced
node in the dtsi without the need to touch all dts.

Fix the PCI(e) wireless unit addresses. All our PCI(e) wireless chips
are the first device on the bus. The unit address has to be the bus
address instead of the PCI vendor/device id.

Signed-off-by: Mathias Kresin <dev@kresin.me>
(backported from f9b8328d794473fcd044197ec64abf87761793e4)

5 years agoramips: use ralink,nr-gpio instead of ralink,num-gpios
Mathias Kresin [Sat, 21 Jul 2018 17:32:51 +0000 (19:32 +0200)]
ramips: use ralink,nr-gpio instead of ralink,num-gpios

Since commit c1e7738988f5 ("checks: add gpio binding properties check")
dtc treats any *-gpios and *-gpio property as phandle at least during
checks. The only whitelisted property is nr-gpio.

Use ralink,nr-gpio in favour of ralink,num-gpios to get rid of false
positive warnings.

Signed-off-by: Mathias Kresin <dev@kresin.me>
(backported from d8e7a526a38499e1d1368829a76e4a0e541893b0)

5 years agoramips: fix cpu interrupt controller dtc warnings
Mathias Kresin [Sat, 21 Jul 2018 14:53:10 +0000 (16:53 +0200)]
ramips: fix cpu interrupt controller dtc warnings

The cpu interrupt controller doesn't have a reg property, hence we
can't use a unit address in the node name.

Signed-off-by: Mathias Kresin <dev@kresin.me>
(backported from 1bad2b74aea59289c21209aa1d8e5c2ccef74a72)

5 years agoramips: fix cpu related dtc warnings
Mathias Kresin [Sat, 21 Jul 2018 14:17:39 +0000 (16:17 +0200)]
ramips: fix cpu related dtc warnings

We need a reg property if we are using a unit address.

Signed-off-by: Mathias Kresin <dev@kresin.me>
(backported from b9dbf3f3c8112d6640c780bbb939ee5816b5bfb3)

5 years agotreewide: convert gpio-export to platform driver
René van Dorst [Thu, 19 Jul 2018 10:55:55 +0000 (12:55 +0200)]
treewide: convert gpio-export to platform driver

Without this patch you will get an error "gpio-export probe deferral
not supported" when you try to export i2c expander gpio pins.

gpio-export is probed long before i2c-bus and i2c expander are created
and it doesn't retry it so none pins are exported.

Signed-off-by: René van Dorst <opensource@vdorst.com>
apply the change to all instances of the gpio exports patch
Signed-off-by: Mathias Kresin <dev@kresin.me>
(backported from 0ae9396556584db2dac73364af44758a5ccf4873)

5 years agobusybox: update to 1.29.2
Hannu Nyman [Tue, 31 Jul 2018 13:55:42 +0000 (16:55 +0300)]
busybox: update to 1.29.2

* Update busybox to 1.29.2
* refresh default config
* remove upstreamed patches

Config refreshed with
  cd config/
  ../convert_menuconfig.pl ../../../../build_dir/target-arm_cortex-a9+vfpv3_musl_eabi/busybox-1.29.2
  cd ..
  ./convert_defaults.pl < ../../../build_dir/target-arm_cortex-a9+vfpv3_musl_eabi/busybox-1.29.2/.config > Config-defaults.in

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
Tested-by: Hans Dedecker <dedeckeh@gmail.com>
(backported from 12fb4bb834dc715ce43bf428c35b489e89e776a1)

5 years agobrcm63xx: switch to 4.14
Jonas Gorski [Wed, 1 Aug 2018 10:18:13 +0000 (12:18 +0200)]
brcm63xx: switch to 4.14

Kernel 4.14 support has been present for quite some time, so let's give
it wider testing.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
(backported from 2308b87204206d84b6bf3dbc3d72591611cc6b78)

5 years agobrcm63xx: drop b43 from devices with unsupported wifi
Jonas Gorski [Wed, 1 Aug 2018 10:14:39 +0000 (12:14 +0200)]
brcm63xx: drop b43 from devices with unsupported wifi

The internal wifi isn't supported, so drop b43 from devices that only
have it.

Fixes FS#1698
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
(backported from 15cb65dad733f7c76bfc93f89bca2962d9ee6240)

5 years agobrcm63xx: copy SR102 support patch to 4.14 as well
Jonas Gorski [Wed, 1 Aug 2018 10:04:39 +0000 (12:04 +0200)]
brcm63xx: copy SR102 support patch to 4.14 as well

It seems to have been missed when the patch was accepted.

Fixes: d59126040701 ("brcm63xx: initial support for Sky SR102 router")
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
(backported from 8cb8d70fea917b1856c4f3ad936da5fd015d3a9c)

5 years agobrcm63xx: drop bogus SPROM section from SR102
Jonas Gorski [Wed, 1 Aug 2018 09:39:57 +0000 (11:39 +0200)]
brcm63xx: drop bogus SPROM section from SR102

The integrated SoC wifi will likely never be supported, and if,
it will go through DT with the sprom contents there.

Fixes: d59126040701 ("brcm63xx: initial support for Sky SR102 router")
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
(backported from bc1c706bb32ee1087357e5258a147bd792612d00)

5 years agoar71xx: add support for TP-LINK CPE510 V2.0
Andrew Cameron [Wed, 27 Jun 2018 03:09:03 +0000 (22:09 -0500)]
ar71xx: add support for TP-LINK CPE510 V2.0

Adds Support for the TP-LINK CPE510 V2.0 by TP-Link.
The hardware is almost the same as the CPE510 V1.0
Follow the same processes as for the CPE510 V1.0

Signed-off-by: Andrew Cameron <apcameron@softhome.net>
(backported from bae927c551fdd91fbc8343071e4b5c44f73eee0d)

5 years agoRevert "ar71xx: ag71xx: Prevent kernel oops for board def"
Jo-Philipp Wich [Wed, 1 Aug 2018 20:33:49 +0000 (22:33 +0200)]
Revert "ar71xx: ag71xx: Prevent kernel oops for board def"

This reverts commit 7a3e133751870a3431e2430386a77a002eb24117.

This change reportedly breaks connectivity on some ar71xx devices, so
revert it for now.

Ref: https://github.com/openwrt/openwrt/pull/1217#issuecomment-409708087
Reported-by: Hannu Nyman <hannu.nyman@iki.fi>
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(backported from b9bd3285c7c6fbc60374b05ac2da9be41ce75651)

5 years agoRevert "ar71xx: ag71xx: Add connect message: fixed phy"
Jo-Philipp Wich [Wed, 1 Aug 2018 20:31:34 +0000 (22:31 +0200)]
Revert "ar71xx: ag71xx: Add connect message: fixed phy"

This reverts commit 0b9f4e880807e3cfd22d12b929202e1edcdc577c.

This change reportedly breaks connectivity on some ar71xx devices, so
revert it for now.

Ref: https://github.com/openwrt/openwrt/pull/1217#issuecomment-409708087
Reported-by: Hannu Nyman <hannu.nyman@iki.fi>
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(backported from 33dbe2c55da1480559092185c4ef071995d9bc90)

5 years agoRevert "ar71xx: ag71xx_phy: Fix compilation for debug messages"
Jo-Philipp Wich [Wed, 1 Aug 2018 20:31:04 +0000 (22:31 +0200)]
Revert "ar71xx: ag71xx_phy: Fix compilation for debug messages"

This reverts commit 2655fbe8efb2a596aa8db92cffa817e3bf0c64ea.

The patch introduces syntax errors, revert it for now.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(backported from 9ebf59638600b3cffc5cb601cce60226c942a516)

5 years agogdb: bump to 8.1.1
Koen Vandeputte [Wed, 1 Aug 2018 11:32:22 +0000 (13:32 +0200)]
gdb: bump to 8.1.1

GDB 8.1.1 brings the following fixes and enhancements over GDB 8.1:

 * PR gdb/22824 (misleading description of new rbreak Python function in GDB 8.1 NEWS file)
 * PR gdb/22849 (ctrl-c doesn't work in extended-remote)
 * PR gdb/22907 ([Regression] gdbserver doesn't work with filename-only binaries)
 * PR gdb/23028 (inconsistent disassemble of vcvtpd2dq)
 * PR gdb/23053 (Fix -D_GLIBCXX_DEBUG gdb-add-index regression)
 * PR gdb/23127 ([AArch64] GDB cannot be used for debugging software that uses high Virtual Addresses)
 * PR server/23158 (gdbserver no longer functional on Windows)
 * PR breakpoints/23210 ([8.1/8.2 Regression] Bogus Breakpoint address adjusted from 0xf7fe7dd3 to 0xfffffffff7fe7dd3)

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
(backported from a2a225517d1a7c986bffe675274f94806fb6cc51)

5 years agotoolchain/gdb: bump to 8.1.1
Koen Vandeputte [Wed, 1 Aug 2018 11:39:03 +0000 (13:39 +0200)]
toolchain/gdb: bump to 8.1.1

GDB 8.1.1 brings the following fixes and enhancements over GDB 8.1:

 * PR gdb/22824 (misleading description of new rbreak Python function in GDB 8.1 NEWS file)
 * PR gdb/22849 (ctrl-c doesn't work in extended-remote)
 * PR gdb/22907 ([Regression] gdbserver doesn't work with filename-only binaries)
 * PR gdb/23028 (inconsistent disassemble of vcvtpd2dq)
 * PR gdb/23053 (Fix -D_GLIBCXX_DEBUG gdb-add-index regression)
 * PR gdb/23127 ([AArch64] GDB cannot be used for debugging software that uses high Virtual Addresses)
 * PR server/23158 (gdbserver no longer functional on Windows)
 * PR breakpoints/23210 ([8.1/8.2 Regression] Bogus Breakpoint address adjusted from 0xf7fe7dd3 to 0xfffffffff7fe7dd3)

GDB 8.1 includes the following changes and enhancements:

  * Breakpoints on C++ functions are now set on all scopes by default
    ("wild" matching);

  * Support for inserting breakpoints on functions marked with C++ ABI tags;

  * Target floating-point arithmetic emulation during expression evaluation
    (requires MPFR 3.1 or later);

  * Various Python Scripting enhancements;

  * Improved Rust support; in particular, Trait objects can now be inspected
    when debugging Rust code;

  * GDB no longer makes assumptions about the type of symbols without
    debugging information to avoid producing erroneous and often confusing
    results;

  * The 'enable' and 'disable' commands now accept a range of breakpoint
    locations;

  * New 'starti' command to start the program at the first instruction;

  * New 'rbreak' command to insert a number of breakpoints via a regular
    expression pattern (requires Python);

  * The 'ptype' command now supports printing the offset and size of
    the fields in a struct;

  * The 'gcore' command now supports dumping all the memory mappings
    ('-a' command-line option);

  * New shortcuts for TUI Single-Key mode: 'i' for stepi, and 'o' for nexti;

  * GDBserver enhancements:
    ** Support for transmitting environment variables to GDBserver;
    ** Support for starting inferior processes with a specified initial
       working directory;
    ** On Unix systems, support for globbing expansion and variable
       substitution of inferior command-line arguments;

  * Various completion enhancements;

  * The command used to compile and inject code with the 'compile' command
    is now configurable;

  * New '--readnever' command-line option to speed the GDB startup when
    debugging information is not needed;

  * Support for the following new native configurations:
    ** FreeBSD/aarch64 (aarch64*-*-freebsd*);
    ** FreeBSD/arm (arm*-*-freebsd*);

  * Support for the following new targets:
    ** FreeBSD/aarch64 (aarch64*-*-freebsd*);
    ** FreeBSD/arm (arm*-*-freebsd*);
    ** OpenRISC ELF (or1k*-*-elf)

  * Removed support for the following targets and native configurations:
    ** Solaris2/x86 (i?86-*-solaris2.[0-9]);
    ** Solaris2/sparc (sparc*-*-solaris2.[0-9]);

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
(backported from 3df400c87ed9852d3641340b96849d9117355337)

5 years agoadb: added patch for openssl 1.1.0 compatibility
Eneas U de Queiroz [Fri, 25 May 2018 14:43:32 +0000 (11:43 -0300)]
adb: added patch for openssl 1.1.0 compatibility

Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
(backported from f63f20fb93c7e67775cb01d97fc88b5b29452b81)
(rebased patches)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agonftables: allow to build with json support
Rosy Song [Tue, 31 Jul 2018 09:09:34 +0000 (17:09 +0800)]
nftables: allow to build with json support

Signed-off-by: Rosy Song <rosysong@rosinson.com>
(backported from f30583c41d37c39d3ca063b31871a3c207734b1f)

5 years agoar71xx: cr3000: cleanup board definition
Daniel F. Dickinson [Sun, 29 Jul 2018 11:40:01 +0000 (07:40 -0400)]
ar71xx: cr3000: cleanup board definition

1) Add comments so it's clear why we did things; this may prevent
   someone (e.g. me) from sinking time into fixing things that
   aren't broken and/or were done for reason.

2) Drop mdio 0 probe/register; we don't use ag1xx mdio bus 0.

3) Cosmetic reording of some code (tested) that makes the defintion
   more clear.

Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
(backported from 0b7a9688ce49c60a18575b925138b100f4e8e078)

5 years agoar71xx: cr3000: Use correct company name
Daniel F. Dickinson [Sun, 29 Jul 2018 11:17:19 +0000 (07:17 -0400)]
ar71xx: cr3000: Use correct company name

It's 'PowerCloud Systems' not 'PowerCloud'.

Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
(backported from b6c8bc0981855b50b7bf22f0743bb9a75fc2b341)

5 years agoar71xx: cr3000: Drop support for defunct cloud
Daniel F. Dickinson [Wed, 25 Jul 2018 23:18:07 +0000 (19:18 -0400)]
ar71xx: cr3000: Drop support for defunct cloud

The CR3000 stock firmware is now irrelevant as it required a now defunct
cloud service.  Therefore only build images that use the entire flash
(overwriting stock firwmare-specific partitions that no longer matter),
previously called 'nocloud' images.

Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
(backported from e38520cd50f3316e411b6210b6a258cdec81c88a)

5 years agokernel: switch compatible property for RedBoot DT binding
Matt Merhar [Mon, 30 Jul 2018 21:21:57 +0000 (17:21 -0400)]
kernel: switch compatible property for RedBoot DT binding

This changes the DT binding's compatible property to
"ecoscentric,redboot-fis-partitions", removing the existing reference to
Red Hat.

Per the documentation hosted at eCosCentric's website, eCosCentric is
RedBoot's sole commercial maintainer since 2002, and the project has
been under the stewardship of the Free Software Foundation since 2008.

This also updates the property in the Inventel Livebox 1 .dts, the
binding's only current user.

Signed-off-by: Matt Merhar <mattmerhar@protonmail.com>
(backported from a2eaaaaf4b88f8e917203d79d833a9686a61022f)

5 years agokernel: modules: fix kmod-regmap
Christian Lamparter [Mon, 30 Jul 2018 20:33:51 +0000 (22:33 +0200)]
kernel: modules: fix kmod-regmap

This patch fixes the a compile issue that was triggered by
apm821xx/sata when kmod-regmap was selected.

The CONFIG_REGMAP is declared in drivers/base/regmap/Kconfig
as type "bool" and not "tristate". Hence the symbol should
never be set to module, as this confuses the #if CONFIG_REGMAP
guards in include/linux/regmap.h:

|.../drivers/regulator/core.c:4041: undefined reference to `dev_get_regmap'
|.../drivers/regulator/core.c:4042: undefined reference to `dev_get_regmap'
|.../drivers/regulator/core.c:4044: undefined reference to `dev_get_regmap'
|.../drivers/regulator/helpers.o: In function `regulator_is_enabled_regmap':
|.../drivers/regulator/helpers.c:36: undefined reference to `regmap_read'
|...

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
(backported from d00913d1215b4877da67431b3dadf51fe5d0c443)

5 years agoipq40xx: Limit usable channels for OpenMesh A62 PHYs
Sven Eckelmann [Mon, 30 Jul 2018 15:43:48 +0000 (17:43 +0200)]
ipq40xx: Limit usable channels for OpenMesh A62 PHYs

The OpenMesh A62 is a tri-band device (1x 2.4GHz, 2x 5GHz) with special
filters in front of the RX+TX paths to the 5GHz PHYs. These filtered
channel can in theory still be used by the hardware but the signal strength
is reduced so much that it makes no sense.

Signed-off-by: Sven Eckelmann <sven.eckelmann@openmesh.com>
(backported from e3b8ae2b09e137ce2eae33551923daf302293a0c)

5 years agomac80211: ath10k: Limit available channels via DT ieee80211-freq-limit
Sven Eckelmann [Mon, 30 Jul 2018 15:43:09 +0000 (17:43 +0200)]
mac80211: ath10k: Limit available channels via DT ieee80211-freq-limit

Tri-band devices (1x 2.4GHz + 2x 5GHz) often incorporate special filters in
the RX and TX path. These filtered channel can in theory still be used by
the hardware but the signal strength is reduced so much that it makes no
sense.

There is already a DT property to limit the available channels but ath10k
has to manually call this functionality to limit the currrently set wiphy
channels further.

Signed-off-by: Sven Eckelmann <sven.eckelmann@openmesh.com>
(backported from ef39d0079b4efd18f0d39971c66989d5a6f34eca)
(rebased patches)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agokernel: add kmod-iio-htu21
Torbjörn Jansson [Mon, 30 Jul 2018 13:59:20 +0000 (15:59 +0200)]
kernel: add kmod-iio-htu21

This adds support for the htu21 humidity and temperature sensor.

To get it to work you have to do something like this:
echo "htu21 0x40" >/sys/class/i2c-dev/i2c-1/device/new_device
for example by adding it to rc.local

Compile tested on brcm2708 and I have used an earlier version of this
patch for more than a year.

Signed-off-by: Torbjörn Jansson <torbjorn.jansson@mbox200.swipnet.se>
(backported from af9a96d23eda3c9989e8b80c9ad2a9c41334aefd)

5 years agoar71xx: fix TL-WR1043N v5 port mapping
John Crispin [Mon, 30 Jul 2018 15:47:06 +0000 (17:47 +0200)]
ar71xx: fix TL-WR1043N v5 port mapping

fixes 5660c8fb20 ("ar71xx: TL-WR1043N v5: fix mapping of LAN ports to labels on housing.")

Signed-off-by: John Crispin <john@phrozen.org>
(backported from eddf4eae9777bf7328ece08451752abeab315919)

5 years agoar71xx: TL-WR1043N v5: fix mapping of LAN ports to labels on housing.
Tim Thorpe [Wed, 18 Apr 2018 22:50:05 +0000 (17:50 -0500)]
ar71xx: TL-WR1043N v5: fix mapping of LAN ports to labels on housing.

Reversed the numbering of the LAN ports in Luci so as to match the port numbers on the housing.

Signed-off-by: Tim Thorpe <tim@tfthorpe.net>
(backported from 5660c8fb20d056eac495647bb1116883f269ed8d)

5 years agoar71xx: TL-WR1043N v4/v5: add orange WAN LED support
Tim Thorpe [Tue, 13 Feb 2018 15:26:18 +0000 (09:26 -0600)]
ar71xx: TL-WR1043N v4/v5: add orange WAN LED support

Add missing definitions for the orange WAN LED on the
TL-WR1043N(D) v4 and v5.

Change the name of a MAC address offset constant to
make it consistent with the format of the
existing constants.

Signed-off-by: Tim Thorpe <tim@tfthorpe.net>
(backported from d834ad9ac34a1a94195cee08e1d389e7b7edab20)

5 years agoramips: add support for ELECOM WRC-2533GST
INAGAKI Hiroshi [Thu, 26 Jul 2018 14:24:22 +0000 (23:24 +0900)]
ramips: add support for ELECOM WRC-2533GST

ELECOM WRC-2533GST is a 2.4/5 GHz band 11ac rotuer, based on
MediaTek MT7621A.

Specification:

- MT7621A (2-Core, 4-Threads)
- 128 MB of RAM (DDR3)
- 16 MB of Flash (SPI)
- 4T4R 2.4/5 GHz wifi
  - MediaTek MT7615
- 5x 10/100/1000 Mbps Ethernet
- 4x LEDs, 6 keys (2x buttons, 1x slide switch)
- UART header on PCB
  - Vcc, GND, TX, RX from ethernet port side
  - baudrate: 57600 bps

Flash instruction using factory image:

1. Connect the computer to the LAN port of WRC-2533GST
2. Connect power cable to WRC-2533GST and turn on it
3. Access to "https://192.168.2.1/" and open firmware update
page ("ファームウェア更新")
4. Select the OpenWrt factory image and click apply ("適用")
button
5. Wait ~150 seconds to complete flashing

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
(backported from ce93445cd6058ae37ca3d257792f68cd98e758da)

5 years agox86: add support to set GRUB menu entry title
Kjel Delaey [Tue, 5 Jun 2018 13:47:05 +0000 (15:47 +0200)]
x86: add support to set GRUB menu entry title

$ make menuconfig

        Target Images -> Title for the menu entry in GRUB

Signed-off-by: Kjel Delaey <kjel_delaey@hotmail.com>
(backported from 8492ad0cc183550137ea5afadcbebbfb4fd68fed)

5 years agokirkwood: add support for Iomega Storcenter ix2-200
Ademar Arvati Filho [Fri, 6 Jul 2018 00:56:58 +0000 (00:56 +0000)]
kirkwood: add support for Iomega Storcenter ix2-200

Iomega Storcenter ix2-200 is a dual SATA NAS powered by a Marvell
 Kirkwood SoC clocked at 1GHz. It has 256MB of RAM and 32MB of
 flash memory, 3x USB 2.0 and 1x 1Gbit/s NIC

Specification:
- SoC: Marvell Kirkwood 88F6281
- CPU/Speed: 1000Mhz
- Flash-Chip: Hynix NAND
- Flash size: 32 MiB,erase size:16 KiB,page size:512,OOB size:16
- RAM: 256MB
- LAN: 1x 1000 Mbps Ethernet
- WiFi: none
- 3x USB 2.0
- UART: for serial console

Installation instructions - easy steps:
1. download factory.bin and copy into tftp server
2. access uboot environment with serial cable and run
    ```
    setenv mainlineLinux yes
    setenv arcNumber 1682
    setenv console 'console=ttyS0,115200n8'
    setenv mtdparts 'mtdparts=orion_nand:0x100000@0x000000(u-boot)ro,0x20000@0xA0000(u-boot environment)ro,0x300000@0x100000(kernel),0x1C00000@0x400000(ubi)'
    setenv bootargs_root 'root='
    setenv bootcmd 'setenv bootargs ${console} ${mtdparts} ${bootargs_root}; nand read.e 0x800000 0x100000 0x300000; bootm 0x00800000'
    saveenv
    setenv serverip 192.168.1.1
    setenv ipaddr 192.168.1.13
    tftpboot 0x00800000 factory.bin
    nand erase 0x100000 $(filesize)
    nand write 0x00800000 0x100000 $(filesize)
    run bootcmd
    ```
3. access openwrt by dhcp ip address assigned by your router (p.ex: 192.168.1.13)

Installation steps nand bad blocks proof:
1. download initramfs-uImage and copy into usb ext2 partition
    ```
    mkfs.ext2 -L ext2 /dev/sdh1
    mount -t ext2 /dev/sdh1 /mnt
    cp initramfs-uImage /mnt/initramfs.bin
    umount /mnt
    ```
2. access uboot environment with serial cable and run
    ```
    setenv mainlineLinux yes
    setenv arcNumber 1682
    setenv console 'console=ttyS0,115200n8'
    setenv mtdparts 'mtdparts=orion_nand:0x100000@0x000000(u-boot)ro,0x20000@0xA0000(u-boot environment)ro,0x300000@0x100000(kernel),0x1C00000@0x400000(ubi)'
    setenv bootargs_root 'root='
    setenv bootcmd 'setenv bootargs ${console} ${mtdparts} ${bootargs_root}; nand read.e 0x800000 0x100000 0x300000; bootm 0x00800000'
    saveenv
    usb reset; ext2load usb 0:1 0x00800000 /initramfs.bin; bootm 0x00800000
    ```
3. log into openwrt and sysupgrade to install into flash
    ```
    sysupgrade -n /tmp/sysupgrade.bin
    ```
4. access openwrt by dhcp ip address assigned by your router (p.ex: 192.168.1.13)

Signed-off-by: Ademar Arvati Filho <arvati@hotmail.com>
(backported from 27b2f0fc0fc5513304a5be3c5b8cb23aeb09e6f5)

5 years agoath10k-ct: fix build with current mac80211 package
Jo-Philipp Wich [Mon, 30 Jul 2018 13:00:53 +0000 (15:00 +0200)]
ath10k-ct: fix build with current mac80211 package

Commit 2dcd955aea ("mac80211: backport and update patches for ath10k")
changed the DFS detector API, causing ath10k-ct to fail building due to
a missing add_pulse() argument.

Extend the already existing kernel compatibility patch to also adjust
the add_pulse() call accordingly.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(backported from 3083962dd409360059199753bb465427c667daf5)

5 years agobuild: fix ASLR for LTO packages
Julien Dusser [Tue, 17 Jul 2018 16:29:34 +0000 (18:29 +0200)]
build: fix ASLR for LTO packages

Fix building packages with LTO when CONFIG_PKG_ASLR_PIE is enabled.

Despite comment of PR lto/80838, it seems that GCC needs -fPIC on linker
command line, even if all objects are -fPIC. This may change as PR
lto/80838 is merged into 8.1

compile-tested: ar71xx, ath79

Fix commits:
6dac92a42e052f89971762173daabb7fd84742ef
8c11133c9de632dca69c8464f911d8e2716effe2
07940acc341ee9bb2887359f193625e48f36207e
e7397eef69a20fc630148d0e597523e139d21c0c
ef16a394d2b24a363b50b5b4720cb23fe156c9da
ef96d1e34a990871c912938c336f51a510b1e32f
47b42137ce1e931ae5871952b1f98438396f5e07
73fc67b61480a3430d31de33478a1c0c2c364b9c
154c0c4006daf41e2cbb6c8b7ad5557f83dfea3e
804c51e1e661819c5a7532e66fb8a12166eef9a9

Signed-off-by: Julien Dusser <julien.dusser@free.fr>
(backported from 4dfa6b7a300188db2d97a291f9c1303286a6bcc5)

5 years agosamsung/s5pv210: New target
Jianhui Zhao [Tue, 17 Apr 2018 03:09:14 +0000 (11:09 +0800)]
samsung/s5pv210: New target

Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
(backported from 84c212da44cf5df210ae166ed7e64adf764ccf3f)

5 years agoar71xx: add support for TP-Link Archer C59 v2
Keith Maika [Fri, 15 Jun 2018 04:39:09 +0000 (00:39 -0400)]
ar71xx: add support for TP-Link Archer C59 v2

TP-Link Archer C59v2 is a dual-band AC1350 router based on
Qualcomm/Atheros QCA9561+QCA9886 chips.

Specification:

- 775/650/258 MHz (CPU/DDR/AHB)
- 128 MB of RAM (DDR2)
- 16 MB of FLASH (SPI NOR)
- 3T3R 2.4 GHz
- 2T2R 5 GHz
- 5x 10/100 Mbps Ethernet
- USB 2.0 port
- UART header on PCB

Flash instruction:
  - via web UI:
    1. Download openwrt-ar71xx-generic-archer-c59-v2-squashfs-factory.bin
    2. Login to router and open the Advanced tab
    3. Navigate to System Tools -> Firmware Upgrade
    4. Upload firmware using the Manual Upgrade form
  - via TFTP:
    1. Set PC to fixed ip address 192.168.0.66
    2. Download openwrt-ar71xx-generic-archer-c59-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.

Signed-off-by: Keith Maika <keithm@aoeex.com>
(backported from 4caab808300ad75575d778bae6e184caa26aeabc)

5 years agokernel: add missing include to redboot.c
Rafał Miłecki [Mon, 30 Jul 2018 10:06:20 +0000 (12:06 +0200)]
kernel: add missing include to redboot.c

This fixes:
drivers/mtd/redboot.c:299:34: error: array type has incomplete element type 'struct of_device_id'

Fixes: 5e8b4be53177 ("kernel: add DT binding support to the mtd redboot parser")
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
(backported from a3d2448fae5499356a31d71585a812ac65e7a39a)
(rebased patches)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agobrcm63xx: update DT RedBoot binding for the Inventel Livebox 1
Rafał Miłecki [Mon, 30 Jul 2018 06:45:41 +0000 (08:45 +0200)]
brcm63xx: update DT RedBoot binding for the Inventel Livebox 1

linux,part-probe should be avoided as its only supported with OpenWrt
downstream patch that is going to be dropped eventually.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
(backported from 23197e4580e933b2f81bfd06be051d6038bf24a9)

5 years agoomap: disable ubifs
Lucian Cristian [Thu, 19 Jul 2018 06:59:43 +0000 (09:59 +0300)]
omap: disable ubifs

ubifs image are not working, until there is a fix, disable them

Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
(backported from 569b6c82460aed3df2d0ea90cdee1b54ddd34fd2)

5 years agoomap: add support for f2fs/ext4 overlay creation
Lucian Cristian [Thu, 19 Jul 2018 06:58:42 +0000 (09:58 +0300)]
omap: add support for f2fs/ext4 overlay creation

add kernel support and include the tools for creating an overlay partition (f2fs or ext4)

Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
(backported from ca529e60d2dde215b3199583bda0f37454e0b896)

5 years agoomap: add sysupgrade support
Lucian Cristian [Thu, 19 Jul 2018 06:55:19 +0000 (09:55 +0300)]
omap: add sysupgrade support

add sysupgrade missing script files

Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
(backported from 6a095e858718e91a56dc69f21b5ecb76237e7c28)

5 years agoomap: rename image for sysupgrade compatibility
Lucian Cristian [Thu, 19 Jul 2018 06:48:56 +0000 (09:48 +0300)]
omap: rename image for sysupgrade compatibility

for sysupgrade to work we need to change the image name based on dts target name

Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
(backported from 40f66f1431b1a6638f05b75952d7b5a94e385e8d)

5 years agoomap: fix squashfs image boot and creation
Lucian Cristian [Thu, 19 Jul 2018 06:45:25 +0000 (09:45 +0300)]
omap: fix squashfs image boot and creation

fixes FS#1034, squash fs images fails to boot because of missing ARM BCJ filter decoder
also activate squashf image creation

Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
(backported from f9af9be8abb72838011c206029ee9274ccd8738e)

5 years agohostapd: add ht and vht support in handle event function Add ht and vht capabilities...
Nick Hainke [Thu, 17 May 2018 10:35:23 +0000 (12:35 +0200)]
hostapd: add ht and vht support in handle event function Add ht and vht capabilities. If a device sends a probe request, the capabilities are added.

Signed-off-by: Nick Hainke <vincent@systemli.org>
(backported from abefb4fda30936abff58736ed81572a127695e65)

5 years agohostapd: add ubus call for ap features
Nick Hainke [Wed, 25 Apr 2018 22:03:05 +0000 (00:03 +0200)]
hostapd: add ubus call for ap features

The call "get_features" allows to gather hostapd config options
via ubus. As first infos we add the ht and vht support.
Although nl80211 supports to gather informations about
ht and vht capabilities, the hostapd configuration can disable
vht and ht. However, it is possible that the iw output is not
representing the actual hostapd configuration.

Signed-off-by: Nick Hainke <vincent@systemli.org>
(backported from 74ac74227715aec4b6a3badf7a69bdde13431e04)

5 years agouboot-envtools: add configuration for Traverse LS1043 boards.
Mathew McBride [Wed, 25 Apr 2018 02:51:48 +0000 (12:51 +1000)]
uboot-envtools: add configuration for Traverse LS1043 boards.

Signed-off-by: Mathew McBride <matt@traverse.com.au>
(backported from ae95a8ad3ee08995f16092820aa495b46ddcfdb9)

5 years agolayerscape: add Traverse LS1043-S support
Mathew McBride [Mon, 30 Apr 2018 12:42:39 +0000 (22:42 +1000)]
layerscape: add Traverse LS1043-S support

The Traverse LS1043-S board is a router board based on
NXP/Freescale's LS1043 SoC, with 4x1GBase-T, 1 SFP and 1 SFP+,
as well as miniPCIe and M.2 LTE.

Unlike the Layerscape reference boards, the LS1043-S board has
NAND flash and uses the mainline U-Boot.

This patch implements support for the LS1043-S board, as well as
the earlier LS1043-V board. It is our intention that all boards
in this family (LS1043-S and later, Five64) will boot the same binary.

Not included in this patchset are the hwmon drivers not in the kernel
(emc1704,pac1934) or the bootloader.

Signed-off-by: Mathew McBride <matt@traverse.com.au>
(backported from 08714738d2c8d7710f8fd2b7deac795f49e7d7c2)

5 years agolayerscape: add multiple-configuration generator for FIT images
Mathew McBride [Mon, 30 Apr 2018 12:43:29 +0000 (22:43 +1000)]
layerscape: add multiple-configuration generator for FIT images

This is required for the Traverse LS1043 family, we generate a FIT image
that works on all boards across the family. This is done by creating
multiple configurations that select the right DTB for the board.

The bootloader on these boards is configured to boot like this:
bootm $kernel_load#ls1043s
bootm $kernel_load#ls1043v

This is based on earlier work by Jason Wu for Zynq:
https://lists.openwrt.org/pipermail/openwrt-devel/2016-March/040460.html

Modified to add FDT load addresses and multiple configurations with DTB.

Signed-off-by: Mathew McBride <matt@traverse.com.au>
(backported from 481f870a02a29974eca943f3b926434d5e517679)

5 years agolayerscape: add support for fixed-link on RGMII interfaces
Mathew McBride [Mon, 16 Apr 2018 23:45:11 +0000 (09:45 +1000)]
layerscape: add support for fixed-link on RGMII interfaces

This is required on the Traverse LS1043 boards to support SFP
and xDSL plug-ins.

This will not be needed on kernel 4.14.

Signed-off-by: Mathew McBride <matt@traverse.com.au>
(backported from 2203815f05162c357fbf96b3da8098f687a86d04)

5 years agolayerscape: enable QorIQ thermal driver
Mathew McBride [Mon, 16 Apr 2018 23:43:38 +0000 (09:43 +1000)]
layerscape: enable QorIQ thermal driver

This provides access to the CPU die temperature sensor and
the thermal throttling integration

Signed-off-by: Mathew McBride <matt@traverse.com.au>
(backported from 40120ca6709c4f47d739688797a39c31859d3a85)

5 years agolayerscape: remove DEVICE_TYPE=developerboard
Mathew McBride [Mon, 16 Apr 2018 23:43:03 +0000 (09:43 +1000)]
layerscape: remove DEVICE_TYPE=developerboard

The Traverse LS1043 series are router boards and need the default router package
selection

Signed-off-by: Mathew McBride <matt@traverse.com.au>
(backported from efc1096ef0d15f1bfa6d5f7890fff7420e30fbee)

5 years agoramips: fix RBM11G name
Thibaut VARÈNE [Sun, 29 Jul 2018 09:07:23 +0000 (11:07 +0200)]
ramips: fix RBM11G name

The device name is corrected to match the hardware-stored (in hard config
flash space) device name.

Tested-by: Tobias Schramm <tobleminer@gmail.com>
Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
(backported from 3fd4db76b06bfcf7c69a6bef62f073fb537ab977)

5 years agoramips: fix RBM33G name
Thibaut VARÈNE [Sun, 29 Jul 2018 09:07:21 +0000 (11:07 +0200)]
ramips: fix RBM33G name

The device name is corrected to match the hardware-stored (in hard config
flash space) device name.

Tested-by: Tobias Schramm <tobleminer@gmail.com>
Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
(backported from a9494bb4254d1fa91eb82c04e14d97445e225a06)

5 years agolibevent: update to 2.1.8
Leon M. George [Mon, 31 Oct 2016 13:55:44 +0000 (14:55 +0100)]
libevent: update to 2.1.8

Signed-off-by: Leon M. George <leon@georgemail.eu>
(backported from 025688794d516d5b020abfdaabf47fe341e37da6)
(rebased patches)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoramips: mmc: Add SD card support to HC5661A
LoveSy [Mon, 28 May 2018 01:47:19 +0000 (09:47 +0800)]
ramips: mmc: Add SD card support to HC5661A

Tested on HC5661A and it now fixes the issue that when enabling sd card
in HC5661A, the wan and 3 lan ports will down.

Known issue:
- When enabling SD card support, the led light of system will down and the rest 2 lights keep working.

Signed-off-by: LoveSy <shana@zju.edu.cn>
(backported from 974a2b1aa9b0f8bd7a7442efa069d954e6b354ce)

5 years agoramips: mmc: Fix init for MT7628AN
LoveSy [Mon, 28 May 2018 01:46:28 +0000 (09:46 +0800)]
ramips: mmc: Fix init for MT7628AN

There is another thing about crc to do when initialize SD card on
MT7628.
This commit is to fix this init issue.

Signed-off-by: LoveSy <shana@zju.edu.cn>
(backported from 3a8efaef00d6b7317c46fe6b7e923912d8bf3500)

5 years agoiptables: add ip[6|]tables-compat packages + libxtables-compat depends on IPTABLES_NF...
Martin Strobel [Sat, 7 Jul 2018 07:24:30 +0000 (09:24 +0200)]
iptables: add ip[6|]tables-compat packages + libxtables-compat depends on IPTABLES_NFTABLES

allows iptables-compat to use nft packet filtering
allows to translate iptables-style to nft-style

Signed-off-by: Martin Strobel <arctus@crza.de>
(backported from 7d7323bccd6df4917f3a97e54cb237ee3849ca17)

5 years agoconfig: Change conf.c remove compiler warnings
Paul Schulz [Thu, 21 Jun 2018 08:49:39 +0000 (18:19 +0930)]
config: Change conf.c remove compiler warnings

Compiler is producing the warning:
   warning: format not a string literal and no format arguments
   [-Wformat-security]

This patch makes the format a literal string in printf statements.

This with: gcc version 7.3.0 (Ubuntu 7.3.0-16ubuntu3) in Ubuntu 18.04

Signed-off-by: Paul Schulz <paul@mawsonlakes.org>
(backported from 7bbd1855cd06db7552c14d91f1151c8100e8813e)

5 years agoar71xx: ag71xx: Prevent kernel oops for board def
Daniel F. Dickinson [Thu, 26 Jul 2018 06:57:37 +0000 (02:57 -0400)]
ar71xx: ag71xx: Prevent kernel oops for board def

The driver is written in such a way that with a board defintion that
connects a fixed phy, mdio, and switch in a certain way, a kernel oops could
result because of lack of previously probed mdio bus.

This commit allows for easier debugging in this case by casting the
correct blame with serial console messages.

Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
(backported from 7a3e133751870a3431e2430386a77a002eb24117)

5 years agoar71xx: ag71xx: Add connect message: fixed phy
Daniel F. Dickinson [Wed, 25 Jul 2018 23:15:32 +0000 (19:15 -0400)]
ar71xx: ag71xx: Add connect message: fixed phy

It's a little noisier but makes it obvious when the ar7240 switch was
connected to the MDIO bus, and to which phy device (or the failure
to do so).

Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
(backported from 0b9f4e880807e3cfd22d12b929202e1edcdc577c)

5 years agoar71xx: ag71xx_phy: Fix compilation for debug messages
Daniel F. Dickinson [Wed, 25 Jul 2018 23:14:26 +0000 (19:14 -0400)]
ar71xx: ag71xx_phy: Fix compilation for debug messages

NB: Error only appears with ag71xx debug messages and dynamic printk
enabled.  This is probably why no one has caught it before.

Previously phy probe debug messages used old (now wrong) functions
to get the phy name for printing.  There was also the chance of
a NULL pointer in the event no phy_device was found.

Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
(backported from 2655fbe8efb2a596aa8db92cffa817e3bf0c64ea)

5 years agoath10k: update QCA4019 firmware
Massimo Tum [Tue, 3 Jul 2018 12:57:41 +0000 (14:57 +0200)]
ath10k: update QCA4019 firmware

With AVM Fritz!Box 4040 and OpenWrt 18.06 RC1 there are many kernel warnings
kern.warn kernel: [87771.917049] ath10k_ahb a000000.wifi: Invalid VHT mcs 15 peer stats
and there are disconnections when the connected clients are many, at the moment I tried with 16 clients on 2.4 GHz and 8 on 5 GHZ.

Firmware 10.4-3.5.3-00057 fixes these warnings and the problem of disconnections of some clients.

Signed-off-by: Massimo Tum <masnia@tiscali.it>
(backported from 0a492ee39e1c1a226dc34923909459117077b4c5)

5 years agoar71xx: cap324: Drop support for defunct cloud
Daniel F. Dickinson [Wed, 25 Jul 2018 23:18:36 +0000 (19:18 -0400)]
ar71xx: cap324: Drop support for defunct cloud

Only build images for straight OpenWrt (using all flash; wipes out
partitions that contain information only important for accessing a
now defunct cloud service with the stock firmware) since the stock
firmware is now irrelevant.

Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
(backported from 098267db4cd3a80470b0015fba2d0e6bcfffe10e)

5 years agoar71xx: cap324: Use correct company name
Daniel F. Dickinson [Sun, 29 Jul 2018 08:13:25 +0000 (04:13 -0400)]
ar71xx: cap324: Use correct company name

It's 'PowerCloud Systems' not just 'PowerCloud'

Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
(backported from 37ab944ac5752a23fef63b56f6a6d35047d8ac7f)

5 years agoar71xx: cap324: Use correct MAC addresses
Daniel F. Dickinson [Sun, 29 Jul 2018 08:33:24 +0000 (04:33 -0400)]
ar71xx: cap324: Use correct MAC addresses

The wrong MAC addresses (from the point of view of the physical device
label) were being assigned to the wrong interfaces.  Fix that.

Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
(backported from 739eaae9ca86b243b81009fc21fb7ecc8a7b5b82)

5 years agoar71xx: cap324: Use standard eth as static lan
Daniel F. Dickinson [Sun, 29 Jul 2018 08:30:52 +0000 (04:30 -0400)]
ar71xx: cap324: Use standard eth as static lan

While the stock firmware and previous ar71xx versions of openwrt used the
single ethernet port as a DHCP client, for unmodified openwrt usage it
makes more sense to do the standard openwrt thing and make the ethernet
port a static lan with known address so that users can find the device on
the network more easily.

Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
(backported from d2f7dba309857014c8f414463c6fd7636b4ad4b9)

5 years agoar71xx: cr5000: use correct company name
Daniel F. Dickinson [Wed, 25 Jul 2018 23:07:21 +0000 (19:07 -0400)]
ar71xx: cr5000: use correct company name

It's 'PowerCloud Systems' not just 'PowerCloud'

Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
(backported from fedc826c320d27759ac551c8427eddf582f7b343)

5 years agoar71xx: cr5000: Drop support for defunct cloud
Daniel F. Dickinson [Sat, 21 Jul 2018 01:04:56 +0000 (21:04 -0400)]
ar71xx: cr5000: Drop support for defunct cloud

The Skydog cloud service no longer exists hence supporting going back
to stock firmware with cloud support is no longer applicable.

Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
(backported from 50caf9d452b8ee48f937703a366738346d48a9e4)

5 years agoar71xx: cr5000: Tweak switch LED settings
Daniel F. Dickinson [Sat, 21 Jul 2018 01:03:27 +0000 (21:03 -0400)]
ar71xx: cr5000: Tweak switch LED settings

This is basically cosmetic and sets the Port 1-4 LEDs to blink on
10/100/1000M.

Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
(backported from c666851ce7250cdb027770938d86c7ac9e3195db)

5 years agoar71xx: cr5000: Fix the reset button as KEY_RESTART
Daniel F. Dickinson [Sat, 21 Jul 2018 01:01:23 +0000 (21:01 -0400)]
ar71xx: cr5000: Fix the reset button as KEY_RESTART

The reset button was incorrectly returning KEY_WPS_BUTTON as the key
code.  We want KEY_RESTART., so make that fix.

Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
(backported from ffc71cd2d07148e5fa4257b31402e7756aaab238)

5 years agoar71xx: cr5000: board data: Use better macro name
Daniel F. Dickinson [Sat, 21 Jul 2018 00:59:40 +0000 (20:59 -0400)]
ar71xx: cr5000: board data: Use better macro name

The PCIe wireless MAC address address is better labelled as WMAC
than MAC to emphasize that it is for a wireless interface.

Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
(backported from a208e0779084e17e981a93927ca44ac36ff07db7)

5 years agogrub2: fix packed-not-aligned error on GCC 8
Edi Turn [Mon, 23 Jul 2018 14:08:18 +0000 (22:08 +0800)]
grub2: fix packed-not-aligned error on GCC 8

Fix the compile error "packed-not-aligned" when using GCC 8.

Signed-off-by: Edi Turn <yyxstter@gmail.com>
(backported from e9dee194876ffda0bf610ea9382d586c1e619caf)
(rebased patches)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agotoolchain/binutils: Add binutils 2.31.1
Daniel Engberg [Fri, 20 Jul 2018 18:29:47 +0000 (20:29 +0200)]
toolchain/binutils: Add binutils 2.31.1

Add binutils 2.31.1 to repo

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
(backported from a93b6edfec1482b58be4623d999ca69458d432ea)

5 years agoar71xx: improve MikroTik wAP R support
Thibaut VARÈNE [Sun, 29 Jul 2018 10:15:00 +0000 (12:15 +0200)]
ar71xx: improve MikroTik wAP R support

81d446b045176e3e25bb0ef74e3d060b51a0a353 introduced incomplete
support for this device.

This patch attempts to correct the situation based on OEM source
code.

LED1-3 are GSM mode on OFW (2G/3G/4G) hence unassigned here.

Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
Tested-by: David Ehrmann <ehrmann@gmail.com>
(backported from 091e915d994ff77a2677266e9e8cc831a7091deb)

5 years agoar71xx: rbspi: mark rb911L user led as active low
Thibaut VARÈNE [Sun, 29 Jul 2018 10:14:58 +0000 (12:14 +0200)]
ar71xx: rbspi: mark rb911L user led as active low

The active_low flag was missing for the user LED. This LED is open drain
(confirmed in OEM source) and open drain only makes sense for active low
GPIOs.

The two wireless LEDs mentioned in the comments are also #defined for
future reference.

Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
Tested-by: Ryan Mounce <ryan@mounce.com.au>
(backported from e76c048d344097b48dae90f447398549b391e4e9)

5 years agoar71xx: rbspi: clarify USB power gpios action
Thibaut VARÈNE [Sun, 29 Jul 2018 10:14:56 +0000 (12:14 +0200)]
ar71xx: rbspi: clarify USB power gpios action

The gpios that control power toggle for USB on the RouterBOARD devices
are active low _off_ switches.

When they are active (low), power is off. When they are inactive
(high), power is on.

Rename GPIO defines, set gpios to GPIOF_ACTIVE_LOW for consistency and
reflect their true action in the display name. This brings openwrt code
in line with OEM.

Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
Tested-by: Ryan Mounce <ryan@mounce.com.au>
(backported from 03562bfcdb1acc4be33e72a7adf138c135720eab)

5 years agoadmswconfig: Remove dead URL + HTTPS
Rosen Penev [Sun, 29 Jul 2018 17:02:08 +0000 (10:02 -0700)]
admswconfig: Remove dead URL + HTTPS

Found using uscan.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
(backported from 0394ca26c37dead9b676c4e03845bba5f3a6765d)

5 years agokernel: add DT binding support to the mtd redboot parser
Rafał Miłecki [Mon, 30 Jul 2018 06:38:30 +0000 (08:38 +0200)]
kernel: add DT binding support to the mtd redboot parser

It allows using that parser with the "compatible" set in DT.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
(backported from 5e8b4be531778aa8b6783fa431e6dd3f2865c926)

5 years agoapm821xx: clean up gpio-hogs
Christian Lamparter [Sun, 29 Jul 2018 09:55:17 +0000 (11:55 +0200)]
apm821xx: clean up gpio-hogs

convert the usb and both sata port power related gpio-hogs to
what they really are: fixed-regulators.

The ethernet phy-reset gpio-hog is replaced by a proper
upstream (4.15+) reset-gpios property in the mdio-node.
So this will work eventually.

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
(backported from b70d3557e050484081f59291a81e5180f8b4fea5)

5 years agoapm821xx: split MBL's rootfs.img.gz into a sysupgrade and factory image
Christian Lamparter [Sun, 29 Jul 2018 09:55:16 +0000 (11:55 +0200)]
apm821xx: split MBL's rootfs.img.gz into a sysupgrade and factory image

@vahid-dan reported a issue with extracting the rpi images with
Gnome's Archive Manager:
"Ubuntu Archive Manager cannot extract the file and it just
throws a general error message: "An error occurred while
extracting files".
<https://forum.lede-project.org/t/corrupted-pre-built-v18-06-0-rc2-image-for-rpi>

The MBL's rootfs.img.gz image is generated in much the same way.
Hence this patch preemptively splits the rootfs.img.gz image into
a sysupgrade and a factory image.

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
(backported from cff6548948f76b8d0c922ef5e5d456a88a78ab2e)

5 years agoapm821xx: build squashfs-rootfs images for the MBL
Christian Lamparter [Sun, 29 Jul 2018 09:55:15 +0000 (11:55 +0200)]
apm821xx: build squashfs-rootfs images for the MBL

This patch adds support for squashfs as the root filesystem.

advantages:
 - migrate from a existing -ext4 installation and back
   with the sysupgrade utility
 - existing partition layout will not be lost during switch
 - slightly smaller image size as compared to the -ext4 image.

disadvantages:
 - needs f2fs + tools. This is because fstools rootdisk.c decides based
   on the partition size (currently root partitions > 100 MiB) f2fs is
   used as the rootfs_data filesystem.
 - rootfs_data is placed into the rootfs partition after the squashfs.
   This makes it difficult for tools that expect a /dev/sda${X} device.
   It also makes it difficult for data recovery tools as they might not
   expect to find a embedded partition or will be slightly confused.
   ... or will not support f2fs.

For people with existing build configurations: make sure to include mkf2fs
and f2fsck packages into the image. Otherwise the new -squashfs image will
only boot from the ram-overlay.

Note:
All overlay data (configurations/all installed packages/...) will be
placed in inside the rootfs partition (i.e. /dev/sda2) just after the
squashfs image.

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
(backported from aed4799d6d05d89dbca1bd5f14cc3d09ac563f3b)

5 years agoipq-wifi: add a note / reminder about upstreaming new board files
Christian Lamparter [Sun, 29 Jul 2018 09:55:13 +0000 (11:55 +0200)]
ipq-wifi: add a note / reminder about upstreaming new board files

|Please send a mail with your device-specific board files upstream.
|You can find instructions and examples on the linux-wireless wiki:
|<https://wireless.wiki.kernel.org/en/users/drivers/ath10k/boardfiles>

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
(backported from df495305f36216c972255f62d0d0b6f8d4567b87)

5 years agobrcm63xx: drop linux,part-probe usage where possible
Jonas Gorski [Sun, 29 Jul 2018 11:09:22 +0000 (13:09 +0200)]
brcm63xx: drop linux,part-probe usage where possible

It was present as 4.4 compatibility, but since we now use 4.9 or later
with the new upstream solution, we don't need it anymore.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
(backported from 7880a6f7fee89efe9e5e4c707b59ba45f02e21cf)

5 years agobrcm63xx: drop own implementation of DT partitions in favour of upstream
Jonas Gorski [Sun, 29 Jul 2018 10:53:49 +0000 (12:53 +0200)]
brcm63xx: drop own implementation of DT partitions in favour of upstream

The binding works the same, so we can just drop the revert and the patch.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
(backported from abb28bec251a0b243dff87f87d09763792128349)

5 years agothc-ipv6: Update URLs
Rosen Penev [Sun, 29 Jul 2018 07:35:58 +0000 (00:35 -0700)]
thc-ipv6: Update URLs

Development has moved to GitHub. Found using UScan.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
(backported from fc89831ae8f5c0313a1f9e80afd4e129c6a2303e)

5 years agotools/cmake: Update to 3.12.0
Daniel Engberg [Sun, 22 Jul 2018 16:31:38 +0000 (18:31 +0200)]
tools/cmake: Update to 3.12.0

Update cmake to 3.12.0
Remove 140-curl-fix-libressl.patch as fix is in upstream

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
(backported from b078229412e37ccf9ca8d9a437af6b8861bd2dbb)

5 years agoutil-linux: package blockdev executable
Daniel Golle [Fri, 27 Jul 2018 10:50:35 +0000 (12:50 +0200)]
util-linux: package blockdev executable

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
(backported from af4b23dde2886ffea7374cbb22807d0be8a21b76)

5 years agoead: use new protocol setting API since libpcap 1.9.0
Syrone Wong [Thu, 26 Jul 2018 14:46:39 +0000 (22:46 +0800)]
ead: use new protocol setting API since libpcap 1.9.0

Dropped the protocol API specific symbol: HAS_PROTO_EXTENSION and
switch to the official API

Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
(backported from 7dfd72dffff914b8d9cc941c62019004532c566f)

5 years agolibpcap: update to 1.9.0
Syrone Wong [Thu, 26 Jul 2018 14:46:38 +0000 (22:46 +0800)]
libpcap: update to 1.9.0

001-Fix-compiler_state_t.ai-usage-when-INET6-is-not-defi.patch dropped due to upstream
002-Add-missing-compiler_state_t-parameter.patch dropped due to upstream

202-protocol_api.patch dropped due to implemented upstream by another way
upstream commit: https://github.com/the-tcpdump-group/libpcap/commit/55c690f6f834b4762697d7a134de439c9096c921
and renamed via: https://github.com/the-tcpdump-group/libpcap/commit/697b1f7e9b1d6f5a5be04f821d7c5dc62458bb3b

ead is the only user who use the protocol api, we have to use the new api since libpcap 1.9.0

Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
(backported from 4d57c696b1504bc672416b9ba27eab4e1729b622)

5 years agoipq40xx: move essedma patches into same range
John Crispin [Tue, 24 Jul 2018 14:04:44 +0000 (16:04 +0200)]
ipq40xx: move essedma patches into same range

Signed-off-by: John Crispin <john@phrozen.org>
(backported from ffc40d2eae90e8cf526d0f7f28992066da5d7477)

5 years agoipq40xx: sync kernel config
John Crispin [Tue, 24 Jul 2018 12:34:34 +0000 (14:34 +0200)]
ipq40xx: sync kernel config

Signed-off-by: John Crispin <john@phrozen.org>
(backported from e725d3080c81f413c4a650c7531dc649ddfd4ccf)

5 years agoipq40xx: move dts file patches to end of series
John Crispin [Tue, 24 Jul 2018 14:02:20 +0000 (16:02 +0200)]
ipq40xx: move dts file patches to end of series

Signed-off-by: John Crispin <john@phrozen.org>
(backported from e8c58e7ddd29df41a26b20e0930292d911f5f788)

5 years agoipq40xx: drop no-op cpu_idle symbol patch
John Crispin [Tue, 24 Jul 2018 12:41:02 +0000 (14:41 +0200)]
ipq40xx: drop no-op cpu_idle symbol patch

Signed-off-by: John Crispin <john@phrozen.org>
(backported from 3d456a50f47f4b48e294b0e4ca3df836729bf39c)

5 years agoramips: remove stale get_status_led call
Mathias Kresin [Mon, 23 Jul 2018 05:57:45 +0000 (07:57 +0200)]
ramips: remove stale get_status_led call

The get_status_led() function was removed due to the convertion to dts
alias based status led.

Since we don't need the boardname any longer, the functions.sh include
isn't required any more.

Fixes: c9c4b2116c09 ("ramips: Use dts alias based status led")
Signed-off-by: Mathias Kresin <dev@kresin.me>
(backported from 4cbf5601f9621d0f8973237f3133b821f472845c)