openwrt/staging/nbd.git
6 years agomac80211: ath10k: search all IEs for variant before falling back
Christian Lamparter [Thu, 1 Mar 2018 16:23:22 +0000 (17:23 +0100)]
mac80211: ath10k: search all IEs for variant before falling back

This patch adds the patch that was posted to ath10k-devel ML:
<https://patchwork.kernel.org/patch/10233491/>
|From: Thomas Hebb <tommyhebb@gmail.com>
|Subject: [PATCH] ath10k: search all IEs for variant before falling back
|Date: Wed, 21 Feb 2018 11:43:39 -0500
|[...]
|This patch fixes the issue by first searching the entire file for the ID
|with variant, and searching for the fallback ID only if that search
|fails. It also includes some code cleanup in the area, as
|ath10k_core_fetch_board_data_api_n() no longer does its own string
|mangling to remove the variant from an ID, instead leaving that job to a
|new flag passed to ath10k_core_create_board_name().
|
|I've tested this patch on a QCA4019 and verified that the driver behaves
|correctly for 1) both fallback and variant BDFs present, 2) only fallback
|BDF present, and 3) no matching BDFs present.
|
|Fixes: 1657b8f84ed9 ("ath10k: search SMBIOS for OEM board file extension")
|Signed-off-by: Thomas Hebb <tommyhebb@gmail.com>

Note: 937-ath10k-calibration-variant.patch has been reassigned a new 081
number, as it now ships with upstream.... But also because this patch
requires the change in ath10k_core_create_board_name().

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
6 years agoipq40xx: fix GL.iNet GL-B1300 support
Mathias Kresin [Sat, 17 Feb 2018 08:07:54 +0000 (09:07 +0100)]
ipq40xx: fix GL.iNet GL-B1300 support

Rename the dts file to match the used SoC type and drop the unnecessary
KERNEL_INSTALL from the image build code.

Remove the fixed rootfs and kernel partitions and create an image with
rootfs appended after kernel.

Setup a switch portmap matching the hardware and a default network/switch
configuration to make make the second lan port working. Use eth0 as lan
to have it consistent accross the target.

Use the power LED to indicate the boot status.

Sort the SoC entries within the dts by address and use dtc labels
whenever possible.

Signed-off-by: Mathias Kresin <dev@kresin.me>
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
6 years agoipq40xx: remove block- and pagesize from FB4040
David Bauer [Sat, 10 Mar 2018 09:49:15 +0000 (10:49 +0100)]
ipq40xx: remove block- and pagesize from FB4040

This removes the block- and pagesize from the FritzBox 4040
image description, fixing incorrectly working sysupgrade.

With this commit, the default values for block- and pagesize are
used.

Signed-off-by: David Bauer <mail@david-bauer.net>
[chunkeey@gmail.com: removed 105-mtd-nor-add-mx25l25635f.patch as well]
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
6 years agoipq40xx: OpenMesh A42 overhaul
Christian Lamparter [Sat, 10 Mar 2018 08:55:18 +0000 (09:55 +0100)]
ipq40xx: OpenMesh A42 overhaul

Sort the soc entries in the dts by address and use dtc labels whenever
possible.

Adjust the DTS files, the OpenMesh A42 is actually an IPQ4018 and not an
IPQ4019.

Signed-off-by: Sven Eckelmann <sven.eckelmann@openmesh.com>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
6 years agoipq40xx: fix apss cpu overclocking spam
Christian Lamparter [Sun, 11 Mar 2018 15:42:29 +0000 (16:42 +0100)]
ipq40xx: fix apss cpu overclocking spam

There's an interaction issue between the clk changes:"
clk: qcom: ipq4019: Add the apss cpu pll divider clock node
clk: qcom: ipq4019: remove fixed clocks and add pll clocks
" and the cpufreq-dt.

cpufreq-dt is now spamming the kernel-log with the following:

[ 1099.190658] cpu cpu0: dev_pm_opp_set_rate: failed to find current OPP
for freq 761142857 (-34)

This only happens on certain devices like the Compex WPJ428
and AVM FritzBox!4040. However, other devices like the Asus
RT-AC58U and Meraki MR33 work just fine.

The issue stem from the fact that all higher CPU-Clocks
are achieved by switching the clock-parent to the P_DDRPLLAPSS
(ddrpllapss). Which is set by Qualcomm's proprietary bootcode
as part of the DDR calibration.

For example, the FB4040 uses 256 MiB Nanya NT5CC128M16IP clocked
at round 533 MHz (ddrpllsdcc = 190285714 Hz).

whereas the 128 MiB Nanya NT5CC64M16GP-DI in the ASUS RT-AC58U is
clocked at a slightly higher 537 MHz ( ddrpllsdcc = 192000000 Hz).

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
6 years agoipq40xx/ipq806x: move qcom-dwc3 usb driver to generic
Mathias Kresin [Thu, 1 Mar 2018 06:25:38 +0000 (07:25 +0100)]
ipq40xx/ipq806x: move qcom-dwc3 usb driver to generic

If the a kernel package exists within multiple targets an error/warning
is shown.

Signed-off-by: Mathias Kresin <dev@kresin.me>
6 years agoipq40xx: add target
John Crispin [Wed, 21 Feb 2018 19:40:50 +0000 (20:40 +0100)]
ipq40xx: add target

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
Signed-off-by: Mathias Kresin <dev@kresin.me>
Signed-off-by: John Crispin <john@phrozen.org>
6 years agoipq806x: drop ipq40xx support
John Crispin [Wed, 21 Feb 2018 15:17:10 +0000 (16:17 +0100)]
ipq806x: drop ipq40xx support

Signed-off-by: John Crispin <john@phrozen.org>
6 years agoe2fsprogs: break out libcomerr/libss, FS#1310
Andy Walsh [Sat, 3 Feb 2018 20:00:27 +0000 (21:00 +0100)]
e2fsprogs: break out libcomerr/libss, FS#1310

libext2fs breaks krb5 by always installing its own copies of libcom_err.so
and libss.so.

Move the libraries into separate libcomerr and libss packages respectively
and add a host build recipe to stage the required compile_et and mk_cmds
utilities for use by other packages.

This allows the krb5 package to be fixed to use the system wide libcomerr
and libss libraries.

Signed-off-by: Andy Walsh <andy.walsh44+github@gmail.com>
[rename libcom_err to libcomerr, make compile_et and mk_cmds relocatable,
 cleanup makefile, add dependency on host build, reword commit message]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agojsonfilter: update to latest git HEAD
Jo-Philipp Wich [Wed, 14 Mar 2018 08:55:33 +0000 (09:55 +0100)]
jsonfilter: update to latest git HEAD

