librecmc/librecmc.git
8 years agoprocd: update to latest git HEAD
John Crispin [Tue, 5 Jul 2016 08:24:51 +0000 (10:24 +0200)]
procd: update to latest git HEAD

Signed-off-by: John Crispin <john@phrozen.org>
8 years agouci: update to latest git HEAD
John Crispin [Mon, 4 Jul 2016 14:37:55 +0000 (16:37 +0200)]
uci: update to latest git HEAD

Signed-off-by: John Crispin <john@phrozen.org>
8 years agousign: update to latest git HEAD
John Crispin [Mon, 4 Jul 2016 14:36:47 +0000 (16:36 +0200)]
usign: update to latest git HEAD

Signed-off-by: John Crispin <john@phrozen.org>
8 years agoumbim: update to latest git HEAD
John Crispin [Mon, 4 Jul 2016 14:35:39 +0000 (16:35 +0200)]
umbim: update to latest git HEAD

Signed-off-by: John Crispin <john@phrozen.org>
8 years agolibubox: update to latest git HEAD
John Crispin [Mon, 4 Jul 2016 14:32:27 +0000 (16:32 +0200)]
libubox: update to latest git HEAD

Signed-off-by: John Crispin <john@phrozen.org>
8 years agoramips: fix MT7621 gsw handling
John Crispin [Mon, 4 Jul 2016 13:20:25 +0000 (15:20 +0200)]
ramips: fix MT7621 gsw handling

based on https://forum.openwrt.org/viewtopic.php?pid=323671#p323671

Signed-off-by: John Crispin <john@phrozen.org>
8 years agoramips: fix mt7621 SoC detection
John Crispin [Mon, 4 Jul 2016 13:20:05 +0000 (15:20 +0200)]
ramips: fix mt7621 SoC detection

Signed-off-by: John Crispin <john@phrozen.org>
8 years agoscripts/feeds: Prevent .config autocreation
Daniel Dickinson [Mon, 4 Jul 2016 08:43:02 +0000 (04:43 -0400)]
scripts/feeds: Prevent .config autocreation

When using scripts/feeds upgrade the .config needs to be
updated but the code to do so was also autocreating a
.config if one didn't exist.  This is counter-productive
when you have not yet used menuconfig (or other config targets)
because things like selecting or deselecting CONFIG_ALL
(to build all package by default) only works if the
package selection has not already been done via an
existing .config selection.

Signed-off-by: Daniel Dickinson <lede@daniel.thecshore.com>
8 years agopx5g: Create mbedtls variant
Daniel Dickinson [Thu, 23 Jun 2016 01:12:16 +0000 (21:12 -0400)]
px5g: Create mbedtls variant

px5g has been listed as a blocker for switching to new mbedtls
as the default, therefore make and mbedtls variant of px5g so
that an new mbedtls-only image can be created.

Signed-off-by: Daniel Dickinson <lede@daniel.thecshore.com>
8 years agopackages: fix bmp085-spi typo
Zoltan HERPAI [Mon, 4 Jul 2016 17:34:48 +0000 (19:34 +0200)]
packages: fix bmp085-spi typo

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
8 years agouclient: update to the latest version, fixes HTTP redirect support
Felix Fietkau [Tue, 5 Jul 2016 10:40:15 +0000 (12:40 +0200)]
uclient: update to the latest version, fixes HTTP redirect support

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoath9k: add beacon related stability fixes
Felix Fietkau [Tue, 5 Jul 2016 08:45:17 +0000 (10:45 +0200)]
ath9k: add beacon related stability fixes

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoRevert "ustream-ssl: Fix recursive dependency"
Felix Fietkau [Mon, 4 Jul 2016 10:59:03 +0000 (12:59 +0200)]
Revert "ustream-ssl: Fix recursive dependency"

This reverts commit abf0768131db659c6819de9e7149624dd044c345.
The description is wrong, there is no recursive dependency here. The
conditions were added intentionally to avoid bogus build dependencies.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoiwinfo: fix nl80211 phy lookup without platform prefix
Jo-Philipp Wich [Mon, 4 Jul 2016 14:19:43 +0000 (16:19 +0200)]
iwinfo: fix nl80211 phy lookup without platform prefix

Commit d9b20a6f351c50d206fb6d2f965a16318c0cecf7 (SVN r48426) changed the
mac80211 phy lookup logic to strip the platform/ directory component from
the phy path specification.

Fix iwinfo to follow that logic by trying to lookup phys both with and
without "platform/" prefix.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agoe2fsprogs: fix build on OS X systems
Jo-Philipp Wich [Fri, 1 Jul 2016 14:41:46 +0000 (16:41 +0200)]
e2fsprogs: fix build on OS X systems

