openwrt/staging/robimarko.git
7 years agoppp: fix compile warning
Hauke Mehrtens [Sun, 15 Oct 2017 12:19:20 +0000 (14:19 +0200)]
ppp: fix compile warning

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 years agolantiq: xrx200: rename nas0/ptm0 to dsl0
Martin Schiller [Mon, 9 Oct 2017 06:26:01 +0000 (08:26 +0200)]
lantiq: xrx200: rename nas0/ptm0 to dsl0

This change makes it possible to configure the wan/dsl ppp interface
settings independantly from the used TC-Layer (ATM/PTM).

Now you can move a device from an ADSL/ATM port to an VDSL/PTM port
without any configuration changes for example.

Signed-off-by: Martin Schiller <ms@dev.tdt.de>
[use the dsl0 interface name for the default netdev trigger in 01_led,
add ip dependency]
Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agomac80211: ath6kl: add missing usb-core dependency to kmod-ath6kl-usb
Hauke Mehrtens [Sun, 15 Oct 2017 08:53:46 +0000 (10:53 +0200)]
mac80211: ath6kl: add missing usb-core dependency to kmod-ath6kl-usb

This fixes a build problem with many targets.

Fixes 618ed77a17422a ("mac80211: add ath6kl kernel modules")
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 years agobinutils: add version 2.29.1
Hauke Mehrtens [Sat, 14 Oct 2017 19:28:11 +0000 (21:28 +0200)]
binutils: add version 2.29.1

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 years agokernel: kmod-macsec module for 4.9
Christian Lamparter [Sat, 14 Oct 2017 15:57:19 +0000 (17:57 +0200)]
kernel: kmod-macsec module for 4.9

MACsec/IEEE 802.1AE is useful to secure communication to and
from endpoints at Layer 2.

Starting with 4.6, the linux kernel provides a universal
macsec driver for authentication and encryption of traffic
in a LAN, typically with GCM-AES-128, and optional replay
protection.

http://standards.ieee.org/getieee802/download/802.1AE-2006.pdf

Note:
LEDE can utilize MACsec with a static connectivity association
key (static PSK) with the ip-full package installed.
<http://man7.org/linux/man-pages/man8/ip-macsec.8.html>

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
7 years agolibs/libnl: Update to 3.3.0
Daniel Engberg [Sat, 13 May 2017 14:38:56 +0000 (16:38 +0200)]
libs/libnl: Update to 3.3.0

Update libnl to 3.3.0
Import patches to fix compilation
Source: https://git.busybox.net/buildroot/tree/package/libnl
Source: https://gitweb.gentoo.org/proj/musl.git/diff/dev-libs/libnl/files/libnl-3.3.0_rc1-musl.patch?id=48d2a287
Use more automatic toolchain logic

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
7 years agopackage/kernel/leds-apu2: add apu3 board detection
Florian Eckert [Thu, 6 Jul 2017 09:20:20 +0000 (11:20 +0200)]
package/kernel/leds-apu2: add apu3 board detection

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
7 years agopackage/kernel/leds-apu2: fix whitespaces
Florian Eckert [Thu, 6 Jul 2017 09:32:44 +0000 (11:32 +0200)]
package/kernel/leds-apu2: fix whitespaces

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
7 years agotoolchain/glibc: Update to 2.26
Daniel Engberg [Sat, 12 Aug 2017 18:02:20 +0000 (20:02 +0200)]
toolchain/glibc: Update to 2.26

Update glibc to 2.26

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
7 years agomvebu: clean up ClearFog Base package selection
Ryan Mounce [Sun, 1 Oct 2017 09:44:02 +0000 (20:14 +1030)]
mvebu: clean up ClearFog Base package selection

It is unclear why so many packages are selected for ClearFog Base compared
to its big brother, and there is no reason to not append metadata for Base.

Tidy this up as the only hardware difference between Base/Pro is the
presence of a switch and a different board name / device tree.

Signed-off-by: Ryan Mounce <ryan@mounce.com.au>
7 years agomvebu: Fix ClearFog sysupgrade board definitions
Ryan Mounce [Thu, 13 Jul 2017 09:11:59 +0000 (18:41 +0930)]
mvebu: Fix ClearFog sysupgrade board definitions

Remove redundancy for platform_do_upgrade_clearfog
Fix platform_copy_config_clearfog to reflect -base/-pro split

Signed-off-by: Ryan Mounce <ryan@mounce.com.au>
7 years agomvebu: Sort 02_network alphabetically
Ryan Mounce [Wed, 12 Jul 2017 02:21:09 +0000 (11:51 +0930)]
mvebu: Sort 02_network alphabetically

Signed-off-by: Ryan Mounce <ryan@mounce.com.au>
7 years agowpan-tools: add the wpan-ping to test the 6LoWPAN network
Yunhui Fu [Fri, 13 Oct 2017 18:32:40 +0000 (14:32 -0400)]
wpan-tools: add the wpan-ping to test the 6LoWPAN network

This patch adds the help tool wpan-ping to test the 6LoWPAN
network to help the user debug network problem.

Signed-off-by: Yunhui Fu <yhfudev@gmail.com>
7 years agotoolchain/gcc: update 5.x to 5.5.0
Ryan Mounce [Thu, 12 Oct 2017 01:21:36 +0000 (11:51 +1030)]
toolchain/gcc: update 5.x to 5.5.0

This is the final bugfix release in the gcc-5 series.

Compile and run tested on macOS 10.13 (Xcode 9), mvebu/ar71xx.

Removed redundant patch for macOS (backported upstream by yours truly)

Signed-off-by: Ryan Mounce <ryan@mounce.com.au>
7 years agoat91: add support for the WB50N module from Laird
Ben Whitten [Wed, 28 Jun 2017 10:28:12 +0000 (11:28 +0100)]
at91: add support for the WB50N module from Laird

This module from Laird includes the following:
  - CPU Atmel SoC SAMA5D31
  - Wifi QCA6004
  - Bluetooth CSR8811
  - RAM 64MB LPDDR
  - FLASH 128MB

The flash is a dual image layout, kernel a/b, rootfs a/b, and a user
partition.

Signed-off-by: Ben Whitten <ben.whitten@gmail.com>
7 years agoat91: add support for the WB45N module from Laird
Ben Whitten [Fri, 10 Jun 2016 19:07:32 +0000 (20:07 +0100)]
at91: add support for the WB45N module from Laird

