openwrt.git
6 years agopackage/devel/gdb: Update to 7.11
blogic [Thu, 10 Mar 2016 19:11:46 +0000 (19:11 +0000)]
package/devel/gdb: Update to 7.11

Update gdb to version 7.11

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48990 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agotoolchain/gdb: Update to 7.11
blogic [Thu, 10 Mar 2016 19:11:41 +0000 (19:11 +0000)]
toolchain/gdb: Update to 7.11

Update gdb to version 7.11

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48989 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agopkg-config: Update to 0.29.1
blogic [Thu, 10 Mar 2016 19:11:36 +0000 (19:11 +0000)]
pkg-config: Update to 0.29.1

* Bump pkg-config version to 0.29.1
* Use https for the source download (http gets directed there)

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48988 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agomm-macros: update to 0.9.10
blogic [Thu, 10 Mar 2016 19:11:32 +0000 (19:11 +0000)]
mm-macros: update to 0.9.10

Bump mm-macros to 0.9.10

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48987 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agooxnas: clean-up NAND driver to fix probing issue
blogic [Thu, 10 Mar 2016 19:11:28 +0000 (19:11 +0000)]
oxnas: clean-up NAND driver to fix probing issue

A re-write of the driver based on xway_nand.c and constants as
well as the cmd_ctrl() function from the original oxnas_nand.c
resulted in a extremely similar looking file (see diffsize),
and fixes the issue of NAND not being detected on newer kernels.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48986 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agobrcm2708: update patches to latest version
blogic [Thu, 10 Mar 2016 19:11:23 +0000 (19:11 +0000)]
brcm2708: update patches to latest version

As usual these patches were extracted from the raspberry repo:
https://github.com/raspberrypi/linux/commits/rpi-4.4.y

- Disable unused MFD RPISENSE driver.
- Disable ethernet HW checksums in order to avoid kernel exceptions.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48985 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agoprocd: support pidfile writing.
blogic [Thu, 10 Mar 2016 19:11:17 +0000 (19:11 +0000)]
procd: support pidfile writing.

procd from revision b12bb150ed38a4409bef5127c77b060ee616b860 supports
writing a pidfile.  This adds support for setting that parameter with
standard init script hooks:

   procd_set_param pidfile /var/run/someprocess.pid

Signed-off-by: Karl Palsson <karlp@etactica.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48984 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agoar71xx: Arduino Yun board 'WLAN RST' button support
blogic [Thu, 10 Mar 2016 19:11:13 +0000 (19:11 +0000)]
ar71xx: Arduino Yun board 'WLAN RST' button support

This patch adds support for Arduino Yun board "WLAN RST" button.

Signed-off-by: Hirokazu MORIKAWA <morikw2@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48983 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agokernel: Linux IP Virtual Server kernel modules (netfilter.mk patch)
blogic [Thu, 10 Mar 2016 19:11:09 +0000 (19:11 +0000)]
kernel: Linux IP Virtual Server kernel modules (netfilter.mk patch)

IPVS (IP Virtual Server) implements transport-layer load balancing inside the Linux kernel
so called Layer-4 switching.
IPVS running on a host acts as a load balancer at the front of a cluster of real servers, it
can direct requests for TCP/UDP based services to the real servers, and makes services of
the real servers to appear as a virtual service on a single IP address.

Signed-off-by: Mauro Mozzarelli <mauro@ezplanet.net>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48982 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agoprocd: bump to latest git HEAD
blogic [Thu, 10 Mar 2016 19:11:03 +0000 (19:11 +0000)]
procd: bump to latest git HEAD

Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48981 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agobrcm63xx: fix BCM3368 interrupt controller addresses
blogic [Thu, 10 Mar 2016 19:10:58 +0000 (19:10 +0000)]
brcm63xx: fix BCM3368 interrupt controller addresses

Looks like the addresses for BCM3368 were wrongly defined when DT
support was introduced.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48980 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agobrcm63xx/lzma-loader: fix O32 ABI conformance
blogic [Thu, 10 Mar 2016 19:10:54 +0000 (19:10 +0000)]
brcm63xx/lzma-loader: fix O32 ABI conformance

According to the calling convention of the o32 ABI the caller
function must reserve stack space for $a0-$a3 registers in case
the callee needs to save its arguments.

The assembly code of the loader does not reserve stack space for
these registers thus when the 'loader_main' function needs to save
its arguments, those will be stored in the 'workspace' area instead
of the stack.

