openwrt/staging/jogo.git
6 years agohostapd: add channel utilization as config option
Nick Hainke [Wed, 25 Apr 2018 21:27:00 +0000 (23:27 +0200)]
hostapd: add channel utilization as config option

Add the channel utilization as hostapd configuration option.

Signed-off-by: Nick Hainke <vincent@systemli.org>
6 years agoar71xx: add support for Fritz!Box 4020
David Bauer [Tue, 24 Apr 2018 17:52:13 +0000 (19:52 +0200)]
ar71xx: add support for Fritz!Box 4020

This commit adds support for the AVM Fritz!Box 4020 WiFi-router.

SoC:   Qualcomm Atheros QCA9561 (Dragonfly) 750MHz
RAM:   Winbond W971GG6KB-25
FLASH: Macronix MX25L12835F
WiFi:  QCA9561 b/g/n 3x3 450Mbit/s
USB:   1x USB 2.0
IN:    WPS button, WiFi button
OUT:   Power LED green, Internet LED green, WLAN LED green,
       LAN LED green, INFO LED green, INFO LED red
UART:  Header Next to Black metal shield
       Pinout is 3.3V - RX - TX - GND (Square Pad is 3.3V)
       The Serial setting is 115200-8-N-1.

Tested and working:
 - Ethernet (LAN + WAN)
 - WiFi (correct MAC)
 - Installation via EVA bootloader
 - OpenWRT sysupgrade
 - Buttons
 - LEDs

Not working:
 - USB port

Installation via EVA:
In the first seconds after Power is connected, the bootloader will
listen for FTP connections on 169.254.157.1 (Might also be 192.168.178.1). Firmware can be uploaded
like following:

  ftp> quote USER adam2
  ftp> quote PASS adam2
  ftp> binary
  ftp> debug
  ftp> passive
  ftp> quote MEDIA FLSH
  ftp> put openwrt-sysupgrade.bin mtd1

Note that this procedure might take up to two minutes. After transfer is
complete you need to powercycle the device to boot OpenWRT.

Signed-off-by: David Bauer <mail@david-bauer.net>
6 years agoath79: relicense DTS files to the GPL 2.0+ / MIT
Rafał Miłecki [Mon, 7 May 2018 08:10:49 +0000 (10:10 +0200)]
ath79: relicense DTS files to the GPL 2.0+ / MIT

Some maintainers prefer DTS files licensed under permissive license like
MIT / BSD. As all DT bindings should be OS independent and DTS files are
pretty separated from Linux code it probably makes sense to share them
across projects.

The safest solution is to use dual licensing: that way it stays clear
these files can be used in GPL projects without depending on current
belief of licenses compatibility.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Acked-by: John Crispin <john@phrozen.org>
6 years agokernel: fix build error for external kernel.
Sandeep Sheriker Mallikarjun [Fri, 4 May 2018 17:27:46 +0000 (10:27 -0700)]
kernel: fix build error for external kernel.

fixed build error when external kernel is selected from menuconfig.
The patches present in target/linux/generic does not gets applied
to external kernel and build fails while compiling mac82011 &
regmap-core kernel modules. as a fix added check in Makefile for
CONFIG_EXTERNAL_KERNEL_TREE present or not.

Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikarjun@microchip.com>
6 years agobuild: log time taken by each packages/steps
Etienne Champetier [Mon, 30 Apr 2018 19:55:12 +0000 (12:55 -0700)]
build: log time taken by each packages/steps

The idea is to easily get the list of packages taking the most time to build,
and see if we can improve them

v1: Use SetupHostCommand as recommended by John
v2: add space after 'time:', remove useless /usr/bin/time from SetupHostCommand

Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
6 years agoflock: enable alternatives support
Yousong Zhou [Fri, 4 May 2018 08:47:28 +0000 (16:47 +0800)]
flock: enable alternatives support

Fixes FS#1510

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
6 years agobusybox: order alternatives in alphabetical order
Yousong Zhou [Fri, 4 May 2018 08:43:12 +0000 (16:43 +0800)]
busybox: order alternatives in alphabetical order

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
6 years agocake: bump to 20180504 bake
Kevin Darbyshire-Bryant [Sun, 6 May 2018 18:13:24 +0000 (18:13 +0000)]
cake: bump to 20180504 bake

The sender domain has a DMARC Reject/Quarantine policy which disallows
sending mailing list messages using the original "From" header.

To mitigate this problem, the original message has been wrapped
automatically by the mailing list software.
Cake is bearing fruits of kernel upstreaming efforts.

diffserv-llt dropped. DSCP mapping paper died and no one using it.

ack-filter re-written & simplified

tc userspace & cake kmod netlink interface usage changed in non
backwards compatible way, thus this once requires tc & cake to be
in-step.  Change due to upstream requirements.

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
6 years agoiproute2: import latest cake
Kevin Darbyshire-Bryant [Sun, 6 May 2018 18:12:48 +0000 (18:12 +0000)]
iproute2: import latest cake

The sender domain has a DMARC Reject/Quarantine policy which disallows
sending mailing list messages using the original "From" header.

To mitigate this problem, the original message has been wrapped
automatically by the mailing list software.
Bearing fruits of the latest upstreaming efforts on cake.

Changes: diffserv-llt dropped.  The paper describing this DSCP
allocation has gone stale and doesn't appear used.

The userspace to kernel netlink messages for cake have been reworked in
a backwards incompatible way, so tc & cake must be bumped together this
once.

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
6 years agoiproute2: backport json_print-fix-hidden-64-bit-type-promotion
Kevin Darbyshire-Bryant [Sun, 6 May 2018 14:20:01 +0000 (14:20 +0000)]
iproute2: backport json_print-fix-hidden-64-bit-type-promotion

The sender domain has a DMARC Reject/Quarantine policy which disallows
sending mailing list messages using the original "From" header.

To mitigate this problem, the original message has been wrapped
automatically by the mailing list software.
print_uint() will silently promote its variable type to uint64_t, but there
is nothing that ensures that the format string specifier passed along with
it fits (and the function name suggest to pass "%u").