This module from Laird includes the following:
  - CPU Atmel SoC ARM926EJS
  - Wifi AR6003
  - Bluetooth CSR8510
  - RAM 64MB LPDDR
  - FLASH 128MB

The flash is a dual image layout, kernel a/b, rootfs a/b, and a user
partition.

Signed-off-by: Ben Whitten <ben.whitten@gmail.com>
7 years agomac80211: add ath6kl kernel modules
Ben Whitten [Tue, 1 Dec 2015 17:42:39 +0000 (17:42 +0000)]
mac80211: add ath6kl kernel modules

Allow board to include the ath6kl kernel modules.

Signed-off-by: Ben Whitten <ben.whitten@gmail.com>
7 years agolinux-firmware: add ath6k firmware to package
Ben Whitten [Sun, 19 Jun 2016 22:49:16 +0000 (23:49 +0100)]
linux-firmware: add ath6k firmware to package

Systems which include the ath6k chipset need to have the firmware included
in the image.

Signed-off-by: Ben Whitten <ben.whitten@gmail.com>
7 years agoat91: separate MKUBIFS opts to defaults in the sub target
Ben Whitten [Thu, 1 Jun 2017 22:04:52 +0000 (23:04 +0100)]
at91: separate MKUBIFS opts to defaults in the sub target

Instead of applying global defaults based on selected board, transition
to using a per board setting for UBIFS and UBINIZE.

Signed-off-by: Ben Whitten <ben.whitten@gmail.com>
7 years agoat91: refresh kernel config, enable UBI block and DMA
Ben Whitten [Mon, 18 Sep 2017 12:09:21 +0000 (13:09 +0100)]
at91: refresh kernel config, enable UBI block and DMA

The platform generates squashfs images in a UBI block but misses the
kernel module to be able to mount the block.
DMA is also enabled to allow systems which include them in the DTS to
use it.

Signed-off-by: Ben Whitten <ben.whitten@gmail.com>
7 years agosunxi: backport support for Allwinner Security System PRNG
Lucian Cristian [Sun, 1 Oct 2017 15:29:22 +0000 (18:29 +0300)]
sunxi: backport support for Allwinner Security System PRNG

Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
7 years agobusybox: provide "ip"
Hans Dedecker [Sat, 14 Oct 2017 18:13:29 +0000 (20:13 +0200)]
busybox: provide "ip"

Let busybox provide "ip" as it supports the ip applets link, address,
route, rule and neighbor

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
7 years agoar71xx: add support for Mikrotik RB750P-PBr2
Robert Marko [Thu, 5 Oct 2017 12:26:23 +0000 (14:26 +0200)]
ar71xx: add support for Mikrotik RB750P-PBr2

Specifications:
- SoC: Qualcomm QCA9531 (650MHz)
- RAM: 64MB
- Storage: 16MB NOR SPI flash
- Ethernet: 5x100M (1 PoE in, 4 PoE out)
- Outdoor use ready

This ethernet router is based on the same platform as the hEX PoE lite.

Installation

1. login to the Mikrotik WebUI to backup your licence keys
2. setup a DHCP/BOOTP Server with:
     * DHCP-Option 66 (TFTP server name) pointing to a local TFTP
       Server within the same subnet of the DHCP range
     * DHCP-Option 67 (Bootfile-Name) matching the initramfs filename
       of the to be booted image
3. connect the port labled internet to your local network
4. keep the reset button pushed down and power on the board

The board should load and start the initramfs image from the TFTP
Server. Login as root/without password to the started LEDE via ssh
listing on IPv4 address 192.168.1.1. Use sysupgrade to install LEDE.

Revert to RouterOS

Use the "rbcfg" package on in LEDE:
  * rbcfg set boot_protocol bootp
  * rbcfg set boot_device ethnand
  * rbcfg apply

Open Netinstall and reboot routerboard. Now netinstall sees routerboard
and you can install RouterOS. If NetInstall gets stuck on Sending offer
just wait for it to timeout and then close and open Netinstall again.

Click on install again.

In order for RouterOS to function properly, you need to restore license
for the device. You can do that by including license in NetInstall

Signed-off-by: Robert Marko <robimarko@gmail.com>
7 years agoramips: add support for Kimax U25AWF-H1
Daniel Kucera [Sun, 19 Feb 2017 08:46:44 +0000 (09:46 +0100)]
ramips: add support for Kimax U25AWF-H1

Kimax U-25AWF-H1 is is a 2,5" HDD Enclosure with Wi-Fi/Eth conection
and battery, based on MediaTek MT7620A.

Patch rewritten from: https://forum.openwrt.org/viewtopic.php?pid=305643

Specification:

- MT7620A CPU
- 64 MB of RAM
- 16 MB of FLASH
- 802.11bgn WiFi
- 1x 10/100 Mbps Ethernet
- USB 2.0 Host
- UART for serial console

Flash instruction:
1. Download lede-ramips-mt7620-u25awf-h1-squashfs-sysupgrade.bin
2. Open webinterface a upgrade
3. After boot connect via ethernet to ip 192.168.1.1

Signed-off-by: Daniel Kucera <daniel.kucera@gmail.com>
[fix reset button gpio, don't add a lan/wan vlan config for single
port board, add -H1 suffix do make sure that this revision of the
board is supported/tested]
Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agompc85xx: Add Aerohive HiveAP-330 Access Point
Chris Blake [Sat, 30 Sep 2017 16:14:58 +0000 (11:14 -0500)]
mpc85xx: Add Aerohive HiveAP-330 Access Point

The following adds the Aerohive HiveAP-330 Access Point to LEDE under
the mpc85xx/p1020 subtarget.

Hardware:
- SoC: Freescale P1020NSE2DFB
- NAND: Intel JS28F512M29EWH 64MB
- Memory: 2x ProMOS V59C1G01168QBJ3 128MB (Total of 256MB)
- 2.4GHz WiFi: Atheros AR9390-AL1A
- 5.0GHz WiFi: Atheros AR9390-AL1A
- Eth1: Atheros AR8035-A PoE
- Eth2: Atheros AR8035-A
- TPM: Atmel AT97SC3204
- LED Driver: TI LP5521

Flashing:
1. Hook into UART (9600 baud) and enter U-Boot. You may need to enter a
password of administrator or AhNf?d@ta06 if prompted.
2. Once in U-Boot, tftp boot the initramfs image:
    dhcp;
    tftpboot 0x1000000 192.168.1.101:lede-