On OS X systems, the compilation of e2fsprogs fails at subst.c due to a
missing sys/stat.h include:

    subst.c:333:14: error: variable has incomplete type 'struct stat'
            struct stat stbuf;
                        ^
    subst.c:333:9: note: forward declaration of 'struct stat'
            struct stat stbuf;
                   ^
    subst.c:392:8: warning: implicit declaration of function 'fstat' is invalid in C99
          [-Wimplicit-function-declaration]
                            if (fstat(fd, &stbuf) == 0) {
                                ^
    subst.c:438:12: warning: implicit declaration of function 'fchmod' is invalid in C99
          [-Wimplicit-function-declaration]
                                    (void) fchmod(ofd, 0444);
                                           ^
    2 warnings and 1 error generated.
    make[3]: *** [subst.o] Error 1

Declare the nescessary HAVE_SYS_STAT_H macro to include the required header in
order to avoid the undeclared stat structure.

Tested-By: David Thornley <david.thornley@touchstargroup.com>
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agobcm53xx: calculate Seama MD5 using content of kernel partition
Rafał Miłecki [Mon, 4 Jul 2016 10:20:54 +0000 (12:20 +0200)]
bcm53xx: calculate Seama MD5 using content of kernel partition

We don't want checksum to cover any part of UBI as even its part with
SquashFS may be changed due to e.g. flash wearing.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
8 years agoRevert "bcm53xx: use uncompressed zImages"
Rafał Miłecki [Mon, 4 Jul 2016 09:48:10 +0000 (11:48 +0200)]
Revert "bcm53xx: use uncompressed zImages"

This reverts commit b3be33f135f447d56ef9a5461e7e675d5cc35730.

CFE is known to fail in some non-standard cases, e.g. when using kernel
or format different that what was tested by Broadcom. This kernel change
triggered some problem with booting OpenWrt kernel stored in Seama.

As long as Seama checksum was covering enough data, it was working fine.
We need to change it however, because calculating MD5 over part of UBI
containing SquashFS is unsafe. UBI may move PEBs depending on flash
wearing level which would break CFE booting the image.

For some reason this kernel change was breaking CFE. Calculating MD5
over 0x47ffc0 B data or less (there is 0x40 B long header) was stopping
booting process at:
Starting program at 0x00008000

As our kernel is usually 0x3fffc0 B it was affected by this problem.

Reverting this change fixes sysupgrade (which already uses kernel size
for MD5 calculation) and will allow us to adjust "fixseama" command call
on the first boot.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
8 years agodosfstools: update to v4.0
Álvaro Fernández Rojas [Tue, 21 Jun 2016 06:33:50 +0000 (08:33 +0200)]
dosfstools: update to v4.0

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
8 years agoipq806x: enable ath10k firmware for 988x, 99x0 and 9984 by default
Felix Fietkau [Mon, 4 Jul 2016 09:39:24 +0000 (11:39 +0200)]
ipq806x: enable ath10k firmware for 988x, 99x0 and 9984 by default

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoustream-ssl: Fix recursive dependency
Daniel Dickinson [Mon, 4 Jul 2016 08:49:18 +0000 (04:49 -0400)]
ustream-ssl: Fix recursive dependency

Two variants incorrectly include themselves in
conditional depends on ssl libraries, which results
in a recursive dependency.

Signed-off-by: Daniel Dickinson <lede@daniel.thecshore.com>
8 years agoramips: fix up switch settings for Sitecom WL-351 v1 002
John Crispin [Wed, 29 Jun 2016 13:09:09 +0000 (15:09 +0200)]
ramips: fix up switch settings for Sitecom WL-351 v1 002

Pinmux for rgmii needs to be set to rgmii, not gpio.
Hide the ESW switch on boot (using new rgmii esw devicetree attribute).
Also add a Sitecom-specific profile, since the image needs to include
the rtl8366 kernel driver.

Signed-off-by: Tobias Diedrich <ranma+openwrt@tdiedrich.de>
8 years agox86: enable kmod-igb on 64-bit by default
Felix Fietkau [Sun, 3 Jul 2016 17:43:16 +0000 (19:43 +0200)]
x86: enable kmod-igb on 64-bit by default

It is used on APU2 devices

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agokernel: fix duplicate drivers for the PC speaker in one package
Felix Fietkau [Sun, 3 Jul 2016 17:35:42 +0000 (19:35 +0200)]
kernel: fix duplicate drivers for the PC speaker in one package

Only use the ALSA capable one, it supports regular beeps as well

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agox86: stop relying on hexdump for image build signature
Felix Fietkau [Sun, 3 Jul 2016 16:39:08 +0000 (18:39 +0200)]
x86: stop relying on hexdump for image build signature

Use perl to generate random number instead.
See https://github.com/freifunk-gluon/gluon/issues/811

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agomac80211: move include statements for skb_get_hash_perturb() to prevent issues with...
Felix Fietkau [Sun, 3 Jul 2016 16:13:11 +0000 (18:13 +0200)]
mac80211: move include statements for skb_get_hash_perturb() to prevent issues with newer kernels

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agomac80211: backport skb_get_hash_perturb() for 4.1 and older
Felix Fietkau [Sun, 3 Jul 2016 15:56:53 +0000 (17:56 +0200)]
mac80211: backport skb_get_hash_perturb() for 4.1 and older

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agokernel: mac80211: set the parent of the ath9k gpio_chip
Martin Blumenstingl [Fri, 1 Jul 2016 13:41:19 +0000 (15:41 +0200)]
kernel: mac80211: set the parent of the ath9k gpio_chip

This allows gpiolib to re-use ath9k's devicetree node as GPIO
controller.
Example:

ath9k: ath9k@0 {
#gpio-cells = <2>;
gpio-controller;
}

Now the ath9k node can be used just like any other GPIO controller:
gpios = <&ath9k 1 GPIO_ACTIVE_HIGH>;

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
8 years agokernel: mac80211: enable the gpio controller for all ath9k devices
Martin Blumenstingl [Fri, 1 Jul 2016 13:41:18 +0000 (15:41 +0200)]
kernel: mac80211: enable the gpio controller for all ath9k devices

This enables ath9k's built-in GPIO controller for all chip versions
(instead of an explicit whitelist). This also allows us to get rid of
some duplicate code between hw.c and gpio.c because hw.c already
determines the number of GPIOs.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
8 years agokernel: mac80211: fold the AR9280 GPIO patch into the ath9k GPIO patch
Martin Blumenstingl [Fri, 1 Jul 2016 13:41:17 +0000 (15:41 +0200)]
kernel: mac80211: fold the AR9280 GPIO patch into the ath9k GPIO patch

This folds 550-ath9k_add_ar9280_gpio_chip.patch into
548-ath9k_enable_gpio_chip.patch because the former patch only extends
code which is introduced in the latter.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
8 years agomac80211: refresh patches
Mathias Kresin [Fri, 1 Jul 2016 13:41:16 +0000 (15:41 +0200)]
mac80211: refresh patches

Signed-off-by: Mathias Kresin <dev@kresin.me>
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
8 years agoath10k: fix tx performance regression on older chipsets
Felix Fietkau [Wed, 29 Jun 2016 09:01:16 +0000 (11:01 +0200)]
ath10k: fix tx performance regression on older chipsets

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agomac80211: enable STBC and LDPC for VHT rates
Felix Fietkau [Wed, 29 Jun 2016 08:44:39 +0000 (10:44 +0200)]
mac80211: enable STBC and LDPC for VHT rates

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoath10k-firmware: add symlink for QCA9984 board.bin
Felix Fietkau [Sun, 26 Jun 2016 19:47:51 +0000 (21:47 +0200)]
ath10k-firmware: add symlink for QCA9984 board.bin

Use first caldata for devices without OTP. The driver uses the caldata
instead of the board.bin data anyway

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agomac80211: update to wireless-testing 2016-06-20
Felix Fietkau [Sun, 26 Jun 2016 17:00:01 +0000 (19:00 +0200)]
mac80211: update to wireless-testing 2016-06-20

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoimx6: fix redundant PROFILES overrides in image makefile
Felix Fietkau [Sat, 2 Jul 2016 17:33:52 +0000 (19:33 +0200)]
imx6: fix redundant PROFILES overrides in image makefile

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoimx6: fix build breakage introduced in 9e41c3f54e3c
Felix Fietkau [Sat, 2 Jul 2016 17:33:10 +0000 (19:33 +0200)]
imx6: fix build breakage introduced in 9e41c3f54e3c

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoimx6: fix image makefile indentation for Device/ sections
Felix Fietkau [Sat, 2 Jul 2016 17:12:09 +0000 (19:12 +0200)]
imx6: fix image makefile indentation for Device/ sections

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agokernel: fix build of kmod-udptunnel4 and kmod-udptunnel6
Hauke Mehrtens [Sat, 2 Jul 2016 16:03:56 +0000 (18:03 +0200)]
kernel: fix build of kmod-udptunnel4 and kmod-udptunnel6

The kernel config option CONFIG_NET_UDP_TUNNEL is not visible and can
not directly be activated. When kmod-udptunnel4 or kmod-udptunnel6 are
build these packages could be empty when no other kernel module selects
CONFIG_NET_UDP_TUNNEL.

Reported-by: Baptiste Jonglez <baptiste@bitsofnetworks.org>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
8 years agojsonfilter: update to latest git HEAD
John Crispin [Sat, 2 Jul 2016 08:15:20 +0000 (10:15 +0200)]
jsonfilter: update to latest git HEAD

Signed-off-by: John Crispin <john@phrozen.org>
8 years agoprocd: Set /dev/kmsg to 600
neheb [Sat, 2 Jul 2016 01:32:27 +0000 (18:32 -0700)]
procd: Set /dev/kmsg to 600

Small cleanup. I initially though /dev/kmsg was used for dmsg(and journald
on desktops) but this seems not to be the case. dmsg is still accessible
as non-root(gives output) which begs the question what does this do? Some
googling reveals that permissions are set to 600 for some embedded systems
while 644 for others. I can't find any justification for the latter. Might
as well err on the side of caution.

Signed-off by: Rosen Penev <rosenp@gmail.com>

8 years agofstools: update to latest git HEAD
John Crispin [Fri, 1 Jul 2016 13:27:04 +0000 (15:27 +0200)]
fstools: update to latest git HEAD

Signed-off-by: John Crispin <john@phrozen.org>
8 years agoprocd: update to latest git HEAD
John Crispin [Fri, 1 Jul 2016 13:23:44 +0000 (15:23 +0200)]
procd: update to latest git HEAD

Signed-off-by: John Crispin <john@phrozen.org>
8 years agoubox: update to latest git HEAD
John Crispin [Fri, 1 Jul 2016 13:20:20 +0000 (15:20 +0200)]
ubox: update to latest git HEAD

Signed-off-by: John Crispin <john@phrozen.org>
8 years agoustream-ssl: update to latest git HEAD
John Crispin [Fri, 1 Jul 2016 13:18:55 +0000 (15:18 +0200)]
ustream-ssl: update to latest git HEAD

Signed-off-by: John Crispin <john@phrozen.org>
8 years agoubus: update to latest git HEAD
John Crispin [Fri, 1 Jul 2016 13:13:12 +0000 (15:13 +0200)]
ubus: update to latest git HEAD

Signed-off-by: John Crispin <john@phrozen.org>
8 years agoar71xx: spi-rb4xx fix.
Sergey Sergeev [Thu, 30 Jun 2016 10:23:15 +0000 (13:23 +0300)]
ar71xx: spi-rb4xx fix.

In new kernels we should use clk_prepare_enable instead of clk_enable
since clk_enable does not make proper initialization that leads
to rise WARN_ON messages and not working spi bus on the device.

Signed-off-by: Sergey Sergeev <adron@yapic.net>
8 years agonand-utile: add package
Sergey Sergeev [Tue, 28 Jun 2016 12:23:24 +0000 (15:23 +0300)]
nand-utile: add package

This package is a custom build(like ubi-utils) of mtd-utils from infradead.org
It is required to work with Mikrotik NAND based devices

Signed-off-by: Sergey Sergeev <adron@yapic.net>
8 years agoar71xx: prevent spurious ethernet resets from dma hang check false positives
Felix Fietkau [Fri, 17 Jun 2016 21:58:11 +0000 (23:58 +0200)]
ar71xx: prevent spurious ethernet resets from dma hang check false positives

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agolibnl-tiny: Generic Netlink multicast groups support
Hauke Mehrtens [Wed, 29 Jun 2016 21:13:58 +0000 (23:13 +0200)]
libnl-tiny: Generic Netlink multicast groups support

This adds this commit from normal libnl to libnl-tiny:
https://github.com/tgraf/libnl/commit/2dbc1ca76c5b82c40749e609eb83877418abb006

commit 2dbc1ca76c5b82c40749e609eb83877418abb006
Author: dima <dima.ky@gmail.com>
Date:   Wed Oct 13 17:53:34 2010 +0300

    Generic Netlink multicast groups support

    I have a patch against commit d378220c96c3c8b6f27dca33e7d8ba03318f9c2d
    extending libnl with a facility to receive generic netlink messages sent
    to multicast groups.

    Essentially it add one new function genl_ctrl_resolve_grp which
    prototype looks like this
    int genl_ctrl_resolve_grp(struct nl_sock *sk, const char *family_name,
            const char *grp_name)
    It resolves  the family name and the group name to group id. Then
    the returned id can be used in nl_socket_add_membership to subscribe
    to multicast messages.

    Besides that it adds two more functions

    uint32_t nl_socket_get_peer_groups(struct nl_sock *sk)
    void nl_socket_set_peer_groups(struct nl_sock *sk, uint32_t groups)

    allowing to modify the socket peer groups field. So it's possible to
    multicast messages from the user space using the legacy interface.
    Looks like there is no way (or I was not able to find one?) to modify
    the netlink socket destination group from the user space, when the
    group id is greater then 32.

Signed-off-by: Hauke Mehrtens <hauke.mehrtens@intel.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name> [cosmetic style fix]
8 years agokernel: Fix ipv6 mc snooping if bridge has no ipv6 address
daniel [Thu, 30 Jun 2016 21:49:52 +0000 (23:49 +0200)]
kernel: Fix ipv6 mc snooping if bridge has no ipv6 address

This patch is a backport for current LEDE 4.4 Kernels.
It is already upstream, for linux-next and stable.
The initial commit message is below:

The bridge is falsly dropping ipv6 mulitcast packets if there is:
 1. No ipv6 address assigned on the brigde.
 2. No external mld querier present.
 3. The internal querier enabled.

When the bridge fails to build mld queries, because it has no
ipv6 address, it slilently returns, but keeps the local querier enabled.
This specific case causes confusing packet loss.

Ipv6 multicast snooping can only work if:
 a) An external querier is present
 OR
 b) The bridge has an ipv6 address an is capable of sending own queries

