oweals/openwrt.git
7 years agokernel: remove pipetypes unused var warning
Kevin Darbyshire-Bryant [Wed, 16 Nov 2016 19:20:09 +0000 (19:20 +0000)]
kernel: remove pipetypes unused var warning

Update patch to remove pipetypes var declaration which was throwing
unused variable warning due to the original patch removing the only use.

Signed-off-by: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
7 years agoipq806x: switch to upstream usb driver and backport fixes
Pavel Kubelun [Sat, 12 Nov 2016 11:35:56 +0000 (14:35 +0300)]
ipq806x: switch to upstream usb driver and backport fixes

Also removing fifo-resize property drom DT as it has been removed from the driver.

Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
8 years agoar71xx: fix drivers/mtd/nand/ar934x_nfc.c
Paul Wassi [Wed, 16 Nov 2016 06:25:10 +0000 (07:25 +0100)]
ar71xx: fix drivers/mtd/nand/ar934x_nfc.c

Fix the incorrect usage of ar934x_nfc_write_page and ar934x_nfc_write_page_raw.
Add *page* in the argument list and remove the local variable.

Signed-off-by: Paul Wassi <p.wassi@gmx.at>
8 years agolantiq: remove device specific sysupgrade image checks
Felix Fietkau [Sun, 20 Nov 2016 19:07:18 +0000 (20:07 +0100)]
lantiq: remove device specific sysupgrade image checks

Replaced by image metadata

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoipq806x: remove device specific sysupgrade image checks
Felix Fietkau [Sun, 20 Nov 2016 19:06:15 +0000 (20:06 +0100)]
ipq806x: remove device specific sysupgrade image checks

Replaced by image metadata

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agofirmware-utils: tplink-safeloader: keep per-device info on trailing char
Rafał Miłecki [Sat, 19 Nov 2016 21:42:50 +0000 (22:42 +0100)]
firmware-utils: tplink-safeloader: keep per-device info on trailing char

Recent refactoring introduced a regression. It ignored second argument
of make_support_list function which was originally true for C2600. The
new generic build_image function always passes false.

This patch allows specifying trailing char in a device specific info. It
also switches Archer C9 to the \0 char to make it compliant with vendor
images.

I verified generated images to be binary identical to the ones that
were created before whole refactoring.

Reported-by: Jo-Philipp Wich <jo@mein.io>
Fixes: fd924d2068f ("firmware-utils: tplink-safeloader: use one function for generating images")
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
8 years agokernel: add bcm47xxpart patch fixing parsing with some TRX formats
Rafał Miłecki [Sun, 20 Nov 2016 15:41:29 +0000 (16:41 +0100)]
kernel: add bcm47xxpart patch fixing parsing with some TRX formats

This fixes parsing partition placed after TRX with block-aligned length.
It's important e.g. for Archer C9 which has TRX with kernel only and
rootfs as separated partition.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
8 years agoipq806x: fix build errors
Pavel Kubelun [Sat, 19 Nov 2016 09:42:22 +0000 (12:42 +0300)]
ipq806x: fix build errors

Add missing patches that broke LEDE builder while updating WDT driver

Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
8 years agokernel: rtl8367(b): fix build error
Mathias Kresin [Fri, 18 Nov 2016 20:10:40 +0000 (21:10 +0100)]
kernel: rtl8367(b): fix build error

Fix build on targets not using CONFIG_MODULE_STRIPPED.

Neither RTL8367_DRIVER_DESC nor RTL8367B_DRIVER_DESC are defined
anywhere. It worked for targets using CONFIG_MODULE_STRIPPED since our
module stripper no-ops the various module info macros.

Signed-off-by: Mathias Kresin <dev@kresin.me>
8 years agolantiq: run append-metadata before check-size to fix build errors
Felix Fietkau [Sat, 19 Nov 2016 13:18:46 +0000 (14:18 +0100)]
lantiq: run append-metadata before check-size to fix build errors

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agox86: fix GRUB_ROOT for Xen subtarget
Wilfried Klaebe [Fri, 11 Nov 2016 13:50:00 +0000 (15:50 +0200)]
x86: fix GRUB_ROOT for Xen subtarget

Change grub's root device to xen/xvda,msdos1 for the x86_xen_domu
target so that it will boot without further changes.