mpc85xx-p1020-hiveap-330-initramfs.zImage;
    tftpboot 0x6000000 192.168.1.101:lede-mpc85xx-p1020-hiveap-330.fdt;
    bootm 0x1000000 - 0x6000000;
3. Once booted, scp over the sysupgrade file and sysupgrade the device
to flash LEDE to the NAND.
    sysupgrade /tmp/lede-mpc85xx-p1020-hiveap-330-sysupgrade.img

Signed-off-by: Chris Blake <chrisrblake93@gmail.com>
7 years agompc85xx: Add cmdline override patch
Chris Blake [Sat, 30 Sep 2017 16:14:20 +0000 (11:14 -0500)]
mpc85xx: Add cmdline override patch

This patch adds a new kernel option called CONFIG_CMDLINE_OVERRIDE. This
setting is for devices with locked down u-boot environments, where users
are unable to change the default bootargs. When set, the fdt driver will
propagate the cmdline for the kernel from chosen/bootargs-override
instead of chosen/bootargs as long as it exists within the DTB.

Signed-off-by: Chris Blake <chrisrblake93@gmail.com>
7 years agompc85xx: Enable initramfs for p1020 subtarget
Chris Blake [Sat, 30 Sep 2017 16:13:35 +0000 (11:13 -0500)]
mpc85xx: Enable initramfs for p1020 subtarget

The following patch enables building of initramfs images by default for
the P1020 subtarget in mpc85xx.

Signed-off-by: Chris Blake <chrisrblake93@gmail.com>
7 years agoat91: Add ext4 filesystem
Sandeep Sheriker Mallikarjun [Fri, 13 Oct 2017 17:21:51 +0000 (10:21 -0700)]
at91: Add ext4 filesystem

Add ext4 filesystem for creating sdcard image with ext4 rootfs and
removing ext2 as it superset of ext4.

Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikarjun@microchip.com>
7 years agoat91: Enable SDHCI for sama5 in default config
Sandeep Sheriker Mallikarjun [Fri, 13 Oct 2017 17:21:50 +0000 (10:21 -0700)]
at91: Enable SDHCI for sama5 in default config

Enabled SDHCI for sama5 in kernel default config and this is needed
to mount sdcard rootfs partition during boot.

Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikarjun@microchip.com>
7 years agoat91bootstrap: remove manual copy of binaries to BIN_DIR
Sandeep Sheriker Mallikarjun [Wed, 4 Oct 2017 23:14:40 +0000 (16:14 -0700)]
at91bootstrap: remove manual copy of binaries to BIN_DIR

removed copying of binaries to BIN_DIR during install and using
default/install to install binaries to BIN_DIR folder.

Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikarjun@microchip.com>
7 years agoat91bootstrap: Add BUILD_SUBTARGET variable
Sandeep Sheriker Mallikarjun [Wed, 4 Oct 2017 23:14:39 +0000 (16:14 -0700)]
at91bootstrap: Add BUILD_SUBTARGET variable

Added sama5 to BUILD_SUBTARGET variable.This will populate at91bootstrap
menu options in bootloader menu only when SAMA5 devices are selected as
SUBTARGET and to avoid showing up this menu when legacy device is
selected as SUBTARGET and fixed typo mistake: sama5d3 -> sama5d2.

Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikarjun@microchip.com>
7 years agoat91: refresh kernel configuration
Hauke Mehrtens [Fri, 13 Oct 2017 22:00:43 +0000 (00:00 +0200)]
at91: refresh kernel configuration

This was done by running "make kernel_oldconfig" and
"make kernel_oldconfig CONFIG_TARGET=subtarget"

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 years agouboot-at91: multiple build fixes
Hauke Mehrtens [Fri, 13 Oct 2017 21:40:03 +0000 (23:40 +0200)]
uboot-at91: multiple build fixes

This fixes the following problems:
 * Add BUILD_DEVICES for legacy subtarget
 * Use features from u-boot.mk for sama5 subtarget This is mainly done
   by changing the prefix from uboot to U-Boot. This makes them depend
   on the sama5 subtarget and not selectable for the legacy subtarget
   any more

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 years agokernel: bump 4.4 to 4.4.92
Kevin Darbyshire-Bryant [Thu, 12 Oct 2017 19:06:34 +0000 (20:06 +0100)]
kernel: bump 4.4 to 4.4.92

No patch refresh changes required.

Compile tested for: ar71xx Archer C7 v2
Run tested: ar71xx Archer C7 v2

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
7 years agoiproute2: bump to 4.13
Hans Dedecker [Sun, 1 Oct 2017 19:46:27 +0000 (21:46 +0200)]
iproute2: bump to 4.13

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
7 years agomac80211: fix tx power regression
Felix Fietkau [Fri, 13 Oct 2017 18:27:33 +0000 (20:27 +0200)]
mac80211: fix tx power regression

Revert an accidental change that was introduced by having an old version
of the patch in my git tree, which was merged in 609208597b6d

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agodnsmasq: add listen_address parameter
Christian Lamparter [Thu, 12 Oct 2017 21:16:06 +0000 (23:16 +0200)]
dnsmasq: add listen_address parameter

This patch adds a parser for the uci representation of
dnsmasq's "-a | --listen-address" option.

In summary, this option forces dnsmasq to listen on the
given IP address(es). Both interface and listen-address
options may be given, in which case the set of both
interfaces and addresses is used.

Note that if no interface option is given, but listen_address is,
dnsmasq will not automatically listen on the loopback interface.
To achieve this, the loopback IP addresses, 127.0.0.1 and/or ::1
must be explicitly added.

This option is useful for ujailed dnsmasq instances, that would
otherwise fail to work properly, because listening to the
"This host on this network" address (aka 0.0.0.0 see rfc1700 page 4)
may not be allowed.

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com> (PKG_RELEASE increase)
7 years agokernel: add fix for bgmac with B50212E B1 PHY
Rafał Miłecki [Fri, 13 Oct 2017 08:22:41 +0000 (10:22 +0200)]
kernel: add fix for bgmac with B50212E B1 PHY

This PHY requires some extra programming to work reliably with all
devices. Backport upstream fix for it.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agomt76: update to the latest version
Felix Fietkau [Thu, 12 Oct 2017 11:39:40 +0000 (13:39 +0200)]
mt76: update to the latest version

