openwrt/openwrt.git
7 years agolibusb: Update to 1.0.21
Daniel Engberg [Mon, 2 Jan 2017 20:29:52 +0000 (21:29 +0100)]
libusb: Update to 1.0.21

Update libusb to 1.0.21

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
7 years agoxz: Update to 5.2.3
Daniel Engberg [Mon, 2 Jan 2017 20:33:37 +0000 (21:33 +0100)]
xz: Update to 5.2.3

Update xz to 5.2.3

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
7 years agorpcd: Update to 2016-12-03
Florian Fainelli [Sun, 1 Jan 2017 00:13:33 +0000 (16:13 -0800)]
rpcd: Update to 2016-12-03

Brings in the following changes:

0577cfc1acdb cmake: Find libubox/blobmsg_json.h
26c98ec94d7a sys: Check return values of chdir and write
f4089654a399 cmake: Find libubus.h

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
7 years agofstools: Update to 2016-12-04
Florian Fainelli [Sun, 1 Jan 2017 00:13:32 +0000 (16:13 -0800)]
fstools: Update to 2016-12-04

Brings in the following changes:
84b530a732b1 libfstools: Check return values for fread and system

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
7 years agouclient: Update to 2016-12-09
Florian Fainelli [Sun, 1 Jan 2017 00:13:31 +0000 (16:13 -0800)]
uclient: Update to 2016-12-09

Brings in the following changes:

52d955fd802a remove obsolete mac os x /opt/local include/library search path
a4e49b4163b2 Fix unused results warnings
48cfff3fbec9 uclient-http: send correct "Host:" header if port is set

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
7 years agoixp4xx: drop 3.18 config/patches
John Crispin [Mon, 2 Jan 2017 14:45:46 +0000 (15:45 +0100)]
ixp4xx: drop 3.18 config/patches

the default has been 4.4 for a while now

Signed-off-by: John Crispin <john@phrozen.org>
7 years agouboot-lantiq: fix boot of images larger than 8MB
Mathias Kresin [Fri, 30 Dec 2016 20:42:05 +0000 (21:42 +0100)]
uboot-lantiq: fix boot of images larger than 8MB

Increasing CONFIG_SYS_BOOTM_LEN from 8 MB to 16 MB is necessary to
support uncompressing images larger than 8 MB when using the bootm
command.

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agouboot-lantiq: fix build with gcc6
Mathias Kresin [Fri, 30 Dec 2016 20:00:34 +0000 (21:00 +0100)]
uboot-lantiq: fix build with gcc6

Backport u-boot commit 9b2c282b348dfe966bbba967dc7a45ce817cce50 to fix
compile with gcc5 and gcc6.

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agogeneric: backport dwc2 kernel panic fix
Mathias Kresin [Thu, 29 Dec 2016 20:47:54 +0000 (21:47 +0100)]
generic: backport dwc2 kernel panic fix

In case the soft reset in dwc2_core_reset() timeouts, the
hsotg->core_params are freed albeit it is owned by the core. This
results into a kernel panic as shown in FS#351.

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agoramips: MiWiFi Nano fixes
L. D. Pinney [Thu, 29 Dec 2016 07:43:08 +0000 (01:43 -0600)]
ramips: MiWiFi Nano fixes

Use the the dt-bindings macros and add the reset button.

Set the correct polarity for the LEDs and drop the default state.
Remove all trigger for the LEDs. According to the manual the LEDs are
only used to show the operation state, where blue means normal
operation.

Use the MAC-Addresses stored in EEPROM for the ethernet and the
wireless interface.

Signed-off-by: L. D. Pinney <ldpinney@gmail.com>
[use leds only for boot status indication, add proper commit message]
Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agomac80211: Allow HT/VHT rates when running unencrypted mesh.
Alexis Green [Wed, 21 Dec 2016 23:17:01 +0000 (15:17 -0800)]
mac80211: Allow HT/VHT rates when running unencrypted mesh.

Signed-off-by: Alexis Green <agreen@cococorp.com>
7 years agobase-files: fix message of initscript wrapper
Alberto Bursi [Sun, 1 Jan 2017 16:24:18 +0000 (17:24 +0100)]
base-files: fix message of initscript wrapper

