oweals/openwrt.git
7 years agomxs: remove stale references to obsolete kernel module packages
Michael Heimpold [Sat, 28 Jan 2017 15:32:34 +0000 (16:32 +0100)]
mxs: remove stale references to obsolete kernel module packages

Commit 29443e2 (mxs: remove modules.mk, select drivers in the kernel config)
missed to remove these references, so cleanup it now.

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
7 years agokernel: make BCM54210E PHY code work with 4.4
Rafał Miłecki [Sat, 28 Jan 2017 16:14:50 +0000 (17:14 +0100)]
kernel: make BCM54210E PHY code work with 4.4

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agokernel: backport BCM54210E PHY support
Rafał Miłecki [Sat, 28 Jan 2017 15:50:06 +0000 (16:50 +0100)]
kernel: backport BCM54210E PHY support

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agolantiq: fix brnImage signature for the VGV7510KW22BRN images
Mathias Kresin [Sat, 28 Jan 2017 11:36:15 +0000 (12:36 +0100)]
lantiq: fix brnImage signature for the VGV7510KW22BRN images

The VGV7510KW22BRN and VGV7519BRN do not have the same brnImage
signature. It was accidentally changed with ba42c1d ("lantiq: un-macro
the image building code").

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agoopenssl: update to version 1.0.2k
Hauke Mehrtens [Fri, 27 Jan 2017 22:36:45 +0000 (23:36 +0100)]
openssl: update to version 1.0.2k

This fixes the following security problems:
CVE-2017-3731: Truncated packet could crash via OOB read
CVE-2017-3732: BN_mod_exp may produce incorrect results on x86_64
CVE-2016-7055: Montgomery multiplication may produce incorrect results

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 years agokernel: bump to 4.4.45
Koen Vandeputte [Fri, 27 Jan 2017 14:18:00 +0000 (15:18 +0100)]
kernel: bump to 4.4.45

Refreshed patches for all supported targets.

Compiled & tested on cns3xxx & imx6

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
7 years agoRevert "ar71xx: fix Archer C7 LED colour names"
Mathias Kresin [Fri, 27 Jan 2017 21:07:20 +0000 (22:07 +0100)]
Revert "ar71xx: fix Archer C7 LED colour names"

This reverts commit e79ecb4c26471526552d2473bb50d331c3dafb87.

The commit was incomplete and the issue that should be fixed isn't
that easy fixable. The Archer C7 mach file is used for the Archer C5,
WDR4900 and WDR7500 as well. Where the WDRs in compare to the Archer
do have blue LEDs.

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agokernel: mark nvmem as hidden, it is only used as a library for other modules
Felix Fietkau [Fri, 27 Jan 2017 15:53:05 +0000 (16:53 +0100)]
kernel: mark nvmem as hidden, it is only used as a library for other modules

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoixp4xx: put apex images into image staging directory
Jo-Philipp Wich [Fri, 27 Jan 2017 15:32:41 +0000 (16:32 +0100)]
ixp4xx: put apex images into image staging directory

Do not put the apex images into the kernel build directory as this directory
might get removed after kernel updates while the apex packages InstallDev
recipe is not getting re-executed because it is still considered current,
leading to image build failures later on due to missing images.

To ensure that built bootloader images persist over kernel version updates in
the buildroot, put them into the new STAGING_DIR_IMAGE directory.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agomxs: put u-boot images into image staging directory
Jo-Philipp Wich [Fri, 27 Jan 2017 15:26:56 +0000 (16:26 +0100)]
mxs: put u-boot images into image staging directory

Do not put the u-boot images into the kernel build directory as this directory
might get removed after kernel updates while the u-boot packages InstallDev
recipe is not getting re-executed because it is still considered current,
leading to image build failures later on due to missing images.

To ensure that built bootloader images persist over kernel version updates in
the buildroot, put them into the new STAGING_DIR_IMAGE directory.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agooxnas: put u-boot images into image staging directory
Jo-Philipp Wich [Fri, 27 Jan 2017 15:21:17 +0000 (16:21 +0100)]
oxnas: put u-boot images into image staging directory

Do not put the u-boot images into the kernel build directory as this directory
might get removed after kernel updates while the u-boot packages InstallDev
recipe is not getting re-executed because it is still considered current,
leading to image build failures later on due to missing images.

To ensure that built bootloader images persist over kernel version updates in
the buildroot, put them into the new STAGING_DIR_IMAGE directory.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agosunxi: put u-boot images into image staging directory
Jo-Philipp Wich [Fri, 27 Jan 2017 15:18:05 +0000 (16:18 +0100)]
sunxi: put u-boot images into image staging directory

Do not put the u-boot images into the kernel build directory as this directory
might get removed after kernel updates while the u-boot packages InstallDev
recipe is not getting re-executed because it is still considered current,
leading to image build failures later on due to missing images.

To ensure that built bootloader images persist over kernel version updates in
the buildroot, put them into the new STAGING_DIR_IMAGE directory.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agolayerscape: put u-boot and ucode images into image staging directory
Jo-Philipp Wich [Fri, 27 Jan 2017 15:06:31 +0000 (16:06 +0100)]
layerscape: put u-boot and ucode images into image staging directory

Do not put the u-boot and ucode images into the kernel build directory as this
directory might get removed after kernel updates while the u-boot packages
InstallDev recipe is not getting re-executed because it is still considered
current, leading to image build failures later on due to missing images.

To ensure that built bootloader images persist over kernel version updates in
the buildroot, put them into the new STAGING_DIR_IMAGE directory.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agomvebu: put u-boot images into image staging directory
Jo-Philipp Wich [Fri, 27 Jan 2017 12:14:12 +0000 (13:14 +0100)]
mvebu: put u-boot images into image staging directory

Do not put the u-boot images into the kernel build directory as this directory
might get removed after kernel updates while the u-boot packages InstallDev
recipe is not getting re-executed because it is still considered current,
leading to image build failures later on due to missing u-boot images.

To ensure that built bootloader images persist over kernel version updates in
the buildroot, put them into the new STAGING_DIR_IMAGE directory.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agobuild: introduce STAGING_DIR_IMAGE
Jo-Philipp Wich [Fri, 27 Jan 2017 12:41:04 +0000 (13:41 +0100)]
build: introduce STAGING_DIR_IMAGE

Introduce a new location STAGING_DIR_IMAGE which is intended to be used by
bootloader iamges and similar image-related artifacts.

This directory is guaranteed to be persistent across kernel upgrades which
might involve a removal of KERNEL_BUILD_DIR and is guranteed to be bundled
with the image builder.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agoimx6: fix build error
Koen Vandeputte [Fri, 27 Jan 2017 15:45:14 +0000 (16:45 +0100)]
imx6: fix build error

This symbol is required when symbol SOC_IMX6 is also specified

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
7 years agoimx6: refresh kernel config
Koen Vandeputte [Fri, 27 Jan 2017 14:33:17 +0000 (15:33 +0100)]
imx6: refresh kernel config

This key got moved to generic in commit:
7480d3309cbe40378da48c3b6decc4ba2b1fc3d5

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
7 years agoath9k: fix up a refcount imbalance error in the IRQ related fix
Felix Fietkau [Fri, 27 Jan 2017 14:43:12 +0000 (15:43 +0100)]
ath9k: fix up a refcount imbalance error in the IRQ related fix

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoleds-apu2: Add PC Engines APU2 LED driver
Chris Blake [Wed, 25 Jan 2017 17:23:19 +0000 (11:23 -0600)]
leds-apu2: Add PC Engines APU2 LED driver

This adds support for the PCB LEDs and Reset Button found on the PC
Engines APU2/APU3 embedded boards.

Signed-off-by: Chris Blake <chrisrblake93@gmail.com>
7 years agokernel: update kmod-* packaging and dependencies for linux 4.9
Felix Fietkau [Sun, 22 Jan 2017 11:11:06 +0000 (12:11 +0100)]
kernel: update kmod-* packaging and dependencies for linux 4.9

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agokernel: make kmod package dependencies forward compatible
Felix Fietkau [Sun, 22 Jan 2017 10:40:17 +0000 (11:40 +0100)]
kernel: make kmod package dependencies forward compatible

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agonetfilter.mk: prepare for linux 4.9 support
Felix Fietkau [Sun, 22 Jan 2017 09:47:32 +0000 (10:47 +0100)]
netfilter.mk: prepare for linux 4.9 support

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agokernel: split up 980-arm_openwrt_machtypes.patch and move to target folders
Felix Fietkau [Fri, 20 Jan 2017 12:12:22 +0000 (13:12 +0100)]
kernel: split up 980-arm_openwrt_machtypes.patch and move to target folders

This is only required for non-DT platforms

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoopenvpn: add support for various new 2.4 configuration options
Magnus Kroken [Mon, 16 Jan 2017 21:56:03 +0000 (22:56 +0100)]
openvpn: add support for various new 2.4 configuration options

Updates to openvpn.init were included in early OpenVPN 2.4 patch
series, but got lost along the way and were never merged.

Signed-off-by: Magnus Kroken <mkroken@gmail.com>
7 years agoKernel: bump to 4.4.44
Stijn Segers [Sat, 21 Jan 2017 17:30:10 +0000 (18:30 +0100)]
Kernel: bump to 4.4.44

Bump kernel to 4.4.44. Compile-tested on ar71xx, ramips/mt7621 and x86/64.

.44 has been run-tested on the 17.01 branch here on ar71xx and mt7621.

Signed-off-by: Stijn Segers <francesco.borromini@inventati.org>
7 years agonetfilter: re-enable TEE support for kernel 4.4
Koen Vandeputte [Fri, 13 Jan 2017 15:23:48 +0000 (16:23 +0100)]
netfilter: re-enable TEE support for kernel 4.4

It got disabled in commit 4454a3fb6375cf1adf17f63a54cd7660bc40caa7
but works nicely these days.

Tested on cns3xxx

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
7 years agokmod-sched-core: Add HTB and TBF traffic shapers
Toke Høiland-Jørgensen [Fri, 20 Jan 2017 12:13:35 +0000 (13:13 +0100)]
kmod-sched-core: Add HTB and TBF traffic shapers

HTB and TBF are the basic traffic shapers used by sqm-scripts. Moving
these into kmod-sched-core enables sqm-scripts to downgrade its
dependency from kmod-sched to kmod-sched-core, potentially making it
useful on devices with smaller flash sizes.

This adds around 30k to the size of kmod-sched-core (20k for sch_htb.ko
and 10k for sch_tbf.ko).

Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk>
7 years agogpio-nct5104d: Add nct5104d driver package
Chris Blake [Mon, 23 Jan 2017 08:12:35 +0000 (02:12 -0600)]
gpio-nct5104d: Add nct5104d driver package

This adds support for the SuperIO chip nct5104d found on the PC Engines
APU boards, which allows for a handful of additional ports, such as 2x
additional UART pinouts, enabling an external watchdog (no driver for
this functionality yet), and 16 GPIO pins. More info can be found at
https://pcengines.ch/ht_gpio.htm

Thanks to @feckert for helping package this.

Cc: Florian Eckert <Eckert.Florian@googlemail.com>
Signed-off-by: Chris Blake <chrisrblake93@gmail.com>
7 years agox86/64: Enable GPIO sysfs & GPIO LED support
Chris Blake [Mon, 23 Jan 2017 08:12:34 +0000 (02:12 -0600)]
x86/64: Enable GPIO sysfs & GPIO LED support

The following changes enables GPIO sysfs as well as the LEDS_GPIO option
within the kernel. This is required to enable LEDs over a GPIO
interface.

Signed-off-by: Chris Blake <chrisrblake93@gmail.com>
7 years agoramips: cleanup mt7620 Netgear image code
Joseph C. Lehner [Mon, 23 Jan 2017 13:41:15 +0000 (14:41 +0100)]
ramips: cleanup mt7620 Netgear image code

1. Reuse functions defined in `image-commands.mk`
2. Rename fakeroot image

Signed-off-by: Joseph C. Lehner <joseph.c.lehner@gmail.com>
7 years agobuild: move append-file to image-commands.mk
Joseph C. Lehner [Mon, 23 Jan 2017 13:40:10 +0000 (14:40 +0100)]
build: move append-file to image-commands.mk

Move it append-file to image-commands.mk so that it can used by other
targets as well.

Signed-off-by: Joseph C. Lehner <joseph.c.lehner@gmail.com>
7 years agoramips: enable rlt8366s Green Feature for F5D8235 V1
Tobias Wolf [Wed, 25 Jan 2017 15:59:28 +0000 (16:59 +0100)]
ramips: enable rlt8366s Green Feature for F5D8235 V1

Enable the green feature for the board by default.

Signed-off-by: Tobias Wolf <github-NTEO@vplace.de>
7 years agogeneric: rtl836x: add support for Green Feature
Tobias Wolf [Wed, 25 Jan 2017 15:40:57 +0000 (16:40 +0100)]
generic: rtl836x: add support for Green Feature

The GPL licensed source code of Belkin contains an ASIC based "Green
Feature". This change adds support for this Green Feature that can be
activated with an DTS option or swconfig.

Signed-off-by: Tobias Wolf <github-NTEO@vplace.de>
7 years agoramips: add rlt8366s initvals to the F5D8235 V1 DTS
Tobias Wolf [Wed, 25 Jan 2017 15:22:42 +0000 (16:22 +0100)]
ramips: add rlt8366s initvals to the F5D8235 V1 DTS

Before this change only port 4 of F5D8235 V1 worked at 1000Mpbs.

Comparing the current driver with the GPL_BELKIN_F5D8235-4_v1000
v1.01.24 sources showed that additional steps are required to set-up
the rlt8366s switch correctly.

Signed-off-by: Tobias Wolf <github-NTEO@vplace.de>
7 years agogeneric: rtl8366s: add support support for initvals from DTS
Tobias Wolf [Wed, 25 Jan 2017 15:22:13 +0000 (16:22 +0100)]
generic: rtl8366s: add support support for initvals from DTS

This change provides the possibility to define per-device initvals in
the DTS file for a rlt8366s switch.

Signed-off-by: Tobias Wolf <github-NTEO@vplace.de>
7 years agoar71xx: fix Archer C7 LED colour names
Mathias Kresin [Tue, 24 Jan 2017 22:24:59 +0000 (23:24 +0100)]
ar71xx: fix Archer C7 LED colour names

All LEDs on this board are green.

Fixes: FS#409

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agoodhcpd: update to git HEAD version
Hans Dedecker [Thu, 26 Jan 2017 20:28:28 +0000 (21:28 +0100)]
odhcpd: update to git HEAD version

c4f9ace odhcpd: decrease default log level to LOG_INFO
a6eadd7 odhcpd: rework IPv6 interface address dump
44965f1 odhcpd: extra syslog tracing

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
7 years agonetifd: update to git HEAD version
Hans Dedecker [Thu, 26 Jan 2017 20:22:18 +0000 (21:22 +0100)]
netifd: update to git HEAD version

650758b interface-ip: route proto config support (FS#170)

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
7 years agobase-files: uppercase default hostname: LEDE
Yousong Zhou [Wed, 11 Jan 2017 03:21:16 +0000 (11:21 +0800)]
base-files: uppercase default hostname: LEDE

The name will appear in shell prompt and LuCI page title.  Uppercase
letters seem to be more vigorous

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
7 years agogeneric: keep module aliases inside .modinfo
Yousong Zhou [Wed, 11 Jan 2017 11:57:24 +0000 (19:57 +0800)]
generic: keep module aliases inside .modinfo

It seems module aliases are actually essential info.  E.g. other modules
may call xt_request_find_match(NFPROTO_IPV{4,6}, "hashlimit", 1) and the
kernel will request user mode modprobe helper for ipt_hashlimit and
ip6t_hashlimit respectively which are aliases of xt_hashlimit.ko

Compile-tested for armvirt, there is nearly no size impact.

Before

    -rw-r--r-- 1 yousong yousong     304 Jan 10 17:37 config.seed
    -rw-r--r-- 1 yousong yousong    1634 Jan 11 11:07 lede-armvirt-default.manifest
    -rw-r--r-- 1 yousong yousong 1533647 Jan 11 11:07 lede-armvirt-default-rootfs.tar.gz
    -rw-r--r-- 1 yousong yousong 1802711 Jan 11 11:07 lede-armvirt-root.ext4.gz
    -rw-r--r-- 1 yousong yousong 1544597 Jan 11 11:07 lede-armvirt-rootfs.cpio.gz
    -rw-r--r-- 1 yousong yousong 1174984 Jan 11 11:07 lede-armvirt-root.squashfs.gz
    -rwxr-xr-x 1 yousong yousong 1654712 Jan 11 11:07 lede-armvirt-zImage
    -rwxr-xr-x 1 yousong yousong 2738296 Jan 11 11:07 lede-armvirt-zImage-initramfs
    drwxr-xr-x 2 yousong yousong    4096 Jan 10 17:35 packages
    -rw-r--r-- 1 yousong yousong     739 Jan 10 17:37 sha256sums

After

    -rw-r--r-- 1 yousong yousong     304 Jan 10 17:37 config.seed
    -rw-r--r-- 1 yousong yousong    1634 Jan 11 11:10 lede-armvirt-default.manifest
    -rw-r--r-- 1 yousong yousong 1533646 Jan 11 11:10 lede-armvirt-default-rootfs.tar.gz
    -rw-r--r-- 1 yousong yousong 1802711 Jan 11 11:10 lede-armvirt-root.ext4.gz
    -rw-r--r-- 1 yousong yousong 1544593 Jan 11 11:10 lede-armvirt-rootfs.cpio.gz
    -rw-r--r-- 1 yousong yousong 1174984 Jan 11 11:10 lede-armvirt-root.squashfs.gz
    -rwxr-xr-x 1 yousong yousong 1654736 Jan 11 11:10 lede-armvirt-zImage
    -rwxr-xr-x 1 yousong yousong 2738144 Jan 11 11:10 lede-armvirt-zImage-initramfs
    drwxr-xr-x 2 yousong yousong    4096 Jan 10 17:35 packages
    -rw-r--r-- 1 yousong yousong     739 Jan 10 17:37 sha256sums

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
7 years agoubox: import kmodloader fixes
Jo-Philipp Wich [Thu, 26 Jan 2017 16:46:32 +0000 (17:46 +0100)]
ubox: import kmodloader fixes

Update ubox to latest Git head in order to import the following fixes:

14839f0 kmodloader: make insert_module() idempotent
6e3c6dc kmodloader: add module alias awareness
9371411 kmodloader: fix out-of-bound access when parsing .modinfo
a62c946 kmodloader: modprobe: skip possible command line arguments
46a4b5f kmodloader: log to kmsg when loading directories of modules
eacc426 kmodloader: remove redundant glob wildcard char
8488bb5 ubox: Initialize conditionally uninitialized variable
db070f1 ubox: Fix some memory leaks
acc48b5 kmodloader: Fix typo in error message

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agoubox: install kernel module utilities to /sbin directory
Yousong Zhou [Wed, 11 Jan 2017 11:57:23 +0000 (19:57 +0800)]
ubox: install kernel module utilities to /sbin directory

This is how other Linux distributions are doing and kernel
modprobe_path[] of request_module() also has a default value of
/sbin/modprobe

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
7 years agoprocd: update procd.sh to disallow signal-numbers, enforce signal-names
Bastian Bittorf [Fri, 13 Jan 2017 19:22:51 +0000 (20:22 +0100)]
procd: update procd.sh to disallow signal-numbers, enforce signal-names

A given signal-name is now converted to the corresonding number. In general
it's good style to use names (readability) and it's more portable: signal
numbers can be architecture-dependent, so we are more safe giving names.

A real world example is signal 10, which is BUS on ramips and USR1 on PPC.

All users of 'procd_send_signal' must change their code to reflect this.

Signed-off-by: Bastian Bittorf <bb@npl.de>
7 years agoopenvpn: ssl-enabled variants also provide a virtual openvpn-crypto package
Sven Roederer [Sun, 22 Jan 2017 18:00:51 +0000 (19:00 +0100)]
openvpn: ssl-enabled variants also provide a virtual openvpn-crypto package

When relying on x.509 certs for auth and / or encryption of traffic you can't
use package openvpn-nossl.
Just have your package depend on openvpn-crypto to have SSL-encryption and
X.509-support enabled in OpenVPN. If encryption / X.509 is not a must, use
virtual packge openvpn, which is provided by all OpenVPN-variants.

Signed-off-by: Sven Roederer <devel-sven@geroedel.de>
7 years agouClibc-ng: update to 1.0.21
Etienne Haarsma [Sun, 8 Jan 2017 13:21:12 +0000 (14:21 +0100)]
uClibc-ng: update to 1.0.21

Signed-off-by: Etienne Haarsma <bladeoner112@gmail.com>
7 years agoramips: ZyXEL Keenetic Omni/Omni2: export gpio usb power
Vitaly Chekryzhev [Fri, 20 Jan 2017 13:03:15 +0000 (18:03 +0500)]
ramips: ZyXEL Keenetic Omni/Omni2: export gpio usb power

Export gpio usb to allow power management of USB port.

Signed-off-by: Vitaly Chekryzhev <13hakta@gmail.com>
7 years agoramips: ZyXEL Keenetic Viva: align factory images
Vitaly Chekryzhev [Fri, 20 Jan 2017 12:57:11 +0000 (17:57 +0500)]
ramips: ZyXEL Keenetic Viva: align factory images

ZyXEL web-flasher requires squashfs to be aligned to 64kb.

Signed-off-by: Vitaly Chekryzhev <13hakta@gmail.com>
7 years agoramips: ZyXEL Keenetic Viva: export gpio usb power
Vitaly Chekryzhev [Tue, 3 Jan 2017 18:18:55 +0000 (23:18 +0500)]
ramips: ZyXEL Keenetic Viva: export gpio usb power

Export gpio usb to allow power management of USB port.

Signed-off-by: Vitaly Chekryzhev <13hakta@gmail.com>
7 years agoprocd: update to latest git HEAD
Matthias Schiffer [Thu, 26 Jan 2017 15:18:41 +0000 (16:18 +0100)]
procd: update to latest git HEAD

0f58977 init: fix /tmp permissions on zram

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
7 years agoiproute2: cake: add 'mpu' minimum packet length support
Kevin Darbyshire-Bryant [Sat, 31 Dec 2016 17:15:56 +0000 (17:15 +0000)]
iproute2: cake: add 'mpu' minimum packet length support

Add 'mpu' minimum length packet size parameter for scheduling/bandwidth
accounting.

Signed-off-by: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
7 years agokmod-sched-cake: add 'mpu' minimum packet length support
Kevin Darbyshire-Bryant [Fri, 23 Dec 2016 16:46:45 +0000 (16:46 +0000)]
kmod-sched-cake: add 'mpu' minimum packet length support

Add 'mpu' minimum packet length for scheduling/bandwidth accounting
purposes.

Signed-off-by: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
7 years agoramips: add ip17xx support to WLI-TX4-AG300N
Yo Abe [Thu, 26 Jan 2017 13:28:09 +0000 (22:28 +0900)]
ramips: add ip17xx support to WLI-TX4-AG300N

ramips/rt288x WLI-TX4-AG300N was missing support for its 100Mbit switch which
should be included by default.

Signed-off-by: Yo Abe <abe.geel@gmail.com>
[Jo-Philipp Wich: picked from OpenWrt PR#359, rewrap commit msg, fix Sob]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agohostapd: default to wps_independent 1
Steven Honson [Sat, 14 Jan 2017 11:22:24 +0000 (22:22 +1100)]
hostapd: default to wps_independent 1

Signed-off-by: Steven Honson <steven@honson.id.au>
7 years agohostapd: expose wps_independent and ap_setup_locked as uci options
Steven Honson [Tue, 27 Dec 2016 05:16:23 +0000 (16:16 +1100)]
hostapd: expose wps_independent and ap_setup_locked as uci options

ap_setup_locked is named wps_ap_setup_locked in uci for consistency with other
wps related uci options.

Signed-off-by: Steven Honson <steven@honson.id.au>
7 years agoramips: fix EX2700 wireless mac
Joseph C. Lehner [Wed, 25 Jan 2017 16:57:56 +0000 (17:57 +0100)]
ramips: fix EX2700 wireless mac

On some EX2700 devices, the MAC address from the eeprom data differs
from the actual MAC address. Fix that, and cleanup the DTS file
while we're at it.

Signed-off-by: Joseph C. Lehner <joseph.c.lehner@gmail.com>
7 years agomwlwifi: Fixes rewritten history hash and latest version
Gabe Rodriguez [Wed, 25 Jan 2017 04:48:53 +0000 (20:48 -0800)]
mwlwifi: Fixes rewritten history hash and latest version

The author of the upstream mwlwifi edited the history of the previous commit.
This commit not only fixes the updated hash but also sends in the latest
commits he made to the code which are mainly testing.

Signed-off-by: Gabe Rodriguez <lifehacksback@gmail.com>
7 years agokernel: update Broadcom PHY drivers
Rafał Miłecki [Thu, 26 Jan 2017 10:27:50 +0000 (11:27 +0100)]
kernel: update Broadcom PHY drivers

This commit adds 4 patches, one per kernel version that was used for
picking updates. This adds support for few new PHYs.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agoFix dependency for hostapd
Wilco Baan Hofman [Wed, 4 Jan 2017 16:48:42 +0000 (17:48 +0100)]
Fix dependency for hostapd

Signed-off-by: Wilco Baan Hofman <wilco@baanhofman.nl>
7 years agoar71xx: add support to TP-Link Archer C59v1 and C60v1
Henryk Heisig [Tue, 27 Dec 2016 21:41:41 +0000 (22:41 +0100)]
ar71xx: add support to TP-Link Archer C59v1 and C60v1

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

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
- 8x LED (controled by 74HC595), 3x button
- UART header on PCB

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

Specification:

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

Currently not working:
- Port LAN1 on C59, LAN4 on C60
- WiFi 5GHz (missing ath10k firmware for QCA9886 chip)
- Update from oficial web interface ( tplink-saveloader not support "product-info")

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

Flash instruction under U-Boot, using UART:

1. tftp 0x81000000 lede-ar71xx-...-sysupgrade.bin
2. erase 0x9f020000 +$filesize
3. cp.b $fileaddr 0x9f020000 $filesize
4. reset

Signed-off-by: Henryk Heisig <hyniu@o2.pl>
[Jo-Philipp Wich: remove duplicate ATH79_MACH_ARCHER_C59/C60_V1 entries]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agoar71xx: QCA956X: add missing register
Henryk Heisig [Fri, 6 Jan 2017 20:21:11 +0000 (21:21 +0100)]
ar71xx: QCA956X: add missing register

Signed-off-by: Henryk Heisig <hyniu@o2.pl>
7 years agoar71xx: fix netgear wndr3700 v1/v2, wndr3800/wndr3800ch switch port mapping
Qian Zheng [Thu, 12 Jan 2017 01:39:55 +0000 (09:39 +0800)]
ar71xx: fix netgear wndr3700 v1/v2, wndr3800/wndr3800ch switch port mapping

Signed-off-by: Qian Zheng <sotux82@gmail.com>
7 years agoar71xx: fix netgear wnr2000 v3 switch port mapping
Qian Zheng [Thu, 12 Jan 2017 01:34:53 +0000 (09:34 +0800)]
ar71xx: fix netgear wnr2000 v3 switch port mapping

Signed-off-by: Qian Zheng <sotux82@gmail.com>
[Jo-Philipp Wich: fix alphabetical order after merging with gl-ar300 case]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agoar71xx: fix tl-wr841n-v7 switch port mapping
Qian Zheng [Thu, 12 Jan 2017 01:26:20 +0000 (09:26 +0800)]
ar71xx: fix tl-wr841n-v7 switch port mapping

Signed-off-by: Qian Zheng <sotux82@gmail.com>
[Jo-Philipp Wich: fix alphabetical order]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agoopkg: clarify messages and errors related to downloads
Hannu Nyman [Mon, 23 Jan 2017 09:40:29 +0000 (11:40 +0200)]
opkg: clarify messages and errors related to downloads

Clarify opkg's messages related to downloads:

* more visible error message for package list download failure
* separate error message for signature file download error
* if wget returns 4, signal the network error more clearly
* remove '.' from end of filenames and URLs

* try signature check only if the package list was downloaded ok.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
7 years agoimagebuilder: properly escape single quotes in device titles
Jo-Philipp Wich [Thu, 26 Jan 2017 09:13:23 +0000 (10:13 +0100)]
imagebuilder: properly escape single quotes in device titles

The name "Plat'Home OpenBlocks AX3" causes the imagebuilders "make info"
command to fail with:

    bash: -c: line 0: syntax error near unexpected token `('
    bash: -c: line 0: `echo;  [...]'
    Makefile:99: recipe for target '_call_info' failed

Properly escape single quotes to avoid breaking the echo commands.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agoath9k: add stability fixes for long standing hang issues (FS#13, #34, #373, #383)
Felix Fietkau [Wed, 25 Jan 2017 14:32:18 +0000 (15:32 +0100)]
ath9k: add stability fixes for long standing hang issues (FS#13, #34, #373, #383)

The radio would stop communicating completely. This issue was easiest to
trigger on AR913x devices, e.g. the TP-Link TL-WR1043ND, but other
hardware was occasionally affected as well.

The most critical issue was a race condition in disabling/enabling IRQs
between the IRQ handler and the IRQ processing tasklet

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agomac80211: refresh patch
Felix Fietkau [Wed, 25 Jan 2017 14:31:51 +0000 (15:31 +0100)]
mac80211: refresh patch

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoAdd video feed to feeds.conf.default
Mirko Vogt [Wed, 25 Jan 2017 14:36:07 +0000 (15:36 +0100)]
Add video feed to feeds.conf.default

Signed-off-by: Mirko Vogt <mirko-openwrt@nanl.de>
7 years agobcm53xx: disable building Linksys EA6300 V1 image
Rafał Miłecki [Wed, 25 Jan 2017 09:48:51 +0000 (10:48 +0100)]
bcm53xx: disable building Linksys EA6300 V1 image

This device has 2 TRX partitions (main one and failsafe one) and Linux
may not detect them properly failing to run userspace.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agomediatek: update the ethernet compat string
John Crispin [Wed, 25 Jan 2017 07:23:38 +0000 (08:23 +0100)]
mediatek: update the ethernet compat string

mt2701 is an earlier version of the ip core, so use that compat string as
baseline.

Signed-off-by: John Crispin <john@phrozen.org>
7 years agouboot-lantiq: mark SPL variants as broken
Mathias Kresin [Tue, 24 Jan 2017 19:37:09 +0000 (20:37 +0100)]
uboot-lantiq: mark SPL variants as broken

All SPL variants are lzo compressed. The lzop binary is used for
compression but is not available in tools.

Additionally at least the NAND SPL support is broken and doesn't create
working bootloaders.

The fb3370 SPI NOR SPL enabled u-boot isn't required for LEDE since the
LEDE images are targeting the pre-installed EVA bootloader.

Mark these u-boot variants as well as the SPL variants for the
reference boards as broken till the lzma issues are fixed upstream and
we can use lzma instead of lzo compression.

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agouboot-lantiq: fix a tool portability issue
Felix Fietkau [Wed, 25 Jan 2017 07:29:14 +0000 (08:29 +0100)]
uboot-lantiq: fix a tool portability issue

Use the standard off_t type instead of loff_t

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agox86: fix sysupgrades on disks with 4k block size
Felix Fietkau [Wed, 25 Jan 2017 07:13:11 +0000 (08:13 +0100)]
x86: fix sysupgrades on disks with 4k block size

Even when the disk uses 4k blocks, the partition table still uses units
of 512 byte sectors. Always use ibs=512 for the offsets

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoar71xx: Fix mikrotik subtarget default profile for device profile selection
Alex Samorukov [Sun, 22 Jan 2017 17:56:37 +0000 (17:56 +0000)]
ar71xx: Fix mikrotik subtarget default profile for device profile selection

Signed-off-by: Alex Samorukov <samm@os2.kiev.ua>
7 years agoar71xx: improve Mikrotik hAP Lite device support
Alex Samorukov [Thu, 19 Jan 2017 14:38:49 +0000 (15:38 +0100)]
ar71xx: improve Mikrotik hAP Lite device support

- remove CONFIG_MTD_SPI_NOR_USE_4K_SECTORS
- enable jffs2 support
- fix sysupgrade

Signed-off-by: Alex Samorukov <samm@os2.kiev.ua>
7 years agotools: update kernel2minor to 0.24 version
Sergey Sergeev [Tue, 24 Jan 2017 13:04:18 +0000 (16:04 +0300)]
tools: update kernel2minor to 0.24 version

Signed-off-by: Sergey Sergeev <adron@yapic.net>
7 years agomxs: fix image build issues
Felix Fietkau [Wed, 25 Jan 2017 06:31:01 +0000 (07:31 +0100)]
mxs: fix image build issues

stage u-boot images in KERNEL_BUILD_DIR for building images
always select uboot-mxs

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agou-boot.mk: add support for overriding DEFAULT
Felix Fietkau [Wed, 25 Jan 2017 06:33:41 +0000 (07:33 +0100)]
u-boot.mk: add support for overriding DEFAULT

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agou-boot.mk: add UBOOT_MAKE_FLAGS variable similar to MAKE_FLAGS
Felix Fietkau [Wed, 25 Jan 2017 06:28:57 +0000 (07:28 +0100)]
u-boot.mk: add UBOOT_MAKE_FLAGS variable similar to MAKE_FLAGS

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agobrcm47xx: backport arch patch with Luxul devices support
Rafał Miłecki [Tue, 24 Jan 2017 19:22:14 +0000 (20:22 +0100)]
brcm47xx: backport arch patch with Luxul devices support

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agopackage-ipkg: Do not fail build without base-files
Florian Fainelli [Sat, 10 Dec 2016 00:04:49 +0000 (16:04 -0800)]
package-ipkg: Do not fail build without base-files

If the base-files package is not selected, we will fail executing the
very first postinst script:

make[3]: Leaving directory `/local/users/fainelli/openwrt/trunk'
cp -fpR
/local/users/fainelli/openwrt/trunk/build_dir/target-arm_xscale_musl-1.1.15_eabi/root-orion
/local/users/fainelli/openwrt/trunk/build_dir/target-arm_xscale_musl-1.1.15_eabi/root.orig-orion
./usr/lib/opkg/info/busybox.postinst: line 3:
/local/users/fainelli/openwrt/trunk/build_dir/target-arm_xscale_musl-1.1.15_eabi/root-orion/lib/functions.sh:
No such file or directory
./usr/lib/opkg/info/busybox.postinst: line 4: default_postinst: command
not found
postinst script ./usr/lib/opkg/info/busybox.postinst has failed with
exit code 127
make[2]: *** [package/install] Error 1

Check for the existence of lib/functions.sh, and if it does not exist,
just bail out gracefully.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
7 years agobase-files: fix user creation on sysupgrade with few opkg control files
Matthias Schiffer [Tue, 24 Jan 2017 17:55:13 +0000 (18:55 +0100)]
base-files: fix user creation on sysupgrade with few opkg control files

If only a single opkg control file exists (which can happen with
CONFIG_CLEAN_IPKG), grep would not print the file name by default. Instead
of forcing it using -H, we just switch to -l (print only file names) and
get rid of the cut.

Add -s to suppress an error message when no control files exist.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
7 years agoinclude/rootfs.mk: keep Require-User lines with CONFIG_CLEAN_IPKG
Matthias Schiffer [Tue, 24 Jan 2017 16:00:43 +0000 (17:00 +0100)]
include/rootfs.mk: keep Require-User lines with CONFIG_CLEAN_IPKG

Require-User is handled by /etc/uci-defaults/13_fix_group_user on first
boot, so we need to keep these when removing all opkg data with
CONFIG_CLEAN_IPKG.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
7 years agomac80211: brcmfmac: don't use uninitialize mem for country codes
Rafał Miłecki [Tue, 24 Jan 2017 15:54:09 +0000 (16:54 +0100)]
mac80211: brcmfmac: don't use uninitialize mem for country codes

There was a bug in brcmfmac patch that could result in treating random
memory as source of country codes.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agoAdd back the commit "ath9k: Add airtime fairness scheduler"
Felix Fietkau [Tue, 24 Jan 2017 14:23:30 +0000 (15:23 +0100)]
Add back the commit "ath9k: Add airtime fairness scheduler"

This reverts commit c296ba834db4ce8c71e0ad7030aab188fe60b27b.
According to several reports, the issues with the airtime fairness
changes are gone in current versions.
It's time to re-apply the patch now.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agokirkwood: add ZyXEL NSA310b
Alberto Bursi [Mon, 23 Jan 2017 19:34:29 +0000 (20:34 +0100)]
kirkwood: add ZyXEL NSA310b

The ZyXEL NSA310 device is a Kirkwood based NAS:

- SoC: Marvell 88F6702 1200Mhz
- SDRAM memory: 256MB DDR2 400Mhz
- Gigabit ethernet: Realtek (over pcie)
- Flash memory: 128MB
- 1 Power button
- 1 Power LED (blue)
- 5 Status LED (green/red)
- 1 Copy/Sync button
- 1 Reset button
- 2 SATA II port (1 internal and 1 external)
- 2 USB 2.0 ports (1 front and 1 back)
- Smart fan

The stock u-boot cannot read ubi so it should be replaced with the
LEDE/OpenWRT's u-boot or with a u-boot from here
https://github.com/mibodhi/u-boot-kirkwood

This device's boot ROM supports "kwboot" tool
(in mainline u-boot, built automatically if CONFIG_KIRKWOOD is declared)
that sends an uboot image to the board over serial connection, it is very easy to unbrick.

The stock bootloader can use usb and read from FAT filesystems,
so the installation process is simple, place the uboot file on a USB flashdrive
formatted as FAT (here it is "openwrt-kirkwood-nsa310.bin", then connect TTL
to the board and write the following commands in the bootloader console:

usb reset
fatload usb 0 0x1000000 openwrt-kirkwood-nsa310.bin
nand write 0x1000000 0x00000 0x100000
reset

Now you are rebooting in the new u-boot, write this in its console to install the firmware:

usb reset
fatload usb 0 0x2000000 lede-kirkwood-nsa310b-squashfs-factory.bin
nand erase.part ubi
nand write 0x2000000 ubi 0x600000

If your firmware file is bigger than 6 MiBs you should write its size in hex
instead of 0x600000 above, or remove that number entirely (it will take a while in this case).

If you are using another uboot that can read ubi, set mtdparts like this

mtdparts=mtdparts=orion_nand:0x00c0000(uboot),0x80000(uboot_env),0x7ec0000(ubi)

And set your bootcmd to be like this

bootcmd=run setenv bootargs; ubi part ubi; ubi read 0x800000 kernel; bootm 0x800000

Then you can install the firmware as described above.

After you installed (or configured) the u-boot for booting the firmware,
write the device's mac address in the ethaddr u-boot env.
The MAC address is usually on a sticker under the device (one of the two codes is the serial),
it should begin with "107BEF" as it is assigned to ZyXEL.

write in the u-boot console (use your MAC address instead of the example)

setenv ethaddr 10:7B:EF:00:00:00
saveenv

to save the mac address in the u-boot.

Signed-off-by: Alberto Bursi <alberto.bursi@outlook.it>
7 years agouboot-envtools: add nsa310b envs
Alberto Bursi [Mon, 23 Jan 2017 20:21:30 +0000 (21:21 +0100)]
uboot-envtools: add nsa310b envs

accessing the u-boot's envs on this device is required to read the mac address.
These are the envs of the new u-boot, not of the stock one.

Signed-off-by: Alberto Bursi <alberto.bursi@outlook.it>
7 years agomvebu: set fan_ctrl.sh only on mamba
Hans Geiblinger [Fri, 13 Jan 2017 14:13:55 +0000 (09:13 -0500)]
mvebu: set fan_ctrl.sh only on mamba

Signed-off-by: Hans Geiblinger <cybrnook2002yahoo.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name> [cleanup]
7 years agouboot-zynq: switch to u-boot.mk
Felix Fietkau [Tue, 24 Jan 2017 14:53:28 +0000 (15:53 +0100)]
uboot-zynq: switch to u-boot.mk

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agouboot-sunxi: clean up, switch to u-boot.mk
Felix Fietkau [Mon, 23 Jan 2017 12:41:49 +0000 (13:41 +0100)]
uboot-sunxi: clean up, switch to u-boot.mk

Instead of referencing u-boot packages from device profiles and having a
-all metapackage, make the u-boot packages hidden (they don't install to
bin/ anyway), and name the files in KERNEL_BUILD_DIR appropriately

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agouboot-pxa: remove package
Felix Fietkau [Mon, 23 Jan 2017 11:42:35 +0000 (12:42 +0100)]
uboot-pxa: remove package

support for pxa has been gone for a long time now

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agouboot-oxnas: switch to u-boot.mk
Felix Fietkau [Mon, 23 Jan 2017 11:40:32 +0000 (12:40 +0100)]
uboot-oxnas: switch to u-boot.mk

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agouboot-omap: switch to u-boot.mk
Felix Fietkau [Mon, 23 Jan 2017 11:25:49 +0000 (12:25 +0100)]
uboot-omap: switch to u-boot.mk

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agouboot-mxs: switch to u-boot.mk
Felix Fietkau [Mon, 23 Jan 2017 11:15:19 +0000 (12:15 +0100)]
uboot-mxs: switch to u-boot.mk

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agouboot-mvebu: switch to u-boot.mk
Felix Fietkau [Mon, 23 Jan 2017 11:09:10 +0000 (12:09 +0100)]
uboot-mvebu: switch to u-boot.mk

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agouboot-layerscape-32b: simplify the package, it does not build anything
Felix Fietkau [Mon, 23 Jan 2017 10:56:42 +0000 (11:56 +0100)]
uboot-layerscape-32b: simplify the package, it does not build anything

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agouboot-layerscape: switch to u-boot.mk
Felix Fietkau [Mon, 23 Jan 2017 09:50:22 +0000 (10:50 +0100)]
uboot-layerscape: switch to u-boot.mk

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agouboot-imx6: switch to u-boot.mk
Felix Fietkau [Mon, 23 Jan 2017 09:14:55 +0000 (10:14 +0100)]
uboot-imx6: switch to u-boot.mk

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agouboot-at91: switch to u-boot.mk
Felix Fietkau [Mon, 23 Jan 2017 09:00:17 +0000 (10:00 +0100)]
uboot-at91: switch to u-boot.mk

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agouboot-kirkwood: switch to u-boot.mk
Felix Fietkau [Mon, 23 Jan 2017 08:25:26 +0000 (09:25 +0100)]
uboot-kirkwood: switch to u-boot.mk

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