4 years agokernel: revert a faulty upstream commit that was added with the spi-nor/m25p80 backport (fixes #20971)
nbd []
kernel: revert a faulty upstream commit that was added with the spi-nor/m25p80 backport (fixes #20971)

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47664 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agoar71xx: switch network and led defaults to board detection framework
jow []
ar71xx: switch network and led defaults to board detection framework

Also translate ucidef_add_switch_vlan() to ucidef_add_switch_ports() for better
switch topology mapping and improved default config generation.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47663 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agomwlwifi: update to latest version
kaloz []
mwlwifi: update to latest version

Signed-off-by: Imre Kaloz <kaloz@openwrt.org>



git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47661 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agobase-files: uci-defaults-new, config_generate: support for gpio leds
jow []
base-files: uci-defaults-new, config_generate: support for gpio leds

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47660 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agobase-files: config_generate: regroup led generator code
jow []
base-files: config_generate: regroup led generator code

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47659 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agobase-files: uci-defaults-new: remove ucidef_set_led_interface()
jow []
base-files: uci-defaults-new: remove ucidef_set_led_interface()

The only user was the hg255d board and config_generate did not even emit
proper uci for it.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47658 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agoramips: hg255d: replace ucidef_set_led_interface() with ucidef_set_led_netdev()
jow []
ramips: hg255d: replace ucidef_set_led_interface() with ucidef_set_led_netdev()

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47657 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agobase-files: config_generate: support rssi leds
jow []
base-files: config_generate: support rssi leds

Add support for emitting rssi monitor and led configuration sections.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47656 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agobase-files: uci-defaults-new: fix storing rssi leds and triggers in board.json
jow []
base-files: uci-defaults-new: fix storing rssi leds and triggers in board.json

Remove extra nesting of rssi leds in the led object and move rssi monitor
declaration to its own object.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47655 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agobase-files: config_generate: reformat for better readability and quote variables
jow []
base-files: config_generate: reformat for better readability and quote variables

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47654 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agobcm53xx: update bcm53xxspiflash to match spi-nor backported from 4.4-rc1
rmilecki []
bcm53xx: update bcm53xxspiflash to match spi-nor backported from 4.4-rc1

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47653 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agobase-files: uci-defaults-new: properly quote variables
jow []
base-files: uci-defaults-new: properly quote variables

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47652 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agolantiq: add dsl-vrx200-firmware-xdsl-b: add Annex B version of VRX200 DSL firmware
hauke []
lantiq: add dsl-vrx200-firmware-xdsl-b: add Annex B version of VRX200 DSL firmware

This adds the Annex B version of the VRX200 firmware.

Signed-off-by: Hauke Mehrtens <hauke.mehrtens@lantiq.com>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47650 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agolantiq: dsl-vrx200-firmware-xdsl-a: rename to VRX200 and add annex a
hauke []
lantiq: dsl-vrx200-firmware-xdsl-a: rename to VRX200 and add annex a

This just renamed the package to indicate that this is the annex a version.

Signed-off-by: Hauke Mehrtens <hauke.mehrtens@lantiq.com>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47649 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agobase-files: config_generate: handle switch port attributes and better group json_select
jow []
base-files: config_generate: handle switch port attributes and better group json_select

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47648 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agobase-files: config_generate: do not remove previously generated interfaces
jow []
base-files: config_generate: do not remove previously generated interfaces

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47647 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agobase-files: config_generate: properly handle multiple switches
jow []
base-files: config_generate: properly handle multiple switches

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47646 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agobase-files: uci-defaults-new: add ucidef_add_switch_port_attr() helper
jow []
base-files: uci-defaults-new: add ucidef_add_switch_port_attr() helper

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47645 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agobase-files: uci-defaults-new: whitespace cleanup
jow []
base-files: uci-defaults-new: whitespace cleanup

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47644 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agobase-files: uci-defaults-new: don't store switch attr numbers as strings
jow []
base-files: uci-defaults-new: don't store switch attr numbers as strings

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47643 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agogcc: make colors optional based on the GCC_COLORS env var
nbd []
gcc: make colors optional based on the GCC_COLORS env var

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47642 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agoRevert "ar71xx: migrate led and network setup to board detection framework"
jow []
Revert "ar71xx: migrate led and network setup to board detection framework"

The board detect code needs more fixes in order to work properly.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47641 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agoralink: renable nand support
blogic []
ralink: renable nand support

CONFIG_MTK_MTD_NAND was incorrectly disabled by r47619.

Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47640 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agobase-files: config_generate: support autogenerating vlans
jow []
base-files: config_generate: support autogenerating vlans

Add support for generating vlans solely from the port layout description
given through ucidef_add_switch_ports().

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47639 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agobase-files: add ucidef_set_interface_wan() and ucidef_add_switch_ports()
jow []
base-files: add ucidef_set_interface_wan() and ucidef_add_switch_ports()

Add further helper functions to uci-defaults-new.sh for easier declarations
of complex switch layouts.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47638 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agolantiq: ltq-vdsl-app: update to version 4.16.6.3
blogic []
lantiq: ltq-vdsl-app: update to version 4.16.6.3

In this upstream dsl driver app version the autoboot is deactivated activate
it again.
In addition to the update this also fixes some build warnings and makes it
use the same configure option as used in Lantiq UGW.

Signed-off-by: Hauke Mehrtens <hauke.mehrtens@lantiq.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47637 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agolantiq: ltq-vdsl-app: add dsl_cpe_pipe.sh
blogic []
lantiq: ltq-vdsl-app: add dsl_cpe_pipe.sh

Signed-off-by: Hauke Mehrtens <hauke.mehrtens@lantiq.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47636 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agolantiq: ltq-vdsl: update to version 4.16.6.3
blogic []
lantiq: ltq-vdsl: update to version 4.16.6.3

In addition to the update this also fixes some build warnings and makes it
use the same configure option as used in Lantiq UGW.

Signed-off-by: Hauke Mehrtens <hauke.mehrtens@lantiq.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47635 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agolantiq: ltq-vdsl-mei: update to version 1.4.8.5
blogic []
lantiq: ltq-vdsl-mei: update to version 1.4.8.5

In addition to the update this also fixes some build warnings and makes it
use the same configure option as used in Lantiq UGW.

Signed-off-by: Hauke Mehrtens <hauke.mehrtens@lantiq.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47634 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agolantiq: ltq-vdsl-mei: register char device automatically
blogic []
lantiq: ltq-vdsl-mei: register char device automatically

Signed-off-by: Hauke Mehrtens <hauke.mehrtens@lantiq.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47633 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agolantiq: ltq-vdsl-mei: add mei_cpe_drv_test application
blogic []
lantiq: ltq-vdsl-mei: add mei_cpe_drv_test application

This application helps to debug some internal problems in the MEI driver.

Signed-off-by: Hauke Mehrtens <hauke.mehrtens@lantiq.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47632 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agolantiq: add dsl-vr9-firmware-xdsl
blogic []
lantiq: add dsl-vr9-firmware-xdsl

This adds the DSL firmware for the VR9/XRX200 SoCs.

Signed-off-by: Hauke Mehrtens <hauke.mehrtens@lantiq.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47631 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agolantiq: ltq-ifxos: fix build warnings
blogic []
lantiq: ltq-ifxos: fix build warnings

This makes the build script use the same configure options as used by
Lantiq UGW and fixes some warnings and cleans up some of the patches.

Signed-off-by: Hauke Mehrtens <hauke.mehrtens@lantiq.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47630 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agoqos-scripts: remove faulty fallback of the device variable to eth0 (#20834)
nbd []
qos-scripts: remove faulty fallback of the device variable to eth0 (#20834)

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47629 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agolantiq: fix compile error
hauke []
lantiq: fix compile error

This fixes a problem introduced in r47624.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47628 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agoramips: fix typo in image makefile (#18712)
nbd []
ramips: fix typo in image makefile (#18712)

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47627 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agokernel: disable software protection bits for macronix flash chips at init
nbd []
kernel: disable software protection bits for macronix flash chips at init

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47626 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agoath10k: fix memory allocation issues on platforms where DMA coherent memory is constrained
nbd []
ath10k: fix memory allocation issues on platforms where DMA coherent memory is constrained

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47625 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agokernel: update m25p80 in 4.1 to the latest version from 4.4-rc1
nbd []
kernel: update m25p80 in 4.1 to the latest version from 4.4-rc1

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47624 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agobase-files: show hint when JFFS2-partition is full and overlayfs mounted read-only
blogic []
base-files: show hint when JFFS2-partition is full and overlayfs mounted read-only

since r45833 and r45848 the overlayfs is automatically mounted read-only
(and blocks remounts as r/w) when JFFS2 is full. see ticket #19564

because of this normal file deletion is not possible anymore.
if a user logins interactively (e.g. SSH) show a hint for this,
that files must be removed in /overlay/upper/...

v2: fix subject line

Signed-off-by: Bastian Bittorf <bittorf@bluebottle.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47623 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agoar71xx: add GL-Domino Pi support V3
blogic []
ar71xx: add GL-Domino Pi support V3

This is the patch for GL-Domino Pi V3. Updated against the latest trunk.

Signed-off-by: alzhao<alzhao@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47622 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agoar71xx: add GL-AR300 support V3
blogic []
ar71xx: add GL-AR300 support V3

This is the patch for GL-AR300 V3, tested against the latest trunk.

Signed-off-by: alzhao<alzhao@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47621 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agoar71xx: add GL-AR150 support V3
blogic []
ar71xx: add GL-AR150 support V3

This is the 3rd version. Modified against the latest trunk.

Signed-off-by: alzhao<alzhao@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47620 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agoralink: add support for netis WF-2881
blogic []
ralink: add support for netis WF-2881

netis WF-2881 is an MT7621AT based router with MT7602EN, MT7612EN.
It has 128MB DDR3, 128MB SLC NAND FLASH, 5-port Gbps switch and 1x USB 3.0.
The following patch adds support for this device.

this device only works on top of UBI.

Tested and working:
* ethernet
* both WiFi radios
* USB 3.0
* buttons (reset button)
* ethernet switch and USB diag LEDs
* UART
* GPIOs
* sysupgrade

Tested and not working
* failsafe

Signed-off-by: YounJae Rho <luxflow@live.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47619 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agooxnas: set irq of usb&sata to cpu1
blogic []
oxnas: set irq of usb&sata to cpu1

V2:
The KD-20 also has USB 3.0.I modiy the set_irq_affinity usb 2 to set_irq_affinity ?hci_hcd 2 to bind usb 2.0&3.0 to cpu1.

Signed-off-by: Shonn Lu <countrysideboy@qq.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47618 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agoramips: add support for Youku YK1
blogic []
ramips: add support for Youku YK1

Changes since V1:
I resend this patch for current trunk.The former V1 patch is for CC branch.

Signed-off-by: Shonn Lu <countrysideboy@qq.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47617 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agoramips: add second spi master sysclk
blogic []
ramips: add second spi master sysclk

for mt7620, rt3883 and rt5350

Signed-off-by: Michael Lee <igvtee@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47616 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agowpa-supplicant: Get 802.11s ssid information from option mesh_id
blogic []
wpa-supplicant: Get 802.11s ssid information from option mesh_id

The scripts for authsae and iw use the option mesh_id to get set the
"meshid" during a mesh join. But the script for wpad-mesh ignores the
option mesh_id and instead uses the option ssid. Unify the mesh
configuration and let the wpa_supplicant script also use the mesh_id from
the configuration.

Signed-off-by: Sven Eckelmann <sven@open-mesh.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47615 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agoauthsae: Use kbit/s as mcast_rate unit like wpad
blogic []
authsae: Use kbit/s as mcast_rate unit like wpad

The OpenWrt wireless configuration for mcast_rate is defined as Kbit/s when
using wpa_supplicant for IBSS/802.11s and iw for unencrypted IBSS/802.11s.
But when using authsae, the unit for the same option is redefined as
Mbit/s. Better use the same unit for this option independent of the backend
which is used.

Old values for mcast_rate (< 1000) are still interpreted Mbit/s to avoid
problems during upgrades from older versions.

Signed-off-by: Sven Eckelmann <sven@open-mesh.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47614 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agoauthsae: Fix meshid in authsae config
blogic []
authsae: Fix meshid in authsae config

The variable $mesh_id was never defined in authsae_start_interface and thus
the option meshid in $authsae_conf_file was always set to "".

Signed-off-by: Sven Eckelmann <sven@open-mesh.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47613 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agoar71xx: Build initramfs by default for Mikrotik devices
blogic []
ar71xx: Build initramfs by default for Mikrotik devices

Signed-off-by: Baptiste Jonglez <git@bitsofnetworks.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47612 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agouboot-imx6: fix build with gcc-5
blogic []
uboot-imx6: fix build with gcc-5

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47611 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agobrcm2708: fix multi-device image generation
blogic []
brcm2708: fix multi-device image generation

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47610 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agobase-files: config_generate: honour port_mask property (#20963)
jow []
base-files: config_generate: honour port_mask property (#20963)

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47609 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agoipq806x: another fix to the stmmac DMA configuration to fix remaining data corruption issues
nbd []
ipq806x: another fix to the stmmac DMA configuration to fix remaining data corruption issues

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47603 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agoubox: update ubox to version 2015-11-22
hauke []
ubox: update ubox to version 2015-11-22

This version fixes a potential uncontrolled format string problem. This
makes it possible to activate the format security check.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47600 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agomountd: update mountd to version 2015-11-22
hauke []
mountd: update mountd to version 2015-11-22

This version fixes a potential uncontrolled format string problem. This
makes it possible to activate the format security check.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47599 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agofstools: update fstools to version 2015-11-22
hauke []
fstools: update fstools to version 2015-11-22

This version fixes a potential uncontrolled format string problem. This
makes it possible to activate the format security check.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47598 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agoRevert "mvebu: migrate led and network setup to board detection framework"
jow []
Revert "mvebu: migrate led and network setup to board detection framework"

Roll back the mvebu conversion to board detection code as we need to fix
some strcutural issues first.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47597 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agoar71xx: fix network default config of the TEW-732BR
jow []
ar71xx: fix network default config of the TEW-732BR

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47595 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agoipq806x: fix a nasty stmmac data corruption bug caused by faulty DMA initialization
nbd []
ipq806x: fix a nasty stmmac data corruption bug caused by faulty DMA initialization

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47594 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agoipq806x: update stmmac to the version from linux 4.3
nbd []
ipq806x: update stmmac to the version from linux 4.3

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47593 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agoath10k-firmware: add board-2.bin for qca99x0
nbd []
ath10k-firmware: add board-2.bin for qca99x0

Keep board.bin as fallback for devices without OTP that load caldata
from flash

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47592 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agobuild: add support for choosing a different url filename part than the output file
nbd []
build: add support for choosing a different url filename part than the output file

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47591 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agobase-files: use the correct path in case of modified preinit options
nbd []
base-files: use the correct path in case of modified preinit options

If the user sets any preinit options in .config, the wrong path may get
applied due to wrong default value in image-config.in and due to Makefile
writing also the unchanged options into 00_preinit.conf

Modify the default path in image-config.in to match the current default
path set by r47080. Also modify the fall-back default in Makefile.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47590 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agolinux: add support of Synopsys ARC770-based boards
nbd []
linux: add support of Synopsys ARC770-based boards

This patch introduces support of new boards with ARC cores.

[1] Synopsys SDP board
This is a new-generation development board from Synopsys that
consists of base-board and CPU tile-board (which might have a real
ASIC or FPGA with CPU image).
It sports a lot of DesignWare peripherals like GMAC, USB, SPI, I2C
etc and is intended to be used for early development of ARC-based
products.

[2] nSIM
This is a virtual board implemented in Synopsys proprietary
software simulator (even though available for free for open source
community). This board has only serial port as a peripheral and so
it is meant to be used for runtime testing which is especially
useful during bring-up of new tools and platforms.
What's also important ARC cores are very configurable so there're
many variations of options like cache sizes, their line lengths,
additional hardware blocks like multipliers, dividers etc. And this
board could be used to make sure built software still runs on
different HW configurations.

Cc: Felix Fietkau <nbd@openwrt.org>
Cc: Jo-Philipp Wich <jow@openwrt.org>
Cc: Jonas Gorski <jogo@openwrt.org>
Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47589 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agokernel: mtd: Backport GD25Q128B support to 3.18
nbd []
kernel: mtd: Backport GD25Q128B support to 3.18

Support is present in 3.19 and above as kernel commit:
fcc87a95195236b0935183361a72e4a98bf577d8

Changes to other existing patches are a result of "make target/linux/refresh".

Signed-off-by: Srdjan Rosic <srdjan.rosic@gmail.com>
Signed-off-by: Srdjan Rosic <rosic@google.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47588 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agousign: Revert r47582 "usign: activate format-security checks"
hauke []
usign: Revert r47582 "usign: activate format-security checks"

I accidentally deactivated it. This should be set to active it in any case
independently what was set in the user config.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47587 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agoiperf: activate format-security checks
hauke []
iperf: activate format-security checks

This patch was taken from debian.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47586 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agogettext-full: activate format-security checks
hauke []
gettext-full: activate format-security checks

This patch was taken from upstream libcroco

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47585 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agogettext-full: update to version 0.19.6
hauke []
gettext-full: update to version 0.19.6

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47584 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agopx5g-standalone: activate format-security checks
hauke []
px5g-standalone: activate format-security checks

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47583 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agousign: activate format-security checks
hauke []
usign: activate format-security checks

This still compiles with format-security checks activated.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47582 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agoxfsprogs: activate format-security checks
hauke []
xfsprogs: activate format-security checks

This patch was taken from upstream.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47581 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agoramips: update dtsi files to support second spi device
blogic []
ramips: update dtsi files to support second spi device

Signed-off-by: Michael Lee <igvtee@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47580 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agoramips: use transfer_one instead of transfer_one_message on rt2880 spi
blogic []
ramips: use transfer_one instead of transfer_one_message on rt2880 spi

* use kernel buildin transfer_one_message. we only need to implement
transfer_one and set_cs function
* should support use gpio as cs pin
* deselected the spi device when setup and add debug info
* only reset device when first driver probe

Signed-off-by: Michael Lee <igvtee@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47579 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agoramips: move rt2880 spi clock and reset init code to spi_prepare_message
blogic []
ramips: move rt2880 spi clock and reset init code to spi_prepare_message

before spi transfer. use spi_prepare_message to setup spi hardware. it
will setup MSB, spi mode and speed
remove sys_freq member and speed check code

Signed-off-by: Michael Lee <igvtee@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47578 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agoramips: improve rt2880 spi setup
blogic []
ramips: improve rt2880 spi setup

* check clock rate, SPI mode, and word sizes
* setup spi polarity
* enable spi1 hw if need

Signed-off-by: Michael Lee <igvtee@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47577 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agoramips: clean up rt2880 spi probe/remove
blogic []
ramips: clean up rt2880 spi probe/remove

* fill struct according to the member order
* add error clean up
* set min/max spi speed. so we don't need to check again

Signed-off-by: Michael Lee <igvtee@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47576 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agoramips: improve rt2880 spi wait ready function
blogic []
ramips: improve rt2880 spi wait ready function

use loops_per_jiffy, spi clock speed and write bytes to get the
spi loop count. if loop to 0 than spi operation timeout.
remove usleep. we only write 1 byte to spi device. use busy loop
would be better.

Signed-off-by: Michael Lee <igvtee@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47575 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agoramips: remove rt2880 spi lock and clean bit operation
blogic []
ramips: remove rt2880 spi lock and clean bit operation

Signed-off-by: Michael Lee <igvtee@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47574 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agoramips: add rt2880/mt7620 spi register defines
blogic []
ramips: add rt2880/mt7620 spi register defines

Signed-off-by: Michael Lee <igvtee@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47573 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agobrcm2708: add device detection and use it for network, leds and preinit
blogic []
brcm2708: add device detection and use it for network, leds and preinit

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47572 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agoconntrack-tools: create /etc/conntrackd directory
blogic []
conntrack-tools: create /etc/conntrackd directory

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47571 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agoconntrack-tools: use INSTALL_DIR once
blogic []
conntrack-tools: use INSTALL_DIR once

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47570 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agotools/scons: update to 2.4.1
blogic []
tools/scons: update to 2.4.1

Update scons to 2.4.1.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47569 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agotools/cmake: update to 3.4.0
blogic []
tools/cmake: update to 3.4.0

Update cmake to 3.4.0.
Refresh patches.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47568 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agokernel/generic: 3.18, 4.y: Add support for Quectel EC20 Mini PCIe module
blogic []
kernel/generic: 3.18, 4.y: Add support for Quectel EC20 Mini PCIe module

* both patches (qcserial/qmi_wwan) were submitted upstream[1,2]
* build tested on 3.18 and 4.1
* run tested on imx6 platform with 4.1

1. http://article.gmane.org/gmane.linux.usb.general/132998
2. http://article.gmane.org/gmane.linux.usb.general/133113

Signed-off-by: Petr Štetiar <ynezz@true.cz>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47567 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agolantiq: add phy led config support over devicetree bindings
blogic []
lantiq: add phy led config support over devicetree bindings

This patch adds the posibility to config the led behaviour of the lantiq phys
over the devicetree bindings.It patches the 0023-NET-PHY-adds-driver-for-lantiq-PHY11G
for 3.18 and 4.1. I have also added a register description overview for
applicable values. This goes to the documentation folder in the linux kernel.

Signed-off-by: Florian Eckert <Eckert.Florian@googlemail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47566 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agoralink: add missing nand layer hack
blogic []
ralink: add missing nand layer hack

It turned out that mtk_nand driver uses some sophisticated accounting and a
general nand code must be patched.

This patch adds required read and erase calls to a general nand code. I
used a code for re6500 released by Linksys as a reference.

All required operations (erase, write and read) are usable. However I found
that jffs2 filesystem can be created only on top of a ubi volume. I tried
to create jffs2 directly on mtd device but pages with clean markers are
became uncorrectable.

Signed-off-by: Kirill Berezin <fyiwdt@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47565 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agokernel: fix building RTC drivers
blogic []
kernel: fix building RTC drivers

All RTC drivers require the kernel to be built with CONFIG_RTC_CLASS=y.
Set it accordingly.

Tested only with DS1307.

Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47564 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agolantiq: tweak DWC2 default parameters
blogic []
lantiq: tweak DWC2 default parameters

This patch improves the default configuration of DWC2 on lantiq SoCs
somewhat:
* Set maximum packet count to largest allowed value by the DWC2 (511)
* Use 16-bit DMA bursts
* Divide fifo buffers more evenly

Default fifo buffer sizes from original ltq-hcd driver seem really
irrational. For example according to DWC2 data book rxfifo size of 240
will not fit even a single full length USB packet. On the other hand
non-periodic tx fifo size of 240 is more than enough to fit one complete
packet.

Change the sizes around to improve the situation and to fix some issues
especially with isochronous USB transfers.

Signed-off-by: Antti Seppälä <a.seppala@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47563 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agobrcm2708: enable hard float ABI
blogic []
brcm2708: enable hard float ABI

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47562 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agobrcm2708: add support for multi-device images
blogic []
brcm2708: add support for multi-device images

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47561 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agobrcm2708: rename image device definition
blogic []
brcm2708: rename image device definition

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47560 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agobrcm2708: revert sd image extension to .img
blogic []
brcm2708: revert sd image extension to .img

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47559 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agobrcm2708: simplify gzip image generation
blogic []
brcm2708: simplify gzip image generation

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47558 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agoramips: init usb power for Lenovo Y1S
blogic []
ramips: init usb power for Lenovo Y1S

Signed-off-by: Shonn Lu <countrysideboy@qq.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47557 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agomac80211: fix autoprobing of mt7601u driver
blogic []
mac80211: fix autoprobing of mt7601u driver

Strigng passed to autoprobing script should match
module's name. Currently that string is missing trailing "u".

With that change mt7601u driver really gets autoloaded on
USB Wi-Fi dongle insertion:
------------------>8---------------
[ 0.930000] hub 2-0:1.0: USB hub found
[ 0.940000] hub 2-0:1.0: 1 port detected
[ 1.150000] usb 1-1: new high-speed USB device number 2 using
ehci-platform
[ 1.720000] init: - preinit -
Detected arc-sdp // Synopsys AXS101 Development Board
[ 1.810000] random: mktemp urandom read with 3 bits of entropy
available
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug
level
[ 4.940000] procd: - early -
[ 5.540000] procd: - ubus -
[ 6.550000] procd: - init -
Please press Enter to activate this console.
[ 7.160000] Loading modules backported from Linux version
master-2015-10-26-0-g28c26cb
[ 7.170000] Backport generated by backports.git
backports-20150903-4-g12cf266
[ 7.200000] cfg80211: World regulatory domain updated:
[ 7.230000] cfg80211: DFS Master region: unset
[ 7.230000] cfg80211: (start_freq - end_freq @ bandwidth),
(max_antenna_gain, max_eirp), (dfs_cac_time)
[ 7.250000] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz),
(N/A, 2000 mBm), (N/A)
[ 7.270000] cfg80211: (2457000 KHz - 2482000 KHz @ 40000 KHz),
(N/A, 2000 mBm), (N/A)
[ 7.270000] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz),
(N/A, 2000 mBm), (N/A)
[ 7.290000] cfg80211: (5170000 KHz - 5250000 KHz @ 80000 KHz,
160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
[ 7.290000] cfg80211: (5250000 KHz - 5330000 KHz @ 80000 KHz,
160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
[ 7.310000] cfg80211: (5490000 KHz - 5730000 KHz @ 160000 KHz),
(N/A, 2000 mBm), (0 s)
[ 7.310000] cfg80211: (5735000 KHz - 5835000 KHz @ 80000 KHz),
(N/A, 2000 mBm), (N/A)
[ 7.330000] cfg80211: (57240000 KHz - 63720000 KHz @ 2160000 KHz),
(N/A, 0 mBm), (N/A)
[ 7.470000] usb 1-1: reset high-speed USB device number 2 using
ehci-platform
[ 7.620000] mt7601u 1-1:1.0: ASIC revision: 76010001 MAC revision:
76010500
[ 7.630000] mt7601u 1-1:1.0: Firmware Version: 0.1.00 Build: 7640
Build time: 201302052146____
[ 8.040000] mt7601u 1-1:1.0: Warning: unsupported EEPROM version 0d
[ 8.050000] mt7601u 1-1:1.0: EEPROM ver:0d fae:00
[ 8.050000] mt7601u 1-1:1.0: EEPROM country region 01 (channels 1-13)
[ 8.320000] usbcore: registered new interface driver mt7601u
------------------>8---------------

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Dirk Neukirchen <dirkneukirchen@web.de>
Cc: Felix Fietkau <nbd@openwrt.org>
Cc: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47556 3c298f89-4303-0410-b956-a3cf2f4a3e73

4 years agoar71xx: fix the SingleProfile kernel size limit for dLAN devices
blogic []
ar71xx: fix the SingleProfile kernel size limit for dLAN devices

it ends up as $(2) of CatFiles and must be a plain decimal value.

Signed-off-by: Günther Kelleter <guenther.kelleter@devolo.de>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47555 3c298f89-4303-0410-b956-a3cf2f4a3e73

comments