currently (after blogic's edit to my commit) it prints like this:

root@lede:/# service aa
aa does not exist. the following services are available :adblock       dnsmasq       gpio_switch   rpcd          system
boot          done          led           sqm           uhttpd
crelay        dropbear      log           sysctl        umount
cron          firewall      network       sysfixtime    urandom_seed
ddns          fstab         odhcpd        sysntpd

which looks pretty bad, and is even worse if someone writes only "service" without arguments, as it will print " does not exist. " which is confusing.

with this commit it looks like this:

root@lede:/# service
service "" not found, the following services are available:
adblock       dnsmasq       gpio_switch   rpcd          system
boot          done          led           sqm           uhttpd
crelay        dropbear      log           sysctl        umount
cron          firewall      network       sysfixtime    urandom_seed
ddns          fstab         odhcpd        sysntpd

Yes there is some play with " and ', it is to display "name" or just "" if no service name is entered (like in the example).

Signed-off-by: Alberto Bursi <alberto.bursi@outlook.it>
7 years agogeneric: package Broadcom BNX2 driver
George Amanakis [Mon, 2 Jan 2017 03:38:46 +0000 (22:38 -0500)]
generic: package Broadcom BNX2 driver

bnx2 driver support for the x86 architecture. Includes module and
firmware for Broadcom BCM5706/5708/5709/5716 ethernet adapters.

Signed-off-by: George Amanakis <g_amanakis@yahoo.com>
7 years agooxnas: fix syntax in ox820-akitio.dts
Hauke Mehrtens [Mon, 2 Jan 2017 12:34:57 +0000 (13:34 +0100)]
oxnas: fix syntax in ox820-akitio.dts

This commit introduced a syntax error in ox820-akitio.dts which is
fixed now:
commit 5cde94d9ab577c5ab68fc71e15a05d1bda5041f2
Author: Daniel Golle <daniel@makrotopia.org>
Date:   Sat Sep 24 01:14:53 2016 +0200
    oxnas: backport upstream NAND driver

This caused the folowing error message in the build bot:
Error: arch/arm/boot/dts/ox820-akitio.dts:146.3-147.1 syntax error
FATAL ERROR: Unable to parse input tree
scripts/Makefile.lib:293: recipe for target 'arch/arm/boot/dts/ox820-akitio.dtb' failed
make[5]: *** [arch/arm/boot/dts/ox820-akitio.dtb] Error 1

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 years agocurl: update to version 7.52.1
Hauke Mehrtens [Mon, 2 Jan 2017 12:07:10 +0000 (13:07 +0100)]
curl: update to version 7.52.1

This fixes the folowing security problems:

CVE-2016-9586: printf floating point buffer overflow
CVE-2016-9952: Win CE schannel cert wildcard matches too much
CVE-2016-9953: Win CE schannel cert name out of buffer read
CVE-2016-9594: unititialized random

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 years agooxnas: append metadata to sysupgrade image
Daniel Golle [Sun, 1 Jan 2017 09:06:05 +0000 (10:06 +0100)]
oxnas: append metadata to sysupgrade image

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
7 years agooxnas: backport upstream NAND driver
Daniel Golle [Fri, 23 Sep 2016 23:14:53 +0000 (01:14 +0200)]
oxnas: backport upstream NAND driver

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
7 years agooxnas: drop support for kernel 4.1
Daniel Golle [Sun, 1 Jan 2017 09:05:24 +0000 (10:05 +0100)]
oxnas: drop support for kernel 4.1

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
7 years agooxnas: switch to kernel 4.4
Daniel Golle [Sun, 1 Jan 2017 09:04:33 +0000 (10:04 +0100)]
oxnas: switch to kernel 4.4

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
7 years agoustream-ssl: remove extra DEFAULT_VARIANT from libustream-polarssl
Hannu Nyman [Fri, 30 Dec 2016 14:49:44 +0000 (16:49 +0200)]
ustream-ssl: remove extra DEFAULT_VARIANT from libustream-polarssl

Currently both libustream-polarssl and libustream-mbedtls
variants define themselves as the DEFAULT_VARIANT

Remove extra DEFAULT_VARIANT from libustream-polarssl.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
7 years agoopenvpn: update to 2.4.0
Magnus Kroken [Fri, 30 Dec 2016 00:33:16 +0000 (01:33 +0100)]
openvpn: update to 2.4.0

Signed-off-by: Magnus Kroken <mkroken@gmail.com>
7 years agombedtls: enable DHE-RSA key exchange
Magnus Kroken [Fri, 30 Dec 2016 00:31:29 +0000 (01:31 +0100)]
mbedtls: enable DHE-RSA key exchange

Later OpenVPN 2.3-openssl versions only enable
TLS cipher suites with perfect forward secrecy, i.e. DHE and ECDHE
cipher suites. ECDHE key exchange is not supported by
OpenVPN 2.3-openssl, enable DHE key exchange to allow LEDE
OpenVPN 2.4-mbedtls clients to connect to such servers.

Signed-off-by: Magnus Kroken <mkroken@gmail.com>
Reported-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Reported-by: Lucian Cristian <luci@createc.ro>
7 years agombedtls: enable secp384r1 elliptic curve support
Magnus Kroken [Fri, 30 Dec 2016 00:31:28 +0000 (01:31 +0100)]
mbedtls: enable secp384r1 elliptic curve support

Secp384r1 is the default curve for OpenVPN 2.4+. Enable this to
make OpenVPN-mbedtls clients able to perform ECDHE key exchange
with remote OpenVPN 2.4-openssl servers that use the default
OpenVPN curve.

Signed-off-by: Magnus Kroken <mkroken@gmail.com>
7 years agokirkwood: fix ubi partition name
Felix Fietkau [Fri, 30 Dec 2016 11:38:06 +0000 (12:38 +0100)]
kirkwood: fix ubi partition name

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agokirkwood: fix sysupgrade for non-dockstar NAND devices
Felix Fietkau [Fri, 30 Dec 2016 10:55:16 +0000 (11:55 +0100)]
kirkwood: fix sysupgrade for non-dockstar NAND devices

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agobrcm47xx: drop standalone Netgear WGT634U profile
Rafał Miłecki [Wed, 28 Dec 2016 22:15:52 +0000 (23:15 +0100)]
brcm47xx: drop standalone Netgear WGT634U profile

We have profile for this device thanks to DEVICE_PACKAGES now.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Cc: Russell Senior <russell@personaltelco.net>
7 years agobrcm47xx: specify DEVICE_PACKAGES for Netgear WGT634U
Rafał Miłecki [Wed, 28 Dec 2016 22:10:14 +0000 (23:10 +0100)]
brcm47xx: specify DEVICE_PACKAGES for Netgear WGT634U

This allows using it nicely with PER_DEVICE_ROOTFS.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Cc: Russell Senior <russell@personaltelco.net>
7 years agobcm53xx: drop unused source file of bcm53xxspiflash
Rafał Miłecki [Thu, 29 Dec 2016 17:03:30 +0000 (18:03 +0100)]
bcm53xx: drop unused source file of bcm53xxspiflash

We don't use this driver since commit 741715331aee ("bcm53xx: switch to
m25p80 and drop bcm53xxspiflash").

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agobrcm47xx: mips74k: fix typo in Netgear WN3000RP model name
Rafał Miłecki [Thu, 29 Dec 2016 08:40:32 +0000 (09:40 +0100)]
brcm47xx: mips74k: fix typo in Netgear WN3000RP model name

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agoramips: fix NixcoreX1 profiles
Rafał Miłecki [Wed, 28 Dec 2016 22:01:11 +0000 (23:01 +0100)]
ramips: fix NixcoreX1 profiles

There was a typo in Makefile that prevented using these profiles.

Fixes: a75ce960ac1 ("ramips: use different board names for variants")
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agombedtls: enable support for external private RSA keys to fix openvpn build issue
Felix Fietkau [Wed, 28 Dec 2016 21:56:27 +0000 (22:56 +0100)]
mbedtls: enable support for external private RSA keys to fix openvpn build issue

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agolinux: correct deps for x86-xen-domu target
Sven Roederer [Tue, 27 Dec 2016 00:47:48 +0000 (01:47 +0100)]
linux: correct deps for x86-xen-domu target

depending packages have been moved to kernel-config
- kmod-xen-kbddev in 9fde361
- kmod-xen-fs, kmod-xen-evtchn, kmod-xen-netdev in 018807d

this will also fix imagebuilder

Signed-off-by: Sven Roederer <devel-sven@geroedel.de>
7 years agolibressl: disable shared libraries, fixes build issues
Felix Fietkau [Wed, 28 Dec 2016 00:10:37 +0000 (01:10 +0100)]
libressl: disable shared libraries, fixes build issues

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoath9k: fix issues with external reset on AR913x
Felix Fietkau [Tue, 27 Dec 2016 19:54:15 +0000 (20:54 +0100)]
ath9k: fix issues with external reset on AR913x

An external reset patch for AR955x accidentally led to external reset
being issued twice on AR913x, once before the RTC reset and once after.
This may be causing some stability issues.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agorelayd: fix expiry time handling
Felix Fietkau [Tue, 27 Dec 2016 12:21:42 +0000 (13:21 +0100)]
relayd: fix expiry time handling

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agorelayd: fix reload / interface restart issues
Felix Fietkau [Tue, 27 Dec 2016 12:19:46 +0000 (13:19 +0100)]
relayd: fix reload / interface restart issues

- replace the hotplug script with an interface trigger
- add netdev params to procd to trigger restart

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agokirkwood: enable initramfs images by default
Felix Fietkau [Tue, 27 Dec 2016 11:52:18 +0000 (12:52 +0100)]
kirkwood: enable initramfs images by default

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoath5k: drop bogus warning on drv_set_key with unsupported cipher (FS#334)
Felix Fietkau [Tue, 27 Dec 2016 11:18:12 +0000 (12:18 +0100)]
ath5k: drop bogus warning on drv_set_key with unsupported cipher (FS#334)

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoath9k: remove old rx dma stop check optimization
Felix Fietkau [Tue, 27 Dec 2016 11:10:53 +0000 (12:10 +0100)]
ath9k: remove old rx dma stop check optimization

This commit was added to improve reset time on old SoC devices that run
into chip hangs more frequently. However with the more recent addition
of full WMAC reset on these chips, it could be problematic.
Drop this patch to ensure that DMA activity is really stopped before the
chip reset is issued

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoodhcpd: bump to git HEAD
Stijn Tintel [Tue, 27 Dec 2016 09:15:23 +0000 (10:15 +0100)]
odhcpd: bump to git HEAD

8dc2a59 Revert "Respect interface "ignore" settings as documented."
93ab25b router: skip parse_routes when ra_default > 1

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
7 years agoopkg: vfork external gzip command to uncompress data
Jo-Philipp Wich [Wed, 14 Sep 2016 18:50:35 +0000 (20:50 +0200)]
opkg: vfork external gzip command to uncompress data

Opkg's builtin decompression code is unsuitable to process nested archives as
it uses a single shared state and relies on undefined seek behaviour for pipes.

Rework the extraction logic to use the external gzip command as I/O filter for
decompressing data and remove the builtin inflate code entirely.

This shrinks the final opkg binary by about 4KB and results in less runtime
memory consumption due to efficient use of vfork() and less copy-on-write
operations in the forked child.

Rework by Felix: create a thread that relays data to the gzip process
instead of using a fragile poll loop

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoRevert "opkg: vfork external gzip command to uncompress data"
Stijn Tintel [Tue, 27 Dec 2016 03:41:30 +0000 (04:41 +0100)]
Revert "opkg: vfork external gzip command to uncompress data"

This reverts commit 0090adcd5c94adad2168cd9b338f45827533c81d.
It breaks reading package list in /tmp/opkg-lists, making it impossible
to install packages from feeds in snapshots.

7 years agoodhcpd: Use procd_send_signal in reload_service
Hans Dedecker [Mon, 26 Dec 2016 21:21:52 +0000 (22:21 +0100)]
odhcpd: Use procd_send_signal in reload_service

Replace killall HUP by procd_send_signal in reload_service to trigger
an odhcpd config reload

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
7 years agoopkg: add missing dependency on libpthread
Felix Fietkau [Mon, 26 Dec 2016 14:52:00 +0000 (15:52 +0100)]
opkg: add missing dependency on libpthread

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agomwlwifi: Update to latest source
Gabe Rodriguez [Fri, 23 Dec 2016 12:51:55 +0000 (04:51 -0800)]
mwlwifi: Update to latest source

-MAC register revisions for 8864 firmware

Tested on WRT1900ACv1 (mvebu). No regressions

Signed-off-by: Gabe Rodriguez <lifehacksback@gmail.com>
7 years agopackage/Makefile & ipkg-make-index.sh: add full package data list
Alberto Bursi [Sat, 24 Dec 2016 12:32:26 +0000 (13:32 +0100)]
package/Makefile & ipkg-make-index.sh: add full package data list

The external script used to generate the package lists for the
LEDE wiki's table of packages [1] and package indexes [2] requires
a "Source:" field in the package lists to find package makefiles.
The package makefiles are used to read the package's Category and Submenu.

The "Source:" field was removed in commit
b4aa3c899cbf1f81cd8a1ea197481ac84a9d646e
to reduce package list sizes and lessen opkg issues in low ram devices.

Add a separate package list file with full data to be used by the wiki's script.
It's called Packages.manifest and isn't compressed as it's not necessary.

1. https://lede-project.org/packages/start
2. https://lede-project.org/packages/index/start

Signed-off-by: Alberto Bursi <alberto.bursi@outlook.it>
7 years agomusl: refresh patches
Koen Vandeputte [Thu, 22 Dec 2016 16:17:05 +0000 (17:17 +0100)]
musl: refresh patches

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
7 years agomusl: backport various post-1.1.15 fixes
Koen Vandeputte [Thu, 22 Dec 2016 16:17:04 +0000 (17:17 +0100)]
musl: backport various post-1.1.15 fixes

Backport most important fixes up to latest HEAD

- Taken post-commit reverts/fixes into account

Compile tested
Run-tested on cns3xxx & imx6 targets

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
7 years agomusl: rename a custom backport patch
Koen Vandeputte [Thu, 22 Dec 2016 16:17:03 +0000 (17:17 +0100)]
musl: rename a custom backport patch

Ensure there is room in the numbering for next patches

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
7 years agoopkg: vfork external gzip command to uncompress data
Jo-Philipp Wich [Wed, 14 Sep 2016 18:50:35 +0000 (20:50 +0200)]
opkg: vfork external gzip command to uncompress data

Opkg's builtin decompression code is unsuitable to process nested archives as
it uses a single shared state and relies on undefined seek behaviour for pipes.

Rework the extraction logic to use the external gzip command as I/O filter for
decompressing data and remove the builtin inflate code entirely.

This shrinks the final opkg binary by about 4KB and results in less runtime
memory consumption due to efficient use of vfork() and less copy-on-write
operations in the forked child.

Rework by Felix: create a thread that relays data to the gzip process
instead of using a fragile poll loop

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agokernel: split kmod-lib-zlib into two packages to keep it in sync with kernel dependencies
Felix Fietkau [Mon, 26 Dec 2016 10:11:18 +0000 (11:11 +0100)]
kernel: split kmod-lib-zlib into two packages to keep it in sync with kernel dependencies

Fixes build error on default config + selecting kmod-fs-isofs

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agonetifd: Upstep to git HEAD version
Hans Dedecker [Sun, 25 Dec 2016 19:56:45 +0000 (20:56 +0100)]
netifd: Upstep to git HEAD version

64a655d proto: allow configuring deprecated static IPv6 addresses
c99182e remove obsolete /opt/local prefix on Mac OS X
0249d5f system-linux: Don't set gre tunnel ttl by default to 64 (#FS312)
edc15ca ubus: Display the IPv6 prefix assigned address

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
7 years agogre: Remove ttl default value assignment (FS#312)
Hans Dedecker [Fri, 23 Dec 2016 15:29:34 +0000 (16:29 +0100)]
gre: Remove ttl default value assignment (FS#312)

Don't assign a default ttl of 64 for gre tunnels as
netifd takes care of the default ttl assignment

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
7 years agoltq-vmmc: mark VOICE_CPE_VMMC_PMC as broken
Hauke Mehrtens [Sun, 25 Dec 2016 17:43:03 +0000 (18:43 +0100)]
ltq-vmmc: mark VOICE_CPE_VMMC_PMC as broken

We do not have the needed platform support for VOICE_CPE_VMMC_PMC. The
vmmc driver will not compile with this option activated.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 years agoppc44x: fix build of crypto4xx_core.c
Hauke Mehrtens [Sun, 25 Dec 2016 14:19:20 +0000 (15:19 +0100)]
ppc44x: fix build of crypto4xx_core.c

crypto4xx_probe() is in the __init section and referenced by code form
other sections, which causes a build error. Backport a patch from
mainline kernel to fix this.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 years agokmod-sched-cake: do not build on kernel 3.18
Hauke Mehrtens [Sun, 25 Dec 2016 14:15:55 +0000 (15:15 +0100)]
kmod-sched-cake: do not build on kernel 3.18

kmod-sched-cake does not build on kernel 3.18, so add the dependency to
not even try.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 years agolantiq: fix falcon build
John Crispin [Sun, 25 Dec 2016 08:52:11 +0000 (09:52 +0100)]
lantiq: fix falcon build

The following commit changed the build templates name but forgot to
update the TARGET_DEVICES variable properly.

commit f9226158bed52aeae408730 (lantiq: rename EASY98000 to EASY98000NOR)

Signed-off-by: John Crispin <john@phrozen.org>
7 years agolantiq: rename EASY98000 to EASY98000NOR
Hauke Mehrtens [Sat, 17 Dec 2016 22:34:17 +0000 (23:34 +0100)]
lantiq: rename EASY98000 to EASY98000NOR

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 years agokernel: add KERNEL_DEVMEM and KERNEL_DEVKMEM
Hauke Mehrtens [Sat, 17 Dec 2016 14:00:59 +0000 (15:00 +0100)]
kernel: add KERNEL_DEVMEM and KERNEL_DEVKMEM

These options are needed to create /dev/mem or /dev/kmem .
/dev/mem is needed by the io tool to access raw hardware memory, which
is helpful when debugging and developing drivers.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Acked-by: John Crispin <john@phrozen.org>
7 years agobrcmfmac: select 802.11ac support
Felix Fietkau [Sat, 24 Dec 2016 11:10:31 +0000 (12:10 +0100)]
brcmfmac: select 802.11ac support

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agorb532: remove linux 4.1 support
Felix Fietkau [Sat, 24 Dec 2016 09:39:36 +0000 (10:39 +0100)]
rb532: remove linux 4.1 support

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agorb532: Switch to kernel 4.4
Florian Fainelli [Sat, 24 Dec 2016 04:36:00 +0000 (20:36 -0800)]
rb532: Switch to kernel 4.4

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
7 years agorb532: Backport fix to resolve oops during korina_restart
Florian Fainelli [Sat, 24 Dec 2016 04:35:59 +0000 (20:35 -0800)]
rb532: Backport fix to resolve oops during korina_restart

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
7 years agorb532: Add support for kernel 4.4
Florian Fainelli [Sat, 24 Dec 2016 04:35:58 +0000 (20:35 -0800)]
rb532: Add support for kernel 4.4

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
7 years agorb532: Fix initramfs kernel images
Florian Fainelli [Sat, 24 Dec 2016 04:35:57 +0000 (20:35 -0800)]
rb532: Fix initramfs kernel images

The generic lzma-loader uses vmlinux.lzma as an input to compress so we
need to provide a lzma compressed version of the initramfs kernel.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
7 years agotoolchain/gcc: update 6.x to 6.3.0
Syrone Wong [Sat, 24 Dec 2016 09:09:35 +0000 (17:09 +0800)]
toolchain/gcc: update 6.x to 6.3.0

This is a bugfix release

Build and run tested on mvebu/Linksys WRT1900AC v1

Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
7 years agolibpcap: Fix build when PACKAGECONFIG ipv6 is not enabled
Zefir Kurtisi [Thu, 22 Dec 2016 09:39:51 +0000 (10:39 +0100)]
libpcap: Fix build when PACKAGECONFIG ipv6 is not enabled

Add patches provided upstream [1] by Fabio Berton to fix error:

> ./gencode.c: In function 'pcap_compile':
> ./gencode.c:693:8: error: 'compiler_state_t {aka struct _compiler_state}' has no member named 'ai'
>   cstate.ai = NULL;
>         ^
> ./gencode.c: In function 'gen_gateway':
> ./gencode.c:4914:13: error: 'cstate' undeclared (first use in this function)
>    bpf_error(cstate, "direction applied to 'gateway'");
>              ^

[1] https://github.com/the-tcpdump-group/libpcap/pull/541

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
Tested-by: Zefir Kurtisi <zefir.kurtisi@neratec.com>
7 years agolantiq: drop the FRITZ7360SL led-dsl alias
Mathias Kresin [Thu, 22 Dec 2016 08:18:05 +0000 (09:18 +0100)]
lantiq: drop the FRITZ7360SL led-dsl alias

The power LED can not be used for indicating the xDSL line state and
the in system (boot) state at the same time in LEDE.  As soon as the
xDSL Line goes down, the power LED is switched off.

During xDSL handshake the power led would blink with the same or a
similar pattern as during boot.

Both might confuse users.

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agolantiq: add FRITZ7360SL phy reset gpios
Mathias Kresin [Wed, 21 Dec 2016 08:59:29 +0000 (09:59 +0100)]
lantiq: add FRITZ7360SL phy reset gpios

Due to a hardware bug of Atheros 8030 phys, the driver need to reset
the phys on link state change.

Use the correct compatible string for the at903x phys connected to
switch port 0 and 1.

Fix the pinmux of the gpio lines connected to the reset pin of the phys
and define the reset-pins to let the driver do the fixups.

Fixes FS#343

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agolantiq: fix DGN1000B boot status leds
Mathias Kresin [Thu, 15 Dec 2016 08:45:54 +0000 (09:45 +0100)]
lantiq: fix DGN1000B boot status leds

The alias node should not be a child of the chosen node.

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agoramips: use new image build code for more devices
Mathias Kresin [Mon, 21 Nov 2016 07:46:48 +0000 (08:46 +0100)]
ramips: use new image build code for more devices

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agoramips: use different board names for variants
Mathias Kresin [Fri, 23 Dec 2016 08:46:48 +0000 (09:46 +0100)]
ramips: use different board names for variants

Use different names for flash size related board variants, to make sure
that only images for the actual flash size are considered as valid by
the image validation code.

Remove the flash size suffix from the string returned by
ramips_board_detect() to ensure that existing scripts relying on the
former used boardname are still working.

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agoramips: sort rt305x image file alphabetical
Mathias Kresin [Sun, 27 Nov 2016 09:46:20 +0000 (10:46 +0100)]
ramips: sort rt305x image file alphabetical

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agoramips: use D-Link DIR-600 B1 image for B2 version
Mathias Kresin [Fri, 25 Nov 2016 12:25:29 +0000 (13:25 +0100)]
ramips: use D-Link DIR-600 B1 image for B2 version

Everything set for the B1 is identical to the values uses for the B2
version.

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agoramips: fix image validation errors
Mathias Kresin [Thu, 1 Dec 2016 06:37:03 +0000 (07:37 +0100)]
ramips: fix image validation errors

The name from the Device define will be used in the metadata. Due to
typos/different spelling, this name might not match the one exported in
/lib/ramips.sh.

Fix all name mismatches which were found by checking if the name used
in the metadata exists in /lib/ramips.sh.

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agoramips: use destinct 11AC NAS board name
Mathias Kresin [Fri, 23 Dec 2016 07:21:31 +0000 (08:21 +0100)]
ramips: use destinct 11AC NAS board name

Use a distinct board name even if the board is near to identical to
the WeVO W2914NS v2.

To make sure that a 11AC NAS image can not be installed on a
WeVO W2914NS v2, both board need to use different names.

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agoorion: remove linux 3.18 support
Felix Fietkau [Thu, 22 Dec 2016 16:35:04 +0000 (17:35 +0100)]
orion: remove linux 3.18 support

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoorion: enable SoC drivers in the kernel config
Felix Fietkau [Thu, 22 Dec 2016 16:34:45 +0000 (17:34 +0100)]
orion: enable SoC drivers in the kernel config

Clean up packaged modules

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agokirkwood: clean up profiles, move to image makefile
Felix Fietkau [Thu, 22 Dec 2016 16:26:27 +0000 (17:26 +0100)]
kirkwood: clean up profiles, move to image makefile

Adds support for per-device rootfs

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agokirkwood: enable SoC drivers in the kernel config
Felix Fietkau [Thu, 22 Dec 2016 16:19:29 +0000 (17:19 +0100)]
kirkwood: enable SoC drivers in the kernel config

Clean up packaged modules

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agokirkwood: clean up FEATURES
Felix Fietkau [Thu, 22 Dec 2016 16:04:12 +0000 (17:04 +0100)]
kirkwood: clean up FEATURES

Remove dt: it is implicitly enabled based on the kernel config
Remove tar.gz and jffs2_nand: Legacy build code has been removed,
NAND devices are only supported with UBI now.
Remove ubifs: deprecated, use squashfs images instead

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agokirkwood: remove legacy image build code
Felix Fietkau [Thu, 22 Dec 2016 14:35:16 +0000 (15:35 +0100)]
kirkwood: remove legacy image build code

This has been mostly non-functional for a while now

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agokirkwood: convert iconnect, ib62x0 and pogoplug_e02 to the new image build code
Felix Fietkau [Thu, 22 Dec 2016 14:07:38 +0000 (15:07 +0100)]
kirkwood: convert iconnect, ib62x0 and pogoplug_e02 to the new image build code

Update the correspoding u-boot configs to stop relying on
kernel-in-rootfs, which was removed a while back

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agotoolchain: remove ppl/cloog, disable graphite for gcc 4.8
Felix Fietkau [Thu, 22 Dec 2016 15:23:15 +0000 (16:23 +0100)]
toolchain: remove ppl/cloog, disable graphite for gcc 4.8

graphite is disabled by default and it's not worth carrying ppl and
cloog for supporting this feature on the old gcc 4.8, which is only used
for ARC

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agokernel: Add kmod-ethoc
Florian Fainelli [Fri, 9 Dec 2016 03:31:41 +0000 (19:31 -0800)]
kernel: Add kmod-ethoc

Add the kernel module package for the Opencores.org Ethernet MAC,
depends on PHYLIB.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
7 years agoramips: fix tplink image building fix sysupgrade firmware on MR200
Henryk Heisig [Fri, 23 Dec 2016 17:04:16 +0000 (18:04 +0100)]
ramips: fix tplink image building fix sysupgrade firmware on MR200

Signed-off-by: Henryk Heisig <hyniu@o2.pl>
7 years agoramips: enablemodem: move /lib/ramips.sh to start()
Henryk Heisig [Fri, 23 Dec 2016 14:05:33 +0000 (15:05 +0100)]
ramips: enablemodem: move /lib/ramips.sh to start()

Fix build error: /etc/init.d/enablemodem: line 2: /lib/ramips.sh: No such file or directory

Signed-off-by: Henryk Heisig <hyniu@o2.pl>
7 years agogeneric: ar8216: fix invalid bounds check imported from ChromeOS (FS#347)
Jo-Philipp Wich [Fri, 23 Dec 2016 18:15:14 +0000 (19:15 +0100)]
generic: ar8216: fix invalid bounds check imported from ChromeOS (FS#347)

The priv->vlan_id member is of size AR8X16_MAX_VLANS, not AR8X16_MAX_PORTS,
so check for the proper maximum value in order to avoid capping valid VLAN IDs
to 7 (AR8X16_MAX_PORTS - 1).

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agodnsmasq: add log facility option
dibdot [Wed, 21 Dec 2016 19:53:39 +0000 (20:53 +0100)]
dnsmasq: add log facility option

add possibility to set the facility to which dnsmasq will send syslog entries, i.e. set it to '/dev/null' to mute dnsmasq output at all.

Signed-off-by: Dirk Brenken dev@brenken.org
7 years agoncurses: rename libncursesw to libncurses (more common name)
Felix Fietkau [Thu, 22 Dec 2016 20:10:41 +0000 (21:10 +0100)]
ncurses: rename libncursesw to libncurses (more common name)

provide libncursesw via PROVIDES instead

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoRevert "arm64: boot-wrapper: Add mirror"
Felix Fietkau [Thu, 22 Dec 2016 20:07:43 +0000 (21:07 +0100)]
Revert "arm64: boot-wrapper: Add mirror"

This reverts commit ef258a0a41eb31fd77ad2868b8ec97accc44fd93.
Similar to 43c09f2885b413aa44a65ddf85778e40349f2199, multiple git
mirrors are not supported

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agob43-tools: fix tarball hash
Felix Fietkau [Thu, 22 Dec 2016 15:54:00 +0000 (16:54 +0100)]
b43-tools: fix tarball hash

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agouhttpd: drop uhttpd-mod-tls, it has been useless for years
Felix Fietkau [Thu, 22 Dec 2016 15:43:07 +0000 (16:43 +0100)]
uhttpd: drop uhttpd-mod-tls, it has been useless for years

Before the rewrite, uhttpd-mod-tls used to contain a tls plugin.
Afterwards it was left in for compatibility reasons, but given how much
has changed, and that we're about to change the default SSL
implementation again, it's better to just drop this now

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agotreewide: clean up and unify PKG_VERSION for git based downloads
Felix Fietkau [Wed, 21 Dec 2016 21:25:41 +0000 (22:25 +0100)]
treewide: clean up and unify PKG_VERSION for git based downloads

Also use default defintions for PKG_SOURCE_SUBDIR, PKG_SOURCE

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoRevert "linux-firmware: Add mirrors"
Felix Fietkau [Wed, 21 Dec 2016 21:17:48 +0000 (22:17 +0100)]
Revert "linux-firmware: Add mirrors"

This reverts commit 0d4f02dfd650612aac6c11860139be03a0f54bee, which was
obviously untested. git downloads cannot handle multiple URLs at the
moment.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agobuild: add defaults for PKG_SOURCE, PKG_SOURCE_SUBDIR, PKG_VERSION
Felix Fietkau [Wed, 21 Dec 2016 15:39:56 +0000 (16:39 +0100)]
build: add defaults for PKG_SOURCE, PKG_SOURCE_SUBDIR, PKG_VERSION

This makes it easier to unify versioning of git based package downloads.
PKG_SOURCE_DATE along with an 8-character abbreviation of the git hash
is used as PKG_VERSION, PKG_RELEASE should be used like normal packages.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agomwlwifi: Update to latest source
Gabe Rodriguez [Tue, 20 Dec 2016 16:41:45 +0000 (08:41 -0800)]
mwlwifi: Update to latest source

- Source updated to fix noise level, DTS
- Added support for BB and RF

Tested working on WRT1900ACv1 (mamba) kernel 4.4.38. No regressions found.

Signed-off-by: Gabe Rodriguez <lifehacksback@gmail.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name> [fix mirror hash]
7 years agoath10k-firmware: update qca9984 firmware
Pavel Kubelun [Tue, 20 Dec 2016 08:39:00 +0000 (11:39 +0300)]
ath10k-firmware: update qca9984 firmware

A new firmware that is available on code-aurora repository is newer
than in Kvalo's repo.

Taking into account that firmwares that are in Kvalo's repo are considered
to be tested by internal QCA team, this one seems to be more stable
and fixes this bug:
ath10k_pci 0000:01:00.0: received unexpected tx_fetch_ind event: in
push mode

At least i havent faced it for a while in contradiction to current version.

Thus switching firmware source for qca9984 until it or a newer version
gets into Kvalo's repo.

Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
7 years agogettext-full: enforce only static lib on the host build
Alexandru Ardelean [Mon, 12 Dec 2016 12:20:58 +0000 (14:20 +0200)]
gettext-full: enforce only static lib on the host build

Sometimes I'm getting error on the host-side build:
```
/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: /home/sandu/work/lede/staging_dir/host/lib/liblzma.a(liblzma_la-common.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/home/sandu/work/lede/staging_dir/host/lib/liblzma.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
Makefile:2847: recipe for target 'libgettextlib.la' failed
make[9]: *** [libgettextlib.la] Error 1
make[9]: Leaving directory '/home/sandu/work/lede/build_dir/target-x86_64_musl-1.1.15/host/gettext-0.19.8.1/gettext-tools/gnulib-lib'
Makefile:2597: recipe for target 'all' failed
```

Disabling the shared-lib build, seems to fix this.

This is when building glib2 on the host-side.
glib2 is required by newer QEMU package [which is in the feeds].

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
7 years agox86/64: enable Hyper-V support in the x86_64 kernel config
Tedaz [Tue, 20 Dec 2016 08:56:33 +0000 (16:56 +0800)]
x86/64: enable Hyper-V support in the x86_64 kernel config

Enabled Hyper-V network interface card driver, display adapter driver,
storage driver, keyboard driver, mouse driver and Hyper-V utility and
EFI boot support in the kernel for subtarget x86/64.
Convert the img file to vhd by Ubuntu qemu-img, rather than by the buildroot's
built-in qemu-img.

Tested on Windows Server 2008 r2 and 2012 r2 Gen1 and Gen2 VMs.

Signed-off-by: Tedaz <tedaz99999@hotmail.com>