Otherwise it has to forward/flood the ipv6 multicast traffic,
because snooping cannot work.

This patch fixes the issue by adding a flag to the bridge struct that
indicates that there is currently no ipv6 address assinged to the bridge
and returns a false state for the local querier in
__br_multicast_querier_exists().

Special thanks to Linus Lüssing.

Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
8 years agospidev_test: copy the source code into the package folder
John Crispin [Thu, 30 Jun 2016 11:05:22 +0000 (13:05 +0200)]
spidev_test: copy the source code into the package folder

Signed-off-by: John Crispin <john@phrozen.org>
8 years agokernel: other.mk: add pps-ldisc support
Stephen Walker [Wed, 29 Jun 2016 22:34:50 +0000 (18:34 -0400)]
kernel: other.mk: add pps-ldisc support

The pps-ldisc kernel module supports Pulse-Per-Second connected with the CD (Carrier Detect) pin.

Signed-off-by: Stephen Walker <stephendwalker+github@gmail.com>
8 years agoar71xx: seama: fix making factory images
Yousong Zhou [Thu, 30 Jun 2016 01:54:21 +0000 (09:54 +0800)]
ar71xx: seama: fix making factory images

rootfs part needs to be aligned to erase block size which is passed as
the 6th argument to Image/Build/Seama  and is now 65536 since commit
commit 5119ee9 "ar71xx: fix bogus hardcoded kernel image size for Seama
images (fixes #20585)", but $(($(6) - 64)) still assumes that the
argument is a limit on kernel partition size, i.e. 1310720, so the
generated factory image is wrong in that the kernel will fail to find
the rootfs (FlySpray link at [1])

This patch will workaround it with the following steps

1. Calculate the required space for seama header and META data in step 5
2. Pre-padding 64 bytes to lzma-compressed loader
3. Generate correctly padded image-$(2).tmp
4. Strip out the padding
5. Seal it with seama utility

While at it convert seama to new build method

[1] FS#35 - mynet-n750 factory images don't find root partition,
    https://bugs.lede-project.org/index.php?do=details&task_id=35

Reported-by: Steven Haigh <netwiz@crc.id.au>
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
8 years agoar71xx: image: unify indentation with 2 whitespaces
Yousong Zhou [Thu, 30 Jun 2016 01:54:20 +0000 (09:54 +0800)]
ar71xx: image: unify indentation with 2 whitespaces

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
8 years agoar71xx: image: remove duplicate IMAGES definition
Yousong Zhou [Thu, 30 Jun 2016 01:54:19 +0000 (09:54 +0800)]
ar71xx: image: remove duplicate IMAGES definition

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
8 years agoar71xx: hiwifi-hc6361: move packages selection to generic.mk
Yousong Zhou [Thu, 30 Jun 2016 01:54:18 +0000 (09:54 +0800)]
ar71xx: hiwifi-hc6361: move packages selection to generic.mk

Remove kmod-crypto-deflate and kmod-ledtrig-gpio as the device works the
same by default without them

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
8 years agoprocd: change /dev/{gpio,hvc*} perms to 0600
John Crispin [Wed, 29 Jun 2016 13:44:30 +0000 (15:44 +0200)]
procd: change /dev/{gpio,hvc*} perms to 0600

Signed-off-by: John Crispin <john@phrozen.org>
8 years agoprocd: adjust /dev entries to desktop distro defaults
neheb [Sat, 25 Jun 2016 05:39:25 +0000 (22:39 -0700)]
procd: adjust /dev entries to desktop distro defaults

This changes the default permissions for /dev entries to be more similar to
a desktop distro. Taken from the defaults of Arch Linux and Ubuntu. Also
changed some that were nonsensical. For example, all 660 permissions on
desktop distros were of the form root:x where x is something other than
root. As such, 660 is useless for LEDE where the specific group is missing.
audio seems to be the only group that isn't.

Signed-off by: Rosen Penev <rosenp@gmail.com>

8 years agoramips: disable the WP pin on the SDK mmc driver
John Crispin [Tue, 28 Jun 2016 09:15:31 +0000 (11:15 +0200)]
ramips: disable the WP pin on the SDK mmc driver

Signed-off-by: John Crispin <john@phrozen.org>
8 years agoramips: fix pinmux typo
John Crispin [Tue, 28 Jun 2016 08:59:56 +0000 (10:59 +0200)]
ramips: fix pinmux typo

Reported-by: Joy Kicer <joykicer@gmail.com>
Signed-off-by: John Crispin <john@phrozen.org>
8 years agobase-files: seed /dev/urandom
Etienne CHAMPETIER [Mon, 27 Jun 2016 15:53:30 +0000 (15:53 +0000)]
base-files: seed /dev/urandom

This commit:
1) seed /dev/urandom with the saved seeds as early as possible
   (see /lib/preinit/81_urandom_seed)