Fix this by changing print_uint() to use a native 'unsigned int' type, and
introduce a separate print_u64() function for printing 64-bit values. All
call sites that were actually printing 64-bit values using print_uint() are
converted to use print_u64() instead.

Since print_int() was already using native int types, just add a
print_s64() to match, but don't convert any call sites.

Fixes wonkyness in some stats from some qdiscs under tc

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
6 years agoath79: add new OF only target for QCA MIPS silicon
John Crispin [Sun, 6 May 2018 08:20:11 +0000 (10:20 +0200)]
ath79: add new OF only target for QCA MIPS silicon

This target aims to replace ar71xx mid-term. The big part that is still
missing is making the MMIO/AHB wifi work using OF. NAND and mikrotik
subtargets will follow.

Signed-off-by: John Crispin <john@phrozen.org>
6 years agokernel: add OF support to rtl8355 driver
John Crispin [Sun, 6 May 2018 08:15:48 +0000 (10:15 +0200)]
kernel: add OF support to rtl8355 driver

Signed-off-by: John Crispin <john@phrozen.org>
6 years agobcm53xx: switch to the new/alternative SPI controller driver
Rafał Miłecki [Mon, 7 May 2018 05:48:39 +0000 (07:48 +0200)]
bcm53xx: switch to the new/alternative SPI controller driver

This switches bcm53xx from spi-bcm53xx to the spi-bcm-qspi driver. The
later one was developed by Broadcom and is more advanced one. It
supports more modes, setting a speed, setting bits per word and uses
IRQs instead of polling.

This increases kernel size from 1808120 B to the 1811160 B (by 3040 B).

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
6 years agotoolchain: gccgo: fix building gccgo compiler
Yousong Zhou [Mon, 7 May 2018 03:50:45 +0000 (11:50 +0800)]
toolchain: gccgo: fix building gccgo compiler

Fixes FS#1498.  "gccgo -static" can fail for missing linker flag
-lgcc_eh caused by patch 850-use_shared_libgcc.patch

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
6 years agoenv: only use color diffs on terminals
Philip Prindeville [Tue, 10 Apr 2018 22:57:06 +0000 (16:57 -0600)]
env: only use color diffs on terminals

When sending script/env diff's output to a file or pipeline, you
don't want escape characters for ANSI color sequences fouling the
byte stream.

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
6 years agokrnel: The dm9000 module does not need to depend on pci
Jianhui Zhao [Mon, 16 Apr 2018 14:32:50 +0000 (22:32 +0800)]
krnel: The dm9000 module does not need to depend on pci

Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
6 years agoca-certificates: Update to Version 20180409
Christian Schoenebeck [Fri, 20 Apr 2018 17:53:09 +0000 (19:53 +0200)]
ca-certificates: Update to Version 20180409

ca-certificates: Update to Version 20180409

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
6 years agokernel: Remove AutoLoad for legacy usb gadget modules
Chuanhong Guo [Fri, 20 Apr 2018 16:24:04 +0000 (00:24 +0800)]
kernel: Remove AutoLoad for legacy usb gadget modules

These modules usually require some special arguments to customize the
emulated device and they should be loaded manually by users.

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
6 years agoramips: disable spi full duplex on mt7621
John Crispin [Sat, 5 May 2018 06:25:18 +0000 (08:25 +0200)]
ramips: disable spi full duplex on mt7621

Signed-off-by: John Crispin <john@phrozen.org>
6 years agotools/cmake: Update to 3.11.1
Daniel Engberg [Tue, 1 May 2018 19:52:48 +0000 (21:52 +0200)]
tools/cmake: Update to 3.11.1

Update cmake to 3.11.1

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
6 years agotools/xz: Update to 5.2.4
Daniel Engberg [Tue, 1 May 2018 10:45:54 +0000 (12:45 +0200)]
tools/xz: Update to 5.2.4

Update to 5.2.4
Remove FreeBSD fix as it's not needed
Disable docs

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
6 years agotools/mm-macros: Update to 0.9.12
Daniel Engberg [Tue, 1 May 2018 10:54:28 +0000 (12:54 +0200)]
tools/mm-macros: Update to 0.9.12

Update mm-macros to 0.9.12

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
6 years agotools/sed: Update to 4.5
Daniel Engberg [Tue, 1 May 2018 11:00:13 +0000 (13:00 +0200)]
tools/sed: Update to 4.5

Update sed to 4.5

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
6 years agogemini: Add ethernet to DNS-313 and Wiliboard
Linus Walleij [Wed, 2 May 2018 16:39:35 +0000 (18:39 +0200)]
gemini: Add ethernet to DNS-313 and Wiliboard

This adds an interrim patch for v4.14 based on an
upstream commit to get ethernet working on D-Link DNS-313
(probably also on the Wiliboards)

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
6 years agogemini: fix hard disk boot on D-Link devices
Roman Yeryomin [Fri, 4 May 2018 15:18:51 +0000 (18:18 +0300)]
gemini: fix hard disk boot on D-Link devices

Since the D-Link devices boot from hard disk we need to
add the following changes to Gemini:

- Supply a bootarg in the device tree so we can boot from
  the right partition (/dev/sda4 on DNS-313)
- Disable forced command line in config so the kernel picks
  up the right bootargs from the device tree
- Enable EXT4 in the config as this is used for rootfs else
  we get nowhere, we cannot load this as a module because,
  well, it is supposed to be loaded from the root partition
  (chicken and egg problem).
- Enable jbd2 and mbcache (needed by ext4)

Also clean out the premature attempts to dynamically
modify the command line in the Image makefile: we should
pass this with the device tree bootargs instead, it works
much better.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Roman Yeryomin <roman@advem.lv>
6 years agogemini: add rtl8366rb to dir-685 board
Roman Yeryomin [Tue, 1 May 2018 18:33:17 +0000 (21:33 +0300)]
gemini: add rtl8366rb to dir-685 board

