openwrt/staging/nbd.git
8 years agoubox: fixes segfault inside kmodloader
John Crispin [Thu, 18 Aug 2016 07:00:49 +0000 (09:00 +0200)]
ubox: fixes segfault inside kmodloader

null pointer deref when no modules folder was present

Signed-off-by: John Crispin <john@phrozen.org>
8 years agokernel: bgmac: add support for BCM53573
Rafał Miłecki [Thu, 18 Aug 2016 04:59:09 +0000 (06:59 +0200)]
kernel: bgmac: add support for BCM53573

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
8 years agokernel: bgmac: fix regression in MII registration
Rafał Miłecki [Thu, 18 Aug 2016 04:52:04 +0000 (06:52 +0200)]
kernel: bgmac: fix regression in MII registration

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
8 years agokernel: bgmac: backport 3 remaining small fixes
Rafał Miłecki [Wed, 17 Aug 2016 10:54:49 +0000 (12:54 +0200)]
kernel: bgmac: backport 3 remaining small fixes

This makes bgmac in sync with upstream verison.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
8 years agokernel: bgmac: backport patch adding platform support
Rafał Miłecki [Wed, 17 Aug 2016 07:30:44 +0000 (09:30 +0200)]
kernel: bgmac: backport patch adding platform support

It also reworks bcma support by moving specific code to separated file.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
8 years agokernel: bgmac: backport patch switching to feature_flags
Rafał Miłecki [Wed, 17 Aug 2016 05:45:48 +0000 (07:45 +0200)]
kernel: bgmac: backport patch switching to feature_flags

It was needed upstream to avoid bcma references in the main code. To
match this new code our patch adding SRAB was also updated.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
8 years agoarchs38: Introduce images for SD-cards
Alexey Brodkin [Tue, 16 Aug 2016 11:49:20 +0000 (14:49 +0300)]
archs38: Introduce images for SD-cards

Historically on ARC we started from initramfs-based images because:
 a) It was much easier to debug especially when toolchain and other
    components were changing quite dynamically
 b) It was our usual approach for embedded Linux

But now with ARC port of Lede/OpenWRT getting more stable and mature
we're ready for more real-life scenarios with FS permanently stored
on SD-card. This essentially benefits from ability to setup devices
that survive reboots with all settings and extra packages kept in place.

Still we keep an ability to build images with initramfs.
This allows us to use storage-less simulators for testing still.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Cc: John Crispin <john@phrozen.org>
8 years agoarchs38: Remove MMC kernel modules, they are built-in now
Alexey Brodkin [Tue, 16 Aug 2016 11:49:19 +0000 (14:49 +0300)]
archs38: Remove MMC kernel modules, they are built-in now

If we want to boot from SD-card we need to have corresponding
drivers already built-in so there's no point in having these
modules.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
8 years agoarchs38: Update kernel configuration
Alexey Brodkin [Tue, 16 Aug 2016 11:49:18 +0000 (14:49 +0300)]
archs38: Update kernel configuration

Now when we're switching to FS on SD-card it's necessary to have
full stack of MMC block & FC drivers built-in otherwise kernel won't
be able to mount FS with needed modules.

Also we enable parsing of input parameters passed to the kernel by
U-Boot. Otherwise kernel won't know where to look for command line and
what's worse device tree blob (we had to disable this by default for
cases when kernel is loaded by JTAG and core registers may have
undefined state lading to kernel going bonkers).

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
8 years agoarchs38: Reduce generalization
Alexey Brodkin [Tue, 16 Aug 2016 11:49:17 +0000 (14:49 +0300)]
archs38: Reduce generalization

As support of ARC HS38 in OpenWRT/Lede matures we don't need
debug-only output binaries any longer, so purging vmlinux for
AXS10x boards.

As for uImage for nSIM it makes completely no sense because there's no
way to run U-Boot on nSIM.

So we remove add_archs38_XXX scripts making code more compact and
cleaner.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
8 years agoarc: use patched .dts from sources
Alexey Brodkin [Tue, 16 Aug 2016 11:49:16 +0000 (14:49 +0300)]
arc: use patched .dts from sources

Instead of using off-the-tree .dts files for ARC boards we're
switching to use in-tree ones. And for that to work properly
we apply upstream patch that adds currently missing "model"
property.

Upstream patch and discussion could be found here:
http://lists.infradead.org/pipermail/linux-snps-arc/2016-August/001394.html

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Jonas Gorski <jonas.gorski@gmail.com>
Cc: John Crispin <john@phrozen.org>
8 years agotools/tar: Bump to 1.29
Alexey Brodkin [Tue, 16 Aug 2016 10:44:05 +0000 (13:44 +0300)]
tools/tar: Bump to 1.29