Signed-off-by: Wilfried Klaebe <w+lede-project@chaos.in-kiel.de>
[Jo-Philipp Wich: fixed and rebased patch from FS#264, added subject]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agoramips: append metadata to images
Felix Fietkau [Thu, 17 Nov 2016 12:02:26 +0000 (13:02 +0100)]
ramips: append metadata to images

metadata checks are not enforced yet, because some images are still
being built by legacy code

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agolantiq: append metadata to images
Felix Fietkau [Thu, 17 Nov 2016 10:41:08 +0000 (11:41 +0100)]
lantiq: append metadata to images

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoipq806x: append metadata to images
Felix Fietkau [Mon, 14 Nov 2016 16:32:04 +0000 (17:32 +0100)]
ipq806x: append metadata to images

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agobuild: add support code for appending metadata to images
Felix Fietkau [Mon, 14 Nov 2016 16:31:53 +0000 (17:31 +0100)]
build: add support code for appending metadata to images

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agobase-files: validate metadata of sysupgrade images
Felix Fietkau [Mon, 14 Nov 2016 16:30:51 +0000 (17:30 +0100)]
base-files: validate metadata of sysupgrade images

Use fwtool to extract it, only require metadata to be present if the
platform sysupgrade script sets REQUIRE_IMAGE_METADATA=1

Image metadata is in JSON format and contains a list of supported
devices, along with version information that could be displayed by a UI
later before the actual upgrade happens.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agofwtool: add utility for appending and extracting firmware metadata/signatures
Felix Fietkau [Mon, 14 Nov 2016 15:02:46 +0000 (16:02 +0100)]
fwtool: add utility for appending and extracting firmware metadata/signatures

This will be used to append extra information to images which allows the
system to verify if an image is compatible with the system.

The extra data is appended to the end of the image, where it will be
ignored when upgrading from systems that do not process this data yet:

If the image is a squashfs or jffs2 image, the extra data will land
after the end-of-filesystem marker, where it will be overwritten once
the system boots for the first timee.

If the image is a sysupgrade tar file, tar will simply ignore the extra
data when unpacking.

The layout of the metadata/signature chunks is constructed in a way
that the last part contains just a magic and size information, so that
the tool can quickly check if any valid data is present without having
to do a pattern search throughout the full image.

Chunks also contain CRC32 information to detect file corruption, even
when the image is not signed.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agobcm53xx: build image for TP-LINK Archer C9 v1
Rafał Miłecki [Sat, 19 Nov 2016 06:58:26 +0000 (07:58 +0100)]
bcm53xx: build image for TP-LINK Archer C9 v1

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
8 years agobcm53xx: support SafeLoader format in sysupgrade
Rafał Miłecki [Sat, 19 Nov 2016 06:58:26 +0000 (07:58 +0100)]
bcm53xx: support SafeLoader format in sysupgrade

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
8 years agofirmware-utils: tplink-safeloader: add Archer C9 support
Rafał Miłecki [Sat, 19 Nov 2016 06:58:25 +0000 (07:58 +0100)]
firmware-utils: tplink-safeloader: add Archer C9 support

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
8 years agoosafeloader: new util for extracting partitions from SafeLoader
Rafał Miłecki [Sat, 19 Nov 2016 06:58:25 +0000 (07:58 +0100)]
osafeloader: new util for extracting partitions from SafeLoader

SafeLoader is image format used by some TP-LINK devices. This tool
allows extracting selected partitions out of it. It can be used for
sysupgrade.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
8 years agobcm53xx: add kernel support for TP-LINK Archer C9 V1
Rafał Miłecki [Sat, 19 Nov 2016 06:58:25 +0000 (07:58 +0100)]
bcm53xx: add kernel support for TP-LINK Archer C9 V1

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
8 years agofirmware-utils: tplink-safeloader: use one function for generating images
Rafał Miłecki [Sun, 13 Nov 2016 17:30:48 +0000 (18:30 +0100)]
firmware-utils: tplink-safeloader: use one function for generating images

Thanks to the struct device_info we can now use one unified function.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
8 years agofirmware-utils: tplink-safeloader: add struct device_info
Rafał Miłecki [Sun, 13 Nov 2016 17:30:47 +0000 (18:30 +0100)]
firmware-utils: tplink-safeloader: add struct device_info

This struct stores all device specific info which allows making do_eap
function more generic.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
8 years agoar71xx: enable serial console on mikrotik devices
João Chaínho [Thu, 17 Nov 2016 22:15:42 +0000 (22:15 +0000)]
ar71xx: enable serial console on mikrotik devices

This patch enables the serial console on some Mikrotik devices (RB450,
RB450G, RB493G, RB750UP).

Signed-off-by: João Chaínho <joaochainho@gmail.com>
8 years agoramips: add support for ZyXEL Keenetic Viva
Vitaly Chekryzhev [Sat, 29 Oct 2016 12:26:58 +0000 (17:26 +0500)]
ramips: add support for ZyXEL Keenetic Viva

Factory image can be installed via Zyxel WebUI.

Signed-off-by: Vitaly Chekryzhev <13hakta@gmail.com>
[removed linux,modalias parameter from flash node in dts]
[removed sdhci node from dts; no sd card slot here]
Signed-off-by: Mathias Kresin <dev@kresin.me>
8 years agofirmware-utils: add tool to create zyxel images
Vitaly Chekryzhev [Sat, 29 Oct 2016 12:26:58 +0000 (17:26 +0500)]
firmware-utils: add tool to create zyxel images

Signed-off-by: Vitaly Chekryzhev <13hakta@gmail.com>
[moved to firmware-utils package]
[dropped the compiled binary]
Signed-off-by: Mathias Kresin <dev@kresin.me>
8 years agokernel/modules: add kmod-switch-rtl8367b
Vitaly Chekryzhev [Sat, 29 Oct 2016 12:28:05 +0000 (17:28 +0500)]
kernel/modules: add kmod-switch-rtl8367b

Add build option for RTL8367R/VB switches.

Signed-off-by: Vitaly Chekryzhev <13hakta@gmail.com>
8 years agoramips: add MT7620 MIB support for switch and port
Vitaly Chekryzhev [Sat, 29 Oct 2016 14:17:51 +0000 (19:17 +0500)]
ramips: add MT7620 MIB support for switch and port

Move definitions to header. Replace array size definitions with macro.

Signed-off-by: Vitaly Chekryzhev <13hakta@gmail.com>
[merged into 0513-net-mediatek-add-swconfig-driver-for-gsw_mt762x.patch]
Signed-off-by: Mathias Kresin <dev@kresin.me>
Acked-by: John Crispin <john@phrozen.org>
8 years agoipq806x: refresh patches
Hannu Nyman [Thu, 17 Nov 2016 12:02:57 +0000 (14:02 +0200)]
ipq806x: refresh patches

This patch refreshes the ipq806x kernel patches.

There was a large PR for ipq806x in the queue when the kernel patches
were refreshed for 4.4.32, so currently there is quite much fuzz for
ipq806x.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
8 years agolibnl-tiny: remove include/linux overrides to fix various build issues
Felix Fietkau [Mon, 14 Nov 2016 08:35:03 +0000 (09:35 +0100)]
libnl-tiny: remove include/linux overrides to fix various build issues

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoramips: add support for Sitecom WLR-6000
Jasper Scholte [Sun, 14 Aug 2016 21:30:44 +0000 (23:30 +0200)]
ramips: add support for Sitecom WLR-6000

The Sitecom firmware upgrade file has SENAO_FIRMWARE_TYPE 2 set. This
looks rather wrong since SENAO_FIRMWARE_TYPE 2 is kernel only but the
file is way to big for only including a kernel.

The factory image need to have the dlf file extension. Otherwise the
Sitecom firmware rejects the file.

The stock firmware uses the following mac addresses:

LAN: 00:0C:F6:AA:BB:D8 (u-boot env: ethaddr)
2,4: 00:0C:F6:AA:BB:D8 (EEPROM)
5:   00:0C:F6:AA:BB:DC (EEPROM)
WAN: 00:0C:F6:AA:C8:43 (u-boot env: wanaddr)

Assuming the mac address range :D8 to :DC is reserved for this device,
the MAC addresses were reorder to have a unique MAC address for each
interface:

2.4GHz: 00:0C:F6:AA:BB:D8
LAN:    00:0C:F6:AA:BB:D9
WAN:    00:0C:F6:AA:BB:DA
5 GHz:  00:0C:F6:AA:BB:DC

The first MAC is assigned to the 2.4GHz WiFi interface
to keep compatibility with the SSIDs printed on the case, which have
the last three sextets of the MAC address appended.

There are still issues with the rt2x00 driver. It is not possible to
use both wireless interfaces at the same time. The 2.4 GHz
wireless (PCIe) only works if the internal 5GHz wireless is/has been
enabled or used for scanning. The internal 5GHz wireless only works if
the 2.4GHz wireless (PCIe) was never enabled. Disabling the 2.4Ghz
after it was enabled will result in stations seeing the 5Ghz AP but are
unable to connect.

Due to the not optimal working wifi the manufacture, backup and storage
partitions of the OEM firmware are kept for now to allow an easy switch
back to the Sitecom firmware.

Signed-off-by: Jasper Scholte <NightNL@outlook.com>
Signed-off-by: Mathias Kresin <dev@kresin.me>
8 years agoramips: add support for Digineo AC1200 Pro
Dominik Menke [Tue, 15 Nov 2016 11:37:38 +0000 (12:37 +0100)]
ramips: add support for Digineo AC1200 Pro

This is basically a ZBT-WG3526 (mt7621 SoC), but with 32M flash.

Signed-off-by: Dominik Menke <dom@digineo.de>
8 years agoramips: cleanup ZBT-WG3526.dtsi
Dominik Menke [Tue, 15 Nov 2016 11:36:09 +0000 (12:36 +0100)]
ramips: cleanup ZBT-WG3526.dtsi

- replace magic numbers with GPIO_* constants
- replace generic PCI definitions with correct vendor and
  device identification

Signed-off-by: Dominik Menke <dom@digineo.de>
8 years agoramips: split ZBT-WG3526.dts into dtsi and dts files
Dominik Menke [Tue, 15 Nov 2016 12:04:33 +0000 (13:04 +0100)]
ramips: split ZBT-WG3526.dts into dtsi and dts files

Signed-off-by: Dominik Menke <dom@digineo.de>
8 years agokernel: enable pcrypt
Jason A. Donenfeld [Mon, 14 Nov 2016 13:16:13 +0000 (14:16 +0100)]
kernel: enable pcrypt

This is a powerful API for parallel crypto from which many other modules
can benefit. It only winds up being turned on on SMP systems, which
means this adds 0 bytes to the kernel on tiny machines, while only
adding a small bit to SMP systems for big performance improvements.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
8 years agoocteon: fix feature flag for initramfs support
Felix Fietkau [Wed, 16 Nov 2016 22:37:27 +0000 (23:37 +0100)]
octeon: fix feature flag for initramfs support

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agohostapd: fix PKG_CONFIG_DEPENDS for CONFIG_WPA_SUPPLICANT_*
Matthias Schiffer [Wed, 16 Nov 2016 19:59:17 +0000 (20:59 +0100)]
hostapd: fix PKG_CONFIG_DEPENDS for CONFIG_WPA_SUPPLICANT_*

These symbols don't affect wpa-supplicant only, but also wpad.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
8 years agokernel: update kernel 4.4 to version 4.4.32
Stijn Tintel [Wed, 16 Nov 2016 14:59:43 +0000 (15:59 +0100)]
kernel: update kernel 4.4 to version 4.4.32

Refresh patches for all targets that support kernel 4.4.
Compile-tested on all targets that use kernel 4.4 and aren't marked broken.
Runtime-tested on ar71xx, octeon.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
8 years agodevel/strace: fix build only on powerpc arch
Alexandru Ardelean [Wed, 9 Nov 2016 15:00:11 +0000 (17:00 +0200)]
devel/strace: fix build only on powerpc arch

Reboot of 519a199cbcc0930e229ddd7087309326a846bdce
Which broke other builds.

This time, added compile flags to build only for POWERPC archs

Tested on mpc85xx, ar71xx and bcm2708.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
8 years agoar71xx: tl-wpa8630: Use dynamic parsing of the firmware partition
Henryk Heisig [Mon, 14 Nov 2016 20:55:25 +0000 (21:55 +0100)]
ar71xx: tl-wpa8630: Use dynamic parsing of the firmware partition

Signed-off-by: Henryk Heisig <hyniu@o2.pl>
8 years agoipq806x: fixes for R7800 and C2600
Pavel Kubelun [Tue, 8 Nov 2016 05:49:07 +0000 (08:49 +0300)]
ipq806x: fixes for R7800 and C2600

Updating spi pins configuration in R7800 and C2600 DTs
Adding more usb power pin export and gsbi6 in R7800 DT
Updating and fixing leds

Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
8 years agoipq806x: fix Netgear R7500v2 memory
Pavel Kubelun [Wed, 9 Nov 2016 09:43:04 +0000 (12:43 +0300)]
ipq806x: fix Netgear R7500v2 memory

Netgear R7500v2 has 512MB of RAM with 2MB reserved block in the end of memory region.

Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
8 years agoipq806x: fix pci pins
Pavel Kubelun [Tue, 8 Nov 2016 12:52:46 +0000 (15:52 +0300)]
ipq806x: fix pci pins

Fix pci pins drive-strength according to oem sources.

Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
8 years agoipq806x: add vlans during switch init into R7800 DT
Pavel Kubelun [Thu, 27 Oct 2016 21:26:19 +0000 (00:26 +0300)]
ipq806x: add vlans during switch init into R7800 DT

Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
8 years agoipq806x: add support for RPM message RAM
Pavel Kubelun [Sun, 6 Nov 2016 13:22:22 +0000 (16:22 +0300)]
ipq806x: add support for RPM message RAM

Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
8 years agoipq806x: add support for RPM clock controller
dissent1 [Thu, 3 Nov 2016 15:07:31 +0000 (18:07 +0300)]
ipq806x: add support for RPM clock controller

The patch #179 for RPM has initially been made for apq806x board. It has been modified to support ipq806x instead of apq8064.

Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
8 years agoipq806x: add CPU idle states
Pavel Kubelun [Fri, 4 Nov 2016 17:22:17 +0000 (20:22 +0300)]
ipq806x: add CPU idle states

Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
8 years agoipq806x: backport upstream wdt driver
Pavel Kubelun [Thu, 3 Nov 2016 23:12:32 +0000 (02:12 +0300)]
ipq806x: backport upstream wdt driver

Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
8 years agolayerscape: uboot: using perl script:byte_swap.pl to replace tcl script:byte_swap.tcl
Yutang Jiang [Tue, 15 Nov 2016 15:46:51 +0000 (23:46 +0800)]
layerscape: uboot: using perl script:byte_swap.pl to replace tcl script:byte_swap.tcl

Signed-off-by: Yutang Jiang <yutang.jiang@nxp.com>
8 years agolantiq: add tapi/vmmc to VGV7519 defaults
dpeddi [Sat, 29 Oct 2016 11:51:12 +0000 (13:51 +0200)]
lantiq: add tapi/vmmc to VGV7519 defaults

Signed-off-by: Eddi De Pieri <eddi@depieri.net>
8 years agolantiq: enable VMMC for VGV7519
dpeddi [Sat, 29 Oct 2016 11:36:38 +0000 (13:36 +0200)]
lantiq: enable VMMC for VGV7519

Signed-off-by: Eddi De Pieri <eddi@depieri.net>
8 years agolantiq: disable VMMC_COEF for non FALCON device
dpeddi [Sat, 29 Oct 2016 11:34:15 +0000 (13:34 +0200)]
lantiq: disable VMMC_COEF for non FALCON device

Signed-off-by: Eddi De Pieri <eddi@depieri.net>
8 years agolantiq: add tapi/vmmc to VGV7510KW22 defaults
Eddi De Pieri [Tue, 15 Nov 2016 20:43:08 +0000 (21:43 +0100)]
lantiq: add tapi/vmmc to VGV7510KW22 defaults

Signed-off-by: Eddi De Pieri <eddi@depieri.net>
8 years agolantiq: enable VMMC for VGV7510KW22
Eddi De Pieri [Tue, 15 Nov 2016 20:41:26 +0000 (21:41 +0100)]
lantiq: enable VMMC for VGV7510KW22

Signed-off-by: Eddi De Pieri <eddi@depieri.net>
8 years agoarm64: boot-wrapper: Add mirror
Daniel Engberg [Sun, 13 Nov 2016 23:41:03 +0000 (00:41 +0100)]
arm64: boot-wrapper: Add mirror

Adds Google's mirror as primary source and kernel.org as fallback.
Same as commit 0d4f02dfd650612aac6c11860139be03a0f54bee

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
8 years agolayerscape: ls1012ardb: only reserve ext4 fs as default firmware.bin
Yutang Jiang [Wed, 9 Nov 2016 15:51:48 +0000 (23:51 +0800)]
layerscape: ls1012ardb: only reserve ext4 fs as default firmware.bin

In Device/ls1012ardb IMAGES variable, there are two separate firmware
references to the same packages, while do mult-job compile, the same package
build process will arise conflict occasionally. So, only reserve one ext4 fs
as the default firmware.bin.

Signed-off-by: Yutang Jiang <yutang.jiang@nxp.com>
8 years agolayerscape: ls1043ardb: add pad-rootfs to reduce the size of firmware.bin
Yutang Jiang [Wed, 9 Nov 2016 15:51:48 +0000 (23:51 +0800)]
layerscape: ls1043ardb: add pad-rootfs to reduce the size of firmware.bin

Signed-off-by: Yutang Jiang <yutang.jiang@nxp.com>
8 years agopackage/firmware/fman-ucode: Use HTTPS
Daniel Engberg [Sun, 13 Nov 2016 23:58:38 +0000 (00:58 +0100)]
package/firmware/fman-ucode: Use HTTPS

Change URL to use HTTPS instead of HTTP

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
8 years agopackage/devel/trace-cmd: Add mirror
Daniel Engberg [Sun, 13 Nov 2016 23:55:38 +0000 (00:55 +0100)]
package/devel/trace-cmd: Add mirror

Adds Google's mirror as primary source and kernel.org as fallback.
Same as commit 0d4f02dfd650612aac6c11860139be03a0f54bee

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
8 years agokernel: update kernel 4.4 to version 4.4.31
Koen Vandeputte [Sat, 12 Nov 2016 13:52:47 +0000 (14:52 +0100)]
kernel: update kernel 4.4 to version 4.4.31

+ Refresh patches
compile/run-tested on cns3xxx & imx6.

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
8 years agoar71xx: Add usable, inactive LEDs on OpenMesh devices
Jaylin Yu [Fri, 11 Nov 2016 15:12:36 +0000 (16:12 +0100)]
ar71xx: Add usable, inactive LEDs on OpenMesh devices

OpenMesh devices have often LEDs which are not yet used by OpenWrt. These
should still be available as disabled LEDs in the system configuration for
easier modification.

Signed-off-by: Jaylin Yu <jaylin.yu@open-mesh.com>
[sven.eckelmann@open-mesh.com: Remove LEDs already specified via diag.sh,
 add wifi/status LEDs]
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
8 years agomac80211: Make wlcore platform-independent
Alexey Brodkin [Thu, 10 Nov 2016 12:28:17 +0000 (15:28 +0300)]
mac80211: Make wlcore platform-independent

TI wl18xx and wl12xx are Wi-Fi/Bluetooth combo modules
that could be found on different existing boards.

But it is possible to get those modules as a separate
component and use with existing boards as well as
new boards equipped with either module may appear so we
remove dependency on OMAP instead we add dependency on MMC
because this Wi-Fi module uses SDIO interface.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Jo-Philipp Wich <jo@mein.io>
Cc: Felix Fietkau <nbd@nbd.name>
Cc: Imre Kaloz <kaloz@openwrt.org>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
8 years agoar71xx: add support for Buffalo BHR-4GRV2
FUKAUMI Naoki [Tue, 8 Nov 2016 13:45:00 +0000 (22:45 +0900)]
ar71xx: add support for Buffalo BHR-4GRV2

Signed-off-by: FUKAUMI Naoki <naobsd@gmail.com>
8 years agox86-generic: add MMC support to boot off SD cards
Andreas Ziegler [Tue, 15 Nov 2016 19:36:27 +0000 (20:36 +0100)]
x86-generic: add MMC support to boot off SD cards

MMC support has been added to x86-64 a while ago, there is no reason not
to support it in x86-generic as well.

Signed-off-by: Andreas Ziegler <github@andreas-ziegler.de>
[Matthias Schiffer: add commit message]
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
8 years agox86: add PATA support to generic and 64 subtargets
Andreas Ziegler [Tue, 15 Nov 2016 19:07:35 +0000 (20:07 +0100)]
x86: add PATA support to generic and 64 subtargets

PATA support has been removed from x86-generic without any note in LEDE
r538. Not including them makes the generated images incompatible with older
(and some newer) hardware without any significant gain.

Add it back, and also add the same drivers (as far as available) to x86-64.

Signed-off-by: Andreas Ziegler <github@andreas-ziegler.de>
[Matthias Schiffer: add back x86-generic, update commit message]
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
8 years agox86: refresh generic subtarget config
Matthias Schiffer [Tue, 15 Nov 2016 19:31:15 +0000 (20:31 +0100)]
x86: refresh generic subtarget config

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
8 years agoar71xx, ramips: reduce CPU load and flickering on devices using rsslieds
Martin Weinelt [Wed, 2 Nov 2016 15:10:44 +0000 (16:10 +0100)]
ar71xx, ramips: reduce CPU load and flickering on devices using rsslieds

Polling every 40ms causes more than 10% CPU load on weak devices. An
interval of 200ms is much more reasonable.

Signed-off-by: Martin Weinelt <martin@darmstadt.freifunk.net>
[Matthias Schiffer: adapt OpenWrt patch; add ramips; extend commit message]
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
8 years agoar71xx: enable HSR tuner on Ubiquiti UAP Outdoor+
Matthias Schiffer [Tue, 15 Nov 2016 17:54:07 +0000 (18:54 +0100)]
ar71xx: enable HSR tuner on Ubiquiti UAP Outdoor+

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
8 years agoar71xx: fix DEVICE_TITLE for Ubiquiti UAP Outdoor+
Matthias Schiffer [Tue, 15 Nov 2016 17:54:06 +0000 (18:54 +0100)]
ar71xx: fix DEVICE_TITLE for Ubiquiti UAP Outdoor+

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
8 years agoath9k: add support for the HSR tuner of the Ubiquiti UAP Outdoor+
Matthias Schiffer [Tue, 15 Nov 2016 17:54:06 +0000 (18:54 +0100)]
ath9k: add support for the HSR tuner of the Ubiquiti UAP Outdoor+

Without setting the HSR to the selected channel, the WLAN of the UAP
Outdoor+ will exhibit high packet loss in RX.

Based-on-patch-by: Stefan Rompf <stefan@loplof.de>
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
8 years agoath9k: fix ath9k_hw_gpio_get() to return 0 or 1 on success
Matthias Schiffer [Tue, 15 Nov 2016 17:54:05 +0000 (18:54 +0100)]
ath9k: fix ath9k_hw_gpio_get() to return 0 or 1 on success

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
8 years agoodhcpd: Add reload support
Hans Dedecker [Mon, 14 Nov 2016 11:19:39 +0000 (12:19 +0100)]
odhcpd: Add reload support

odhcpd daemon has hitless config reload support by means of the
sighup signal; add reload_service function which uses sighup
signal to reload the config

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
8 years agoramips: fix polling switch interrupts
Felix Fietkau [Tue, 8 Nov 2016 17:12:42 +0000 (18:12 +0100)]
ramips: fix polling switch interrupts

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoramips: add port index in switch config for buffalo WHR-* and WSR-* devices
Felix Fietkau [Mon, 14 Nov 2016 19:04:36 +0000 (20:04 +0100)]
ramips: add port index in switch config for buffalo WHR-* and WSR-* devices

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agobcm53xx: add switch config for Buffalo WXR-1900DHP and WZR-1750DHP
Felix Fietkau [Mon, 14 Nov 2016 19:01:46 +0000 (20:01 +0100)]
bcm53xx: add switch config for Buffalo WXR-1900DHP and WZR-1750DHP

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agolantiq: fix port indexing for WBMR-300
Felix Fietkau [Mon, 14 Nov 2016 19:02:37 +0000 (20:02 +0100)]
lantiq: fix port indexing for WBMR-300

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoramips: add hack to detect missing mt7621 cpu cores
Felix Fietkau [Thu, 22 Sep 2016 14:20:30 +0000 (16:20 +0200)]
ramips: add hack to detect missing mt7621 cpu cores

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoubox: update to the latest version
Felix Fietkau [Thu, 22 Sep 2016 15:06:14 +0000 (17:06 +0200)]
ubox: update to the latest version

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoramips: fix status LED for WHR-300HP2
Felix Fietkau [Mon, 14 Nov 2016 14:03:08 +0000 (15:03 +0100)]
ramips: fix status LED for WHR-300HP2

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoarptables: bump to 2015-05-20
Ralph Sennhauser [Sun, 13 Nov 2016 15:09:54 +0000 (16:09 +0100)]
arptables: bump to 2015-05-20

This fixes building with musl and drops the dependency on the OpenWrt
kernel-header patches:

  270-uapi-kernel.h-glibc-specific-inclusion-of-sysinfo.h.patch
  271-uapi-libc-compat.h-do-not-rely-on-__GLIBC__.patch
  272-uapi-if_ether.h-prevent-redefinition-of-struct-ethhd.patch

Use the new upstream location at netfilter.org and use a define instead
of a patch to "optimize".

See also: https://git.netfilter.org/arptables/log/

Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
[Jo-Philipp Wich: add mirror SHA256 sum]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agoconntrack-tools: update to v1.4.4
Jo-Philipp Wich [Mon, 14 Nov 2016 12:03:18 +0000 (13:03 +0100)]
conntrack-tools: update to v1.4.4

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agolibnetfilter-conntrack: update to v1.0.6
Jo-Philipp Wich [Mon, 14 Nov 2016 11:52:53 +0000 (12:52 +0100)]
libnetfilter-conntrack: update to v1.0.6

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agonettle: enable fat build
Nikos Mavrogiannopoulos [Sat, 5 Nov 2016 11:35:54 +0000 (12:35 +0100)]
nettle: enable fat build

This allows to include optimizations such as ARM neon which
are detected on run-time.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
[Jo-Philipp Wich: picked from openwrt#191 and rebased onto LEDE master]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agotoolchain: fix MIPS softfloat build issue for gcc-5.4.0
BangLang Huang [Wed, 9 Nov 2016 03:06:24 +0000 (11:06 +0800)]
toolchain: fix MIPS softfloat build issue for gcc-5.4.0

Signed-off-by: BangLang Huang <banglang.huang@foxmail.com>
8 years agomvebu: revert remove of mvsw61xx device tree nodes
Mathias Kresin [Sun, 13 Nov 2016 07:57:56 +0000 (08:57 +0100)]
mvebu: revert remove of mvsw61xx device tree nodes

The marvell,88e6352 and marvell,88e6172 compatible strings are used in
target/linux/generic/files/drivers/net/phy/mvsw61xx.c. No idea why grep
missed them when I searched for them.

Thanks to Syrone Wong for noticing and reporting my mistake.

Signed-off-by: Mathias Kresin <dev@kresin.me>
8 years agotreewide: dts: use keycode defines from input dt-binding
Mathias Kresin [Fri, 11 Nov 2016 21:43:08 +0000 (22:43 +0100)]
treewide: dts: use keycode defines from input dt-binding

All compiled device tree files not mentioned are binary identical to the
former ones.

Fix the obvious decimal/hex confusion for the power key of ramips/M2M.dts.

Due to the include of the input binding header, the BTN_* node names in:

  - ramips/GL-MT300A.dts
  - ramips/GL-MT300N.dts
  - ramips/GL-MT750.dts
  - ramips/Timecloud.dts

will be changed by the compiler to the numerical equivalent.

Move the binding include of lantiq boards to the file where they are
used the first time to hint the user where the values do come from.

Signed-off-by: Mathias Kresin <dev@kresin.me>
8 years agotreewide: dts: use C style includes
Mathias Kresin [Fri, 11 Nov 2016 06:32:12 +0000 (07:32 +0100)]
treewide: dts: use C style includes

No functional change but allows me to use one script to compile all
device tree source files.

Signed-off-by: Mathias Kresin <dev@kresin.me>
8 years agotreewide: dts: fix dtc compiler warnings
Mathias Kresin [Thu, 10 Nov 2016 05:22:50 +0000 (06:22 +0100)]
treewide: dts: fix dtc compiler warnings

Fixes invalid device tree parameters.

Drop the mvsw61xx node used in mvebu device tree source files. It looks
like some kind of ethernet switch cargo cult. Neither the
marvell,88e6352 nor the marvell,88e6172 compatible strings can be found
in any LEDE file or in the kernel sources.

Signed-off-by: Mathias Kresin <dev@kresin.me>
8 years agoapm821xx: remove replaced netgear, wndr4700-usb dwc2 definiton
Christian Lamparter [Sat, 12 Nov 2016 13:46:33 +0000 (14:46 +0100)]
apm821xx: remove replaced netgear, wndr4700-usb dwc2 definiton

This special dwc2 device definition for the Netgear WNDR4700
has been replaced by amcc,usb-otg-405ex.

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
8 years agoapm821xx: consolidate apm821xx device trees files
Christian Lamparter [Sat, 12 Nov 2016 13:46:32 +0000 (14:46 +0100)]
apm821xx: consolidate apm821xx device trees files

This patch moves the common SoC device tree entries
from the currently four supported platforms into a
common apm82181.dtsi.

Furthermore, this patch also changes the GPIO, IRQ and
input definitions of the supported platforms to use the
defined dt-bindings macros for GPIO_ACTIVE_LOW|HIGH,
KEY_WPS|RESTART|*, IRQ_TYPE_* when it's appropriate.

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
8 years agoapm821xx: add amcc, usb-otg-405ex devicetree definition
Christian Lamparter [Sat, 12 Nov 2016 13:46:31 +0000 (14:46 +0100)]
apm821xx: add amcc, usb-otg-405ex devicetree definition

This patch adds support for the amcc,usb-otg-405ex device
which is found in all APM82181 SoCs.
Note: The system can't use the generic "snps,dwc2" compatible
because of the special ahbcfg configuration. The default
GAHBCFG_HBSTLEN_INCR4 of snps,dwc2 can cause a system hang
when the USB and SATA is used concurrently.

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
8 years agolantiq: fix pci issue if mem kernel parameter is used
Eddi De Pieri [Tue, 8 Nov 2016 16:38:03 +0000 (17:38 +0100)]
lantiq: fix pci issue if mem kernel parameter is used

As specified by e0229a16b0001c08e6c2611fa0bb9814507fced4 if the VR9
based router provides FXS ports and they should enabled then the
following must added to the kernel command line:

  mem=[TOTALMEMSIZE-2M] vpe1_load_addr=ADDRESS vpe1_mem=2M

By adding mem= parameter a pci device stop working correctly. The
pci-lantiq.c module use get_num_physpages() to compute dynamically the
memory amount of the board.

The mem= make the module to compute in the wrong way the BAR11MASK, so
in this situation the mask is misaligned with the dma area that the
hardware expects.

This patch is a port of what legacy ifxmips_pci.c does.

Signed-off-by: Eddi De Pieri <eddi@depieri.net>
8 years agoiw: fix build error caused by redeclaration of NL80211_ATTR_PAD
Rafał Miłecki [Sat, 12 Nov 2016 15:29:11 +0000 (16:29 +0100)]
iw: fix build error caused by redeclaration of NL80211_ATTR_PAD

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Fixes: 7aff00ab199 ("iw: update to version 4.9")

8 years agoiw: update to version 4.9
Rafał Miłecki [Sat, 12 Nov 2016 15:02:57 +0000 (16:02 +0100)]
iw: update to version 4.9

This adds support for "channels" command which displays more details
about channels. It includes e.g. info about available widths.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
8 years agoiw: update to version 4.7
Rafał Miłecki [Sat, 12 Nov 2016 14:59:00 +0000 (15:59 +0100)]
iw: update to version 4.7

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
8 years agoar71xx: generate region-coded factory images for TP-Link TL-WR841ND v11
Matthias Schiffer [Fri, 11 Nov 2016 02:29:59 +0000 (03:29 +0100)]
ar71xx: generate region-coded factory images for TP-Link TL-WR841ND v11

The latest stock firmwares for US and EU regions have started checking the
region code.

Tested-by: Andreas Ziegler <ml@andreas-ziegler.de>
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
8 years agoarm64: boot-wrapper: add mirror checksum
Jo-Philipp Wich [Tue, 8 Nov 2016 21:33:39 +0000 (22:33 +0100)]
arm64: boot-wrapper: add mirror checksum

Some builders have troubles cloning the boot-wrapper-aarch64.git repository so
provide a mirror checksum to allow downloading from sources.lede-project.org
instead.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agobase-files: Prefer busybox arp over /proc/net/arp alias
Marek Lindner [Thu, 10 Nov 2016 14:52:50 +0000 (15:52 +0100)]
base-files: Prefer busybox arp over /proc/net/arp alias

A firmware compiled with BUSYBOX_CONFIG_ARP should also use by default the
arp binary from busybox. Otherwise the extra functionality the user
requested can only be used when running arp with the path to the binary.

Signed-off-by: Marek Lindner <marek.lindner@open-mesh.com>
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
8 years agoramips: add TEW-691GR/TEW-692GR 2.4 GHz interface mac addresses
Mathias Kresin [Thu, 25 Aug 2016 19:16:24 +0000 (21:16 +0200)]
ramips: add TEW-691GR/TEW-692GR 2.4 GHz interface mac addresses

Assign an unused MAC addresses to the 2.4GHz wifi interface as it was
originally planed but not possible.

The MAC address numbering of the TEW-691GR changes to the following
pattern:

  LAN:  AA:BB:CC:DD:EE:0C
  WIFI: AA:BB:CC:DD:EE:0D
  WAN:  AA:BB:CC:DD:EE:0F

The MAC address numbering of the TEW-692GR changes to the following
pattern:

  LAN:    AA:BB:CC:DD:EE:e4
  WAN:    AA:BB:CC:DD:EE:e5
  2.4GHz: AA:BB:CC:DD:EE:e7
  5 GHz:  AA:BB:CC:DD:EE:e8

Set the label and compatible string for the TEW-692GR PCIe wireless
according to the the PCI binding documentation.

Use the wifi@0,0 label and the pci0,0 compatible string since the PCI
vendor and device id is unknown. It should work anyway since the
compatible string isn't evaluated (yet).

Signed-off-by: Mathias Kresin <dev@kresin.me>