Signed-off-by: Roman Yeryomin <roman@advem.lv>
6 years agogemini: cleanup kernel config
Roman Yeryomin [Tue, 1 May 2018 18:23:56 +0000 (21:23 +0300)]
gemini: cleanup kernel config

Disable video and input drivers - they are needed only for one
board and can be enabled via modules if/when UI will be available.
Use LED drivers from packages.
Cleanup other things unnecessarily overriding defaults.

Signed-off-by: Roman Yeryomin <roman@advem.lv>
6 years agogemini: remove 4.4 support
Roman Yeryomin [Sun, 29 Apr 2018 16:13:31 +0000 (19:13 +0300)]
gemini: remove 4.4 support

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Roman Yeryomin <roman@advem.lv>
6 years agogemini: switch to 4.14
Roman Yeryomin [Sun, 29 Apr 2018 16:07:05 +0000 (19:07 +0300)]
gemini: switch to 4.14

This introduces Device/ infrastructure and images
for all boards available upstream.

Changes from Linus submitted version:
- fix Raidsonic image generation
- remove redundant (old) image generation
- remove redundant header tool for dns313 board

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Roman Yeryomin <roman@advem.lv>
6 years agofirmware-utils: add DNS-313 image header tool
Linus Walleij [Wed, 4 Apr 2018 20:15:29 +0000 (22:15 +0200)]
firmware-utils: add DNS-313 image header tool

This tool is used to create headers on images for the
D-Link DNS-313 in gemini target.
Will be used after switching gemini to 4.14 kernel.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
6 years agogemini: add 4.14 support
Roman Yeryomin [Sun, 29 Apr 2018 14:38:07 +0000 (17:38 +0300)]
gemini: add 4.14 support

This adds the patches to get fairly complete Gemini support
using kernel v4.14. It is mainly a backport of patches from
kernel v4.16 with omissions of things like graphics that require
substantial changes and will be better handled once we move
to the v4.16 kernel proper.
On top of this are some WIP patches for USB support.

Tested on Raidsonic NAS4220B and D-link DNS-313.

ChangeLog v4->v5:
- Fix ethernet single gmac usecase
- Fix USB reset (patch from Hans)
- Fix Raidsonic ethernet skew delay
- Fix kernel config (bridge, squashfs, jffs2, usb)
- Disable second usb port on Raidsonic board until fotg210_hcd is fixed

ChangeLog v3->v4:
- Make sure to use tabs rather than spaces in base-files.
- Use the dns313 image tool from the firmware-utils.
- Break out the addition of the v4.14 patches and the removal
  of the v4.4 patches to separate (big) patches.

ChangeLog v2->v3:
- Update the kernel config as indicated by Hauke Martens:
- Regenerate again after rebasing using kernel_oldconfig
  dropping a few optimization settings that are now generic
- Drop CFG80211 stuff (module)
- Drop CIFS stuff (module)
- Drop MAC80211 (module)
- Drop wireless drivers (module)
- Enabled OverlayFS
- Added proper DNS-313 boot image generation with the special
  file header tool.
- Disable CMA in the kernel
- Enable LZMA compression of the kernel
- Consequently name the nas4220b images nas4220b
- Update preinit MAC detection script to handle also DNS-313
- Add board.d/03_hdparm to set the disk to spin down after
  1 minute by default, if we have the hdparm tool installed

ChangeLog v1->v2:
- Processed config through kernel_oldconfig
- Processed patches through make target/linux/{clean,refresh} V=99

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Roman Yeryomin <roman@advem.lv>
6 years agogemini: rename files directory (preparation for 4.14)
Roman Yeryomin [Sun, 29 Apr 2018 14:31:42 +0000 (17:31 +0300)]
gemini: rename files directory (preparation for 4.14)

Signed-off-by: Roman Yeryomin <roman@advem.lv>
6 years agoat91: refreshing kernel configurations.
Sandeep Sheriker Mallikarjun [Fri, 4 May 2018 17:27:52 +0000 (10:27 -0700)]
at91: refreshing kernel configurations.

refreshing kernel configurations for sama5 and legacy subtarget.

Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikarjun@microchip.com>
6 years agoat91: Add SAMA5D2 PTC EK board
Sandeep Sheriker Mallikarjun [Fri, 4 May 2018 17:27:51 +0000 (10:27 -0700)]
at91: Add SAMA5D2 PTC EK board

Add target device as at91-sama5d2_ptc_ek in SAMA5D2 subtarget and
build images for SAMA5D2 PTC Ek board.

Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikarjun@microchip.com>
6 years agoat91: reorganize at91 subtargets
Sandeep Sheriker Mallikarjun [Fri, 4 May 2018 17:27:50 +0000 (10:27 -0700)]
at91: reorganize at91 subtargets

reorganizing at91 subtargets based on sama5 soc features and this fix
below problems.
  1. able to set neon flags to sama5d2 & sama5d4 subtargets.
  2. fix the make clean which removes all the subtargets in bin folder.
  3. able to configure kernel specific to subtarget.
  4. able to set vfpu4 flags to samad3 subtargets.

Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikarjun@microchip.com>
6 years agouboot-at91: fix DTC command not found.
Sandeep Sheriker Mallikarjun [Fri, 4 May 2018 17:27:49 +0000 (10:27 -0700)]
uboot-at91: fix DTC command not found.

fixed DTC command not found error while compling uboot-at91. The fix
is to set DTC PATH in uboot-at91 MAKE command.

Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikarjun@microchip.com>
6 years agoat91: sdcard image with ext4 rootfs
Sandeep Sheriker Mallikarjun [Fri, 4 May 2018 17:27:48 +0000 (10:27 -0700)]
at91: sdcard image with ext4 rootfs

creating sdcard image with ext4 rootfs only and ignoring creating
other filesystem in sdcard image.

Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikarjun@microchip.com>
6 years agoat91: Add SAMA5D27 SOM1 EK board
Sandeep Sheriker Mallikarjun [Fri, 4 May 2018 17:27:47 +0000 (10:27 -0700)]
at91: Add SAMA5D27 SOM1 EK board

