openwrt/staging/kaloz.git
7 years agoRevert "ar71xx: wrt400n: lift size limit on kernel and rootfs part"
John Crispin [Fri, 20 Jan 2017 05:39:35 +0000 (06:39 +0100)]
Revert "ar71xx: wrt400n: lift size limit on kernel and rootfs part"

This reverts commit 78c2ec0f477bab5b5c2622b5a18c14e51dea7249.

The builders were failing with a segfault when generating the image

Signed-off-by: John Crispin <john@phrozen.org>
7 years agokernel: fix chipidea module dependencies
John Crispin [Fri, 20 Jan 2017 05:38:59 +0000 (06:38 +0100)]
kernel: fix chipidea module dependencies

Signed-off-by: John Crispin <john@phrozen.org>
7 years agoubus: update to the latest version
Felix Fietkau [Fri, 20 Jan 2017 10:34:26 +0000 (11:34 +0100)]
ubus: update to the latest version

- Adds support for passing file descriptors in ubus invoke requests
- Fixes clearing pending timers on ubus_shutdown()
- Fixes checking the amount of written data in ubusd
- Fixes an ubusd crash when trying to subscribe to system objects

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agolede-keyring: bundle latest usign certificates
Jo-Philipp Wich [Fri, 20 Jan 2017 09:09:30 +0000 (10:09 +0100)]
lede-keyring: bundle latest usign certificates

Includes the public usign certificates used by the 17.01.* release builds.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agosdk: fix Git URL detection
Jo-Philipp Wich [Fri, 20 Jan 2017 08:51:38 +0000 (09:51 +0100)]
sdk: fix Git URL detection

Instead of relying on complex sed patterns that trip up make syntax rules, use
GNU Makes builtin filter function to match desired URLs.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agoar71xx: add support for PQI Air Pen
YuheiOKAWA [Tue, 10 Jan 2017 09:47:19 +0000 (18:47 +0900)]
ar71xx: add support for PQI Air Pen

SoC: AR9331
Ethernet x1, Wireless 2.4G, uSD card slot x1.
USB Power, include Li-Po Battery.

Signed-off-by: YuheiOKAWA <tochiro.srchack@gmail.com>
Changes in v2:
alphabetical ordering, tabs fron spaces.

7 years agoar71xx: wrt400n: lift size limit on kernel and rootfs part
Yousong Zhou [Thu, 29 Dec 2016 07:26:59 +0000 (15:26 +0800)]
ar71xx: wrt400n: lift size limit on kernel and rootfs part

While at it, convert to new build method

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
7 years agotools: wrt400n: fix making factory images with kernel bigger than 1MB
Yousong Zhou [Thu, 29 Dec 2016 07:26:58 +0000 (15:26 +0800)]
tools: wrt400n: fix making factory images with kernel bigger than 1MB

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
7 years agoar71xx: add Abicom SC1750 support
Conor O'Gorman [Sun, 15 Jan 2017 22:01:05 +0000 (22:01 +0000)]
ar71xx: add Abicom SC1750 support

Support Abicom International Scorpion SC1750 Board

QCA9550 700MHz Extended Temperature Range
256MB DDR2
256MB Nand Flash
16MB Nor Flash
1x SFP, 1x PCIe
2x 10/100/1000 Ethernet
135x100 mm
802.11ng/g/b
802.11ac/an/a

Signed-off-by: Conor O'Gorman <i@conorogorman.net>
7 years agoar71xx: add Abicom SC450 support
Conor O'Gorman [Sun, 15 Jan 2017 22:01:04 +0000 (22:01 +0000)]
ar71xx: add Abicom SC450 support

Support Abicom International Scorpion SC450 Board

QCA9550 700MHz Extended Temperature Range
256MB DDR2
256MB NAND Flash
16MB NOR Flash
10/100/1000 Ethernet
15W Max, 3x3 Mode, Full Power TX Power
802.3-at POE+ & DC Input options
100x 85mm
USB
PCIe
SFP
GPIO/LED

Signed-off-by: Conor O'Gorman <i@conorogorman.net>
7 years agoar71xx: add Abicom SC300M support
Conor O'Gorman [Sun, 15 Jan 2017 22:01:03 +0000 (22:01 +0000)]
ar71xx: add Abicom SC300M support

Support Abicom International Scorpion SC300M Module

QCA9550 700MHz Extended Temperature Range
256MB DDR2
256MB Nand Flash
16MB SPI Flash
802.11a/na/b/g/ng
GPIO x 22, USB x2, PCIe x2
10/100/1000 Ethernet
23dBm, Optional Onboard Antenna
DC Input, 8-20V DC
85 x 55 mm

Signed-off-by: Conor O'Gorman <i@conorogorman.net>
7 years agoramips: ZyXEL Keenetic series update wan mac
Vitaly Chekryzhev [Thu, 5 Jan 2017 11:25:59 +0000 (16:25 +0500)]
ramips: ZyXEL Keenetic series update wan mac

Signed-off-by: Vitaly Chekryzhev <13hakta@gmail.com>
7 years agoramips: ZyXEL Keenetic Omni align factory images
Vitaly Chekryzhev [Thu, 5 Jan 2017 11:23:07 +0000 (16:23 +0500)]
ramips: ZyXEL Keenetic Omni align factory images

