4 years agobuildroot: improve git submodule handling for packages
Felix Fietkau [Mon, 29 Feb 2016 20:12:25 +0000 (20:12 +0000)]
buildroot: improve git submodule handling for packages

Move the `--recursive` switch from `git clone` to `git submodule`
so that submodules are cloned for upstream branches where the
PKG_SOURCE_VERSION commit-ish has a different .gitmodules
configuration than the repository default.

This is, for example, required when the master branch for a source
package does not use submodules, but its topic branch for OpenWRT

This changes the buildroot dependency from git-1.6.2 to git,
which was released September 2012.

Signed-off-by: Darik Horn <>
Signed-off-by: Karl Palsson <>
SVN-Revision: 48830

4 years agofirmware-utils: mkfwimage: fix firmware_max_length for XM layout
Felix Fietkau [Mon, 29 Feb 2016 20:11:33 +0000 (20:11 +0000)]
firmware-utils: mkfwimage: fix firmware_max_length for XM layout

The new u-boot version bundled with the 5.6.x firmwares from Ubiquiti gets
confused by the smaller rootfs partition size; this can lead to various

1. We've gotten reports that flashing from the 5.6.x stock firmware to
   OpenWrt will brick devices; I wasn't able to reproduce this myself
2. Flashing from 5.5.x stock firmware to OpenWrt and back to stock (via
   TFTP recovery), following by an update to 5.6.x via web interface can
   yield a bricked device with the following properties:
   - It can't be booted without entering commands over a serial console, as
     u-boot supplies the wrong MTD layout
   - The web interface won't accept any image with the original flash
     layout, so stock firmware upgrades are impossible
   - As the TFTP recovery doesn't update u-boot, returning to the old
     u-boot from firmware 5.5.x is impossible

To recover from 2., creating an OpenWrt image which doesn't set u-boot as
read-only and flashing a backup of the old u-boot from there is the only
way known to me. (Fixing the mtdparts variable in u-boot-env from OpenWrt
might also work; settings this from u-boot over serial didn't have
any permanent effect.)

Fix all of this by setting the correct flash layout also used by the stock
firmware. Flashing has been tested from both firmware 5.5.x and 5.6.x. The
fixed layout also matches the mtdparts defined by OpenWrt.

Signed-off-by: Matthias Schiffer <>
SVN-Revision: 48829

4 years agoar71xx, firmware-utils: split ubdev01 flash layout from XM
Felix Fietkau [Mon, 29 Feb 2016 20:11:30 +0000 (20:11 +0000)]
ar71xx, firmware-utils: split ubdev01 flash layout from XM

The ubdev01 profile defines its own MTDPARTS with smaller firmware
partition, so give it its own UBNT_BOARD in mkfwimage.

Signed-off-by: Matthias Schiffer <>
SVN-Revision: 48828

4 years agofirmware-utils: mkfwimage: add -Wall, fix obvious bugs causing compile warnings
Felix Fietkau [Mon, 29 Feb 2016 20:11:26 +0000 (20:11 +0000)]
firmware-utils: mkfwimage: add -Wall, fix obvious bugs causing compile warnings

Signed-off-by: Matthias Schiffer <>
SVN-Revision: 48827

4 years agogcc: update gcc 5 to version 5.3.0
Felix Fietkau [Mon, 29 Feb 2016 20:09:45 +0000 (20:09 +0000)]
gcc: update gcc 5 to version 5.3.0

Signed-off-by: Hauke Mehrtens <>
SVN-Revision: 48826

4 years agomt76: update to the latest version, adds a number of stability fixes
Felix Fietkau [Sun, 28 Feb 2016 21:06:08 +0000 (21:06 +0000)]
mt76: update to the latest version, adds a number of stability fixes

Signed-off-by: Felix Fietkau <>
SVN-Revision: 48814

4 years agoramips: add sysupgrade support for mt7628
Felix Fietkau [Sun, 28 Feb 2016 15:46:27 +0000 (15:46 +0000)]
ramips: add sysupgrade support for mt7628

Signed-off-by: Felix Fietkau <>
SVN-Revision: 48813

4 years agoramips: create device tree node for MT7628 WMAC in preparation for future work on...
Felix Fietkau [Sun, 28 Feb 2016 13:21:54 +0000 (13:21 +0000)]
ramips: create device tree node for MT7628 WMAC in preparation for future work on driver support in mt76

Signed-off-by: Felix Fietkau <>
SVN-Revision: 48812