2) save a seed at /etc/urandom.seed if it doesn't exists
3) save a new seed each boot at "system.@system[0].urandom_seed"
   (see /etc/init.d/urandom_seed)

We use getrandom() so we are sure /dev/urandom pool is initialized

Seed size is 512 bytes (ie /proc/sys/kernel/random/poolsize / 8)
it's the same size as in ubuntu 14.04 and all systemd systems

Seeding /dev/urandom doesn't change entropy estimation, so we still have
"random: ubus urandom read with 4 bits of entropy available"
messages in the logs, but we can now ignore them if
after "urandom-seed: Seeding with ..." message

Saving a new seed on each boot is disabled by default to avoid too much
writes without user consent

v2: log preinit messages to /dev/kmsg
v3: use non generic function name for logging, as /lib/preinit/ files
    are all sourced together in /etc/preinit
v4: after a lot of discussion on the ML, use a uci config param
v5: config param is now the path of the seed

Signed-off-by: Etienne CHAMPETIER <champetier.etienne@gmail.com>
Acked-by: Jo-Philipp Wich <jo@mein.io>
8 years agokernel: Add option to make using filesystem ACL support the default
Daniel Dickinson [Thu, 17 Dec 2015 03:58:11 +0000 (22:58 -0500)]
kernel: Add option to make using filesystem ACL support the default