ZyXEL web-flasher requires squashfs to be aligned to 64kb.

Signed-off-by: Vitaly Chekryzhev <13hakta@gmail.com>
7 years agoramips: correct keenetic-series switch index
Vitaly Chekryzhev [Sun, 1 Jan 2017 21:46:33 +0000 (02:46 +0500)]
ramips: correct keenetic-series switch index

Fix switch name typo

Signed-off-by: Vitaly Chekryzhev <13hakta@gmail.com>
7 years agoar71xx: Chipidea USB device support
Svetoslav Neykov [Fri, 30 Dec 2016 15:06:43 +0000 (17:06 +0200)]
ar71xx: Chipidea USB device support

Changes the platform to use the Chipidea driver instead of the
generic USB host driver which has support for both host and
device modes (selected on boot).

The changes in 930-chipidea-pullup.patch are already in mainline.
I'll upstream 920-usb-chipidea-AR933x-platform-support.patch once I
can test the changes with a newer kernel.

Signed-off-by: Svetoslav Neykov <svetoslav@neykov.name>
7 years agoocteon: fix mtd partitions for erlite on cmdline
Jiri Kastner [Wed, 18 Jan 2017 09:45:23 +0000 (10:45 +0100)]
octeon: fix mtd partitions for erlite on cmdline

erlite mtdparts exposes boot0, boot1 and eeprom regions
as read/write.
this patch adds readonly flags, so these regions can't be
modified. same as it is already for ER profile.

Signed-off-by: Jiri Kastner <cz172638@gmail.com>
7 years agosdk: avoid using private repository clone urls as base repo entry
Jo-Philipp Wich [Thu, 19 Jan 2017 19:41:46 +0000 (20:41 +0100)]
sdk: avoid using private repository clone urls as base repo entry

Only consider the repository origin url as valid base feed entry if it is a
git://, http:// or https:// location.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agolantiq: fix an ethernet stability issue triggered by receving packets during boot
Felix Fietkau [Thu, 19 Jan 2017 13:25:09 +0000 (14:25 +0100)]
lantiq: fix an ethernet stability issue triggered by receving packets during boot

Disabling ethernet during reboot (only to enable it again when the
ethernet driver attaches) can put the chip into a faulty state where it
corrupts the header of all incoming packets.

This happens if packets arrive during the time window where the core is
disabled, and it can be easily reproduced by rebooting while sending a
flood ping to the broadcast address.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agobuild: disable CONFIG_AUTOREMOVE for packages/tools where QUILT is used
Felix Fietkau [Thu, 19 Jan 2017 11:41:59 +0000 (12:41 +0100)]
build: disable CONFIG_AUTOREMOVE for packages/tools where QUILT is used

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agobuild: include CONFIG_AUTOREMOVE in HOST_STAMP_PREPARED
Felix Fietkau [Thu, 19 Jan 2017 11:37:39 +0000 (12:37 +0100)]
build: include CONFIG_AUTOREMOVE in HOST_STAMP_PREPARED

Fixes build issues when changing the CONFIG_AUTOREMOVE setting

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agolantiq: fix spurious irq storm
Felix Fietkau [Thu, 19 Jan 2017 11:31:34 +0000 (12:31 +0100)]
lantiq: fix spurious irq storm

Since the MIPS IRQ stack patches, lantiq devices were emitting a storm
of messages like this:

[  567.872172] Spurious IRQ: CAUSE=0x1100c300

Fix this by reworking the IRQ dispatch code

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agobuild: include CONFIG_AUTOREMOVE in STAMP_PREPARED
Felix Fietkau [Thu, 19 Jan 2017 10:37:02 +0000 (11:37 +0100)]
build: include CONFIG_AUTOREMOVE in STAMP_PREPARED

Fixes build issues when changing the CONFIG_AUTOREMOVE setting

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agobuild: fix triggering opkg/host compilation
Jo-Philipp Wich [Thu, 19 Jan 2017 01:41:02 +0000 (02:41 +0100)]
build: fix triggering opkg/host compilation

