7 years agorpcd: iwinfo plugin fixes master
Rafał Miłecki [Thu, 30 Jun 2016 05:39:05 +0000 (05:39 +0000)]
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 <>
Signed-off-by: Rafał Miłecki <>
SVN-Revision: 49395

7 years agomac80211: brcmfmac: backport changes from 2016-06-29
Rafał Miłecki [Wed, 29 Jun 2016 18:22:24 +0000 (18:22 +0000)]
mac80211: brcmfmac: backport changes from 2016-06-29

Signed-off-by: Rafał Miłecki <>
SVN-Revision: 49393

7 years agomac80211: brcmfmac: rename patches from commit fixing P2P
Rafał Miłecki [Wed, 29 Jun 2016 18:22:15 +0000 (18:22 +0000)]
mac80211: brcmfmac: rename patches from commit fixing P2P

This way names follow current schema.

Signed-off-by: Rafał Miłecki <>
SVN-Revision: 49392

7 years agomac80211: brcmfmac: fix lockup related to P2P interface
Rafał Miłecki [Wed, 29 Jun 2016 18:06:01 +0000 (18:06 +0000)]
mac80211: brcmfmac: fix lockup related to P2P interface

Signed-off-by: Rafał Miłecki <>
SVN-Revision: 49391

7 years agopackage: ath10k-firmware: fix board-2.bin download URL
Zoltan Herpai [Tue, 21 Jun 2016 16:14:18 +0000 (16:14 +0000)]
package: ath10k-firmware: fix board-2.bin download URL

Fixes #22628.

Signed-off-by: Zoltan HERPAI <>
SVN-Revision: 49390

7 years agoiw: backport support for "channels" command
Rafał Miłecki [Fri, 17 Jun 2016 10:59:10 +0000 (10:59 +0000)]
iw: backport support for "channels" command

Signed-off-by: Rafał Miłecki <>
SVN-Revision: 49388

7 years agomac80211: brcmfmac: backport changes from 2016-06-16
Rafał Miłecki [Fri, 17 Jun 2016 08:23:11 +0000 (08:23 +0000)]
mac80211: brcmfmac: backport changes from 2016-06-16

Signed-off-by: Rafał Miłecki <>
SVN-Revision: 49387

7 years agomac80211: brcmfmac: fix support for BCM4366
Rafał Miłecki [Fri, 17 Jun 2016 06:23:22 +0000 (06:23 +0000)]
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 <>
SVN-Revision: 49383

7 years agomac80211: brcmfmac: add support for get_channel
Rafał Miłecki [Fri, 17 Jun 2016 06:23:19 +0000 (06:23 +0000)]
mac80211: brcmfmac: add support for get_channel

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

Signed-off-by: Rafał Miłecki <>
SVN-Revision: 49382

7 years agomac80211: brcmfmac: fix support for up to 4 AP interfaces
Rafał Miłecki [Fri, 17 Jun 2016 06:23:11 +0000 (06:23 +0000)]
mac80211: brcmfmac: fix support for up to 4 AP interfaces

Signed-off-by: Rafał Miłecki <>
SVN-Revision: 49381

7 years agomac80211: brcmfmac: backport fixes for 4.7 and 4.8
Rafał Miłecki [Fri, 17 Jun 2016 06:23:06 +0000 (06:23 +0000)]
mac80211: brcmfmac: backport fixes for 4.7 and 4.8

Signed-off-by: Rafał Miłecki <>
SVN-Revision: 49380

7 years agotreewide: fix replace with
Felix Fietkau [Tue, 7 Jun 2016 06:59:36 +0000 (06:59 +0000)]
treewide: fix replace with

Signed-off-by: Felix Fietkau <>
SVN-Revision: 49379

7 years agobcm53xx: drop Copyright header from two of my bash scripts
Rafał Miłecki [Thu, 12 May 2016 05:32:33 +0000 (05:32 +0000)]
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

Signed-off-by: Rafał Miłecki <>
SVN-Revision: 49377