e781569 update to latest mac80211/cfg80211 API changes
37654d7 mt76x2: fix tx status ampdu length corner case

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agomac80211: update to wireless-testing 2017-10-06
Felix Fietkau [Sat, 7 Oct 2017 10:52:56 +0000 (12:52 +0200)]
mac80211: update to wireless-testing 2017-10-06

Rework the code to get rid of some extra kernel module dependencies
introduced in the last update.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoath10k-ct: activate user space firmware loading again
Hauke Mehrtens [Thu, 12 Oct 2017 20:44:06 +0000 (22:44 +0200)]
ath10k-ct: activate user space firmware loading again

This backports a patch from kernel 4.14 to the ath10k-ct version based
on kernel 4.13.
Some devices are using a user space script to load the calibration data
from the flash and this was not trigged any more.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 years agoath10k-ct driver: use dma_alloc_coherent, 4.13 based driver
Ben Greear [Tue, 3 Oct 2017 22:45:37 +0000 (15:45 -0700)]
ath10k-ct driver: use dma_alloc_coherent, 4.13 based driver

This should help ath10k work on systems with little or no IOMMU
memory.  apu2 can boot two 9888 NICs now, for instance.  From
upstream patch by Adrian Chadd.

And, start building the 4.13 based CT ath10k driver.

Signed-off-by: Ben Greear <greearb@candelatech.com>
7 years agoath10k-ct firmware: Tx-hang and EAPOL handling fixes for wave-2 firmware.
Ben Greear [Mon, 2 Oct 2017 19:57:59 +0000 (12:57 -0700)]
ath10k-ct firmware: Tx-hang and EAPOL handling fixes for wave-2 firmware.

Changes since last LEDE release include:

  *  Fix key-setting bug that broke sending the EAPOL 2/4 in some cases.  This was a
     bug I introduced some time back while trying to fix .11r and simplify the key
     handling logic.  (Patch to wpa_supplicant fixed the race with sending the 4/4
     and setting the key...un-patched supplicant will still have this race and the 4-way
     auth will not work as reliably.)

  *  Increase amount of active-tids that can be scheduled.  This fixes a tx-stall
     seen with many station vdevs.

  *  Fix bug in upstream code that would cause the maximum peer to never be scheduled
     for tx.

Signed-off-by: Ben Greear <greearb@candelatech.com>
7 years agolayerscape: only support 64-bit for ls1088ardb/ls2088ardb
Yangbo Lu [Tue, 10 Oct 2017 11:17:37 +0000 (19:17 +0800)]
layerscape: only support 64-bit for ls1088ardb/ls2088ardb

This is no requirement and plan to support 32-bit for ls1088ardb
and ls2088ardb. Current 32-bit firmware for them couldn't work,
so only keep 64-bit support for these two boards in menuconfig.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
7 years agolayerscape: fix compile issue for usb ehci-fsl driver
Yangbo Lu [Tue, 10 Oct 2017 08:25:22 +0000 (16:25 +0800)]
layerscape: fix compile issue for usb ehci-fsl driver

When build firmware for layerscape target with CONFIG_ALL_NONSHARED=y,
there would be a compile issue of usb ehci-fsl driver. Actually this
driver was for PPC platforms initially and was not ready for non-PPC
now, but a kernel kconfig patch removed PPC dependency for it. So that
kernel patch should be reverted.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
7 years agoar71xx: fix section mismatches
Hauke Mehrtens [Sat, 7 Oct 2017 15:54:12 +0000 (17:54 +0200)]
ar71xx: fix section mismatches

Fix some section mismatches found with kernel 4.9.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 years agoar71xx: Add kernel 4.9 support
Hauke Mehrtens [Tue, 3 Oct 2017 16:02:59 +0000 (18:02 +0200)]
ar71xx: Add kernel 4.9 support

This add support for kernel 4.9 to the ar71xx target.
It was compile tested with the generic, NAND and mikrotik subtarget.
Multiple members of the community tested it on their boards and did not
report any major problem so far.

Especially the NAND part received some changes to adapt to the new
kernel APIs. The serial driver hack used for the Arduino Yun was not
ported because the kernel changed there a lot.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 years agobrcm47xx: relocate the stack in loader
Hauke Mehrtens [Sun, 8 Oct 2017 16:31:03 +0000 (18:31 +0200)]
brcm47xx: relocate the stack in loader

By default we are reusing the stack provided by CFE, like it is intended
by CFE. On my WRT54GS it is located at 0x8043BF30, so a big kernel image
could overwrite it. Relocate it to a different memory region which is
still under the 8MB RAM, but in the higher area. We only need this
memory region for the stack of the loader, Linux will set up this
for its own.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 years agobrcm47xx: relocate loader to higher address
Hauke Mehrtens [Sun, 8 Oct 2017 14:52:28 +0000 (16:52 +0200)]
brcm47xx: relocate loader to higher address

The boot process on a WRT54GL works the following way:
1. CFE gets loaded by the boot rom from flash
2. CFE loads the loader from the flash and gzip uncompresses it
3. CFE starts the loader
4. The loader stores the FW arguments and relocates itself to
   BZ_TEXT_START (now 0x80600000)
5. The loader reads the Linux image from flash
6. The loader lzma decompresses the Linux image to LOADADDR (0x80001000)
7. The loader executes the uncompress Linux image at LOADADDR

The BZ_TEXT_START was set to 0x80400000 before. When the kernel gets
uncompressed and is bigger than BZ_TEXT_START - LOADADDR it overwrote
the loader which was currently uncompressing it and made the board
crash. Increase the BZ_TEXT_START my 2 MB to have more space for the
kernel. Even on 16MB RAM devices the memory goes till 0x80FFFFFF so this
should not be a problem.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 years agobcm53xx: backport DTS changes up to the first 4.15 queued commits
Rafał Miłecki [Tue, 10 Oct 2017 07:19:10 +0000 (09:19 +0200)]
bcm53xx: backport DTS changes up to the first 4.15 queued commits

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agoramips/mt76x8: add initramfs support for tplink 841n v13
Alexander Couzens [Mon, 9 Oct 2017 11:51:21 +0000 (13:51 +0200)]
ramips/mt76x8: add initramfs support for tplink 841n v13

The tplink 841n v13 requires an tplink v2 image header in
front of an initramfs image.