This change updates tar from 1.28 to 1.29.
Among other changes following commit
http://git.savannah.gnu.org/cgit/tar.git/commit/lib/xattr-at.c?h=9c2b57232e3bc2e5ba85387560bcdd851849a128
substitutes previously used off-the-tree patch 100-fix_xattr_disable.patch

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
8 years agoath9k: switch to using mac80211 intermediate software queues
Felix Fietkau [Fri, 8 Jul 2016 16:08:01 +0000 (18:08 +0200)]
ath9k: switch to using mac80211 intermediate software queues

Provides a nice latency reduction under load, due to mac80211's fq_codel
support.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agokernel: backport bgmac patch moving MDIO code into separated file
Rafał Miłecki [Tue, 16 Aug 2016 22:06:14 +0000 (00:06 +0200)]
kernel: backport bgmac patch moving MDIO code into separated file

This prepares bgmac for the biggest change: dropping bcma dependency.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
8 years agokernel: backport simple bgmac cleanup & fix from Jon
Rafał Miłecki [Tue, 16 Aug 2016 21:24:26 +0000 (23:24 +0200)]
kernel: backport simple bgmac cleanup & fix from Jon

These 2 trivial patches will be followed by a bigger bgmac rework so
they are worth backporting in a separated patch.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
8 years agokernel: add BCM53573 flash fix sent upstream
Rafał Miłecki [Tue, 16 Aug 2016 20:33:21 +0000 (22:33 +0200)]
kernel: add BCM53573 flash fix sent upstream

This fixes flash corruptions. It touches bcm47xxsflash driver shared
between brcm47xx and bcm53xx so put it in generic.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
8 years agokernel: update bgmac by adding Florian's upstream changes
Rafał Miłecki [Tue, 16 Aug 2016 15:40:32 +0000 (17:40 +0200)]
kernel: update bgmac by adding Florian's upstream changes

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
8 years agoswconfig: revert the portmapping patches, they seem to cause a segfault
John Crispin [Tue, 16 Aug 2016 08:19:13 +0000 (10:19 +0200)]
swconfig: revert the portmapping patches, they seem to cause a segfault

Revert "kernel/swconfig: remove obsolete portmapping feature from swconfig"

This reverts commit 675407baa44a8700de20b6b2857009a552a807ba.

Revert "swconfig: remove obsolete portmapping feature"

This reverts commit fca1eb349ef31b133a62880cbd562d6bf17500aa.

Signed-off-by: John Crispin <john@phrozen.org>
8 years agobcm53xx: fix warning caused by m25p80 patch
Rafał Miłecki [Tue, 16 Aug 2016 15:11:09 +0000 (17:11 +0200)]
bcm53xx: fix warning caused by m25p80 patch

It was adding unused variable:
drivers/mtd/devices/m25p80.c: In function 'm25p80_write':
drivers/mtd/devices/m25p80.c:85:6: warning: unused variable 'i' [-Wunused-variable]
  int i;
      ^

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
8 years agokernel: support watchdog (and so reboot) on BCM53573
Rafał Miłecki [Tue, 16 Aug 2016 14:53:11 +0000 (16:53 +0200)]
kernel: support watchdog (and so reboot) on BCM53573

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
8 years agolantiq/xrx200-net: Add support for eth0 as WAN interface
Martin Schiller [Tue, 16 Aug 2016 04:53:58 +0000 (06:53 +0200)]
lantiq/xrx200-net: Add support for eth0 as WAN interface

Use priv->wan instead of priv->id as indicator if packets should go to the
Ethernet WAN group (DPID=1) or not (DPID=0). This way, it's independant of
interface names or indexes.

Signed-off-by: Martin Schiller <mschiller@tdt.de>
8 years agokernel: add kmod-squashfs
Matteo Croce [Thu, 11 Aug 2016 14:11:39 +0000 (16:11 +0200)]
kernel: add kmod-squashfs

add kernel package to build squashfs as module when it's not the root filesystem

Signed-off-by: Matteo Croce <matteo.croce@canonical.com>
8 years agolantiq: add kmod-ledtrig-usbdev to device packages which have usb led
Matti Laakso [Sat, 13 Aug 2016 12:07:48 +0000 (15:07 +0300)]
lantiq: add kmod-ledtrig-usbdev to device packages which have usb led

By default USB LEDs are associated with usbdev trigger. However,
not all devices which have USB LEDs have kmod-ledtrig-usbdev in their
list of default packages. Add it to the relevant devices.

