openwrt/staging/adrian.git
8 years agogrub2: add PKG_FIXUP:=autoreconf
Alexandru Ardelean [Thu, 17 Nov 2016 16:25:52 +0000 (18:25 +0200)]
grub2: add PKG_FIXUP:=autoreconf

The host-side build of grub2 requires this sometimes.
This will re-generate the ./configure script from configure.ac.
I don't know the conditions of how this reproduces, it just
sometimes appears, and sometimes doesn't.

Build error
```
<lede-dir>/build_dir/target-x86_64_musl-1.1.15_yogi/host/grub-2.02~beta2/build-aux/missing: line 81: aclocal-1.14: command not found
WARNING: 'aclocal-1.14' is missing on your system.
         You should only need it if you modified 'acinclude.m4' or
         'configure.ac' or m4 files included by 'configure.ac'.
         The 'aclocal' program is part of the GNU Automake package:
         <http://www.gnu.org/software/automake>
         It also requires GNU Autoconf, GNU m4 and Perl in order to run:
         <http://www.gnu.org/software/autoconf>
         <http://www.gnu.org/software/m4/>
         <http://www.perl.org/>
Makefile:3962: recipe for target 'aclocal.m4' failed
```

Adding PKG_FIXUP adds sanity (i.e. autoreconf is used for host & target
builds) over just using HOST_FIXUP.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
8 years agoramips: Fix sdhci kernel panics on MT7621
Andrew Yong [Mon, 21 Nov 2016 07:14:16 +0000 (15:14 +0800)]
ramips: Fix sdhci kernel panics on MT7621

Enable work-arounds present in the code commented-out but needed to write to
sdcard on mt7621 which currently causes kernel to oops when engaging in
serious writing to sdcard. With this change applied, there are still
occasional warnings thrown by the mmc driver, however, at least it no longer
crashes the system and even large writes (full-card dump/erase/write/compare)
don't show any corruption.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Rebase to LEDE and added "CONFIG_SOC_MT7621" check to ensure non-MT7621 devices do not face performance regressions.
Signed-off-by: Andrew Yong <me@ndoo.sg>
8 years agoodhcpd: update to latest git HEAD
John Crispin [Mon, 21 Nov 2016 11:16:55 +0000 (12:16 +0100)]
odhcpd: update to latest git HEAD

Signed-off-by: John Crispin <john@phrozen.org>
8 years agoodhcpd: update to latest git HEAD
John Crispin [Mon, 21 Nov 2016 11:04:23 +0000 (12:04 +0100)]
odhcpd: update to latest git HEAD

Signed-off-by: John Crispin <john@phrozen.org>
8 years agomvebu: Add BQL patch for mvneta driver.
Toke Høiland-Jørgensen [Mon, 21 Nov 2016 10:12:09 +0000 (11:12 +0100)]
mvebu: Add BQL patch for mvneta driver.

This adds the patch submitted to upstream that adds BQL to the mvneta
driver: https://patchwork.kernel.org/patch/9328413/. Helps latency under
load when the physical link is saturated.

Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk>
8 years agofirmware-utils: Add support for the Cisco Meraki MX60/MX60W
Chris Blake [Wed, 16 Nov 2016 14:35:54 +0000 (08:35 -0600)]
firmware-utils: Add support for the Cisco Meraki MX60/MX60W

This patch adds header support for the Cisco Meraki MX60/MX60W, which
are a part of the apm821xx target. Some structure changes were needed
due to the fact this device uses U-Boot (unlike other devices in
mkmerakifw.c) which uses a different header structure to define the load
offsets for the image.

A thanks to Christian for helping implement this properly.

Cc: Christian Lamparter <chunkeey@gmail.com>
Signed-off-by: Chris Blake <chrisrblake93@gmail.com>
8 years agolantiq: use dwc2 by default on danube
Ben Mulvihill [Tue, 8 Nov 2016 21:03:26 +0000 (22:03 +0100)]
lantiq: use dwc2 by default on danube