7 years agobase-files: fix permissions of the script
Luka Perkov [Wed, 11 May 2016 22:40:28 +0000 (22:40 +0000)]
base-files: fix permissions of the script

Signed-off-by: Luka Perkov <>
SVN-Revision: 49376

7 years agoinclude: drop unused kernel 4.3 versions
Luka Perkov [Wed, 11 May 2016 21:57:19 +0000 (21:57 +0000)]
include: drop unused kernel 4.3 versions

Signed-off-by: Luka Perkov <>
SVN-Revision: 49375

7 years agokernel: remove linux 4.3 config
Luka Perkov [Wed, 11 May 2016 21:53:00 +0000 (21:53 +0000)]
kernel: remove linux 4.3 config

When linux 4.3 support was removed the config was left.

Signed-off-by: Álvaro Fernández Rojas <>
SVN-Revision: 49374

7 years agoncurses: install a dummy libtinfo.a for packages that try to link it
Felix Fietkau [Wed, 11 May 2016 10:49:26 +0000 (10:49 +0000)]
ncurses: install a dummy libtinfo.a for packages that try to link it

Signed-off-by: Felix Fietkau <>
SVN-Revision: 49373

7 years agoRevert "ncurses: package the tinfo library separately"
Felix Fietkau [Wed, 11 May 2016 10:49:21 +0000 (10:49 +0000)]
Revert "ncurses: package the tinfo library separately"

This reverts commit r49361

SVN-Revision: 49372

7 years agomtd: imagetag: fix compilation with changed mtd_fixtrx call
Rafał Miłecki [Wed, 11 May 2016 07:11:11 +0000 (07:11 +0000)]
mtd: imagetag: fix compilation with changed mtd_fixtrx call

Function mtd_fixtrx was changed during trx improvements.

Signed-off-by: Rafał Miłecki <>
SVN-Revision: 49371

7 years agokrikwood: Make Iconnect image use new ubi format style
Luka Perkov [Tue, 10 May 2016 23:03:43 +0000 (23:03 +0000)]
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 <>
SVN-Revision: 49370

7 years agokirkwood: Migrate Iconnect to new ubi image format
Luka Perkov [Tue, 10 May 2016 23:03:41 +0000 (23:03 +0000)]
kirkwood: Migrate Iconnect to new ubi image format

Default partition name is now ubi.

Signed-off-by: Wojciech Dubowik <>
SVN-Revision: 49369

7 years agouboot-kirkwood: New ubi flash format for Iconnect
Luka Perkov [Tue, 10 May 2016 23:03:39 +0000 (23:03 +0000)]
uboot-kirkwood: New ubi flash format for Iconnect

Migrate Iconnect to new ubi image style like for dockstar.

Signed-off-by: Wojciech Dubowik <>
SVN-Revision: 49368

7 years agotarget: socfpga: Add Altera SoCFPGA support
Luka Perkov [Tue, 10 May 2016 22:52:00 +0000 (22:52 +0000)]
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 <>
SVN-Revision: 49367

7 years agopackage: kernel: Enable support for DWC2 USB on SoCFPGA
Luka Perkov [Tue, 10 May 2016 22:51:55 +0000 (22:51 +0000)]
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 <>
SVN-Revision: 49366

7 years agopackage: kernel: modules: Add USB Mass Storage package
Luka Perkov [Tue, 10 May 2016 22:51:54 +0000 (22:51 +0000)]
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 <>
SVN-Revision: 49365

7 years agopackage: kernel: modules: Enable Dual-Role support for DWC2 USB
Luka Perkov [Tue, 10 May 2016 22:51:52 +0000 (22:51 +0000)]
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 <>
SVN-Revision: 49364

7 years agogettext-full: avoid spurious dependencies on ncurses
Luka Perkov [Tue, 10 May 2016 22:37:32 +0000 (22:37 +0000)]
gettext-full: avoid spurious dependencies on ncurses

Signed-off-by: Felix Fietkau <>
SVN-Revision: 49362

7 years agoncurses: package the tinfo library separately
Luka Perkov [Tue, 10 May 2016 22:37:30 +0000 (22:37 +0000)]
ncurses: package the tinfo library separately