Signed-off-by: Matti Laakso <matti.laakso@outlook.com>
8 years agolibs/gmp: update to 6.1.1
Hannu Nyman [Mon, 15 Aug 2016 08:26:55 +0000 (11:26 +0300)]
libs/gmp: update to 6.1.1

Update libgmp to 6.1.1

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
8 years agotools/gmp: update to 6.1.1
Hannu Nyman [Mon, 15 Aug 2016 08:26:13 +0000 (11:26 +0300)]
tools/gmp: update to 6.1.1

Update gmp to 6.1.1

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
8 years agotools/scons: update to 2.5.0
Hannu Nyman [Mon, 15 Aug 2016 08:29:31 +0000 (11:29 +0300)]
tools/scons: update to 2.5.0

Update scons to 2.5.0

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
8 years agotools/cmake: update to 3.6.1
Hannu Nyman [Mon, 15 Aug 2016 08:22:21 +0000 (11:22 +0300)]
tools/cmake: update to 3.6.1

Update cmake to 3.6.1

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
8 years agopackage/devel/gdb: Update to 7.11.1
Hannu Nyman [Mon, 15 Aug 2016 08:32:45 +0000 (11:32 +0300)]
package/devel/gdb: Update to 7.11.1

Update gdb to version 7.11.1 to match the version in toolchain.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
8 years agorb532: rename patches directory to patches-4.1
Stijn Tintel [Sun, 14 Aug 2016 20:45:43 +0000 (23:45 +0300)]
rb532: rename patches directory to patches-4.1

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
8 years agoorion: rename patches directory to patches-3.18
Stijn Tintel [Sun, 14 Aug 2016 20:45:42 +0000 (23:45 +0300)]
orion: rename patches directory to patches-3.18

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
8 years agoomap: rename patches directory to patches-4.4
Stijn Tintel [Sun, 14 Aug 2016 20:45:41 +0000 (23:45 +0300)]
omap: rename patches directory to patches-4.4

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
8 years agoau1000: rename patches directory to patches-3.18
Stijn Tintel [Sun, 14 Aug 2016 20:45:40 +0000 (23:45 +0300)]
au1000: rename patches directory to patches-3.18

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
8 years agomalta: enable be64 and le64 subtargets
Yousong Zhou [Mon, 15 Aug 2016 11:16:02 +0000 (19:16 +0800)]
malta: enable be64 and le64 subtargets

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
8 years agoocteon: remove the now redundant cpu cflags override
Yousong Zhou [Mon, 15 Aug 2016 11:16:03 +0000 (19:16 +0800)]
octeon: remove the now redundant cpu cflags override

The flags are now properly defined in include/target.mk

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
8 years agolantiq/xrx200-net: add interrupt for second DMA TX channel to vr9.dtsi
Martin Schiller [Fri, 12 Aug 2016 08:39:39 +0000 (10:39 +0200)]
lantiq/xrx200-net: add interrupt for second DMA TX channel to vr9.dtsi

Signed-off-by: Martin Schiller <mschiller@tdt.de>
8 years agolantiq/xrx200-net: fix "tx ring full" error by introducing second DMA TX channel
Martin Schiller [Fri, 12 Aug 2016 08:39:38 +0000 (10:39 +0200)]
lantiq/xrx200-net: fix "tx ring full" error by introducing second DMA TX channel

With an own DMA TX channel for each network device (eth0 + eth1) there
won't be any "tx ring full" errors any more.

This patch also move the spinlocks to the channel level instead of locking
the whole xrx200_hw structure.

Signed-off-by: Martin Schiller <mschiller@tdt.de>
8 years agoswconfig: remove obsolete portmapping feature
John Crispin [Fri, 12 Aug 2016 12:54:26 +0000 (14:54 +0200)]
swconfig: remove obsolete portmapping feature

Signed-off-by: John Crispin <john@phrozen.org>
8 years agokernel/swconfig: remove obsolete portmapping feature from swconfig
John Crispin [Fri, 12 Aug 2016 12:51:59 +0000 (14:51 +0200)]
kernel/swconfig: remove obsolete portmapping feature from swconfig

Signed-off-by: John Crispin <john@phrozen.org>
8 years agosamba: add file/interface reload triggers & filter interfaces
Conn O'Griofa [Thu, 4 Aug 2016 00:31:50 +0000 (01:31 +0100)]
samba: add file/interface reload triggers & filter interfaces

* Only parse interfaces that are up during init_config (as the
  script depends on this to determine the proper IP/subnet range)