Add support for SAMA5D27 SOM1 with target device as at91-sama5d27_som1_ek
in SAMA5 subtarget and build images for SAMA5D27 SOM1 Ek board.

Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikarjun@microchip.com>
6 years agouboot-at91: fetch uboot src from u-boot-at91 github
Sandeep Sheriker Mallikarjun [Fri, 4 May 2018 17:27:45 +0000 (10:27 -0700)]
uboot-at91: fetch uboot src from u-boot-at91 github

fetching uboot src from linux4sam/u-boot-at91 github for all at91
target.

Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikarjun@microchip.com>
6 years agoat91: fix sdcard create image
Sandeep Sheriker Mallikarjun [Fri, 4 May 2018 17:27:44 +0000 (10:27 -0700)]
at91: fix sdcard create image

copying at91bootstrap and uboot binaries to sdcard image is done
based on device name instead of dts name and this avoids creating
multiple u-boot and at91bootstrap binaries.

Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikarjun@microchip.com>
6 years agoat91bootstrap:update to v3.8.10
Sandeep Sheriker Mallikarjun [Fri, 4 May 2018 17:27:43 +0000 (10:27 -0700)]
at91bootstrap:update to v3.8.10

updating to new version v3.8.10 and copying at91bootstrap.bin to bin folder.

Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikarjun@microchip.com>
6 years agohostapd: fix a mesh mode crash with CONFIG_TAXONOMY enabled
Felix Fietkau [Thu, 3 May 2018 10:38:20 +0000 (12:38 +0200)]
hostapd: fix a mesh mode crash with CONFIG_TAXONOMY enabled

Signed-off-by: Felix Fietkau <nbd@nbd.name>
6 years agokernel: add missing in6_dev_put_clear call to an ipv6 network patch
Felix Fietkau [Mon, 30 Apr 2018 12:03:28 +0000 (14:03 +0200)]
kernel: add missing in6_dev_put_clear call to an ipv6 network patch

Fixes "unregister_netdevice: waiting for lo to become free. Usage count = 1" messages

Signed-off-by: Felix Fietkau <nbd@nbd.name>
6 years agosamba36: add hotplug support
Rosy Song [Wed, 2 May 2018 02:48:36 +0000 (10:48 +0800)]
samba36: add hotplug support

Add hotplug handle script for storage devices,
  this will add corresponding option in the
  /etc/config/samba file automatically.

Signed-off-by: Rosy Song <rosysong@rosinson.com>
6 years agolibusb: Add SourceForge mirror.
Rosen Penev [Tue, 1 May 2018 21:13:56 +0000 (14:13 -0700)]
libusb: Add SourceForge mirror.

SourceForge is still getting updated so might as well have it here.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
6 years agoiproute2: update to 4.16
Hans Dedecker [Tue, 1 May 2018 20:00:25 +0000 (22:00 +0200)]
iproute2: update to 4.16

Update to latest version of iproute2, refresh patches.
See https://lkml.org/lkml/2018/4/2/349 for a full overview of the
changes in 4.16.
Build and tested on AR7xxx against musl

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
6 years agouboot-envtools: Change download to git.
Rosen Penev [Tue, 1 May 2018 19:59:05 +0000 (12:59 -0700)]
uboot-envtools: Change download to git.

Currently, the build system uses an openwrt mirror which does not currently
work and FTP can be unreliable under several circumstances. This change
implicitly allows using all the mirrors to download.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
6 years agowolfssl: fix options and add support for wpa_supplicant features
Daniel Golle [Sat, 28 Apr 2018 18:55:51 +0000 (20:55 +0200)]
wolfssl: fix options and add support for wpa_supplicant features

Some options' default values have been changed upstream, others were
accidentally inverted (CONFIG_WOLFSSL_HAS_DES3). Also add options
needed to build hostapd/wpa_supplicant against wolfssl.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
6 years agosysctl: Protect hard/symlinks by default.
Rosen Penev [Mon, 30 Apr 2018 20:15:54 +0000 (13:15 -0700)]
sysctl: Protect hard/symlinks by default.

There is no usecase for not protecting symlinks that I know of in OpenWrt.
Not even on desktop systems where you have multiple users with a shell.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
6 years agoustream-ssl: update to latest git HEAD
John Crispin [Tue, 1 May 2018 09:11:16 +0000 (11:11 +0200)]
ustream-ssl: update to latest git HEAD

527e700 ustream-ssl: Remove RC4 from ciphersuite in server mode.
39a6ce2 ustream-ssl: Enable ECDHE with OpenSSL.
45ac930 remove polarssl support

Signed-off-by: John Crispin <john@phrozen.org>
6 years agoiptables: fix per object LDFLAGS for aggragate object builds
John Crispin [Mon, 30 Apr 2018 13:18:57 +0000 (15:18 +0200)]
iptables: fix per object LDFLAGS for aggragate object builds

Without this patch the extra LDFLAGS of objects were selected based on the
name of the extension being built, which breaks for aggregate so builds.

Signed-off-by: John Crispin <john@phrozen.org>
6 years agodownload.pl: Change OpenWrt mirrors to HTTPS.
Rosen Penev [Tue, 20 Feb 2018 20:43:01 +0000 (12:43 -0800)]
download.pl: Change OpenWrt mirrors to HTTPS.

These have supported HTTPS for quite a while. I have not seen any obvious breakage.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
6 years agodownload.pl: Change SourceForge address to HTTPS.
Rosen Penev [Tue, 20 Feb 2018 20:43:00 +0000 (12:43 -0800)]
download.pl: Change SourceForge address to HTTPS.

SourceForge has supported HTTPS for its downloads for a long time now.

I have not been able to see any failures resulting from this change.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
6 years agomtd-utils: add back macOS compatibility code that was dropped during the update
Felix Fietkau [Mon, 30 Apr 2018 08:09:48 +0000 (10:09 +0200)]
mtd-utils: add back macOS compatibility code that was dropped during the update