To boot an initramfs image:
- break the uboot by holding the '4' key
- setup your tftp server 192.168.0.255
- tftp 81000000 lede-ramips-mt76x8-tl-wr841n-v13-initramfs-kernel.bin
- bootm

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
7 years agoimage-commands: tplink-v2-header: pass kernel loadaddr and entry
Alexander Couzens [Mon, 9 Oct 2017 11:50:03 +0000 (13:50 +0200)]
image-commands: tplink-v2-header: pass kernel loadaddr and entry

Initramfs images won't boot if the default loadaddr and entrypont is
different.

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
7 years agonet: uqmi: fix blocking in endless loops when unplugging device
Alexandru Ardelean [Fri, 29 Sep 2017 13:35:30 +0000 (16:35 +0300)]
net: uqmi: fix blocking in endless loops when unplugging device

If you unplug a QMI device, the /dev/cdc-wdmX device
disappears but uqmi will continue to poll it endlessly.

Then, when you plug it back, you have 2 uqmi processes,
and that's bad, because 2 processes talking QMI to the
same device [and the same time] doesn't seem to work well.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
7 years agoconntrack-tools: switch to git
Stijn Tintel [Wed, 20 Sep 2017 12:58:54 +0000 (15:58 +0300)]
conntrack-tools: switch to git

There have been a number of interesting fixes in conntrack-tools since
the current latest release. Most notable is that this fixes IPv6
conntrack table syncing when cross-compiling conntrack-tools.

7e7748d src/main: refresh help message
fe32043 conntrackd.8: refresh file
47a4dda conntrackd.8: add reference to systemd
0cfe7ff doc/manual: include some bits about init systems
74a418b conntrackd: cthelper: ftp: Set match offset/len for PORT mangling
d833bed conntrackd: cthelper: ftp: Fix debug print
dd4b5a1 conntrackd: cthelper: Add new mdns helper
498d698 Link nfct and helper modules with `-z lazy`
9e94e85 sync-mode: print errno message on failure
ab81c35 log: print messages to stdout/sderr if running in console mode
631d92b log: introduce a mechanism to know if log was initialized
ccb1c8b conntrackd: replace error reporting in the config parser with dlog()
bee121e conntrackd: replace fprintf calls with dlog()
5a51b04 conntrack-tools: update Arturo Borrero Gonzalez email address
abb9984 helper: remove copy and paste from uapi kernel header
a91a004 src: add log message when resync is requested by other node
c2d8be1 systemd: fix missing log.h include
f6ca216 config: drop old/obsolete/deprecated conntrackd.conf config options
8b83771 conntrack: send mark filter to kernel iff set
1ba5e76 conntrackd: cthelper: Don't leak nat_tuple
832166d conntrackd: cthelper: Free pktb after use
ff843bc conntrackd: config: Do not strdup() tokens
b61c454 conntrackd: cthelper: ssdp: Track UPnP eventing
8ea394e conntrackd: Remove obsolete rule to catch ambiguous Checksum option
39398cd conntrackd: CommitTimeout breaks DisableExternalCache set On
29b390a conntrack: Support IPv6 NAT
381827a conntrackd: factorice tx_queue functions
131df89 conntrackd: factorize resync operations
d31bacc conntrackd: consolidate more code to use resync_send()
3d98496 conntrackd: request resync at startup
ef410bf conntrackd: remove use of HAVE_INET_PTON_IPV6
9d38445 conntrackd: evaluate configuration earlier
6feded7 conntrackd: cleanup if failed forking
dbfdea7 conntrackd: deprecate unix backlog configuration
210f542 conntrackd: make the daemon run in RT mode by default
37cc7f0 conntrackd: remove warning for -S
d2849d1 conntrack: Show multiple CPUs stats from proc
bc0b49a conntrackd: cthelper: ssdp: fix build with musl
0c77a25 tests: don't fail on modprobe since the driver might be built-in
eefe649 conntrack.8: refresh manpage

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
7 years agolibnetfilter_conntrack: switch to git
Stijn Tintel [Wed, 20 Sep 2017 12:54:30 +0000 (15:54 +0300)]
libnetfilter_conntrack: switch to git

In order to build conntrack-tools from git, a newer version of
libnetfilter_conntrack is required. As 1.0.6 is currently the latest
release, switch to git.

b0a7cf7 include: expose a copy of nf_conntrack_common.h
f68f7b3 conntrack: fix missing break in setobjopt_undo_dnat()
79dac5a conntrack: revert getobjopt_is_nat() condition
b266523 libnetfilter_conntrack: bump version to 1.0.7
e870432 labels: don't crash on NULL labelmap

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
7 years agolibnetfilter_queue: bump to git HEAD
Stijn Tintel [Sun, 8 Oct 2017 18:46:44 +0000 (21:46 +0300)]
libnetfilter_queue: bump to git HEAD

b39cac7 src: Correct typo in the location of internal.h in #include
58cb066 src: Declare the define visibility attribute together
e84b559 Revert "src: Declare the define visibility attribute together"
003c2b1 examples: set dummy connmark value to show use of NFQA_CT nested attribute
63973da doc: extend the doxygen section about NFQA_CFG_F_GSO
d7f74c7 build: bump version to 1.0.3
3f9eb57 build: bump library release version too
601abd1 doc: Add information about retrieving UID/GID/SECCTX fields

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
7 years agomediatek: fix a sleep while atomic bug inside the ethernet driver
John Crispin [Mon, 9 Oct 2017 09:29:01 +0000 (11:29 +0200)]
mediatek: fix a sleep while atomic bug inside the ethernet driver

this sometimes happens when we have hw nat enabled.

Signed-off-by: John Crispin <john@phrozen.org>
7 years agotreewide: switch git.netfilter.org to HTTPS
Stijn Tintel [Sun, 8 Oct 2017 18:09:46 +0000 (21:09 +0300)]
treewide: switch git.netfilter.org to HTTPS

As git.netfilter.org seems to support HTTPS, use that instead of HTTP
which is insecure, or GIT which is blocked on many corporate networks.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
7 years agoipset-dns: bump to git HEAD
Stijn Tintel [Sun, 8 Oct 2017 15:03:29 +0000 (18:03 +0300)]
ipset-dns: bump to git HEAD

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
7 years agokernel: bump 4.9 to 4.9.54
Stijn Tintel [Sun, 8 Oct 2017 14:56:59 +0000 (17:56 +0300)]
kernel: bump 4.9 to 4.9.54

Refresh patches.
Remove upstreamed patches:
- ramips/0067-enable-mt7621-xhci.patch
- ramips/0085-pinmux-util.patch
- ramips/301-fix-rt3883.patch

