11 months agorpcd: iwinfo plugin fixes master
rmilecki []
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>
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49395 3c298f89-4303-0410-b956-a3cf2f4a3e73

11 months agomac80211: brcmfmac: backport changes from 2016-06-29
rmilecki []
mac80211: brcmfmac: backport changes from 2016-06-29

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49393 3c298f89-4303-0410-b956-a3cf2f4a3e73

11 months agomac80211: brcmfmac: rename patches from commit fixing P2P
rmilecki []
mac80211: brcmfmac: rename patches from commit fixing P2P

This way names follow current schema.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49392 3c298f89-4303-0410-b956-a3cf2f4a3e73

11 months agomac80211: brcmfmac: fix lockup related to P2P interface
rmilecki []
mac80211: brcmfmac: fix lockup related to P2P interface

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49391 3c298f89-4303-0410-b956-a3cf2f4a3e73

12 months agopackage: ath10k-firmware: fix board-2.bin download URL
wigyori []
package: ath10k-firmware: fix board-2.bin download URL

Fixes #22628.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>



git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49390 3c298f89-4303-0410-b956-a3cf2f4a3e73

12 months agoiw: backport support for "channels" command
rmilecki []
iw: backport support for "channels" command

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49388 3c298f89-4303-0410-b956-a3cf2f4a3e73

12 months agomac80211: brcmfmac: backport changes from 2016-06-16
rmilecki []
mac80211: brcmfmac: backport changes from 2016-06-16

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49387 3c298f89-4303-0410-b956-a3cf2f4a3e73

12 months agomac80211: brcmfmac: fix support for BCM4366
rmilecki []
mac80211: brcmfmac: fix support for BCM4366

1) Fix setting AP channel
2) Improve BSS management to avoid:
[ 3602.929199] brcmfmac: brcmf_ap_add_vif: timeout occurred

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49383 3c298f89-4303-0410-b956-a3cf2f4a3e73

12 months agomac80211: brcmfmac: add support for get_channel
rmilecki []
mac80211: brcmfmac: add support for get_channel

It's very useful for debugging problems with brcmfmac setting requested
channel.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49382 3c298f89-4303-0410-b956-a3cf2f4a3e73

12 months agomac80211: brcmfmac: fix support for up to 4 AP interfaces
rmilecki []
mac80211: brcmfmac: fix support for up to 4 AP interfaces

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49381 3c298f89-4303-0410-b956-a3cf2f4a3e73

12 months agomac80211: brcmfmac: backport fixes for 4.7 and 4.8
rmilecki []
mac80211: brcmfmac: backport fixes for 4.7 and 4.8

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49380 3c298f89-4303-0410-b956-a3cf2f4a3e73

12 months agotreewide: fix replace nbd@openwrt.org with nbd@nbd.name
nbd []
treewide: fix replace nbd@openwrt.org with nbd@nbd.name

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49379 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agobcm53xx: drop Copyright header from two of my bash scripts
rmilecki []
bcm53xx: drop Copyright header from two of my bash scripts

Both scripts modified by this patch were added by me. First of all I
incorrectly added OpenWrt as Copyright holder. It was wrong because:
1) I simply can't transfer my moral rights according to the Polish law
2) Transfering copyrights (economic rights) requires an agreement which
I didn't sign with OpenWrt(.org).
Other than that I don't find these trivial scripts important enough to
put info about *my* copyrights in a header so this patch just drops them
completely.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49377 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agobase-files: fix permissions of the login.sh script
luka []
base-files: fix permissions of the login.sh script

Signed-off-by: Luka Perkov <luka@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49376 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agoinclude: drop unused kernel 4.3 versions
luka []
include: drop unused kernel 4.3 versions

Signed-off-by: Luka Perkov <luka@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49375 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agokernel: remove linux 4.3 config
luka []
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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49374 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agoncurses: install a dummy libtinfo.a for packages that try to link it
nbd []
ncurses: install a dummy libtinfo.a for packages that try to link it

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49373 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agoRevert "ncurses: package the tinfo library separately"
nbd []
Revert "ncurses: package the tinfo library separately"

This reverts commit r49361

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49372 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agomtd: imagetag: fix compilation with changed mtd_fixtrx call
rmilecki []
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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49371 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agokrikwood: Make Iconnect image use new ubi format style
luka []
krikwood: Make Iconnect image use new ubi format style

To flash first time follow instructions in commit:
"kirkwood/dockstar: use ubi(kernel, squashfs, ubifs) images"

