openwrt/svn-archive/archive.git
8 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 <john@phrozen.org>
SVN-Revision: 49324

8 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 <jo@mein.io>
SVN-Revision: 49323

8 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
problem.

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

8 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 <dedeckeh@gmail.com>
SVN-Revision: 49321

8 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 <jo@mein.io>
SVN-Revision: 49320

8 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 <jo@mein.io>
SVN-Revision: 49319

8 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 <jo@mein.io>
SVN-Revision: 49318

8 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 <zajec5@gmail.com>
SVN-Revision: 49317

8 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 <zajec5@gmail.com>
SVN-Revision: 49316

8 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 <zajec5@gmail.com>
SVN-Revision: 49314

8 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 <zajec5@gmail.com>
SVN-Revision: 49309

8 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 <zajec5@gmail.com>
SVN-Revision: 49308

8 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
calculation.

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

8 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 <zajec5@gmail.com>
SVN-Revision: 49306

8 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 <zajec5@gmail.com>
SVN-Revision: 49304

8 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 <zajec5@gmail.com>
SVN-Revision: 49301

8 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 <zajec5@gmail.com>
SVN-Revision: 49300

8 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 <zajec5@gmail.com>
SVN-Revision: 49296

8 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 https://www.openssl.org/news/openssl-1.0.2-notes.html

Signed-off-by: Michal Hrusecky <Michal.Hrusecky@nic.cz>
SVN-Revision: 49295

8 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 <openwrt@vittgam.net>
SVN-Revision: 49293

8 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 <openwrt@vittgam.net>
SVN-Revision: 49292

8 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 <openwrt@vittgam.net>
SVN-Revision: 49291

8 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
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.
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 <openwrt@vittgam.net>
SVN-Revision: 49289

8 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 <openwrt@vittgam.net>
SVN-Revision: 49288

8 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 <openwrt@vittgam.net>
SVN-Revision: 49287

8 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.
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
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 <andrej.vlasic@sartura.hr>
SVN-Revision: 49285

8 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
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
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 <openwrt@kresin.me>
SVN-Revision: 49283

8 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 <openwrt@kresin.me>
SVN-Revision: 49282

8 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
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
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
reasons.

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

8 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
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
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 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
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 gmx.at>
SVN-Revision: 49277

8 years agobase-files: fix group/user settings after sysupgrade
John Crispin [Sat, 30 Apr 2016 16:53:27 +0000 (16:53 +0000)]
base-files: fix group/user settings after sysupgrade

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

8 years agobase-files: split user/group addition code into a function
John Crispin [Sat, 30 Apr 2016 16:53:21 +0000 (16:53 +0000)]
base-files: split user/group addition code into a function

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

8 years agoppp: Add ppp-mod-passwordfd subpackage to ppp
John Crispin [Fri, 29 Apr 2016 11:35:26 +0000 (11:35 +0000)]
ppp: Add ppp-mod-passwordfd subpackage to ppp

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

8 years agodnsmasq: Add conntrack support in the full variant
John Crispin [Fri, 29 Apr 2016 11:35:20 +0000 (11:35 +0000)]
dnsmasq: Add conntrack support in the full variant

Conntrack support reads the connection track mark associated with
incoming DNS queries and sets the same mark value on the upstream
forwarded DNS query. This can be usefull to track traffic generated
by dnsmasq to associate it with the clients who generate the queries,
usefull for bandwidth accouting and firewall.

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

8 years agodropbear: Add procd interface triggers when interface config is specified
John Crispin [Fri, 29 Apr 2016 11:35:15 +0000 (11:35 +0000)]
dropbear: Add procd interface triggers when interface config is specified

A dropbear instance having an interface config won't start if the interface is down as no
IP address is available.
Adding interface triggers for each configured interface executing the dropbear reload script
will start the dropbear instance when the interface is up.

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

8 years agoiproute2: Add package for nstat utility
John Crispin [Fri, 29 Apr 2016 11:35:10 +0000 (11:35 +0000)]
iproute2: Add package for nstat utility

Add support for the command line utility nstat displaying network statistics

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