Commit 131db36 "build: remove separate /install step for host builds" dropped
the package/*/host/install targets in favor to performing the install steps
within the compile target instead.

Adjust package/Makefile accordingly in order to prevent a missing
staging_dir/host/bin/opkg when staging package archives into the rootfs.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agogettext-full: fix to use $STAGING_DIR_HOSTPKG instead of $STAGING_DIR/host
Matthias Schiffer [Wed, 18 Jan 2017 23:04:09 +0000 (00:04 +0100)]
gettext-full: fix to use $STAGING_DIR_HOSTPKG instead of $STAGING_DIR/host

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
7 years agorules.mk: export STAGING_DIR_HOSTPKG
Matthias Schiffer [Wed, 18 Jan 2017 23:03:32 +0000 (00:03 +0100)]
rules.mk: export STAGING_DIR_HOSTPKG

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
7 years agobuild: extend CONFIG_AUTOREMOVE to tools/
Felix Fietkau [Wed, 18 Jan 2017 17:00:00 +0000 (18:00 +0100)]
build: extend CONFIG_AUTOREMOVE to tools/

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agobuild: remove separate /install step for host builds
Felix Fietkau [Wed, 18 Jan 2017 16:56:13 +0000 (17:56 +0100)]
build: remove separate /install step for host builds

Reduces the number of recursive make invocations

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agobuild: add support for automatically removing build dir contents during build
Felix Fietkau [Wed, 18 Jan 2017 14:37:57 +0000 (15:37 +0100)]
build: add support for automatically removing build dir contents during build

This is used to save space on buildbot instances.
If any part of a package needs to be rebuild, the whole package is
rebuilt from scratch. Stamp files are preserved to allow dependency
checks to work

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agobuild: stage bin/ packages inside PKG_BUILD_DIR
Felix Fietkau [Wed, 18 Jan 2017 19:38:36 +0000 (20:38 +0100)]
build: stage bin/ packages inside PKG_BUILD_DIR

This makes the build slightly more efficient by avoiding the need to
re-stage packages on every full build run.

It is also necessary for the upcoming CONFIG_AUTOREMOVE feature

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agobuild: stage unstripped packages inside PKG_BUILD_DIR
Felix Fietkau [Wed, 18 Jan 2017 15:19:03 +0000 (16:19 +0100)]
build: stage unstripped packages inside PKG_BUILD_DIR

This makes the build slightly more efficient by avoiding the need to
re-stage packages on every full build run.

It is also necessary for the upcoming CONFIG_AUTOREMOVE feature

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agobuild: write ABI_VERSION file when staging the package
Felix Fietkau [Wed, 18 Jan 2017 14:28:36 +0000 (15:28 +0100)]
build: write ABI_VERSION file when staging the package

The make target does not rewrite the file if the contents didn't
change. This causes make to always consider the target old.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agobuild: introduce extra targets that contain only proper dependencies
Felix Fietkau [Wed, 18 Jan 2017 13:27:04 +0000 (14:27 +0100)]
build: introduce extra targets that contain only proper dependencies

This can be used to check if targets like prepare or compile are up to date

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agobuild: define common subdir targets in rules.mk
Felix Fietkau [Wed, 18 Jan 2017 13:00:48 +0000 (14:00 +0100)]
build: define common subdir targets in rules.mk

Reduce build system clutter and enable further rework

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agogit-kernel: $(SUBDIR) should always be $(LINUX_VERSION)
Mirko Vogt [Wed, 18 Jan 2017 13:36:45 +0000 (14:36 +0100)]
git-kernel: $(SUBDIR) should always be $(LINUX_VERSION)

Before SUBDIR was set to $(PATCHVER) which may
or may not include the minor version number of
the linux kernel version. Usually it doesn't.

So the git-clone'd linux kernel was packed without
the minor version number taken into account, which
broke further processing, as it expected the
extracted dir being named linux-$(LINUX_VERSION)
(=with minor version) rather than linux-$(PATCHVER)
(=without minor version).

Changing SUBDIR to $(LINUX_VERSION) creates
consistent behaviour here.

Signed-off-by: Mirko Vogt <mirko-openwrt@nanl.de>
7 years agobuild: move STAGING_DIR_HOSTPKG and BUILD_DIR_HOST back to a common directory for...
Matthias Schiffer [Wed, 18 Jan 2017 18:47:36 +0000 (19:47 +0100)]
build: move STAGING_DIR_HOSTPKG and BUILD_DIR_HOST back to a common directory for all targets

Using a single host package staging dir (and build dir) significantly speeds up
builds when multiple targets are built in succession, especially for large host
packages like NodeJS.

$(STAGING_DIR)/host is kept in addition to $(STAGING_DIR_HOSTPKG) in most
places; it is still used as destination for host files in Build/InstallDev.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
7 years agobase-files: add /etc/iproute2/rt_protos
Hans Dedecker [Tue, 17 Jan 2017 21:50:40 +0000 (22:50 +0100)]
base-files: add /etc/iproute2/rt_protos

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
7 years agoramips: add support for Netgear WN3000RPv3
Thibaut VARENE [Wed, 18 Jan 2017 10:34:56 +0000 (11:34 +0100)]
ramips: add support for Netgear WN3000RPv3

This patch adds support for the Netgear WN3000RPv3
http://www.netgear.com/support/product/wn3000rpv3.aspx

Specifications:
- SoC: MediaTek MT7620A (580MHz, ramips)
- RAM: 32MB DDR
- Storage: 8MB NOR SPI flash
- Wireless: builtin MT7620A, 2x2:2 with u.FL connectors
- Ethernet: 1x100M
- Serial: JP1 header, 57600-8N1
- Stock firmware based on OpenWRT Kamikaze

Like the EX2700, the bootloader expects a secondary image signature,
see https://forum.openwrt.org/viewtopic.php?pid=312577#p312577
This is why the same fakeroot image is used for the WN3000

Signed-off-by: Thibaut VARENE <hacks@slashdirt.org>
7 years agoar71xx: mark soft_config mtd part as writeable for RB-941-2nD
Thibaut VARENE [Wed, 18 Jan 2017 09:44:19 +0000 (10:44 +0100)]
ar71xx: mark soft_config mtd part as writeable for RB-941-2nD

The soft_config partition must be writeable for rbcfg to be able to
enact changes to the routerboot configuration.
The read-only flag was a mistake in the initial patch. Removing it
brings mach-rb941.c in line with all other RB platforms.

Signed-off-by: Thibaut VARENE <hacks@slashdirt.org>
7 years agoipq806x: Fix wireless support for Netgear Nighthawk X4S D7800
Zhang Jingye [Mon, 16 Jan 2017 12:10:51 +0000 (20:10 +0800)]
ipq806x: Fix wireless support for Netgear Nighthawk X4S D7800

D7800 has a simular hardware to R7800 and uses dual QCA9980 for both 2.4GHz and 5GHz band.
However there is no proper initialization for them, which causes a kernel panic due to failed firmware loading.

This patch adds d7800 to ath10k caldata extraction list.
I can get two functional wireless bands after making change to it.

Signed-off-by: Zhang Jingye <934526987@qq.com>
7 years agoramips: fix mac address of miwifi-mini
BangLang Huang [Wed, 18 Jan 2017 09:45:48 +0000 (17:45 +0800)]
ramips: fix mac address of miwifi-mini

For the miwifi-mini, the offset of ethernet mac should be 0x28
which you can easyily dump from 'Factory' partition.

Signed-off-by: BangLang Huang <banglang.huang@foxmail.com>
7 years agotools/qemu: use default host configure rule ; set appropriate vars & args
Alexandru Ardelean [Mon, 9 Jan 2017 12:46:18 +0000 (14:46 +0200)]
tools/qemu: use default host configure rule ; set appropriate vars & args

Admittedly, this is my own OCD wanting to get rid of this.

Because I tried (a while back to upgrade QEMU to a newer version),
and (during that attempt) I tried to get rid of this.

Tested on Linux & Mac.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
7 years agoramips: simplify EX2700 network config
Joseph C. Lehner [Fri, 13 Jan 2017 15:37:36 +0000 (16:37 +0100)]
ramips: simplify EX2700 network config

Don't create a vlan for the Netgear EX2700's only Ethernet port.

Signed-off-by: Joseph C. Lehner <joseph.c.lehner@gmail.com>
7 years agoramips: Add back sdhci-mt7620 driver to default config
Rosen Penev [Wed, 18 Jan 2017 00:35:29 +0000 (16:35 -0800)]
ramips: Add back sdhci-mt7620 driver to default config

The driver no longer causes kernel panics and CPU hangs.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
7 years agobcm53xx: use accepted BCM5301X patches for R8000 and Luxul devices
Rafał Miłecki [Wed, 18 Jan 2017 06:16:37 +0000 (07:16 +0100)]
bcm53xx: use accepted BCM5301X patches for R8000 and Luxul devices

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agomac80211: move (& update) upstream accepted brcmfmac patches
Rafał Miłecki [Tue, 17 Jan 2017 21:41:18 +0000 (22:41 +0100)]
mac80211: move (& update) upstream accepted brcmfmac patches

These 3 patches are now in wireless-drivers-next tree.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agosdk: do not strip static libraries
Jo-Philipp Wich [Wed, 18 Jan 2017 02:15:31 +0000 (03:15 +0100)]
sdk: do not strip static libraries

Do not strip static libraries shipped with the SDK in order to preserve the
archive index. If we strip the index of the shipped libraries, host programs
will fail to link these libraries with errors like:

    libssl.a: error adding symbols: Archive has no index; run ranlib to add one

The error was found while investigating a Python host build failure within
the SDK environment.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agonetifd: update to git HEAD version
Hans Dedecker [Tue, 17 Jan 2017 13:00:02 +0000 (14:00 +0100)]
netifd: update to git HEAD version

a057f6e device: fix DEV_OPT_SENDREDIRECTS definition

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
7 years agobuild: properly pass CPP and CXX flags in HOST_MAKE_VARS
Jo-Philipp Wich [Tue, 17 Jan 2017 08:29:50 +0000 (09:29 +0100)]
build: properly pass CPP and CXX flags in HOST_MAKE_VARS

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agobuild: introduce default HOST_MAKE_VARS for host-builds
Alexandru Ardelean [Mon, 9 Jan 2017 12:59:02 +0000 (14:59 +0200)]
build: introduce default HOST_MAKE_VARS for host-builds

Inspired/adapted from `package-defaults.mk` MAKE_VARS.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
7 years agotools/cmake: remove HOST_CONFIGURE_CMD and re-distribute the args & vars
Alexandru Ardelean [Thu, 12 Jan 2017 13:31:13 +0000 (15:31 +0200)]
tools/cmake: remove HOST_CONFIGURE_CMD and re-distribute the args & vars

The final semantic is the same, but this is a bit more correct.

Build tested on Windows 10 (yes, there is some
Ubuntu mode for Windows 10, and I've been also building LEDE
on it for a few weeks).

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
7 years agox86: add kernel module for sp5100_tco watchdog
Chris Blake [Sat, 14 Jan 2017 16:20:25 +0000 (10:20 -0600)]
x86: add kernel module for sp5100_tco watchdog

This change adds the sp5100_tco driver as a kernel module for the x86
target. Specifically, this can be used by the PCEngines APU2/APU3. The
reason for having this as a kernel module is to allow users to
load/unload it on demand, as the I2C interface on the APU2/APU3 will not
work while this module is loaded. More info can be found on GitHub at
https://github.com/riptidewave93/LEDE-APU2/pull/5#issuecomment-255667736

Signed-off-by: Chris Blake <chrisrblake93@gmail.com>
7 years agox86: Add sp5100_tco AMD patches
Chris Blake [Sat, 14 Jan 2017 16:20:24 +0000 (10:20 -0600)]
x86: Add sp5100_tco AMD patches

This adds the following patches to the x86 target:

sp5100_tco: Add AMD Mullins platform support
sp5100_tco: Add AMD Carrizo platform support
sp5100_tco: fix the device check for SB800 and later chipsets
watchdog: sp5100_tco: properly check for new register layouts

With these added, the sp5100_tco driver can then be used on newer AMD
platforms, such as the PCEngines APU2/APU3 boards.

Signed-off-by: Chris Blake <chrisrblake93@gmail.com>
7 years agox86: remove the xen_domu subtarget
Felix Fietkau [Fri, 13 Jan 2017 14:04:17 +0000 (15:04 +0100)]
x86: remove the xen_domu subtarget

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agox86/generic: add xen DomU support
Felix Fietkau [Fri, 13 Jan 2017 14:03:24 +0000 (15:03 +0100)]
x86/generic: add xen DomU support

Copy the relevant config options from the xen_domu subtarget

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoar71xx: fix up the kernel config for the mikrotik subtarget
Felix Fietkau [Tue, 10 Jan 2017 17:09:22 +0000 (18:09 +0100)]
ar71xx: fix up the kernel config for the mikrotik subtarget

Limit enabled devices to routerboards, disable all other devices

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoar71xx: fix network config for Mikrotik RB411U
Cezary Jackiewicz [Mon, 9 Jan 2017 21:06:12 +0000 (22:06 +0100)]
ar71xx: fix network config for Mikrotik RB411U

Mikrotik RB411U has only one ethernet port - eth0. This patch allows to create
correct config with one lan section.

Signed-off-by: Cezary Jackiewicz <cezary@eko.one.pl>
7 years agoar71xx: add support for RB-941-2nD
Thibaut VARENE [Wed, 4 Jan 2017 21:44:54 +0000 (22:44 +0100)]
ar71xx: add support for RB-941-2nD

Add full support for Mikrotik RB-941-2nD (hAP lite)

Original patch by Sergey Sergeev <adron@yapic.net> and
more information is available here:
https://wiki.openwrt.org/toh/mikrotik/rb941_2nd
I updated and adapted the patch to apply cleanly to LEDE trunk
and added proper numbering for the switch ports (matching case
labels).
Tested working on actual hardware with the information
provided in the above webpage. Sysupgrade works.

Signed-off-by: Thibaut VARENE <hacks@slashdirt.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agokernel: remove yaffs2 support, it is no longer needed
Felix Fietkau [Sun, 8 Jan 2017 17:58:29 +0000 (18:58 +0100)]
kernel: remove yaffs2 support, it is no longer needed

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoadm5120: mark the rb1xx subtarget as broken
Felix Fietkau [Sun, 8 Jan 2017 17:40:59 +0000 (18:40 +0100)]
adm5120: mark the rb1xx subtarget as broken

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoar71xx: convert mikrotik routerboard support to UBI
Felix Fietkau [Sun, 8 Jan 2017 13:27:38 +0000 (14:27 +0100)]
ar71xx: convert mikrotik routerboard support to UBI

Remove the wget2nand script, drop the need for manual installation,
use sysupgrade instead.

There are now two different NAND images, one for 64 MiB flashes, the
other for >= 128 MiB

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoar71xx: create a proper default profile for the mikrotik subtarget, drop other profiles
Felix Fietkau [Sat, 7 Jan 2017 19:54:42 +0000 (20:54 +0100)]
ar71xx: create a proper default profile for the mikrotik subtarget, drop other profiles

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agomusl: update musl to 1.1.16+ and switch to download from git
Christian Lamparter [Tue, 3 Jan 2017 16:51:04 +0000 (17:51 +0100)]
musl: update musl to 1.1.16+ and switch to download from git

This patch updates musl to 1.1.16+ [0] and removes all the
backported patches. This is a major release and tagged as such.
For more information visit musl-libc.org or read the WHATSNEW.

Furthermore, this patch also changes musl to download directly
from git. This makes it easier to update musl in the future.

The patch custom Add-format-attribute-to-some-function-declarations.patch
was assigned a new 400- number. This should avoid confusion
since 0xx numbers are usually assigned to backports.

[0] <http://git.musl-libc.org/cgit/musl/commit/?id=769f53598e781ffc89191520f3f8a93cb58db91f>

Cc: Hannu Nyman <hannu.nyman@iki.fi>
Cc: Koen Vandeputte <koen.vandeputte@ncentric.com>
Cc: Jo-Philipp Wich <jo@mein.io>
Cc: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
7 years agozlib: Update to 1.2.11
Daniel Engberg [Sun, 15 Jan 2017 20:46:27 +0000 (21:46 +0100)]
zlib: Update to 1.2.11

Update to 1.2.11 as suggested by upstream
Also add SF as primary source and main site as fallback

Note: SF doesn't carry the 1.2.11 update yet.

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
7 years agokernel: ar8327/ar8337: disable ARL access code to avoid lockups (FS#384)
Jo-Philipp Wich [Fri, 13 Jan 2017 15:38:22 +0000 (16:38 +0100)]
kernel: ar8327/ar8337: disable ARL access code to avoid lockups (FS#384)

Running ar8327_get_arl_entry() early after boot leads to MDIO related system
lockups on several devices using this driver.

Since dumping the ARL table contens is an optional, uncritical feature, simply
disable the code for now.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agocurl: fix HTTPS network timeouts with OpenSSL
Stijn Segers [Tue, 10 Jan 2017 18:57:47 +0000 (19:57 +0100)]
curl: fix HTTPS network timeouts with OpenSSL

Backport an upstream change to fix HTTPS timeouts with OpenSSL.
Upstream curl bug #1174.

Signed-off-by: Stijn Segers <francesco.borromini@inventati.org>
[Jo-Philipp Wich: reword commit message, rename patch to 001-*]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agobase-files: add ARCH_PACKAGES to openwrt_release and os-release
Matthias Schiffer [Mon, 16 Jan 2017 12:25:14 +0000 (13:25 +0100)]
base-files: add ARCH_PACKAGES to openwrt_release and os-release

Knowing the package architecture at runtime can be useful, e.g. to
configure opkg repository URLs. The value of ARCH_PACKAGES ("%A" in
VERSION_SED) as added to openwrt_release (as DISTRIB_ARCH) and os-release
(as LEDE_ARCH).

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
7 years agoubox: turn logd into a separate package
Andrej Vlasic [Sun, 15 Jan 2017 18:30:53 +0000 (19:30 +0100)]
ubox: turn logd into a separate package

Currently system log is always included as a part of ubox. Add logd as a
seperate package and add it to default packages list.

Signed-off-by: Andrej Vlasic <andrej.vlasic@sartura.hr>
Signed-off-by: Luka Perkov <luka.perkov@sartura.hr>
7 years agombedtls: add static files in staging_dir
Domagoj Pintaric [Sun, 1 Jan 2017 18:10:38 +0000 (19:10 +0100)]
mbedtls: add static files in staging_dir

Signed-off-by: Domagoj Pintaric <domagoj.pintaric@sartura.hr>
Signed-off-by: Luka Perkov <luka.perkov@sartura.hr>
7 years agokernel: make ledtrig-netdev use a work queue for updates
Felix Fietkau [Sat, 14 Jan 2017 21:29:05 +0000 (22:29 +0100)]
kernel: make ledtrig-netdev use a work queue for updates

This fixes hangs in igb that happen if the update call interrupts an
already existing dev_get_stats call. In that case the calling CPU
deadlocks because it's trying to acquire the same spinlock recursively.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoinclude/feeds.mk: base list of enabled feeds on available instead of installed feeds
Matthias Schiffer [Mon, 16 Jan 2017 08:11:56 +0000 (09:11 +0100)]
include/feeds.mk: base list of enabled feeds on available instead of installed feeds

This fixes handling of CONFIG_FEED_* options for uninstalled feeds.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
7 years agoopkg: use default PKG_BUILD_DIR
Matthias Schiffer [Mon, 16 Jan 2017 08:02:42 +0000 (09:02 +0100)]
opkg: use default PKG_BUILD_DIR

opkg doesn't have BUILD_VARIANTs anymore, so the previously defined
PKG_BUILD_DIR would lead to a weird 'opkg-' path component.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
7 years agomac80211: brcmfmac: add early (& hacky) patch for storing country codes
Rafał Miłecki [Sun, 15 Jan 2017 23:32:27 +0000 (00:32 +0100)]
mac80211: brcmfmac: add early (& hacky) patch for storing country codes

This allows some basic region switching on Netgear R8000. More devices &
codes may be added. Ideally it should be converted into DT info & patch.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agomac80211: use wiphy_read_of_freq_limits in brcmfmac
Rafał Miłecki [Sun, 15 Jan 2017 22:04:18 +0000 (23:04 +0100)]
mac80211: use wiphy_read_of_freq_limits in brcmfmac

This makes use of cfg80211 feature backported & described in
188626f17c09 ("mac80211: backport cfg80211 support for
ieee80211-freq-limit DT property").

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agobcm53xx: add pending BCM5301X patches: Netgear R8000 WiFi & Luxul DTS
Rafał Miłecki [Sun, 15 Jan 2017 21:52:24 +0000 (22:52 +0100)]
bcm53xx: add pending BCM5301X patches: Netgear R8000 WiFi & Luxul DTS

This specifies wireless limitations for Netgear R8000 making sure people
won't use channels incorrectly (limited performance). There are also 2
new DTS files not used by us yet.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agokernel: fix bcma serial console regression
Rafał Miłecki [Sun, 15 Jan 2017 21:57:50 +0000 (22:57 +0100)]
kernel: fix bcma serial console regression

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agoipq806x: refactor ipq8065 device tree
Pavel Kubelun [Sat, 14 Jan 2017 14:01:09 +0000 (17:01 +0300)]
ipq806x: refactor ipq8065 device tree

At the moment we have 2 seperate device tree sources: 1 for ipq8064 soc located
in kernel source and 1 custom in LEDE for ipq8065.
ipq8064 and ipq8065 SoCs are completely identical except ipq8065 has higher cpu
frequencies and adjusted corresponding power supply.

This commit makes ipq8065 DTS to contain only specific for ipq8065 DT entries while
pulling all the basic SoC stuff from ipq8064 DTS.

It makes easier to manage ipq806x device trees and instead of committing changes into
2 seperate equal DTS we are ending up with only 1.
It also enables ipq8065 devices to automatically receive changes made in upstream kernel.

Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
7 years agoipq806x: enable hw pseudo random number generator
Pavel Kubelun [Sat, 14 Jan 2017 11:56:56 +0000 (14:56 +0300)]
ipq806x: enable hw pseudo random number generator

Enables support for pseudo random number generator in device tree.

Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
7 years agoipq806x: update eMMC and SDCC3 nodes in device tree
Pavel Kubelun [Wed, 28 Dec 2016 13:21:43 +0000 (16:21 +0300)]
ipq806x: update eMMC and SDCC3 nodes in device tree

Enable bam dma support for eMMC and SDCC3 in device tree and update nodes
to reflect Qualcomm SDK.

Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
7 years agoipq806x: disable usb3 phy suspend and add usb tcsr control
Pavel Kubelun [Fri, 23 Dec 2016 22:51:07 +0000 (01:51 +0300)]
ipq806x: disable usb3 phy suspend and add usb tcsr control

According to Qualcomm SDK usb3 phy suspend should be disabled for
ipq806x.
This may solve issue on some ipq806x devices that breaks usb3
storage peripherals during system boot.

Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
7 years agoramips: add back the i2c-mt7621 module
John Crispin [Sun, 15 Jan 2017 19:45:14 +0000 (20:45 +0100)]
ramips: add back the i2c-mt7621 module

mt7628/88 are still using this module.

Signed-off-by: John Crispin <john@phrozen.org>
7 years agomt76: select 802.11w support
Stijn Tintel [Sun, 15 Jan 2017 18:17:30 +0000 (19:17 +0100)]
mt76: select 802.11w support

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Acked-by: Felix Fietkau <nbd@nbd.name>
7 years agoramips: Added Onion Omega2 and Omega2+
Lazar Demin [Mon, 9 Jan 2017 19:59:56 +0000 (19:59 +0000)]
ramips: Added Onion Omega2 and Omega2+

This patch adds support for the Onion Omega2 and Omega2+ (https://onion.io)

Specifications:
- SoC: MediaTek MT7688AN (580MHz, ramips)
- Omega2
  - RAM: 64MB DDR
  - Storage: 16MB NOR SPI flash onboard
- Omega2+
  - RAM: 128MB DDR
  - Storage: 32MB NOR SPI flash onboard + microSD slot
- Wireless: Built into MT7688AN (mt76) with onboard 1x chip antenna and u.FL connecter
- Ethernet: 1x100M pins on Omega2 & Omega2+, can use Ethernet Expansion and an Omega Dock to get a physical Ethernet port
- Strongly recommend using the Omega2 & Omega2+ with a Dock (Expansion Dock, Power Dock, Arduino Dock 2, Mini Dock)
  - All Docks Provide:
    - Micro-USB port to provide power to the Omega
      - On the Expansion and Mini Docks, can also access the terminal (UART0) via serial
    - USB 2.0 socket connected to Omega
  - Just the Expansion Dock, Power Dock, and Arduino Dock 2 provide:
    - Omega GPIO breakout
    - Allows for connection of Omega Expansions:
      - Ethernet Expansion
      - Relay Expansion
      - PWM Expansion
      - OLED Expansion
      - Ethernet Expansion
      - Proto Expansion
      - Cellular Expansion

Signed-off-by: Lazar Demin <lazar@onion.io>
7 years agokernel: can: Add missing regmap dependency for kernel 4.4
Florian Fainelli [Sun, 15 Jan 2017 05:34:02 +0000 (21:34 -0800)]
kernel: can: Add missing regmap dependency for kernel 4.4

Fixes build failure for kmod-can-c-can-platform which depends on
kmod-regmap for kernel 4.1 and 4.4.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
7 years agoar71xx: Detect USB port on Mikrotik RB750UP
João Chaínho [Fri, 13 Jan 2017 16:23:09 +0000 (16:23 +0000)]
ar71xx: Detect USB port on Mikrotik RB750UP

The USB port on Mikrotik RB750UP isn’t detected. This patch provides a fix. Tested and working.

Signed-off-by: João Chaínho <joaochainho@gmail.com>
7 years agoramips: Add I2C driver to the default kernel config
Rosen Penev [Fri, 13 Jan 2017 15:14:38 +0000 (07:14 -0800)]
ramips: Add I2C driver to the default kernel config

I made a commit that added the RTC driver to the kernel config with
the intent that it would fix hctosys. Unfortunately while the RTC
driver is in there, it's connected through I2C, the driver for which
comes in module form and is thus loaded late. After this commit, it
works fine.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
7 years agoimx6: kernel: Backport serial port fixes
Petr Štetiar [Fri, 13 Jan 2017 10:42:08 +0000 (11:42 +0100)]
imx6: kernel: Backport serial port fixes

Signed-off-by: Petr Štetiar <ynezz@true.cz>
7 years agokernel: backport MIPS changes introducing a separate IRQ stack
Felix Fietkau [Wed, 11 Jan 2017 09:57:49 +0000 (10:57 +0100)]
kernel: backport MIPS changes introducing a separate IRQ stack

Prevents crashes when IRQs arrive when the current kernel stack context
already contains deeply nested function calls, e.g. when stacking lots
of network devices on top of each other

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agogitignore: add /overlay
Matthias Schiffer [Sun, 15 Jan 2017 17:16:29 +0000 (18:16 +0100)]
gitignore: add /overlay

Similar to /files, /overlay is only useful for modifications not tracked in
the LEDE repository itself.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
7 years agoath10k-firmware: Update QCA988X firmware to latest version
Timo Sigurdsson [Wed, 11 Jan 2017 21:49:29 +0000 (22:49 +0100)]
ath10k-firmware: Update QCA988X firmware to latest version

This patch updates the QCA988X firmware to the latest revision
  firmware-5.bin_10.2.4-1.0-00016
found in the official ath10k-firmware repository.

Tested on TP-Link Archer C7 v2.

Signed-off-by: Timo Sigurdsson <public_timo.s@silentcreek.de>
7 years agohostapd: fix passing jobserver to hostapd/supplicant build processes
Felix Fietkau [Sun, 15 Jan 2017 13:56:34 +0000 (14:56 +0100)]
hostapd: fix passing jobserver to hostapd/supplicant build processes

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agohostapd: backport a few upstream fixes
Felix Fietkau [Sun, 15 Jan 2017 13:19:43 +0000 (14:19 +0100)]
hostapd: backport a few upstream fixes

Fixes reassoc issues with WDS mode
Fixes reassoc issues in AP mode
Fixes IBSS reauthentication issues

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agomt76: update to the latest version, adds support for 802.11w
Felix Fietkau [Sat, 14 Jan 2017 22:09:34 +0000 (23:09 +0100)]
mt76: update to the latest version, adds support for 802.11w

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoncurses: revert $(STAGING_DIR_HOSTPKG) to $(STAGING_DIR)/host where appropriate
Matthias Schiffer [Sat, 14 Jan 2017 17:11:26 +0000 (18:11 +0100)]
ncurses: revert $(STAGING_DIR_HOSTPKG) to $(STAGING_DIR)/host where appropriate

Host files installed in Build/InstallDev are target-specific and will stay
in $(STAGING_DIR)/host after the STAGING_DIR_HOSTPKG unification.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
7 years agoinclude/autotools.mk: use STAGING_DIR_HOSTPKG where appropriate
Matthias Schiffer [Sat, 14 Jan 2017 17:09:33 +0000 (18:09 +0100)]
include/autotools.mk: use STAGING_DIR_HOSTPKG where appropriate

Make sure binaries install to STAGING_DIR_HOSTPKG are still found when
this variable is eventually modified.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
7 years agomac80211: backport a fix for a tx related race condition
Felix Fietkau [Sat, 14 Jan 2017 17:02:54 +0000 (18:02 +0100)]
mac80211: backport a fix for a tx related race condition

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agomac80211: refresh patches
Felix Fietkau [Fri, 13 Jan 2017 09:42:35 +0000 (10:42 +0100)]
mac80211: refresh patches

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agomac80211: backport some upstream fixes
Koen Vandeputte [Fri, 13 Jan 2017 09:34:52 +0000 (10:34 +0100)]
mac80211: backport some upstream fixes

Backports the following upstream fixes:

mac80211: initialize fast-xmit 'info' later
mac80211: fix legacy and invalid rx-rate report
mac80211: fix tid_agg_rx NULL dereference

Compiled and tested on: cns3xxx

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
7 years agokernel: update 4.4 kernel to 4.4.42
Hauke Mehrtens [Fri, 13 Jan 2017 21:35:45 +0000 (22:35 +0100)]
kernel: update 4.4 kernel to 4.4.42

Refresh patches on all 4.4 supported platforms.
Compile & run tested: lantiq/xrx200

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
7 years agoimagebuilder: remove existing debug kernel image
Felix Fietkau [Fri, 13 Jan 2017 18:22:09 +0000 (19:22 +0100)]
imagebuilder: remove existing debug kernel image

Reduces tarball size and improves build time

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoimagebuilder: remove existing root filesystem images
Felix Fietkau [Fri, 13 Jan 2017 18:21:31 +0000 (19:21 +0100)]
imagebuilder: remove existing root filesystem images

Reduces tarball size and improves build time

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