Signed-off-by: Wojciech Dubowik <Wojciech.Dubowik@neratec.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49370 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agokirkwood: Migrate Iconnect to new ubi image format
luka []
kirkwood: Migrate Iconnect to new ubi image format

Default partition name is now ubi.

Signed-off-by: Wojciech Dubowik <Wojciech.Dubowik@neratec.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49369 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agouboot-kirkwood: New ubi flash format for Iconnect
luka []
uboot-kirkwood: New ubi flash format for Iconnect

Migrate Iconnect to new ubi image style like for dockstar.

Signed-off-by: Wojciech Dubowik <Wojciech.Dubowik@neratec.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49368 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agotarget: socfpga: Add Altera SoCFPGA support
luka []
target: socfpga: Add Altera SoCFPGA support

This patch adds support for the Altera SoCFPGA target.
Both generic target and Terasic SoCkit boards are supported.

Signed-off-by: Marek Vasut <marex@denx.de>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49367 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agopackage: kernel: Enable support for DWC2 USB on SoCFPGA
luka []
package: kernel: Enable support for DWC2 USB on SoCFPGA

This patch enables the DWC2 modules for the Altera SoCFPGA target.

Signed-off-by: Marek Vasut <marex@denx.de>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49366 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agopackage: kernel: modules: Add USB Mass Storage package
luka []
package: kernel: modules: Add USB Mass Storage package

Add package which enables building of the USB Mass Storage
support kernel modules (USB MSG).

Signed-off-by: Marek Vasut <marex@denx.de>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49365 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agopackage: kernel: modules: Enable Dual-Role support for DWC2 USB
luka []
package: kernel: modules: Enable Dual-Role support for DWC2 USB

Enable configuration option which allows DWC2 USB OTG core
to operate in Dual-Role mode.

Signed-off-by: Marek Vasut <marex@denx.de>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49364 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agogettext-full: avoid spurious dependencies on ncurses
luka []
gettext-full: avoid spurious dependencies on ncurses

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49362 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agoncurses: package the tinfo library separately
luka []
ncurses: package the tinfo library separately

Some packages expect it that way

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49361 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agoramips: fix DTB generation
luka []
ramips: fix DTB generation

using preprocessor style includes when calling dtc directly.

Signed-off-by: John Crispin <john@phrozen.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49360 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agoiftop: Update to latest version, and drop patch
luka []
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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49359 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agoncurses: provide libncurses compatibility symlinks in libncursesw
luka []
ncurses: provide libncurses compatibility symlinks in libncursesw

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49358 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agoramips: Change all '/include/' clauses to '#include' so preprocessing can be done properly for the entire device trees.
luka []
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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49357 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agoramips: Add hex prefix (0x) to dtsi reg properties where needed.
luka []
ramips: Add hex prefix (0x) to dtsi reg properties where needed.

Signed-off-by: Stanislav Galabov <sgalabov@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49356 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agoramips: introduce serial0 aliases
luka []
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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49355 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agoubox: make logging code honour the hostname properly
luka []
ubox: make logging code honour the hostname properly

Signed-off-by: John Crispin <john@phrozen.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49354 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agobrcm47xx: fix wgt634u port assignment, broken since openwrt r47866
luka []
brcm47xx: fix wgt634u port assignment, broken since openwrt r47866

Signed-off-by: Russell Senior <russell@personaltelco.net>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49353 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agoramips: mt7620: [UPSTREAM] fix USB frequency scaling
luka []
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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49352 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agoramips: Fix alphabetical sorting for 02_network
luka []
ramips: Fix alphabetical sorting for 02_network

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49351 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agoramips: Don't use a VLAN for the single ethernet port of the A5-V11.
luka []
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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49350 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agoramips: Fix network for routers without VLANs on eth0.
luka []
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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49349 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agoncurses: install pkg-config files to fix util-linux build breakage
luka []
ncurses: install pkg-config files to fix util-linux build breakage

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49348 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agoncurses: remove libncurses, provide it via libncursesw
luka []
ncurses: remove libncurses, provide it via libncursesw

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49347 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agometadata.pl: add support for selecting packages available only via PROVIDES
luka []
metadata.pl: add support for selecting packages available only via PROVIDES

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49346 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agokernel: add workaround to rebuild vdso-o32.so.dbg
luka []
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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49345 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agotoolchain: gcc: fix build with GCC 6
luka []
toolchain: gcc: fix build with GCC 6

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49344 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agotools: mkimage: sync include/linux/compiler*.h with u-boot master
luka []
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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49343 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agotools: pkg-config: fix build with GCC 6
luka []
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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49342 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agotools: make-ext4fs: fix build regression on mac os x
luka []
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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49341 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agobase-files: evaluate uci-defaults on run-time installations
luka []
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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49340 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agolibiconv: add all ASCII aliases
luka []
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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49339 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agoxtables-addons: Avoid redefinition of SHRT_MAX in lua packet script
luka []
xtables-addons: Avoid redefinition of SHRT_MAX in lua packet script