8 years agolantiq: use the same functionality for all ethernet phys led
John Crispin [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
John Crispin [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.
John Crispin [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 agoscripts: avoid hard-coded paths in scripts
John Crispin [Fri, 29 Apr 2016 11:34:48 +0000 (11:34 +0000)]
scripts: avoid hard-coded paths in scripts

Signed-off-by: Iblis Lin <e196819@hotmail.com>
SVN-Revision: 49267

8 years agobase-files: evaluate uci-defaults on run-time installations
John Crispin [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>
SVN-Revision: 49266

8 years agomediatek: sync patches and add more ethernet stability fixes
John Crispin [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 agobcm53xx: add m25p80 workaround for SPI flash writing problems
Rafał Miłecki [Wed, 27 Apr 2016 21:20:45 +0000 (21:20 +0000)]
bcm53xx: add m25p80 workaround for SPI flash writing problems

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

8 years agomediatek: sync and patches add support for several boards
John Crispin [Wed, 27 Apr 2016 08:58:15 +0000 (08:58 +0000)]
mediatek: sync and patches add support for several boards

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

8 years agobcm53xx: support SPI-NOR on dual flash devices
Rafał Miłecki [Wed, 27 Apr 2016 08:04:30 +0000 (08:04 +0000)]
bcm53xx: support SPI-NOR on dual flash devices

We need it to access NVRAM.

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

8 years agobcm53xx: switch to m25p80 and drop bcm53xxspiflash
Rafał Miłecki [Tue, 26 Apr 2016 17:08:53 +0000 (17:08 +0000)]
bcm53xx: switch to m25p80 and drop bcm53xxspiflash

For some time now m25p80 supports 32 MiB flashes and we just needed to
patch spi-nor to support JEDEC incompatible w25q128. Also by switching
to m25p80 we gain accelerated SPI flash reads.

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

8 years agobcm53xx: support JEDEC incompatible w25q128 in spi-nor
Rafał Miłecki [Tue, 26 Apr 2016 12:36:34 +0000 (12:36 +0000)]
bcm53xx: support JEDEC incompatible w25q128 in spi-nor

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

8 years agoar71xx: Add support for the OMYlink OMY-G1
John Crispin [Tue, 26 Apr 2016 11:44:36 +0000 (11:44 +0000)]
ar71xx: Add support for the OMYlink OMY-G1

https://wiki.openwrt.org/toh/omylink/omy-g1

http://www.omylink.com/

Signed-off-by: L. D. Pinney <ldpinney@gmail.com>
SVN-Revision: 49258

8 years agozynq: Add Zybo device support
John Crispin [Tue, 26 Apr 2016 11:44:29 +0000 (11:44 +0000)]
zynq: Add Zybo device support

Signed-off-by: Jason Wu <jason.wu.misc@gmail.com>
SVN-Revision: 49257

8 years agoZynq: Add Zedboard device support
John Crispin [Tue, 26 Apr 2016 11:44:26 +0000 (11:44 +0000)]
Zynq: Add Zedboard device support

Tested-by: Joe Zhang <jz21082@gmail.com>
Signed-off-by: Jason Wu <jason.wu.misc@gmail.com>
SVN-Revision: 49256

8 years agozynq: Remove rdinit patch
John Crispin [Tue, 26 Apr 2016 11:44:22 +0000 (11:44 +0000)]
zynq: Remove rdinit patch

This is not required as long as CONFIG_TARGET_INIT_CMD is correctly
configured.

Signed-off-by: Jason Wu <jason.wu.misc@gmail.com>
SVN-Revision: 49255

8 years agolantiq: use dwc2 by default on all ar9 boards
John Crispin [Tue, 26 Apr 2016 11:44:17 +0000 (11:44 +0000)]
lantiq: use dwc2 by default on all ar9 boards

The dwc2 USB driver now works on Lantiq ar9, but the
default is still ltq-hcd-ar9. This patch switches to
dwc2 by default.

v2: all ar9 boards (v1 was just for BTHOMEHUBV3A and WBMR)

Signed-off-by: Ben Mulvihill <ben.mulvihill@gmail.com>
SVN-Revision: 49254

8 years agolantiq: install uboot-envtools by default on BTHOMEHUBV3A
John Crispin [Tue, 26 Apr 2016 11:44:13 +0000 (11:44 +0000)]
lantiq: install uboot-envtools by default on BTHOMEHUBV3A

The only way to access the u-boot console on the BTHOMEHUBV3A
is by soldering a serial console onto some really tiny pads.

To enable installation without soldering it would be helpful
to be able to modify the uboot environment from within
the ramdisk image used as part of the installation process.

Signed-off-by: Ben Mulvihill <ben.mulvihill@gmail.com>
SVN-Revision: 49253

8 years agodnsmasq: run as dedicated UID/GID
John Crispin [Tue, 26 Apr 2016 11:44:10 +0000 (11:44 +0000)]
dnsmasq: run as dedicated UID/GID

Running dnsmasq in a dedicated user/group allows matching its outgoing
traffic more easily using iptables' owner match.
Add UID/GID to the package metadata and append the user/group
parameters to the init script.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
SVN-Revision: 49252

8 years agomac80211: ath9k: add GPIO support for AR9280 chip
John Crispin [Tue, 26 Apr 2016 11:44:07 +0000 (11:44 +0000)]
mac80211: ath9k: add GPIO support for AR9280 chip

Enable access to GPIO on Atheros wireless chip AR9280.
Support for 9280 is added to existing 9285/9287 subsystem
because these 3 chips differ only in number of GPIO pins.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
SVN-Revision: 49251

8 years agolantiq: remove read-only flag on two partitions on BTHOMEHUBV3A
John Crispin [Tue, 26 Apr 2016 11:44:03 +0000 (11:44 +0000)]
lantiq: remove read-only flag on two partitions on BTHOMEHUBV3A

Remove read-only flag on two partitions on BTHOMEHUBV3A:
  uboot-config - otherwise fw_setenv command cannot be used.
  ath9k-cal    - so that ath9k calibration data can be copied
                 to the partition on a newly installed board.

Signed-off-by: Ben Mulvihill <ben.mulvihill@gmail.com>
SVN-Revision: 49250

8 years agocns3xxx: set both MPS 'and' MRSS to 128
John Crispin [Tue, 26 Apr 2016 11:44:00 +0000 (11:44 +0000)]
cns3xxx: set both MPS 'and' MRSS to 128

Fixes some DMA issues with this platform. Because this isn't currently accepted,
and can potentially disrupt other platforms (as read in commit log), I will
leave this cns3xxx specific.

Original Patch: https://patchwork.ozlabs.org/patch/600024/

Signed-off-by: Pushpal Sidhu <psidhu@gateworks.com>
SVN-Revision: 49249

8 years agocns3xxx: backport pci fix for cns3xxx_write_config
John Crispin [Tue, 26 Apr 2016 11:43:57 +0000 (11:43 +0000)]
cns3xxx: backport pci fix for cns3xxx_write_config

Fix is required to properly set pci config bits.
Original Patch: https://patchwork.ozlabs.org/patch/596170/

Signed-off-by: Pushpal Sidhu <psidhu@gateworks.com>
SVN-Revision: 49248

8 years agoramips: Add support for the Netgear WNDR3700v5
John Crispin [Tue, 26 Apr 2016 11:43:53 +0000 (11:43 +0000)]
ramips: Add support for the Netgear WNDR3700v5

https://wiki.openwrt.org/toh/netgear/wndr3700

wndr3700v5 uses the single-core dual thread MediaTek MT7621S SoC.

Signed-off-by: L. D. Pinney <ldpinney@gmail.com>
SVN-Revision: 49247

8 years agousbutils: Update USB IDs list and drop gzip compression
John Crispin [Tue, 26 Apr 2016 11:43:49 +0000 (11:43 +0000)]
usbutils: Update USB IDs list and drop gzip compression

Change mirror to Github (Gentoo repo) and drop the gzip compression.
Worst case there's about 4kbyte increase in size but most images ends up
beign somewhere between 4-100kbyte smaller due to the lzma compression.

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
SVN-Revision: 49246

8 years agoar71xx: Add TP-Link TL-WR740N v6 support to trunk
John Crispin [Tue, 26 Apr 2016 11:43:45 +0000 (11:43 +0000)]
ar71xx: Add TP-Link TL-WR740N v6 support to trunk

This patch adds support for the TP-Link TL-WR740N v6 into OpenWrt trunk. Hardware wise, it's very similar to the TL-WR841N v10. See the forum thread [1]. Credit goes to the user 'traveler' who did the legwork and tested builds.

Also thanks to Matthias Schiffer for clarifying the DEVICE_PROFILE settings.

Signed-off by: Stijn Segers <francesco.borromini@inventati.org>

[1]: https://forum.openwrt.org/viewtopic.php?pid=318704

SVN-Revision: 49245

8 years agoar71xx: simplify patch 613 and add missing error handling
John Crispin [Tue, 26 Apr 2016 11:43:42 +0000 (11:43 +0000)]
ar71xx: simplify patch 613 and add missing error handling

Dynamic allocation of label can be simplified.
Also add error handling to deal with failed memory allocation.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
SVN-Revision: 49244

8 years agomediatek: update patches
John Crispin [Tue, 26 Apr 2016 11:43:38 +0000 (11:43 +0000)]
mediatek: update patches

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

8 years agolantiq: Fix typo in LED diag script.
John Crispin [Tue, 26 Apr 2016 11:43:31 +0000 (11:43 +0000)]
lantiq: Fix typo in LED diag script.

Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>
Acked-by: Mathias Kresin <openwrt@kresin.me>
SVN-Revision: 49242

8 years agolantiq: use new image build process for brnImages
John Crispin [Tue, 26 Apr 2016 11:43:28 +0000 (11:43 +0000)]
lantiq: use new image build process for brnImages

LZMA compress the kernel without dictionary, otherwise brnboot fails to
uncompress the kernel.

The filesystem parameter of mkbrncmdline was dropped since the used
filesystem isn't exported in the kernel build step and at least in my
tests everything works without the parameter. If the parameter is
required for some reason, the static keyword "squashfs" can be used.

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

8 years agoinclude: add a no dict version of lzma to new image build code
John Crispin [Tue, 26 Apr 2016 11:43:24 +0000 (11:43 +0000)]
include: add a no dict version of lzma to new image build code

Required to compress kernels in a brnboot compatible way.

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

8 years agolantiq: remove orphaned tp-link image build steps
John Crispin [Tue, 26 Apr 2016 11:43:21 +0000 (11:43 +0000)]
lantiq: remove orphaned tp-link image build steps

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

8 years agolantiq: build sysupgrade images for lantiqImage
John Crispin [Tue, 26 Apr 2016 11:43:18 +0000 (11:43 +0000)]
lantiq: build sysupgrade images for lantiqImage

Tested with VGV7510KW22NOR.

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

8 years agolantiq: new image build process - fix kernel entry address
John Crispin [Tue, 26 Apr 2016 11:43:15 +0000 (11:43 +0000)]
lantiq: new image build process - fix kernel entry address

Set the kernel entry address to the same value as it is used for the old
image build build process.

Fixes boot of uImages on VGV7510KW22NOR and others.

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

8 years agolantiq: uboot-envtools on BTHOMEHUBV3A
John Crispin [Tue, 26 Apr 2016 11:43:11 +0000 (11:43 +0000)]
lantiq: uboot-envtools on BTHOMEHUBV3A

Generate fw_env.config for BTHOMEHUBV3A.

Signed-off-by: Ben Mulvihill <ben.mulvihill@gmail.com>
SVN-Revision: 49236

8 years agoramips: add support for Planex MZK-EX300NP
John Crispin [Tue, 26 Apr 2016 11:43:06 +0000 (11:43 +0000)]
ramips: add support for Planex MZK-EX300NP

MZK-EX300NP is MT7620A based wifi repeater.
Built-in power supply.
64MiB RAM, 8MiB SPI Flash, non Wired Ethernet.

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

8 years agoramips: add support for Planex CS-QR10
John Crispin [Tue, 26 Apr 2016 11:43:01 +0000 (11:43 +0000)]
ramips: add support for Planex CS-QR10

CS-QR10 is MT7620A based IP Camera.

the camera and sound does not work with kernel 4.4.
 - camera chip is sn9c291.
 - sound chip is wm8960.

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

8 years agokernel: backport support for accelerated SPI flash read
Rafał Miłecki [Tue, 26 Apr 2016 09:23:12 +0000 (09:23 +0000)]
kernel: backport support for accelerated SPI flash read

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

8 years agobcm53xx: backport BCM5301X DT patch specifying SPI controller
Rafał Miłecki [Tue, 26 Apr 2016 09:22:49 +0000 (09:22 +0000)]
bcm53xx: backport BCM5301X DT patch specifying SPI controller

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

8 years agofstools: respect mount flags for /overlay mounts
Jo-Philipp Wich [Mon, 25 Apr 2016 15:54:35 +0000 (15:54 +0000)]
fstools: respect mount flags for /overlay mounts

Respect user configured mount flags such as "ro" or "sync" when processing
external overlay mount points.

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

8 years agomac80211: add brcmfmac regression ("NULL pointer dereference") fix
Rafał Miłecki [Mon, 25 Apr 2016 15:32:20 +0000 (15:32 +0000)]
mac80211: add brcmfmac regression ("NULL pointer dereference") fix

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

8 years agoramips: fix build of target
Hauke Mehrtens [Sun, 24 Apr 2016 22:17:38 +0000 (22:17 +0000)]
ramips: fix build of target

Makes the patches apply again by fixing the white space broken patch.
This problem was introduced in r49212.

Closes #22248 and #22259

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
SVN-Revision: 49221

8 years agooxnas: add missing semicolon
Luka Perkov [Sun, 24 Apr 2016 16:42:14 +0000 (16:42 +0000)]
oxnas: add missing semicolon

A missing semicolon in the gpio-keys-polled section of ox820-akitio.dts
caused the build to break. Add it.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
SVN-Revision: 49219

8 years agoxtables-addons: build: fix configure compatiblity with POSIX shells
John Crispin [Thu, 21 Apr 2016 19:47:26 +0000 (19:47 +0000)]
xtables-addons: build: fix configure compatiblity with POSIX shells

Fixes build with /bin/sh pointing to certain versions of dash (for example
on Void Linux).

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

8 years agoar71xx: build TP-LINK Archer C7 images with US region code
John Crispin [Thu, 21 Apr 2016 19:47:22 +0000 (19:47 +0000)]
ar71xx: build TP-LINK Archer C7 images with US region code

Since December 2015, the Archer C7 comes with an US-specific firmware. This
firmware will only allow upgrades with images that contain the US region
code in the firmware header.

The "universal" firmware distributed in the rest of the world doesn't care
about the region code, so we can just unconditionally set the region to US
for now. When other region-specific firmwares appear, we'll need to create
a factory image for each of them.

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

8 years agoar71xx: fix giving extra arguments to Build/mktplinkfw
John Crispin [Thu, 21 Apr 2016 19:47:19 +0000 (19:47 +0000)]
ar71xx: fix giving extra arguments to Build/mktplinkfw

The build command will always get the whole argument string in $(1),
regardless of whitespace. We need to use word/wordlist to split the string
after the first word.

Whitespace and quotation will be given to the command verbatim (make will
ignore it), so to give multiple arguments, no quotation marks may be used.

Fixes: r47174 ("ar71xx/image: add options argument to mktplinkfw step")
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
SVN-Revision: 49216

8 years agotools: firmware-utils: add region code support to mktplinkfw
John Crispin [Thu, 21 Apr 2016 19:47:15 +0000 (19:47 +0000)]
tools: firmware-utils: add region code support to mktplinkfw

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

8 years agotools: firmware-utils: clean up mktplinkfw
John Crispin [Thu, 21 Apr 2016 19:47:12 +0000 (19:47 +0000)]
tools: firmware-utils: clean up mktplinkfw

Remove the whole board list from mktplinkfw, as OpenWrt doesn't use it and
it was severely out of sync with the list of built images for ar71xx.

Also:
* fix -Wall warnings
* add const where appropriate

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

8 years agoramips: Add support for ZBT WG3526
John Crispin [Thu, 21 Apr 2016 19:47:08 +0000 (19:47 +0000)]
ramips: Add support for ZBT WG3526

The WG3526 is the follow-up to the 2626 and is mostly the same, with the
excaption that the mt7602 has been replaced with the mt7603. The internal wifi
setup has also changed slightly. Based on my tests, everything that worked on
the 2626 works on the 3526 and with roughly the same performance.

v1->v2:
* Remove some references to 2626 that I had missed in the dts.

v2->v3:
* Update patch to match new file structure.
* Removed SD driver to be consistent with other MT7621 targets.

Signed-off-by: Kristian Evensen <kristian.evensen@gmail.com>
SVN-Revision: 49213

8 years agoramips: awake rt305x USB controller
John Crispin [Thu, 21 Apr 2016 19:47:02 +0000 (19:47 +0000)]
ramips: awake rt305x USB controller

Because of Ralink uboot set USB controller into sleep mode [1]
we check it and awake controller before any registers access.
Fix ticket #21396 [2]

[1] http://marc.info/?l=linux-usb&m=137398626102108&w=2
[2] https://dev.openwrt.org/ticket/21396

Signed-Off-By: Serge Vasilugin <vasilugin@yandex.ru>
SVN-Revision: 49212

8 years agoramips: add support for ELECOM WRH-300CR
John Crispin [Thu, 21 Apr 2016 19:46:59 +0000 (19:46 +0000)]
ramips: add support for ELECOM WRH-300CR

ELECOM WRH-300CR is MT7620N based very small Wi-Fi router with 64MiB
DDR2 SDRAM, 16MiB SPI Flash, one fast ethernet port, and (internal but
easy-to-access) UART.

it also has internal USB hub and USB card reader which provide one USB
port, one SD card slot, and one microSD card slot.

Signed-off-by: YuheiOKAWA <tochiro.srchack@gmail.com>
Signed-off-by: FUKAUMI Naoki <naobsd@gmail.com>
SVN-Revision: 49211

8 years agolantiq: use new image build process for some images
John Crispin [Thu, 21 Apr 2016 19:46:53 +0000 (19:46 +0000)]
lantiq: use new image build process for some images

This adds for some easy images the new build process.

This was only tested on some TP-Link devices, please test.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
SVN-Revision: 49210

8 years agoramips: update DTS file for Planex DB-WRT01
John Crispin [Thu, 21 Apr 2016 19:46:49 +0000 (19:46 +0000)]
ramips: update DTS file for Planex DB-WRT01

update DTS files to use jedec,spi-nor compatible string for m25p80 to fix probe issues.

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

8 years agobcm53xx: bump maximum TRX size for devices with serial flash
Rafał Miłecki [Wed, 20 Apr 2016 18:14:01 +0000 (18:14 +0000)]
bcm53xx: bump maximum TRX size for devices with serial flash

It was already increased for NAND devices so do the same for the ones
with serial memory.

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

8 years agofeeds.conf.default: remove the commented ancient feeds
John Crispin [Wed, 20 Apr 2016 17:19:08 +0000 (17:19 +0000)]
feeds.conf.default: remove the commented ancient feeds

Cleanup feeds.conf.default by removing the old commented-out feeds:
* x-wrt has not been updated for years and targets WhiteRussian/Kamikaze.
  No currect code base available anywhere
* six old feeds from svn.openwrt.org/feeds. These feeds have not been
  updated for 4-5 years and their code is currently unavailable
  (in svn.openwrt.org)

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
SVN-Revision: 49206

8 years agoramips: fix support Planex MZK-750DHP.
John Crispin [Wed, 20 Apr 2016 17:19:05 +0000 (17:19 +0000)]
ramips: fix support Planex MZK-750DHP.

fix script for Planex MZK-750DHP.
modification of the GPIO definition.
add Profile.

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

8 years agoramips: rt3352 usbphy fix in dts-file
John Crispin [Wed, 20 Apr 2016 17:19:00 +0000 (17:19 +0000)]
ramips: rt3352 usbphy fix in dts-file

Add missing rt3352 usb phy. Fix ticket #20499.

Signed-Off-By:Serge Vasilugin <vasilugin@yandex.ru>

SVN-Revision: 49204

8 years agocurl: remove file accidentally committed in r49197
Hauke Mehrtens [Tue, 19 Apr 2016 20:18:50 +0000 (20:18 +0000)]
curl: remove file accidentally committed in r49197

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
SVN-Revision: 49199

8 years agooxnas: clean-up and improve profiles
Hauke Mehrtens [Tue, 19 Apr 2016 20:14:31 +0000 (20:14 +0000)]
oxnas: clean-up and improve profiles

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
SVN-Revision: 49198