* Add reload interface triggers for samba-designated interfaces
* Force full service restart upon config change to ensure Samba
  binds to new interfaces (sending HUP signal doesn't work)
* Rename "interface" variable to "samba_iface" and move into
  global scope

Needed to fix Samba connectivity for clients connecting from a
different LAN subnet (e.g. pseudobridge configurations) due to the
'bind interfaces only' setting.

Signed-off-by: Conn O'Griofa <connogriofa@gmail.com>
8 years agoar71xx: fix profile name of Mercury MW4530R
Chuanhong Guo [Thu, 11 Aug 2016 03:35:21 +0000 (11:35 +0800)]
ar71xx: fix profile name of Mercury MW4530R

The mw4530r-v1 profile in tp-link.mk is for Mercury MW4530R.
There is no such a device called TL-WDR4530.
Also change MERCURY to Mercury in /lib/ar71xx.sh

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
8 years agoprocd: update to latest git HEAD
John Crispin [Mon, 15 Aug 2016 13:15:27 +0000 (15:15 +0200)]
procd: update to latest git HEAD

adds O_PATH define

Signed-off-by: John Crispin <john@phrozen.org>
8 years agoncurses: change handling of PKG_CONFIG_LIBDIR
Jo-Philipp Wich [Mon, 8 Aug 2016 15:14:41 +0000 (17:14 +0200)]
ncurses: change handling of PKG_CONFIG_LIBDIR

When PKG_CONFIG_LIBDIR was unset in the environment, the configure
script was deducing the PKG_CONFIG_LIBDIR from the location of the
pkg-config binary, which doesn't make a lot of sense, and isn't done
by other autotools based packages.

Patch imported from the Buildroot project:
https://github.com/buildroot/buildroot/blob/master/package/ncurses/0001-fixup-pkg-config-handling.patch

Also refresh patches while we're at.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agoscripts: ipkg-build: do not require git or svn
Jo-Philipp Wich [Mon, 15 Aug 2016 11:27:11 +0000 (13:27 +0200)]
scripts: ipkg-build: do not require git or svn

Move the "which svn" and "which git" calls next to the timestamp commands
using those tools to not prematurely fail on systems where svn or git are
not present.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agokernel: fix crashlog on x86/64
Jo-Philipp Wich [Mon, 15 Aug 2016 10:14:50 +0000 (12:14 +0200)]
kernel: fix crashlog on x86/64

The bootmem area reserved for crashlog might be smaller than CRASHLOG_OFFSET
bytes, leading to an integer underflow when calculating the memory address
in crashlog_set_addr() which subsequently causes the kernel to crash when
attempting to vmap() the crashlog pages.

Change the logic to only consider the offset when the size of the used memory
area is sufficient.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agobcm53xx: add quick fixes for BCM53573
Rafał Miłecki [Mon, 15 Aug 2016 10:47:21 +0000 (12:47 +0200)]
bcm53xx: add quick fixes for BCM53573

It adds and uses ILP clock that requires some other work (in progress)
for upstreaming it. Other than that it adds a quick fix for bcma to add
serial flash before trying to read SPROM.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
8 years agobcm53xx: add temporary BCM53573 ILP clock driver
Rafał Miłecki [Mon, 15 Aug 2016 08:19:10 +0000 (10:19 +0200)]
bcm53xx: add temporary BCM53573 ILP clock driver

It wasn't accepted upstream as there was a discusson on Northstar vs.
BCM53573. Once we get a new ARM arch Kconfig entry it should be
possible to upstream it.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
8 years agobcm53xx: prepare for building Tenda AC9 TRX image
Rafał Miłecki [Mon, 15 Aug 2016 07:28:54 +0000 (09:28 +0200)]
bcm53xx: prepare for building Tenda AC9 TRX image

It'll be enabled when we complete basic support.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
8 years agotoolchain/uClibc: add missing config symbol
Stijn Tintel [Sat, 13 Aug 2016 19:50:18 +0000 (21:50 +0200)]
toolchain/uClibc: add missing config symbol

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
8 years agobcm53xx: drop target's preinit network support script
Rafał Miłecki [Sun, 14 Aug 2016 21:12:36 +0000 (23:12 +0200)]
bcm53xx: drop target's preinit network support script

We don't need it anymore since the rework of generic preinit script.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
8 years agobase-files: set pi_ifname in board.d case to fix deconfig
Jonas Gorski [Sun, 14 Aug 2016 20:59:28 +0000 (22:59 +0200)]
base-files: set pi_ifname in board.d case to fix deconfig

Due to an empty pi_ifname in the generic failsafe setup, the deconfig
never removed the failsafe networking interface, causing broken
networking later on.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
8 years agotools: make_ext4fs: switch to LEDE git mirror
Jo-Philipp Wich [Sun, 14 Aug 2016 20:29:36 +0000 (22:29 +0200)]
tools: make_ext4fs: switch to LEDE git mirror

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agotools: make_ext4fs: support creating empty filesystem images
Jo-Philipp Wich [Sun, 14 Aug 2016 20:18:53 +0000 (22:18 +0200)]
tools: make_ext4fs: support creating empty filesystem images

Update make_ext4fs to latest git head in order to support creating empty
filesystem images by making the source directory argument optional.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agomvebu: rework ClearFog bundle.tar.gz generation
Jo-Philipp Wich [Sun, 14 Aug 2016 17:24:56 +0000 (19:24 +0200)]
mvebu: rework ClearFog bundle.tar.gz generation

Instead of introducing a fake filesystem type, move the tar generation step
directly into the image build step.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agobcm53xx: support USB 2.0 controller on BCM53573
Rafał Miłecki [Sun, 14 Aug 2016 11:05:02 +0000 (13:05 +0200)]
bcm53xx: support USB 2.0 controller on BCM53573

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
8 years agobcm53xx: backport USB 3.0 controller init patch
Rafał Miłecki [Sun, 14 Aug 2016 10:41:32 +0000 (12:41 +0200)]
bcm53xx: backport USB 3.0 controller init patch

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
8 years agobcm53xx: backport USB 3.0 Northstar PHY driver
Rafał Miłecki [Sun, 14 Aug 2016 09:30:36 +0000 (11:30 +0200)]
bcm53xx: backport USB 3.0 Northstar PHY driver

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
8 years agobcm53xx: rename PHY patches to use 07* prefix
Rafał Miłecki [Sun, 14 Aug 2016 09:21:48 +0000 (11:21 +0200)]
bcm53xx: rename PHY patches to use 07* prefix

This is not a strict rule but it matches better this one:
7xx - network / phy driver patches

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
8 years agomvebu: add ClearFog .tar.gz bundle
Jo-Philipp Wich [Thu, 11 Aug 2016 15:20:54 +0000 (17:20 +0200)]
mvebu: add ClearFog .tar.gz bundle

The previous image building code rework removed the rootfs.tar.gz with embedded
kernel and dtb build artifact which is required to build suitable SD images.

Reintroduce a .tar.gz artifact locally which embeds kernel and dtb, similar to
how the old code handled it.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agokernel: backport upstream challenge ACK fix (CVE-2016-5696)
Jo-Philipp Wich [Sat, 13 Aug 2016 13:17:42 +0000 (15:17 +0200)]
kernel: backport upstream challenge ACK fix (CVE-2016-5696)

Yue Cao claims that current host rate limiting of challenge ACKS
(RFC 5961) could leak enough information to allow a patient attacker
to hijack TCP sessions. He will soon provide details in an academic
paper.

Backports upstream commit 75ff39ccc1bd5d3c455b6822ab09e533c551f758
to the used LEDE kernel versions.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agobrcm63xx: switch to board based failsafe networking
Jonas Gorski [Sat, 13 Aug 2016 11:53:06 +0000 (13:53 +0200)]
brcm63xx: switch to board based failsafe networking

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
8 years agobase-files: configure switch in failsafe
Jonas Gorski [Thu, 28 Jul 2016 22:25:09 +0000 (00:25 +0200)]
base-files: configure switch in failsafe

Also configure the switch based on the failsafe config, and create the
failsafe interface as tagged if necessary.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
8 years agobase-files: allow failsafe to configure vlans
Jonas Gorski [Thu, 28 Jul 2016 22:23:55 +0000 (00:23 +0200)]
base-files: allow failsafe to configure vlans

In preparation of properly setting up vlans and switches, add
support for configuring failsafe on a vlan tagged interface.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
8 years agobase-files: add preinit ifname detection based on board.json
Jonas Gorski [Thu, 28 Jul 2016 20:58:59 +0000 (22:58 +0200)]
base-files: add preinit ifname detection based on board.json

Make use of the existing board.d to autodetect lan ifname in a generic way.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
8 years agobase-files: split out preinit interface config
Jonas Gorski [Fri, 12 Aug 2016 14:47:25 +0000 (16:47 +0200)]
base-files: split out preinit interface config

Move preinit interface and ip config to its own function to allow
calling it from more than one place.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
8 years agobase-files: board_detect: allow specifying the generated file
Jonas Gorski [Sat, 13 Aug 2016 12:04:23 +0000 (14:04 +0200)]
base-files: board_detect: allow specifying the generated file

Allow passing a filename to change the location of the generated
board.json.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
8 years agobase-files: let config_generate call board_detect
Jonas Gorski [Sat, 13 Aug 2016 12:04:23 +0000 (14:04 +0200)]
base-files: let config_generate call board_detect

Instead of board_detect generating the config as a side effect, let
config_generate call board_detect as needed.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
8 years agobrcm63xx: backport mtd of node changes from upstream
Jonas Gorski [Tue, 9 Aug 2016 09:23:32 +0000 (11:23 +0200)]
brcm63xx: backport mtd of node changes from upstream

Should fix parser data containing uninitialized values for of probed
physmap flashes, which could break e.g. the redboot parser.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
8 years agokernel: check SOURCE_DATE_EPOCH before setting KBUILD_BUILD_TIMESTAMP
Jonas Gorski [Sat, 13 Aug 2016 13:47:48 +0000 (15:47 +0200)]
kernel: check SOURCE_DATE_EPOCH before setting KBUILD_BUILD_TIMESTAMP

Make sure SOURCE_DATE_EPOCH actually contains something.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
8 years agokernel: allow reproducable builds
Jonas Gorski [Sat, 13 Aug 2016 09:29:46 +0000 (11:29 +0200)]
kernel: allow reproducable builds

Similar how we fix the file times in the filesystems, fix the build time
of the kernel, and make the build number static. This should allow the
kernel build to be reproducable when combined with setting the
KERNEL_BUILD_USER and _DOMAIN in case of different machines.

The reproducability only applies to non-initramfs kernels, those still
require additional changes.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
8 years agodropbear: security update to 2016.74
Jo-Philipp Wich [Fri, 12 Aug 2016 09:44:07 +0000 (11:44 +0200)]
dropbear: security update to 2016.74

- Security: Message printout was vulnerable to format string injection.

  If specific usernames including "%" symbols can be created on a system
  (validated by getpwnam()) then an attacker could run arbitrary code as root
  when connecting to Dropbear server.

  A dbclient user who can control username or host arguments could potentially
  run arbitrary code as the dbclient user. This could be a problem if scripts
  or webpages pass untrusted input to the dbclient program.

- Security: dropbearconvert import of OpenSSH keys could run arbitrary code as
  the local dropbearconvert user when parsing malicious key files

- Security: dbclient could run arbitrary code as the local dbclient user if
  particular -m or -c arguments are provided. This could be an issue where
  dbclient is used in scripts.

- Security: dbclient or dropbear server could expose process memory to the
  running user if compiled with DEBUG_TRACE and running with -v

  The security issues were reported by an anonymous researcher working with
  Beyond Security's SecuriTeam Secure Disclosure www.beyondsecurity.com/ssd.html

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agomwlwifi: upgrade to 10.3.0.18-20160804
Imre Kaloz [Thu, 11 Aug 2016 13:51:55 +0000 (15:51 +0200)]
mwlwifi: upgrade to 10.3.0.18-20160804

adds support for the Linksys WRT1900ACSv2 and WRT1200ACv2

Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
8 years agokernel: add missing config symbol
Felix Fietkau [Thu, 11 Aug 2016 16:32:51 +0000 (18:32 +0200)]
kernel: add missing config symbol

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agooxnas: set preinit network interface
Daniel Golle [Thu, 11 Aug 2016 09:36:08 +0000 (11:36 +0200)]
oxnas: set preinit network interface

set network interface for failsafe mode to eth0 for all boards

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
8 years agoramips: fix legacy image build
Felix Fietkau [Thu, 11 Aug 2016 15:00:36 +0000 (17:00 +0200)]
ramips: fix legacy image build

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agokernel: fix crashlog issues on highmem systems
Felix Fietkau [Thu, 11 Aug 2016 15:02:32 +0000 (17:02 +0200)]
kernel: fix crashlog issues on highmem systems

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agobcm53xx: add profiles for Buffalo devices
Rafał Miłecki [Thu, 11 Aug 2016 10:17:06 +0000 (12:17 +0200)]
bcm53xx: add profiles for Buffalo devices

This generates proper images when using CONFIG_TARGET_MULTI_PROFILE and
CONFIG_TARGET_PER_DEVICE_ROOTFS.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
8 years agobcm53xx: include USB modules in images for devices with USB ports
Rafał Miłecki [Thu, 11 Aug 2016 09:59:28 +0000 (11:59 +0200)]
bcm53xx: include USB modules in images for devices with USB ports

This allows using USB out of the box.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
8 years agobcm53xx: add profiles for all other (SoftMAC) devices
Rafał Miłecki [Thu, 11 Aug 2016 06:59:54 +0000 (08:59 +0200)]
bcm53xx: add profiles for all other (SoftMAC) devices

Thanks to this images for SoftMAC devices don't get brcmfmac anymore and
b43 is added for devices with (quite poor) support only.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
8 years agoath10k-firmware: Update to latest 99X0 CT firmware.
Ben Greear [Wed, 10 Aug 2016 22:46:16 +0000 (15:46 -0700)]
ath10k-firmware: Update to latest 99X0 CT firmware.

Among other things, this compiles out support for peer caching.
The feature did not seem to work well in my testing of AP mode,
and totally breaks my own special use of station mode.

Briefly tested on ea8500.

Signed-off-by: Ben Greear <greearb@candelatech.com>
8 years agoath10k-ct: Fix loading 9980 firmware.
Ben Greear [Wed, 10 Aug 2016 22:45:53 +0000 (15:45 -0700)]
ath10k-ct: Fix loading 9980 firmware.

ath10k-ct driver was using bad defaults for 9980 if user
had not specified a fwcfg file to over-ride them.

Also, support configurable station-kickout-threshold,
which might work around issues with flakey connections.

Signed-off-by: Ben Greear <greearb@candelatech.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name> [fix PKG_VERSION]
8 years agotools: flock: add NFSv4 compatibility
Mathias Kresin [Tue, 9 Aug 2016 06:22:24 +0000 (08:22 +0200)]
tools: flock: add NFSv4 compatibility

This patch fixes the LEDE build on mounted NFSv4 shares.

The lock file cannot be opened in read-write mode by default, because
then we cannot use flock(1) to lock executable files.

The read-write mode for lock files is necessary on NFSv4 where
flock(2) is emulated by by fcntl() -- this situation is possible to
detect by flock(2) EBADF error.

The patch consist of the following util-linux/flock commits

http://git.kernel.org/cgit/utils/util-linux/util-linux.git/commit/?id=eb742a1f66d5e3a7c5b43efce741c113f51bef3b

http://git.kernel.org/cgit/utils/util-linux/util-linux.git/commit/?id=caf1ba11a367ad702fb774653daf9ebdcca49d7b

without including the pre kernel 3.4 support.

Signed-off-by: Mathias Kresin <dev@kresin.me>
Signed-off-by: Felix Fietkau <nbd@nbd.name> [minor cleanup]
8 years agogcc: optionally build gccgo compiler
Matteo Croce [Fri, 15 Jul 2016 10:17:20 +0000 (12:17 +0200)]
gcc: optionally build gccgo compiler

Tested with eglibc on x86 and armv7 so far

Signed-off-by: Matteo Croce <matteo.croce@canonical.com>
8 years agokernel: add plan 9 fs package
Matteo Croce [Wed, 22 Jun 2016 13:15:10 +0000 (15:15 +0200)]
kernel: add plan 9 fs package

9pfs is used by kvm to share files between host and guest,
add proper config option to enable it.

Signed-off-by: Matteo Croce <matteo.croce@canonical.com>
8 years agohostapd: Allow RADIUS accounting without 802.1x
Petko Bordjukov [Thu, 4 Aug 2016 23:10:00 +0000 (02:10 +0300)]
hostapd: Allow RADIUS accounting without 802.1x

RADIUS accounting can be used even when RADIUS authentication is not
used. Move the accounting configuration outside of the EAP-exclusive
sections.

Signed-off-by: Petko Bordjukov <bordjukov@gmail.com>
8 years agolantiq: fix some ethernet driver SMP issues
Felix Fietkau [Thu, 4 Aug 2016 10:39:06 +0000 (12:39 +0200)]
lantiq: fix some ethernet driver SMP issues

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agobcm53xx: convert (disabled) Netgear R8500 image to own profile
Rafał Miłecki [Thu, 11 Aug 2016 06:27:57 +0000 (08:27 +0200)]
bcm53xx: convert (disabled) Netgear R8500 image to own profile

It should be the last device with FullMAC chipset to convert.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
8 years agobcm53xx: add profile with brcmfmac for Netgear R7900
Rafał Miłecki [Thu, 11 Aug 2016 05:45:19 +0000 (07:45 +0200)]
bcm53xx: add profile with brcmfmac for Netgear R7900

It's one more device with FullMAC that got forgotten in the previous
commit.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
8 years agobcm53xx: add profiles for devices with FullMAC chipsets
Rafał Miłecki [Wed, 10 Aug 2016 17:23:35 +0000 (19:23 +0200)]
bcm53xx: add profiles for devices with FullMAC chipsets

This allows building images for selected devices with brcmfmac only
(without b43 which is for SoftMAC devices).

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Reviewed-by: Jo-Philipp Wich <jo@mein.io>
8 years agoramips: Add support for Thunder Timecloud
Chuanhong Guo [Wed, 10 Aug 2016 00:18:32 +0000 (02:18 +0200)]
ramips: Add support for Thunder Timecloud

Thunder Timecloud is a small NAS with MT7621A. It has 1 USB port and an
SD Card slot. There is no wireless cards.

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
8 years agopreinit: use only the image config options
Mathias Kresin [Sun, 7 Aug 2016 20:21:34 +0000 (22:21 +0200)]
preinit: use only the image config options

The pi_* variables and the fs_failsafe_wait_timeout variable are set by
the CONFIG_TARGET_PREINIT_* config options. No need to maintain the same
values twice.

All other fs_ variables were never used.

Signed-off-by: Mathias Kresin <dev@kresin.me>
8 years agoltq-hcd: fix xway dependency
Mathias Kresin [Sun, 7 Aug 2016 20:23:24 +0000 (22:23 +0200)]
ltq-hcd: fix xway dependency

Due to missing parameter the package wasn't build for the xway target.

Signed-off-by: Mathias Kresin <dev@kresin.me>
8 years agokernel: adm6996: set carrier status
Mathias Kresin [Tue, 9 Aug 2016 06:11:45 +0000 (08:11 +0200)]
kernel: adm6996: set carrier status

Due to the missing carrier status set, the interface wasn't usable on a
BTHOMEHUB2B after ip link down and up as it is done in preinit.

Signed-off-by: Mathias Kresin <dev@kresin.me>
8 years agoramips: Add support for TEW-714TRU
Jimmy Zhong [Wed, 3 Aug 2016 17:58:01 +0000 (13:58 -0400)]
ramips: Add support for TEW-714TRU

Signed-off-by: Jimmy Zhong <mb300sd@mb300sd.net>
8 years agolantiq: enable cpu temp driver for selected boards
Mathias Kresin [Sat, 6 Aug 2016 08:34:53 +0000 (10:34 +0200)]
lantiq: enable cpu temp driver for selected boards

According to the author of the cpu temp driver, not all xrx200 boards
have a cpu temperature sensor. For that reason enable the sensor only
for tested boards.

Signed-off-by: Mathias Kresin <dev@kresin.me>
8 years agolantiq: board.d: set lan mac address only where necessary
Mathias Kresin [Tue, 2 Aug 2016 20:27:16 +0000 (22:27 +0200)]
lantiq: board.d: set lan mac address only where necessary

Do not set the lan mac address for boards which having the lan mac
address already set in device tree source file.

Signed-off-by: Mathias Kresin <dev@kresin.me>
8 years agolantiq: drop duplicate and now unused "lantiq, eth-mac" binding
Mathias Kresin [Tue, 2 Aug 2016 20:26:02 +0000 (22:26 +0200)]
lantiq: drop duplicate and now unused "lantiq, eth-mac" binding

The device tree binding and the associated code duplicates functionality
already patched into the etop driver. The compatible string isn't used
any more. Therefore the whole code can be dropped.

The "mac-increment" property allowed to increment a mac address received
via kernel cmdline. This functionality isn't used by any device and
should be added as etop driver device tree property if required again.

Signed-off-by: Mathias Kresin <dev@kresin.me>
8 years agolantiq: use the etop driver DT bindings only
Mathias Kresin [Tue, 2 Aug 2016 20:26:01 +0000 (22:26 +0200)]
lantiq: use the etop driver DT bindings only

Use the generic mtd-mac-address dts property to get a mac address from
flash instead of the lantiq specific one.

Signed-off-by: Mathias Kresin <dev@kresin.me>
8 years agolantiq: fix mac address increments
Mathias Kresin [Tue, 2 Aug 2016 20:26:00 +0000 (22:26 +0200)]
lantiq: fix mac address increments

Use the same mac address increment in device tree source file and
userspace.

Don't add a mac address increment to either the only mtd mac-address or
to all mac-addresses.

Fix a typo in the TDW89X0.dtsi file to add an increment.

Signed-off-by: Mathias Kresin <dev@kresin.me>
8 years agolantiq: drop orphaned eeprom-handling code branches
Mathias Kresin [Tue, 2 Aug 2016 20:25:59 +0000 (22:25 +0200)]
lantiq: drop orphaned eeprom-handling code branches

All device tree nodes are using the named properties now and the code
path handling the reg property isn't required any more.

The code related to the ath,eep-flash property has been reformatted to
be better readable.

Signed-off-by: Mathias Kresin <dev@kresin.me>
8 years agolantiq: use ath, eep-flash/mac-offset for ath eep nodes
Mathias Kresin [Tue, 2 Aug 2016 20:25:58 +0000 (22:25 +0200)]
lantiq: use ath, eep-flash/mac-offset for ath eep nodes

No functional change, just easier to get what's the purpose of the hex
values.

Signed-off-by: Mathias Kresin <dev@kresin.me>