Because the workspace area is also used by other part of the code, the
saved register values gets overwritten and this often leads to failed
kernel boots.

Fix the code to reserve stack space for the registers to avoid this
error.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
[noltari: apply the fix for brcm63xx too]
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48979 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agotools/flock: fix compile on Alpine Linux
blogic [Thu, 10 Mar 2016 19:10:48 +0000 (19:10 +0000)]
tools/flock: fix compile on Alpine Linux

fixes build errors:
src/flock.c:208:34: error: 'O_NOCTTY' undeclared (first use in this function)
     fd = open(filename, O_RDONLY|O_NOCTTY|O_CREAT, 0666);
src/flock.c:208:43: error: 'O_CREAT' undeclared (first use in this function)
     fd = open(filename, O_RDONLY|O_NOCTTY|O_CREAT, 0666);

Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48978 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agoar71xx: add support for the Telldus TellStick ZNet Lite
blogic [Thu, 10 Mar 2016 19:07:26 +0000 (19:07 +0000)]
ar71xx: add support for the Telldus TellStick ZNet Lite

Signed-off-by: Micke Prag <micke.prag@telldus.se>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48977 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agobase-files: add function ucidef_set_interface_raw to enable default configuration...
blogic [Thu, 10 Mar 2016 19:07:17 +0000 (19:07 +0000)]
base-files: add function ucidef_set_interface_raw to enable default configuration on interfaces other than lan and wan.

Signed-off-by: Micke Prag <micke.prag@telldus.se>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48976 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agobrcm47xx: image: move disabled devices to the new building system
rmilecki [Wed, 9 Mar 2016 06:34:29 +0000 (06:34 +0000)]
brcm47xx: image: move disabled devices to the new building system

This only drops WGR614 V9 which has 2 MiB flash and it's unlikely to get
any interest.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48975 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agobrcm47xx: image: switch Linksys WRT54G3GV2-VF to the new building system
rmilecki [Wed, 9 Mar 2016 06:34:25 +0000 (06:34 +0000)]
brcm47xx: image: switch Linksys WRT54G3GV2-VF to the new building system

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48974 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agobrcm47xx: image: switch Netgear WGT634U to the new building system
rmilecki [Tue, 8 Mar 2016 18:33:25 +0000 (18:33 +0000)]
brcm47xx: image: switch Netgear WGT634U to the new building system

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48973 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agobrcm47xx: image: switch rest of 64k block devices to the new building system
rmilecki [Tue, 8 Mar 2016 18:33:22 +0000 (18:33 +0000)]
brcm47xx: image: switch rest of 64k block devices to the new building system

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48972 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agobrcm47xx: image: switch Motorola devices to the new building system
rmilecki [Tue, 8 Mar 2016 18:33:19 +0000 (18:33 +0000)]
brcm47xx: image: switch Motorola devices to the new building system

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48971 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agobrcm47xx: image: switch D-Link DWL-3150 to the new building system
rmilecki [Tue, 8 Mar 2016 18:33:16 +0000 (18:33 +0000)]
brcm47xx: image: switch D-Link DWL-3150 to the new building system

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48970 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agoopenvpn: add support for X.509 name options
blogic [Tue, 8 Mar 2016 18:12:02 +0000 (18:12 +0000)]
openvpn: add support for X.509 name options

x509-username-field was added in OpenVPN 2.2, and verify-x509-name was
added in 2.3. This fixes ticket #18807.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48969 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agoramips: add support for Planex MZK-WDPR.
blogic [Tue, 8 Mar 2016 18:11:59 +0000 (18:11 +0000)]
ramips: add support for Planex MZK-WDPR.

add support for Planex MZK-WDPR.
MZK-WDPR(MZK-WDPR-R01) is internet radio tuner.
This patch is "network board" in MZK-WDPR.
LCD board is non OpenWrt Platform.

Signed-off-by: YuheiOKAWA <tochiro.srchack@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48968 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agobrcm2708: add Raspberry Pi 3 support
blogic [Tue, 8 Mar 2016 18:11:55 +0000 (18:11 +0000)]
brcm2708: add Raspberry Pi 3 support

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48967 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agobrcm2708: update linux 4.4 patches to latest version
blogic [Tue, 8 Mar 2016 18:11:49 +0000 (18:11 +0000)]
brcm2708: update linux 4.4 patches to latest version