This adds a configuration options that allows to make filesystem ACL support
the default in the kernel, except for old nfs.

Signed-off-by: Daniel Dickinson <openwrt@daniel.thecshore.com>
8 years agopackage/kernel: Enable XATTR by default
Daniel Dickinson [Wed, 18 May 2016 08:59:15 +0000 (04:59 -0400)]
package/kernel: Enable XATTR by default

OpenWrt enables XATTR support pretty much universally, therefore
for filesystems that a loaded as modules also enable XATTR support
so that there are no unexpected missing capabilities.

Signed-off-by: Daniel Dickinson <lede@daniel.thecshore.com>
8 years agoe2fsprogs: fix build problem with very old libmagic
Hauke Mehrtens [Fri, 24 Jun 2016 15:37:40 +0000 (17:37 +0200)]
e2fsprogs: fix build problem with very old libmagic

The libmagic shipped with RedHat 5 does not define
MAGIC_NO_CHECK_ELF and MAGIC_NO_CHECK_COMPRESS. e2fsprogs should
check for that, otherwise the build will fail.

Signed-off-by: Hauke Mehrtens <hauke.mehrtens@intel.com>
8 years agoprism54-firmware: add also other p54 firmware to own package
Hauke Mehrtens [Fri, 24 Jun 2016 13:46:31 +0000 (15:46 +0200)]
prism54-firmware: add also other p54 firmware to own package

