openwrt/staging/blocktrron.git
7 years agoipq806x: clean up dts patch
Felix Fietkau [Tue, 7 Mar 2017 19:40:25 +0000 (20:40 +0100)]
ipq806x: clean up dts patch

Move dts files to files/, remove useless patch chunks

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agokernel: re-apply 300-arch-arm-force-ZRELADDR-on-arch-qcom.patch on 4.9 (FS#549)
Felix Fietkau [Tue, 7 Mar 2017 19:22:50 +0000 (20:22 +0100)]
kernel: re-apply 300-arch-arm-force-ZRELADDR-on-arch-qcom.patch on 4.9 (FS#549)

Fixes memory corruption issues. See commit bdcba36442a4 for more
details.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoipq806x: refresh patches
Felix Fietkau [Tue, 7 Mar 2017 19:20:37 +0000 (20:20 +0100)]
ipq806x: refresh patches

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agougps: fix and improve init script
Piotr Dymacz [Sun, 5 Mar 2017 18:30:44 +0000 (19:30 +0100)]
ugps: fix and improve init script

The ugps tool expects device path in last argument. If it's provided
before other options, they won't be processed at all.

Additionally, make it possible to use absolute path for gps character
device in related uci configuration.

Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
7 years agokernel: fix of_node handling in LEDs core code
Rafał Miłecki [Wed, 8 Mar 2017 11:38:43 +0000 (12:38 +0100)]
kernel: fix of_node handling in LEDs core code

This backports fixes for setting of_node and making it possible to read
extra info from DT. This was partially fixed by:
[PATCH] leds: leds-gpio: Set of_node for created LED devices
but it didn't work during initialization.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agobrcm2708: detect Raspberry Pi Zero W
Stijn Tintel [Sun, 5 Mar 2017 20:16:07 +0000 (21:16 +0100)]
brcm2708: detect Raspberry Pi Zero W

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
7 years agobrcm2708: order boards and models alphabetically
Stijn Tintel [Sun, 5 Mar 2017 20:16:06 +0000 (21:16 +0100)]
brcm2708: order boards and models alphabetically

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
7 years agoramips: fix Linksys RE6500 switch port mapping
Jo-Philipp Wich [Tue, 7 Mar 2017 16:38:30 +0000 (17:38 +0100)]
ramips: fix Linksys RE6500 switch port mapping

Properly map the internal switch ports to the proper LAN1..LAN4 labels.

Fixes #530.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agoopenvpn: move list of params and bools to a separate file
Yousong Zhou [Sun, 26 Feb 2017 07:22:04 +0000 (15:22 +0800)]
openvpn: move list of params and bools to a separate file

So that future patches for addition/removal of them can be more
readable

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
7 years agoprocd.sh: use parameterized respawn values
Claudiu Brasovean [Tue, 28 Feb 2017 09:51:01 +0000 (11:51 +0200)]
procd.sh: use parameterized respawn values

continue work started here: http://patchwork.ozlabs.org/patch/520859

Extend /etc/config/system with parameters to set the default respawn treshold and respawn timeout
for procd launched services that have respawn enabled.
This results in cleaner init scripts, while making sure services have respawn parameters set.

Signed-off-by: Claudiu Brasovean <cbrasho@gmail.com>
7 years agoar71xx: fix build without CONFIG_NOP_USB_XCEIV (FS#593)
Felix Fietkau [Tue, 7 Mar 2017 09:45:32 +0000 (10:45 +0100)]
ar71xx: fix build without CONFIG_NOP_USB_XCEIV (FS#593)

Open-code usb_phy_generic_register instead of calling it, since it is
really trivial. Avoid pulling CONFIG_NOP_USB_XCEIV into the kernel
config and add a proper dependency instead

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agokernel: fix usb chipidea controller support
Felix Fietkau [Tue, 7 Mar 2017 08:50:42 +0000 (09:50 +0100)]
kernel: fix usb chipidea controller support

If ehci platform driver is loaded before the chipidea controller driver,
both are competing for the same IO resources and the generic driver gets
used for the hardware. This results in USB device mode being
unavailable.
Split generic EHCI support code out of kmod-usb2, so that the chipidea
driver can be included without also pulling in the generic one. Also
rework the load order, so that the chipidea driver gets loaded first, in
case both are installed

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agokernel: disable deprecated CONFIG_USB_EHCI_ATH79 symbol
Felix Fietkau [Tue, 7 Mar 2017 10:08:29 +0000 (11:08 +0100)]
kernel: disable deprecated CONFIG_USB_EHCI_ATH79 symbol

USB_EHCI_HCD_PLATFORM is used instead

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoppp: propagate master peerdns setting to dynamic slave interface
Jo-Philipp Wich [Mon, 6 Mar 2017 12:47:50 +0000 (13:47 +0100)]
ppp: propagate master peerdns setting to dynamic slave interface

Honour the parent interfaces peerdns option when spawning a virtual DHCPv6
interface in order to avoid pulling in IPv6 DNS servers when the user opted
to inhibit peer DNS servers in the configuration.

Fixes #597.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agoodhcpd: add loglevel uci option in odhcpd defaults
Hans Dedecker [Mon, 6 Mar 2017 16:12:31 +0000 (17:12 +0100)]
odhcpd: add loglevel uci option in odhcpd defaults

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
7 years agoprocd: update to git HEAD version
Hans Dedecker [Mon, 6 Mar 2017 16:25:44 +0000 (17:25 +0100)]
procd: update to git HEAD version

8f218f5 procd: service gets deleted when its last instance is freed
35209a0 procd: update modprobe path

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
7 years agoodhcp6c: update to git HEAD version
Hans Dedecker [Mon, 6 Mar 2017 16:31:21 +0000 (17:31 +0100)]
odhcp6c: update to git HEAD version

c69555c dhcpv6: use PRIu64 print macro

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
7 years agoopkg: fix several package installation bugs
Jo-Philipp Wich [Wed, 1 Mar 2017 00:04:33 +0000 (01:04 +0100)]
opkg: fix several package installation bugs

Update to latest Git in order to import the following fixes:

19070b6 unarchive: fix possible segmentation fault in deb_extract()
758527e pkg: forward "provided_by_hand" flag in pkg_merge()
1fdc2ca pkg: mark bit fields in pkg_t unsigned
15fc1ee opkg_cmd: avoid null pointer dereference in opkg_what_depends_conflicts_cmd()
439c89e opkg_cmd: fix endless loop in whatprovides/whatreplaces
0fb3e9f pkg_depends: propagate virtual provided detail flag to providers
793155f pkg_depends: fix unsatisfied dependency installation order
b1dc770 libopkg: fix some overly aggressive line wrapping in pkg_depends.c

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agokernel: fix whiteout rename on ubifs (FS#579)
Felix Fietkau [Mon, 6 Mar 2017 09:09:28 +0000 (10:09 +0100)]
kernel: fix whiteout rename on ubifs (FS#579)

This was apparently caused by some linux upstream merge damage

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoar71xx: set status led for the gl-* boards
Wojciech Jowsa [Wed, 15 Feb 2017 11:38:07 +0000 (12:38 +0100)]
ar71xx: set status led for the gl-* boards

Signed-off-by: Wojciech Jowsa <w.jowsa@radytek.com>
7 years agokernel: more tpm related symbols
John Crispin [Mon, 6 Mar 2017 06:13:58 +0000 (07:13 +0100)]
kernel: more tpm related symbols

Signed-off-by: John Crispin <john@phrozen.org>
7 years agofstools: add blockd
John Crispin [Thu, 23 Feb 2017 04:18:11 +0000 (05:18 +0100)]
fstools: add blockd

this daemon replaces mountd.

Signed-off-by: John Crispin <john@phrozen.org>
7 years agomountd: drop in favour of blockd
John Crispin [Thu, 23 Feb 2017 04:18:39 +0000 (05:18 +0100)]
mountd: drop in favour of blockd

Signed-off-by: John Crispin <john@phrozen.org>
7 years agoodhcpd: Bump to latest HEAD
Florian Fainelli [Sat, 4 Mar 2017 21:22:50 +0000 (13:22 -0800)]
odhcpd: Bump to latest HEAD

Brings in the following change:

9eac2a896341 dhcpv6-ia: Check lockf return value

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
7 years agomalta: restore "be" subtarget from being source-only
Yousong Zhou [Sun, 5 Mar 2017 08:07:09 +0000 (16:07 +0800)]
malta: restore "be" subtarget from being source-only

The malta "be" and "le" subtargets share the arch with many devices of
ar71xx and ramips.  They can be handy for testing, debugging, trying
both snapshot and release builds.

This commit makes the "be" subtarget part of the ci and release builds

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
7 years agotoolchain: Allow external toolchains to specify libthread-db
Florian Fainelli [Thu, 2 Mar 2017 19:37:29 +0000 (11:37 -0800)]
toolchain: Allow external toolchains to specify libthread-db

We need to let external toolchains be able to specify the path and
specification file to the libthread-db POSIX thread debugging shared
libraries.

This fixes GDB not being able to be installed because it is depending on
libthread-db:

Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies
 * for gdb:
 *      libthread-db *
 * opkg_install_cmd: Cannot install package gdb.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
7 years agobrcm2708: add support for the new Raspberry Pi Zero W
Álvaro Fernández Rojas [Sat, 4 Mar 2017 18:41:34 +0000 (19:41 +0100)]
brcm2708: add support for the new Raspberry Pi Zero W

Support is experimental since I haven't got any device to test.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
7 years agobrcm2708-gpu-fw: update to latest version
Álvaro Fernández Rojas [Sat, 4 Mar 2017 18:40:49 +0000 (19:40 +0100)]
brcm2708-gpu-fw: update to latest version

This is needed in order to add support for the new RPi Zero W

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
7 years agobrcm2708: update linux 4.9 patches to latest version
Álvaro Fernández Rojas [Sat, 4 Mar 2017 18:37:50 +0000 (19:37 +0100)]
brcm2708: update linux 4.9 patches to latest version

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

- Remove led1 from diag.sh for RPi3 since it causes boot issues.
- Fix modules.mk typos.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
7 years agokernel: update kernel 4.4 to 4.4.52
Kevin Darbyshire-Bryant [Thu, 23 Feb 2017 18:52:26 +0000 (18:52 +0000)]
kernel: update kernel 4.4 to 4.4.52

Bump kernel from 4.4.50 to 4.4.52

Refresh patches

Compile tested all 4.4. targets

Run tested: ar71xx Archer C7 v2

Signed-off-by: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
7 years agokernel: fix kmod-tpm-tis packaging
Jo-Philipp Wich [Fri, 3 Mar 2017 16:29:41 +0000 (17:29 +0100)]
kernel: fix kmod-tpm-tis packaging

The tmp-tis module depends on tpm_tis_core.ko, so package this file as well.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agoath10k-firmware: update qca9984 firmware
Pavel Kubelun [Fri, 17 Feb 2017 17:04:32 +0000 (20:04 +0300)]
ath10k-firmware: update qca9984 firmware

Bump qca9984 firmware.

Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
7 years agoubox: update to the latest version
Felix Fietkau [Fri, 3 Mar 2017 11:01:30 +0000 (12:01 +0100)]
ubox: update to the latest version

21a4bd0 kmodloader: modprobe: return 0 for loaded modules

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoopenssl: Use mkhash for STAMP_CONFIGURED
Florian Fainelli [Wed, 1 Mar 2017 18:48:32 +0000 (10:48 -0800)]
openssl: Use mkhash for STAMP_CONFIGURED

The current way of creating a STAMP_CONFIGURED filename for OpenSSL can
lead to an extremely long filename that makes touch unable to create it,
and fail the build.

Use mkhash to produce a hash against OPENSSL_OPTIONS which creates a
shortert stamp file,

Fixes #572

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
7 years agorssileds: Fix build with external toolchains
Florian Fainelli [Mon, 13 Feb 2017 02:34:53 +0000 (18:34 -0800)]
rssileds: Fix build with external toolchains

Pass down TARGET_CPPFLAGS for path to header files, and append the
libraries we depend on in TARGET_LDFLAGS. Put TARGET_LDFLAGS at the end
of the command line as is required by modern GCC/binutils.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
7 years agoadb: Also pass TARGET_CPPFLAGS
Florian Fainelli [Mon, 13 Feb 2017 02:29:53 +0000 (18:29 -0800)]
adb: Also pass TARGET_CPPFLAGS

Fixes build issues with external toolchains that do not have STAGING_DIR
in their default search path.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
7 years agoswconfig: Link with libubox
Florian Fainelli [Sun, 12 Feb 2017 22:10:12 +0000 (14:10 -0800)]
swconfig: Link with libubox

Fixes linking failures observed with external toolchains:

/home/florian/dev/toolchains/stbgcc-4.8-1.5/bin/../lib/gcc/mipsel-linux-gnu/4.8.5/../../../../mipsel-linux-gnu/bin/ld:
warning: libubox.so, needed by
/home/florian/dev/openwrt/trunk/staging_dir/target-mipsel-unknown-linux-gnu_glibc/usr/lib/libuci.so,
not found (try using -rpath or -rpath-link)
/home/florian/dev/openwrt/trunk/staging_dir/target-mipsel-unknown-linux-gnu_glibc/usr/lib/libuci.so:
undefined reference to `blobmsg_open_nested'
/home/florian/dev/openwrt/trunk/staging_dir/target-mipsel-unknown-linux-gnu_glibc/usr/lib/libuci.so:
undefined reference to `blobmsg_parse'
/home/florian/dev/openwrt/trunk/staging_dir/target-mipsel-unknown-linux-gnu_glibc/usr/lib/libuci.so:
undefined reference to `blob_nest_end'
/home/florian/dev/openwrt/trunk/staging_dir/target-mipsel-unknown-linux-gnu_glibc/usr/lib/libuci.so:
undefined reference to `blobmsg_add_field'

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
7 years agopx5g: Fix TARGET_LDFLAGS and add TARGET_CPPFLAGS
Florian Fainelli [Sun, 12 Feb 2017 22:07:36 +0000 (14:07 -0800)]
px5g: Fix TARGET_LDFLAGS and add TARGET_CPPFLAGS

Make sure we pass down TARGET_CPPFLAGS to let toolchains with no default
search paths to find the mbdetls headers, and override TARGET_LDFLAGS to
include libraries we are linking against.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
7 years agoomcproxy: Update to latest HEAD
Florian Fainelli [Sun, 12 Feb 2017 22:05:17 +0000 (14:05 -0800)]
omcproxy: Update to latest HEAD

Brings the following change:
1fe6f48f8a50 Cmake: Find libubox/list.h

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
7 years agousbmode: Update to latest HEAD
Florian Fainelli [Sun, 12 Feb 2017 21:59:50 +0000 (13:59 -0800)]
usbmode: Update to latest HEAD

Brings the following changes:

22f041e18df0 Extend StandardEject sequence to include LUN 1
61fdf7e9b1cc cmake: Search for libjson-c
2769852e76b5 cmake: Find libubox/blobmsg_json.h
8a47c4b6649f add TargetClass support

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
7 years agobsdiff: Also pass down TARGET_CPPFLAGS
Florian Fainelli [Sun, 12 Feb 2017 21:21:01 +0000 (13:21 -0800)]
bsdiff: Also pass down TARGET_CPPFLAGS

Fixes build with external toolchains not having STAGING_DIR in their
default search path(s).

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
7 years agothc-ipv6: Allow overriding CFLAGS
Florian Fainelli [Sun, 5 Feb 2017 04:57:34 +0000 (20:57 -0800)]
thc-ipv6: Allow overriding CFLAGS

thc-ipv6 did not allow an external environment to override CFLAGS, which
would lead to our CFLAGS not being passed properly (relro,
optimizations, etc...)

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
7 years agoramips: remove kmod-mt76* from EX2700 images
Joseph C. Lehner [Wed, 1 Mar 2017 17:44:03 +0000 (18:44 +0100)]
ramips: remove kmod-mt76* from EX2700 images

These modules are not needed by the EX2700, since it does not
have an external wifi chip (MT7620A is covered by rt2x00).

Signed-off-by: Joseph C. Lehner <joseph.c.lehner@gmail.com>
7 years agoramips: rename patch file suffix from .c to .patch
Furong Xu [Wed, 1 Mar 2017 03:31:41 +0000 (11:31 +0800)]
ramips: rename patch file suffix from .c to .patch

Signed-off-by: Furong Xu <xfr@outlook.com>
7 years agoramips: add support for Afoundry EW-1200
Francois Goudal [Mon, 27 Feb 2017 20:59:50 +0000 (21:59 +0100)]
ramips: add support for Afoundry EW-1200

This device features both a 2.4 and 5Ghz radio, and supports
802.11a/b/g/n/ac modes.
It has 5 Gb-Ethernet ports and a USB 3.0 host port.

It is powered by the Mediatek MT7621 SoC, and the MT7602E and MT7612E wifi
chipsets, together with 128MB of RAM and 16 MB of SPI Flash.

The stock firmware is in fact based on some openwrt barrier breaker, with a
mediatek SDK kernel, and an afoundry custom made web interface (not LuCI
based).
Firmware update page on the stock web interface can not accept sysupgrade
images, it bricks the device.
At this point, the only working solution I found was to connect to the
serial console port (available on J4 header) and to use opkg to install
dropbear.
Then scp the sysupgrade file in the device's /tmp and run sysupgrade from
console without preserving configuration files.

Signed-off-by: Francois Goudal <francois@goudal.net>
7 years agokernel: fix earlycon by keeping __earlycon_table
Rafał Miłecki [Wed, 1 Mar 2017 14:37:58 +0000 (15:37 +0100)]
kernel: fix earlycon by keeping __earlycon_table

Somewhere between 4.4 and 4.9 there was a change that made
OF_EARLYCON_DECLARE adding entries to the __earlycon_table instead of
__earlycon_of_table. We need to keep this table as well.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agomac80211: brcmfmac: always print error when PSM's watchdog fires
Rafał Miłecki [Wed, 1 Mar 2017 06:09:59 +0000 (07:09 +0100)]
mac80211: brcmfmac: always print error when PSM's watchdog fires

This error is important enough to be displayed even without debugging.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agobcm53xx: backport Broadcom's iProc QSPI driver
Rafał Miłecki [Wed, 1 Mar 2017 05:52:23 +0000 (06:52 +0100)]
bcm53xx: backport Broadcom's iProc QSPI driver

This driver has been added instead of improving spi-bcm53xx. It has some
advantages: allows SPI speed control & hopefully doesn't have bug that
was stopping us from using multiple SPI messages for writing flash data.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agoopkg: mark as essential (FS#571)
Jo-Philipp Wich [Wed, 1 Mar 2017 02:05:39 +0000 (03:05 +0100)]
opkg: mark as essential (FS#571)

Flag the opkg package as essential to avoid accidential uninstalls of it.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agokirkwood: fix include in etc/board.d/02_network
Alberto Bursi [Thu, 23 Feb 2017 18:42:40 +0000 (19:42 +0100)]
kirkwood: fix include in etc/board.d/02_network

the mtd_get_mac_ascii function called within this script requires the inclusion of /lib/functions/system.sh

Signed-off-by: Alberto Bursi <alberto.bursi@outlook.it>
7 years agoramips: add support for HiWiFi HC5962
ZengFei Zhang [Wed, 22 Feb 2017 12:47:22 +0000 (20:47 +0800)]
ramips: add support for HiWiFi HC5962

This patch adds supports for the HiWiFi HC5962(gee4) http://www.hiwifi.com

Short specification:

 - MT7621AT + MT7612EN + 7603EN
 - 256MB DDR3 RAM
 - 128MB NAND flash
 - 1+3 x 1000M Ethernet
 - 1x USB 2.0 port. 1x USB 3.0 port.
 - reset button
 - UART pad on PCB (JP3: TX, RX, GND, 3.3V)

Flash instruction:

1, Download lede-ramips-mt7621-hc5962-squashfs-factory.bin
2, Login as root via SSH on 192.168.199.1 and then copy factory.bin(using wget or nc or...) to /tmp/
3, use the following commands:
   $ mtd write /tmp/lede-ramips-mt7621-hc5962-squashfs-factory.bin firmware
   $ mtd erase firmware_backup && reboot
After reboot you should be able to login as root via SSH on 192.168.1.1

Signed-off-by: ZengFei Zhang <zhangzengfei@kunteng.org>
7 years agobcm53xx: backport accepted BCM5301X and BCM53573 patches
Rafał Miłecki [Tue, 28 Feb 2017 21:34:13 +0000 (22:34 +0100)]
bcm53xx: backport accepted BCM5301X and BCM53573 patches

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agokernel: fix MIPS memory function optimization build error in decompressor
Felix Fietkau [Tue, 28 Feb 2017 05:53:39 +0000 (06:53 +0100)]
kernel: fix MIPS memory function optimization build error in decompressor

Fixes the following build error:
  CC      arch/mips/boot/compressed/decompress.o
  OBJCOPY arch/mips/boot/compressed/vmlinux.bin
  XZKERN  arch/mips/boot/compressed/vmlinux.bin.z
  OBJCOPY arch/mips/boot/compressed/piggy.o
  LD      vmlinuz
arch/mips/boot/compressed/decompress.o: In function `lzma2_lzma':
/tmp2/mehrtens/linux/arch/mips/boot/compressed/../../../../lib/xz/xz_dec_lzma2.c:884: undefined reference to `memmove'
make[1]: *** [vmlinuz] Error 1
make: *** [vmlinuz] Error 2

lib/decompress_unxz.c only defines its own memmove function if there is no
macro with the same name.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agowireless-tools: Change download url to github
Hsing-Wang Liao [Sun, 26 Feb 2017 10:07:52 +0000 (18:07 +0800)]
wireless-tools: Change download url to github

Signed-off-by: Hsing-Wang Liao <kuoruan@gmail.com>
7 years agobcm53xx: enable CLK_BCM_NSP for kernel 4.9
Rafał Miłecki [Tue, 28 Feb 2017 15:43:22 +0000 (16:43 +0100)]
bcm53xx: enable CLK_BCM_NSP for kernel 4.9

This is required to get booting kernel.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agobrcm63xx: CPVA502+: add SPROM wifi
Daniel Gonzalez Cabanelas [Tue, 14 Feb 2017 15:37:18 +0000 (16:37 +0100)]
brcm63xx: CPVA502+: add SPROM wifi

Add SPROM wifi to the kernel board data.

After this fix, the wifi won't work anyway due the lack
of RAM memory (16 MB). It will throw a kernel panic
when loading the b43 drivers.

Signed-off-by: Daniel Gonzalez Cabanelas <dgcbueu@gmail.com>
7 years agobrcm63xx: CPVA502+: fix userspace support
Daniel Gonzalez Cabanelas [Tue, 14 Feb 2017 15:37:04 +0000 (16:37 +0100)]
brcm63xx: CPVA502+: fix userspace support

Fix board name typo, fix network configuration and add a led trigger.

Signed-off-by: Daniel Gonzalez Cabanelas <dgcbueu@gmail.com>
7 years agobrcm63xx: CPVA502+: fix image generation
Daniel Gonzalez Cabanelas [Tue, 14 Feb 2017 15:36:55 +0000 (16:36 +0100)]
brcm63xx: CPVA502+: fix image generation

Fix typo, erase pointless option and allow to build the image.

Signed-off-by: Daniel Gonzalez Cabanelas <dgcbueu@gmail.com>
7 years agobrcm63xx: CPVA502+: fix LEDs and buttons at DTS
Daniel Gonzalez Cabanelas [Tue, 14 Feb 2017 15:36:45 +0000 (16:36 +0100)]
brcm63xx: CPVA502+: fix LEDs and buttons at DTS

Leds are wrong and a button is missing, fix them.

Signed-off-by: Daniel Gonzalez Cabanelas <dgcbueu@gmail.com>
7 years agobrcm63xx: fix external IRQ edge type sense
Daniel Gonzalez Cabanelas [Tue, 7 Feb 2017 20:36:16 +0000 (21:36 +0100)]
brcm63xx: fix external IRQ edge type sense

Fix the register for configuring rising/falling edge

Rising should be sense=1, and falling sense=0.
The old driver used these values, but the new one have
them flipped.

Signed-off-by: Daniel Gonzalez Cabanelas <dgcbueu@gmail.com>
7 years agokernel: sort generic configs
Jonas Gorski [Mon, 27 Feb 2017 17:05:12 +0000 (18:05 +0100)]
kernel: sort generic configs

Use kconfig.pl to sort the generic configs and get rid of duplicate
entries.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
7 years agorules.mk: make PKG_CONFIG_DEPENDS properly track string values
Matthias Schiffer [Fri, 24 Feb 2017 11:16:33 +0000 (12:16 +0100)]
rules.mk: make PKG_CONFIG_DEPENDS properly track string values

The confvar macro is adjusted to not only consider if a variable has a
value or not, but also the value itself. Instead of creating a string of
'y' and 'n' characters, all variable names and values are concatenated
and hashed.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
7 years agokernel: add another missing TPM symbol
John Crispin [Mon, 27 Feb 2017 13:51:43 +0000 (14:51 +0100)]
kernel: add another missing TPM symbol

Signed-off-by: John Crispin <john@phrozen.org>
7 years agokernel: add missing TPM related config symbol for 3.18
Felix Fietkau [Mon, 27 Feb 2017 13:41:50 +0000 (14:41 +0100)]
kernel: add missing TPM related config symbol for 3.18

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agolantiq: select kmod-mt7603 instead of kmod-mt76 for WBMR-300HPD
Felix Fietkau [Sun, 26 Feb 2017 14:00:54 +0000 (15:00 +0100)]
lantiq: select kmod-mt7603 instead of kmod-mt76 for WBMR-300HPD

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agokernel: fix TPM related config symbols for 4.9
Felix Fietkau [Mon, 27 Feb 2017 12:45:47 +0000 (13:45 +0100)]
kernel: fix TPM related config symbols for 4.9

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agokernel: add missing HW_RANDOM_TPM symbol
John Crispin [Mon, 27 Feb 2017 11:36:59 +0000 (12:36 +0100)]
kernel: add missing HW_RANDOM_TPM symbol

Signed-off-by: John Crispin <john@phrozen.org>
7 years agotoolchain: unbreak glibc on MIPS
Jonas Gorski [Thu, 23 Feb 2017 21:16:00 +0000 (22:16 +0100)]
toolchain: unbreak glibc on MIPS

Binutils recently updated the ABI version to 5, which broke glibc, as it
refuses to load anything > 3. Upstream reverted the ABI version update,
so backport the commit.

Fixes the following error on boot:

/bin/sh: error while loading shared libraries: /lib/libcrypt.so.1: ELF file ABI version invalid
[    0.920077] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00007f00
[    0.920077]
[    0.929450] Rebooting in 1 seconds..

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
7 years agoramips: add support for HiWiFi HC5661A
Wang JiaWei [Fri, 24 Feb 2017 23:19:15 +0000 (07:19 +0800)]
ramips: add support for HiWiFi HC5661A

HC5661A is almost the same as HC5661 but MT7628AN is used instead of MT7620A.

- MT7628AN
- 128 MiB DDR2 RAM (W971GG6KB-25)
- 16 MiB SPI NOR flash (W25Q128)
- SD slot (not work yet)
- 1+4 x 100M Ethernet
- 802.11 b/g/n Wi-Fi
- 3 x LED
- 1 x button
- UART pad on PCB (JP1: TX, RX, GND, 3.3V)

The factory flash layout seems different from HC5661.
"hwf_config" is renamed to "oem" and its size changes to 0x20000.
It is modified accordingly in the dts file.

0x000000000000-0x000000030000 : "u-boot"
0x000000030000-0x000000040000 : "hw_panic"
0x000000040000-0x000000050000 : "Factory"
0x000000050000-0x000000160000 : "kernel"
0x000000160000-0x000000fc0000 : "rootfs"
0x000000bb0000-0x000000fc0000 : "rootfs_data"
0x000000fc0000-0x000000fe0000 : "oem"
0x000000fe0000-0x000000ff0000 : "bdinfo"
0x000000ff0000-0x000001000000 : "backup"
0x000000050000-0x000000fc0000 : "firmware"

To install LEDE, enabled the "developer mode",
which will *void your warranty* and open the SSH server at port 1022.

sysupgrade -n -F lede-ramips-mt7628-hc5661a-squashfs-sysupgrade.bin

SD slot:
- Tried to add modules kmod-sdhci kmod-sdhci-mt7620, and corresponding dts block.
- It will block WAN + 3xLAN ports, only one LAN works.
- I'm not sure why, everything else works fine.

Signed-off-by: Wang JiaWei <buaawjw@gmail.com>
7 years agokernel: update 4.9 to 4.9.13
Ansuel Smith [Sun, 26 Feb 2017 12:42:13 +0000 (13:42 +0100)]
kernel: update 4.9 to 4.9.13

refresh patch 630-packet_socket_type

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
7 years agokernel: Add TPM Module support
Chris Blake [Sun, 26 Feb 2017 10:04:51 +0000 (04:04 -0600)]
kernel: Add TPM Module support

The following will enable the TPM kernel module, as well as support for
the atmel i2c TPM driver. Tested and confirmed working on an Aerohive
AP-121

Signed-off-by: Chris Blake <chrisrblake93@gmail.com>
7 years agoipq806x: sanitize Dni image generation
Thomas Reifferscheid [Tue, 21 Feb 2017 19:58:38 +0000 (20:58 +0100)]
ipq806x: sanitize Dni image generation

The more straight forward approach for generating the pure and unpadded
kernel file which then can be used for initramfs straight.
Build options for factory.img and sysupgrade.tar are handeled
seperately.

Signed-off-by: Thomas Reifferscheid <thomas@reifferscheid.org>
7 years agokernel: enable hwmon-k10temp in the x86/64 kernel config instead of packaging it
Felix Fietkau [Sun, 26 Feb 2017 09:38:51 +0000 (10:38 +0100)]
kernel: enable hwmon-k10temp in the x86/64 kernel config instead of packaging it

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agotools/m4: update 1.4.18
Etienne Haarsma [Sun, 12 Feb 2017 15:50:07 +0000 (16:50 +0100)]
tools/m4: update 1.4.18

Patch 100-fix-gets-removal.patch is removed because it's included in the new version.

Signed-off-by: Etienne Haarsma <bladeoner112@gmail.com>
7 years agobuild: clean up redundant touching of the package install info file
Felix Fietkau [Tue, 21 Feb 2017 17:27:22 +0000 (18:27 +0100)]
build: clean up redundant touching of the package install info file

Instead of using a separate .clean stamp file, remove the install info
file on compile, then append the install package list afterwards

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agobuild: get rid of host.mk
Felix Fietkau [Mon, 20 Feb 2017 13:24:54 +0000 (14:24 +0100)]
build: get rid of host.mk

Defined required host related variables in toplevel.mk instead

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agobuild: get rid of FIND_L from host.mk
Felix Fietkau [Mon, 20 Feb 2017 12:03:49 +0000 (13:03 +0100)]
build: get rid of FIND_L from host.mk

This was added for Mac OS X many years ago, but recent versions also
support find -L

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agopackge/boot/rbcfg: add new boot constants found in the recent Mikrotik devices
Alex Samorukov [Tue, 21 Feb 2017 11:02:51 +0000 (12:02 +0100)]
packge/boot/rbcfg: add new boot constants found in the recent Mikrotik devices

Signed-off-by: Alex Samorukov <samm@os2.kiev.ua>
7 years agogrub2: update to 2.02~rc1
Alif M. Ahmad [Sat, 18 Feb 2017 16:03:33 +0000 (23:03 +0700)]
grub2: update to 2.02~rc1

Signed-off-by: Alif M. Ahmad <alive4ever@live.com>
7 years agoar71xx: mikrotik: erase firmware partition on SPI NOR devices in pre_upgrade()
Thibaut VARENE [Thu, 23 Feb 2017 11:24:05 +0000 (12:24 +0100)]
ar71xx: mikrotik: erase firmware partition on SPI NOR devices in pre_upgrade()

On Mikrotik SPI NOR devices, the firmware partition must be erased when flashing
from stock firmware, otherwise leftover bits (in particular a kernel signature)
can trigger a boot loop.

When booted from initramfs (the only way to flash LEDE on these devices),
this patch unconditionally erases the firmware partition in the pre_upgrade()
stage for all supported SPI NOR devices.

Signed-off-by: Thibaut VARENE <hacks@slashdirt.org>
7 years agoramips: include only kmod-mt76-core in EX2700 image
Joseph C. Lehner [Fri, 24 Feb 2017 17:20:48 +0000 (18:20 +0100)]
ramips: include only kmod-mt76-core in EX2700 image

This patch frees up flash space on the EX2700, by
removing unused mt76 drivers and firmware.

Signed-off-by: Joseph C. Lehner <joseph.c.lehner@gmail.com>
7 years agoar71xx: Enable RB2011 TTY
Arvid E. Picciani [Tue, 14 Feb 2017 11:29:02 +0000 (12:29 +0100)]
ar71xx: Enable RB2011 TTY

Enables TTY on the Mikrotik RouterBoard RB2011*R*

Signed-off-by: Arvid E. Picciani <aep@exys.org>
7 years agokernel: update 4.9 to 4.9.12
Ansuel Smith [Thu, 23 Feb 2017 17:00:31 +0000 (18:00 +0100)]
kernel: update 4.9 to 4.9.12

Refresh generic patch

Compiled and tested WRT1900ACS

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
7 years agolayerscape: add LS1043A Rev1.1 support
Yangbo Lu [Fri, 17 Feb 2017 14:21:56 +0000 (22:21 +0800)]
layerscape: add LS1043A Rev1.1 support

Backport kernel patches for LS1043A Rev1.1 support from upstream,
patchwork, and SDK. And update to latest u-boot to support LS1043A
Rev1.1.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
7 years agoiftop: bump to latest upstream
Kevin Darbyshire-Bryant [Tue, 18 Oct 2016 08:56:19 +0000 (09:56 +0100)]
iftop: bump to latest upstream

Drops a LEDE carried patch now upstream.
Convert to autotools.
A number of nits fixed upstream (dns & short packet handling most
notable)

Signed-off-by: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
7 years agorelayd: fix making incomplete instance json data
Yousong Zhou [Sat, 25 Feb 2017 12:07:27 +0000 (20:07 +0800)]
relayd: fix making incomplete instance json data

Defer procd_open_instance only after validity check passed.

Fixes FS#541

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
7 years agorelayd: remove old start-stop-service related code
Yousong Zhou [Sat, 25 Feb 2017 12:00:14 +0000 (20:00 +0800)]
relayd: remove old start-stop-service related code

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
7 years agoubus: update to the latest version
Felix Fietkau [Sat, 25 Feb 2017 10:15:07 +0000 (11:15 +0100)]
ubus: update to the latest version

c09e4f0 ubusd: fix incomplete copy of shared buf during queue-ing
453b87f cli: add support for subscribing to objects
6eb3c96 cli: do not use default timeout for listen
dfe3383 libubus: reset ctx->sock.error when doing ubus reconnect
34c6e81 cli: fix listen_timeout compile issue

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agolibubox: Update to latest version
Ted Hess [Fri, 24 Feb 2017 20:30:28 +0000 (15:30 -0500)]
libubox: Update to latest version

9d6305a utils: Change calloc_a() to return size_t aligned pointers

Signed-off-by: Ted Hess <thess@kitschensync.net>
7 years agoubox: fix possible address alignment issue
Yousong Zhou [Fri, 24 Feb 2017 01:45:37 +0000 (09:45 +0800)]
ubox: fix possible address alignment issue

Fixes FS#544

3dc78a4 kmodloader: don't store aliases info in struct module

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
7 years agoppp: ppp6-up: add executable permission bit
Yousong Zhou [Wed, 15 Feb 2017 06:06:41 +0000 (14:06 +0800)]
ppp: ppp6-up: add executable permission bit

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
7 years agomac80211: hwsim: select DRIVER_11AC_SUPPORT and DRIVER_11W_SUPPORT
Yousong Zhou [Fri, 3 Feb 2017 13:15:42 +0000 (21:15 +0800)]
mac80211: hwsim: select DRIVER_11AC_SUPPORT and DRIVER_11W_SUPPORT

This is required for default wireless configuration of malta target to
work out of the box again.  Fixes "77ece30e: hostapd: Add ability to
specify that that wireless driver supports 802.11ac"

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
7 years agoiw: sync nl80211.h with mac80211 package
Felix Fietkau [Fri, 24 Feb 2017 11:17:03 +0000 (12:17 +0100)]
iw: sync nl80211.h with mac80211 package

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoodhcpd: update to git HEAD version (FS#397) (FS#481)
Hans Dedecker [Thu, 23 Feb 2017 20:56:15 +0000 (21:56 +0100)]
odhcpd: update to git HEAD version (FS#397) (FS#481)

1b630f8 router: don't announce prefixes with valid lifetime equal to 0
ba0cac0 router: fix arithmetic exception fault
3495f17 router: allow RA prefix lifetime being set to leasetime value (FS#397)
e437ce9 treewide: simplify dhcp leasetime checking
942fb33 router: support ra_mininterval and ra_lifetime uci parameters (FS#397)
f913337 router.h: fix alignment style
4dc7edb Revert "odhcpd.h: fix alignment style"
62ea54f odhcpd.h: fix alignment style
a898ee5 config: make loglevel configurable via uci (FS#481)
51c756c odhcpd: display correct default log level in usage text
68ee0b5 treewide: define and use macro IN6_IS_ADDR_ULA
fa57225 ndp: deregister netlink event socket for non recoverable errors
ac70d28 odhcpd: fix white space errors

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
7 years agoswconfig: Bugfix switch_port uci option parsing
Ben Kelly [Mon, 20 Feb 2017 12:04:30 +0000 (14:04 +0200)]
swconfig: Bugfix switch_port uci option parsing

When not defining 'device' or 'vlan' in relevant switch_port uci
sections, behaviour is inconsistent due to *devn, *port and *vlan
pointers not being zero initialized.

Signed-off-by: Ben Kelly <ben@benjii.net>
7 years agouboot-omap: Makefile: Include kernel.mk
Alexandru Gagniuc [Thu, 23 Feb 2017 00:04:36 +0000 (16:04 -0800)]
uboot-omap: Makefile: Include kernel.mk

This is needed for the definition of $(LINUX_DIR). This is used in
u-boot.mk to change the device-tree compiler to the dtc used by
linux.

Without this, the build will use the system dtc. This results in a
build failure when a dtc does not exist outside the buildroot.

Signed-off-by: Alexandru Gagniuc <alex.g@adaptrum.com>
7 years agoar71xx: use common firmware partition for WNDAP360
Felix Fietkau [Sun, 19 Feb 2017 13:40:10 +0000 (14:40 +0100)]
ar71xx: use common firmware partition for WNDAP360

Patch from https://github.com/openwrt/openwrt/pull/398

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agomac80211: disable potentially harmful PS software retry for A-MPDU sessions
Felix Fietkau [Wed, 22 Feb 2017 21:51:04 +0000 (22:51 +0100)]
mac80211: disable potentially harmful PS software retry for A-MPDU sessions

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agonetifd: fix stopping netifd + interfaces
Felix Fietkau [Mon, 20 Feb 2017 09:49:33 +0000 (10:49 +0100)]
netifd: fix stopping netifd + interfaces

stop() is overwritten by rc.common, so implement stop_service instead.
While at it, remove the now unnecessary restart() override

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agomt76: split kmod package
Joseph C. Lehner [Sun, 19 Feb 2017 12:13:15 +0000 (13:13 +0100)]
mt76: split kmod package

This patch splits `kmod-mt76` into three separate packages:
`kmod-mt76-core`, `kmod-mt76x2` and `kmod-mt7603`. By making
`kmod-mt76` a metapackage containing these new packages,
the previous behaviour of including all drivers and firmware
is left unchanged, unless explicitly unselected in
`DEVICE_PACKAGES`.

This splitting is especially beneficial for devices with
small flash chips, since the `kmod-mt76` package currently
requires ~160K on squashfs (after compression).

Signed-off-by: Joseph C. Lehner <joseph.c.lehner@gmail.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name> [cleanup]