Compile-tested on brcm2708/bcm2708, octeon, ramips/mt7621, x86/64.
Runtime-tested on brcm2708/bcm2708, octeon, ramips/mt7621, x86/64.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
7 years agokernel: bump 4.4 to 4.4.91
Kevin Darbyshire-Bryant [Sun, 8 Oct 2017 11:41:52 +0000 (12:41 +0100)]
kernel: bump 4.4 to 4.4.91

Refresh patches.

Compile-tested for: ar71xx Archer C7 v2
Run-tested on: ar71xx Archer C7 v2

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
7 years agosunxi: build image for the NanoPi NEO
Daniel Golle [Wed, 20 Sep 2017 17:32:01 +0000 (19:32 +0200)]
sunxi: build image for the NanoPi NEO

The NanoPi NEO is a small Allwinner H3 based board available with
different DRAM configurations.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
7 years agosunxi: kernel: add patches for NanoPi NEO
Daniel Golle [Tue, 26 Sep 2017 18:05:31 +0000 (20:05 +0200)]
sunxi: kernel: add patches for NanoPi NEO

Enable dwmac-sun8i Ethernet core to use the built-in FastEthernet port.
Enable exposed UART, USB and I2C pins.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
7 years agouboot-sunxi: build for NanoPi NEO
Daniel Golle [Sat, 23 Sep 2017 00:47:19 +0000 (02:47 +0200)]
uboot-sunxi: build for NanoPi NEO

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
7 years agolayerscape: refresh patches
Stijn Tintel [Sun, 8 Oct 2017 13:34:37 +0000 (16:34 +0300)]
layerscape: refresh patches

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
7 years agokernel: update and refresh patches
Stijn Tintel [Thu, 28 Sep 2017 07:08:59 +0000 (10:08 +0300)]
kernel: update and refresh patches

The lantiq patch 0028-NET-lantiq-various-etop-fixes.patch and sunxi
patch 0051-stmmac-form-4-11.patch no longer applied after applying the
the "generalize napi_complete_done()" patch.
Update them so they apply, and refresh patches while at it.

Fixes: 9aeb7ce8dc5 ("generic: net: generalize napi_complete_done")
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
7 years agogeneric: net: generalize napi_complete_done
Pavel Kubelun [Thu, 7 Sep 2017 09:52:43 +0000 (05:52 -0400)]
generic: net: generalize napi_complete_done

Backport upstream commit that improves ethernet performance by a
small amount.

Compile and run tested on ipq8065.

Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
7 years agogeneric: net: tcp: backport tcp tx performance patches
Pavel Kubelun [Tue, 25 Jul 2017 07:57:31 +0000 (03:57 -0400)]
generic: net: tcp: backport tcp tx performance patches

An overall throughput gain of 22 % for heavy TCP use over a single TX queue.

Original patchset comment
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?h=v4.13&id=3f4888adae7c1619b990d98a9b967536f71822b8

Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
7 years agokernel: split 82574L patch into multiple files
Stijn Tintel [Sun, 8 Oct 2017 11:58:59 +0000 (14:58 +0300)]
kernel: split 82574L patch into multiple files

When refreshing patches that cointain multiple patches including headers
in a single file, quilt will remove the headers from all but the first
patch. This makes it difficult to review commits that refresh patches.
Next to that, if only a few of the patch series are accepted in -stable,
the patch needs to be manually modified. With each patch in a separate
file, it's just a matter of git rm.

Refresh patches while at it.

Patchwork links:
[1/5] https://patchwork.kernel.org/patch/9857487/
[2/5] https://patchwork.kernel.org/patch/9857489/
[3/5] https://patchwork.kernel.org/patch/9857495/
[4/5] https://patchwork.kernel.org/patch/9857491/
[5/5] https://patchwork.kernel.org/patch/9857493/

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
7 years agokernel: Add some more generic config options
Hauke Mehrtens [Sun, 8 Oct 2017 10:40:26 +0000 (12:40 +0200)]
kernel: Add some more generic config options

These options are deactivating some kernel modules for IP blocks not
uses on this SoC. I saw the same when working with the ARM64 Marvell
board so it is better to move them to generic.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 years agolayerscape: remove wifi config
Hauke Mehrtens [Sun, 8 Oct 2017 10:33:59 +0000 (12:33 +0200)]
layerscape: remove wifi config

This is provided by the mac80211 package

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 years agokernel: add missing config options for layerscape target
Hauke Mehrtens [Sun, 8 Oct 2017 10:27:23 +0000 (12:27 +0200)]
kernel: add missing config options for layerscape target

This fixes some problems found by build bot.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 years agoar71xx: Fix NULL pointer dereferece in at803x_link_change_notify()
Andrey Jr. Melnikov [Sat, 7 Oct 2017 21:00:28 +0000 (00:00 +0300)]
ar71xx: Fix NULL pointer dereferece in at803x_link_change_notify()

Check pdata pointer before use to avoid OOPS if dev_get_platdata() return
NULL.

Signed-off-by: Andrey Jr. Melnikov <temnota.am@gmail.com>
7 years agolayerscape: select sdk dts for ls1043ardb/ls1046ardb
Yangbo Lu [Mon, 4 Sep 2017 06:29:17 +0000 (14:29 +0800)]
layerscape: select sdk dts for ls1043ardb/ls1046ardb

ls1043ardb/ls1046ardb should use sdk dts. This patch is
to fix this.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
7 years agolayerscape: fix CPU_TYPE for armv8_32b targets
Yangbo Lu [Mon, 4 Sep 2017 05:53:38 +0000 (13:53 +0800)]
layerscape: fix CPU_TYPE for armv8_32b targets

Layerscape uses Cortex-A53 or Cortex-A72 CPU. It's proper
to set below CPU_TYPE for 32-bit mode.
CPU_TYPE:=cortex-a15
CPU_SUBTYPE:=neon-vfpv4

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
7 years agolayerscape: add linux 4.9 support
Yangbo Lu [Wed, 27 Sep 2017 07:31:31 +0000 (15:31 +0800)]
layerscape: add linux 4.9 support

This patch is to add linux 4.9 support for layerscape.
All these kernel patches are from NXP LSDK 1709 release.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
7 years agolayerscape: drop linux 4.4 support
Yangbo Lu [Fri, 22 Sep 2017 07:57:12 +0000 (15:57 +0800)]
layerscape: drop linux 4.4 support