Extract the other p54 firmware files into the prism54-firmware package.

Signed-off-by: Hauke Mehrtens <hauke.mehrtens@intel.com>
8 years agofirmware: extract prism54-firmware into own package
Hauke Mehrtens [Wed, 22 Jun 2016 15:46:21 +0000 (17:46 +0200)]
firmware: extract prism54-firmware into own package

Instead of downloading the firmware for prism54 devices in the
wireless.mk do it in an extra package Makefile. To ship the complete
source code Intel ships our modified OpenWrt/LEDE + the content of the
dl directory. We do not want to have any files in the dl/ directory
which are not needed to build our images. The prism54 gets downloaded
every time independently of building kmod-net-prism54 or not. When it
is in a own package it only gets downloaded when the firmware package
is selected.

Signed-off-by: Hauke Mehrtens <hauke.mehrtens@intel.com>
8 years agoramips: set correct LAN/WAN MAC addresses on DIR-860L B1
Matthias Schiffer [Thu, 30 Jun 2016 14:16:30 +0000 (16:16 +0200)]
ramips: set correct LAN/WAN MAC addresses on DIR-860L B1

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
Reviewed-by: Jo-Philipp Wich <jo@mein.io>
8 years agoramips: add button support and make LEDs known to userspace for DIR-860L B1
Matthias Schiffer [Thu, 30 Jun 2016 13:18:03 +0000 (15:18 +0200)]
ramips: add button support and make LEDs known to userspace for DIR-860L B1

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
Reviewed-by: Jo-Philipp Wich <jo@mein.io>
8 years agoramips: fix fixseama call on first boot
Matthias Schiffer [Thu, 30 Jun 2016 13:50:11 +0000 (15:50 +0200)]
ramips: fix fixseama call on first boot

Commit "kernel: mtdsplit: calculate kernel partition precisely for Seama"
changed the kernel partition to only contain the kernel itself and not
the Seama header. Adjust the fixseama call to match what is used on
brcm53xx.

This fixes failing to boot a second time after flashing the factory image
on the affected devices.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
Reviewed-by: Jo-Philipp Wich <jo@mein.io>
8 years agoodhcp6c: Upstep to latest version
Hans Dedecker [Thu, 30 Jun 2016 10:28:22 +0000 (12:28 +0200)]
odhcp6c: Upstep to latest version

Following fixes are included in the latest version:
    -Script is launched with incorrect action
    -Possible buffer overflows
    -Lots of minor bugfixes

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
8 years agokmod-sched-cake: Switch to COBALT algorithm
Kevin Darbyshire-Bryant [Wed, 29 Jun 2016 12:56:38 +0000 (13:56 +0100)]
kmod-sched-cake: Switch to COBALT algorithm

COBALT is a hybrid codel/blue algo combining best elements of both.
Exhibits improved behaviour in presence of abuse from unresponsive flows
handled by 'blue', whereas responsive flows are still handled by codel.

Signed-off-by: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
8 years agoiproute2: cake AQM prepare tc for COBALT algorithm
Kevin Darbyshire-Bryant [Mon, 27 Jun 2016 10:16:57 +0000 (11:16 +0100)]
iproute2: cake AQM prepare tc for COBALT algorithm

Cake AQM is experimenting with a codel/blue hybrid AQM COBALT instead
of just using codel alone. This patch updates tc to cope with some new
stats produced by COBALT.

Signed-off-by: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
8 years agodnsmasq: Add broken realtime clock build switch in full variant
Hans Dedecker [Wed, 29 Jun 2016 12:29:48 +0000 (14:29 +0200)]
dnsmasq: Add broken realtime clock build switch in full variant

By default dnsmasq uses the time function; which returns the time since
Epoch; to retrieve the current time. On boards which have no realtime
clock this can lead to side effects when the time is synced via ntp
as the "time wrap" forces dhcp leases to be considered as expired.
By enabling the broken realtime clock build switch dnsmasq uses the
times utility which returns the number of clock tick.

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
[Jo-Philipp Wich: change symbol name, add sym to PKG_CONFIG_DEPENDS]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agorpcd: iwinfo plugin fixes
Jo-Philipp Wich [Wed, 29 Jun 2016 22:40:21 +0000 (00:40 +0200)]
rpcd: iwinfo plugin fixes

 - Expose supported HT rate information in info call
 - Zero out ccode buffer when listing countries

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agokmod-bmp085: add dependency on !LINUX_3_18 !LINUX_4_1
Alexander Couzens [Wed, 29 Jun 2016 00:40:34 +0000 (02:40 +0200)]
kmod-bmp085: add dependency on !LINUX_3_18 !LINUX_4_1

93d5629a introduced a build failure on older platforms (<4.4)
because bmp085 is a boolean and not a tristate.

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
8 years agomodules: add BMP085 pressure sensor
Dirk Neukirchen [Sat, 4 Jun 2016 16:34:02 +0000 (18:34 +0200)]
modules: add BMP085 pressure sensor

add BMP085 and BMP180 pressure sensors
this driver supports the SPI and I2C and
older chips (BMP280 is supported by iio subsystem)

issue found when cleaning up omap/config

found while writing this patch that a
similar patch was submitted in June/July 2014 but not integrated

