openwrt/staging/lynxis.git
8 years agox86: remove obsolete Config.in file
Felix Fietkau [Thu, 12 May 2016 15:46:14 +0000 (17:46 +0200)]
x86: remove obsolete Config.in file

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agobuild: remove leftover dependenices on TARGET_rdc
Felix Fietkau [Thu, 12 May 2016 15:43:17 +0000 (17:43 +0200)]
build: remove leftover dependenices on TARGET_rdc

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agox86: remove rdc specific kernel patch
Felix Fietkau [Thu, 12 May 2016 15:42:55 +0000 (17:42 +0200)]
x86: remove rdc specific kernel patch

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agotools/firmware-utils: remove obsolete firmware utility for airlink 525w
Felix Fietkau [Thu, 12 May 2016 15:39:46 +0000 (17:39 +0200)]
tools/firmware-utils: remove obsolete firmware utility for airlink 525w

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agox86: remove legacy script/makefile code for rdc devices
Felix Fietkau [Thu, 12 May 2016 15:39:04 +0000 (17:39 +0200)]
x86: remove legacy script/makefile code for rdc devices

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agox86: remove obsolete modules.mk
Felix Fietkau [Thu, 12 May 2016 15:36:34 +0000 (17:36 +0200)]
x86: remove obsolete modules.mk

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agox86/xen_domu: enable xen drivers in the kernel config instead of packaging them as...
Felix Fietkau [Thu, 12 May 2016 15:35:46 +0000 (17:35 +0200)]
x86/xen_domu: enable xen drivers in the kernel config instead of packaging them as modules

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agox86: enable grub at_keyboard support for x86_64
Felix Fietkau [Thu, 12 May 2016 15:00:38 +0000 (17:00 +0200)]
x86: enable grub at_keyboard support for x86_64

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agox86: remove the kvm_guest subtarget
Felix Fietkau [Thu, 12 May 2016 14:52:36 +0000 (16:52 +0200)]
x86: remove the kvm_guest subtarget

32-bit only hardware that supports kvm is very rare.
It's not worth keeping a separate subtarget for this.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agox86/64: add more hardware RNG drivers, including for virtio
Felix Fietkau [Thu, 12 May 2016 14:57:53 +0000 (16:57 +0200)]
x86/64: add more hardware RNG drivers, including for virtio

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agox86/64: enable virtualization support for spinlocks to improve kvm performance
Felix Fietkau [Thu, 12 May 2016 14:52:12 +0000 (16:52 +0200)]
x86/64: enable virtualization support for spinlocks to improve kvm performance

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agox86: remove maintainer override for x86_64
Felix Fietkau [Thu, 12 May 2016 14:20:36 +0000 (16:20 +0200)]
x86: remove maintainer override for x86_64

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agox86: remove the ep80579 subtarget, it has been unmaintained for a long time
Felix Fietkau [Thu, 12 May 2016 14:09:47 +0000 (16:09 +0200)]
x86: remove the ep80579 subtarget, it has been unmaintained for a long time

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agokernel: remove leftover kernel version for 4.3
Felix Fietkau [Thu, 12 May 2016 14:08:44 +0000 (16:08 +0200)]
kernel: remove leftover kernel version for 4.3

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agobusybox: fix issues with the ip command on mips64
Felix Fietkau [Thu, 12 May 2016 14:05:13 +0000 (16:05 +0200)]
busybox: fix issues with the ip command on mips64

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agofstools: update to latest git revision
John Crispin [Tue, 10 May 2016 17:05:09 +0000 (19:05 +0200)]
fstools: update to latest git revision

This fixes mount_root in failsafe and reverts a ext4 overlay patch.

Signed-off-by: John Crispin <john@phrozen.org>
8 years agokernel: add workaround to rebuild vdso-n32.so.dbg too
Jo-Philipp Wich [Wed, 11 May 2016 22:27:47 +0000 (00:27 +0200)]
kernel: add workaround to rebuild vdso-n32.so.dbg too

Building for octeon fails with

  'arch/mips/vdso/vdso-n32.so.dbg' already contains a '.MIPS.abiflags'
  section

if the file already exists from a prior build.

Use the same workaround as the one for vdso.so.dbg committed in
9eb155353a5f5137ec85a5b5b0287af63c544710.