4 years agomt76: update to the latest version, enable MT7603 support (very basic, needs testing...
Felix Fietkau [Sun, 28 Feb 2016 09:55:18 +0000 (09:55 +0000)]
mt76: update to the latest version, enable MT7603 support (very basic, needs testing and debugging work)

Signed-off-by: Felix Fietkau <>
SVN-Revision: 48811

4 years agobsdiff: add bsdiff and bspatch tool package
Hauke Mehrtens [Sat, 27 Feb 2016 22:59:13 +0000 (22:59 +0000)]
bsdiff: add bsdiff and bspatch tool package

This will be used to create a diff between the Lantiq annex A and the
annex B firmware.

Signed-off-by: Hauke Mehrtens <>
SVN-Revision: 48810

4 years agoscripts/ fix sha256 hash command (#21931)
Felix Fietkau [Sat, 27 Feb 2016 16:20:06 +0000 (16:20 +0000)]
scripts/ fix sha256 hash command (#21931)

Signed-off-by: Felix Fietkau <>
SVN-Revision: 48809

4 years agoRevert "ar71xx: WNR612v2: exclude USB modules from image"
Felix Fietkau [Fri, 26 Feb 2016 20:47:13 +0000 (20:47 +0000)]
Revert "ar71xx: WNR612v2: exclude USB modules from image"

This reverts commit r48778. The issue has now been fixed properly

Signed-off-by: Felix Fietkau <>
SVN-Revision: 48808

4 years agoinclude/ fix profile defaults
Felix Fietkau [Fri, 26 Feb 2016 20:47:10 +0000 (20:47 +0000)]
include/ fix profile defaults

Signed-off-by: Felix Fietkau <>
SVN-Revision: 48807

4 years agobase-files: support passing mode to ucidef_set_led_netdev()
Jo-Philipp Wich [Fri, 26 Feb 2016 14:49:17 +0000 (14:49 +0000)]
base-files: support passing mode to ucidef_set_led_netdev()

Signed-off-by: Jo-Philipp Wich <>
SVN-Revision: 48806

4 years agokernel: use upstream accepted bcm47xxpart patches
Rafał Miłecki [Fri, 26 Feb 2016 11:12:50 +0000 (11:12 +0000)]
kernel: use upstream accepted bcm47xxpart patches

Signed-off-by: Rafał Miłecki <>
SVN-Revision: 48805

4 years agotoolchain: use musl instead of glibc by default for mips64
Felix Fietkau [Fri, 26 Feb 2016 10:56:02 +0000 (10:56 +0000)]
toolchain: use musl instead of glibc by default for mips64

Signed-off-by: Felix Fietkau <>
SVN-Revision: 48804

4 years agomusl: add mips64 port
Felix Fietkau [Fri, 26 Feb 2016 10:55:59 +0000 (10:55 +0000)]
musl: add mips64 port

Signed-off-by: Felix Fietkau <>
SVN-Revision: 48803

4 years agokernel: disable MIPS VDSO by default until the cache issues have been resolved
Felix Fietkau [Fri, 26 Feb 2016 09:49:32 +0000 (09:49 +0000)]
kernel: disable MIPS VDSO by default until the cache issues have been resolved

Signed-off-by: Felix Fietkau <>
SVN-Revision: 48802

4 years agodnsmasq: add host-specific lease time option for static hosts
John Crispin [Fri, 26 Feb 2016 09:13:03 +0000 (09:13 +0000)]
dnsmasq: add host-specific lease time option for static hosts

Enable setting a host-specific lease time for static hosts.
The new option is called "leasetime" and the format is similar
as for the default lease time: e.g. 12h, 3d, infinite

Default lease time is used for all hosts for which there is
no host-specific definition.

The option is added to /etc/config/dhcp for the selected hosts:
  config host
        option name 'Nexus'
        option mac 'd8:50:66:55:59:7c'
        option ip ''
        option leasetime '2h'

It gets appended to /var/etc/dnsmasq.conf like this:

Signed-off-by: Hannu Nyman <>
SVN-Revision: 48801

4 years agodnsmasq: add dhcp relay option
John Crispin [Fri, 26 Feb 2016 08:35:48 +0000 (08:35 +0000)]
dnsmasq: add dhcp relay option

Signed-off-by: dbugnar <>
SVN-Revision: 48800

4 years agoprocd: hotplug.json: allow passing hotplug events from all subsystems
John Crispin [Fri, 26 Feb 2016 08:35:43 +0000 (08:35 +0000)]
procd: hotplug.json: allow passing hotplug events from all subsystems

There are time that programs need to be notified of events from
subsystems that are not enumerated in the .json definition, e.g. QEMU
guest agent by default requires /dev/virtio-ports/org.qemu.guest_agent.0
which is a symlink to /dev/vportMpN from virtio-ports subsystem.

Signed-off-by: Yousong Zhou <>
SVN-Revision: 48799

4 years agolibubox: update to latest git HEAD
John Crispin [Fri, 26 Feb 2016 08:35:41 +0000 (08:35 +0000)]
libubox: update to latest git HEAD

adds isdir support to json_script

Signed-off-by: John Crispin <>
SVN-Revision: 48798

4 years agoar71xx: Renamed Gainstrong MiniBox profile to Gainstrong (manufacturer) and updated...
John Crispin [Fri, 26 Feb 2016 08:35:38 +0000 (08:35 +0000)]
ar71xx: Renamed Gainstrong MiniBox profile to Gainstrong (manufacturer) and updated copyright

This is the first patch of a series of three to tidy up the profiles for
Gainstrong devices. Right now there are two Gainstrong profiles, each
for a single device built by this manufacturer. This patch renames the
MiniBox profile to Gainstrong and updates the copyright notice.

The series applies cleanly to current trunk. Resent with the architecture in
the subject, forgot that the first time.

Signed-off by: Stijn Segers <>

SVN-Revision: 48797

4 years agoramips: fix GPIO names for RT5350F-OLinuXino-EVB
John Crispin [Fri, 26 Feb 2016 08:35:35 +0000 (08:35 +0000)]
ramips: fix GPIO names for RT5350F-OLinuXino-EVB


the board in subject (RT5350F-OLinuXino-EVB) still ships from vendor
with a RC3 image built upon a .dts file which declares GPIO12 and GPIO14
as relay2 and relay1 respectively, as you can see from their rt5350f
branch on GitHub.

For some reason in the official stable build both the GPIOs are swapped
and the wrong names are declared in the gpio-export directive.

I'm submitting this patch which should roll back the wrong changes, so
that we get backward compatibility with any script developed on RC3
which controls the relays.

After patching correct operation is restored:

root@OpenWrt:/# cat /sys/kernel/debug/gpio
GPIOs 0-21, platform/10000600.gpio, 10000600.gpio:
 gpio-0   (button              ) in  hi
 gpio-12  (relay2              ) out lo
 gpio-14  (relay1              ) out lo

Thank you,

Signed-off-by: Lorenzo Cafaro <>
SVN-Revision: 48796

4 years agohotplug-preinit: remove superfluous `and`
John Crispin [Fri, 26 Feb 2016 08:35:32 +0000 (08:35 +0000)]
hotplug-preinit: remove superfluous `and`

Signed-off-by: Alexander Couzens <>
SVN-Revision: 48795

4 years agompc85xx/tl-wdr4900: correct address of the gpio controller
John Crispin [Fri, 26 Feb 2016 08:35:29 +0000 (08:35 +0000)]
mpc85xx/tl-wdr4900: correct address of the gpio controller

since linux 3.19 the address of the gpio-controller changed

Signed-off-by: Alexander Couzens <>
SVN-Revision: 48794

4 years agokernel/gpio_keys: load module on pre-init
John Crispin [Fri, 26 Feb 2016 08:35:20 +0000 (08:35 +0000)]
kernel/gpio_keys: load module on pre-init

fix rescue mode on wdr4900

Signed-off-by: Alexander Couzens <>
SVN-Revision: 48793

4 years agokernel: deactivate the vdso gettimeofday function.
Hauke Mehrtens [Thu, 25 Feb 2016 22:31:51 +0000 (22:31 +0000)]
kernel: deactivate the vdso gettimeofday function.

The vdso version of this function has some problems with the cache.
Very often it works on dated data which causes problem. We are
currently working on fixing this in upstream Linux kernel.

Signed-off-by: Hauke Mehrtens <>
SVN-Revision: 48787

4 years agolinux-atm: activate format security checks
Hauke Mehrtens [Thu, 25 Feb 2016 22:00:34 +0000 (22:00 +0000)]
linux-atm: activate format security checks

Signed-off-by: Hauke Mehrtens <>
SVN-Revision: 48786

4 years agoltq-vdsl-mei: activate format security checks
Hauke Mehrtens [Thu, 25 Feb 2016 21:59:56 +0000 (21:59 +0000)]
ltq-vdsl-mei: activate format security checks

This activates the format warnings in this package and that makes it
possible to activate format-security checks.

Signed-off-by: Hauke Mehrtens <>
SVN-Revision: 48785

4 years agostrace: update to version 4.11
Hauke Mehrtens [Thu, 25 Feb 2016 21:55:41 +0000 (21:55 +0000)]
strace: update to version 4.11

Signed-off-by: Hauke Mehrtens <>
SVN-Revision: 48784

4 years agokernel: update kernel 4.4 to version 4.4.3
Hauke Mehrtens [Thu, 25 Feb 2016 21:54:39 +0000 (21:54 +0000)]
kernel: update kernel 4.4 to version 4.4.3

Signed-off-by: Hauke Mehrtens <>
SVN-Revision: 48783

4 years agomac80211: backport brcmfmac fix for primary channel in 80 MHz mode
Rafał Miłecki [Thu, 25 Feb 2016 20:24:47 +0000 (20:24 +0000)]
mac80211: backport brcmfmac fix for primary channel in 80 MHz mode

Signed-off-by: Rafał Miłecki <>
SVN-Revision: 48782

4 years agomac80211: backport brcmfmac fix for sdio sg table alloc crash
Rafał Miłecki [Thu, 25 Feb 2016 20:24:38 +0000 (20:24 +0000)]
mac80211: backport brcmfmac fix for sdio sg table alloc crash

Signed-off-by: Rafał Miłecki <>
SVN-Revision: 48781

4 years agotoolchain/glibc: remove obsolete versions
Felix Fietkau [Thu, 25 Feb 2016 13:43:46 +0000 (13:43 +0000)]
toolchain/glibc: remove obsolete versions

Signed-off-by: Felix Fietkau <>
SVN-Revision: 48780

4 years agoar71xx: WNR612v2: fix for random WLAN MAC
Felix Fietkau [Thu, 25 Feb 2016 13:31:38 +0000 (13:31 +0000)]
ar71xx: WNR612v2: fix for random WLAN MAC

Fix for invalid/random WLAN MAC address in WNR612v2. Permanent platform
MAC is calculated and assigned during system startup. WLAN MAC follows
wired Ethernet interface addresses. This is the same fix as for WNR2000v3.

Signed-off-by: Michal Cieslakiewicz <>
SVN-Revision: 48779

4 years agoar71xx: WNR612v2: exclude USB modules from image
Felix Fietkau [Thu, 25 Feb 2016 13:31:35 +0000 (13:31 +0000)]
ar71xx: WNR612v2: exclude USB modules from image

Netgear WNR612v2 has no USB port yet default system image
includes USB kernel modules. This patch fixes that.

Signed-off-by: Michal Cieslakiewicz <>
SVN-Revision: 48778

4 years agoar71xx: WNR2000v3: fix for random WLAN MAC
Felix Fietkau [Thu, 25 Feb 2016 13:31:32 +0000 (13:31 +0000)]
ar71xx: WNR2000v3: fix for random WLAN MAC

Fix for invalid/random WLAN MAC address in WNR2000v3. Permanent platform
MAC is calculated and assigned during system startup. WLAN MAC follows
wired Ethernet interface addresses.

Signed-off-by: Michal Cieslakiewicz <>
SVN-Revision: 48777

4 years agobase-files: add support for speed mask to switch config init scripts
Felix Fietkau [Thu, 25 Feb 2016 13:31:29 +0000 (13:31 +0000)]
base-files: add support for speed mask to switch config init scripts

This patch adds extra parameter to switch LED trigger initialization
functions.  New functionality maintains backward compatibility, so
calling functions without setting new speed_mask parameter works
as expected.

Signed-off-by: Michal Cieslakiewicz <>
SVN-Revision: 48776

4 years agoswitch: allow Ethernet port LEDs to show specific port speeds only
Felix Fietkau [Thu, 25 Feb 2016 13:31:26 +0000 (13:31 +0000)]
switch: allow Ethernet port LEDs to show specific port speeds only

This patch adds speed_mask special file to LEDs connected to switch ports
via 'switch' trigger. It allows to choose which speeds to signal when link
is up. If router has more than one LED per port, they may light up
differently depending on how fast connection is. Default setting is 'all
speeds' so backward compatibility with system scripts (for example uci) is

Signed-off-by: Michal Cieslakiewicz <>
SVN-Revision: 48775

4 years agoswitch: make LED port_mask file write handler use kstrtoul() function
Felix Fietkau [Thu, 25 Feb 2016 13:31:23 +0000 (13:31 +0000)]
switch: make LED port_mask file write handler use kstrtoul() function

This patch changes swconfig_trig_port_mask_store() handler to utilize
kstrtoul() function instead of call to obsolete simple_strtoul(). Thanks
to this change, new handler takes less memory and makes port_mask special
file accept not only hexadecimal, but also decimal and octal numbers.

Signed-off-by: Michal Cieslakiewicz <>
SVN-Revision: 48774

4 years agokernel: crypto: add fsl CAAM package
John Crispin [Thu, 25 Feb 2016 10:14:24 +0000 (10:14 +0000)]
kernel: crypto: add fsl CAAM package

Kernel package enables the Freescale CAAM (crypto accelerator and assurance
module, aka SEC4). Sets kernel defaults for ringsize, intc, and debug.

Signed-off-by: Pushpal Sidhu <>
SVN-Revision: 48773

4 years agoramips: mt7620: fix failsafe switch config
John Crispin [Thu, 25 Feb 2016 10:14:22 +0000 (10:14 +0000)]
ramips: mt7620: fix failsafe switch config

As indicated in the bug tracker[1], failsafe mode is broken on at least some
devices using the mt7620 switch (and possibly mt7621). The thread explicitly
mentions the Xiaomi MiWifi, and the Nexx WT3020, and an unspecified device
using the mt7621 switch; the issue also applies to the Netgear EX2700.

The problem is that failsafe mode uses eth0, but enable_vlan is always set to 1
by the switch driver. Connecting to and/or pinging the device fails. This patch
fixes the failsafe preinit config, by making sure that vlan support is disabled.
It currently only fixes the switch config on mt7620, but might apply to the
mt7621 as well, so the patch has been designed with this in mind.

A similar (line wrapped) patch was submitted in December by Simon Peter, but never
accepted and/or discussed.

This patch applies to both Chaos Calmer and trunk.


Signed-off-by: Joseph C. Lehner <>
SVN-Revision: 48772

4 years agoramips: build factory images for Netgear EX2700
John Crispin [Thu, 25 Feb 2016 10:14:19 +0000 (10:14 +0000)]
ramips: build factory images for Netgear EX2700

This patch adds support for building factory and sysupgrade images
for the Netgear EX2700 that don't require modification of u-boot
environment variables.

The bootloader on this device expects the kernel partition to end
on a 64k block boundary. The last 64 byte of the kernel partition
must contain a valid uImage header - in the stock firmware, this is
the uImage header of the root filesystem. For this patch, we're using
the uImage header of a 0 byte partition (ex2700-fakeroot.uImage).

Signed-off-by: Joseph C. Lehner <>
SVN-Revision: 48771

4 years agoleds: support oneshot as well as timer triggers
John Crispin [Thu, 25 Feb 2016 10:14:16 +0000 (10:14 +0000)]
leds: support oneshot as well as timer triggers

oneshot and timer have the same configuration options, just a different
trigger name.

Signed-off-by: Karl Palsson <>
SVN-Revision: 48770

4 years agoar71xx: correct imagename for TPlink WA730RE
John Crispin [Thu, 25 Feb 2016 10:14:13 +0000 (10:14 +0000)]
ar71xx: correct imagename for TPlink WA730RE

- insert missing "-" to separate model and version

Signed-off-by: Sven Roederer <>
SVN-Revision: 48769

4 years agoar71xx: correct imagename for TPlink WA701ND
John Crispin [Thu, 25 Feb 2016 10:14:11 +0000 (10:14 +0000)]
ar71xx: correct imagename for TPlink WA701ND

- it seems there was never a 701N-model build

Signed-off-by: Sven Roederer <>
SVN-Revision: 48768

4 years agoar71xx: matchup of TPlink WR841N(D)-names
John Crispin [Thu, 25 Feb 2016 10:14:08 +0000 (10:14 +0000)]
ar71xx: matchup of TPlink WR841N(D)-names

- remove the suffix (N, ND) to indicate that the image is for all
- some of these models have a "N"-suffix, others have (ND)-suffix,
  but the boards are the same - only difference is the detachable
  antenna on "D"-models
- discussed this idea to remove the suffix in IRC with jow and Borromini

Signed-off-by: Sven Roederer <>
SVN-Revision: 48767

4 years agobrcm2708: remove linux 4.1 support
John Crispin [Thu, 25 Feb 2016 10:14:05 +0000 (10:14 +0000)]
brcm2708: remove linux 4.1 support

Signed-off-by: Álvaro Fernández Rojas <>
SVN-Revision: 48766

4 years agobrcm2708: switch to linux 4.4 and update patches
John Crispin [Thu, 25 Feb 2016 10:14:01 +0000 (10:14 +0000)]
brcm2708: switch to linux 4.4 and update patches

As usual these patches were extracted from:

Signed-off-by: Álvaro Fernández Rojas <>
SVN-Revision: 48765

4 years agouboot-oxnas: fix typo leading to tool not being built
John Crispin [Thu, 25 Feb 2016 10:13:53 +0000 (10:13 +0000)]
uboot-oxnas: fix typo leading to tool not being built

Fixes #21907

Signed-off-by: Daniel Golle <>
SVN-Revision: 48764

4 years agoltq-vdsl-app: Enable T1.413 in Annex A xTSE set
John Crispin [Thu, 25 Feb 2016 10:13:51 +0000 (10:13 +0000)]
ltq-vdsl-app: Enable T1.413 in Annex A xTSE set

Before r47933 Bit 1 (first bit) of xTSE Octet 1 (first octet) defaulted
to 1, which allowed T1.413 to operate.

Signed-off-by: Jonathan A. Kollasch <>
SVN-Revision: 48763

4 years agomusl: update to version 1.1.14
Felix Fietkau [Thu, 25 Feb 2016 09:24:46 +0000 (09:24 +0000)]
musl: update to version 1.1.14

Signed-off-by: Felix Fietkau <>
SVN-Revision: 48762

4 years agodnsmasq: export tftp root to the procd jail
Felix Fietkau [Thu, 25 Feb 2016 09:24:31 +0000 (09:24 +0000)]
dnsmasq: export tftp root to the procd jail

Signed-off-by: Felix Fietkau <>
SVN-Revision: 48761

4 years agodnsmasq: only enable tftp if the tftp root exists
Felix Fietkau [Thu, 25 Feb 2016 09:24:24 +0000 (09:24 +0000)]
dnsmasq: only enable tftp if the tftp root exists

Signed-off-by: Felix Fietkau <>
SVN-Revision: 48760

4 years agomac80211: fix an RTS/CTS issue in minstrel_ht
Felix Fietkau [Thu, 25 Feb 2016 09:24:13 +0000 (09:24 +0000)]
mac80211: fix an RTS/CTS issue in minstrel_ht

Signed-off-by: Felix Fietkau <>
SVN-Revision: 48759

4 years agomac80211: sync a-msdu tx patch with the latest upstream submission
Felix Fietkau [Thu, 25 Feb 2016 09:24:09 +0000 (09:24 +0000)]
mac80211: sync a-msdu tx patch with the latest upstream submission

Signed-off-by: Felix Fietkau <>
SVN-Revision: 48758

4 years agosunxi: add descriptor files for wifi+bt modules (AP6181/6210), add brcmfmac to banana...
Zoltan Herpai [Wed, 24 Feb 2016 23:31:48 +0000 (23:31 +0000)]
sunxi: add descriptor files for wifi+bt modules (AP6181/6210), add brcmfmac to bananapro profile

Signed-off-by: Zoltan HERPAI <>
SVN-Revision: 48757

4 years agokernel: replace bgmac patches for BCM47094 with final ones
Rafał Miłecki [Wed, 24 Feb 2016 22:43:43 +0000 (22:43 +0000)]
kernel: replace bgmac patches for BCM47094 with final ones

Signed-off-by: Rafał Miłecki <>
SVN-Revision: 48756

4 years agokernel: mtdsplit: support uimage with UBI
Rafał Miłecki [Wed, 24 Feb 2016 22:43:16 +0000 (22:43 +0000)]
kernel: mtdsplit: support uimage with UBI

This patch adds uimage firmware split support for ubi.

Signed-off-by: YounJae Rho <>
SVN-Revision: 48755

4 years agokernel: mtdsplit: add missing digest field to Seama header
Rafał Miłecki [Tue, 23 Feb 2016 14:40:40 +0000 (14:40 +0000)]
kernel: mtdsplit: add missing digest field to Seama header

Seama format has 2 similar headers: container (seal) header and entity
header. The first one has size always set to 0 and doesn't contain MD5

When dealing with Seama on a flash we deal directly with an entity. You
can see mtdsplit_parse_seama reads from offset 0 and expects entity to
be there. Seama container is used by bootloader / interface only which
extract entity out of it and flash it.

That said we should fix our header struct. This is important as we
calculate possible rootfs offset assuming it may be placed right after
Seama entity. So far calculate offset was always 16B too low.

Signed-off-by: Rafał Miłecki <>
SVN-Revision: 48754

4 years agoar71xx: reset ethernet tx ring on fast reset to prevent packet loss / irq issues
Felix Fietkau [Mon, 22 Feb 2016 15:11:23 +0000 (15:11 +0000)]
ar71xx: reset ethernet tx ring on fast reset to prevent packet loss / irq issues

Signed-off-by: Felix Fietkau <>
SVN-Revision: 48753

4 years agoustream-ssl: update to the latest version, fixes openssl TLS version selection
Felix Fietkau [Mon, 22 Feb 2016 08:54:46 +0000 (08:54 +0000)]
ustream-ssl: update to the latest version, fixes openssl TLS version selection

Signed-off-by: Felix Fietkau <>
SVN-Revision: 48752

4 years agoramips: fix WSR-1166 partition table
Felix Fietkau [Mon, 22 Feb 2016 08:54:32 +0000 (08:54 +0000)]
ramips: fix WSR-1166 partition table

- Fix typo in board_data partition start address
- Increase board_data partition size in order to exploit all flash size

Signed-off-by: Lorenzo Bianconi <>
SVN-Revision: 48751

4 years agomac80211: add packages libertas-spi module and firmware
Felix Fietkau [Mon, 22 Feb 2016 08:54:08 +0000 (08:54 +0000)]
mac80211: add packages libertas-spi module and firmware

This adds option to build kernel module and firmware packages
for a Marvell 8686 SPI Wireless device

Signed-off-by: Joseph Honold <>
SVN-Revision: 48750

4 years agoralink: fix mt7628 ehci support
John Crispin [Fri, 19 Feb 2016 16:38:04 +0000 (16:38 +0000)]
ralink: fix mt7628 ehci support

the u2_phy init was missing

Signed-off-by: John Crispin <>
SVN-Revision: 48747

4 years agoralink: unbreak port4 on mt7620
John Crispin [Fri, 19 Feb 2016 16:37:56 +0000 (16:37 +0000)]
ralink: unbreak port4 on mt7620

Signed-off-by: John Crispin <>
SVN-Revision: 48746

4 years agokernel: fix chainiv crypto modules in 4.3+ kernels
Steven Barth [Fri, 19 Feb 2016 11:49:03 +0000 (11:49 +0000)]
kernel: fix chainiv crypto modules in 4.3+ kernels

Signed-off-by: Steven Barth <>
SVN-Revision: 48745

4 years agomac80211: set default aggregation timeout to 0 to improve stability
Felix Fietkau [Thu, 18 Feb 2016 18:55:46 +0000 (18:55 +0000)]
mac80211: set default aggregation timeout to 0 to improve stability

Signed-off-by: Felix Fietkau <>
SVN-Revision: 48744

4 years agomac80211: update A-MSDU tx support to the latest version
Felix Fietkau [Thu, 18 Feb 2016 18:55:35 +0000 (18:55 +0000)]
mac80211: update A-MSDU tx support to the latest version

Signed-off-by: Felix Fietkau <>
SVN-Revision: 48743

4 years agoar71xx: add missing symbol to Linux 4.4 config (#21878)
Jo-Philipp Wich [Thu, 18 Feb 2016 12:09:34 +0000 (12:09 +0000)]
ar71xx: add missing symbol to Linux 4.4 config (#21878)

Signed-off-by: Jo-Philipp Wich <>
SVN-Revision: 48742

4 years agoarchs38: remove network config override
John Crispin [Thu, 18 Feb 2016 08:35:21 +0000 (08:35 +0000)]
archs38: remove network config override

Signed-off-by: John Crispin <>
SVN-Revision: 48741

4 years agolinux: add support of Synopsys ARCHS38-based boards
John Crispin [Thu, 18 Feb 2016 08:22:32 +0000 (08:22 +0000)]
linux: add support of Synopsys ARCHS38-based boards

This patch introduces support of new boards with ARC HS38 cores.

ARC HS38 is a new generation of ARC cores which utilize ARCv2 ISA.
As with ARC770 we're addind support for 2 boards for now:

 [1] Synopsys SDP board (AXS103)
     This is the same base-board as in AXS101 but with
     FPGA-based CPU-tile where ARCHs38 core is implemented.

 [2] nSIM
     Again this is the same simulation engine but configured for
     new instruction set and features of new CPU.

Signed-off-by: Alexey Brodkin <>
Cc: Felix Fietkau <>
Cc: Jo-Philipp Wich <>
Cc: Jonas Gorski <>
SVN-Revision: 48740

4 years agotoolchain: add support of ARCv2 architecture
John Crispin [Thu, 18 Feb 2016 08:22:17 +0000 (08:22 +0000)]
toolchain: add support of ARCv2 architecture

This change adds support of ARC ISAv2 processors in
OpenWRT toolchain.

In general gcc for ARC may compile code for both ISA versions
simultaneously but libgcc will be built only for default
architecture that's why it's necessary to specify --with-cpu
on gcc configuration.

As for uClibc we need to use different configurations for
different ARC ISAs.

Signed-off-by: Alexey Brodkin <>
Cc: Felix Fietkau <>
Cc: Jo-Philipp Wich <>
Cc: Jonas Gorski <>
SVN-Revision: 48739

4 years agolldp: Upgrade to 0.9.0
John Crispin [Thu, 18 Feb 2016 08:22:07 +0000 (08:22 +0000)]
lldp: Upgrade to 0.9.0

Signed-off-by: Ben Kelly <>
SVN-Revision: 48738

4 years agomvebu: add SolidRun ClearFog A1 support
Luka Perkov [Wed, 17 Feb 2016 17:49:26 +0000 (17:49 +0000)]
mvebu: add SolidRun ClearFog A1 support

Signed-off-by: Andrej Vlasic <>
SVN-Revision: 48736

4 years agotoolchain: use latest glibc 2.21 and 2.22 revisions
Jo-Philipp Wich [Wed, 17 Feb 2016 08:44:49 +0000 (08:44 +0000)]
toolchain: use latest glibc 2.21 and 2.22 revisions

Refresh patches and rework Makefile to fetch glibc from release branches
instead of relying on tarballs.

Signed-off-by: Jo-Philipp Wich <>
SVN-Revision: 48735

4 years agotoolchain: mark eglibc 2.19 broken
Jo-Philipp Wich [Wed, 17 Feb 2016 08:44:45 +0000 (08:44 +0000)]
toolchain: mark eglibc 2.19 broken

Upstream is dead and the last available version has multiple open CVEs.

Signed-off-by: Jo-Philipp Wich <>
SVN-Revision: 48734

4 years fix packed checkout mirroring support
Jo-Philipp Wich [Wed, 17 Feb 2016 08:44:37 +0000 (08:44 +0000)] fix packed checkout mirroring support

Changeset r48416  broke the downloading of mirrored, packed scm checkouts.

Fix this by removing the "@" sign in front of the download command which is
now executed as part of a larger shell command under flock.

Signed-off-by: Jo-Philipp Wich <>
SVN-Revision: 48733

4 years agobrcm2708-gpu-fw: move pkg build dir to kernel build dir to fix rebuild bugs after...
Felix Fietkau [Tue, 16 Feb 2016 21:42:00 +0000 (21:42 +0000)]
brcm2708-gpu-fw: move pkg build dir to kernel build dir to fix rebuild bugs after cleaning the kernel tree

Signed-off-by: Felix Fietkau <>
SVN-Revision: 48732

4 years agogdb: fix powerpc build issues with musl
Felix Fietkau [Tue, 16 Feb 2016 21:30:20 +0000 (21:30 +0000)]
gdb: fix powerpc build issues with musl

Signed-off-by: Felix Fietkau <>
SVN-Revision: 48731

4 years agokernel: add missing symbols to config-4.4
John Crispin [Tue, 16 Feb 2016 16:25:49 +0000 (16:25 +0000)]
kernel: add missing symbols to config-4.4

Signed-off-by: John Crispin <>
SVN-Revision: 48730

4 years agokernel: add mode backlight symbols
John Crispin [Tue, 16 Feb 2016 16:25:40 +0000 (16:25 +0000)]
kernel: add mode backlight symbols

Signed-off-by: John Crispin <>
SVN-Revision: 48729

4 years agokernel: add missing symbol to usb-audio
John Crispin [Tue, 16 Feb 2016 16:25:33 +0000 (16:25 +0000)]
kernel: add missing symbol to usb-audio

Signed-off-by: John Crispin <>
SVN-Revision: 48728

4 years agokernel: DSA is missing a OF dependend dep for mdio
John Crispin [Tue, 16 Feb 2016 16:25:25 +0000 (16:25 +0000)]
kernel: DSA is missing a OF dependend dep for mdio

Signed-off-by: John Crispin <>
SVN-Revision: 48727

4 years agoat91: udc driver was missing deps
John Crispin [Tue, 16 Feb 2016 16:25:16 +0000 (16:25 +0000)]
at91: udc driver was missing deps

Signed-off-by: John Crispin <>
SVN-Revision: 48726

4 years agomvebu: add missing symbols.
John Crispin [Tue, 16 Feb 2016 16:25:10 +0000 (16:25 +0000)]
mvebu: add missing symbols.

this broke full builds of the mvebu target

Signed-off-by: John Crispin <>
SVN-Revision: 48725

4 years agokernel: crypto-echainiv was missing deps
John Crispin [Tue, 16 Feb 2016 07:47:06 +0000 (07:47 +0000)]
kernel: crypto-echainiv was missing deps

Signed-off-by: John Crispin <>
SVN-Revision: 48724

4 years agokernel: add missing libphy dep to DSA
John Crispin [Mon, 15 Feb 2016 18:45:34 +0000 (18:45 +0000)]
kernel: add missing libphy dep to DSA

Signed-off-by: John Crispin <>
SVN-Revision: 48723

4 years agokernel: MPLS did not exist prior to v4.4
John Crispin [Mon, 15 Feb 2016 18:45:27 +0000 (18:45 +0000)]
kernel: MPLS did not exist prior to v4.4

Signed-off-by: John Crispin <>
SVN-Revision: 48722

4 years agoramips: Add support for Phicomm PSG1208
John Crispin [Mon, 15 Feb 2016 18:45:22 +0000 (18:45 +0000)]
ramips: Add support for Phicomm PSG1208

This patch adds support for Phicomm PSG1208.This is a router with MT7620A SoC with 8M flash and 64M ram.
The WPS led is uesd as status_led because the power light can't be controlled with GPIO.
It seems that the 5g wifi led is connected to MT7612E and it can't be controlled with GPIO too.

Signed-off-by: Chuanhong Guo <>
SVN-Revision: 48721

4 years agoperf: add dependency on !LINUX_3_18 to fix builds
Felix Fietkau [Mon, 15 Feb 2016 10:53:23 +0000 (10:53 +0000)]
perf: add dependency on !LINUX_3_18 to fix builds

Signed-off-by: Felix Fietkau <>
SVN-Revision: 48720

4 years agomac80211: fix a crash in monitor mode injection
Felix Fietkau [Sun, 14 Feb 2016 12:26:49 +0000 (12:26 +0000)]
mac80211: fix a crash in monitor mode injection

Signed-off-by: Felix Fietkau <>
SVN-Revision: 48719

4 years agobuild: disable the use of -iremap for UML (#21851)
Felix Fietkau [Sat, 13 Feb 2016 22:23:32 +0000 (22:23 +0000)]
build: disable the use of -iremap for UML (#21851)

Signed-off-by: Felix Fietkau <>
SVN-Revision: 48718

4 years agoar71xx: add missing kernel symbol (#21849)
Jo-Philipp Wich [Fri, 12 Feb 2016 19:55:07 +0000 (19:55 +0000)]
ar71xx: add missing kernel symbol (#21849)

Also reorder subtarget kernel configs.

Signed-off-by: Jo-Philipp Wich <>
SVN-Revision: 48717

4 years agobusybox: fix broken default for FEATURE_IP_ROUTE_DIR (#21845)
Jo-Philipp Wich [Fri, 12 Feb 2016 19:46:31 +0000 (19:46 +0000)]
busybox: fix broken default for FEATURE_IP_ROUTE_DIR (#21845)

Changeset r47775 introduced a wrong default value "n" for the ip applets
config search path, breaking the handling of named routing tables and other
objects having alias configurations.

Fix the issue by providing a proper default value aligned with the value
used by full iproute2.

Signed-off-by: Jo-Philipp Wich <>
SVN-Revision: 48716

4 years agoramips: Support LEDs on D-Link DIR-860L B1
John Crispin [Fri, 12 Feb 2016 09:29:23 +0000 (09:29 +0000)]
ramips: Support LEDs on D-Link DIR-860L B1

Adds the required gpio definitions.

Signed-off-by: Johannes Wienke <>
SVN-Revision: 48715

4 years agolinux/crypto: Add echainiv module provided by 4.4 kernels
John Crispin [Fri, 12 Feb 2016 08:31:54 +0000 (08:31 +0000)]
linux/crypto: Add echainiv module provided by 4.4 kernels

This module is needed for IPsec ESP support, i.e..

Signed-off-by: André Valentin <>
SVN-Revision: 48714

4 years agokernel: add dsa driver support
John Crispin [Fri, 12 Feb 2016 08:31:49 +0000 (08:31 +0000)]
kernel: add dsa driver support

The Linux Distributed Switch Architecture drivers provide richer support than
the swconfig driver API in that each switch port gets its own interface which
allows protocols such as STP, LLDP, 802.1x etc.

Signed-off-by: Tim Harvey <>
Signed-off-by: Pushpal Sidhu <>
SVN-Revision: 48713

4 years agopackage/libs/gmp: update libgmp to 6.1.0
John Crispin [Fri, 12 Feb 2016 08:31:39 +0000 (08:31 +0000)]
package/libs/gmp: update libgmp to 6.1.0

Update also the library version of gmp to 6.1.0.
Switch download to use the GNU alias.

Signed-off-by: Hannu Nyman <>
SVN-Revision: 48712