As usual these patches were extracted from the raspberry pi repo:
https://github.com/raspberrypi/linux/tree/rpi-4.4.y

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48966 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agobrcm2708-gpu-fw: update to latest version
blogic [Tue, 8 Mar 2016 18:11:40 +0000 (18:11 +0000)]
brcm2708-gpu-fw: update to latest version

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48965 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agoinclude: add Cortex-A53 CPU_TYPE
blogic [Tue, 8 Mar 2016 18:11:37 +0000 (18:11 +0000)]
include: add Cortex-A53 CPU_TYPE

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48964 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agobcm53xx: update bcm47xx_sprom to the latest 4.6 queued version
rmilecki [Tue, 8 Mar 2016 11:05:10 +0000 (11:05 +0000)]
bcm53xx: update bcm47xx_sprom to the latest 4.6 queued version

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48963 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agobcm53xx: fix SPROM driver compilation with ssb/bcma as module
rmilecki [Tue, 8 Mar 2016 08:29:32 +0000 (08:29 +0000)]
bcm53xx: fix SPROM driver compilation with ssb/bcma as module

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48962 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agobcm53xx: revert patch removing imprecise abort workaround
rmilecki [Tue, 8 Mar 2016 08:29:29 +0000 (08:29 +0000)]
bcm53xx: revert patch removing imprecise abort workaround

It seems it still happens on some devices.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48961 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agokernel: backport bcma 4.6 changes for flashes
rmilecki [Mon, 7 Mar 2016 23:09:26 +0000 (23:09 +0000)]
kernel: backport bcma 4.6 changes for flashes

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48960 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agomac80211: backport brcmfmac patchset with driver setting concept
rmilecki [Mon, 7 Mar 2016 22:37:09 +0000 (22:37 +0000)]
mac80211: backport brcmfmac patchset with driver setting concept