Patch Lua packet script defines SHRT_MAX which is already defined in <linux/kernel.h> and
is included indirectly by lauxlib.h. Fix the redefintion as it leads to compile failure
on systems which treat macro redefinition as an error

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49338 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agofstools: fix snapshot support
luka []
fstools: fix snapshot support

Signed-off-by: John Crispin <john@phrozen.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49337 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agofstools: update to latest git HEAD
luka []
fstools: update to latest git HEAD

fixes snapshot support

Signed-off-by: John Crispin <john@phrozen.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49336 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agofstools: update to latest git HEAD
luka []
fstools: update to latest git HEAD

this adds the remount command to the block tool

Signed-off-by: John Crispin <john@phrozen.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49335 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agokernel: add a workaround to rebuild vdso.so.dbg after genvdso
luka []
kernel: add a workaround to rebuild vdso.so.dbg after genvdso

Currently the build fails with

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

if the file already exists from a prior build.

Add a makefile rule to force the rebuild of vdso.so.dbg if genvdso has
has been changed to workaround the failure.

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49334 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agodropbear: Make utmp and putuline support configurable via seperate config options
luka []
dropbear: Make utmp and putuline support configurable via seperate config options

Utmp support tracks who is currenlty logged in by logging info to the file /var/run/utmp (supported by busybox)
Putuline support will use the utmp structure to write to the utmp file

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49333 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agonetifd: Add configurable DHCP release behavior
luka []
netifd: Add configurable DHCP release behavior

Make sending a DHCP release configurable when the client exits allowing to clean up
IP/mac state info in intermediate devices.

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49332 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agoxtables-addons: Fix Lua packet script implementation
luka []
xtables-addons: Fix Lua packet script implementation

lua_packet_segment parameter start has type char pointer; in function lua_tg
it's assigned an uint16 value generating compiler warnings obviously indicating
posssible seg fault problems. Fix the issue by using the correct skb functions
so the parameter points to the position inside the sk_buff

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Signed-off-by: Stijn Cleynhens <stijn.cleynhens@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49331 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agolantiq: fix xway image building
luka []
lantiq: fix xway image building

Commit 8c130dd (lantiq: use new image build process for some images) broke
image generation for the xway target since the generated macros reference not
existing WBMRA.dts and WBMRB.dts files leading to the following build error:

mips-openwrt-linux-musl-cpp: error: ../dts/WBMRA.dts: No such file or directory
mips-openwrt-linux-musl-cpp: warning: '-x assembler-with-cpp' after last input file has no effect
mips-openwrt-linux-musl-cpp: fatal error: no input files

Previously both the WBMRA and WBMRB profiles shared a common WBMR DT since
the only difference is the embedded firmware kmod package.

Extend the lantiqImage macro to optionally support specifying a different
DTS file and use this facility to let the both WBMR profiles reference the
correct device tree file.

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49330 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agox86: remove old references to kmod-acpi-button
luka []
x86: remove old references to kmod-acpi-button

The kmod-acpi-button functionality is included in the kernel where needed
and the corresponding kmod package has been deleted long ago, therfor drop
the remaining references now.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Signed-off-by: Luka Perkov <luka@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49329 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agokernel: fix ip6_tunnel compilation
luka []
kernel: fix ip6_tunnel compilation

Replace undefined iph for ip_hdr(skb)

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49328 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agobase-files: remove ununsed login.sh
luka []
base-files: remove ununsed login.sh

Signed-off-by: John Crispin <john@phrozen.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49327 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agobase-files: Allow to disable failsafe mode
luka []
base-files: Allow to disable failsafe mode

Signed-off-by: Daniel Dickinson <openwrt@daniel.thecshore.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49326 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agoimage / basefiles: make console password configurable
luka []
image / basefiles: make console password configurable

Signed-off-by: Daniel Dickinson <openwrt@daniel.thecshore.com>
Signed-off-by: John Crispin <john@phrozen.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49325 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agobase-files: fix error message during boot
luka []
base-files: fix error message during boot