This patch is to drop linux 4.4 for layerscape.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
7 years agolayerscape: make uImage with zImage for 32-bit kernel
Yangbo Lu [Mon, 4 Sep 2017 05:42:49 +0000 (13:42 +0800)]
layerscape: make uImage with zImage for 32-bit kernel

uImage should be made with zImage. This patch is to support
making uImage with zImage.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
7 years agolayerscape: update memory layout according to LSDK
Yangbo Lu [Tue, 4 Jul 2017 09:46:52 +0000 (17:46 +0800)]
layerscape: update memory layout according to LSDK

The uniform memory layout of NOR/QSPI/NAND/SD media on all Layerscape platforms:
+-----------------------------+---------|--------------|-----------------+
|Firmwre Definition           | MaxSize | Flash Offset | SD Start Block #|
|-----------------------------|---------|--------------|-----------------|
|RCW+PBI                      | 1MB     | 0x00000000   | 0x00008         |
|-----------------------------|---------|--------------|-----------------|
|Boot firmware(U-Boot,UEFI)   | 2MB     | 0x00100000   | 0x00800         |
|-----------------------------|---------|--------------|-----------------|
|Boot firmware Environment    | 1MB     | 0x00300000   | 0x01800         |
|-----------------------------|---------|--------------|-----------------|
|PPA firmware                 | 2MB     | 0x00400000   | 0x02000         |
|-----------------------------|---------|--------------|-----------------|
|Secure boot headers          | 3MB     | 0x00600000   | 0x03000         |
|-----------------------------|---------|--------------|-----------------|
|DPAA1 FMAN ucode             | 256KB   | 0x00900000   | 0x04800         |
|-----------------------------|---------|--------------|-----------------|
|QE/uQE firmware              | 256KB   | 0x00940000   | 0x04A00         |
|-----------------------------|---------|--------------|-----------------|
|Ethernet PHY firmware        | 256KB   | 0x00980000   | 0x04C00         |
|-----------------------------|---------|--------------|-----------------|
|Scripts                      | 256KB   | 0x009C0000   | 0x04E00         |
|-----------------------------|---------|--------------|-----------------|
|DPAA2 MC firmware            | 3MB     | 0x00A00000   | 0x05000         |
|-----------------------------|---------|--------------|-----------------|
|DPAA2 DPL                    | 1MB     | 0x00D00000   | 0x06800         |
|-----------------------------|---------|--------------|-----------------|
|DPAA2 DPC                    | 1MB     | 0x00E00000   | 0x07000         |
|-----------------------------|---------|--------------|-----------------|
|Device tree(needed by uefi)  | 1MB     | 0x00F00000   | 0x07800         |
|-------------+---------------|---------|--------------|-----------------|
|Kernel       |               | 16MB    | 0x01000000   | 0x08000         |
|-------------| kernel.itb    |---------|--------------|-----------------|
|Ramdisk rfs  |               |32MB     | 0x01100000   | 0x08800         |
+-------------+---------------+---------|--------------|-----------------+

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
7 years agolayerscape: update packages with LSDK git trees
Yangbo Lu [Mon, 3 Jul 2017 02:48:27 +0000 (10:48 +0800)]
layerscape: update packages with LSDK git trees

NXP Layerscape LSDK had set up its own open source web site
and github for release.

https://lsdk.github.io
https://github.com/qoriq-open-source

This patch is to update rcw/fman_ucode/u-boot packages with LSDK
git trees. Also add some patches of packages to support LEDE.
Since ARMv8 32-bit u-boot images are same with ARMv8 64-bit images
but 64-bit toolchain couldn't be used for 32-bit targets, we still
use a private tree for ARMv8 32-bit u-boot images. This is in plan
to move this private tree to NXP Layerscape github.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
7 years agolayerscape: rename subtargets and update makefile files
Yangbo Lu [Thu, 29 Jun 2017 03:19:07 +0000 (11:19 +0800)]
layerscape: rename subtargets and update makefile files

Rename subtargets 32b/64b with armv8_32b/armv8_64b which are
more proper, and update makefile files. There also will be other
subtargets added in the future, like armv7.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
7 years agolayerscape: take over maintainership
Yangbo Lu [Thu, 29 Jun 2017 02:44:44 +0000 (10:44 +0800)]
layerscape: take over maintainership

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
7 years agokernel: fix receiver overflow for 82574L under load
Philip Prindeville [Sat, 12 Aug 2017 00:59:52 +0000 (18:59 -0600)]
kernel: fix receiver overflow for 82574L under load

Under heavy load it's possible to overrun the 82574L. When this
happens, Other Interrupt happens and that's erroneously interpreted
as a Link Status Change.

    http://patchwork.ozlabs.org/patch/792260/

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
7 years agoar71xx: add rssileds to WA850RE v1 image
Mathias Kresin [Sat, 7 Oct 2017 14:54:19 +0000 (16:54 +0200)]
ar71xx: add rssileds to WA850RE v1 image

A default rssileds config exists for the TP-Link WA850RE v1 but the
rssiled package is not included by default.

The compressed 17.01.3 image size increases by 3302 bytes which should
be tolerable even for a 4MB flash board.

Fixes: FS#1043
Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agolantiq: drop phy id specfic compatible string
Mathias Kresin [Sat, 7 Oct 2017 12:12:44 +0000 (14:12 +0200)]
lantiq: drop phy id specfic compatible string