This prepares brcmfmac for better country handling and fixes BCM4360
support which was always failing with:
[   13.249195] brcmfmac: brcmf_pcie_download_fw_nvram: FW failed to initialize

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48959 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agomt76: update to the latest version, adds some mt7603/mt7628 fixes
nbd [Mon, 7 Mar 2016 21:00:58 +0000 (21:00 +0000)]
mt76: update to the latest version, adds some mt7603/mt7628 fixes

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48958 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agomusl: update to latest git, adds some fixes for the mips64 port and regular expressions
nbd [Mon, 7 Mar 2016 21:00:49 +0000 (21:00 +0000)]
musl: update to latest git, adds some fixes for the mips64 port and regular expressions

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48957 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agokernel: add MIPS kernel fix for an uninitialized CPU map
nbd [Mon, 7 Mar 2016 21:00:46 +0000 (21:00 +0000)]
kernel: add MIPS kernel fix for an uninitialized CPU map

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48956 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agokernel: remove linux 4.3 support
nbd [Mon, 7 Mar 2016 17:56:58 +0000 (17:56 +0000)]
kernel: remove linux 4.3 support

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48955 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agoramips: convert the remaining subtargets to 4.4
nbd [Mon, 7 Mar 2016 17:56:53 +0000 (17:56 +0000)]
ramips: convert the remaining subtargets to 4.4

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48954 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agoramips: fix subtarget kernel version assignment (only mt7621 is ready for now)
nbd [Mon, 7 Mar 2016 17:05:03 +0000 (17:05 +0000)]
ramips: fix subtarget kernel version assignment (only mt7621 is ready for now)

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48953 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agoubox: update to the latest version, fixes an error on processing invalid modules
nbd [Mon, 7 Mar 2016 16:35:43 +0000 (16:35 +0000)]
ubox: update to the latest version, fixes an error on processing invalid modules

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48952 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agoramips: add linux 4.4 support, update mt7621 subtarget to 4.4
nbd [Mon, 7 Mar 2016 16:33:34 +0000 (16:33 +0000)]
ramips: add linux 4.4 support, update mt7621 subtarget to 4.4

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48951 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agobsdiff: add missing host build dependency on bzip2 (fixes #21990)
nbd [Mon, 7 Mar 2016 14:34:14 +0000 (14:34 +0000)]
bsdiff: add missing host build dependency on bzip2 (fixes #21990)

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48950 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agolantiq: print profile name in dsl lucistat
nbd [Mon, 7 Mar 2016 11:03:44 +0000 (11:03 +0000)]
lantiq: print profile name in dsl lucistat

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48949 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agoltq-vdsl-app: do not set the reserved bit 4 in the xTSE 8
nbd [Mon, 7 Mar 2016 11:03:41 +0000 (11:03 +0000)]
ltq-vdsl-app: do not set the reserved bit 4 in the xTSE 8

I do not know if this causes any problems now, but we should not set
it, because it is reserved. Some more recent versions of the Lantiq DSL
API driver and Control is checking if only valid bits are set.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48948 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agoltq-vdsl-app: make it possible to configure ADSL/VDSL independently
nbd [Mon, 7 Mar 2016 11:03:38 +0000 (11:03 +0000)]
ltq-vdsl-app: make it possible to configure ADSL/VDSL independently

There are some cases where ISPs are running ATM over VDSL or PTM over
ADSL, this is not the common case, but these cases exist. Make it
possible to configure OpenWrt for such cases by adding a new config
option line_mode.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48947 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agoltq-vdsl-app: sync annex option between from ADSL package
nbd [Mon, 7 Mar 2016 11:03:35 +0000 (11:03 +0000)]
ltq-vdsl-app: sync annex option between from ADSL package

The detailed annex option were only available in the danube DSL app
including the activation of G.992.2 Annex A (ADSL Lite). This is now
also added to the vdsl app for the vrx200.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48946 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agoltq-adsl-app: sync annex option between from VDSL package
nbd [Mon, 7 Mar 2016 11:03:32 +0000 (11:03 +0000)]
ltq-adsl-app: sync annex option between from VDSL package

The adsl control app missed the activation of annex M and annex L in
the Annex A part, this now activates everything the firmware supports.
In Annex L type only the wide US (Mask1) was activated, now also the
narrow US (Mask2) version gets activated.
In addition annex J was also added.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48945 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agobase-files: change type of adsl and vdsl to dsl only
nbd [Mon, 7 Mar 2016 11:03:29 +0000 (11:03 +0000)]
base-files: change type of adsl and vdsl to dsl only

Instead of having two different types adsl and vdsl just create one dsl
type. This way we can use the same luci code for adsl and vdsl and the
config parameters are not so different.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48944 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agoltq-vdsl-app: make the dsl_control application stop cleanly
nbd [Mon, 7 Mar 2016 11:03:26 +0000 (11:03 +0000)]
ltq-vdsl-app: make the dsl_control application stop cleanly

I am not calling dsl_cmd because I want to ignore the lock, quit
should also be send when someone else is accessing it. I saw that some
other call was stuck here and all following calls were stuck in the
dsl_cmd lock.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48943 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agolantiq: add dsl firmware to default packages
nbd [Mon, 7 Mar 2016 11:03:21 +0000 (11:03 +0000)]
lantiq: add dsl firmware to default packages

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48942 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agolantiq: do not set default firmware file
nbd [Mon, 7 Mar 2016 11:03:18 +0000 (11:03 +0000)]
lantiq: do not set default firmware file

We are now shipping a DSL firmware, do not set it by default to some
file name.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48941 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agoltq-vdsl-app: load the vrx200 firmware or patch it
nbd [Mon, 7 Mar 2016 11:03:13 +0000 (11:03 +0000)]
ltq-vdsl-app: load the vrx200 firmware or patch it

This checks for the VRX firmware provided in the OpenWrt package.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48940 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agodsl-vrx200-firmware-xdsl: create Lantiq vrx200 firmware patches
nbd [Mon, 7 Mar 2016 11:03:09 +0000 (11:03 +0000)]
dsl-vrx200-firmware-xdsl: create Lantiq vrx200 firmware patches

Instead of having two big binaries only add one binary and then a patch
to create the other one when needed at runtime.
This is easier to handle in one Makefile for both firmware files.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48939 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agomac80211: rework gpio chip/button support to build on platforms without CONFIG_GPIOLIB
nbd [Mon, 7 Mar 2016 09:20:22 +0000 (09:20 +0000)]
mac80211: rework gpio chip/button support to build on platforms without CONFIG_GPIOLIB

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48938 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agoar71xx: fix qca956x ethernet initialization
nbd [Mon, 7 Mar 2016 08:45:01 +0000 (08:45 +0000)]
ar71xx: fix qca956x ethernet initialization

Complete internal switch initialization for QCA956X.
Set default mdio device if the interface mode of GE0 is not SGMII (fix ticket #21520).

Signed-off-by: Weijie Gao <hackpascal@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48937 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agoar71xx: enable USB packages for WNR2200 (fixes #21984)
nbd [Sun, 6 Mar 2016 19:40:31 +0000 (19:40 +0000)]
ar71xx: enable USB packages for WNR2200 (fixes #21984)

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48936 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agobcm53xx: use SPROM driver queued for 4.6
rmilecki [Sun, 6 Mar 2016 18:08:03 +0000 (18:08 +0000)]
bcm53xx: use SPROM driver queued for 4.6

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48935 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agoprereq: stop relying on man pages and grep for --recursive on the git-submodule scrip...
nbd [Sat, 5 Mar 2016 21:07:18 +0000 (21:07 +0000)]
prereq: stop relying on man pages and grep for --recursive on the git-submodule script directly (fixes #21968)

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48934 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agokernel: update kernel 4.4 to version 4.4.4
hauke [Sat, 5 Mar 2016 17:51:37 +0000 (17:51 +0000)]
kernel: update kernel 4.4 to version 4.4.4

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48933 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agokernel: mpc85xx: fix build of kmod-usb2-fsl
hauke [Sat, 5 Mar 2016 17:49:09 +0000 (17:49 +0000)]
kernel: mpc85xx: fix build of kmod-usb2-fsl

Fix buildbot error for mpc85xx.
ehci-fsl.ko should be packaged inside the usb2 package, because it
depends on the ehci kernel module. The fsl-mph-dr-of.ko module can stay
in an own package because the ehci driver depends on it.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48932 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agokernel: fix section mismatch in crashlog
hauke [Sat, 5 Mar 2016 16:23:50 +0000 (16:23 +0000)]
kernel: fix section mismatch in crashlog

The function memblock_insert_region() is in the section
__init_memblock, also put crashlog_init_memblock there.

This fixes this section mismatch warning:
The function memblock_insert_region.isra.1() references
the function __meminit crashlog_init_memblock().
This is often because memblock_insert_region.isra.1 lacks a __meminit
annotation or the annotation of crashlog_init_memblock is wrong.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48931 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agospi-gpio-custom: fix section mismatch
hauke [Sat, 5 Mar 2016 16:23:19 +0000 (16:23 +0000)]
spi-gpio-custom: fix section mismatch

This fixes this section mismatch warning:
The function spi_gpio_custom_get_slave_cs() references
the variable __initdata bus_nump.
This is often because spi_gpio_custom_get_slave_cs lacks a __initdata
annotation or the annotation of bus_nump is wrong.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48930 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agokernel: add missing config options
hauke [Sat, 5 Mar 2016 16:22:45 +0000 (16:22 +0000)]
kernel: add missing config options

The buildbots complained about these config options being missing for arm64:
CONFIG_DUMMY_CONSOLE_COLUMNS=80
CONFIG_DUMMY_CONSOLE_ROWS=25

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48929 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agouclibc++: add a patch to fix memory corruption issues on exceptions
nbd [Sat, 5 Mar 2016 14:23:49 +0000 (14:23 +0000)]
uclibc++: add a patch to fix memory corruption issues on exceptions

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48928 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agobuild: fix git prereq check to forcibly disable man pagers on the --help check
nbd [Sat, 5 Mar 2016 13:37:02 +0000 (13:37 +0000)]
build: fix git prereq check to forcibly disable man pagers on the --help check

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48927 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agobuild: fix git prereq check to not rely on being in a git directory (#21968)
nbd [Sat, 5 Mar 2016 10:49:59 +0000 (10:49 +0000)]
build: fix git prereq check to not rely on being in a git directory (#21968)

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48926 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agoar71xx: WNR612v2: enable control of all LEDs and buttons
nbd [Sat, 5 Mar 2016 09:45:15 +0000 (09:45 +0000)]
ar71xx: WNR612v2: enable control of all LEDs and buttons

This patch provides full GPIO support for WNR612v2 (LEDs and buttons).
It exposes all LEDs to operating system, including Ethernet ones.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48924 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agoar71xx: WNR2000v3: add speed_mask to Ethernet port LED initialization
nbd [Sat, 5 Mar 2016 09:45:10 +0000 (09:45 +0000)]
ar71xx: WNR2000v3: add speed_mask to Ethernet port LED initialization

This patch add speed_mask parameter to Ethernet port LED initialization
during system startup. LEDs are configured to show amber light for 10 Mbps
link and green for 100 Mbps as described on device label.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48923 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agoar71xx: WNR2000v3: enable control of all LEDs and buttons
nbd [Sat, 5 Mar 2016 09:45:06 +0000 (09:45 +0000)]
ar71xx: WNR2000v3: enable control of all LEDs and buttons

This patch provides full GPIO support for WNR2000v3 (LEDs and buttons).
It exposes all LEDs to operating system, including Ethernet ones.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48922 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agomac80211: ath9k: enable GPIO buttons
nbd [Sat, 5 Mar 2016 09:45:03 +0000 (09:45 +0000)]
mac80211: ath9k: enable GPIO buttons

Enable platform-defined GPIO button support for ath9k device.
Key poller is activated for attached platform buttons.
Requires ath9k GPIO chip access.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48921 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agonetifd: fix build error
jow [Fri, 4 Mar 2016 18:37:45 +0000 (18:37 +0000)]
netifd: fix build error

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48920 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agonetifd: fix VTI ikey/okey endianess
jow [Fri, 4 Mar 2016 17:48:18 +0000 (17:48 +0000)]
netifd: fix VTI ikey/okey endianess

Ensure that ikey and okey are sent in network byte order to the kernel.
Also don't mangle external IP addrs and routes when reconfiguring iinterfaces.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48919 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agobuildroot: apply IGNORE_ERRORS to host builds
jow [Fri, 4 Mar 2016 11:20:11 +0000 (11:20 +0000)]
buildroot: apply IGNORE_ERRORS to host builds

Apply the error ignore mechanism to host builds as well in order to skip over
broken feed packages.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48918 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agoopkg: Fix handling of sha256sums for conffiles
blogic [Fri, 4 Mar 2016 08:33:41 +0000 (08:33 +0000)]
opkg: Fix handling of sha256sums for conffiles

MD5s are shorter than SHA256, so reading buffer has to be bigger to read the
whole hash.

Signed-off-by: Michal Hrusecky <michal.hrusecky@nic.cz>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48917 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agoAP121 target: fix board detection in ar71xx.sh
blogic [Fri, 4 Mar 2016 08:33:38 +0000 (08:33 +0000)]
AP121 target: fix board detection in ar71xx.sh

Signed-off-by: Attila Lendvai <attila@lendvai.name>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48916 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agoprocd: Allow to configure default respawn retry count
blogic [Fri, 4 Mar 2016 08:33:36 +0000 (08:33 +0000)]
procd: Allow to configure default respawn retry count

Extend /etc/config/system with a parameter to set the
default respawn retry for procd launched services that
have respawn enabled.

config service
         option respawn_retry -1

All services that don't specify specific respawn parameters
will get their defaults added by procd.sh. If respawn_retry
is specified in /etc/config/system the default retry limit
will be set to this value by procd.

Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48915 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agoAR8216: improve mmd register access
blogic [Fri, 4 Mar 2016 08:33:33 +0000 (08:33 +0000)]
AR8216: improve mmd register access

Combine all bus operations for one MMD access in one function.
Protecting all these bus operations with one lock also helps
to avoid potential issues due to bus operations intercepting
the register and data write.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48914 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agoAR8216: make ARL age time configurable
blogic [Fri, 4 Mar 2016 08:33:30 +0000 (08:33 +0000)]
AR8216: make ARL age time configurable

The default TTL for address resolution table entries is 5 minutes
for all members of the AR8216 family. This can cause issues if
e.g. Wifi clients roam to another AP and their MAC appears on
another switch port suddenly. Then the client may not be reachable
until the old ARL entry expires.
I would have expected the switch to invalidate old entries if it
detects the same MAC on another port. But that's not the case.

Therefore make the TTL for ARL entries configurable.
The effective TTL will always be a multiple of 7 seconds.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48913 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agoAR8216: remove redundant port number in MIB header line
blogic [Fri, 4 Mar 2016 08:33:28 +0000 (08:33 +0000)]
AR8216: remove redundant port number in MIB header line

The line before includes the port number anyway so there's no need
to duplicate the port number in the MIB info header.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48912 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agoAR8216: complement MIB counters with info in GiB / MiB / KiB
blogic [Fri, 4 Mar 2016 08:33:25 +0000 (08:33 +0000)]
AR8216: complement MIB counters with info in GiB / MiB / KiB

The decimal values especially for TxByte and RxGoodByte are hard to read
once bigger amounts of data have been transferred.
Therefore complement the decimal values with info in GiB / MiB / KiB.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48911 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agoAR8216: don't display MIB counters if all are empty
blogic [Fri, 4 Mar 2016 08:33:22 +0000 (08:33 +0000)]
AR8216: don't display MIB counters if all are empty

For unused switch ports all MIB values are zero. Displaying ~40 empty
MIB counters is just confusing and makes it hard to read the output of
swconfig dev <dev> show.
Therefore, if all MIB counters for a port are zero, just display
an info that the MIB counters are empty.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48910 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agoimx6: image: Add missing kernel prefix
blogic [Fri, 4 Mar 2016 08:33:20 +0000 (08:33 +0000)]
imx6: image: Add missing kernel prefix

Signed-off-by: Petr Štetiar <ynezz@true.cz>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48909 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agoramips: mt7621: fix WF-2881 for ubi split
blogic [Fri, 4 Mar 2016 08:33:17 +0000 (08:33 +0000)]
ramips: mt7621: fix WF-2881 for ubi split

This patch fix firmware split for WF-2881 which was previously manually partitioned.

Signed-off-by: YounJae Rho <luxflow@live.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48908 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agolua: host: install lnum_config.h
blogic [Fri, 4 Mar 2016 08:33:14 +0000 (08:33 +0000)]
lua: host: install lnum_config.h

One of the host patches introduces the new header file lnum_config.h
included by luaconf.h, but doesn't install it.

Install it to allow building C modules for the host Lua.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48907 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agoramips: Add profiles for JCG routers
blogic [Fri, 4 Mar 2016 08:33:12 +0000 (08:33 +0000)]
ramips: Add profiles for JCG routers

This patch adds profiles and support for building factory and
sysupgrade images for JHR-N805R, JHR-N825R and JHR-N926R.

Signed-off-by: Reinhard Max <reinhard@m4x.de>
Reviewed-by: Torsten Duwe <duwe@lst.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48906 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agoramips: Add JCG routers to base-files
blogic [Fri, 4 Mar 2016 08:33:09 +0000 (08:33 +0000)]
ramips: Add JCG routers to base-files

This patch adds support for JHR-N805R, JHR-N825R and JHR-N926R to
various scripts in the base-files directory.

Signed-off-by: Reinhard Max <reinhard@m4x.de>
Reviewed-by: Torsten Duwe <duwe@lst.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48905 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agoramips: Add device tree for JCG JHR-N926R
blogic [Fri, 4 Mar 2016 08:33:06 +0000 (08:33 +0000)]
ramips: Add device tree for JCG JHR-N926R

Add a device tree for JCG JHR-N825R

This router is based on a RT3052 and has 4MB of CFI flash and 32MB of
SDRAM. As a special feature, it comes with a two digit seven segment
display that is connected to a pair of daisy-chained 74164 shift
registers that can be controlled via GPIOs.

For details, see https://wikidevi.com/wiki/JCG_JHR-N825R .

Signed-off-by: Reinhard Max <reinhard@m4x.de>
Reviewed-by: Torsten Duwe <duwe@lst.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48904 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agoramips: Add device tree for JCG JHR-N825R
blogic [Fri, 4 Mar 2016 08:33:03 +0000 (08:33 +0000)]
ramips: Add device tree for JCG JHR-N825R

Add a device tree for JCG JHR-N825R

This router is based on a RT3052 and has 4MB of CFI flash and 32MB of
SDRAM. For details, see https://wikidevi.com/wiki/JCG_JHR-N825R .

Signed-off-by: Reinhard Max <reinhard@m4x.de>
Reviewed-by: Torsten Duwe <duwe@lst.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48903 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agoramips: Add device tree for JCG JHR-N805R
blogic [Fri, 4 Mar 2016 08:33:00 +0000 (08:33 +0000)]
ramips: Add device tree for JCG JHR-N805R

Add a device tree for JCG JHR-N805R

This router is based on a RT3050 and has 4MB of SPI flash and 16MB of
SDRAM. For details, see https://wikidevi.com/wiki/JCG_JHR-N805R .

Signed-off-by: Reinhard Max <reinhard@m4x.de>
Reviewed-by: Torsten Duwe <duwe@lst.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48902 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agoramips: Add a tool to create JCG factory images
blogic [Fri, 4 Mar 2016 08:32:54 +0000 (08:32 +0000)]
ramips: Add a tool to create JCG factory images

replace spaces with tabs

Signed-off-by: Reinhard Max <reinhard@m4x.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48901 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agomac80211: improve rate control performance
nbd [Thu, 3 Mar 2016 22:29:00 +0000 (22:29 +0000)]
mac80211: improve rate control performance

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48897 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agomt76: update to the latest version, adds stability fixes
nbd [Thu, 3 Mar 2016 22:01:06 +0000 (22:01 +0000)]
mt76: update to the latest version, adds stability fixes

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48895 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agokernel: gpio-button-hotplug: Add missing ONESHOT flag to threaded IRQ request
blogic [Thu, 3 Mar 2016 20:24:47 +0000 (20:24 +0000)]
kernel: gpio-button-hotplug: Add missing ONESHOT flag to threaded IRQ request

Without the IRQF_ONESHOT flag in devm_request_threaded_irq() call I get
following error:

  genirq: Threaded irq requested with handler=NULL and !ONESHOT for irq 56
  gpio-keys gpio-keys: failed to request irq:56 for gpio:20

>From kernel/irq/manage.c:

 The interrupt was requested with handler = NULL, so we use the default
 primary handler for it. But it does not have the oneshot flag set. In
 combination with level interrupts this is deadly, because the default
 primary handler just wakes the thread, then the irq lines is reenabled,
 but the device still has the level irq asserted. Rinse and repeat....

 While this works for edge type interrupts, we play it safe and reject
 unconditionally because we can't say for sure which type this interrupt
 really has. The type flags are unreliable as the underlying chip
 implementation can override them.

Signed-off-by: Petr Štetiar <ynezz@true.cz>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48894 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agoramips: Incorrect file mode change
blogic [Thu, 3 Mar 2016 20:24:45 +0000 (20:24 +0000)]
ramips: Incorrect file mode change

Commit d0f5ab6d95a1 ("ramips: Added support for ZBT-826 / ZBT-1026")
incorrectly changed the mode of the ramips shell scripts from 755 to 644.
I.e., they are not excutable any more and for example devices will be left
with broken configs.

Signed-off-by: Kristian Evensen <kristian.evensen@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48893 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agotarget/mpc85xx: check for 'generic' subtarget for initramfs image file
blogic [Thu, 3 Mar 2016 20:24:41 +0000 (20:24 +0000)]
target/mpc85xx: check for 'generic' subtarget for initramfs image file

Copy 'cuImage.tl-wdr4900-v1-initramfs' only for the 'generic' subtarget.
This is a follow-up to:
 http://git.openwrt.org/?p=openwrt.git;a=commitdiff;h=b889fe55c1844aec2c03da28fecb03e958c21f18

We build our initramfs images more rarely, so it took a while
to catch this too.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48892 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agomtd: fix reading of image magic bytes in smaller chunks
blogic [Thu, 3 Mar 2016 20:24:38 +0000 (20:24 +0000)]
mtd: fix reading of image magic bytes in smaller chunks

The image_check currently fails when it cannot read all magic bytes in a
single chunk. But this can happen when the data are read from a pipe. This
currently breaks the openmesh.sh upgrade script with musl because it uses
dd with a blocksize of 1 to copy the image file to the mtd process.

The read can simply be repeated until enough bytes are read for the magic
byte check. It only stops when either an error was returned or 0 bytes were
read.

Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48891 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agoom-watchdog: Move each board name to its own line
blogic [Thu, 3 Mar 2016 20:24:35 +0000 (20:24 +0000)]
om-watchdog: Move each board name to its own line

Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48890 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agoom-watchdog: Stop om-watchdog via procd before rebooting
blogic [Thu, 3 Mar 2016 20:24:33 +0000 (20:24 +0000)]
om-watchdog: Stop om-watchdog via procd before rebooting

It was noticed that the system can hang during the reboot before the kernel
actually triggers the system reset and before all processes are stopped. The
watchdog didn't automatically restart the system because the om-watchdog
process was still running and triggering the hardware watchdog.

Instead the system should stop the watchdog during the shutdown to get the
benefit of an hardware reset in case of an software related problem. This stop
can be done quite easily with procd because it keeps track of its started
processes.

Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48889 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agoramips: Add a tool to create JCG factory images
blogic [Thu, 3 Mar 2016 20:24:30 +0000 (20:24 +0000)]
ramips: Add a tool to create JCG factory images

This tool creates factory images for JCG routers.
Details can be found in the header comment of jcgimage.c.

Signed-off-by: Reinhard Max <reinhard@m4x.de>
Reviewed-by: Torsten Duwe <duwe@lst.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48888 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agoramips: enable mt76 on mt7688 by default
nbd [Wed, 2 Mar 2016 17:40:58 +0000 (17:40 +0000)]
ramips: enable mt76 on mt7688 by default

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48886 3c298f89-4303-0410-b956-a3cf2f4a3e73

6 years agomt76: update to the latest version, adds basic mt7628 support
nbd [Wed, 2 Mar 2016 17:40:55 +0000 (17:40 +0000)]
mt76: update to the latest version, adds basic mt7628 support

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48885 3c298f89-4303-0410-b956-a3cf2f4a3e73