openwrt/staging/neocturne.git
8 years agouboot-sunxi: fix default config for OLIMEX A13 SOM (FS#239)
Jo-Philipp Wich [Mon, 31 Oct 2016 19:19:27 +0000 (20:19 +0100)]
uboot-sunxi: fix default config for OLIMEX A13 SOM (FS#239)

The current uboot default config for the A13 SOM erroneously enables support
for the AXP209 power regulator IC which is not present on the board.

This superfluous support module sets an incorrect initial clock frequency and
confuses the kernel, ultimately leading to a boot failure later on.

Properly disable the PMIC support and enable the EHCI support by translating
the deprecated SYS_EXTRA_OPTIONS values into proper SUNXI_NO_PMIC and
USB_EHCI_HCD symbols respectively.

Also rename 002-add-olimex-a13-som.diff to 002-add-olimex-a13-som.patch and
refresh the remaining patches of the series while we're at it.

Reported-by: Mario Fischer <mario-fischer@web.de>
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agoscripts/package-metadata.pl: honour DEFAULT_VARIANT
Jo-Philipp Wich [Wed, 2 Nov 2016 00:45:06 +0000 (01:45 +0100)]
scripts/package-metadata.pl: honour DEFAULT_VARIANT

So far, package-metadata.pl always considered the first provider of a virtual
package to be the default variant which might deviate from what buildroot
considers to be the default.

Change the Kconfig dependency / select code generation for virtual package
providers to consider the DEFAULT_VARIANT to be the primary provider and only
fall back to the first provider if no default variant was explicitely tagged.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agobase-files: uci-defaults: support requesting untagged switch port configuration
Jo-Philipp Wich [Sat, 15 Oct 2016 23:13:55 +0000 (01:13 +0200)]
base-files: uci-defaults: support requesting untagged switch port configuration

Introduce support for a new [0-9]u@netdev syntax to ucidev_add_switch() to let
board.d network files request default network switch configurations which do
not use tagged CPU ports.

This commit itself has no effect on generated configurations at the moment
since we still emit untagged configurations by default but it allows boards to
opt-out from default tagged configs in case we start emitting tagged settings
by default.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agoinclude: properly update .install stamp files
Jo-Philipp Wich [Thu, 13 Oct 2016 00:54:34 +0000 (02:54 +0200)]
include: properly update .install stamp files

Right now the $(PKG_INSTALL_STAMP) files are only written if a package is
selected as <*> but never deleted or emptied if the corresponding package
is getting deselected.

For ordinary packages this usually is no problem as the package/install
recipe performs its own check for enabled packages when assembling the
list of install stamp files to consider, but this logic might fail under
certain circumstances for packages providing multiple build variants.

In case of a multi-variant package, the buildroot first checks if any
of the variants is enabled, then resolves all variants of the common
source package and finally processes the corresponding .install stamp
files of all variants, relying on the assumption that only the selected
.install stamp file exists.

When an initially selected variant is getting deselected or changed from
<*> to <m> and another variant is marked as <*> instead, the .install
stamp file of the deselected variant remains unchanged and a second
.install stamp file for the newly selected variant is getting created,
causing the package/install recipe to pick up two .install stamps with
conflicting variants, leading to opkg file clashes.

This issue happens for example if package "ip" is set to <m> and package
"ip-full" to <*> -  the install command will eventually fail with:

     * check_conflicts_for: The following packages conflict with ip:
     * check_conflicts_for:  ip-full *
     * opkg_install_cmd: Cannot install package ip.

In order to fix the problem, always process the removal requests or the
.install stamp files, even for deselected packages but only write the
package base name into the stamp file if the corresponding package is
marked as builtin.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agoscripts/package-metadata.pl: fix handling of virtual (PROVIDES) depends
Jo-Philipp Wich [Thu, 13 Oct 2016 00:48:32 +0000 (02:48 +0200)]
scripts/package-metadata.pl: fix handling of virtual (PROVIDES) depends

Currently the code emitting dependencies for provide candidates is overwriting
the specification calculated by the previous conditional dependency handling
code, rendering dependencies on virtual PROVIDES packages in conjunction with
conditional dependencies unusable.

Instead of overwriting, append the PROVIDES dependency spec in order to fix
using DEPENDS on virtual provider packages in conjunction with conditions.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agoinclude/host-build.mk: use STAGING_DIR_HOSTPKG
Jo-Philipp Wich [Tue, 1 Nov 2016 11:09:30 +0000 (12:09 +0100)]
include/host-build.mk: use STAGING_DIR_HOSTPKG

Instead of hardcoding $(STAGING_DIR)/host, use the new $(STAGING_DIR_HOSTPKG)
variable to refer to the directory.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agorules.mk: add STAGING_DIR_HOSTPKG variable
Jo-Philipp Wich [Tue, 1 Nov 2016 11:07:56 +0000 (12:07 +0100)]
rules.mk: add STAGING_DIR_HOSTPKG variable

Add a STAGING_DIR_HOSTPKG variable which refers to $(STAGING_DIR)/host in order
to prepare support for relocating that directory in the future.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agofstools: add build-depends on util-linux
Jo-Philipp Wich [Tue, 1 Nov 2016 08:50:39 +0000 (09:50 +0100)]
fstools: add build-depends on util-linux

The libblkid probe support in fstools git head requires blkid/blkid.h for
compilation, so add a build dependency on util-linux which provides libblkid.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agoar71xx: Add support to Powerline ac TP-Link WPA8630
Henryk Heisig [Sun, 30 Oct 2016 16:57:27 +0000 (17:57 +0100)]
ar71xx: Add support to Powerline ac TP-Link WPA8630

Signed-off-by: Henryk Heisig <hyniu@o2.pl>
8 years agolayerscape: add 64b/32b target for ls1012ardb device
Yutang Jiang [Fri, 28 Oct 2016 16:18:23 +0000 (00:18 +0800)]
layerscape: add 64b/32b target for ls1012ardb device

The QorIQ LS1012A processor, optimized for battery-backed or
USB-powered, integrates a single ARM Cortex-A53 core with a hardware
packet forwarding engine and high-speed interfaces to deliver
line-rate networking performance.
QorIQ LS1012A Reference Design System (LS1012ARDB) is a high-performance
development platform, with a complete debugging environment.
The LS1012ARDB board supports the QorIQ LS1012A processor and is
optimized to support the high-bandwidth DDR3L memory and
a full complement of high-speed SerDes ports.

LEDE/OPENWRT will auto strip executable program file while make. So we
need select CONFIG_NO_STRIP=y while make menuconfig to avoid the ppfe network
fiemware be destroyed, then run make to build ls1012ardb firmware.

The fsl-quadspi flash with jffs2 fs is unstable and arise some failed message.
This issue have noticed the IP owner for investigate, hope he can solve it
earlier. So the ls1012ardb now also provide a xx-firmware.ext4.bin as default
firmware, and the uboot bootcmd will run wrtboot_ext4rfs for "rootfstype=ext4"
bootargs.

Signed-off-by: Yutang Jiang <yutang.jiang@nxp.com>
8 years agolayerscape: add 64b/32b target for ls1043ardb device
Yutang Jiang [Fri, 28 Oct 2016 16:14:32 +0000 (00:14 +0800)]
layerscape: add 64b/32b target for ls1043ardb device

Add support for NXP layerscape ls1043ardb 64b/32b Dev board.

LS1043a is an SoC with 4x64-bit up to 1.6 GHz ARMv8 A53 cores.
ls1043ardb support features as: 2GB DDR4, 128MB NOR/512MB NAND, USB3.0, eSDHC,
I2C, GPIO, PCIe/Mini-PCIe, 6x1G/1x10G network port, etc.

64b/32b ls1043ardb target is using 4.4 kernel, and rcw/u-boot/fman images from
NXP QorIQ SDK release.

All of 4.4 kernel patches porting from SDK release or upstream.

QorIQ SDK ISOs can be downloaded from this location:
http://www.nxp.com/products/software-and-tools/run-time-software/linux-sdk/linux-sdk-for-qoriq-processors:SDKLINUX

Signed-off-by: Yutang Jiang <yutang.jiang@nxp.com>
8 years agoramips: Archer C50 cleanup
Henryk Heisig [Thu, 13 Oct 2016 19:00:06 +0000 (21:00 +0200)]
ramips: Archer C50 cleanup

- setting read-only flag to important partitions
- enabling PA to improve 2.4 GHz signal strength
- add missing leds
- rename colour led
- add mac adress to 5GHz wlan interface
- included <dt-bindings/input/input.h> and <dt-bindings/gpio/gpio.h>

Signed-off-by: Henryk Heisig hyniu@o2.pl
8 years agolantiq: add vpe/watchdog modules to kernel
Stefan Koch [Mon, 3 Nov 2014 08:33:04 +0000 (08:33 +0000)]
lantiq: add vpe/watchdog modules to kernel

(required not-distributable firmware blob - dump it by yourself from original firmware)

Signed-off-by: Eddi De Pieri <eddi@depieri.net>
(cherry picked from commit 064f467264c5c9b6eca0bb96b587f9412b770cc5)
Signed-off-by: Stefan Koch <stefan.koch10@gmail.com>
8 years agolantiq: added xrx200 as plattform for ltqvmmc
Stefan Koch [Tue, 4 Oct 2016 19:22:40 +0000 (21:22 +0200)]
lantiq: added xrx200 as plattform for ltqvmmc

Signed-off-by: Stefan Koch <stefan.koch10@gmail.com>
8 years agolantiq: added xrx200 as plattform for ltqtapi
Stefan Koch [Tue, 4 Oct 2016 19:22:40 +0000 (21:22 +0200)]
lantiq: added xrx200 as plattform for ltqtapi

Signed-off-by: Stefan Koch <stefan.koch10@gmail.com>
8 years agolantiq: vpe softdog
Stefan Koch [Mon, 3 Nov 2014 08:32:32 +0000 (08:32 +0000)]
lantiq: vpe softdog

(required not-distributable firmware blob - dump it by yourself from original firmware)

Signed-off-by: Eddi De Pieri <eddi@depieri.net>
(cherry picked from commit eb0ce57270d0b5b81b224b9336cf54707497eede)

Modified after cherry-pick:
obj in Makefile

Signed-off-by: Stefan Koch <stefan.koch10@gmail.com>
8 years agolantiq: added support for VPE1
Stefan Koch [Thu, 20 Oct 2016 19:32:02 +0000 (21:32 +0200)]
lantiq: added support for VPE1

Created minimal patchset based on BB rev 43158 by Eddi De Pieri
14.07/openwrt.git 79472c025449efae9310defad0d3a73cff14d756

If the VR9 based router provides FXS ports and they shoud enabled then
the following must added to the kernel command line:
mem=[TOTALMEMSIZE-2M] vpe1_load_addr=ADDRESS vpe1_mem=2M maxvpes=1
maxtcs=1

To use FXS 2M of RAM are needed for the VPE firmware. The size is set
by vpe1_mem.
The available RAM must be reduced by this size using the mem argument.
A correct load address (example 0x83e00000) for the firmware must be given,
too.

Signed-off-by: Stefan Koch <stefan.koch10@gmail.com>
8 years agolantiq: modify vr9.dts to support vmmc
Stefan Koch [Mon, 3 Nov 2014 08:32:58 +0000 (08:32 +0000)]
lantiq: modify vr9.dts to support vmmc

(required not-distributable firmware blob - dump it by yourself from original firmware)

Signed-off-by: Eddi De Pieri <eddi@depieri.net>
(cherry picked from commit 8d924d43c0ea6839a3a33e54982e8da48b736001)

Modified after cherry-pick:
compatible attribute

Signed-off-by: Stefan Koch <stefan.koch10@gmail.com>
8 years agolantiq: fix vmmc build
Stefan Koch [Mon, 3 Nov 2014 08:32:50 +0000 (08:32 +0000)]
lantiq: fix vmmc build

(required not-distributable firmware blob - dump it by yourself from original firmware)

Signed-off-by: Eddi De Pieri <eddi@depieri.net>
(cherry picked from commit 47b1ff965b0cb57013b40fbe2bcd7f3c6eb6b606)

Modified after cherry-pick:
FW_MD5SUM in Makefile

Signed-off-by: Stefan Koch <stefan.koch10@gmail.com>
8 years agolantiq: ltq-vmmc add support for ar9-vr9
Stefan Koch [Mon, 3 Nov 2014 08:32:30 +0000 (08:32 +0000)]
lantiq: ltq-vmmc add support for ar9-vr9

(required not-distributable firmware blob - dump it by yourself from original firmware)

Signed-off-by: Eddi De Pieri <eddi@depieri.net>
(cherry picked from commit ea9e61b8eb61a2e362a50541f03466dc7d087947)
Signed-off-by: Stefan Koch <stefan.koch10@gmail.com>
8 years agoipq806x: add reserved memory node in Netgear R7800
Pavel Kubelun [Tue, 25 Oct 2016 16:46:04 +0000 (19:46 +0300)]
ipq806x: add reserved memory node in Netgear R7800

KERNEL BUG: BAD_PAGE_STATE in process appears here and there during intensive memory usage.

Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
8 years agoramips: Add RTC driver to kernel for working hctosys
Rosen Penev [Sun, 30 Oct 2016 03:50:45 +0000 (20:50 -0700)]
ramips: Add RTC driver to kernel for working hctosys

Build the RTC driver into the kernel, (and remove the optional module), in order
to make hctosys working. (Currently the module is loaded after hctosys has failed previously)

Signed-off-by: Rosen Penev <rosenp@gmail.com>
8 years agoipq806x: ArcherC2600: export usb power pins
Henryk Heisig [Sat, 29 Oct 2016 20:19:32 +0000 (22:19 +0200)]
ipq806x: ArcherC2600: export usb power pins

Signed-off-by: Henryk Heisig <hyniu@o2.pl>
8 years agoipq806x: ArcherC2600: devictree cleanup
Henryk Heisig [Sat, 29 Oct 2016 19:49:09 +0000 (21:49 +0200)]
ipq806x: ArcherC2600: devictree cleanup

add blank lines and use macros for GPIOs

Signed-off-by: Henryk Heisig <hyniu@o2.pl>
8 years agofstools: update to latest git HEAD
John Crispin [Mon, 31 Oct 2016 15:38:26 +0000 (16:38 +0100)]
fstools: update to latest git HEAD

adds f2fs support

Signed-off-by: John Crispin <john@phrozen.org>
8 years agokernel: update kernel 4.4 to version 4.4.28
Paul Wassi [Sat, 29 Oct 2016 07:56:58 +0000 (09:56 +0200)]
kernel: update kernel 4.4 to version 4.4.28

Refresh patches for all targets that support kernel 4.4.
compile/run-tested on ar71xx, brcm47xx, kirkwood.

Signed-off-by: Paul Wassi <p.wassi@gmx.at>
Tested-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
8 years agobase-files: sysfixtime: Keep RTC time in UTC timezone
Petr Štetiar [Mon, 31 Oct 2016 10:50:09 +0000 (11:50 +0100)]
base-files: sysfixtime: Keep RTC time in UTC timezone

We need to tell hwclock with -u commandline option, that we would like
to keep our RTC clock in UTC timezone. Linux kernel expects RTC in UTC
timezone anyway.

In current state of things, we don't tell hwclock to load/store time
from/to RTC in UTC timezone so it uses the timezone from the system
time. If it's set to different timezone then UTC, sysfixtime is going to
screw the time in RTC.

I've following in the setup script:

  uci set system.@system[0].timezone='CET-1CEST,M3.5.0,M10.5.0/3'
  uci set system.@system[0].zonename='Europe/Prague'

I've this RTC setup (rtc1 is RTC on i.MX6 SoC, rtc0 is battery backed RTC mcp7941x):

  rtc-ds1307 3-006f: rtc core: registered mcp7941x as rtc0
  snvs_rtc 20cc000.snvs:snvs-rtc-lp: rtc core: registered 20cc000.snvs:snvs-r as rtc1

Then we can experience following (current time is 10:15am):

$ date
Fri Oct 21 10:15:07 CEST 2016

$ hwclock -r -f /dev/rtc0
Fri Oct 21 08:14:46 2016  0.000000 seconds

$ hwclock -u -r -f /dev/rtc0
Fri Oct 21 10:14:46 2016  0.000000 seconds

And after current broken sysfixtime:

$ /etc/init.d/sysfixtime stop

$ date
Fri Oct 21 10:15:25 CEST 2016

$ hwclock -r -f /dev/rtc0
Fri Oct 21 10:15:31 2016  0.000000 seconds

Now we've time in our battery backed RTC in CEST timezone instead of
UTC.  Then once again, but with this patch applied to sysfixtime, where
hwclock is using correctly the -u parameter:

$ /etc/init.d/sysfixtime stop

$ date
Fri Oct 21 10:15:53 CEST 2016

$ hwclock -r -f /dev/rtc0
Fri Oct 21 08:15:55 2016  0.000000 seconds

Signed-off-by: Petr Štetiar <ynezz@true.cz>
Acked-by: Jo-Philipp Wich <jo@mein.io>
8 years agokernel: deactivate CONFIG_QCOM_SPMI_TEMP_ALARM
Hauke Mehrtens [Mon, 31 Oct 2016 13:34:08 +0000 (14:34 +0100)]
kernel: deactivate CONFIG_QCOM_SPMI_TEMP_ALARM

This fixes the build of the ipq806x target.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
8 years agohostapd: properly package wpa-supplicant-mesh
Alexis Green [Fri, 7 Oct 2016 20:09:13 +0000 (13:09 -0700)]
hostapd: properly package wpa-supplicant-mesh

Ensure that selecting the wpa-supplicant-mesh package actually packages the
wpa_supplicant binary with SAE support and add missing dependency on OpenSSL.

Signed-off-by: Alexis Green <alexis@cessp.it>
[Jo-Philipp Wich: slightly reword commit message for clarity]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agohostapd support for VLANs through a file in addition to Radius.
Petr Konecny [Fri, 28 Oct 2016 16:29:15 +0000 (09:29 -0700)]
hostapd support for VLANs through a file in addition to Radius.

Signed-off-by: Petr Konecny <pekon@google.com>
8 years agouhttpd: Add Basic Auth config
Daniel Dickinson [Sat, 13 Aug 2016 23:24:59 +0000 (19:24 -0400)]
uhttpd: Add Basic Auth config

We add an 'httpauth' section type that contains the options:

prefix: What virtual or real URL is being protected
username: The username for the Basic Auth dialogue
password: Hashed (crypt()) or plaintext password for the Basic Auth dialogue

httpauth section names are given included as list
items to the instances to which they are to be applied.

Further any existing httpd.conf file (really whatever
is configured in the instance, but default of
/etc/httpd.conf) is appended to the per-instance httpd.conf

Signed-off-by: Daniel Dickinson <lede@cshore.thecshore.com>
8 years agomusl: fix parsing of quoted time zone names
Hannu Nyman [Thu, 27 Oct 2016 09:22:05 +0000 (12:22 +0300)]
musl: fix parsing of quoted time zone names

fix parsing of the < > quoted time zone names. Compare the correct
character instead of repeatedly comparing the first character.

Patch has been submitted to upstream as
http://www.openwall.com/lists/musl/2016/10/24/3

Longer explanation in
http://www.openwall.com/lists/musl/2016/10/19/1

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
[Jo-Philipp Wich: move references into commit message, shorten title prefix]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agoar71xx: Add net config for MR12 & MR16
Chris Blake [Sun, 30 Oct 2016 04:16:03 +0000 (23:16 -0500)]
ar71xx: Add net config for MR12 & MR16

Both the MR12 and MR16 are single gigabit ethernet devices, similar to the
MR18. This change gives them the correct network config on a fresh install.

Signed-off-by: Chris Blake <chrisrblake93@gmail.com>
[Jo-Philipp Wich: adjust for alphabetical ordering, line wrap commit msg]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agoar71xx: fix ethernet on wpj344 board
Christian Mehlis [Fri, 28 Oct 2016 12:56:13 +0000 (14:56 +0200)]
ar71xx: fix ethernet on wpj344 board

In 814d70b2 the member mac06_exchange_en of struct
ar8327_pad_cfg was changed to mac06_exchange_dis,
but wpj344 was not adopted to stay in sync.

Signed-off-by: Christian Mehlis <christian@m3hlis.de>
Reported-by: Nick Dennis <ndennis@rapiduswireless.com>
8 years agolldpd: freeze execution of lldpd during reload
Alexandru Ardelean [Tue, 5 Jan 2016 07:40:22 +0000 (09:40 +0200)]
lldpd: freeze execution of lldpd during reload

During reload, we could send invalid information to the other
side and confuse it.

That's why, during reload we'll pause execution, do the reconfig
and resume + update when reload is done.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
8 years agolldpd: fix reload function for when interfaces change
Alexandru Ardelean [Wed, 21 Oct 2015 13:11:09 +0000 (16:11 +0300)]
lldpd: fix reload function for when interfaces change

The problem is that interfaces are specified at start as
command line arguments, making them unchange-able via reload.

That means, we have to move (since lldpd allows this) the
interfaces-match-pattern option to be in a config file and reload
the configuration.
It's either that, or do a 'restart'.

Since we're generating the lldpd.conf file, we'll have to
move the 'sysconfdir' of lldpd to /tmp, where the files will
get written ; this will prevent any unncessary flash writes.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
8 years agoath10k-firmware: update qca9984 firmware
Pavel Kubelun [Thu, 13 Oct 2016 13:23:43 +0000 (16:23 +0300)]
ath10k-firmware: update qca9984 firmware

Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
[Jo-Philipp Wich: add mirror sha256 sum]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agofirmware-utils: fix compilation on MacOS X
Alexandru Ardelean [Fri, 28 Oct 2016 06:52:12 +0000 (09:52 +0300)]
firmware-utils: fix compilation on MacOS X

Looking into /usr/include/stdlib.h, there's a `devname()` function defined
under some #ifdef's which conflicts with the `static char *devname` definition
in `src/mkwrggimg.c`.

Defining `_ANSI_SOURCE` in the `src/mkwrggimg.c` file, omits that part of the
header.

Another more intrusive approach is to rename `devname` to something like
`g_devname` in `src/mkwrggimg.c`. But I think the `_ANSI_SOURCE` define should
be enough.

Compilation error is:

    src/mkwrggimg.c:64:14: error: redefinition of 'devname' as different kind of symbol
    static char *devname;
                 ^
    /usr/include/stdlib.h:286:7: note: previous definition is here
    char    *devname(dev_t, mode_t);
             ^
    src/mkwrggimg.c:147:12: error: non-object type 'char *(dev_t, mode_t)' (aka 'char *(int, unsigned short)') is not assignable
                            devname = optarg;
                            ~~~~~~~ ^
    src/mkwrggimg.c:192:6: warning: comparison of function 'devname' equal to a null pointer is always false [-Wtautological-pointer-compare]
            if (devname == NULL) {
                ^~~~~~~    ~~~~
    src/mkwrggimg.c:192:6: note: prefix with the address-of operator to silence this warning
            if (devname == NULL) {
                ^
                &
    src/mkwrggimg.c:251:27: warning: incompatible pointer types passing 'char *(dev_t, mode_t)' (aka 'char *(int, unsigned short)') to parameter of type 'const char *' [-Wincompatible-pointer-types]
            strncpy(header->devname, devname, sizeof(header->devname));
                                     ^~~~~~~
    /usr/include/secure/_string.h:119:34: note: expanded from macro 'strncpy'
      __builtin___strncpy_chk (dest, src, len, __darwin_obsz (dest))

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
[Jo-Philipp Wich: slightly reformat commit message]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agobrcm47xx: image: use append-rootfs step for per-device rootfs support
Rafał Miłecki [Fri, 28 Oct 2016 15:03:55 +0000 (17:03 +0200)]
brcm47xx: image: use append-rootfs step for per-device rootfs support

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
8 years agobrcm47xx: image: make TRX steps work with rootfs passed as $@
Rafał Miłecki [Fri, 28 Oct 2016 14:43:19 +0000 (16:43 +0200)]
brcm47xx: image: make TRX steps work with rootfs passed as $@

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
8 years agobrcm47xx: image: make linksys-pattern-partition leave specific file
Rafał Miłecki [Fri, 28 Oct 2016 14:39:08 +0000 (16:39 +0200)]
brcm47xx: image: make linksys-pattern-partition leave specific file

Thanks to leaving .pattern file we can easily insert extra step between
linksys-pattern-partition and trx-v2-with-loader, e.g. rootfs one.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
8 years agoapm821xx: fix USB LED trigger for WNDR4700
Rafał Miłecki [Fri, 28 Oct 2016 10:40:01 +0000 (12:40 +0200)]
apm821xx: fix USB LED trigger for WNDR4700

The old usbdev trigger never supported assigning more than 1 USB port.
This code we got was never working as expected and it was missing 2 more
ports. Switch to usbport to have LED working with all ports.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Tested-by: Christian Lamparter <chunkeey@gmail.com>
8 years agoopenvpn: cacert does not exist
John Crispin [Thu, 27 Oct 2016 17:52:33 +0000 (19:52 +0200)]
openvpn: cacert does not exist

cacert is really called ca and already in the script

Signed-off-by: John Crispin <john@phrozen.org>
8 years agoconfig: ext4: increase x86 rootfs size to 2GB to support online resize2fs
Jo-Philipp Wich [Sat, 15 Oct 2016 23:59:44 +0000 (01:59 +0200)]
config: ext4: increase x86 rootfs size to 2GB to support online resize2fs

The current default rootfs size of 256MB in conjunction with 4K blocks
produces an ext4 filesystem which lacks the appropriate amount of backup GDT
entries to support online-resizing.

For x86 targets, increase the default rootfs size to 2048MB which allows
online resizing the filesystem to up to 2TB which is the current theoretical
maximum for LEDE, due to missing GPT support on the root block device.

Note that the filesystem artefact will not occupy 2GB on the build system as
the make_ext4fs utility uses sparse files to generate the filesystem images,
so the actual disk usage is much lower. Furthermore the filesystem images
are gzip compressed, shrinking them to only a few megabytes on the download
server.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Acked-by: Michael Heimpold <mhei@heimpold.de>
8 years agoconfig: ext4: drop option to set maximum number of inodes
Jo-Philipp Wich [Sat, 15 Oct 2016 23:59:43 +0000 (01:59 +0200)]
config: ext4: drop option to set maximum number of inodes

There is very little practical use to limit the number of available inodes on
an ext4 filesystem and the make_ext4fs utility is able to calculate useful
defaults by itself.

Drop the option to make resulting ext4 filesystems more flexible by default.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Acked-by: Michael Heimpold <mhei@heimpold.de>
8 years agoinclude: image.mk: make ext4 reserved blocks percentage optional
Jo-Philipp Wich [Sat, 15 Oct 2016 23:59:42 +0000 (01:59 +0200)]
include: image.mk: make ext4 reserved blocks percentage optional

Allow CONFIG_TARGET_EXT4_RESERVED_PCT to be empty as make_ext4fs is usually
able to figure out a suitable default.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Reviewed-by: Michael Heimpold <mhei@heimpold.de>
8 years agolinux/modules: drop ledtrig-netfilter
John Crispin [Thu, 27 Oct 2016 13:29:36 +0000 (15:29 +0200)]
linux/modules: drop ledtrig-netfilter

this is a duplicate of kmod-ipt-led

Signed-off-by: John Crispin <john@phrozen.org>
8 years agoopenvpn: add handling for capath and cafile
John Crispin [Thu, 27 Oct 2016 13:19:59 +0000 (15:19 +0200)]
openvpn: add handling for capath and cafile

Signed-off-by: John Crispin <john@phrozen.org>
8 years agobrcm47xx: add support for per-device rootfs
Rafał Miłecki [Mon, 24 Oct 2016 19:33:21 +0000 (21:33 +0200)]
brcm47xx: add support for per-device rootfs

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
8 years agopackage/network/utils/ipset: Update to 6.30
Daniel Engberg [Mon, 24 Oct 2016 21:16:59 +0000 (23:16 +0200)]
package/network/utils/ipset: Update to 6.30

Updates to 6.30

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
8 years agoutil-linux: disc -> Disc and moved some packages
Alberto Bursi [Thu, 27 Oct 2016 06:32:50 +0000 (08:32 +0200)]
util-linux: disc -> Disc and moved some packages

Capitalized "disc" submenu name as all submenu names are capitalized (apart from "database", but I'll fix that
later).

moved "swap-utils" to Filesystem submenu as it is "formatting" a partition as swap so it looks out of place in Disc.

Signed-off-by: Alberto Bursi <alberto.bursi@outlook.it>
8 years agoath10k-ct: Add QCA9888/9886 support, fix compat issue.
Ben Greear [Tue, 25 Oct 2016 22:47:37 +0000 (15:47 -0700)]
ath10k-ct: Add QCA9888/9886 support, fix compat issue.

This should fix problems with latest backports, and also adds
driver support for QCA9888 chipset.

Signed-off-by: Ben Greear <greearb@candelatech.com>
8 years agobase-files: Ensure reset only works if an overlay exists
Chris Blake [Mon, 24 Oct 2016 18:13:15 +0000 (13:13 -0500)]
base-files: Ensure reset only works if an overlay exists

Currently the reset script will try to run jffs2reset on boards that are
running a rw rootfs, such as ext4. This will cause jffs2reset to fail
and the board to never reboot while the LED blinks until a manual
reboot.

This commit does two different things:
1. Disables reset on boards that do not have an overlay mount
2. Disables the Blinking LED after 5 seconds if the board does not
support reset

Signed-off-by: Chris Blake <chrisrblake93@gmail.com>
8 years agonetifd: update to latest git HEAD
John Crispin [Thu, 27 Oct 2016 10:02:21 +0000 (12:02 +0200)]
netifd: update to latest git HEAD

Signed-off-by: John Crispin <john@phrozen.org>
8 years agouboot-kirkwood: fix default bootcmd for Seagate Dockstar
Paul Wassi [Tue, 25 Oct 2016 07:57:25 +0000 (09:57 +0200)]
uboot-kirkwood: fix default bootcmd for Seagate Dockstar

Fix the default value for the 'bootcmd' environment variable.
Therefore make the default bootcmd work for buildbot's images.

Signed-off-by: Paul Wassi <p.wassi@gmx.at>
8 years agouboot-kirkwood: bump to upstream 2016.09.01
Paul Wassi [Wed, 26 Oct 2016 09:14:47 +0000 (11:14 +0200)]
uboot-kirkwood: bump to upstream 2016.09.01

Bump U-Boot for Kirkwood to upstream 2016.09.01. Local patches
cleaned up and reworked.

Signed-off-by: Paul Wassi <p.wassi@gmx.at>
8 years agoimx6: Add ds1672 RTC to kernel for working hctosys (Gateworks)
Koen Vandeputte [Wed, 26 Oct 2016 14:10:03 +0000 (16:10 +0200)]
imx6: Add ds1672 RTC to kernel for working hctosys (Gateworks)

Fixes the same hctosys init issue as described in commit
5481ce9a1157a43d8b2c963e03fb243e70974361

The Gateworks Ventana family uses an emulated Dallas 1672
RTC device.

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
8 years agoar71xx: add support for D-Link DAP-2695 rev. A1
Stijn Tintel [Mon, 18 Jul 2016 17:39:57 +0000 (19:39 +0200)]
ar71xx: add support for D-Link DAP-2695 rev. A1

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Acked-by: John Crispin <john@phrozen.org>
8 years agoar71xx: build relocate stub for generic and legacy images
Stijn Tintel [Fri, 21 Oct 2016 14:50:39 +0000 (17:50 +0300)]
ar71xx: build relocate stub for generic and legacy images

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Acked-by: John Crispin <john@phrozen.org>
8 years agoar71xx/base-files: rename 09_fix-trx-header 09_fix-checksum
Stijn Tintel [Sun, 7 Aug 2016 17:01:20 +0000 (19:01 +0200)]
ar71xx/base-files: rename 09_fix-trx-header 09_fix-checksum

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Acked-by: John Crispin <john@phrozen.org>
8 years agomtd: add fixwrgg command
Stijn Tintel [Sun, 7 Aug 2016 16:51:12 +0000 (18:51 +0200)]
mtd: add fixwrgg command

Based on fixseama.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Acked-by: John Crispin <john@phrozen.org>
8 years agomtd: fix endianness detection on musl
Stijn Tintel [Fri, 21 Oct 2016 14:32:03 +0000 (17:32 +0300)]
mtd: fix endianness detection on musl

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Acked-by: John Crispin <john@phrozen.org>
8 years agokernel: mtdsplit: add support for WRGG images
Stijn Tintel [Sun, 7 Aug 2016 11:39:00 +0000 (13:39 +0200)]
kernel: mtdsplit: add support for WRGG images

Support splitting WRGG images, found in some D-Link devices (e.g.
DAP-2695).

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Acked-by: John Crispin <john@phrozen.org>
8 years agofirmware-utils: mkwrggimg: new tool for D-Link DAP-2695
Stijn Tintel [Sat, 6 Aug 2016 17:36:24 +0000 (19:36 +0200)]
firmware-utils: mkwrggimg: new tool for D-Link DAP-2695

Based on mkwrgimg.c.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Acked-by: John Crispin <john@phrozen.org>
8 years agodnsmasq: Multiple dnsmasq instances support
Hans Dedecker [Wed, 12 Oct 2016 08:33:16 +0000 (10:33 +0200)]
dnsmasq: Multiple dnsmasq instances support

Adds support in uci for configuring multiple dnsmasq instances via
multiple dnsmasq sections.
The uci sections host, boot, mac, tag, vendorclass, userclass,
circuitid, ... will refer to a dnsmasq instance via the instance
parameter defined in the section; if the instance parameter is
not specified backwards compatibility is preserved.

Start/Stopping a dnsmasq instance can be achieved by passing the
dnsmasq instance name as argument to start/stop via the init script.

Multiple dnsmasq instances is usefull in scenarios where you want to
bind a dnsmasq instance to an interface in order to isolate networks.

This patch is a rework of a multiple dnsmasq instance patch by Daniel Dickinson

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
8 years agogrub2: add missing SECTION variable and remove non breaking space
Jo-Philipp Wich [Wed, 26 Oct 2016 15:51:44 +0000 (17:51 +0200)]
grub2: add missing SECTION variable and remove non breaking space

Fix metadata scan failure in the grub2 package by removing an unexpected
invisible space character and by adding back the missing SECTION variable
which was removed with d140648.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agoipip: Support fqdn as remote tunnel endpoint
Hans Dedecker [Tue, 25 Oct 2016 20:50:04 +0000 (22:50 +0200)]
ipip: Support fqdn as remote tunnel endpoint

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
8 years agouhttpd: create self-signed certificates with unique subjects
Hannu Nyman [Thu, 6 Oct 2016 17:37:59 +0000 (20:37 +0300)]
uhttpd: create self-signed certificates with unique subjects

Add a partially random O= item to the certificate subject in order
to make the automatically generated certificates' subjects unique.

Firefox has problems when several self-signed certificates
with CA:true attribute and identical subjects have been
seen (and stored) by the browser. Reference to upstream bugs:
https://bugzilla.mozilla.org/show_bug.cgi?id=1147544
https://bugzilla.mozilla.org/show_bug.cgi?id=1056341
https://bugzilla.redhat.com/show_bug.cgi?id=1204670#c34

Certificates created by the OpenSSL one-liner fall into that category.

Avoid identical certificate subjects by including a new 'O=' item
with CommonName + a random part (8 chars). Example:
/CN=LEDE/O=LEDEb986be0b/L=Unknown/ST=Somewhere/C=ZZ

That ensures that the browser properly sees the accumulating
certificates as separate items and does not spend time
trying to form a trust chain from them.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
8 years agouhttpd: prefer px5g for certificate creation
Hannu Nyman [Wed, 5 Oct 2016 08:11:15 +0000 (11:11 +0300)]
uhttpd: prefer px5g for certificate creation

Prefer the old default 'px5g' for certificate creation
as Firefox seems to dislike OpenSSL-created certs.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
8 years agonetifd: Request DHCP option 121 (classless route) by default
Baptiste Jonglez [Sun, 9 Oct 2016 09:23:27 +0000 (11:23 +0200)]
netifd: Request DHCP option 121 (classless route) by default

This option, defined by RFC3442, allows a DHCP server to send static
routes to a client.  But the client has to request this option
explicitely.

Static routes are useful when the gateway configured by DHCP cannot be
in the same subnet as the client.  This happens, for instance, when
using DHCP to hand out addresses in /32 subnets.

A new configuration option "classlessroute" is available, allowing
users to disable this feature (the option defaults to true).

Other DHCP clients already request this option by default (dhcpcd, for
instance, and possibly Windows).  If a DHCP server does not support
this option, it will simply ignore it.

Signed-off-by: Baptiste Jonglez <git@bitsofnetworks.org>
8 years agowwan: rename data files
Simon Hailes [Tue, 11 Oct 2016 19:30:15 +0000 (20:30 +0100)]
wwan: rename data files

This is to ensure that git can be cloned onto a windows drive without failing.

Signed-off-by: Simon Hailes <btsimonh@googlemail.com>
8 years agousbmode: rename data files
Simon Hailes [Tue, 11 Oct 2016 18:01:21 +0000 (19:01 +0100)]
usbmode: rename data files

This is to ensure that git can be cloned onto a windows drive without failing.

Signed-off-by: Simon Hailes <btsimonh@googlemail.com>
8 years agoar71xx: Ignore firmware building errors of UBNT and CyberTAN devices
Chuanhong Guo [Thu, 6 Oct 2016 06:27:49 +0000 (14:27 +0800)]
ar71xx: Ignore firmware building errors of UBNT and CyberTAN devices

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
8 years agopx5g-standalone: move to Encryption submenu and fix Title
Alberto Bursi [Mon, 24 Oct 2016 08:35:24 +0000 (10:35 +0200)]
px5g-standalone: move to Encryption submenu and fix Title

moved px5g-standalone to Encryption submenu of Utilities.
Fixed title by removing the first "standalone" word from title.
The name is now consistent with other px5g packages, it is also shorter and will be shown in make menuconfig.

Signed-off-by: Alberto Bursi <alberto.bursi@outlook.it>
8 years agopx5g: move to Encryption submenu
Alberto Bursi [Mon, 24 Oct 2016 08:39:09 +0000 (10:39 +0200)]
px5g: move to Encryption submenu

moved px5g to Encryption submenu of Utilities, in an effort to tidy up a bit the Utilities section of make menuconfig.

Signed-off-by: Alberto Bursi <alberto.bursi@outlook.it>
8 years agopackage/uboot-envtools: Add support for ZyXEL NBG6817
André Valentin [Tue, 25 Oct 2016 06:40:38 +0000 (08:40 +0200)]
package/uboot-envtools: Add support for ZyXEL NBG6817

Signed-off-by: André Valentin <avalentin@marcant.net>
8 years agopackage/basefiles: add mkfs.ext4 and losetup binaries to ramfs list
André Valentin [Tue, 25 Oct 2016 06:40:37 +0000 (08:40 +0200)]
package/basefiles: add mkfs.ext4 and losetup binaries to ramfs list

mkfs.ext4 und losetup are needed for sysupgrade support on mmc devices
with automatic rootfs split (loopback device usage).

Signed-off-by: André Valentin <avalentin@marcant.net>
8 years agoipq806x/nbg6817: add sysupgrade support
André Valentin [Tue, 25 Oct 2016 06:40:36 +0000 (08:40 +0200)]
ipq806x/nbg6817: add sysupgrade support

Add new way of flashing to mmc devices based on rootfs split with loop devices.

Signed-off-by: André Valentin <avalentin@marcant.net>
8 years agolinux/mtd: add id for mx25u3235f needed by ZyXEL NBG6817
André Valentin [Tue, 25 Oct 2016 06:40:35 +0000 (08:40 +0200)]
linux/mtd: add id for mx25u3235f needed by ZyXEL NBG6817

Signed-off-by: André Valentin <avalentin@marcant.net>
8 years agoipq806x/nbg6817: add support for ZyXEL NBG6817
André Valentin [Tue, 25 Oct 2016 06:40:34 +0000 (08:40 +0200)]
ipq806x/nbg6817: add support for ZyXEL NBG6817

CPU: 2x1.8GHz ARM, RAM: 512MiB
Storage: 4MiB serial Flash, 3.9GiB MMC
NIC: 2x1GBit/s, Switch with 5 external and 2 internal ports
WiFi: Dualband, ath10k 2.4GHz, 5GHz MU-MIMO

For installation copy xx-mmcblk0p4-kernel.bin and xx-mmcblk0p5-rootfs-full.bin
to device. Then run:
cat xx-mmcblk0p4-kernel.bin > /dev/mmc0blk0p4
cat xx-mmcblk0p5-rootfs-full.bin > /dev/mmc0blk0p5
reboot -f

For debugging serial console is easily visible on board, no soldering needed.

Signed-off-by: André Valentin <avalentin@marcant.net>
8 years agostrace: Update to 4.14
Daniel Engberg [Mon, 24 Oct 2016 20:59:35 +0000 (22:59 +0200)]
strace: Update to 4.14

Update to version 4.14

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
8 years agolantiq: danube fxs bugfix: changed compatible attribute of vmmc
Stefan Koch [Sat, 22 Oct 2016 10:09:45 +0000 (12:09 +0200)]
lantiq: danube fxs bugfix: changed compatible attribute of vmmc

This bugfix enables FXS support on dabube based devices.
Changed "compatible" attribute from "vmmc" to "vmmc-xway".
The vmmc driver uses "vmmc-xway".

Signed-off-by: Stefan Koch <stefan.koch10@gmail.com>
8 years agoqmi: add metric, defaultroute and peerdns options for qmi protocol
Marcin Jurkowski [Mon, 17 Oct 2016 00:42:47 +0000 (02:42 +0200)]
qmi: add metric, defaultroute and peerdns options for qmi protocol

Adds generic network options for qmi protocol dynamic interfaces
as suggested by Felix in
https://lists.openwrt.org/pipermail/openwrt-devel/2016-February/039794.html.

IPv6-related code taken from Bruno's patch https://patchwork.ozlabs.org/patch/584816.

This depends on netifd patch https://patchwork.ozlabs.org/patch/686820/.

Signed-off-by: Marcin Jurkowski <marcin1j@gmail.com>
Signed-off-by: Bruno Randolf <br1@einfach.org>
8 years agombim: add metric, defaultroute and peerdns options for mbim protocol
Marcin Jurkowski [Mon, 17 Oct 2016 00:46:29 +0000 (02:46 +0200)]
mbim: add metric, defaultroute and peerdns options for mbim protocol

Adds generic network options for mbim protocol dynamic interfaces
as suggested by Felix in
https://lists.openwrt.org/pipermail/openwrt-devel/2016-February/039794.html.

This depends on netifd patch https://patchwork.ozlabs.org/patch/686820/.

Signed-off-by: Marcin Jurkowski <marcin1j@gmail.com>
8 years agocomgt: add metric, defaultroute and peerdns options for directip protocol
Marcin Jurkowski [Mon, 17 Oct 2016 00:39:08 +0000 (02:39 +0200)]
comgt: add metric, defaultroute and peerdns options for directip protocol

Adds generic network options for directip protocol dynamic interfaces
as suggested by Felix in
https://lists.openwrt.org/pipermail/openwrt-devel/2016-February/039794.html.

This depends on netifd patch https://patchwork.ozlabs.org/patch/686820/.

Signed-off-by: Marcin Jurkowski <marcin1j@gmail.com>
8 years agocomgt: add metric, defaultroute and peerdns options for ncm protocol
Marcin Jurkowski [Mon, 17 Oct 2016 00:38:42 +0000 (02:38 +0200)]
comgt: add metric, defaultroute and peerdns options for ncm protocol

Adds generic network options for ncm protocol dynamic interfaces
as suggested by Felix in
http://lists.openwrt.org/pipermail/openwrt-devel/2016-February/039794.html.

This depends on netifd patch https://patchwork.ozlabs.org/patch/686820/.

Signed-off-by: Marcin Jurkowski <marcin1j@gmail.com>
8 years agokirkwood: fix pogo_e02 LED name
Paul Wassi [Tue, 25 Oct 2016 14:06:18 +0000 (16:06 +0200)]
kirkwood: fix pogo_e02 LED name

The pogo_e02's dts file has its LEDs named "pogo_e02:(...)"
Fix the status-LED's name for this device.

Signed-off-by: Paul Wassi <p.wassi@gmx.at>
8 years agouboot-zynq: fix compile error for be short of dtc
Yutang Jiang [Wed, 19 Oct 2016 11:20:21 +0000 (19:20 +0800)]
uboot-zynq: fix compile error for be short of dtc

While enable zynq uboot:
CONFIG_PACKAGE_uboot-zynq-zc702
CONFIG_PACKAGE_uboot-zynq-zed
CONFIG_PACKAGE_uboot-zynq-zybo

make will arise dtc error:
./scripts/dtc-version.sh: line 17: dtc: command not found
./scripts/dtc-version.sh: line 18: dtc: command not found
*** Your dtc is too old, please upgrade to dtc 1.4 or newer
make[4]: *** [checkdtc] Error 1

Pass the kernel dtc to uboot for compile.

Signed-off-by: Yutang Jiang <yutang.jiang@nxp.com>
8 years agogrub2: move to Boot Loaders category
Alberto Bursi [Sun, 23 Oct 2016 19:04:49 +0000 (21:04 +0200)]
grub2: move to Boot Loaders category

because boot loaders are in Boot Loaders, not in Utilities -> Boot Loaders

Also moved brub2-editenv in Utilities -> Boot Loaders

Part of a wider housekeeping effort on the packages repository.

Signed-off-by: Alberto Bursi <alberto.bursi@outlook.it>
8 years agofconfig: move to Boot Loaders submenu of Utilities
Alberto Bursi [Mon, 24 Oct 2016 08:19:42 +0000 (10:19 +0200)]
fconfig: move to Boot Loaders submenu of Utilities

Boot Loaders submenu of Utilities is the most logical place to find fconfig and other bootloader tools.

Signed-off-by: Alberto Bursi <alberto.bursi@outlook.it>
8 years agorbcfg: move to Boot Loaders submenu of Utilities
Alberto Bursi [Mon, 24 Oct 2016 08:26:22 +0000 (10:26 +0200)]
rbcfg: move to Boot Loaders submenu of Utilities

Boot Loaders submenu of Utilities is the most logical place to find rbcfg and other bootloader tools.

Signed-off-by: Alberto Bursi <alberto.bursi@outlook.it>
8 years agoramips: fix PSG1218 LEDs
Xuefu Lin [Fri, 21 Oct 2016 09:06:39 +0000 (17:06 +0800)]
ramips: fix PSG1218 LEDs

Signed-off-by: Xuefu Lin <xuefulin@gmail.com>
8 years agoar71xx: add support for TP-Link WR802N v1
Julius Schulz-Zander [Fri, 21 Oct 2016 09:47:15 +0000 (11:47 +0200)]
ar71xx: add support for TP-Link WR802N v1

This patch adds support solely for version 1 of the TP-Link WR802N.
It is based on Rick Pannen's patch posted on the OpenWrt devel list.

Signed-off-by: Julius Schulz-Zander <julius@inet.tu-berlin.de>
8 years agopackage/system/mtd: fix usage message
Paul Wassi [Mon, 24 Oct 2016 13:29:04 +0000 (15:29 +0200)]
package/system/mtd: fix usage message

Minor fix in the usage message on the explanation of the -p option.

Signed-off-by: Paul Wassi <p.wassi@gmx.at>
8 years agokirkwood: remove redundant code in etc/board.d/02_network
Paul Wassi [Mon, 24 Oct 2016 13:19:52 +0000 (15:19 +0200)]
kirkwood: remove redundant code in etc/board.d/02_network

Remove redundant code: merge boards/cases that share
the same network configuration.
Also fix the alphabetical ordering of the cases.

Signed-off-by: Paul Wassi <p.wassi@gmx.at>
8 years agoar71xx: Remove switch config for the MR12/MR16
Chris Blake [Mon, 24 Oct 2016 19:05:55 +0000 (14:05 -0500)]
ar71xx: Remove switch config for the MR12/MR16

These boards do not have a switch, so they should have never been added
to this file in the first place.

Signed-off-by: Chris Blake <chrisrblake93@gmail.com>
8 years agoar71xx: add mac partition to the MR12/MR16
Chris Blake [Mon, 24 Oct 2016 19:05:54 +0000 (14:05 -0500)]
ar71xx: add mac partition to the MR12/MR16

On the stock Meraki Firmare for the MR12/MR16, a chunk of SPI space
after u-boot-env is used to store the boards Mac address. Sadly as this
was removed on any device already on OpenWRT/LEDE, moving forward a new,
64k partition named "mac" will be used to store the mac address for the
device (which is the minimum size). This allows users to properly set
the correct MAC, without editing the ART partition (which holds the same
MAC for all devices).

The reason the space is taken from kernel instead of rootfs is currently
kernels are only 1.3MB, so that way we can leave the current rootfs
space alone for users who fully utilize the available storage space.

Once this partition is added to a device, you can set your MAC doing the
following:

mtd erase mac
echo -n -e '\x00\x18\x0a\x33\x44\x55' > /dev/mtd5
sync && reboot

Where 00:18:0a:33:44:55 is your MAC address.

This was tested, and confirmed working on both the MR12 and MR16.

Signed-off-by: Chris Blake <chrisrblake93@gmail.com>
8 years agoar71xx: Move MR12 & MR16 from legacy to generic
Chris Blake [Mon, 24 Oct 2016 19:05:53 +0000 (14:05 -0500)]
ar71xx: Move MR12 & MR16 from legacy to generic

This moves the Meraki MR12 and Meraki MR16 to the new generic target.
Tested and verified working on both devices.

Note that kernel/rootfs images are still generated. This is because they
are used for the inital flashing process due to the fun pace at which
UBoot erases/writes to SPI.

Signed-off-by: Chris Blake <chrisrblake93@gmail.com>
8 years agougps: update to latest git HEAD
John Crispin [Sat, 22 Oct 2016 20:13:06 +0000 (22:13 +0200)]
ugps: update to latest git HEAD

* fixes a few error that uClibc users were seeing
* add switch to disable time adjustment

Signed-off-by: John Crispin <john@phrozen.org>
8 years agoimx6: Add ds1307 RTC to kernel for working hctosys
Petr Štetiar [Tue, 18 Oct 2016 21:26:59 +0000 (23:26 +0200)]
imx6: Add ds1307 RTC to kernel for working hctosys

Otherwise if we use ds1307 as kernel module, hctosys fails as ds1307 is
being initialized later then hctosys:

 [    2.427349] hctosys: unable to open rtc device (rtc0)
 [    3.714263] snvs_rtc 20cc000.snvs:snvs-rtc-lp: rtc core: registered 20cc000.snvs:snvs-r as rtc1
 [    8.990061] rtc-ds1307 3-006f: rtc core: registered mcp7941x as rtc0

Signed-off-by: Petr Štetiar <ynezz@true.cz>