preinit spews out this message

"cat: can't open '/proc/device-tree/model': No such file or directory"

Signed-off-by: John Crispin <john@phrozen.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49324 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agoscripts: metadata: add CONFIG_TARGET_SUBTARGET symbol
luka []
scripts: metadata: add CONFIG_TARGET_SUBTARGET symbol

Add a new string symbol "CONFIG_TARGET_SUBTARGET" which contains the name of
the chosen subtarget or "generic" if there are no subtargets available.

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49323 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agobusybox: fix setting the kernel timezone
luka []
busybox: fix setting the kernel timezone

The settimeofday() syscall wrapper provided by musl filters out the timezone
argument, breaking the ability to set the kernel timezone through the function.

Adjust busybox patch to issue the syscall directly in order to circumvent the
problem.

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49322 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agonetifd: Send DHCP release when client exits
luka []
netifd: Send DHCP release when client exits

Let DHCP client send a release when it exists so the DHCP server is
informed the IP address is released and allowing to clean up IP/mac
state info in intermediate devices.

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49321 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agonetifd: fix default ip rules
luka []
netifd: fix default ip rules

Update to latest HEAD in order to remove the faulty "prelocal" ip rule leading
to unexpected policy rule precedence.

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49320 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agox86: search PARTUUID in any block device
luka []
x86: search PARTUUID in any block device

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49319 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agox86: make sysupgrade work without partx
luka []
x86: make sysupgrade work without partx

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49318 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agomtd: add -c option for specifying amount of data to be used for checksum
rmilecki []
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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49317 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agomtd: trx: use separated buffer for TRX header
rmilecki []
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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49316 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agomtd: seama: exit with error if Seama header wasn't found
rmilecki []
mtd: seama: exit with error if Seama header wasn't found

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49314 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agomtd: seama: fix image data handling
rmilecki []
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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49309 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agomtd: seama: move buf allocation to the MD5 function
rmilecki []
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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49308 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agomtd: seama: update MD5 using header in the first block buffer
rmilecki []
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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49307 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agomtd: seama: add md5 to header struct
rmilecki []
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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49306 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agomtd: check for Seama magic early when fixing MD5
rmilecki []
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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49304 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agomtd: add missing breaks in a switch
rmilecki []
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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49301 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agomtd: use tabs for indents
rmilecki []
mtd: use tabs for indents

This makes code style consistent across the whole file.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49300 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agokernel: update kernel 4.1 to version 4.1.23
rmilecki []
kernel: update kernel 4.1 to version 4.1.23

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49296 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agoopenssl: Update to version 1.0.2h
jow []
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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49295 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agoramips: Drop hacky switch workaround for failsafe on rt3x5x and rt5350.
blogic []
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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49293 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agoramips: Disable all ethernet ports except port 0 on A5-V11.
blogic []
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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49292 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agoramips: Disable all ethernet ports except port 4 on HT-TM02.
blogic []
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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49291 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agoramips: Get rt3050 ethernet ports to be disabled from the device tree.
blogic []
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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49290 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agoramips: Fix comment in rt3050 ethernet switch driver.
blogic []
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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49289 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agoramips: Fix documentation for the rt3050 switch driver.
blogic []
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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49288 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agoramips: Fix multicast ICMPv6 for the rt3050 ethernet switch.
blogic []
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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49287 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agoar71xx: add TP-Link TL-WR810N support
blogic []
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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49286 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agoubox: turn logd into a separate package
blogic []
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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49285 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agolantiq: VGV7510KW22BRN - set the phy clock source
blogic []
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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49284 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agolantiq: add device tree binding for the phy clock source
blogic []
lantiq: add device tree binding for the phy clock source

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49283 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agolantiq: VGV7510KW22BRN - support dual-image
blogic []
lantiq: VGV7510KW22BRN - support dual-image

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49282 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agolantiq: handle the dual-firmware layout of brnboot
blogic []
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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49281 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agolantiq: move partitions into partion table node
blogic []
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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49280 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agolantiq: use sysupgrade.bin postfix for tplink images
blogic []
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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49279 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agolantiq: VG3503J - use the same PHY led functionality as the OEM firmware
blogic []
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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49278 3c298f89-4303-0410-b956-a3cf2f4a3e73

13 months agoar71xx: Fix eth0 support for Ubiquiti UniFi AP AC
blogic []
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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49277 3c298f89-4303-0410-b956-a3cf2f4a3e73

comments