Some packages expect it that way

Signed-off-by: Felix Fietkau <>
SVN-Revision: 49361

7 years agoramips: fix DTB generation
Luka Perkov [Tue, 10 May 2016 22:37:29 +0000 (22:37 +0000)]
ramips: fix DTB generation

using preprocessor style includes when calling dtc directly.

Signed-off-by: John Crispin <>
SVN-Revision: 49360

7 years agoiftop: Update to latest version, and drop patch
Luka Perkov [Tue, 10 May 2016 22:37:28 +0000 (22:37 +0000)]
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 <>
SVN-Revision: 49359

7 years agoncurses: provide libncurses compatibility symlinks in libncursesw
Luka Perkov [Tue, 10 May 2016 22:37:26 +0000 (22:37 +0000)]
ncurses: provide libncurses compatibility symlinks in libncursesw

Signed-off-by: Felix Fietkau <>
SVN-Revision: 49358

7 years agoramips: Change all '/include/' clauses to '#include' so preprocessing can be done...
Luka Perkov [Tue, 10 May 2016 22:37:24 +0000 (22:37 +0000)]
ramips: Change all '/include/' clauses to '#include' so preprocessing can be done properly for the entire device trees.

Signed-off-by: Stanislav Galabov <>
SVN-Revision: 49357

7 years agoramips: Add hex prefix (0x) to dtsi reg properties where needed.
Luka Perkov [Tue, 10 May 2016 22:37:15 +0000 (22:37 +0000)]
ramips: Add hex prefix (0x) to dtsi reg properties where needed.

Signed-off-by: Stanislav Galabov <>
SVN-Revision: 49356

7 years agoramips: introduce serial0 aliases
Luka Perkov [Tue, 10 May 2016 22:37:14 +0000 (22:37 +0000)]
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 <>
SVN-Revision: 49355

7 years agoubox: make logging code honour the hostname properly
Luka Perkov [Tue, 10 May 2016 22:37:12 +0000 (22:37 +0000)]
ubox: make logging code honour the hostname properly

Signed-off-by: John Crispin <>
SVN-Revision: 49354

7 years agobrcm47xx: fix wgt634u port assignment, broken since openwrt r47866
Luka Perkov [Tue, 10 May 2016 22:37:10 +0000 (22:37 +0000)]
brcm47xx: fix wgt634u port assignment, broken since openwrt r47866

Signed-off-by: Russell Senior <>
SVN-Revision: 49353

7 years agoramips: mt7620: [UPSTREAM] fix USB frequency scaling
Luka Perkov [Tue, 10 May 2016 22:37:09 +0000 (22:37 +0000)]
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ș <>
SVN-Revision: 49352

7 years agoramips: Fix alphabetical sorting for 02_network
Luka Perkov [Tue, 10 May 2016 22:37:07 +0000 (22:37 +0000)]
ramips: Fix alphabetical sorting for 02_network

Signed-off-by: Vittorio Gambaletta <>
SVN-Revision: 49351

7 years agoramips: Don't use a VLAN for the single ethernet port of the A5-V11.
Luka Perkov [Tue, 10 May 2016 22:37:03 +0000 (22:37 +0000)]
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 <>
SVN-Revision: 49350

7 years agoramips: Fix network for routers without VLANs on eth0.
Luka Perkov [Tue, 10 May 2016 22:37:02 +0000 (22:37 +0000)]
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 <>
SVN-Revision: 49349

7 years agoncurses: install pkg-config files to fix util-linux build breakage
Luka Perkov [Tue, 10 May 2016 22:37:00 +0000 (22:37 +0000)]
ncurses: install pkg-config files to fix util-linux build breakage

Signed-off-by: Felix Fietkau <>
SVN-Revision: 49348

7 years agoncurses: remove libncurses, provide it via libncursesw
Luka Perkov [Tue, 10 May 2016 22:36:59 +0000 (22:36 +0000)]
ncurses: remove libncurses, provide it via libncursesw

Signed-off-by: Felix Fietkau <>
SVN-Revision: 49347