With kernel commit 7630ea4bda18 ("Documentation: net: phy: improve
explanation when to specify the PHY ID") the purpose of using phy id
specific compatibles was clarified.

Remove the phy id specific compatibles since they are meant to be used
if the phy reports an incorrect or no phy id at all.

Reported-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agolantiq: remove gen_nand compatible string
Mathias Kresin [Sat, 7 Oct 2017 09:03:43 +0000 (11:03 +0200)]
lantiq: remove gen_nand compatible string

The generic nand driver fails to load with:

  gen_nand 14000000.nand-parts: platform_nand_data is missing
  gen_nand: probe of 14000000.nand-parts failed with error -22

and the xway-nand driver is used afterwards.

Drop the gen_nand compatible to get rid of the error message.

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agokernel: update 4.9 to 4.9.53
Stijn Tintel [Sat, 7 Oct 2017 15:08:53 +0000 (18:08 +0300)]
kernel: update 4.9 to 4.9.53

Refresh patches.
Compile-tested on brcm2708/bcm2708, octeon and x86/64.
Runtime-tested on brcm2708/bcm2708, octeon and x86/64.

Fixes the following CVEs:
- CVE-2017-1000252
- CVE-2017-12153
- CVE-2017-12154

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
7 years agokernel: update 4.4 to 4.4.90
Kevin Darbyshire-Bryant [Thu, 5 Oct 2017 16:50:48 +0000 (17:50 +0100)]
kernel: update 4.4 to 4.4.90

No patch refresh required.

Compile & run tested: ar71xx Archer C7 v2

Fixes the following CVEs:
- CVE-2017-1000252
- CVE-2017-12153
- CVE-2017-12154

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
[reference fixed CVEs]
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
7 years agocurl: add nghttp2 support
Hans Dedecker [Fri, 6 Oct 2017 08:53:51 +0000 (10:53 +0200)]
curl: add nghttp2 support

Add config option support for nghttp2

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
7 years agonghttp2: add libnghttp2 package
Hans Dedecker [Fri, 6 Oct 2017 08:53:50 +0000 (10:53 +0200)]
nghttp2: add libnghttp2 package

The nghttp2 library is an implementation of the Hypertext Transfer
Protocol version 2 in C; it supports RFC7540 and RFC7541.
The package enables only the reusable C library; binary size is 130K (X86)

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
7 years agorbcfg: Implement CPU frequency control
Thibaut VARENE [Sat, 25 Feb 2017 16:34:50 +0000 (17:34 +0100)]
rbcfg: Implement CPU frequency control

This patch implements CPU frequency control as found on several
routerboard devices.

Supported SoCs:
- QCA953X
- AR9344

Tested on hAP lite and mAP lite (QCA953x): steps of 50MHz
Tested on LHG 5 (AR9344): steps of 50MHz

On unsupported hardware, this patch is a NOP: it will not alter the
new field.
"rbcfg help" will display an empty "cpu_freq" help listing.
"rbcfg show" will not show the cpu_freq field.
"rbcfg set/get cpu_freq" will return an error code.

Signed-off-by: Thibaut VARENE <hacks@slashdirt.org>
[adjusted subject]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agoar71xx: update LED definitions for embedded wireless dorin
Catrinel Catrinescu [Wed, 19 Jul 2017 13:21:33 +0000 (15:21 +0200)]
ar71xx: update LED definitions for embedded wireless dorin

Evaluation board 2.2 uses a different status LED pin
The other removed LEDs were never present

Signed-off-by: Catrinel Catrinescu <cc@80211.de>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoar71xx: ew-dorin target moved from legacy to generic
Catrinel Catrinescu [Wed, 19 Jul 2017 09:44:57 +0000 (11:44 +0200)]
ar71xx: ew-dorin target moved from legacy to generic

Embedded Wireless Dorin platform moved from legacy to generic

Signed-off-by: Catrinel Catrinescu <cc@80211.de>
7 years agoar71xx: rework chipidea usb controller patch
Felix Fietkau [Thu, 3 Aug 2017 11:43:49 +0000 (12:43 +0100)]
ar71xx: rework chipidea usb controller patch

Handle AR9344 as well. Disable the EHCI platform device when device mode
is active, to avoid resource conflicts.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
7 years agohostapd: escape double quoutes in wpad CFLAGS
Stijn Tintel [Sat, 30 Sep 2017 00:35:50 +0000 (03:35 +0300)]
hostapd: escape double quoutes in wpad CFLAGS

A recent commit in hostapd added a build option to specify the default
TLS ciphers. This build option is passed via CFLAGS. Due to the way
CFLAGS are handled when building wpad, the compiler tries to recursively
expand TLS_DEFAULT_CIPHERS, resulting in the following error:

../src/crypto/tls_openssl.c: In function 'tls_init':
<command-line>:0:21: error: 'DEFAULT' undeclared (first use in this function)
../src/crypto/tls_openssl.c:1028:13: note: in expansion of macro 'TLS_DEFAULT_CIPHERS'
   ciphers = TLS_DEFAULT_CIPHERS;
             ^

Escape double quotes in the .cflags file to avoid this.

Fixes: 2f78034c3ef ("hostapd: update to version 2017-08-24")
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
7 years agohostapd: update to version 2017-08-24
Koen Vandeputte [Tue, 5 Sep 2017 07:56:22 +0000 (09:56 +0200)]
hostapd: update to version 2017-08-24

- Deleted upstreamed patches & parts
- Refreshed all

Compile tested: full-option package + tools (hostapd + wpa_supplicant)
Run-tested: hostapd wpa2 hotspot & wpa_supplicant IBSS link

Targets: cns3xxx

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
7 years agonetifd: update to latest git HEAD version (FS#1030)
Hans Dedecker [Fri, 6 Oct 2017 20:05:57 +0000 (22:05 +0200)]
netifd: update to latest git HEAD version (FS#1030)

5df3f01 config: suppress error if no wireless config present (FS#1030)
3429bd8 system-linux: add support for hotplug event 'move'

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
7 years agodropbear: fix PKG_CONFIG_DEPENDS
Hans Dedecker [Fri, 6 Oct 2017 07:21:35 +0000 (09:21 +0200)]
dropbear: fix PKG_CONFIG_DEPENDS

Add CONFIG_DROPBEAR_UTMP, CONFIG_DROPBEAR_PUTUTLINE to PKG_CONFIG_DEPENDS

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
7 years agotools/firmware-utils: mktplinkfw move build_fw() to lib
Thibaut VARÈNE [Tue, 3 Oct 2017 18:19:52 +0000 (20:19 +0200)]
tools/firmware-utils: mktplinkfw move build_fw() to lib

This patch moves build_fw() to mktplinkfw-lib.c

The versions of mktplinkfw.c and mktplinkfw2.c had slight
differences in code flow, the version from mktplinkfw.c has been
preferred.

While it's expected that this change will not affect mktplinkfw2,
all use cases could not be tested and so this particular change
is committed separately.

Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
7 years agotools/firmware-utils: mktplinkfw regroup duplicate code
Thibaut VARÈNE [Tue, 3 Oct 2017 16:12:27 +0000 (18:12 +0200)]
tools/firmware-utils: mktplinkfw regroup duplicate code

This patch carves out the duplicated code of mktplinfw.c and
mktplinkfw2.c and moves it to mktplinkfw-lib.c

This change is a semantic NOP (the code is unchanged).

To ensure compatibility with gcc-5.x and newer without changing
the code, -fgnu89-inline is added to the build flags for these
two binaries.

Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>