oweals/openwrt.git
8 years agoprocd: update to latest git HEAD
John Crispin [Sat, 28 Nov 2015 23:25:04 +0000 (23:25 +0000)]
procd: update to latest git HEAD

this adds a lot of ujail cleanups

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

8 years agomac80211: rt2x00: fix WARN_ON_ONCE() caused by inbalanced set/clear of beacon enable bit
John Crispin [Sat, 28 Nov 2015 23:24:59 +0000 (23:24 +0000)]
mac80211: rt2x00: fix WARN_ON_ONCE() caused by inbalanced set/clear of beacon enable bit

Signed-off-by: evaxige <evaxige@qq.com>
SVN-Revision: 47668

8 years agoramips: adapt VoCore to new second spi device code
John Crispin [Sat, 28 Nov 2015 23:24:52 +0000 (23:24 +0000)]
ramips: adapt VoCore to new second spi device code

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

8 years agoramips: add second SPI clocks
John Crispin [Sat, 28 Nov 2015 23:24:40 +0000 (23:24 +0000)]
ramips: add second SPI clocks

These clocks were missing in the changes introduced in r47573-47580

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

8 years agokernel: add fix for missing include in spi-nor.h (#20973)
Rafał Miłecki [Thu, 26 Nov 2015 17:13:05 +0000 (17:13 +0000)]
kernel: add fix for missing include in spi-nor.h (#20973)

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

8 years agokernel: revert a faulty upstream commit that was added with the spi-nor/m25p80 backpo...
Felix Fietkau [Thu, 26 Nov 2015 16:40:11 +0000 (16:40 +0000)]
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>
SVN-Revision: 47664

8 years agoar71xx: switch network and led defaults to board detection framework
Jo-Philipp Wich [Thu, 26 Nov 2015 14:42:28 +0000 (14:42 +0000)]
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>
SVN-Revision: 47663

8 years agomwlwifi: update to latest version
Imre Kaloz [Thu, 26 Nov 2015 14:08:37 +0000 (14:08 +0000)]
mwlwifi: update to latest version

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

8 years agobase-files: uci-defaults-new, config_generate: support for gpio leds
Jo-Philipp Wich [Thu, 26 Nov 2015 13:53:06 +0000 (13:53 +0000)]
base-files: uci-defaults-new, config_generate: support for gpio leds

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

8 years agobase-files: config_generate: regroup led generator code
Jo-Philipp Wich [Thu, 26 Nov 2015 13:53:02 +0000 (13:53 +0000)]
base-files: config_generate: regroup led generator code

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

8 years agobase-files: uci-defaults-new: remove ucidef_set_led_interface()
Jo-Philipp Wich [Thu, 26 Nov 2015 12:46:09 +0000 (12:46 +0000)]
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>
SVN-Revision: 47658

8 years agoramips: hg255d: replace ucidef_set_led_interface() with ucidef_set_led_netdev()
Jo-Philipp Wich [Thu, 26 Nov 2015 12:46:04 +0000 (12:46 +0000)]
ramips: hg255d: replace ucidef_set_led_interface() with ucidef_set_led_netdev()

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

8 years agobase-files: config_generate: support rssi leds
Jo-Philipp Wich [Thu, 26 Nov 2015 12:04:43 +0000 (12:04 +0000)]
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>
SVN-Revision: 47656

8 years agobase-files: uci-defaults-new: fix storing rssi leds and triggers in board.json
Jo-Philipp Wich [Thu, 26 Nov 2015 12:04:38 +0000 (12:04 +0000)]
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>
SVN-Revision: 47655

8 years agobase-files: config_generate: reformat for better readability and quote variables
Jo-Philipp Wich [Thu, 26 Nov 2015 12:04:32 +0000 (12:04 +0000)]
base-files: config_generate: reformat for better readability and quote variables

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

8 years agobcm53xx: update bcm53xxspiflash to match spi-nor backported from 4.4-rc1
Rafał Miłecki [Thu, 26 Nov 2015 11:43:16 +0000 (11:43 +0000)]
bcm53xx: update bcm53xxspiflash to match spi-nor backported from 4.4-rc1

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

8 years agobase-files: uci-defaults-new: properly quote variables
Jo-Philipp Wich [Thu, 26 Nov 2015 11:17:54 +0000 (11:17 +0000)]
base-files: uci-defaults-new: properly quote variables

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

9 years agolantiq: add dsl-vrx200-firmware-xdsl-b: add Annex B version of VRX200 DSL firmware
Hauke Mehrtens [Wed, 25 Nov 2015 22:36:38 +0000 (22:36 +0000)]
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>
SVN-Revision: 47650

9 years agolantiq: dsl-vrx200-firmware-xdsl-a: rename to VRX200 and add annex a
Hauke Mehrtens [Wed, 25 Nov 2015 22:33:17 +0000 (22:33 +0000)]
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>
SVN-Revision: 47649

9 years agobase-files: config_generate: handle switch port attributes and better group json_select
Jo-Philipp Wich [Wed, 25 Nov 2015 15:43:50 +0000 (15:43 +0000)]
base-files: config_generate: handle switch port attributes and better group json_select

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

9 years agobase-files: config_generate: do not remove previously generated interfaces
Jo-Philipp Wich [Wed, 25 Nov 2015 15:43:43 +0000 (15:43 +0000)]
base-files: config_generate: do not remove previously generated interfaces

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

9 years agobase-files: config_generate: properly handle multiple switches
Jo-Philipp Wich [Wed, 25 Nov 2015 15:43:33 +0000 (15:43 +0000)]
base-files: config_generate: properly handle multiple switches

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

9 years agobase-files: uci-defaults-new: add ucidef_add_switch_port_attr() helper
Jo-Philipp Wich [Wed, 25 Nov 2015 15:43:28 +0000 (15:43 +0000)]
base-files: uci-defaults-new: add ucidef_add_switch_port_attr() helper

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

9 years agobase-files: uci-defaults-new: whitespace cleanup
Jo-Philipp Wich [Wed, 25 Nov 2015 15:43:21 +0000 (15:43 +0000)]
base-files: uci-defaults-new: whitespace cleanup

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

9 years agobase-files: uci-defaults-new: don't store switch attr numbers as strings
Jo-Philipp Wich [Wed, 25 Nov 2015 15:43:15 +0000 (15:43 +0000)]
base-files: uci-defaults-new: don't store switch attr numbers as strings

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

9 years agogcc: make colors optional based on the GCC_COLORS env var
Felix Fietkau [Wed, 25 Nov 2015 14:12:44 +0000 (14:12 +0000)]
gcc: make colors optional based on the GCC_COLORS env var

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

9 years agoRevert "ar71xx: migrate led and network setup to board detection framework"
Jo-Philipp Wich [Wed, 25 Nov 2015 11:53:59 +0000 (11:53 +0000)]
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>
SVN-Revision: 47641

9 years agoralink: renable nand support
John Crispin [Tue, 24 Nov 2015 22:00:55 +0000 (22:00 +0000)]
ralink: renable nand support

CONFIG_MTK_MTD_NAND was incorrectly disabled by r47619.

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

9 years agobase-files: config_generate: support autogenerating vlans
Jo-Philipp Wich [Tue, 24 Nov 2015 21:16:38 +0000 (21:16 +0000)]
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>
SVN-Revision: 47639

9 years agobase-files: add ucidef_set_interface_wan() and ucidef_add_switch_ports()
Jo-Philipp Wich [Tue, 24 Nov 2015 21:16:35 +0000 (21:16 +0000)]
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>
SVN-Revision: 47638

9 years agolantiq: ltq-vdsl-app: update to version 4.16.6.3
John Crispin [Tue, 24 Nov 2015 20:41:30 +0000 (20:41 +0000)]
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>
SVN-Revision: 47637

9 years agolantiq: ltq-vdsl-app: add dsl_cpe_pipe.sh
John Crispin [Tue, 24 Nov 2015 20:41:18 +0000 (20:41 +0000)]
lantiq: ltq-vdsl-app: add dsl_cpe_pipe.sh

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

9 years agolantiq: ltq-vdsl: update to version 4.16.6.3
John Crispin [Tue, 24 Nov 2015 20:41:07 +0000 (20:41 +0000)]
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>
SVN-Revision: 47635

9 years agolantiq: ltq-vdsl-mei: update to version 1.4.8.5
John Crispin [Tue, 24 Nov 2015 20:40:59 +0000 (20:40 +0000)]
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>
SVN-Revision: 47634

9 years agolantiq: ltq-vdsl-mei: register char device automatically
John Crispin [Tue, 24 Nov 2015 20:40:49 +0000 (20:40 +0000)]
lantiq: ltq-vdsl-mei: register char device automatically

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

9 years agolantiq: ltq-vdsl-mei: add mei_cpe_drv_test application
John Crispin [Tue, 24 Nov 2015 20:40:40 +0000 (20:40 +0000)]
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>
SVN-Revision: 47632

9 years agolantiq: add dsl-vr9-firmware-xdsl
John Crispin [Tue, 24 Nov 2015 20:40:11 +0000 (20:40 +0000)]
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>
SVN-Revision: 47631

9 years agolantiq: ltq-ifxos: fix build warnings
John Crispin [Tue, 24 Nov 2015 20:39:59 +0000 (20:39 +0000)]
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>
SVN-Revision: 47630

9 years agoqos-scripts: remove faulty fallback of the device variable to eth0 (#20834)
Felix Fietkau [Tue, 24 Nov 2015 20:30:06 +0000 (20:30 +0000)]
qos-scripts: remove faulty fallback of the device variable to eth0 (#20834)

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

9 years agolantiq: fix compile error
Hauke Mehrtens [Tue, 24 Nov 2015 20:12:21 +0000 (20:12 +0000)]
lantiq: fix compile error

This fixes a problem introduced in r47624.

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

9 years agoramips: fix typo in image makefile (#18712)
Felix Fietkau [Tue, 24 Nov 2015 19:29:56 +0000 (19:29 +0000)]
ramips: fix typo in image makefile (#18712)

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

9 years agokernel: disable software protection bits for macronix flash chips at init
Felix Fietkau [Tue, 24 Nov 2015 19:09:56 +0000 (19:09 +0000)]
kernel: disable software protection bits for macronix flash chips at init

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

9 years agoath10k: fix memory allocation issues on platforms where DMA coherent memory is constr...
Felix Fietkau [Tue, 24 Nov 2015 19:09:45 +0000 (19:09 +0000)]
ath10k: fix memory allocation issues on platforms where DMA coherent memory is constrained

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

9 years agokernel: update m25p80 in 4.1 to the latest version from 4.4-rc1
Felix Fietkau [Tue, 24 Nov 2015 18:59:28 +0000 (18:59 +0000)]
kernel: update m25p80 in 4.1 to the latest version from 4.4-rc1

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

9 years agobase-files: show hint when JFFS2-partition is full and overlayfs mounted read-only
John Crispin [Tue, 24 Nov 2015 18:32:09 +0000 (18:32 +0000)]
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>
SVN-Revision: 47623

9 years agoar71xx: add GL-Domino Pi support V3
John Crispin [Tue, 24 Nov 2015 18:30:50 +0000 (18:30 +0000)]
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>
SVN-Revision: 47622

9 years agoar71xx: add GL-AR300 support V3
John Crispin [Tue, 24 Nov 2015 18:30:19 +0000 (18:30 +0000)]
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>
SVN-Revision: 47621

9 years agoar71xx: add GL-AR150 support V3
John Crispin [Tue, 24 Nov 2015 18:29:59 +0000 (18:29 +0000)]
ar71xx: add GL-AR150 support V3

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

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

9 years agoralink: add support for netis WF-2881
John Crispin [Tue, 24 Nov 2015 18:29:26 +0000 (18:29 +0000)]
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>
SVN-Revision: 47619

9 years agooxnas: set irq of usb&sata to cpu1
John Crispin [Tue, 24 Nov 2015 18:29:14 +0000 (18:29 +0000)]
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>
SVN-Revision: 47618

9 years agoramips: add support for Youku YK1
John Crispin [Tue, 24 Nov 2015 18:29:02 +0000 (18:29 +0000)]
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>
SVN-Revision: 47617

9 years agoramips: add second spi master sysclk
John Crispin [Tue, 24 Nov 2015 18:28:54 +0000 (18:28 +0000)]
ramips: add second spi master sysclk

for mt7620, rt3883 and rt5350

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

9 years agowpa-supplicant: Get 802.11s ssid information from option mesh_id
John Crispin [Tue, 24 Nov 2015 18:28:44 +0000 (18:28 +0000)]
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>
SVN-Revision: 47615

9 years agoauthsae: Use kbit/s as mcast_rate unit like wpad
John Crispin [Tue, 24 Nov 2015 18:28:35 +0000 (18:28 +0000)]
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>
SVN-Revision: 47614

9 years agoauthsae: Fix meshid in authsae config
John Crispin [Tue, 24 Nov 2015 18:28:19 +0000 (18:28 +0000)]
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>
SVN-Revision: 47613

9 years agoar71xx: Build initramfs by default for Mikrotik devices
John Crispin [Tue, 24 Nov 2015 18:28:05 +0000 (18:28 +0000)]
ar71xx: Build initramfs by default for Mikrotik devices

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

9 years agouboot-imx6: fix build with gcc-5
John Crispin [Tue, 24 Nov 2015 18:27:57 +0000 (18:27 +0000)]
uboot-imx6: fix build with gcc-5

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

9 years agobrcm2708: fix multi-device image generation
John Crispin [Tue, 24 Nov 2015 18:27:43 +0000 (18:27 +0000)]
brcm2708: fix multi-device image generation

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

9 years agobase-files: config_generate: honour port_mask property (#20963)
Jo-Philipp Wich [Tue, 24 Nov 2015 13:39:53 +0000 (13:39 +0000)]
base-files: config_generate: honour port_mask property (#20963)

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

9 years agoipq806x: another fix to the stmmac DMA configuration to fix remaining data corruption...
Felix Fietkau [Sun, 22 Nov 2015 21:59:22 +0000 (21:59 +0000)]
ipq806x: another fix to the stmmac DMA configuration to fix remaining data corruption issues

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

9 years agoubox: update ubox to version 2015-11-22
Hauke Mehrtens [Sun, 22 Nov 2015 21:21:09 +0000 (21:21 +0000)]
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>
SVN-Revision: 47600

9 years agomountd: update mountd to version 2015-11-22
Hauke Mehrtens [Sun, 22 Nov 2015 21:20:45 +0000 (21:20 +0000)]
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>
SVN-Revision: 47599

9 years agofstools: update fstools to version 2015-11-22
Hauke Mehrtens [Sun, 22 Nov 2015 21:20:02 +0000 (21:20 +0000)]
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>
SVN-Revision: 47598

9 years agoRevert "mvebu: migrate led and network setup to board detection framework"
Jo-Philipp Wich [Sun, 22 Nov 2015 20:52:10 +0000 (20:52 +0000)]
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>
SVN-Revision: 47597

9 years agoar71xx: fix network default config of the TEW-732BR
Jo-Philipp Wich [Sun, 22 Nov 2015 20:00:13 +0000 (20:00 +0000)]
ar71xx: fix network default config of the TEW-732BR

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

9 years agoipq806x: fix a nasty stmmac data corruption bug caused by faulty DMA initialization
Felix Fietkau [Sun, 22 Nov 2015 19:07:00 +0000 (19:07 +0000)]
ipq806x: fix a nasty stmmac data corruption bug caused by faulty DMA initialization

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

9 years agoipq806x: update stmmac to the version from linux 4.3
Felix Fietkau [Sun, 22 Nov 2015 19:06:51 +0000 (19:06 +0000)]
ipq806x: update stmmac to the version from linux 4.3

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

9 years agoath10k-firmware: add board-2.bin for qca99x0
Felix Fietkau [Sun, 22 Nov 2015 19:06:42 +0000 (19:06 +0000)]
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>
SVN-Revision: 47592

9 years agobuild: add support for choosing a different url filename part than the output file
Felix Fietkau [Sun, 22 Nov 2015 19:06:33 +0000 (19:06 +0000)]
build: add support for choosing a different url filename part than the output file

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

9 years agobase-files: use the correct path in case of modified preinit options
Felix Fietkau [Sun, 22 Nov 2015 19:06:20 +0000 (19:06 +0000)]
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>
SVN-Revision: 47590

9 years agolinux: add support of Synopsys ARC770-based boards
Felix Fietkau [Sun, 22 Nov 2015 19:06:07 +0000 (19:06 +0000)]
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>
SVN-Revision: 47589

9 years agokernel: mtd: Backport GD25Q128B support to 3.18
Felix Fietkau [Sun, 22 Nov 2015 19:05:53 +0000 (19:05 +0000)]
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>
SVN-Revision: 47588

9 years agousign: Revert r47582 "usign: activate format-security checks"
Hauke Mehrtens [Sun, 22 Nov 2015 14:56:17 +0000 (14:56 +0000)]
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>
SVN-Revision: 47587

9 years agoiperf: activate format-security checks
Hauke Mehrtens [Sun, 22 Nov 2015 14:18:40 +0000 (14:18 +0000)]
iperf: activate format-security checks

This patch was taken from debian.

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

9 years agogettext-full: activate format-security checks
Hauke Mehrtens [Sun, 22 Nov 2015 14:18:04 +0000 (14:18 +0000)]
gettext-full: activate format-security checks

This patch was taken from upstream libcroco

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

9 years agogettext-full: update to version 0.19.6
Hauke Mehrtens [Sun, 22 Nov 2015 14:17:11 +0000 (14:17 +0000)]
gettext-full: update to version 0.19.6

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

9 years agopx5g-standalone: activate format-security checks
Hauke Mehrtens [Sun, 22 Nov 2015 14:16:09 +0000 (14:16 +0000)]
px5g-standalone: activate format-security checks

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

9 years agousign: activate format-security checks
Hauke Mehrtens [Sun, 22 Nov 2015 14:15:34 +0000 (14:15 +0000)]
usign: activate format-security checks

This still compiles with format-security checks activated.

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

9 years agoxfsprogs: activate format-security checks
Hauke Mehrtens [Sun, 22 Nov 2015 14:13:47 +0000 (14:13 +0000)]
xfsprogs: activate format-security checks

This patch was taken from upstream.

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

9 years agoramips: update dtsi files to support second spi device
John Crispin [Sun, 22 Nov 2015 11:49:13 +0000 (11:49 +0000)]
ramips: update dtsi files to support second spi device

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

9 years agoramips: use transfer_one instead of transfer_one_message on rt2880 spi
John Crispin [Sun, 22 Nov 2015 11:49:04 +0000 (11:49 +0000)]
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>
SVN-Revision: 47579

9 years agoramips: move rt2880 spi clock and reset init code to spi_prepare_message
John Crispin [Sun, 22 Nov 2015 11:48:57 +0000 (11:48 +0000)]
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>
SVN-Revision: 47578

9 years agoramips: improve rt2880 spi setup
John Crispin [Sun, 22 Nov 2015 11:48:51 +0000 (11:48 +0000)]
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>
SVN-Revision: 47577

9 years agoramips: clean up rt2880 spi probe/remove
John Crispin [Sun, 22 Nov 2015 11:48:45 +0000 (11:48 +0000)]
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>
SVN-Revision: 47576

9 years agoramips: improve rt2880 spi wait ready function
John Crispin [Sun, 22 Nov 2015 11:48:34 +0000 (11:48 +0000)]
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>
SVN-Revision: 47575

9 years agoramips: remove rt2880 spi lock and clean bit operation
John Crispin [Sun, 22 Nov 2015 11:48:21 +0000 (11:48 +0000)]
ramips: remove rt2880 spi lock and clean bit operation

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

9 years agoramips: add rt2880/mt7620 spi register defines
John Crispin [Sun, 22 Nov 2015 11:48:10 +0000 (11:48 +0000)]
ramips: add rt2880/mt7620 spi register defines

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

9 years agobrcm2708: add device detection and use it for network, leds and preinit
John Crispin [Sun, 22 Nov 2015 08:04:37 +0000 (08:04 +0000)]
brcm2708: add device detection and use it for network, leds and preinit

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

9 years agoconntrack-tools: create /etc/conntrackd directory
John Crispin [Sat, 21 Nov 2015 21:26:20 +0000 (21:26 +0000)]
conntrack-tools: create /etc/conntrackd directory

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

9 years agoconntrack-tools: use INSTALL_DIR once
John Crispin [Sat, 21 Nov 2015 21:26:12 +0000 (21:26 +0000)]
conntrack-tools: use INSTALL_DIR once

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

9 years agotools/scons: update to 2.4.1
John Crispin [Sat, 21 Nov 2015 21:26:06 +0000 (21:26 +0000)]
tools/scons: update to 2.4.1

Update scons to 2.4.1.

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

9 years agotools/cmake: update to 3.4.0
John Crispin [Sat, 21 Nov 2015 21:26:02 +0000 (21:26 +0000)]
tools/cmake: update to 3.4.0

Update cmake to 3.4.0.
Refresh patches.

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

9 years agokernel/generic: 3.18, 4.y: Add support for Quectel EC20 Mini PCIe module
John Crispin [Sat, 21 Nov 2015 21:25:54 +0000 (21:25 +0000)]
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>
SVN-Revision: 47567

9 years agolantiq: add phy led config support over devicetree bindings
John Crispin [Sat, 21 Nov 2015 21:25:43 +0000 (21:25 +0000)]
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>
SVN-Revision: 47566

9 years agoralink: add missing nand layer hack
John Crispin [Sat, 21 Nov 2015 21:25:33 +0000 (21:25 +0000)]
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>
SVN-Revision: 47565

9 years agokernel: fix building RTC drivers
John Crispin [Sat, 21 Nov 2015 21:25:28 +0000 (21:25 +0000)]
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>
SVN-Revision: 47564

9 years agolantiq: tweak DWC2 default parameters
John Crispin [Sat, 21 Nov 2015 21:25:20 +0000 (21:25 +0000)]
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>
SVN-Revision: 47563

9 years agobrcm2708: enable hard float ABI
John Crispin [Sat, 21 Nov 2015 21:25:13 +0000 (21:25 +0000)]
brcm2708: enable hard float ABI

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

9 years agobrcm2708: add support for multi-device images
John Crispin [Sat, 21 Nov 2015 21:25:04 +0000 (21:25 +0000)]
brcm2708: add support for multi-device images

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

9 years agobrcm2708: rename image device definition
John Crispin [Sat, 21 Nov 2015 21:24:57 +0000 (21:24 +0000)]
brcm2708: rename image device definition

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