Signed-off-by: Felix Fietkau <nbd@nbd.name>
6 years agokernel: Restrict dmesg output to root.
Rosen Penev [Fri, 30 Mar 2018 22:18:02 +0000 (15:18 -0700)]
kernel: Restrict dmesg output to root.

In typical OpenWrt setups, there are no other users that have a shell spawned for them by default.

This can be overriden by the kernel.dmesg_output syssctl.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
6 years agolibnl: Disable debug support
Hauke Mehrtens [Fri, 30 Mar 2018 14:57:52 +0000 (16:57 +0200)]
libnl: Disable debug support

This dereses the size of the libnl pakcage a little bit
old:
   857 bin/packages/mips_24kc/base/libnl_3.4.0-1_mips_24kc.ipk
 41195 bin/packages/mips_24kc/base/libnl-core_3.4.0-1_mips_24kc.ipk
  7818 bin/packages/mips_24kc/base/libnl-genl_3.4.0-1_mips_24kc.ipk
 24322 bin/packages/mips_24kc/base/libnl-nf_3.4.0-1_mips_24kc.ipk
136075 bin/packages/mips_24kc/base/libnl-route_3.4.0-1_mips_24kc.ipk\ 2

new:
   852 bin/packages/mips_24kc/base/libnl_3.4.0-1_mips_24kc.ipk
 35020 bin/packages/mips_24kc/base/libnl-core_3.4.0-1_mips_24kc.ipk
  7615 bin/packages/mips_24kc/base/libnl-genl_3.4.0-1_mips_24kc.ipk
 24114 bin/packages/mips_24kc/base/libnl-nf_3.4.0-1_mips_24kc.ipk
131134 bin/packages/mips_24kc/base/libnl-route_3.4.0-1_mips_24kc.ipk

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 years agoat91: sama5: remove neon and VFPv4 support
Sandeep Sheriker Mallikarjun [Mon, 2 Apr 2018 16:34:10 +0000 (09:34 -0700)]
at91: sama5: remove neon and VFPv4 support

sama5d2 & samad4 have neon feature and sama5d3 does not have neon
feature due to which sama5d3 boot fails with error message Kernel
panic - not syncing: Attempted to kill init! exitcode=0x00000004.
removing neon & VFPv4 support to fix this

Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikarjun@microchip.com>
6 years agoat91: fix build error for wb50n.
Sandeep Sheriker Mallikarjun [Mon, 2 Apr 2018 16:34:07 +0000 (09:34 -0700)]
at91: fix build error for wb50n.

when external kernel is selected from menuconfig, device wb50n is not
avaliable and build fails. As a fix adding checks for external kernel.

Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikarjun@microchip.com>
6 years agolibusb: Update to 1.0.22
Rosen Penev [Sat, 28 Apr 2018 05:13:46 +0000 (22:13 -0700)]
libusb: Update to 1.0.22

Switched download from SourceForge to GitHub. It seems the author migrated to that.

Also fixed the website URL as the SourceForge link is dead.

Compile tested on ar71xx and mvebu. Small size decrease on ar71xx: 30444 vs. 30099 bytes.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
6 years agoar71xx: Add userspace support for Mikrotik rb-2011iLS
Simon Paterson [Sun, 29 Apr 2018 23:05:42 +0000 (11:05 +1200)]
ar71xx: Add userspace support for Mikrotik rb-2011iLS

Kernel support already present.
Patch adds userspace for the 'iLS' suffix model of the RB2011 family.
Enables correct initial switch settings, sysupgrade, etc.

https://mikrotik.com/product/RB2011iLS-IN

Signed-off-by: Simon Paterson <simon.paterson.nz@gmail.com>
6 years agokernel: bump 4.14 to 4.14.37
Koen Vandeputte [Thu, 26 Apr 2018 16:20:36 +0000 (18:20 +0200)]
kernel: bump 4.14 to 4.14.37

Refreshed all patches

Compile-tested on: cns3xxx, imx6, octeon, ramips/mt7621, x86/64
Runtime-tested on: cns3xxx, imx6, octeon, ramips/mt7621, x86/64

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
Tested-by: Stijn Segers <foss@volatilesystems.org>
[add extra tested targets to commit msg]
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
6 years agoodhcp6c: update to latest git HEAD
Hans Dedecker [Sun, 29 Apr 2018 21:07:39 +0000 (23:07 +0200)]
odhcp6c: update to latest git HEAD

5316d7f ra: always trigger update in case of RA parameter change
327f73d dhcpv6: fix strncpy bounds

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
6 years agotoolchain/binutils: Use xz tarballs where possible
Daniel Engberg [Mon, 16 Apr 2018 23:15:30 +0000 (01:15 +0200)]
toolchain/binutils: Use xz tarballs where possible

Switch to xz for 2.29.1 and 2.30
These tarballs are about 10Mbyte smaller than bz2.

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
6 years agoglibc: switch from git to https
Johann Neuhauser [Fri, 27 Apr 2018 07:08:07 +0000 (09:08 +0200)]
glibc: switch from git to https

This is needed for working behind a http proxy.

Signed-off-by: Johann Neuhauser <jneuhauser@dh-electronics.de>
6 years agouboot-mvebu: Fix build with libressl 2.7.2
Hauke Mehrtens [Sun, 29 Apr 2018 08:12:14 +0000 (10:12 +0200)]
uboot-mvebu: Fix build with libressl 2.7.2

When libressl was linked the libpthread was missing, add it in addition.

Fixes: 2c192b69163f ("tools/libressl: update to version 2.7.2")
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 years agouboot-mxs: Fix build with libressl 2.7.2
Hauke Mehrtens [Sat, 28 Apr 2018 22:40:40 +0000 (00:40 +0200)]
uboot-mxs: Fix build with libressl 2.7.2