Commit 91f205acaf2a44ae75418d2f2cb156149f0df8ae extended the workaround
to cover vdso-o32.so.dbg but missed the vdso-n32.so.dbg which is added
now by this change.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agokernel: update kernel 4.4 to version 4.4.10
Álvaro Fernández Rojas [Wed, 11 May 2016 17:47:32 +0000 (19:47 +0200)]
kernel: update kernel 4.4 to version 4.4.10

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
8 years agokernel: remove linux 4.3 config
Álvaro Fernández Rojas [Wed, 11 May 2016 17:16:38 +0000 (19:16 +0200)]
kernel: remove linux 4.3 config

When linux 4.3 support was removed the config was left.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
8 years agobuild: avoid including profiles/*.mk
Felix Fietkau [Wed, 11 May 2016 18:13:58 +0000 (20:13 +0200)]
build: avoid including profiles/*.mk

Generate the active profile name in menuconfig context

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoimage.mk: include per-device profiles in image build profile check
Felix Fietkau [Wed, 11 May 2016 17:15:23 +0000 (19:15 +0200)]
image.mk: include per-device profiles in image build profile check

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agometadata.pl: fix target profile sorting check
Felix Fietkau [Wed, 11 May 2016 17:17:42 +0000 (19:17 +0200)]
metadata.pl: fix target profile sorting check

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoncurses: add a compatibility symlink for packages searching for ncursesw/ncurses.h
Felix Fietkau [Wed, 11 May 2016 17:05:04 +0000 (19:05 +0200)]
ncurses: add a compatibility symlink for packages searching for ncursesw/ncurses.h

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agotoplevel.mk: rescan target metadata if the image makefile changes
Felix Fietkau [Tue, 10 May 2016 12:46:19 +0000 (14:46 +0200)]
toplevel.mk: rescan target metadata if the image makefile changes

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agometadata.pl: add support for forcing sorting of profiles
Felix Fietkau [Tue, 10 May 2016 12:43:46 +0000 (14:43 +0200)]
metadata.pl: add support for forcing sorting of profiles

Used to mix device profiles (specified in the image makefile) with
regular target profiles.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agotarget.mk: dump device profiles defined in include/image.mk
Felix Fietkau [Mon, 9 May 2016 16:51:00 +0000 (18:51 +0200)]
target.mk: dump device profiles defined in include/image.mk

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agotarget.mk: remove the unused Target-Path field
Felix Fietkau [Mon, 9 May 2016 16:32:47 +0000 (18:32 +0200)]
target.mk: remove the unused Target-Path field

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoimage.mk: add support for limiting images to specific subtargets
Felix Fietkau [Mon, 9 May 2016 16:27:44 +0000 (18:27 +0200)]
image.mk: add support for limiting images to specific subtargets

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoimage.mk: prepare for defining device profile data in the Device section
Felix Fietkau [Mon, 9 May 2016 14:50:46 +0000 (16:50 +0200)]
image.mk: prepare for defining device profile data in the Device section

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agobase-files: Fix config_generate when there are no switch VLANs or ports configured...
Vittorio Gambaletta (VittGam) [Fri, 6 May 2016 03:23:43 +0000 (05:23 +0200)]
base-files: Fix config_generate when there are no switch VLANs or ports configured in board.json.

The json_select call fails when there are no roles or ports objects in board.json. "json_select .." must not be executed after failing.

This fixes for example LEDs not being set up in /etc/config/system.

Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>
8 years agoREADME: Remove outdated info
Jo-Philipp Wich [Wed, 11 May 2016 14:51:01 +0000 (16:51 +0200)]
README: Remove outdated info

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agonetifd: Remove hardcoded DHCP release option
Hans Dedecker [Mon, 9 May 2016 16:22:38 +0000 (18:22 +0200)]
netifd: Remove hardcoded DHCP release option

Remove the udhcpc -R release option as sending a DHCP release
is configurable via the uci option release.

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
8 years agoncurses: install a dummy libtinfo.a for packages that try to link it
Felix Fietkau [Wed, 11 May 2016 09:34:18 +0000 (11:34 +0200)]
ncurses: install a dummy libtinfo.a for packages that try to link it

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoRevert "ncurses: package the tinfo library separately"
Felix Fietkau [Wed, 11 May 2016 09:38:55 +0000 (11:38 +0200)]
Revert "ncurses: package the tinfo library separately"

This reverts commit 975f7160dd1df08a7c02ad5de5cce07edd377b12.

8 years agobuild: fix make clean, delete package directories for selected arch
Felix Fietkau [Wed, 11 May 2016 08:02:36 +0000 (10:02 +0200)]
build: fix make clean, delete package directories for selected arch

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agomtd: imagetag: fix compilation with changed mtd_fixtrx call
Rafał Miłecki [Tue, 10 May 2016 14:35:39 +0000 (16:35 +0200)]
mtd: imagetag: fix compilation with changed mtd_fixtrx call

Function mtd_fixtrx was changed during trx improvements.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
8 years agogettext-full: avoid spurious dependencies on ncurses
Felix Fietkau [Tue, 10 May 2016 14:01:38 +0000 (16:01 +0200)]
gettext-full: avoid spurious dependencies on ncurses

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoncurses: package the tinfo library separately
Felix Fietkau [Tue, 10 May 2016 13:59:56 +0000 (15:59 +0200)]
ncurses: package the tinfo library separately

Some packages expect it that way

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoramips: fix DTB generation
John Crispin [Tue, 10 May 2016 12:42:50 +0000 (14:42 +0200)]
ramips: fix DTB generation

using preprocessor style includes when calling dtc directly.

Signed-off-by: John Crispin <john@phrozen.org>
8 years agoiftop: Update to latest version, and drop patch
Bert Vermeulen [Tue, 10 May 2016 08:38:47 +0000 (10:38 +0200)]
iftop: Update to latest version, and drop patch

The patch made sure the ncursesw library was not selected to save space,
but that library doesn't exist in this distribution at all.

Signed-off-by: Bert Vermeulen <bert@biot.com>
8 years agoncurses: provide libncurses compatibility symlinks in libncursesw
Felix Fietkau [Tue, 10 May 2016 11:46:21 +0000 (13:46 +0200)]
ncurses: provide libncurses compatibility symlinks in libncursesw

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoramips: Change all '/include/' clauses to '#include' so preprocessing can
Stanislav Galabov [Mon, 9 May 2016 06:32:52 +0000 (09:32 +0300)]
ramips: Change all '/include/' clauses to '#include' so preprocessing can
be done properly for the entire device trees.

Signed-off-by: Stanislav Galabov <sgalabov@gmail.com>
8 years agoramips: Add hex prefix (0x) to dtsi reg properties where needed.
Stanislav Galabov [Mon, 9 May 2016 06:23:12 +0000 (09:23 +0300)]
ramips: Add hex prefix (0x) to dtsi reg properties where needed.

Signed-off-by: Stanislav Galabov <sgalabov@gmail.com>
8 years agoramips: introduce serial0 aliases
Stanislav Galabov [Mon, 9 May 2016 04:20:02 +0000 (07:20 +0300)]
ramips: introduce serial0 aliases

This patch introduces serial0 aliases in the ramips DTS files, which can
then be used to denote the active console instead of relying on bootargs.

Signed-off-by: Stanislav Galabov <sgalabov@gmail.com>
8 years agokernel: update kernel 4.4 to version 4.4.9
Álvaro Fernández Rojas [Sun, 8 May 2016 19:57:27 +0000 (21:57 +0200)]
kernel: update kernel 4.4 to version 4.4.9

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
8 years agoubox: make logging code honour the hostname properly
John Crispin [Fri, 6 May 2016 19:05:41 +0000 (21:05 +0200)]
ubox: make logging code honour the hostname properly

Signed-off-by: John Crispin <john@phrozen.org>
8 years agobrcm47xx: fix wgt634u port assignment, broken since openwrt r47866
Russell Senior [Sat, 7 May 2016 09:32:13 +0000 (02:32 -0700)]
brcm47xx: fix wgt634u port assignment, broken since openwrt r47866

Signed-off-by: Russell Senior <russell@personaltelco.net>
8 years agoramips: mt7620: [UPSTREAM] fix USB frequency scaling
D. Andrei Măceș [Wed, 13 Apr 2016 21:51:50 +0000 (17:51 -0400)]
ramips: mt7620: [UPSTREAM] fix USB frequency scaling

The logic for the SoC check got inverted. We need to check if it's
not a MT76x8.

Signed-off-by: D. Andrei Măceș <dmaces@nd.edu>
8 years agoramips: Fix alphabetical sorting for 02_network
Vittorio Gambaletta (VittGam) [Wed, 4 May 2016 20:04:24 +0000 (22:04 +0200)]
ramips: Fix alphabetical sorting for 02_network

Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>
8 years agoramips: Don't use a VLAN for the single ethernet port of the A5-V11.
Vittorio Gambaletta (VittGam) [Wed, 4 May 2016 19:22:19 +0000 (21:22 +0200)]
ramips: Don't use a VLAN for the single ethernet port of the A5-V11.

This router only has one ethernet port, so a VLAN is useless here, now that the rt3050 TCP bug that happened without VLANs has been fixed for a very long time.

Add this router to the VLAN-less config that is used by other single-port routers.

Also fix MAC address detection code since this router has no WAN port.

Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>
8 years agoramips: Fix network for routers without VLANs on eth0.
Vittorio Gambaletta (VittGam) [Wed, 4 May 2016 19:21:41 +0000 (21:21 +0200)]
ramips: Fix network for routers without VLANs on eth0.

Some routers only have one port, so eth0 is used without VLANs for them.

Revision r47720 introduced some changes, but wrongly confused "enable" with "reset".

VLANs need to be disabled for those routers, and the switch may be reset.

Fix this, by explicitly disabling VLANs instead of resetting the switch for these routers.

Also merge duplicate configuration for the "m2m".

Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>
8 years agoramips: Drop hacky switch workaround for failsafe on rt3x5x and rt5350.
blogic [Mon, 2 May 2016 18:51:20 +0000 (18:51 +0000)]
ramips: Drop hacky switch workaround for failsafe on rt3x5x and rt5350.

The new rt3050 switch driver doesn't have problems with TCP when not
using VLANs.

This piece of code also broke failsafe for all routers where the LAN
port is not wired to port 0 of the internal switch.

Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>
SVN-Revision: 49293

8 years agoramips: Disable all ethernet ports except port 0 on A5-V11.
blogic [Mon, 2 May 2016 18:51:13 +0000 (18:51 +0000)]
ramips: Disable all ethernet ports except port 0 on A5-V11.

Port 0 is the only ethernet port on this router, so disable all other PHYs
in order to save power.

Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>
SVN-Revision: 49292

8 years agoramips: Disable all ethernet ports except port 4 on HT-TM02.
blogic [Mon, 2 May 2016 18:51:09 +0000 (18:51 +0000)]
ramips: Disable all ethernet ports except port 4 on HT-TM02.

Port 4 is the only ethernet port on this router, so disable all other PHYs
in order to save power.

Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>
SVN-Revision: 49291

8 years agoramips: Get rt3050 ethernet ports to be disabled from the device tree.
blogic [Mon, 2 May 2016 18:51:05 +0000 (18:51 +0000)]
ramips: Get rt3050 ethernet ports to be disabled from the device tree.

This patch allows configuring ports to be disabled in the device tree; this
saves power, since disabling ports here actually disables power to ethernet
PHYs.

Line 444 enables all ethernet ports, so line 487 is getting zero ports to be
disabled, except for port 5 in SoCs where this is not implemented as it will
be sticky disabled in register POC0. Because of this, the code will still read
the switch configuration and OR it to the device tree setting.

Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>
SVN-Revision: 49290

8 years agoramips: Fix comment in rt3050 ethernet switch driver.
blogic [Mon, 2 May 2016 18:51:01 +0000 (18:51 +0000)]
ramips: Fix comment in rt3050 ethernet switch driver.

Line 444 is actually enabling all switch ports by setting the disable bits
to 0. This needs to be done because the bootloader sets all ports to disabled
by default (which is the case for at least one router based on RT5350).

So, this patch fixes the comment in line 443.

Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>
SVN-Revision: 49289

8 years agoramips: Fix documentation for the rt3050 switch driver.
blogic [Mon, 2 May 2016 18:50:56 +0000 (18:50 +0000)]
ramips: Fix documentation for the rt3050 switch driver.

The prefix used in the driver is now "mediatek" instead of "ralink".

Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>
SVN-Revision: 49288

8 years agoramips: Fix multicast ICMPv6 for the rt3050 ethernet switch.
blogic [Mon, 2 May 2016 18:50:52 +0000 (18:50 +0000)]
ramips: Fix multicast ICMPv6 for the rt3050 ethernet switch.

The FCT2 esw register should be set to 0x2500C to have "unknown IPv6
multicast" packets broadcasted to every port, instead of dropped.
The previous value only let those packets go through ports 1 and 3.

"Unknown IPv6 multicast" packets include packets needed by ICMPv6 echo
requests addressed to well-known addresses, such as ff02::1 (MAC address
is 33:33:00:00:00:01 in this case).

Please note that by default ICMPv6 echo requests to ff02::1 are not replied
to by the router because of ip6tables considering those packets to be invalid.
But this is another bug/patch. ;)

Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>
SVN-Revision: 49287

8 years agoar71xx: add TP-Link TL-WR810N support
blogic [Mon, 2 May 2016 18:50:48 +0000 (18:50 +0000)]
ar71xx: add TP-Link TL-WR810N support

This patch adds support for the TP-Link TL-WR810N.
https://wiki.openwrt.org/toh/tp-link/tl-wr810n

Signed-off-by: Jens Steinhauser <jens.steinhauser@gmail.com>
SVN-Revision: 49286

8 years agoubox: turn logd into a separate package
blogic [Mon, 2 May 2016 18:50:40 +0000 (18:50 +0000)]
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>
SVN-Revision: 49285

8 years agolantiq: VGV7510KW22BRN - set the phy clock source
blogic [Mon, 2 May 2016 18:50:35 +0000 (18:50 +0000)]
lantiq: VGV7510KW22BRN - set the phy clock source

VGV7510KW2 with VRX288 v1.2 has brnboot 1.8 installed. Starting with
this brnboot version, the "GPHY Clock Source" isn't set anymore by
brnboot, with the result that xrx200-net fails to probe/initialize the
phys.

Use the phy clock source device tree binding to specify the clock source.

Signed-off-by: Mathias Kresin <openwrt@kresin.me>
SVN-Revision: 49284

8 years agolantiq: add device tree binding for the phy clock source
blogic [Mon, 2 May 2016 18:50:31 +0000 (18:50 +0000)]
lantiq: add device tree binding for the phy clock source

Signed-off-by: Mathias Kresin <openwrt@kresin.me>
SVN-Revision: 49283

8 years agolantiq: VGV7510KW22BRN - support dual-image
blogic [Mon, 2 May 2016 18:50:27 +0000 (18:50 +0000)]
lantiq: VGV7510KW22BRN - support dual-image

Signed-off-by: Mathias Kresin <openwrt@kresin.me>
SVN-Revision: 49282

8 years agolantiq: handle the dual-firmware layout of brnboot
blogic [Mon, 2 May 2016 18:50:23 +0000 (18:50 +0000)]
lantiq: handle the dual-firmware layout of brnboot

brnboot based devices can have two Image partitions. When flashing
images via the brnboot recovery web interface, the Image partitions are
written alternating.

The current active Image partition is stored in the first byte of the
Primary_Setting partition by using 0x00 for Code_Image_0 and 0x01 for
Code_Image_1.

By using the information about the active "Code Image", it is possible
to ensure that the rootfs belongs to the current booted Image/Kernel.

Signed-off-by: Mathias Kresin <openwrt@kresin.me>
SVN-Revision: 49281

8 years agolantiq: move partitions into partion table node
blogic [Mon, 2 May 2016 18:50:18 +0000 (18:50 +0000)]
lantiq: move partitions into partion table node

Starting with kernel 4.4, the use of partitions as direct subnodes of the
mtd device is discouraged and only supported for backward compatiblity
reasons.

Signed-off-by: Mathias Kresin <openwrt@kresin.me>
SVN-Revision: 49280

8 years agolantiq: use sysupgrade.bin postfix for tplink images
blogic [Mon, 2 May 2016 18:50:10 +0000 (18:50 +0000)]
lantiq: use sysupgrade.bin postfix for tplink images

Use the same name for TP-Link images as it was with the old image build
code.

Move the BOARD_ID export to the TP-Link image build recipe, to indicate
that the variable is only related in this context.

Signed-off-by: Mathias Kresin <openwrt@kresin.me>
SVN-Revision: 49279

8 years agolantiq: VG3503J - use the same PHY led functionality as the OEM firmware
blogic [Mon, 2 May 2016 18:50:06 +0000 (18:50 +0000)]
lantiq: VG3503J - use the same PHY led functionality as the OEM firmware

Based on the vg3503j_gphy_led.sh script published in the VG3503J wiki
article, the OEM Firmware uses the following PHY led functionality:

    gphy led 0: LINK/ACTIVITY
    gphy led 1: LINK
    gphy led 2: ACTIVITY

Signed-off-by: Mathias Kresin <openwrt@kresin.me>
SVN-Revision: 49278

8 years agoar71xx: Fix eth0 support for Ubiquiti UniFi AP AC
blogic [Mon, 2 May 2016 18:50:00 +0000 (18:50 +0000)]
ar71xx: Fix eth0 support for Ubiquiti UniFi AP AC

Fix eth0 support for the Ubiquiti UniFi AP AC
Signed-off-by: Paul Wassi <p.wassi at gmx.at>
SVN-Revision: 49277

8 years agolantiq: use the same functionality for all ethernet phys led
blogic [Fri, 29 Apr 2016 11:35:05 +0000 (11:35 +0000)]
lantiq: use the same functionality for all ethernet phys led

The VGV7510KW22 has the leds for LAN1-3 connected to pin1 of the phys
and the led for LAN4 connect to pin0 of the phy. This results with the
current configuration in a fast flashing LAN4 led as soon as a network
cable is connected. Something similar was reported on the forum[1] for
the VGV7519 as well.

Since it isn't predicable to which pin a (single) phy led is connected,
use the (default) pin1 functionality

    Constant On: 10/100/1000MBit
    Blink Fast: None
    Blink Slow: None
    Pulse: TX/RX

for all ethernet phy leds.

After checking pictures of all vr9 boards, it looks like only the VG3503J
has more than one led connected per phy. Using the phy led device tree
bindings to assign the functionality to the "additional" leds, the
VG3503J phy leds should behave as before.

Signed-off-by: Mathias Kresin <openwrt@kresin.me>
[1] https://forum.openwrt.org/viewtopic.php?pid=321523

SVN-Revision: 49270

8 years agolantiq: fix minor typos in 11G/22F phy driver
blogic [Fri, 29 Apr 2016 11:35:01 +0000 (11:35 +0000)]
lantiq: fix minor typos in 11G/22F phy driver

Signed-off-by: Mathias Kresin <openwrt@kresin.me>
SVN-Revision: 49269

8 years agoramips: add support for Planex MZK-EX750NP.
blogic [Fri, 29 Apr 2016 11:34:56 +0000 (11:34 +0000)]
ramips: add support for Planex MZK-EX750NP.

add support for Planex MZK-EX750NP.
MZK-EX750NP is MT7620A and MT7610E based 11ac wifi repeater.
Built-in power supply.
64MiB RAM, 8MiB SPI Flash, non Wired Ethernet.

Signed-off-by: YuheiOKAWA <tochiro.srchack@gmail.com>
SVN-Revision: 49268

8 years agomediatek: sync patches and add more ethernet stability fixes
blogic [Fri, 29 Apr 2016 11:34:31 +0000 (11:34 +0000)]
mediatek: sync patches and add more ethernet stability fixes

Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 49265

8 years agoncurses: install pkg-config files to fix util-linux build breakage
Felix Fietkau [Tue, 10 May 2016 08:05:22 +0000 (10:05 +0200)]
ncurses: install pkg-config files to fix util-linux build breakage

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agomtd: add -c option for specifying amount of data to be used for checksum
Rafał Miłecki [Fri, 6 May 2016 12:37:05 +0000 (14:37 +0200)]
mtd: add -c option for specifying amount of data to be used for checksum

So far fixtrx was calculating checksum over amount of data matching
partition erase size. It was mostly a workaround of checksum problem
after changing anything in initial TRX content (e.g. formatting JFFS2).
Its main purpose was to make bootloader accept modified TRX. This didn't
provide much protection of flash data against corruption.

This new option lets caller request calculating checksum over a bigger
amount of data. It may be used e.g. to include whole kernel data for
checksum and hopefully make bootloader go info failsafe mode if
something goes wrong.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
8 years agomtd: trx: use separated buffer for TRX header
Rafał Miłecki [Mon, 9 May 2016 17:00:53 +0000 (19:00 +0200)]
mtd: trx: use separated buffer for TRX header

We plan to adjust usage of the main buffer to allow reading custom
amount of data for CRC32. This means we need another buffer that will be
always block aligned.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
8 years agomtd: seama: exit with error if Seama header wasn't found
rmilecki [Mon, 9 May 2016 15:33:42 +0000 (15:33 +0000)]
mtd: seama: exit with error if Seama header wasn't found

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
8 years agomtd: seama: fix image data handling
rmilecki [Mon, 9 May 2016 12:53:39 +0000 (12:53 +0000)]
mtd: seama: fix image data handling

1) Put sanity checks in one place
2) Respect provided offset
3) Read only as much data as needed for MD5 calculation

Thanks to the last change this is a great speedup and memory saver. On
devices with NAND flash we were allocating & reading about 128 MiB while
something about 8 MiB is enough.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
8 years agomtd: seama: move buf allocation to the MD5 function
rmilecki [Mon, 9 May 2016 12:53:36 +0000 (12:53 +0000)]
mtd: seama: move buf allocation to the MD5 function

This buf is only used in this function now, so lets move it there.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
8 years agomtd: seama: update MD5 using header in the first block buffer
rmilecki [Mon, 9 May 2016 12:53:33 +0000 (12:53 +0000)]
mtd: seama: update MD5 using header in the first block buffer

This will allow separating first block buffer from a buffer used for MD5
calculation.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
8 years agomtd: seama: add md5 to header struct
rmilecki [Mon, 9 May 2016 12:53:29 +0000 (12:53 +0000)]
mtd: seama: add md5 to header struct

This allows us to drop some extra offset calculations and simplifies
code a bit.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
8 years agomtd: check for Seama magic early when fixing MD5
rmilecki [Mon, 9 May 2016 09:54:48 +0000 (09:54 +0000)]
mtd: check for Seama magic early when fixing MD5

This avoid long (and unneeded) process of reading all data in case of
running on MTD not containig Seama entity.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
8 years agomtd: add missing breaks in a switch
rmilecki [Mon, 9 May 2016 07:51:50 +0000 (07:51 +0000)]
mtd: add missing breaks in a switch

On platforms supporting both: TRX and Seama calling "fixtrx" was
resulting in trying to fix Seama as well.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
8 years agomtd: use tabs for indents
rmilecki [Mon, 9 May 2016 07:51:45 +0000 (07:51 +0000)]
mtd: use tabs for indents

This makes code style consistent across the whole file.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
8 years agoncurses: remove libncurses, provide it via libncursesw
Felix Fietkau [Mon, 9 May 2016 12:49:33 +0000 (14:49 +0200)]
ncurses: remove libncurses, provide it via libncursesw

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agometadata.pl: add support for selecting packages available only via PROVIDES
Felix Fietkau [Mon, 9 May 2016 12:48:49 +0000 (14:48 +0200)]
metadata.pl: add support for selecting packages available only via PROVIDES

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agokernel: add workaround to rebuild vdso-o32.so.dbg
Stijn Tintel [Mon, 9 May 2016 00:30:38 +0000 (02:30 +0200)]
kernel: add workaround to rebuild vdso-o32.so.dbg

Building for octeon fails with

  'arch/mips/vdso/vdso-o32.so.dbg' already contains a '.MIPS.abiflags'
  section

if the file already exists from a prior build.

Use the same workaround as the one for vdso.so.dbg committed in
9eb155353a5f5137ec85a5b5b0287af63c544710.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
8 years agotoolchain: gcc: fix build with GCC 6
Matthias Schiffer [Sun, 8 May 2016 21:10:13 +0000 (23:10 +0200)]
toolchain: gcc: fix build with GCC 6

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
8 years agotools: mkimage: sync include/linux/compiler*.h with u-boot master
Matthias Schiffer [Sun, 8 May 2016 20:06:51 +0000 (22:06 +0200)]
tools: mkimage: sync include/linux/compiler*.h with u-boot master

Fixes build with GCC 6.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
8 years agotools: pkg-config: fix build with GCC 6
Matthias Schiffer [Sun, 8 May 2016 13:53:14 +0000 (15:53 +0200)]
tools: pkg-config: fix build with GCC 6

Fixes the following error:

gdate.c: In function ‘g_date_strftime’:
gdate.c:2497:7: error: format not a string literal, format string not checked [-Werror=format-nonliteral]
       tmplen = strftime (tmpbuf, tmpbufsize, locale_format, &tm);
       ^~~~~~

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
8 years agomt76: update to the latest version
Felix Fietkau [Thu, 5 May 2016 18:42:43 +0000 (19:42 +0100)]
mt76: update to the latest version

Fixes a tx locking error and adds a pci id

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agomt76: fix rebuild on CONFIG_PACKAGE_MAC80211_MESH changes
Felix Fietkau [Thu, 5 May 2016 18:39:21 +0000 (19:39 +0100)]
mt76: fix rebuild on CONFIG_PACKAGE_MAC80211_MESH changes

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agobuild: add support for specifying extra package dependencies for prepared, configured...
Felix Fietkau [Thu, 5 May 2016 18:37:40 +0000 (19:37 +0100)]
build: add support for specifying extra package dependencies for prepared, configured and built

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agotoolchain: rename OpenWrt into LEDE
Alexander Couzens [Thu, 5 May 2016 17:33:03 +0000 (19:33 +0200)]
toolchain: rename OpenWrt into LEDE

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
8 years agosdk: rename OpenWrt into LEDE
Alexander Couzens [Thu, 5 May 2016 17:33:02 +0000 (19:33 +0200)]
sdk: rename OpenWrt into LEDE

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
8 years agoimagebuilder: rename OpenWrt into LEDE
Alexander Couzens [Thu, 5 May 2016 17:33:01 +0000 (19:33 +0200)]
imagebuilder: rename OpenWrt into LEDE

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
8 years agotools: make-ext4fs: fix build regression on mac os x
Felix Fietkau [Thu, 5 May 2016 17:47:55 +0000 (18:47 +0100)]
tools: make-ext4fs: fix build regression on mac os x

Including sys/sysmacros.h is not portable

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agobase-files: evaluate uci-defaults on run-time installations
Daniel Golle [Fri, 29 Apr 2016 11:34:44 +0000 (11:34 +0000)]
base-files: evaluate uci-defaults on run-time installations

Packages may install scripts into /etc/uci-defaults to be executed once
after installation, usually at the first boot of the target. This works
fine if the package was installed to the rootfs during build or using
the ImageBuilder.
If the package is installed using opkg during run-time uci-defaults
were applied only after a reboot of the device. Avoid the need to
reboot by evaluting the package's uci-defaults in default-postinst.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
8 years agoopenssl: Update to version 1.0.2h
Michal Hrusecky [Wed, 4 May 2016 11:53:27 +0000 (13:53 +0200)]
openssl: Update to version 1.0.2h

Bump to the latest version, fixes several security issues:
 * CVE-2016-2107, CVE-2016-2105, CVE-2016-2106, CVE-2016-2109, CVE-2016-2176
More details at https://www.openssl.org/news/openssl-1.0.2-notes.html

Signed-off-by: Michal Hrusecky <Michal.Hrusecky@nic.cz>
8 years agofirewall3: fix mark rules for local traffic, fix race condition
Jo-Philipp Wich [Mon, 2 May 2016 17:46:23 +0000 (18:46 +0100)]
firewall3: fix mark rules for local traffic, fix race condition

Update to latest HEAD in order to fix MARK rule generation for local traffic,
also fix a possible race condition during firewall start.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agolibiconv: add all ASCII aliases
Gergely Kiss [Mon, 2 May 2016 00:46:33 +0000 (02:46 +0200)]
libiconv: add all ASCII aliases

This patch adds missing ASCII aliases to the libiconv stub in order to avoid conversion errors like https://github.com/openwrt/packages/issues/2373

Signed-off-by: Gergely Kiss <mail.gery@gmail.com>