c7e938d implement POSIX regexp support
cd6629f lexer: fix encoding 7 bit escape sequences
8614470 main: implement array mode

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agokernel: use V10 of mtd patchset adding support for "compatible" string
Rafał Miłecki [Wed, 14 Mar 2018 14:07:03 +0000 (15:07 +0100)]
kernel: use V10 of mtd patchset adding support for "compatible" string

In the commit bde5e7a632ef0 ("kernel: backport mtd implementation for
"compatible" in "partitions" subnode") patches that got accepted into
l2-mtd.git were backported to the kernels 4.9 and 4.14. Unfortunately
there was a regression report, patches were dropped and never reached
4.16.

This commit replaces these pseudo-backports with the latest version
that includes regression fix and futher changes that were requested.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
6 years agodnsmasq: bump to 2.79rc2
Hans Dedecker [Tue, 13 Mar 2018 21:14:29 +0000 (22:14 +0100)]
dnsmasq: bump to 2.79rc2

ae29065 Fix debian/changelog syntax.
6b2b564 Enhance --synth-domain to allow names with sequential integers.
4f7bb57 Fix deletion of dhcp-options from inotify dynamic files.
56f0623 Allow trailing dot in CNAME.
f3223fb Fix nettle_hash() function to avoid ABI incompatibilities.
4c4f4c2 Debian dependency tweaking for new dnsmasq-base-lua package.
773af30 Man page typo fix.
4cc944b Merge branch 'master' of ssh://thekelleys.org.uk/var/local/git/dnsmasq
87e00fe Compiler warning fixes.
e7a4af8 Compiler warning fixes.
2d69d61 Add liblua-dev to Debian build-depends.
30e4a94 Debian package: add dnsmasq-base-lua binary package.
232a8f3 Merge messages for release.

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
6 years agouboot-imx6: fix build with GCC 7
Hauke Mehrtens [Tue, 13 Mar 2018 21:28:59 +0000 (22:28 +0100)]
uboot-imx6: fix build with GCC 7

Backport the compiler support patches from upstream u-boot to this older
version to make it compile with GCC 7.
This was found by build bot.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 years agoramips: mt7620n: add mdio node and disable port4 by default
Mathias Kresin [Tue, 13 Mar 2018 19:06:37 +0000 (20:06 +0100)]
ramips: mt7620n: add mdio node and disable port4 by default

Revert the changes I applied to aa5014dd1a58 ("ramips: mt7620n: enable
port 4 as EPHY by default").

The driver expects a node mdio-bus to be present, regardless of the
actual node status. If the node is missing the driver fails to load  with

  mtk_soc_eth 10100000.ethernet: no mdio-bus child node found

Disable port4 by default again. If the port is enabled but not present, a
"invalid port id 4" warning is shown during boot.

Fixes: FS#1428
Signed-off-by: Mathias Kresin <dev@kresin.me>
6 years ago6in4: support multiple additional user prefixes
Jo-Philipp Wich [Wed, 14 Feb 2018 13:58:08 +0000 (14:58 +0100)]
6in4: support multiple additional user prefixes

Support configuration in the form...

    list ip6prefix 2001:db8:1234::/64
    list ip6prefix 2001:db8:5678::/64

... to allow specifying multiple routed IPv6 prefixes.

Implements feature request FS#1361.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Acked-by: Hans Dedecker <dedeckeh@gmail.com>
6 years agoglibc: update glibc to 2.26+ and switch to download from git
Hans Dedecker [Mon, 12 Mar 2018 10:13:08 +0000 (11:13 +0100)]
glibc: update glibc to 2.26+ and switch to download from git

Switch glibc to 2.26+ [0] and download the sources from git which will it
make easier to update glibc in the future.

For an overview of the fixed bugs and CVE related fixes in 2.26+ see the
NEWS file [1]

[0] https://sourceware.org/git/?p=glibc.git;a=commit;h=d300041c533a3d837c9f37a099bcc95466860e98
[1] https://sourceware.org/git/?p=glibc.git;a=blob;f=NEWS;h=410f0d163145c1549fb73fdd96568f585b5bf62f;hb=refs/heads/release/2.26/master

Signed-off-by: Xinxing Hu <xinxing.huchn@gmail.com>
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
6 years agoglibc: fix applying of patches
Hans Dedecker [Mon, 12 Mar 2018 10:13:07 +0000 (11:13 +0100)]
glibc: fix applying of patches

Commit f4d9d7a removed support for version specific patches; but it also
broke applying of patches in the patches glibc dir.
Fix the issue by setting PATCH_DIR to $(PATH_PREFIX)/patches similar as
musl/common.mk.

Signed-off-by: Xinxing Hu <xinxing.huchn@gmail.com>
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
6 years agonetifd: update to the latest version (fixes FS#1358)
Felix Fietkau [Tue, 13 Mar 2018 12:33:04 +0000 (13:33 +0100)]
netifd: update to the latest version (fixes FS#1358)

1f5a29c ip: do not add local routes for host dependencies
c06f842 device: add support for setting the isolate options for bridge ports
69aeaab interface-ip: fix route selection for host dependencies

Signed-off-by: Felix Fietkau <nbd@nbd.name>
6 years agoRevert "ramips: gpio: fix compilation if CONFIG_GPIO_SYSFS=n"
John Crispin [Tue, 13 Mar 2018 12:09:59 +0000 (13:09 +0100)]
Revert "ramips: gpio: fix compilation if CONFIG_GPIO_SYSFS=n"

This reverts commit cff2dedebc665dc1d3d64d850afd0124c6d35eaa.

This patch causes build issues

Signed-off-by: John Crispin <john@phrozen.org>
6 years agokernel: b53: drop support for old location of bcm47xx_nvram.h
Rafał Miłecki [Tue, 13 Mar 2018 09:20:08 +0000 (10:20 +0100)]
kernel: b53: drop support for old location of bcm47xx_nvram.h

In kernels 4.0 and older that header file was located in some subdir of
arch/mips/include. Target brcm47xx supports kernels 4.4 and 4.9 only so
that code isn't needed anymore.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
6 years agoramips: gpio: fix compilation if CONFIG_GPIO_SYSFS=n
André Draszik [Thu, 22 Feb 2018 11:04:28 +0000 (11:04 +0000)]
ramips: gpio: fix compilation if CONFIG_GPIO_SYSFS=n

If CONFIG_GPIO_SYSFS=n, compilation fails with
  drivers/built-in.o: In function `gpio_export_with_name':
  include/asm-generic/gpio.h:128: undefined reference to `__gpiod_export'

This is because the stub in that case has the wrong name,
_gpiod_export() - note the missing underscore (_) at the
start.

Fix the stub, and add the correct prototype for the real
implementation.

Signed-off-by: André Draszik <git@andred.net>
6 years agotoolchain/binutils: exclude .rej files when unpacking the tarball
Felix Fietkau [Mon, 12 Mar 2018 20:29:07 +0000 (21:29 +0100)]
toolchain/binutils: exclude .rej files when unpacking the tarball

Signed-off-by: Felix Fietkau <nbd@nbd.name>
6 years agotoolchain/binutils: remove version 2.28
Felix Fietkau [Mon, 12 Mar 2018 19:05:48 +0000 (20:05 +0100)]
toolchain/binutils: remove version 2.28

Signed-off-by: Felix Fietkau <nbd@nbd.name>
6 years agobinutils: Use version 2.29.1 by default
Hauke Mehrtens [Sun, 4 Mar 2018 20:04:58 +0000 (21:04 +0100)]
binutils: Use version 2.29.1 by default

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 years agoppp: make ppp-multilink provide ppp
Felix Fietkau [Thu, 8 Mar 2018 10:14:09 +0000 (11:14 +0100)]
ppp: make ppp-multilink provide ppp

Fixes dependencies on ppp from other packages

Signed-off-by: Felix Fietkau <nbd@nbd.name>
6 years agotoolchain/binutils: add support for version 2.30
Felix Fietkau [Thu, 8 Mar 2018 10:21:58 +0000 (11:21 +0100)]
toolchain/binutils: add support for version 2.30

Signed-off-by: Felix Fietkau <nbd@nbd.name>
6 years agouboot-fritz4040: fix build with gcc7
Felix Fietkau [Mon, 12 Mar 2018 18:31:31 +0000 (19:31 +0100)]
uboot-fritz4040: fix build with gcc7

Signed-off-by: Felix Fietkau <nbd@nbd.name>
6 years agoswconfig: convert swdevs_lock from spinlock to mutex
Felix Fietkau [Mon, 12 Mar 2018 08:50:33 +0000 (09:50 +0100)]
swconfig: convert swdevs_lock from spinlock to mutex

Should fix some sleep-while-atomic issues

Signed-off-by: Felix Fietkau <nbd@nbd.name>
6 years agobusybox: remove i386-specific build flags
Matthias Schiffer [Fri, 9 Mar 2018 11:19:37 +0000 (12:19 +0100)]
busybox: remove i386-specific build flags

busybox tries to be smart and passes a number of additional flags to the
compiler. Unfortunately, the i386-specific flags break ABI compatiblity
with libc.

Fixes busybox crashes observed on x86-generic with GCC 7.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
6 years agotoolchain/gcc: switch to version 7 by default
Felix Fietkau [Mon, 12 Mar 2018 09:31:19 +0000 (10:31 +0100)]
toolchain/gcc: switch to version 7 by default

Newer GCC versions are reported to improve code size on various ARM
devices, which is why newer u-boot versions require them now.
There have also been user reports of data corruption issues fixed on
MIPS by updating from GCC 5 to GCC 7.

This update was previously held up by these two MIPS compile issues,
which have since been fixed:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83496
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84790

Signed-off-by: Felix Fietkau <nbd@nbd.name>
6 years agotoolchain/gcc: merge pending fix for miscompiled MIPS16 code issue (GCC PR 84790)
Felix Fietkau [Mon, 12 Mar 2018 09:28:03 +0000 (10:28 +0100)]
toolchain/gcc: merge pending fix for miscompiled MIPS16 code issue (GCC PR 84790)

Signed-off-by: Felix Fietkau <nbd@nbd.name>
6 years agotoolchain/gcc: fix a build failure on 7.3.0 with macOS
Felix Fietkau [Mon, 12 Mar 2018 10:50:08 +0000 (11:50 +0100)]
toolchain/gcc: fix a build failure on 7.3.0 with macOS

Signed-off-by: Felix Fietkau <nbd@nbd.name>
6 years agomusl: update to version 1.1.19
Hauke Mehrtens [Thu, 22 Feb 2018 22:54:04 +0000 (23:54 +0100)]
musl: update to version 1.1.19

This updates musl from a commit between 1.1.18 and 1.1.19 to the final
release of the version 1.1.19.
This mostly fixes bugs in musl.

The size of the uncompressed binary is increased by about 4 KB.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 years agokernel: merge a pending fix for HFSC warnings/slowdowns (fixes FS#1136)
Felix Fietkau [Sat, 10 Mar 2018 09:09:07 +0000 (10:09 +0100)]
kernel: merge a pending fix for HFSC warnings/slowdowns (fixes FS#1136)

Signed-off-by: Felix Fietkau <nbd@nbd.name>
6 years agokernel: unroll MIPS r4k cache blast function
Felix Fietkau [Mon, 4 Dec 2017 21:44:33 +0000 (22:44 +0100)]
kernel: unroll MIPS r4k cache blast function

Optimize the compiler output for larger cache blast cases that are
common for DMA-based networking.

On ar71xx, I measured a routing throughput increase of ~8%

Signed-off-by: Ben Menchaca <ben.menchaca@qca.qualcomm.com>
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
6 years agomac80211: minstrel: make short preamble CCK available when not used at connect time
Felix Fietkau [Thu, 8 Mar 2018 21:54:20 +0000 (22:54 +0100)]
mac80211: minstrel: make short preamble CCK available when not used at connect time

The BSS short preamble state can change without rate control
update notification.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
6 years agomac80211: fix a tx queue memory accounting error
Felix Fietkau [Thu, 8 Mar 2018 20:13:25 +0000 (21:13 +0100)]
mac80211: fix a tx queue memory accounting error

Fixes rare hard to trigger tx hangs after some time

Signed-off-by: Felix Fietkau <nbd@nbd.name>
6 years agosunxi: Fix B53 swconfig driver for Lamobo R1
Hauke Mehrtens [Thu, 8 Mar 2018 21:24:37 +0000 (22:24 +0100)]
sunxi: Fix B53 swconfig driver for Lamobo R1

This reverts the changes needed for the upstream b53 DSA switch driver
to use the OpenWrt b43 swconfig switch driver instead.

Tested-by: TheWerthFam <thewerthfam@gmail.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 years agosunxi: NanoPi NEO Plus2 backport Gigabit Ethernet DT node
Antony Antony [Tue, 6 Mar 2018 19:08:42 +0000 (20:08 +0100)]
sunxi: NanoPi NEO Plus2 backport Gigabit Ethernet DT node

Kernel 4.16 commit 27d7f9297027

Signed-off-by: Antony Antony <antony@phenome.org>
6 years agomvebu: new subtarget cortex A53
Tomasz Maciej Nowak [Wed, 7 Mar 2018 21:10:02 +0000 (22:10 +0100)]
mvebu: new subtarget cortex A53

This commit introduces new subtarget for Marvell EBU Armada Cortex A53
processor based devices.

The first device is Globalscale ESPRESSObin. Some hardware specs:

SoC: Marvell Armada 3700LP (88F3720) dual core ARM Cortex A53
     processor up to 1.2GHz
RAM: 512MB, 1GB or 2GB DDR3
Storage: SATA interface
         µSD card slot with footprint for an optional 4GB EMMC
         4MB SPI NOR flash for bootloader
Ethernet: Topaz Networking Switch (88E6341) with 3x GbE ports
Connectors: USB 3.0
            USB 2.0
            µUSB port connected to PL2303SA (USB to serial bridge
            controller) for UART access
Expansion: 2x 46-pin GPIO headers for accessories and shields with
           I2C, GPIOs, PWM, UART, SPI, MMC, etc
           MiniPCIe slot
Misc: Reset button, JTAG interface

Currently booting only from µSD card is supported.
The boards depending on date of dispatch can come with various U-Boot
versions. For the newest version 2017.03-armada-17.10 no manual
intervention should be needed to boot OpenWrt image. For the older ones
it's necessary to modify default U-Boot environment:

 1. Interrupt boot process to run U-Boot command line,

 2. Run following commands:
    (for version 2017.03-armada-17.06 and 2017.03-armada-17.08)
     setenv bootcmd "load mmc 0:1 0x4d00000 boot.scr; source 0x4d00000"
     saveenv

    (for version 2015.01-armada-17.02 and 2015.01-armada-17.04)
     setenv bootargs "console=ttyMV0,115200 root=/dev/mmcblk0p2 rw rootwait"
     setenv bootcmd "ext4load mmc 0:1 ${fdt_addr} armada-3720-espressobin.dtb; ext4load mmc 0:1 ${kernel_addr} Image; booti ${kernel_addr} - ${fdt_addr}"
     saveenv

 3. Poweroff, insert SD card with OpenWrt image, boot and enjoy.

Signed-off-by: Tomasz Maciej Nowak <tomek_n@o2.pl>
6 years agomvebu: Add subtarget for Cortex A9 build
Hauke Mehrtens [Wed, 7 Mar 2018 21:10:01 +0000 (22:10 +0100)]
mvebu: Add subtarget for Cortex A9 build

This is in preparation for adding a subtarget for the Cortex A53 later.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 years agomvebu: add support for Turris Omnia
Ryan Mounce [Fri, 2 Jun 2017 16:31:06 +0000 (02:01 +0930)]
mvebu: add support for Turris Omnia

Adds support for the Turris Omnia and builds an eMMC sysupgrade image in
the same format as the SolidRun ClearFog.

An initramfs image in the simple yet Omnia-specific 'medkit' image format
is also built in order to ease the initial flashing process.

Notable hardware support omissions are support for switching between SFP
cage and copper PHY, and RGB LED control.

Due to a current limitation of DSA, only 1/2 CPU switch uplinks are used.

Specifications:
- Marvell Armada 385 1.6GHz dual-core ARMv7 CPU
- 1GB DDR3 RAM
- 8GB eMMC Flash
- 5x Gigabit LAN via Marvell 88E6176 Switch (2x RGMII CPU ports)
- 1x switchable RJ45 (88E1514 PHY) / SFP SGMII WAN
- 2x USB 3.0
- 12x dimmable RGB LEDs controlled by independent MCU
- 3x Mini PCIe slots
- Optional Compex WLE200N2 Mini PCIe AR9287 2x2 802.11b/g/n (2.4GHz)
- Optional Compex WLE900VX Mini PCIe QCA9880 3x3 802.11ac (2.4 / 5GHz)
- Optional Quectel EC20 Mini PCIe LTE modem

Flash instructions:
If the U-Boot environment has been modified previously (likely manually via
serial console), first use serial to reset the default environment.
=> env default -a
=> saveenv

Method 1 - USB 'medkit' image w/o serial
- Copy openwrt-mvebu-turris-omnia-sysupgrade.img.gz and
omnia-medkit-openwrt-mvebu-turris-omnia-initramfs.tar.gz to the root of a
USB flash drive formatted with FAT32 / ext2/3/4 / btrfs / XFS.
Note that the medkit MUST be named omnia-medkit*.tar.gz
- Disconnect other USB devices from the Omnia and connect the flash drive
to either USB port.
- Power on the Omnia and hold down the rear reset button until 4 LEDs are
illuminated, then release.
- Wait approximately 2 minutes for the Turris Omnia to flash itself with
the temporary image, during which LEDs will change multiple times.
- Connect a computer to a LAN port of the Turris Omnia with a DHCP client
- (if necessary) ssh-keygen -R 192.168.1.1
- ssh root@192.168.1.1
$ mount /dev/sda1 /mnt
$ sysupgrade /mnt/openwrt-mvebu-turris-omnia-sysupgrade.img.gz
- Wait another minute for the final OpenWrt image to be flashed. The Turris
Omnia will reboot itself and you can remove the flash drive.

Method 2 - TFTP w/ serial
- Extract omnia-medkit-openwrt-mvebu-turris-omnia-initramfs.tar.gz and copy
dtb + zImage to your TFTP server (rename if desired)
- Connect Turris Omnia WAN port to DHCP-enabled network with TFTP server
- Connect serial console and interrupt U-Boot
=> dhcp
=> setenv serverip <tftp_server_ip_here>
=> tftpboot 0x01000000 zImage
=> tftpboot 0x02000000 dtb
=> bootz 0x01000000 - 0x02000000
- OpenWrt will now boot from ramdisk
- Download openwrt-mvebu-turris-omnia-sysupgrade.img.gz to /tmp/
$ sysupgrade /tmp/openwrt-mvebu-turris-omnia-sysupgrade.img.gz
- Wait another minute for the final OpenWrt image to be flashed. The Turris
Omnia will reboot itself.

Signed-off-by: Ryan Mounce <ryan@mounce.com.au>
6 years agomvebu: generate ramdisk image by default
Ryan Mounce [Thu, 13 Jul 2017 14:41:22 +0000 (00:11 +0930)]
mvebu: generate ramdisk image by default

ramdisk images must be used in the installation process for upcoming
Turris Omnia support.

Signed-off-by: Ryan Mounce <ryan@mounce.com.au>
6 years agomvebu: disable DSA DT nodes for boards using mvsw61xx
Ryan Mounce [Mon, 19 Feb 2018 14:01:34 +0000 (00:31 +1030)]
mvebu: disable DSA DT nodes for boards using mvsw61xx

As at this commit, DSA is not enabled in the kernel config for mvebu, so these
nodes have been ignored. In preparation for the first mvebu board using DSA,
disable these nodes for existing boards to avoid issues.

Signed-off-by: Ryan Mounce <ryan@mounce.com.au>
6 years agofirmware: ath10k-firmware: update QCA9984 firmware to 10.4-3.5.3-00053
Henryk Heisig [Sun, 18 Feb 2018 08:47:13 +0000 (09:47 +0100)]
firmware: ath10k-firmware: update QCA9984 firmware to 10.4-3.5.3-00053

This patch updates ath10k-firmware to use the
firmware-5.bin_10.4-3.5.3-00053 firmware for the QCA9984.

The update fixes "ath10k_pci 0001:01:00.0: Invalid VHT mcs 15 peer
stats" spamming the kernel ring buffer at very high frequencies, but
introduces the new "ath10k_pci 0001:01:00.0: Unknown eventid: 36925".
This new warning doesn't appear to cause problems in practice and is
only emitted relatively rarely, not causing dmesg to overflow within
minutes.

Tested on the ZyXEL NBG6817; early feedback also suggests this firmware
to work well (with the same fixes and caveats) on the Netgear r7800 as
well.

Signed-off-by: Stefan Lippers-Hollmann <s.l-h@gmx.de>
Signed-off-by: Henryk Heisig <hyniu@o2.pl>
6 years agofirmware: ath10k-firmware: update to 2018-02-09
Henryk Heisig [Sat, 17 Feb 2018 10:26:23 +0000 (11:26 +0100)]
firmware: ath10k-firmware: update to 2018-02-09

This patch updates ath10k-firmware to last commit and use the
firmware-5.bin_10.4-3.5.3-00053 firmware for the QCA9888.

Signed-off-by: Henryk Heisig <hyniu@o2.pl>
6 years agoutil-linux: added unshare and nsenter executables
Toni Uhlig [Sat, 3 Mar 2018 21:18:28 +0000 (22:18 +0100)]
util-linux: added unshare and nsenter executables

Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
6 years agoiperf3: update to 3.5
Philip Prindeville [Fri, 2 Mar 2018 22:09:18 +0000 (15:09 -0700)]
iperf3: update to 3.5

Get rid of patches which are already upstream.

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
6 years agoe2fsprogs: bump to 1.44.0
Ansuel Smith [Fri, 9 Mar 2018 01:29:58 +0000 (02:29 +0100)]
e2fsprogs: bump to 1.44.0

Fix compilation error

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
6 years agoopenvpn: update to 2.4.5
Magnus Kroken [Sat, 3 Mar 2018 00:11:07 +0000 (01:11 +0100)]
openvpn: update to 2.4.5

Signed-off-by: Magnus Kroken <mkroken@gmail.com>
Tested-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
6 years agolinux-firmware: bump firmware for Intel Wireless 8260AC to version 31
Stijn Segers [Wed, 7 Mar 2018 21:25:12 +0000 (22:25 +0100)]
linux-firmware: bump firmware for Intel Wireless 8260AC to version 31

Bump the firmware for 8260AC and related hardware to version 31.

Signed-off-by: Stijn Segers <foss@volatilesystems.org>
6 years agokernel: bump 4.9 to 4.9.86
Koen Vandeputte [Mon, 5 Mar 2018 16:34:07 +0000 (17:34 +0100)]
kernel: bump 4.9 to 4.9.86

- Refreshed all patches
- Removed 1 patch which got upstreamed

Compile tested on: ar71xx (Rocket M5, Mikrotik RB2011)
Runtime tested on: ar71xx (Rocket M5, Mikrotik RB2011)

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
6 years agokernel: bump to version 4.14.25
Kabuli Chana [Fri, 9 Mar 2018 17:33:04 +0000 (10:33 -0700)]
kernel: bump to version 4.14.25

compile/test target mvebu/rango

Signed-off-by: Kabuli Chana <newtownBuild@gmail.com>
6 years agoar71xx: fix double registration of usb host mode devices, add usb client support...
Felix Fietkau [Fri, 9 Mar 2018 17:22:18 +0000 (18:22 +0100)]
ar71xx: fix double registration of usb host mode devices, add usb client support for qca955x

Only register the chipidea usb device if the strapping option indicates
device mode. If not, use the regular ehci platform driver.

Add qca955x device mode support, tested on 8devices Rambutan.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
6 years agoinclue/image.mk: fix package installation for per-device rootfs
Matthias Schiffer [Fri, 9 Mar 2018 07:18:54 +0000 (08:18 +0100)]
inclue/image.mk: fix package installation for per-device rootfs

Fixes FS#1421.

Fixes: 2fbf669730bf ("imagebuilder: reuse rootfs preparation from rootfs.mk")
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
6 years agoebtables: update to latest git 2018-01-17
Hans Dedecker [Thu, 8 Mar 2018 17:23:25 +0000 (18:23 +0100)]
ebtables: update to latest git 2018-01-17

068ba95 Fix locking if LOCKDIR does not exist

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
6 years agouml: Remove 4.4 patches
Florian Fainelli [Sat, 16 Dec 2017 22:37:51 +0000 (14:37 -0800)]
uml: Remove 4.4 patches

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
6 years agofirewall: bump to git HEAD
Stijn Tintel [Fri, 2 Mar 2018 10:14:11 +0000 (11:14 +0100)]
firewall: bump to git HEAD

392811a ubus: let fw3_ubus_address() return the number of resolved addresses
359adcf options: emit an empty address item when resolving networks fails
503db4a zones: disable masq when resolving of all masq_src or masq_dest items failed
f50a524 helpers: implement explicit CT helper assignment support
a3ef503 zones: allow per-table log control
8ef12cb iptables: fix possible NULL pointer access on constructing rule masks

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
6 years agobase-files: tune fragment queue thresholds for available system memory
Matthias Schiffer [Mon, 5 Mar 2018 08:13:53 +0000 (09:13 +0100)]
base-files: tune fragment queue thresholds for available system memory

The default fragment low/high thresholds are 3 and 4 MB. On devices with
only 32MB RAM, these settings may lead to OOM when many fragments that
cannot be reassembled are received. Decrease fragment low/high thresholds
to 384 and 512 kB on devices with less than 64 MB RAM.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
6 years agobcm53xx: include patch adding WZR-900DHP LEDs support
Rafał Miłecki [Wed, 7 Mar 2018 16:00:30 +0000 (17:00 +0100)]
bcm53xx: include patch adding WZR-900DHP LEDs support

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
6 years agoinclude/package-defaults.mk: fix default Build/Prepare with empty ./src
Matthias Schiffer [Tue, 6 Mar 2018 20:55:01 +0000 (21:55 +0100)]
include/package-defaults.mk: fix default Build/Prepare with empty ./src

Copying ./src/* would fail when src exists, but is empty or only contains
hidden files.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
6 years agoinclude/image.mk: base package-list manifest on unprepared rootfs
Matthias Schiffer [Tue, 6 Mar 2018 13:42:37 +0000 (14:42 +0100)]
include/image.mk: base package-list manifest on unprepared rootfs

With CONFIG_CLEAN_IPKG, the prepared rootfs does not have a full opkg
status file.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
6 years agoimagebuilder: remove split patch dirs from imagebuilder archive
Matthias Schiffer [Tue, 6 Mar 2018 20:50:05 +0000 (21:50 +0100)]
imagebuilder: remove split patch dirs from imagebuilder archive

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
6 years agoimagebuilder: reuse rootfs preparation from rootfs.mk
Matthias Schiffer [Tue, 6 Mar 2018 08:38:29 +0000 (09:38 +0100)]
imagebuilder: reuse rootfs preparation from rootfs.mk

In addition to removing redundant code, this fixes various issues in
IB-generated images that have been fixed in prepare_rootfs before,
including better handling of CONFIG_CLEAN_IPKG and enabling of initscripts
from FILES.

We also reuse the opkg macro and remove --force-... flags that have been
removed from rootfs.mk as well.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
6 years agoinclude/rootfs.mk: pass additional files dir to prepare_rootfs as an argument
Matthias Schiffer [Tue, 6 Mar 2018 20:06:30 +0000 (21:06 +0100)]
include/rootfs.mk: pass additional files dir to prepare_rootfs as an argument

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
6 years agoinclude/rootfs.mk: retain list of conffiles with CONFIG_CLEAN_IPKG
Matthias Schiffer [Tue, 6 Mar 2018 13:29:46 +0000 (14:29 +0100)]
include/rootfs.mk: retain list of conffiles with CONFIG_CLEAN_IPKG

/usr/lib/opkg/status must not be removed completely, otherwise the
packages' conffile lists will be missing. Replace it with a reduced version
only containing the conffile entries.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
6 years agoinclude/rootfs.mk: do not remove opkg prerm scripts during rootfs preparation
Matthias Schiffer [Tue, 6 Mar 2018 07:49:14 +0000 (08:49 +0100)]
include/rootfs.mk: do not remove opkg prerm scripts during rootfs preparation

When a user removes a preinstalled opkg package, the package's prerm script
(and in particular our default_prerm) should run.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
6 years agobase-files: sysupgrade: do not rely on opkg to list changed conffiles
Matthias Schiffer [Tue, 6 Mar 2018 07:25:32 +0000 (08:25 +0100)]
base-files: sysupgrade: do not rely on opkg to list changed conffiles

Many packages use the opkg conffiles field to list configuration files that
are to be retained on upgrades. Make this work on systems without opkg.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
6 years agolantiq/xrx200: add usif support to dts files
Martin Schiller [Fri, 23 Feb 2018 13:15:49 +0000 (14:15 +0100)]
lantiq/xrx200: add usif support to dts files

The Lantiq XRX200 aka VR9 doesn't have an asc0. Instead,
there is an USIF module which can either be an UART or a
SPI Controller.

Signed-off-by: Martin Schiller <ms@dev.tdt.de>
6 years agolantiq: ltq-adsl: deactivate ASLR support
Mathias Kresin [Tue, 6 Mar 2018 18:43:40 +0000 (19:43 +0100)]
lantiq: ltq-adsl: deactivate ASLR support

The package still leaks some user space linker options into the kernel
space. This breaks the build when ASLR is activated, deactivate it for
now.

Signed-off-by: Mathias Kresin <dev@kresin.me>
6 years agoramips: mt7620n: enable port 4 as EPHY by default
Giuseppe Lippolis [Sat, 24 Feb 2018 08:45:12 +0000 (09:45 +0100)]
ramips: mt7620n: enable port 4 as EPHY by default

According to the datasheet the mt7620n have a fixed switch configuration
with 5 ephy (10/100) port. No RGMII configuration is possible.

Drop the mdio node as well. Without RGMII, the mdio node doesn't make any
sense

Signed-off-by: Giuseppe Lippolis <giu.lippolis@gmail.com>
[drop mdio node, enable port4 by default]
Signed-off-by: Mathias Kresin <dev@kresin.me>
6 years agoramips: mt7620: power up ephy port 4
Pawel Dembicki [Mon, 19 Feb 2018 21:15:56 +0000 (22:15 +0100)]
ramips: mt7620: power up ephy port 4

In some boards port 4 of mt7620 switch is powered down in bootloader
configuration as lan/wan package leak mitigation.

Reset ephy port 4 to default settings to power up the port.

Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
[clarify issue in commit message]
Signed-off-by: Mathias Kresin <dev@kresin.me>
6 years agowireguard: bump to 20180304
Jason A. Donenfeld [Mon, 5 Mar 2018 10:31:53 +0000 (11:31 +0100)]
wireguard: bump to 20180304

7c0d711 version: bump snapshot
b6a5cc0 contrib: add extract-handshakes kprobe example
37dc953 wg-quick: if resolvconf/run/iface exists, use it
1f9be19 wg-quick: if resolvconf/interface-order exists, use it
4d2d395 noise: align static_identity keys
14395d2 compat: use correct -include path
38c6d8f noise: fix function prototype
302d0c0 global: in gnu code, use un-underscored asm
ff4e06b messages: MESSAGE_TOTAL is unused
ea81962 crypto: read only after init
e35f409 Kconfig: require DST_CACHE explicitly
9d5baf7 Revert "contrib: keygen-html: rewrite in pure javascript"
6e09a46 contrib: keygen-html: rewrite in pure javascript
e0af0f4 compat: workaround netlink refcount bug
ec65415 contrib: embedded-wg-library: add key generation functions
06099b8 allowedips: fix comment style
ce04251 contrib: embedded-wg-library: add ability to add and del interfaces
7403191 queueing: skb_reset: mark as xnet

Changes:

* queueing: skb_reset: mark as xnet

This allows cgroups to classify packets.

* contrib: embedded-wg-library: add ability to add and del interfaces
* contrib: embedded-wg-library: add key generation functions

The embeddable library gains a few extra tricks, for people implementing
plugins for various network managers.

* crypto: read only after init
* allowedips: fix comment style
* messages: MESSAGE_TOTAL is unused
* global: in gnu code, use un-underscored asm
* noise: fix function prototype

Small cleanups.

* compat: workaround netlink refcount bug

An upstream refcounting bug meant that in certain situations it became
impossible to unload the module. So, we work around it in the compat code. The
problem has been fixed in 4.16.

* contrib: keygen-html: rewrite in pure javascript
* Revert "contrib: keygen-html: rewrite in pure javascript"

We nearly moved away from emscripten'ing the fiat32 code, but the resultant
floating point javascript was just too terrifying.

* Kconfig: require DST_CACHE explicitly

Required for certain frankenkernels.

* compat: use correct -include path

Fixes certain out-of-tree build systems.

* noise: align static_identity keys

Gives us better alignment of private keys.

* wg-quick: if resolvconf/interface-order exists, use it
* wg-quick: if resolvconf/run/iface exists, use it

Better compatibility with Debian's resolvconf.

* contrib: add extract-handshakes kprobe example

Small utility for extracting ephemeral key data from the kernel's memory.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com> (git log --oneline description)
6 years agonghttp2: bump to 1.31.0
Hans Dedecker [Mon, 5 Mar 2018 09:23:09 +0000 (10:23 +0100)]
nghttp2: bump to 1.31.0

6e744662 Update bash_completion
478eac09 Update manual pages
88e2029e Bump up version number to 1.31.0, LT revision to 30:0:16
45d76cf5 nghttpx: Close listening socket on graceful shutdown
54573f28 Merge pull request #1137 from nghttp2/session-set-user-data
17793e99 Add nghttp2_session_set_user_data() public API function
5eac3c90 Update manual pages
e70195ae nghttpx: Update doc
fe51e7fa Merge pull request #1130 from nghttp2/avoid-inet_pton-macro
eb951c2c src: Define nghttp2_inet_pton wrapper to avoid inet_pton macro
39f0ce7c Merge pull request #1126 from nghttp2/nghttpx-expired-client-cert
65157811 Merge pull request #1123 from nghttp2/mruby-client-cert-not-before-after
e8af7afc nghttpx: Add an option to accept expired client certificate
38abfd18 nghttpx: Add mruby tls_client_not_before, and tls_client_not_after
ff3edc09 nghttpx: Fix potential memory leak
0bb15406 Bump up version number to 1.31.0-DEV

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
6 years agomt76: update to the latest version
Felix Fietkau [Mon, 26 Feb 2018 21:15:24 +0000 (22:15 +0100)]
mt76: update to the latest version

cda627f mt76: add missing VHT maximum A-MPDU length capability
ffa2069 mt76: fix potential sleep in atomic context

Signed-off-by: Felix Fietkau <nbd@nbd.name>
6 years agokernel: remove an old kernel compatibility line from module packaging
Felix Fietkau [Thu, 22 Feb 2018 11:16:19 +0000 (12:16 +0100)]
kernel: remove an old kernel compatibility line from module packaging

Signed-off-by: Felix Fietkau <nbd@nbd.name>
6 years agoar71xx: fix mii bus irq assignment
Felix Fietkau [Sat, 3 Mar 2018 11:23:51 +0000 (12:23 +0100)]
ar71xx: fix mii bus irq assignment

Signed-off-by: Felix Fietkau <nbd@nbd.name>
6 years agoar71xx: remove pdata->fifo_cfg*
Felix Fietkau [Fri, 2 Mar 2018 20:30:10 +0000 (21:30 +0100)]
ar71xx: remove pdata->fifo_cfg*

The values are the same for all chipsets that use it

Signed-off-by: Felix Fietkau <nbd@nbd.name>
6 years agomac80211: avoid sampling rates that are too slow, improves throughput
Felix Fietkau [Sat, 3 Mar 2018 17:51:49 +0000 (18:51 +0100)]
mac80211: avoid sampling rates that are too slow, improves throughput

Signed-off-by: Felix Fietkau <nbd@nbd.name>
6 years agokernel: bump 4.4 to 4.4.119
Stijn Segers [Fri, 2 Mar 2018 07:31:03 +0000 (08:31 +0100)]
kernel: bump 4.4 to 4.4.119

This bumps the 4.4. kernel in master to 4.4.119.
Includes more Meltdown & Spectre mitigation.

* Refresh patches.
* Refresh x86/config for RETPOLINE.
* Deleted 8049-PCI-layerscape-Add-fsl-ls2085a-pcie-compatible-ID.patch (accepted upstream)
* Deleted 8050-PCI-layerscape-Fix-MSG-TLP-drop-setting.patch (accepted upstream)
* Deleted 650-pppoe_header_pad.patch (does not apply anymore (code was replaced)).

Bumps from 4.4.112 to 4.4.115 were handled by Kevin Darbyshire-Bryant.

Compile-tested on: ar71xx & oxnas.

Signed-off-by: Stijn Segers <foss@volatilesystems.org>
Tested-by: Rosen Penev <rosenp@gmail.com>
6 years agokernel: bump 4.9 to 4.9.85
Magnus Kroken [Sat, 3 Mar 2018 00:12:07 +0000 (01:12 +0100)]
kernel: bump 4.9 to 4.9.85

Signed-off-by: Magnus Kroken <mkroken@gmail.com>
6 years agolantiq: Deactivate ASLR support for some applications
Hauke Mehrtens [Sat, 3 Mar 2018 00:21:08 +0000 (01:21 +0100)]
lantiq: Deactivate ASLR support for some applications

The lantiq components still leak some user space linker options into the
kernel space. This breaks with build when ASLR is activated, deactivate
it for now on these packages.

Fixes: FS#1391
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 years agolantiq: ltq-vmmc: Do not leak user space CFLAGS into kernel space
Hauke Mehrtens [Fri, 2 Mar 2018 23:52:16 +0000 (00:52 +0100)]
lantiq: ltq-vmmc: Do not leak user space CFLAGS into kernel space

Do not leak the user space CFLAGS into the kernel space any more, this
allows us to activate the MIPS16 build.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 years agolantiq: ltq-tapi: Do not leak user space CFLAGS into kernel space
Hauke Mehrtens [Fri, 2 Mar 2018 23:51:40 +0000 (00:51 +0100)]
lantiq: ltq-tapi: Do not leak user space CFLAGS into kernel space

Do not leak the user space CFLAGS into the kernel space any more, this
allows us to activate the MIPS16 build.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 years agolantiq: ltq-adsl: Do not leak user space CFLAGS into kernel space
Hauke Mehrtens [Sat, 3 Mar 2018 00:38:50 +0000 (01:38 +0100)]
lantiq: ltq-adsl: Do not leak user space CFLAGS into kernel space

Do not leak the user space CFLAGS into the kernel space any more, this
allows us to activate the MIPS16 build.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 years agolantiq: ltq-vdsl: Do not leak user space CFLAGS into kernel space
Hauke Mehrtens [Fri, 2 Mar 2018 23:25:06 +0000 (00:25 +0100)]
lantiq: ltq-vdsl: Do not leak user space CFLAGS into kernel space

Do not leak the user space CFLAGS into the kernel space any more, this
allows us to activate the MIPS16 build.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 years agolantiq: ltq-vdsl-mei: Do not leak user space CFLAGS into kernel space
Hauke Mehrtens [Fri, 2 Mar 2018 23:23:55 +0000 (00:23 +0100)]
lantiq: ltq-vdsl-mei: Do not leak user space CFLAGS into kernel space

Do not leak the user space CFLAGS into the kernel space any more, this
allows us to activate the MIPS16 build.

This decreases the size of the ipk file from 87589 bytes to 81267 bytes.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 years agolantiq: ltq-ifxos: Do not force O3 build any more
Hauke Mehrtens [Fri, 2 Mar 2018 23:22:49 +0000 (00:22 +0100)]
lantiq: ltq-ifxos: Do not force O3 build any more

Do not force to build with O3 optimization any more, but take what was
selected by the OpenWrt build system.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 years agolantiq: ltq-ifxos: activate build with mips16
Hauke Mehrtens [Fri, 2 Mar 2018 23:20:43 +0000 (00:20 +0100)]
lantiq: ltq-ifxos: activate build with mips16

The build process does not leak the user space cflags into the kernel
build process any more, this allows to activate MIPS16 builds.
This was fixed with some update of ifxos.

This decreases size of the  libifxos.a and the ltq-vdsl-app
old:
78320 libifxos.a
44383 ltq-vdsl-app_4.17.18.6-2_mips_24kc.ipk

new:
66852 libifxos.a
43506 ltq-vdsl-app_4.17.18.6-2_mips_24kc.ipk

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 years agokernel: generic: Add kernel configuration options
Hauke Mehrtens [Fri, 2 Mar 2018 21:32:13 +0000 (22:32 +0100)]
kernel: generic: Add kernel configuration options

These options are needed for the mvebu arm64 target.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 years agokernel: bump 4.14 to 4.14.23
Stijn Segers [Wed, 28 Feb 2018 21:53:37 +0000 (22:53 +0100)]
kernel: bump 4.14 to 4.14.23

This patch bumps the 4.14 kernel to .23.
- Refreshed patches.
- Deleted bcm53xx/patches-4.14/089-PCI-iproc-Fix-NULL-pointer-dereference-for-BCMA.patch. Has been accepted upstream.
- Deleted generic/pending-4.14/821-usb-Remove-annoying-warning-about-bogus-URB.patch. The upstream URB code was changed,
  the patch no longer applies. I discussed this with the patch author and removed it for now, we'll see how it goes.

Compile-tested on: ramips/mt7621, x86/64
Run-tested on: ramips/mt7621, x86/64

Signed-off-by: Stijn Segers <foss@volatilesystems.org>
6 years agomvebu: base-files: moving on from net-tools
Tomasz Maciej Nowak [Wed, 24 Jan 2018 15:41:32 +0000 (16:41 +0100)]
mvebu: base-files: moving on from net-tools

Remove dependency on net-tools, replacing calls to ifconfig with iproute
equivalent, in functions changing interface MAC addresses.

Signed-off-by: Tomasz Maciej Nowak <tomek_n@o2.pl>
6 years agomvebu: rename clearfog sysupgrade script and functions
Tomasz Maciej Nowak [Wed, 24 Jan 2018 15:39:48 +0000 (16:39 +0100)]
mvebu: rename clearfog sysupgrade script and functions

Cosmetic name change of ClearFog sysupgrade script and its functions to
more generic sdcard. This way it won't be confusing for other future
device additions.

Signed-off-by: Tomasz Maciej Nowak <tomek_n@o2.pl>
6 years agomvebu: remove fs declaration in mount commands
Tomasz Maciej Nowak [Wed, 24 Jan 2018 23:04:56 +0000 (00:04 +0100)]
mvebu: remove fs declaration in mount commands

Allows to have other file system for boot partition without breaking
sysupgrade.

Signed-off-by: Tomasz Maciej Nowak <tomek_n@o2.pl>
6 years agomvebu: unify boot.scr creation
Tomasz Maciej Nowak [Wed, 14 Feb 2018 16:34:38 +0000 (17:34 +0100)]
mvebu: unify boot.scr creation

Unify boot.scr generation so Makefile for device image generation won't
grow without a reason. Also make boot-scr step optional.

Signed-off-by: Tomasz Maciej Nowak <tomek_n@o2.pl>
6 years agomvebu: make sdcard bootloader option configurable
Tomasz Maciej Nowak [Wed, 14 Feb 2018 16:28:09 +0000 (17:28 +0100)]
mvebu: make sdcard bootloader option configurable

Remove the necessity for boot loader from SD card image creation process
and make it configurable.

Signed-off-by: Tomasz Maciej Nowak <tomek_n@o2.pl>
6 years agomvebu: fix partition type and signature for sdcard
Tomasz Maciej Nowak [Wed, 24 Jan 2018 14:32:58 +0000 (15:32 +0100)]
mvebu: fix partition type and signature for sdcard

Previously the partition signature was assigned from provided type. Now
both are corrected wherein signature is always generated from
SOURCE_DATE_EPOCH. With that the root file system can be identified
by PARTUUID string, without relying on static declaration of device node.
This commit also does some cosmetics, removing trailing whitespace and
replacing spaces with tab.

Signed-off-by: Tomasz Maciej Nowak <tomek_n@o2.pl>
6 years agomvebu: remove redefinition of image name for clearfog
Tomasz Maciej Nowak [Wed, 14 Feb 2018 16:20:00 +0000 (17:20 +0100)]
mvebu: remove redefinition of image name for clearfog

The IMAGE_NAME redefinition causes overwriting of generated SD card
image when multiple root file system types are selected. In result only
single SD card image is generated. This commit fixes this behaviour.

Signed-off-by: Tomasz Maciej Nowak <tomek_n@o2.pl>
6 years agomvebu: clearfog: use partition uuid for root= bootarg
Josua Mayer [Thu, 19 Oct 2017 07:22:11 +0000 (09:22 +0200)]
mvebu: clearfog: use partition uuid for root= bootarg

U-Boot already knows where it found the boot.scr, and
figuring out the partition UUID becomes trivial at this point.
This change allows booting OpenWrt from whatever storage it has been
flashed to: SD card, eMMC, USB disk or SATA disk.

Signed-off-by: Josua Mayer <josua.mayer97@gmail.com>
[replace lede with openwrt, redact commit message]
Signed-off-by: Tomasz Maciej Nowak <tomek_n@o2.pl>
6 years agomvebu: Use kernel 4.14 by default
Hauke Mehrtens [Thu, 1 Mar 2018 20:45:24 +0000 (21:45 +0100)]
mvebu: Use kernel 4.14 by default

I am not aware of any regressions in kernel 4.14 compared to kernel 4.9.

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