7 years add support for selecting packages available only via PROVIDES
Luka Perkov [Tue, 10 May 2016 22:36:57 +0000 (22:36 +0000)] add support for selecting packages available only via PROVIDES

Signed-off-by: Felix Fietkau <>
SVN-Revision: 49346

7 years agokernel: add workaround to rebuild
Luka Perkov [Tue, 10 May 2016 22:36:56 +0000 (22:36 +0000)]
kernel: add workaround to rebuild

Building for octeon fails with

  'arch/mips/vdso/' already contains a '.MIPS.abiflags'

if the file already exists from a prior build.

Use the same workaround as the one for committed in

Signed-off-by: Stijn Tintel <>
SVN-Revision: 49345

7 years agotoolchain: gcc: fix build with GCC 6
Luka Perkov [Tue, 10 May 2016 22:36:55 +0000 (22:36 +0000)]
toolchain: gcc: fix build with GCC 6

Signed-off-by: Matthias Schiffer <>
SVN-Revision: 49344

7 years agotools: mkimage: sync include/linux/compiler*.h with u-boot master
Luka Perkov [Tue, 10 May 2016 22:36:53 +0000 (22:36 +0000)]
tools: mkimage: sync include/linux/compiler*.h with u-boot master

Fixes build with GCC 6.

Signed-off-by: Matthias Schiffer <>
SVN-Revision: 49343

7 years agotools: pkg-config: fix build with GCC 6
Luka Perkov [Tue, 10 May 2016 22:36:51 +0000 (22:36 +0000)]
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 <>
SVN-Revision: 49342

7 years agotools: make-ext4fs: fix build regression on mac os x
Luka Perkov [Tue, 10 May 2016 22:36:50 +0000 (22:36 +0000)]
tools: make-ext4fs: fix build regression on mac os x

Including sys/sysmacros.h is not portable

Signed-off-by: Felix Fietkau <>
SVN-Revision: 49341