Use dwc2 by default on all danube boards.

Signed-off-by: Ben Mulvihill <ben.mulvihill@gmail.com>
8 years agolantiq: dwc2 parameters for danube
Ben Mulvihill [Tue, 8 Nov 2016 21:03:14 +0000 (22:03 +0100)]
lantiq: dwc2 parameters for danube

Parameters for dwc2 on lantiq.

A separate dwc2_core_params structure is defined for danube because danube
fifo sizes are large enough to be autodetected. This is not the case on
arx and vrx.

Signed-off-by: Ben Mulvihill <ben.mulvihill@gmail.com>
8 years agolantiq: device tree bindings for dwc2 on danube
Ben Mulvihill [Tue, 8 Nov 2016 21:03:03 +0000 (22:03 +0100)]
lantiq: device tree bindings for dwc2 on danube

Device tree binding for dwc2 usb driver on danube.
Leave old ifxhcd-danube driver as an alternative.

Also adds dr_mode = "host" to eliminate warning on boot.

Signed-off-by: Ben Mulvihill <ben.mulvihill@gmail.com>
8 years agolantiq: initialise dwc2 on danube
Ben Mulvihill [Tue, 8 Nov 2016 21:02:42 +0000 (22:02 +0100)]
lantiq: initialise dwc2 on danube

Initialise dwc2 usb driver on danube boards as well as ar9 and vr9.

Signed-off-by: Ben Mulvihill <ben.mulvihill@gmail.com>
8 years agoapm821xx: Add support for the Cisco Meraki MX60/MX60W
Chris Blake [Wed, 16 Nov 2016 15:38:07 +0000 (09:38 -0600)]
apm821xx: Add support for the Cisco Meraki MX60/MX60W

This patch adds support for the Cisco Meraki MX60/MX60W Security
Appliance. Flashing information can be found at
https://github.com/riptidewave93/LEDE-MX60

Specs are as follows:
AppliedMicro APM82181 SoC at 800MHz
1GiB NAND - Samsung K9K8G08U0D
512MB DDR RAM - 4x Nanya NT5TU128M8GE-AC
Atheros AR8327-BL1A Gigabit Ethernet Switch
1x USB 2.0 Port

More info can be found at https://wiki.openwrt.org/toh/meraki/mx60

Cc: Christian Lamparter <chunkeey@gmail.com>
Signed-off-by: Chris Blake <chrisrblake93@gmail.com>
8 years agoramips: add support for WeVO W2914NS v2
perillamint [Fri, 18 Nov 2016 11:46:27 +0000 (20:46 +0900)]
ramips: add support for WeVO W2914NS v2

Signed-off-by: Yong-hyu Ban <perillamint@gentoo.moe>
8 years agoopenvpn: update to 2.3.13
Magnus Kroken [Thu, 17 Nov 2016 17:43:25 +0000 (18:43 +0100)]
openvpn: update to 2.3.13

Changelog: https://community.openvpn.net/openvpn/wiki/ChangesInOpenvpn23#OpenVPN2.3.13

Signed-off-by: Magnus Kroken <mkroken@gmail.com>
8 years agoar71xx: Fix switch config on Mikrotik RB450/G
João Chaínho [Fri, 18 Nov 2016 18:26:16 +0000 (18:26 +0000)]
ar71xx: Fix switch config on Mikrotik RB450/G

This patch fixes the ethernet switch initial config for Mikrotik RB450 and RB450G.
The previous version wrongly changed the RouterStation Pro config. This one creates a specific config for the RB450G and leaves the RouterStation Pro unchanged.

Signed-off-by: João Chaínho <joaochainho@gmail.com>
8 years agouboot-envtools: add 'dockstar' for kirkwood
Paul Wassi [Sat, 19 Nov 2016 12:09:48 +0000 (13:09 +0100)]
uboot-envtools: add 'dockstar' for kirkwood

Add board 'dockstar' to known fw_env-configurations.