When libressl was linked the libpthread was missing, add it in addition.
Also make the mxsimage tool to use the OpenSSL 1.1 API for the recent
libressl version.

Fixes: 2c192b69163f ("tools/libressl: update to version 2.7.2")
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 years agouboot-zynq: Fix build with libressl 2.7.2
Hauke Mehrtens [Sat, 28 Apr 2018 22:39:38 +0000 (00:39 +0200)]
uboot-zynq: Fix build with libressl 2.7.2

When libressl was linked the libpthread was missing, add it in addition.

Fixes: 2c192b69163f ("tools/libressl: update to version 2.7.2")
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 years agotools/make-ext4fs: Fix build on MacOSX
Hauke Mehrtens [Sat, 28 Apr 2018 16:20:20 +0000 (18:20 +0200)]
tools/make-ext4fs: Fix build on MacOSX

MacOSX does not support "-Wl,-Bstatic" so do not force the static
linking.
We only copy the static libz library into the staging libraries
directories, the linker will anyway only find the static version and
link against that on all systems.

Fixes: 8dcd941d8b9 ("tools/zlib: move zlib build to tools")
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 years agotools/libressl: update to version 2.7.2
Hauke Mehrtens [Sat, 14 Apr 2018 21:33:41 +0000 (23:33 +0200)]
tools/libressl: update to version 2.7.2

Libressl version 2.7.0 and later implement more of the OpenSSL 1.1 API
and this needs some modifications of the code using it.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 years agomtd-utils: activate --gc-sections
Hauke Mehrtens [Fri, 30 Mar 2018 13:32:07 +0000 (15:32 +0200)]
mtd-utils: activate --gc-sections

This reduces the size of the binary a bit:

old:
 37556 bin/targets/lantiq/xrx200/packages/nand-utils_2.0.1-1_mips_24kc.ipk
 81697 bin/targets/lantiq/xrx200/packages/ubi-utils_2.0.1-1_mips_24kc.ipk

new:
 27450 bin/targets/lantiq/xrx200/packages/nand-utils_2.0.1-1_mips_24kc.ipk
 71796 bin/targets/lantiq/xrx200/packages/ubi-utils_2.0.1-1_mips_24kc.ipk

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Tested-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
6 years agomtd-utils: update to 2.0.2
Syrone Wong [Sat, 24 Mar 2018 00:25:43 +0000 (08:25 +0800)]
mtd-utils: update to 2.0.2

010-fix-rpmatch.patch is upstream, removed from our patchset
The file structure is changed, modify patch accordingly
use CONFIGURE_ARGS to disable tests, xattr and lzo

Compile and run tested on mvebu and x86_64

Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Tested-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
6 years agotools/mtd-utils: update to version 2.0.2
Hauke Mehrtens [Sun, 15 Apr 2018 17:25:17 +0000 (19:25 +0200)]
tools/mtd-utils: update to version 2.0.2

This version now uses autotools to configure the build system. They are
also using the newly added zlib package.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Tested-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
6 years agotools/mtd-utils: Mark some lzma functions as static
Hauke Mehrtens [Sun, 15 Apr 2018 11:01:16 +0000 (13:01 +0200)]
tools/mtd-utils: Mark some lzma functions as static

These functions are not declared in any header file and only used in
same compile unit, mark them as static to remove one gcc warning and
make it easier for the compiler to optimize them out.

This also fixes some style problems to make this patch match the version
in the packages folder.

This is copied from this commit to the mtd-utils we pack into the image:
56d0dd56e9c6efa79 ("mtd-utils: Mark some lzma functions as static")

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Tested-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
6 years agotools/zlib: move zlib build to tools
Hauke Mehrtens [Sun, 15 Apr 2018 17:24:02 +0000 (19:24 +0200)]
tools/zlib: move zlib build to tools

This allows us to link the other tools against our libz and we do not
need the system zlib any more.

Only the static linked library is copied to the staging directory so we
have a statically linked library on all systems and not only on Linux.
This also adds the new dependencies of the packages which are depending
on zlib.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Tested-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
6 years agonetifd: update to latest git HEAD (Coverity fixes)
Hans Dedecker [Fri, 27 Apr 2018 19:34:34 +0000 (21:34 +0200)]
netifd: update to latest git HEAD (Coverity fixes)

56ceced interface-ip: remove superfluous iface check in interface_ip_set_enabled()
4f4a8c0 system-linux: fix strncpy bounds

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
6 years agoarm64: enable harden branch predictor
Mathias Kresin [Thu, 26 Apr 2018 20:25:11 +0000 (22:25 +0200)]
arm64: enable harden branch predictor

Enable the harden branch predictor for arm64 as it is recommend.

Signed-off-by: Mathias Kresin <dev@kresin.me>
6 years agokernel: add missing config symbols
Mathias Kresin [Thu, 26 Apr 2018 19:16:12 +0000 (21:16 +0200)]
kernel: add missing config symbols

The harden branch predictor was backported for arm64 with 4.9.92-96.

Fixes: 9aa196e0f260 ("kernel: bump 4.9 to bump 4.9.96")
Signed-off-by: Mathias Kresin <dev@kresin.me>
6 years agobuild: add support for git submodules with CONFIG_SRC_TREE_OVERRIDE
Felix Fietkau [Wed, 25 Apr 2018 09:52:20 +0000 (11:52 +0200)]
build: add support for git submodules with CONFIG_SRC_TREE_OVERRIDE

Also work around an issue where git would store the modified workdir in
the submodule git config files

Signed-off-by: Felix Fietkau <nbd@nbd.name>
6 years agoscripts/feeds: add support for git feeds with submodules
Felix Fietkau [Wed, 25 Apr 2018 09:31:48 +0000 (11:31 +0200)]
scripts/feeds: add support for git feeds with submodules

Signed-off-by: Felix Fietkau <nbd@nbd.name>
6 years agobrcm47xx: remove linux 4.4 support
Felix Fietkau [Mon, 9 Apr 2018 07:56:04 +0000 (09:56 +0200)]
brcm47xx: remove linux 4.4 support