7 years agobase-files: evaluate uci-defaults on run-time installations
Luka Perkov [Tue, 10 May 2016 22:36:49 +0000 (22:36 +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 <>
SVN-Revision: 49340

7 years agolibiconv: add all ASCII aliases
Luka Perkov [Tue, 10 May 2016 22:36:47 +0000 (22:36 +0000)]
libiconv: add all ASCII aliases

This patch adds missing ASCII aliases to the libiconv stub in order to avoid conversion errors like

Signed-off-by: Gergely Kiss <>
SVN-Revision: 49339

7 years agoxtables-addons: Avoid redefinition of SHRT_MAX in lua packet script
Luka Perkov [Tue, 10 May 2016 22:36:45 +0000 (22:36 +0000)]
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 <>
SVN-Revision: 49338

7 years agofstools: fix snapshot support
Luka Perkov [Tue, 10 May 2016 22:36:44 +0000 (22:36 +0000)]
fstools: fix snapshot support

Signed-off-by: John Crispin <>
SVN-Revision: 49337

7 years agofstools: update to latest git HEAD
Luka Perkov [Tue, 10 May 2016 22:36:43 +0000 (22:36 +0000)]
fstools: update to latest git HEAD

fixes snapshot support

Signed-off-by: John Crispin <>
SVN-Revision: 49336

7 years agofstools: update to latest git HEAD
Luka Perkov [Tue, 10 May 2016 22:36:41 +0000 (22:36 +0000)]
fstools: update to latest git HEAD

this adds the remount command to the block tool

Signed-off-by: John Crispin <>
SVN-Revision: 49335

7 years agokernel: add a workaround to rebuild after genvdso
Luka Perkov [Tue, 10 May 2016 22:36:39 +0000 (22:36 +0000)]
kernel: add a workaround to rebuild after genvdso

Currently the build fails with

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

if the file already exists from a prior build.

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

Signed-off-by: Jo-Philipp Wich <>
SVN-Revision: 49334

7 years agodropbear: Make utmp and putuline support configurable via seperate config options
Luka Perkov [Tue, 10 May 2016 22:36:38 +0000 (22:36 +0000)]
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 <>
SVN-Revision: 49333

7 years agonetifd: Add configurable DHCP release behavior
Luka Perkov [Tue, 10 May 2016 22:36:36 +0000 (22:36 +0000)]
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 <>
SVN-Revision: 49332

7 years agoxtables-addons: Fix Lua packet script implementation
Luka Perkov [Tue, 10 May 2016 22:36:35 +0000 (22:36 +0000)]
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 <>
Signed-off-by: Stijn Cleynhens <>
SVN-Revision: 49331

7 years agolantiq: fix xway image building
Luka Perkov [Tue, 10 May 2016 22:36:33 +0000 (22:36 +0000)]
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 <>
SVN-Revision: 49330

7 years agox86: remove old references to kmod-acpi-button
Luka Perkov [Tue, 10 May 2016 22:36:32 +0000 (22:36 +0000)]
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 <>
Signed-off-by: Luka Perkov <>
SVN-Revision: 49329

7 years agokernel: fix ip6_tunnel compilation
Luka Perkov [Tue, 10 May 2016 22:36:30 +0000 (22:36 +0000)]
kernel: fix ip6_tunnel compilation

Replace undefined iph for ip_hdr(skb)

Signed-off-by: Álvaro Fernández Rojas <>
SVN-Revision: 49328

7 years agobase-files: remove ununsed
Luka Perkov [Tue, 10 May 2016 22:36:28 +0000 (22:36 +0000)]
base-files: remove ununsed

Signed-off-by: John Crispin <>
SVN-Revision: 49327

7 years agobase-files: Allow to disable failsafe mode
Luka Perkov [Tue, 10 May 2016 22:36:27 +0000 (22:36 +0000)]
base-files: Allow to disable failsafe mode

Signed-off-by: Daniel Dickinson <>
SVN-Revision: 49326

7 years agoimage / basefiles: make console password configurable
Luka Perkov [Tue, 10 May 2016 22:36:25 +0000 (22:36 +0000)]
image / basefiles: make console password configurable

Signed-off-by: Daniel Dickinson <>
Signed-off-by: John Crispin <>
SVN-Revision: 49325

7 years agobase-files: fix error message during boot
Luka Perkov [Tue, 10 May 2016 22:36:15 +0000 (22:36 +0000)]
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 <>
SVN-Revision: 49324

7 years agoscripts: metadata: add CONFIG_TARGET_SUBTARGET symbol
Luka Perkov [Tue, 10 May 2016 22:36:13 +0000 (22:36 +0000)]
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 <>
SVN-Revision: 49323

7 years agobusybox: fix setting the kernel timezone
Luka Perkov [Tue, 10 May 2016 22:36:12 +0000 (22:36 +0000)]
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

Signed-off-by: Jo-Philipp Wich <>
SVN-Revision: 49322

7 years agonetifd: Send DHCP release when client exits
Luka Perkov [Tue, 10 May 2016 22:36:10 +0000 (22:36 +0000)]
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 <>
SVN-Revision: 49321

7 years agonetifd: fix default ip rules
Luka Perkov [Tue, 10 May 2016 22:36:08 +0000 (22:36 +0000)]
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 <>
SVN-Revision: 49320

7 years agox86: search PARTUUID in any block device
Luka Perkov [Tue, 10 May 2016 22:36:06 +0000 (22:36 +0000)]
x86: search PARTUUID in any block device

Signed-off-by: Jo-Philipp Wich <>
SVN-Revision: 49319

7 years agox86: make sysupgrade work without partx
Luka Perkov [Tue, 10 May 2016 22:36:04 +0000 (22:36 +0000)]
x86: make sysupgrade work without partx

Signed-off-by: Jo-Philipp Wich <>
SVN-Revision: 49318

7 years agomtd: add -c option for specifying amount of data to be used for checksum
Rafał Miłecki [Mon, 9 May 2016 18:10:35 +0000 (18:10 +0000)]
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 <>
SVN-Revision: 49317

7 years agomtd: trx: use separated buffer for TRX header
Rafał Miłecki [Mon, 9 May 2016 18:10:30 +0000 (18:10 +0000)]
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 <>
SVN-Revision: 49316

7 years agomtd: seama: exit with error if Seama header wasn't found
Rafał Miłecki [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 <>
SVN-Revision: 49314

7 years agomtd: seama: fix image data handling
Rafał Miłecki [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 <>
SVN-Revision: 49309

7 years agomtd: seama: move buf allocation to the MD5 function
Rafał Miłecki [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 <>
SVN-Revision: 49308

7 years agomtd: seama: update MD5 using header in the first block buffer
Rafał Miłecki [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

Signed-off-by: Rafał Miłecki <>
SVN-Revision: 49307

7 years agomtd: seama: add md5 to header struct
Rafał Miłecki [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 <>
SVN-Revision: 49306

7 years agomtd: check for Seama magic early when fixing MD5
Rafał Miłecki [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 <>
SVN-Revision: 49304

7 years agomtd: add missing breaks in a switch
Rafał Miłecki [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 <>
SVN-Revision: 49301

7 years agomtd: use tabs for indents
Rafał Miłecki [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 <>
SVN-Revision: 49300

7 years agokernel: update kernel 4.1 to version 4.1.23
Rafał Miłecki [Thu, 5 May 2016 14:56:57 +0000 (14:56 +0000)]
kernel: update kernel 4.1 to version 4.1.23

Signed-off-by: Rafał Miłecki <>
SVN-Revision: 49296

7 years agoopenssl: Update to version 1.0.2h
Jo-Philipp Wich [Wed, 4 May 2016 12:04:58 +0000 (12:04 +0000)]
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

Signed-off-by: Michal Hrusecky <>
SVN-Revision: 49295

7 years agoramips: Drop hacky switch workaround for failsafe on rt3x5x and rt5350.
John Crispin [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 <>
SVN-Revision: 49293

7 years agoramips: Disable all ethernet ports except port 0 on A5-V11.
John Crispin [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 <>
SVN-Revision: 49292

7 years agoramips: Disable all ethernet ports except port 4 on HT-TM02.
John Crispin [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 <>
SVN-Revision: 49291

7 years agoramips: Get rt3050 ethernet ports to be disabled from the device tree.
John Crispin [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

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 <>
SVN-Revision: 49290

7 years agoramips: Fix comment in rt3050 ethernet switch driver.
John Crispin [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 <>
SVN-Revision: 49289

7 years agoramips: Fix documentation for the rt3050 switch driver.
John Crispin [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 <>
SVN-Revision: 49288

7 years agoramips: Fix multicast ICMPv6 for the rt3050 ethernet switch.
John Crispin [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 <>
SVN-Revision: 49287

7 years agoar71xx: add TP-Link TL-WR810N support
John Crispin [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.

Signed-off-by: Jens Steinhauser <>
SVN-Revision: 49286

7 years agoubox: turn logd into a separate package
John Crispin [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 <>
SVN-Revision: 49285

7 years agolantiq: VGV7510KW22BRN - set the phy clock source
John Crispin [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

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

Signed-off-by: Mathias Kresin <>
SVN-Revision: 49284

7 years agolantiq: add device tree binding for the phy clock source
John Crispin [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 <>
SVN-Revision: 49283

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

Signed-off-by: Mathias Kresin <>
SVN-Revision: 49282

7 years agolantiq: handle the dual-firmware layout of brnboot
John Crispin [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

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 <>
SVN-Revision: 49281

7 years agolantiq: move partitions into partion table node
John Crispin [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

Signed-off-by: Mathias Kresin <>
SVN-Revision: 49280

7 years agolantiq: use sysupgrade.bin postfix for tplink images
John Crispin [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

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 <>
SVN-Revision: 49279

7 years agolantiq: VG3503J - use the same PHY led functionality as the OEM firmware
John Crispin [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 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 <>
SVN-Revision: 49278

7 years agoar71xx: Fix eth0 support for Ubiquiti UniFi AP AC
John Crispin [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>
SVN-Revision: 49277