Signed-off-by: Paul Wassi <p.wassi@gmx.at>
8 years agouboot-envtools: add support for YunCore CPE830
Piotr Dymacz [Sat, 8 Oct 2016 06:37:50 +0000 (08:37 +0200)]
uboot-envtools: add support for YunCore CPE830

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
8 years agoar71xx: add support for YunCore CPE830
Piotr Dymacz [Sat, 8 Oct 2016 01:36:35 +0000 (03:36 +0200)]
ar71xx: add support for YunCore CPE830

CPE830 is a clone of AP90Q, with different type of antenna (panel)
and additional 4 LEDs for WiFi signal level indication.

Use the same flash approach as for YunCore AP90Q.

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
8 years agouboot-envtools: add support for YunCore CPE870
Piotr Dymacz [Fri, 7 Oct 2016 23:25:03 +0000 (01:25 +0200)]
uboot-envtools: add support for YunCore CPE870

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
8 years agoar71xx: add support for YunCore CPE870
Piotr Dymacz [Fri, 7 Oct 2016 23:17:04 +0000 (01:17 +0200)]
ar71xx: add support for YunCore CPE870

YunCore CPE870 is an outdoor CPE/AP based on Atheros AR9341.
Short specification:

- 535/400/200 MHz (CPU/DDR/AHB)
- 2x 10/100 Mbps Ethernet, passive PoE support
- 64/128 MB of RAM (DDR2)
- 8 MB of FLASH
- 2T2R 2.4 GHz with external PA (SKY65174-21), up to 30 dBm
- internal 14 dBi panel antenna
- 8x LED, 1x button
- UART (JP1) header on PCB

Flash instruction (do it under U-Boot, using UART):

1. tftp 0x80060000 lede-ar71xx-generic-cpe870-squashfs-sysupgrade.bin
2. erase 0x9f020000 +$filesize
3. cp.b $fileaddr 0x9f020000 $filesize
4. setenv bootcmd "bootm 0x9f020000"
5. saveenv && reset

Vendor firmware access (login/password): Admin/5up

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
8 years agouboot-envtools: add support for YunCore AP90Q
Piotr Dymacz [Thu, 6 Oct 2016 00:51:41 +0000 (02:51 +0200)]
uboot-envtools: add support for YunCore AP90Q

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
8 years agoar71xx: add support for YunCore AP90Q
Piotr Dymacz [Thu, 6 Oct 2016 00:19:17 +0000 (02:19 +0200)]
ar71xx: add support for YunCore AP90Q

YunCore AP90Q is an outdoor CPE/AP based on Qualcomm/Atheros QCA9531 v2.
Short specification:

- 650/600/216 MHz (CPU/DDR/AHB)
- 2x 10/100 Mbps Ethernet, passive PoE support
- 64/128 MB of RAM (DDR2)
- 16 MB of FLASH
- 2T2R 2.4 GHz with external PA, up to 29 dBm
- 2x internal 5 dBi omni antennas
- 4x LED, 1x button
- UART (JP1) header on PCB

Flash instruction under U-Boot, using UART:

1. tftp 0x80060000 lede-ar71xx-generic-ap90q-squashfs-sysupgrade
2. erase 0x9f050000 +$filesize
3. cp.b $fileaddr 0x9f050000 $filesize
4. setenv bootcmd "bootm 0x9f050000"
5. saveenv && reset

Flash instruction under vendor fimrware, using telnet/SSH:

1. Connect PC with 192.168.1.x address to WAN port
2. Power up device, enter failsafe mode with button (no LED indicator!)
3. Change root password and reboot (mount_root, passwd ..., reboot -f)
4. Upload lede-ar71xx-generic-ap90q-squashfs-sysupgrade.bin to /tmp using SCP
5. Connect PC with 192.168.188.x address to LAN port, SSH to 192.168.188.253
6. Invoke:
- cd /tmp
- fw_setenv bootcmd "bootm 0x9f050000"
- mtd erase firmware
- mtd -r write lede-ar71xx-generic-ap90q-squashfs-sysupgrade.bin firmware

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
8 years agoar71xx: add support for COMFAST CF-E380AC v1 and v2
Piotr Dymacz [Mon, 14 Nov 2016 16:38:23 +0000 (17:38 +0100)]
ar71xx: add support for COMFAST CF-E380AC v1 and v2