only compile tested

Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
8 years agomac80211: fix skb size calculation in 4addr mode (FS#24)
Jo-Philipp Wich [Tue, 28 Jun 2016 20:43:22 +0000 (22:43 +0200)]
mac80211: fix skb size calculation in 4addr mode (FS#24)

The PDU length of incoming LLC frames is set to the total skb payload size
in __ieee80211_data_to_8023() of net/wireless/util.c which incorrectly
includes the length of the IEEE 802.11 header.

The resulting LLC frame header has a too large PDU length, causing the
llc_fixup_skb() function of net/llc/llc_input.c to reject the incoming
skb, effectively breaking STP.

Solve the problem by properly substracting the IEEE 802.11 frame header size
from the PDU length, allowing the LLC processor to pick up the incoming
control messages.

Special thanks to Gerry Rozema for tracking down the regression and proposing
a suitable patch.

Fixes FS#24.

References:
https://bugs.lede-project.org/index.php?do=details&task_id=24

Reported-by: Gerry Rozema <gerryr@rozeware.com>
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agobase-files: use LEDE NTP vendor pool
Jo-Philipp Wich [Tue, 28 Jun 2016 17:14:31 +0000 (19:14 +0200)]
base-files: use LEDE NTP vendor pool

The vendor NTP pool for the LEDE project got approved, so switch to it now.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agoopenvpn: fix missing cipher list for polarssl in v2.3.11
Jo-Philipp Wich [Tue, 28 Jun 2016 08:47:22 +0000 (10:47 +0200)]
openvpn: fix missing cipher list for polarssl in v2.3.11

Upstream OpenSSL hardening work introduced a change in shared code that
causes polarssl / mbedtls builds to break when no --tls-cipher is specified.

Import the upstream fix commit as patch until the next OpenVPN release gets
released and packaged.

Reported-by: Sebastian Koch <seb@metafly.info>
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agolldpd: Use /etc/os-release instead of /etc/openwrt_*
Daniel Dickinson [Wed, 18 May 2016 07:05:42 +0000 (03:05 -0400)]
lldpd: Use /etc/os-release instead of /etc/openwrt_*

With the addition of /etc/os-release patching lldpd to use
/etc/openwrt_release and to have the initscript use
/etc/openwrt_release and/or /etc/openwrt_version becomes
unnecessary.

Signed-off-by: Daniel Dickinson <lede@daniel.thecshore.com>
8 years agoar71xx: further legacy image build fixes
Jo-Philipp Wich [Mon, 27 Jun 2016 13:03:57 +0000 (15:03 +0200)]
ar71xx: further legacy image build fixes

- Add missing macro to trigger the generation of 64k padded squashfs images
- Revert Zcomax image generation to use the prepared 64k squashfs image

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agoRevert "lantiq: enable SMP for XRX200"
Felix Fietkau [Mon, 27 Jun 2016 10:40:44 +0000 (12:40 +0200)]
Revert "lantiq: enable SMP for XRX200"

This reverts commit cc3bfdb62f941dff3e2983591c78b6d39ca8d88a.

Apparently the ethernet driver is not SMP safe, as reported in
https://bugs.lede-project.org/index.php?do=details&task_id=27

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoar71xx: disable pdata->use_flow_control for QCA9558
Felix Fietkau [Mon, 27 Jun 2016 08:04:47 +0000 (10:04 +0200)]
ar71xx: disable pdata->use_flow_control for QCA9558

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoar71xx: rename ethernet pdata->builtin_switch to use_flow_control
Felix Fietkau [Mon, 27 Jun 2016 08:02:58 +0000 (10:02 +0200)]
ar71xx: rename ethernet pdata->builtin_switch to use_flow_control

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoar71xx: merge profiles into image building code
Jo-Philipp Wich [Fri, 17 Jun 2016 04:53:22 +0000 (06:53 +0200)]
ar71xx: merge profiles into image building code

- Remove old style device profiles and convert them to device definitions
  within the image building code

- Fix the legacy build macros for the changed eval depth in the legacy
  image build wrapper

Signed-off-by: John Crispin <john@phrozen.org>
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agokernel: fix missing break in ubi auto-mounting patch
Hauke Mehrtens [Tue, 21 Jun 2016 20:07:04 +0000 (22:07 +0200)]
kernel: fix missing break in ubi auto-mounting patch

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Reviewed-by: Jo-Philipp Wich <jo@mein.io>
8 years agokernel: remove igb: Fix Null-pointer dereference patch
Hauke Mehrtens [Sun, 26 Jun 2016 16:47:29 +0000 (18:47 +0200)]
kernel: remove igb: Fix Null-pointer dereference patch

This patch is already included in the Linux mainline kernel since
v3.15, remove it from LEDE, see the lines directly before this patch.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
8 years agokernel: remove full cache flush in fuse_copy_do() for MIPS
Hauke Mehrtens [Sat, 2 Apr 2016 12:36:10 +0000 (14:36 +0200)]
kernel: remove full cache flush in fuse_copy_do() for MIPS

This patch was introduced in commit r16412 for the brcm47xx target only
and then moved to generic in commit r32395. It was initially added
because of ticket #5186 and should fix some problems with fuse file
systems and MIPS caches. The commit comment in r32395 says that this a
generic problem in MIPS CPUs, but does not name any specifics about
that. There was a fix added to kernel 2.6.21 in commit commit
7575a49f20 "[MIPS] Implement flush_anon_page()." that should fix this
problem, but that was already available before both commits were done
to OpenWrt.

I just tested fuse with ntfs.3g without this patch on a BCM4704
(BMIPS3300 V0.6) SoC and haven't seen any problems. Someone reported
that removing this patch improves some fuse operations by 5 times on
some modern MIPS cores.
My test was only a simple "dd if=/dev/zero of=/mnt/zero bs=5000" to an
USB stick.

This patch removes the patch to OpenWrt, because I assume that it is
not needed any more and Felix, the orginal author, also thinks so.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
8 years agokernel: remove one of two patches deactivating broken vdso support on mips
Hauke Mehrtens [Sun, 26 Jun 2016 12:46:37 +0000 (14:46 +0200)]
kernel: remove one of two patches deactivating broken vdso support on mips

The patch target/linux/generic/patches-4.4/206-mips-disable-vdso.patch
should be sufficient.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
8 years agokernel: update to version 4.4.14
Hauke Mehrtens [Sun, 26 Jun 2016 12:45:12 +0000 (14:45 +0200)]
kernel: update to version 4.4.14

Changelog: https://cdn.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.4.14

Some manual changes to target/linux/generic/patches-4.4/610-
netfilter_match_bypass_default_checks.patch were needed.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
8 years agoRevert "ar71xx: prevent spurious ethernet resets from dma hang check false positives"
Felix Fietkau [Sun, 26 Jun 2016 14:53:11 +0000 (16:53 +0200)]
Revert "ar71xx: prevent spurious ethernet resets from dma hang check false positives"

This reverts commit 3d58d7f053eae83b59baf5c8b8a58da78653f605.

8 years agolibnetfilter_queue: fix checksum computation
Alin Năstac [Fri, 24 Jun 2016 12:41:10 +0000 (14:41 +0200)]
libnetfilter_queue: fix checksum computation

There are 2 issues fixed by this patch:
  - UDP checksum is computed incorrectly, the used pseudo IP header
    contains transport protocol 6 iso 17
  - on big endian arches the UDP/TCP checksum is incorrectly
    computed when payload length is odd

Signed-off-by: Alin Nastac <alin.nastac@gmail.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name> [refresh patch]
8 years agobuild: Adds the ability to disable personal initramfs build for target device
Sergey Sergeev [Thu, 16 Jun 2016 19:04:51 +0000 (22:04 +0300)]
build: Adds the ability to disable personal initramfs build for target device

If KERNEL_INITRAMFS := in the target/linux/*/image/Makefile->Device/%NAME% section is set to ''
then personal initramfs file for this target device will not be created.
This var is similar to the Device/Build/kernel KERNEL_INSTALL :=

Signed-off-by: Sergey Sergeev <adron@yapic.net>
8 years agoar71xx: prevent spurious ethernet resets from dma hang check false positives
Felix Fietkau [Fri, 17 Jun 2016 21:58:11 +0000 (23:58 +0200)]
ar71xx: prevent spurious ethernet resets from dma hang check false positives

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoar71xx: enable flow control for ethernet MACs with built-in switch
Felix Fietkau [Tue, 14 Jun 2016 09:27:20 +0000 (11:27 +0200)]
ar71xx: enable flow control for ethernet MACs with built-in switch

Should fix LAN speed issues on some devices. This is an updated version
of the previously reverted commit with the same name.
It improves the check for MACs connected to a built-in switch

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agolinux-firmware: fix md5sum
Hauke Mehrtens [Sat, 25 Jun 2016 16:55:50 +0000 (18:55 +0200)]
linux-firmware: fix md5sum

The copy on the mirror has a different md5sum as specified in this
package Makefile. The content of the file on the mirror is the same as
in the checkout so just update our md5sum.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
8 years agortl8192su-firmware: move firmware to own package
Hauke Mehrtens [Sat, 25 Jun 2016 16:40:00 +0000 (18:40 +0200)]
rtl8192su-firmware: move firmware to own package

Instead of downloading the firmware from some website take it from
linux-firmware package and do not download it separately any more.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
8 years agortl8192se-firmware: fix package build
Hauke Mehrtens [Sat, 25 Jun 2016 16:35:52 +0000 (18:35 +0200)]
rtl8192se-firmware: fix package build

The package did not pack the firmware because of a problem which looks
like a copy and past error.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
8 years agoRevert "ar71xx: fix legacy image building"
John Crispin [Thu, 23 Jun 2016 17:33:07 +0000 (19:33 +0200)]
Revert "ar71xx: fix legacy image building"

This reverts commit 59e98b27c93d282edb62fad756fd1c1e587c067f.

and

Revert "ar71xx: merge profiles into image building code"

This reverts commit 636089ead6864364798ac988299429d171051c0e.

these are still causing issues

Signed-off-by: John Crispin <john@phrozen.org>
8 years agoebtables: fix segmentation fault due to uninitialized extension data
Jo-Philipp Wich [Fri, 24 Jun 2016 13:04:27 +0000 (15:04 +0200)]
ebtables: fix segmentation fault due to uninitialized extension data

The ebtables code relies on the `-nostartfiles` linker argument to execute the
extension modules' `_init()` functions automatically which is not working
reliably across all supported targets and gcc versions.

Running an ebtables executable linked this way just crashes with a segmentation
fault at runtime on program startup, e.g. on ARM architectures.

In order to fix the issue ...
 - remove the use of the -nostartfiles linker flag
 - rename the init procedures to a generic name without implicit semantics
 - explicitely annotate those init procedures as constructors

The patch has been taken from the Alpine Linux distribution at
http://git.alpinelinux.org/cgit/aports/tree/main/ebtables/fix-extension-init.patch

Signed-off-by: Jo-Philipp Wich <jo@mein.io>