Signed-off-by: Felix Fietkau <nbd@nbd.name>
6 years agobrcm63xx: remove linux 4.4 support
Felix Fietkau [Mon, 9 Apr 2018 07:55:48 +0000 (09:55 +0200)]
brcm63xx: remove linux 4.4 support

Signed-off-by: Felix Fietkau <nbd@nbd.name>
6 years agobcm53xx: drop linux 4.4 and 4.9 support
Felix Fietkau [Mon, 9 Apr 2018 07:50:23 +0000 (09:50 +0200)]
bcm53xx: drop linux 4.4 and 4.9 support

Signed-off-by: Felix Fietkau <nbd@nbd.name>
6 years agobrcm2708: Add support for raspberry pi 3 b+.
Christo Nedev [Thu, 26 Apr 2018 16:10:15 +0000 (16:10 +0000)]
brcm2708: Add support for raspberry pi 3 b+.

Signed-off-by: Christo Nedev <christo.nedev@me.com>
6 years agokernel: Fix data corruption on some mips devices.
Rosen Penev [Fri, 27 Apr 2018 00:11:42 +0000 (17:11 -0700)]
kernel: Fix data corruption on some mips devices.

This is mainly a bug fix for multi-core MIPS systems where L1 caches besides the primary do not get flushed.

The most obvious problem is data corruption on SATA and USB devices where read requests are typically larger than the cacheline size.

This may also fix ar71xx systems that suffer from similar data corruption but I have not tested if it does.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
6 years agoiftop: bump to latest
Kevin Darbyshire-Bryant [Sun, 22 Apr 2018 09:19:40 +0000 (09:19 +0000)]
iftop: bump to latest

The sender domain has a DMARC Reject/Quarantine policy which disallows
sending mailing list messages using the original "From" header.