COMFAST CF-E380AC v1/v2 is a ceiling mount AP with PoE
support, based on Qualcomm/Atheros QCA9558+QCA9880+AR8035.

There are two versions of this model, with different RAM
and U-Boot mtd partition sizes:
- v1: 128 MB of RAM, 128 KB U-Boot image size
- v2: 256 MB of RAM, 256 KB U-Boot image size

Version number is available only inside vendor GUI,
hardware and markings are the same.

Short specification:

- 720/600/200 MHz (CPU/DDR/AHB)
- 1x 10/100/1000 Mbps Ethernet, with PoE support
- 128 or 256 MB of RAM (DDR2)
- 16 MB of FLASH
- 3T3R 2.4 GHz, with external PA (SE2576L), up to 28 dBm
- 3T3R 5 GHz, with external PA (SE5003L1), up to 30 dBm
- 6x internal antennas
- 1x RGB LED, 1x button
- UART (T11), LEDs/GPIO (J7) and USB (T12) headers on PCB
- external watchdog (Pericon Technology PT7A7514)

Flash instruction:

Original firmware is based on OpenWrt.
Use sysupgrade image directly in vendor GUI.

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
8 years agoar71xx: add support for COMFAST CF-E320N v2 and CF-E520N/CF-E530N
Piotr Dymacz [Wed, 5 Oct 2016 00:24:58 +0000 (02:24 +0200)]
ar71xx: add support for COMFAST CF-E320N v2 and CF-E520N/CF-E530N

As we already have support for CF-E316N v2 and many devices from
this vendor look similar, the support was included in existing
mach-*.c file, with few cleanups and fixes.

All 3 devices are based on Qualcomm/Atheros QCA9531 v2.

COMFAST CF-E320N v2 is a ceiling mount AP with PoE support.
Short specification:

- 650/393/216 MHz (CPU/DDR/AHB)
- 2x 10/100 Mbps Ethernet, both with PoE support
- 64 MB of RAM (DDR2)
- 16 MB of FLASH
- 2T2R 2.4 GHz, up to 22 dBm
- 2x internal antennas
- 1x RGB LED, 1x button
- UART (J1), GPIO (J9) and USB (J2) headers on PCB
- external watchdog (Pericon Technology PT7A7514)

COMFAST CF-E520N/CF-E530N are in-wall APs with USB and PoE support.
They seem to have different only the front panel.
Short specification:

- 650/393/216 MHz (CPU/DDR/AHB)
- 2x 10/100 Mbps Ethernet, WAN with PoE support
- 1x USB 2.0 (in CF-E520N covered by panel, available on PCB)
- 32 MB of RAM (DDR2)
- 8 MB of FLASH
- 2T2R 2.4 GHz, up to 22 dBm
- 2x internal antennas
- 1x LED, 1x button
- UART (J1) headers on PCB

Flash instruction:

Original firmware is based on OpenWrt.
Use sysupgrade image directly in vendor GUI.

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
8 years agoipq806x: c2600: change wan and lan led trigger to swconfig port
Henryk Heisig [Thu, 17 Nov 2016 23:24:52 +0000 (00:24 +0100)]
ipq806x: c2600: change wan and lan led trigger to swconfig port

Signed-off-by: Henryk Heisig <hyniu@o2.pl>
8 years agoipq806x: enable swconfig LED support
Henryk Heisig [Thu, 17 Nov 2016 23:20:09 +0000 (00:20 +0100)]
ipq806x: enable swconfig LED support

Signed-off-by: Henryk Heisig <hyniu@o2.pl>
8 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>
8 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>