To mitigate this problem, the original message has been wrapped
automatically by the mailing list software.
Choose first running interface, rather than first "up" interface (Redhat #1403025)

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Tested-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
6 years agoar71xx: Ubiquiti Airmax M: add relocate-kernel to invalidate cache
Matthias Schiffer [Thu, 26 Apr 2018 18:04:48 +0000 (20:04 +0200)]
ar71xx: Ubiquiti Airmax M: add relocate-kernel to invalidate cache

Some Ubiquiti U-boot versions, in particular the "U-Boot 1.1.4.2-s956
(Jun 10 2015 - 10:54:50)" found with AirOS 5.6, do not correctly flush the
caches for the whole kernel address range after decompressing the kernel
image, leading to hard to debug boot failures, depending on kernel version
and configuration.

As a workaround, prepend the relocate-kernels loader, which will invalidate
the caches after moving the kernel to the correct load address.

Reported-by: Andreas Ziegler <dev@andreas-ziegler.de>
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
6 years agoscripts: bundle-libraries: fix build on OS X (FS#1493)
Jo-Philipp Wich [Thu, 26 Apr 2018 14:04:37 +0000 (16:04 +0200)]
scripts: bundle-libraries: fix build on OS X (FS#1493)

This allegedly fixes compilation of the library bundler preload library on
Apple OS X. The resulting executables have not been runtime tested due to a
lack of suitable test hardware.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agotoolchain/binutils: Remove old patches
Daniel Engberg [Tue, 17 Apr 2018 20:23:11 +0000 (22:23 +0200)]
toolchain/binutils: Remove old patches

Remove patches for arc-2016.09
Commit https://github.com/openwrt/openwrt/commit/8647f4f018e4dee663b65948d75105fae7bb3cdc
made these patches obsolete

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
6 years agotoolchain/binutils: completely remove 2.28 support
Hans Dedecker [Thu, 26 Apr 2018 08:33:31 +0000 (10:33 +0200)]
toolchain/binutils: completely remove 2.28 support

Commit 15e963915963cda515311531b182b9e0c52f35a0 removed support for
binutils version 2.28 but did not remove it as selectable item
from Binutils Version; let's remove this leftover as well.

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
6 years agokernel: bump 4.14 to 4.14.36
Koen Vandeputte [Tue, 24 Apr 2018 14:59:36 +0000 (16:59 +0200)]
kernel: bump 4.14 to 4.14.36

Refreshed all patches.

Compile-tested on: cns3xxx, imx6
Runtime-tested on: cns3xxx, imx6

Fixes for CVEs:
CVE-2018-1108
CVE-2018-1092
CVE-2018-1094
CVE-2018-1095

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
Tested-by: Stijn Segers <foss@volatilesystems.org>
6 years agokernel: bump 4.9 to 4.9.96
Kevin Darbyshire-Bryant [Tue, 24 Apr 2018 12:19:43 +0000 (12:19 +0000)]
kernel: bump 4.9 to 4.9.96

Refresh patches, following required reworking:

ar71xx/patches-4.9/930-chipidea-pullup.patch
layerscape/patches-4.9/302-dts-support-layercape.patch
sunxi/patches-4.9/0052-stmmac-form-4-12.patch

Fixes for CVEs:
CVE-2018-1108
CVE-2018-1092

Tested on: ar71xx Archer C7 v2

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Tested-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
Tested-by: Arjen de Korte <build+openwrt@de-korte.org>
6 years agouboot-envtools: add support for ESPRESSObin and MACCHIATObin
Damir Samardzic [Tue, 24 Apr 2018 06:25:21 +0000 (08:25 +0200)]
uboot-envtools: add support for ESPRESSObin and MACCHIATObin

Added for convenience. These boards can be used as dev boards running
various operating systems from different media, and this simplifies work
with U-Boot environment.

Signed-off-by: Damir Samardzic <damir.samardzic@sartura.hr>
6 years agomvebu: cortexa72: enable Marvell 10G PHY by default
Damir Samardzic [Mon, 23 Apr 2018 08:11:04 +0000 (10:11 +0200)]
mvebu: cortexa72: enable Marvell 10G PHY by default

This one enables 10 GbE ports on MACCHIATObin.

Signed-off-by: Damir Samardzic <damir.samardzic@sartura.hr>
6 years agoramips: fix mt7628 eval board pinmux
Mathias Kresin [Tue, 24 Apr 2018 18:18:48 +0000 (20:18 +0200)]
ramips: fix mt7628 eval board pinmux

There is no pinmux group "jtag" for mt7628 and the pinmux driver fails
to load due to the use of the not existing group.

Fixes: FS#1515
Signed-off-by: Mathias Kresin <dev@kresin.me>
6 years agoramips: create image for mt7628 evb board
Mathias Kresin [Mon, 23 Apr 2018 17:36:02 +0000 (19:36 +0200)]
ramips: create image for mt7628 evb board

The image for the EVB board got lost with the merge of the mt7628 and
mt7688 subtargets.

Signed-off-by: Mathias Kresin <dev@kresin.me>
6 years agofirmware-utils: tplink-safeloader: increase RE350 kernel size
Alex Maclean [Mon, 23 Apr 2018 17:36:54 +0000 (18:36 +0100)]
firmware-utils: tplink-safeloader: increase RE350 kernel size

4.14 increased kernel size, so grow the kernel partition by 128K to compensate.

Fixes FS#1479.

Signed-off-by: Alex Maclean <monkeh@monkeh.net>
6 years agoramips: use patch-dtb for F5D8235 V1
Tobias Wolf [Sun, 22 Apr 2018 17:34:57 +0000 (19:34 +0200)]
ramips: use patch-dtb for F5D8235 V1

The old DTB method (OWRTDTB) is not recognized by the boot process
anymore with 4.9/4.14.

This patch reuses KERNEL_DTB to get a valid DTB applied to the kernel
image.

Signed-off-by: Tobias Wolf <github-NTEO@vplace.de>
6 years agokernel: fix usb interface on 3G dwm-158 modem
Giuseppe Lippolis [Fri, 20 Apr 2018 17:00:33 +0000 (19:00 +0200)]
kernel: fix usb interface on 3G dwm-158 modem

The current option driver binds to the usb interface 2,3,4,5.
But the interface 4 and 5 doesn't answer to the AT commands.
On the new openwrt configuration the wwan script select the 5th
interface as control interface, failing to establish the
3G connection.

Backport the fix for the problem.

Signed-off-by: Giuseppe Lippolis <giu.lippolis@gmail.com>
6 years agoipq40xx: add support for OpenMesh A62
Sven Eckelmann [Wed, 9 Aug 2017 11:52:07 +0000 (13:52 +0200)]
ipq40xx: add support for OpenMesh A62

* QCA IPQ4019
* 256 MB of RAM
* 32 MB of SPI NOR flash (s25fl256s1)
  - 2x 15 MB available; but one of the 15 MB regions is the recovery image
* 2T2R 2.4 GHz
  - QCA4019 hw1.0 (SoC)
  - requires special BDF in QCA4019/hw1.0/board-2.bin with
    bus=ahb,bmi-chip-id=0,bmi-board-id=20,variant=OM-A62
* 2T2R 5 GHz (channel 36-64)
  - QCA9888 hw2.0 (PCI)
  - requires special BDF in QCA9888/hw2.0/board-2.bin
    bus=pci,bmi-chip-id=0,bmi-board-id=16,variant=OM-A62
* 2T2R 5 GHz (channel 100-165)
  - QCA4019 hw1.0 (SoC)
  - requires special BDF in QCA4019/hw1.0/board-2.bin with
    bus=ahb,bmi-chip-id=0,bmi-board-id=21,variant=OM-A62
* multi-color LED (controlled via red/green/blue GPIOs)
* 1x button (reset; kmod-input-gpio-keys compatible)
* external watchdog
  - triggered GPIO
* 1x USB (xHCI)
* TTL pins are on board (arrow points to VCC, then follows: GND, TX, RX)
* 2x gigabit ethernet
  - phy@mdio3:
    + Label: Ethernet 1
    + gmac0 (ethaddr) in original firmware
    + 802.3at POE+
  - phy@mdio4:
    + Label: Ethernet 2
    + gmac1 (eth1addr) in original firmware
    + 18-24V passive POE (mode B)
* powered only via POE

The tool ap51-flash (https://github.com/ap51-flash/ap51-flash) should be
used to transfer the factory image to the u-boot when the device boots up.

The initramfs image can be started using

  setenv bootargs 'loglevel=8 earlycon=msm_serial_dm,0x78af000 console=ttyMSM0,115200 mtdparts=spi0.0:256k(0:SBL1),128k(0:MIBIB),384k(0:QSEE),64k(0:CDT),64k(0:DDRPARAMS),64k(0:APPSBLENV),512k(0:APPSBL),64k(0:ART),64k(0:custom),64k(0:KEYS),15552k(inactive),15552k(inactive2)'
  tftpboot 0x84000000 openwrt-ipq40xx-openmesh_a62-initramfs-fit-uImage.itb
  set fdt_high 0x85000000
  bootm 0x84000000

Signed-off-by: Sven Eckelmann <sven.eckelmann@openmesh.com>
6 years agoipq40xx: fix gpio-hog related boot issues
Sven Eckelmann [Mon, 16 Apr 2018 11:51:15 +0000 (13:51 +0200)]
ipq40xx: fix gpio-hog related boot issues

The pinctrl initialization fails with the MSM pinctrl code and gpio-hogs
because either the gpio ranges are not yet initialized (missing gpio-range
in DT) or that the msm driver unconditionally tries to re-initializes the
ranges (gpio-range in DT).

To allow gpio-hogs and similar early-boot gpio code, the gpio-ranges must
be in the device tree and the pinctrl-msm code must check whether the range
was already initialized by the DT.

Signed-off-by: Sven Eckelmann <sven.eckelmann@openmesh.com>
[drop changes to unrelated dtsi files, refresh patches]
Signed-off-by: Mathias Kresin <dev@kresin.me>