librecmc/librecmc.git
6 years agotreewide: move nand_do_upgrade call to platform_do_upgrade
Mathias Kresin [Mon, 18 Dec 2017 19:32:18 +0000 (20:32 +0100)]
treewide: move nand_do_upgrade call to platform_do_upgrade

Calling nand_do_upgrade() from platform_pre_upgrade() was deprecated
with 30f61a34b4cf ("base-files: always use staged sysupgrade").

Update the platform upgrade code to use platform_do_upgrade() for NAND
images as well.

Signed-off-by: Mathias Kresin <dev@kresin.me>
6 years agotreewide: remove obsolete sysupgrade watchdog kill
Mathias Kresin [Mon, 18 Dec 2017 17:42:49 +0000 (18:42 +0100)]
treewide: remove obsolete sysupgrade watchdog kill

The watchdog kill command was meant for busybox watchdog. Busybox watchdog
was replaced by the procd watchdog mid 2013 with commit df7ce9301a25
("busybox: disable the watchdog utility by default"), which makes the kill
command obsolete since quite some time.

Signed-off-by: Mathias Kresin <dev@kresin.me>
6 years agosunxi: switch to kernel 4.14
Zoltan HERPAI [Fri, 16 Feb 2018 11:20:39 +0000 (12:20 +0100)]
sunxi: switch to kernel 4.14

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
6 years agoRevert "uboot-sunxi: bump to 2017.11"
Zoltan HERPAI [Fri, 16 Feb 2018 10:40:34 +0000 (11:40 +0100)]
Revert "uboot-sunxi: bump to 2017.11"

This reverts commit 805f756d6e4ff5061380baf5e262aec72abcf195.

Move back to 2017.07 until we move sunxi to GCC7.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
6 years agoRevert "uboot-sunxi: refresh patches"
Zoltan HERPAI [Fri, 16 Feb 2018 10:40:01 +0000 (11:40 +0100)]
Revert "uboot-sunxi: refresh patches"

This reverts commit f142de5f44bcba8cb0f12e5b1fd26cd9867cf866.

Revert until we can move to 2017.11

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
6 years agoRevert "uboot-sunxi: fix build by adding comparabilities for old dtc"
Zoltan HERPAI [Fri, 16 Feb 2018 10:39:13 +0000 (11:39 +0100)]
Revert "uboot-sunxi: fix build by adding comparabilities for old dtc"

This reverts commit ef0416666f48e1e7793c4230cec18c8cdd3e1003.

Revert until we can move to 2017.11

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
6 years agokernel: add missing symbols
John Crispin [Fri, 16 Feb 2018 09:01:31 +0000 (10:01 +0100)]
kernel: add missing symbols

These cause mediatek arm to fail full builds

Signed-off-by: John Crispin <john@phrozen.org>
6 years agonftables: update to version 0.8.2
Hauke Mehrtens [Thu, 15 Feb 2018 21:13:17 +0000 (22:13 +0100)]
nftables: update to version 0.8.2

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 years agoiproute2: update to version 4.15.0
Hauke Mehrtens [Thu, 15 Feb 2018 21:12:03 +0000 (22:12 +0100)]
iproute2: update to version 4.15.0

The musl compatibility patches are now included in the upstream version.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 years agombedtls: update to version 2.7.0
Hauke Mehrtens [Thu, 15 Feb 2018 20:58:47 +0000 (21:58 +0100)]
mbedtls: update to version 2.7.0

This fixes the following security problems:
* CVE-2018-0488: Risk of remote code execution when truncated HMAC is enabled
* CVE-2018-0487: Risk of remote code execution when verifying RSASSA-PSS signatures

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 years agoramips: preliminary support for 4.14
Roman Yeryomin [Tue, 16 Jan 2018 22:07:58 +0000 (00:07 +0200)]
ramips: preliminary support for 4.14

- removed upstreamed patches
- 0901-spansion_nand_id_fix.patch is disabled, not clear if it's needed

Signed-off-by: Roman Yeryomin <roman@advem.lv>
Signed-off-by: John Crispin <john@phrozen.org>
6 years agoiwinfo: update to latest git HEAD
Daniel Golle [Thu, 15 Feb 2018 03:56:26 +0000 (04:56 +0100)]
iwinfo: update to latest git HEAD

223e09b add support for expected throughput

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
6 years agoramips: fix reporting effective VLAN ID on MT7621 switches
Jo-Philipp Wich [Tue, 13 Feb 2018 14:58:48 +0000 (15:58 +0100)]
ramips: fix reporting effective VLAN ID on MT7621 switches

On MT7621, the REG_ESW_VLAN_VTIM reads are undefined, causing swconfig
to always report `vid: 0` in swconfig show output.

Since a 4K VLAN table is used on this platform, the VLAN ID always
correponds to the actual VLAN table index so provide a specific MT7621
implementation of the get_vid callback which returns the table index
as VLAN ID.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agoramips: properly map pvid for vlans with remapped vid on mt7530/762x switches
Jo-Philipp Wich [Tue, 13 Feb 2018 14:37:49 +0000 (15:37 +0100)]
ramips: properly map pvid for vlans with remapped vid on mt7530/762x switches

Currently, untagged port primary vlan IDs are set to the VLAN table index,
and not the actual VLAN ID, breaking configurations with IDs deviating from
the VLAN index.

Fix the issue by resolving the per-port pvid property to the target VLAN ID
value before committing to the hardware.

Fixes FS#991, FS#1147, FS#1341

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agoramips: don't clobber vlans with remapped vid on mt7530/762x switches
Jo-Philipp Wich [Sun, 11 Feb 2018 19:24:37 +0000 (20:24 +0100)]
ramips: don't clobber vlans with remapped vid on mt7530/762x switches

Avoid overwriting vlan entries with remapped vid in later iterations of
the vlan enumeration loop of mt7530_apply_config().

Fix the problem by refactoring the code to first reset the entire table,
then reprogram only vlans with members to prevent overwriting configured
vlans with unconfigured ones.

Fixes FS#1147, FS#1341

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agoat91: fix image building with CONFIG_TARGET_MULTI_PROFILE
Jo-Philipp Wich [Tue, 13 Feb 2018 15:12:08 +0000 (16:12 +0100)]
at91: fix image building with CONFIG_TARGET_MULTI_PROFILE

The current image build code has a number of race conditions and interface
contract violations in the custom image build steps:

 - Build/install-zImage, solely used by at91, relies on $(PROFILE_SANITIZED)
   which is not available when building with CONFIG_TARGET_MULTI_PROFILE

 - Build/at91-sdcard, which may run concurrently, creates scratch files at
   fixed locations and manipulates target files directly which can lead
   to file corruption and other unexpected failures

Rename the install-zImage macro to at91-install-zImage and move it to the
at91 image Makefile since this target is the sole user. Also utilize "$@"
as output file name and switch the usage of $(PROFILE_SANITIZED) to
$(DEVICE_NAME) in order to fix naming under multi profile builds.

Fix the at91-sdcard macro to construct scratch file paths relative to "$@",
which is guaranteed to be unique and store the final artifact output in "$@"
as well, instead of inside $(BIN_DIR). The generic image build code takes
care of moving a build steps "$@" output to the final destination in a
concurrency-safe manner.

Finally remove the broken install-zImage from the generic image-commands
Makefile.

Fixes: d7a679a036 ("at91: Install zImage.")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agomediatek: bump to v4.14
John Crispin [Mon, 8 Jan 2018 14:06:24 +0000 (15:06 +0100)]
mediatek: bump to v4.14

This drops support for all the !emmc EVB and adds banannaPi-R2
Also drop mtkhnat until the nftables offoad driver is ready

Signed-off-by: John Crispin <john@phrozen.org>
6 years agoipq806x: add support for GL.iNet GL-B1300
Dongming Han [Thu, 7 Dec 2017 12:48:19 +0000 (20:48 +0800)]
ipq806x: add support for GL.iNet GL-B1300

This patch adds support for GL.iNet GL-B1300

Specification:
- SOC:        IPQ4028 / QCA Dakota
- RAM:        256 MiB
- FLASH:      32 MiB
- ETH:        Qualcomm Atheros QCA8075 Gigabit Switch (2 x LAN, 1 x WAN)
- USB:        1 x 3.0 (via Synopsys DesignWare DWC3 controller in the SoC)
- WLAN1:      Qualcomm Atheros QCA4028 2.4GHz 802.11bgn 2:2x2
- WLAN2:      Qualcomm Atheros QCA4028 5GHz 802.11a/n/ac 2:2x2
- INPUT:      one reset and one WPS button
- LEDS:       3 leds: Power, WIFI(only for 2.4G currently), and one reserved
- UART:       1 x UART on PCB (3.3V, TX, RX, GND) - 115200 8N1

Installation:
Method 1:
- use serial port to stop uboot
- uboot command: run lf
Method 2:
- push down reset button and power on
- wait until three leds constantly on then release
- upgrade by uboot web at http://192.168.1.1
Note:
- the sysupgrade image need to be renamed to lede-gl-b1300.bin in both method.
- the sysupgrade image can be automatically downloaded if tftp server at
  192.168.1.2 have that file.
- the wifi led will be flashing when writing image.

Signed-off-by: Dongming Han <handongming@gl-inet.com>
6 years agoubox: update to latest git HEAD
John Crispin [Wed, 14 Feb 2018 08:28:52 +0000 (09:28 +0100)]
ubox: update to latest git HEAD

128bc35 logread: fix reconnect logd logic
66347ec logread: move the code setting up the request blob out of the main loop
975a258 logread: move output connection setup code out of main loop
b81bea7 logread: cleanup pid file handling
d73e7d2 ubox: Replace strerror(errno) with %m format.

Signed-off-by: John Crispin <john@phrozen.org>
6 years agoarchs38: add HSDK board
Evgeniy Didin [Tue, 13 Feb 2018 14:24:25 +0000 (17:24 +0300)]
archs38: add HSDK board

Synopsys DesignWare HSDK (which stands for ARC HS
Development Kit) is the latest and greatest development
platform that sports quad-core ARC HS38 in real silicon.

Most noticeable features of the board are:
 * Quad-core ARC HS38 CPU running at 1GHz
 * 4Gb of DDR
 * Built-in Vivante GPU (well supported via open source
   Etnaviv drivers)
 * Built-in Wi-Fi/Bluetooth module (RedPine RS-9113)

And as usual we have:
 * [micro] SD-card slot
 * 2 USB 2.0 ports
 * 1Gbit Ethernet port
 * Built-in Digilent JTAG probe
 * Serial port accessible via micro-USB port

For more information about HSDK board visit:
https://www.synopsys.com/dw/ipdir.php?ds=arc-hs-development-kit

Signed-off-by: Evgeniy Didin <Evgeniy.Didin@synopsys.com>
CC: Alexey Brodkin <abrodkin@synopsys.com>
CC: Hauke Mehrtens <hauke@hauke-m.de>
CC: John Crispin <john@phrozen.org>
6 years agoarchs38: switch to kmod-usb2
Evgeniy Didin [Tue, 13 Feb 2018 14:24:24 +0000 (17:24 +0300)]
archs38: switch to kmod-usb2

We have managed to get USB 2.0 working good enough
on all archs38 platforms so we're ready to switch
to much faster USB 2.0.

Signed-off-by: Evgeniy Didin <Evgeniy.Didin@synopsys.com>
CC: Alexey Brodkin <abrodkin@synopsys.com>
CC: Hauke Mehrtens <hauke@hauke-m.de>
CC: John Crispin <john@phrozen.org>
6 years agogeneric: swconfig: reduce lock duration on sysfs files
Kevin Darbyshire-Bryant [Tue, 13 Feb 2018 13:53:50 +0000 (13:53 +0000)]
generic: swconfig: reduce lock duration on sysfs files

sysfs attributes 'port_mask' & 'speed_mask' held locks whilst doing
mundane tasks such as sprintf.  Refactor code to reduce length of time
locks are held unnecessarily.

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
6 years agogeneric: swconfig: add mode led attribute
Kevin Darbyshire-Bryant [Tue, 13 Feb 2018 13:53:49 +0000 (13:53 +0000)]
generic: swconfig: add mode led attribute

Add sysfs 'mode' attribute to swconfig controlled LEDs.

swconfig 'link state' LEDs blink in the presence of port traffic.  This
behaviour becomes more obvious as switches start to support
get_port_stats() e.g. commits 0369e358916ef092a1644334f5dd1412051b68a4,
3056d09b4046e0eb0f6de0f3f5432cd9fa86fc51,
4ddbc43cc15c2fa128a2f169964ef7eb508cf2c5,
4d8a66d9346373c2a7fcac5bdae3f662a9dbd9df.

This blinking can be confusing/distracting if the switch has other LEDs
used to indicate traffic.  Provide a 'mode' sysfs attribute that
controls the blink on traffic behaviour.

mode - either "none" (LED is off) or a space separated list of one or more:

link: LED's normal state reflects whether the link is up (has carrier) or not
tx:   LED blinks on transmitted data
rx:   LED blinks on receive data

Note that 'link' considers any port speed mask that may be applicable.
e.g. if an LED is configured to indicate 1Gbit link speed and mode is
set to 'link rx tx' but the port is connected at 100Mbit then the LED
will not light or blink. A mode of 'tx rx' will blink in the presence of
traffic only if the port matches the rate (if configured)
This maintains compatibility with existing behaviour.

Attribute is 'link tx rx' by default for backwards compatible behaviour.

Many thanks to Thibaut Varene for providing a more sensible led_event
routine after I had mangled the original, and other coding style hints.

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Acked-by: Thibaut VARENE <hacks@slashdirt.org>
6 years agomwlwifi: downgrade to version 10.3.4.0-20180118
Hauke Mehrtens [Tue, 13 Feb 2018 22:21:12 +0000 (23:21 +0100)]
mwlwifi: downgrade to version 10.3.4.0-20180118

Some people reported problems with the current development version, so
go back to the latests more or less release.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 years agomwlwifi: fix compile problem with kernel 4.14
Hauke Mehrtens [Sun, 11 Feb 2018 11:38:24 +0000 (12:38 +0100)]
mwlwifi: fix compile problem with kernel 4.14

vfs_write() is not exported on kernel 4.14 any more and kernel_write()
should be used instead.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 years agomwlwifi: use PKG_SOURCE_DATE instead of version
Hauke Mehrtens [Sun, 11 Feb 2018 11:28:38 +0000 (12:28 +0100)]
mwlwifi: use PKG_SOURCE_DATE instead of version

Using PKG_SOURCE_DATE instead of PKG_VERSION will make the build system
generate the version based on the date and the git hash. This way the
tar file name changes when the git hash changes and this avoids problems
when someone forgets to change the version, but changes the git hash.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 years agomwlwifi: Update to latest commit 20180208
Chris Breuer [Tue, 23 Jan 2018 15:43:28 +0000 (16:43 +0100)]
mwlwifi: Update to latest commit 20180208

Changes since last merge into OpenWrt since 2017-12-14:
 - Added debugfs file tx_hist.
 - Added debugfs file fixed_rate.
 - Added debugfs file ba_hist.
 - Modified the way to establish BA stream.
 - Added code to control BF type.
 - Added functions to check/dump dhcp packet.
 - Upgrade 88W8964 firmware to 9.3.2.4.
 - Added debugfs file coredump.
 - Corrected the way to transmit multicast packets.
 - Change driver version to 10.3.4.0-20180118.
 - Corrected the way to get qos control.
 - Assigned broadcast dhcpoffer to another queue.
 - Separated broadcast and multicast packets. Bump to latest commit 20180206

Signed-off-by: Chris Breuer <github@chrisbreuer.de>
6 years agomvebu: Migrate uci config to new PCIe path
Hauke Mehrtens [Sun, 21 Jan 2018 15:33:34 +0000 (16:33 +0100)]
mvebu: Migrate uci config to new PCIe path

The name of the PCIe controller node in device tree changed between
kernel 4.9 and kernel 4.14. Migrate the configuration when an update
from kernel 4.9 to 4.14 or back is done to the new name to make
the existing wifi configuration compatible with the new names.

This replaces the "pcie-controller" part with "pcie" on all nodes if the
file exists in sys fs.

This is not done in the uci-defualts, because they are getting executed
to late in the boot process. The kernel module gets loaded before the
uci-defaults scripts are executed. When the mwlwifi driver gets loaded
it will trigger an event via hotplug to detect new devices and as the
paths are not in the uci configuration they will be added again.
When the migration is done before the script will detect that they are
already there.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 years agomvebu: Add support for kernel 4.14
Hauke Mehrtens [Thu, 21 Dec 2017 11:13:30 +0000 (12:13 +0100)]
mvebu: Add support for kernel 4.14

Add support for kernel 4.14 to the mvebu target.

This also replaces the old sfp and phylink patches with new versions
from Russell's clearfog-4.13 branch
http://git.arm.linux.org.uk/cgit/linux-arm.git/log/?h=clearfog-4.13

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 years agomvebu: move files to files-4.9 and files-4.4 folder
Hauke Mehrtens [Sat, 23 Dec 2017 16:45:23 +0000 (17:45 +0100)]
mvebu: move files to files-4.9 and files-4.4 folder

This is needed to prevent copying it into kernel 4.14.
These device tree files are already integrated into kernel 4.14 and we
would like to use the upstream versions only.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 years agomac80211: move wifi detect hotplug script to later
Hauke Mehrtens [Sun, 11 Feb 2018 21:58:42 +0000 (22:58 +0100)]
mac80211: move wifi detect hotplug script to later

Make it easily possible to add a custom script in front of this hotplug
script which adds new devices. This is needed for the mvebu target in
which we want to migrate the old configuration before new devices are
getting detected.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 years agokernel: ubifs: create use file system format 4 by default
Hauke Mehrtens [Sun, 21 Jan 2018 15:01:15 +0000 (16:01 +0100)]
kernel: ubifs: create use file system format 4 by default

Instead of creating an ubifs file system with format version 5 by
default on empty UBI volumes use the older format 4 by default. This
will make it possible to mount these file systems also on older kernel
versions.

When a user wants to do a sysupgrade from kernel 4.14 to kernel 4.9 the
old kernel has to read the file system created by the more recent kernel
which currently does not work for ubifs.

This fixes the problem by creating file systems which are compatible
with older kernel versions by default.
Kernel 4.14 will still be able to read and write UBI FS file system
version 5, it will just not be used when a ubifs partition is created
implicitly on an empty UBI volume.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 years agokernel: Add missing config options
Hauke Mehrtens [Tue, 13 Feb 2018 20:55:43 +0000 (21:55 +0100)]
kernel: Add missing config options

These were found when compiling the new octeontx target.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 years agobrcm63xx: drop root parameter from cmdline
Jonas Gorski [Tue, 13 Feb 2018 11:19:29 +0000 (12:19 +0100)]
brcm63xx: drop root parameter from cmdline

The root= parameter overrides the automatic rootfs detection by partition
name, so drop it. Fixes boot from flash after renumeration changes of
partitions due to parser changes.

Fixes FS#1350.

Fixes: a27d59bb4274 ("brcm63xx: switch to new partition layout specification")
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
6 years agotarget.mk: let profile remove from DEFAULT_PACKAGES
Philip Prindeville [Tue, 16 Jan 2018 22:46:44 +0000 (15:46 -0700)]
target.mk: let profile remove from DEFAULT_PACKAGES

In a profile, specifying -pkg in the list of PACKAGES will suppress
it even if it appears in the target's DEFAULT_PACKAGES list.

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
6 years agoipq806x: switch to full dual-boot for the nbg6817 sysupgrade support
Stefan Lippers-Hollmann [Thu, 18 Jan 2018 21:41:44 +0000 (22:41 +0100)]
ipq806x: switch to full dual-boot for the nbg6817 sysupgrade support

Instead of writing to the currently booted partition set, this
implements full dual-boot support for sysupgrade by always writing to
the other, currently inactive, partition set and toggling the dualflag
after a successful flash.

The currently active/ booted partition set is determined by parsing
/proc/cmdline for its rootfs parameter (supplied by the DTS), instead
of reading from the 0:DUAL_FLAG mtd, in order to prevent (potentially)
bricking both partition sets.

Signed-off-by: Stefan Lippers-Hollmann <s.l-h@gmx.de>
6 years agoipq806x: request the first free loop device dynamically for the nbg6817 sysupgrade
Stefan Lippers-Hollmann [Thu, 18 Jan 2018 21:27:08 +0000 (22:27 +0100)]
ipq806x: request the first free loop device dynamically for the nbg6817 sysupgrade

Instead of hardcoding /dev/loop0, it's safer to query for the first
free loop device and assign that dynamically. While /dev/loop0 is a
reasonable assumption immediately following "losetup --detach-all",
detaching the mounted overlay is no longer strictly necessary once
dual-boot support has been added for the nbg6817.

Signed-off-by: Stefan Lippers-Hollmann <s.l-h@gmx.de>
6 years agoipq806x: use absolute the device path in $kernel for the nbg6817 sysupgrade
Stefan Lippers-Hollmann [Thu, 18 Jan 2018 21:18:36 +0000 (22:18 +0100)]
ipq806x: use absolute the device path in $kernel for the nbg6817 sysupgrade

Harmonize the variable usage for $kernel and $rootfs to always contain
the full device path, instead of just its basename.

Signed-off-by: Stefan Lippers-Hollmann <s.l-h@gmx.de>
6 years agoipq806x: support new location of USB PHY kernel module
Luis Araneda [Fri, 22 Dec 2017 03:23:07 +0000 (00:23 -0300)]
ipq806x: support new location of USB PHY kernel module

PHY drivers were grouped into vendor specific directories
by upstream commit 0b56e9a7e8358e59b21d8a425e463072bfae523c

Signed-off-by: Luis Araneda <luaraneda@gmail.com>
6 years agoi2c.mk: sort kernel modules
Lucian Cristian [Sun, 14 Jan 2018 14:27:15 +0000 (16:27 +0200)]
i2c.mk: sort kernel modules

Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
6 years agohwmon.mk: sort kernel modules
Lucian Cristian [Sun, 14 Jan 2018 14:22:40 +0000 (16:22 +0200)]
hwmon.mk: sort kernel modules

Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
6 years agocan.mk: sort modules
Lucian Cristian [Sun, 14 Jan 2018 13:37:06 +0000 (15:37 +0200)]
can.mk: sort modules

Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
6 years agocrypto.mk: sort kernel modules
Lucian Cristian [Sun, 14 Jan 2018 14:06:27 +0000 (16:06 +0200)]
crypto.mk: sort kernel modules

Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
6 years agofs.mk: sort kernel modules
Lucian Cristian [Sun, 14 Jan 2018 14:15:30 +0000 (16:15 +0200)]
fs.mk: sort kernel modules

Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
6 years agofirewire.mk: sort kernel modules
Lucian Cristian [Sun, 14 Jan 2018 14:08:45 +0000 (16:08 +0200)]
firewire.mk: sort kernel modules

Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
6 years agobuild: cleanup leftover qconf files
Alif M. Ahmad [Fri, 12 Jan 2018 08:55:48 +0000 (08:55 +0000)]
build: cleanup leftover qconf files

``make xconfig`` toplevel target will invoke ``make qconf`` inside
./scripts/config directory, which results a ``qconf`` executable.

This commit removes leftover ``qconf`` executable during ``make
config-clean``.

Signed-off-by: Alif M. Ahmad <alive4ever@live.com>
6 years agoar71xx: add more registers to ar71x_regs.h
Julien Dusser [Wed, 20 Dec 2017 14:29:42 +0000 (15:29 +0100)]
ar71xx: add more registers to ar71x_regs.h

Add more registers and flags to ar71x_regs.h for QCA955x and QCA956x
SoCs. Values come from Qualcomm Atheros u-boot code.

Patches can be merged into
622-MIPS-ath79-add-more-register-defines-for-QCA956x-SoC.patch

Signed-off-by: Julien Dusser <julien.dusser@free.fr>
6 years agoramips: add support for D-Link DAP-1522 A1
George Hopkins [Sat, 28 Oct 2017 12:24:21 +0000 (14:24 +0200)]
ramips: add support for D-Link DAP-1522 A1

D-Link DAP-1522 is a wireless bridge/access point with 4 LAN
ports and a dual-band wireless chipset.

Specifications:
- Ralink RT2880
- 32 MB of RAM
- 4 MB of Flash
- 4x 10/100/1000 Mbps Ethernet (RTL8366SR)
- 802.11abgn (RT2850)

Flash Instructions:
1. Download lede-ramips-rt288x-dap-1522-a1-squashfs-factory.bin
2. Open the web interface and upload the image

Signed-off-by: George Hopkins <george-hopkins@null.net>
6 years agomtd: add fixwrg command
George Hopkins [Sat, 28 Oct 2017 12:08:38 +0000 (14:08 +0200)]
mtd: add fixwrg command

Add a command to fix WRG headers, based on wrgg.c.

Signed-off-by: George Hopkins <george-hopkins@null.net>
6 years agokernel: mtdsplit: split by WRG header
George Hopkins [Sat, 28 Oct 2017 12:01:10 +0000 (14:01 +0200)]
kernel: mtdsplit: split by WRG header

Support splitting WRG images, which can be found in older
D-Link devices.

Signed-off-by: George Hopkins <george-hopkins@null.net>
6 years agokernel: add missing symbol
John Crispin [Tue, 13 Feb 2018 09:55:46 +0000 (10:55 +0100)]
kernel: add missing symbol

Signed-off-by: John Crispin <john@phrozen.org>
6 years agouqmi: bump package release
Koen Vandeputte [Tue, 13 Feb 2018 09:12:11 +0000 (10:12 +0100)]
uqmi: bump package release

fixes: da8990e717e1 ("uqmi: use built-in command for data-link verification")

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
6 years agoar71xx: Add eTactica EG-200 support
Karl Palsson [Thu, 26 May 2016 11:20:53 +0000 (11:20 +0000)]
ar71xx: Add eTactica EG-200 support

EG-200 is a DIN rail mountable device with one ethernet port, wifi,
an RS-485 port, and an internal USB attached uSD card reader.

Two leds, "modbus" and "etactica" are managed by userspace applications
in factory firmware.

Flash instruction:
    Original firmware is based on OpenWrt.
    Use sysupgrade image directly in vendor GUI.

Signed-off-by: Karl Palsson <karlp@etactica.com>
6 years agouqmi: use built-in command for data-link verification
Koen Vandeputte [Wed, 7 Feb 2018 12:23:28 +0000 (13:23 +0100)]
uqmi: use built-in command for data-link verification

uqmi contains a command for directly querying the modem if there
is a valid data connection, so let's use it.

This avoids the cases were all previous tests are succesful, but the
actual data link is not up for some reasons, leading to states were we
thought the link was up when it actually wasn't ..

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
6 years agouqmi: use correct value for connection checking
Koen Vandeputte [Wed, 7 Feb 2018 12:23:27 +0000 (13:23 +0100)]
uqmi: use correct value for connection checking

Originally, the implementation only checked if uqmi command
execution succeeded properly without actually checking it's returned data.

This lead to a pass, even when the returned data was indicating an error.

Rework the verification to actually check the returned data,
which can only be correct if the uqmi command itself also executed correctly.

On command execution success, value "pdh_" is a pure numeric value.

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
6 years agouqmi: use general method for state cleaning
Koen Vandeputte [Wed, 7 Feb 2018 12:23:26 +0000 (13:23 +0100)]
uqmi: use general method for state cleaning

Debugging shows that using the general method properly cleans on each
run, while the method specifying the client-ID shows "No effect"
even while in connected state.

Fixes several connectivity issues seen on specific modems.

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
6 years agoramips: use new image build code for WHR-G300N
INAGAKI Hiroshi [Sun, 11 Feb 2018 18:42:47 +0000 (03:42 +0900)]
ramips: use new image build code for WHR-G300N

The tftp.bin image for Buffalo WHR-G300N was not built, so I was fixed
it after rewriting to new image build code. And the code for
factory-EU.bin was broken, so I deleted it.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
6 years agomediatek: remove the CPU_SUBTYPE
John Crispin [Mon, 12 Feb 2018 20:02:01 +0000 (21:02 +0100)]
mediatek: remove the CPU_SUBTYPE

Signed-off-by: John Crispin <john@phrozen.org>
6 years agocns3xxx: remove linux 4.9 support
Koen Vandeputte [Thu, 1 Feb 2018 16:50:27 +0000 (17:50 +0100)]
cns3xxx: remove linux 4.9 support

- Remove kernel 4.9 support
- Apply specific 4.14 changes directly to source
- Refreshed all

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
6 years agotarget: Remove nomips16 option.
Rosen Penev [Fri, 2 Feb 2018 22:06:14 +0000 (14:06 -0800)]
target: Remove nomips16 option.

There is no target with a CPU subtype of nomips16.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
6 years agotools/mkimage: copy mkenvimage to bin directory
Evgeniy Didin [Mon, 12 Feb 2018 16:42:01 +0000 (19:42 +0300)]
tools/mkimage: copy mkenvimage to bin directory

For some boards u-boot binary environment file is required,
which is generated by mkenvimage utility. But in OpenWrt there
is no separate support for mkenvimage, which is a part of u-boot tools.
mkenvimage gets built in u-boot/tools as well as mkimage anyways.

So lets just copy mkenvimage to the $(STAGING_DIR_HOST)/bin/ directory.

Signed-off-by: Evgeniy Didin <Evgeniy.Didin@synopsys.com>
CC: Alexey Brodkin <abrodkin@synopsys.com>
CC: Hauke Mehrtens <hauke@hauke-m.de>
CC: John Crispin <john@phrozen.org>
6 years agokernel: add missing symbol for v4.14
John Crispin [Mon, 12 Feb 2018 16:38:58 +0000 (17:38 +0100)]
kernel: add missing symbol for v4.14

Signed-off-by: John Crispin <john@phrozen.org>
6 years agoocteontx: add support for OCTEON TX target
Tim Harvey [Tue, 23 Jan 2018 23:15:44 +0000 (15:15 -0800)]
octeontx: add support for OCTEON TX target

The Cavium OCTEON TX is an ARM 64-bit SoC leveraging CPU cores and
periperhals from the Cavium ThunderX SoC.

This initial support provides a 4.14 kernel and kernel+initramfs that is
bootable on the Gateworks Newport GW630x as well as the Cavium sff8104
reference board.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
6 years agopackages: uboot-mxs: override instead of appending u-boot make flags
Michael Heimpold [Sat, 10 Feb 2018 13:05:17 +0000 (14:05 +0100)]
packages: uboot-mxs: override instead of appending u-boot make flags

This prevents passing down the HOSTCC stuff set in u-boot.mk
which results in linking errors against openssl:

tools/mxsimage.o: In function `sb_aes_reinit':
mxsimage.c:(.text+0x202): undefined reference to `EVP_CIPHER_CTX_reset'
tools/mxsimage.o: In function `mxsimage_generate':
mxsimage.c:(.text+0x110d): undefined reference to `EVP_MD_CTX_new'
mxsimage.c:(.text+0x114f): undefined reference to `EVP_MD_CTX_free'
mxsimage.c:(.text+0x11c3): undefined reference to `EVP_MD_CTX_new'
mxsimage.c:(.text+0x1323): undefined reference to `EVP_MD_CTX_free'
mxsimage.c:(.text+0x134a): undefined reference to `EVP_CIPHER_CTX_reset'
tools/mxsimage.o: In function `mxsimage_verify_print_header':
mxsimage.c:(.text+0x23ce): undefined reference to `EVP_MD_CTX_new'
mxsimage.c:(.text+0x242c): undefined reference to `EVP_MD_CTX_new'
mxsimage.c:(.text+0x246b): undefined reference to `EVP_MD_CTX_free'
mxsimage.c:(.text+0x24ef): undefined reference to `EVP_CIPHER_CTX_reset'
mxsimage.c:(.text+0x2e52): undefined reference to `EVP_MD_CTX_free'
collect2: error: ld returned 1 exit status

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
6 years agopackages: uboot-mxs: bump to 2017.11
Michael Heimpold [Sat, 10 Feb 2018 13:05:10 +0000 (14:05 +0100)]
packages: uboot-mxs: bump to 2017.11

Also update the U-Boot BSP patch for I2SE Duckbill devices.

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
6 years agomxs: rename files to files-4.9
Michael Heimpold [Sat, 10 Feb 2018 13:04:34 +0000 (14:04 +0100)]
mxs: rename files to files-4.9

The Device Tree file for I2SE Duckbill boards was updated upstream.
Let's use the upstream version for upcoming kernel 4.14 by keeping
our current version for v4.9 still around.

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
6 years agoramips: Add support for the GnuBee Personal Cloud Two
Rosen Penev [Mon, 5 Feb 2018 00:24:15 +0000 (16:24 -0800)]
ramips: Add support for the GnuBee Personal Cloud Two

The GnuBee Personal Cloud Two crowdfunded on https://www.crowdsupply.com
It is a low-cost, low-power, network-attached storage device.

Specifications:

- SoC: MediaTek MT7621AT
- RAM: DDR3 512 MB
- Flash: 32 MB
- Six SATA ports for 3.5" Drives
- One SDcard
- One USB 3.0
- Two USB 2.0
- Gigabit Ethernet: Three Ports
- UART 3.5mm Audio Jack or 3 pin header - 57600 8N1
- Three GPIOs available on a pin header

Flash instructions:

The GnuBee Personal Cloud Two ships with libreCMC installed.
libreCMC is a Free Software Foundation approved fork of LEDE/OpenWrt.
As such one can upgrade using the webinterface or sysupgrade.

Das U-Boot has multiple options for recovery or updates including :

- USB
- http
- tftp

Errata:
- While there are three ethernet ports, the third requires support for
  the second GMAC. This will come in kernel 4.14.
- The first hard drive slot has a clearance issue with the two fan
  headers. Workaround is to pull the headers out and connect the pins to
  jumper wires.
- Using this device as a NAS is problematic with the 4.9 kernel as many
  /dev/sdX reads throw silent errors. The current theory behind this is
  some kind of unhandled DMA mapping error in the kernel. This is not an
  issue with kernel 4.4.

Signed-off-by: L. D. Pinney <ldpinney@gmail.com>
Signed-off-by: Rosen Penev <rosenp@gmail.com>
6 years agoiptables: Support building connlabel module
Kristian Evensen [Mon, 22 Jan 2018 17:52:28 +0000 (18:52 +0100)]
iptables: Support building connlabel module

It is currently possible to enable connlabel-support in iptables.
However, in order for connlabel to work properly, the kernel module must
also be present. This patch adds support for building the
connlabel-module, and selects it by default when connlabel-support is
enabled.

Signed-off-by: Kristian Evensen <kristian.evensen@gmail.com>
6 years agolayerscape: fix call trace of pfe module removing
Yangbo Lu [Tue, 30 Jan 2018 12:45:25 +0000 (20:45 +0800)]
layerscape: fix call trace of pfe module removing

Updated pfe kernel patch to clean up iounmap(pfe->ddr_baseaddr).
pfe->ddr_baseaddr was got through phys_to_virt() not ioremap(),
so iounmap() for pfe->ddr_baseaddr should be removed.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
6 years agolayerscape: fix DPAA2 QDMA issue
Yangbo Lu [Mon, 29 Jan 2018 10:30:44 +0000 (18:30 +0800)]
layerscape: fix DPAA2 QDMA issue

This patch is to reverse a upstream dmatest patch for now
which is causing DPAA2 QDMA test issue.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
6 years agolayerscape: add a make menuconfig known issue in README
Yangbo Lu [Fri, 26 Jan 2018 08:46:17 +0000 (16:46 +0800)]
layerscape: add a make menuconfig known issue in README

This patch is to add a known issue of make menuconfig
in README file. This is also a common issue for OpenWrt.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
6 years agolayerscape: fix type for kernel 4.9 dpaa2_mac_get_stats() function
Yangbo Lu [Thu, 25 Jan 2018 08:52:38 +0000 (16:52 +0800)]
layerscape: fix type for kernel 4.9 dpaa2_mac_get_stats() function

This patch changes the declarations of ndo_get_stats64 handlers
to the previous struct rtnl_link_stats64 * return type instead of
the mainline void return.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
6 years agolayerscape: update README
Yangbo Lu [Mon, 22 Jan 2018 08:42:05 +0000 (16:42 +0800)]
layerscape: update README

Tis patch is to fix up some descriptions in README.
Per-device rootfs had been supported, and a known issue
had been found. These also should be updated accordingly.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
6 years agolayerscape: support ubifs rootfs in u-boot env
Yangbo Lu [Mon, 22 Jan 2018 08:33:29 +0000 (16:33 +0800)]
layerscape: support ubifs rootfs in u-boot env

ls1012ardb/ls1012afrdm/ls1046ardb/ls1088ardb firmwares now use ubifs
rootfs. So u-boot env should be set accordingly.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
6 years agolayerscape: support ubifs rootfs
Yangbo Lu [Fri, 19 Jan 2018 10:38:03 +0000 (18:38 +0800)]
layerscape: support ubifs rootfs

Some layerscape devices (ls1012ardb/ls1012afrdm/ls1046ardb/ls1088ardb)
were using ext4 rootfs because there were issues using squashfs.
This patch is to drop using ext4 rootfs and use ubifs rootfs instead
which is more proper for SPI-NOR flash.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
6 years agolayerscape: update u-boot to LSDK1712
Yangbo Lu [Fri, 19 Jan 2018 03:04:25 +0000 (11:04 +0800)]
layerscape: update u-boot to LSDK1712

This patch is to update layerscape u-boot to
NXP LSDK1712 release.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
6 years agolayerscape: update ppfe firmware to LSDK1712
Yangbo Lu [Thu, 18 Jan 2018 08:36:49 +0000 (16:36 +0800)]
layerscape: update ppfe firmware to LSDK1712

Updated ppfe firmware to NXP LSDK1712 release. Used
ppfe firmware git tree on NXP github since it was
migrated here from qoriq-open-source github.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
6 years agolayerscape: add ls-rcw-bin package
Yangbo Lu [Thu, 18 Jan 2018 08:24:24 +0000 (16:24 +0800)]
layerscape: add ls-rcw-bin package

NXP LSDK1712 release used two rcw git trees. The
original rcw git tree was still source code but
dropping ls1012a/ls1088a/ls2088a boards in LSDK1712.
Instead another new rcw git tree was used to just
provided rcw binaries for these boards dropped. So
this patch is to update ls-rcw to LSDK1712 release
and add a new ls-rcw-bin package.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
6 years agolayerscape: update PPA firmware to LSDK1712
Yangbo Lu [Thu, 18 Jan 2018 07:24:07 +0000 (15:24 +0800)]
layerscape: update PPA firmware to LSDK1712

This patch is to update PPA firmware to NXP LSDK1712
release.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
6 years agolayerscape: migrate fman-ucode to NXP github
Yangbo Lu [Thu, 18 Jan 2018 07:08:25 +0000 (15:08 +0800)]
layerscape: migrate fman-ucode to NXP github

fman-ucode had been migrated from qoriq-open-source
github to NXP github. So the Makefile should be fixed
accordingly.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
6 years agolayerscape: update MC firmware to LSDK1712
Yangbo Lu [Thu, 18 Jan 2018 06:55:19 +0000 (14:55 +0800)]
layerscape: update MC firmware to LSDK1712

Updated MC firmware to NXP LSDK1712 release. Used
MC firmware git tree on NXP github since it was
migrated here from qoriq-open-source github.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
6 years agolayerscape: remove USB configs for 64-bit
Yangbo Lu [Thu, 18 Jan 2018 06:14:16 +0000 (14:14 +0800)]
layerscape: remove USB configs for 64-bit

Removed USB configs for 64-bit device since they're
already in kmod package.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
6 years agolayerscape: remove USB and TI specific configs for 32-bit
Yangbo Lu [Thu, 18 Jan 2018 06:02:58 +0000 (14:02 +0800)]
layerscape: remove USB and TI specific configs for 32-bit

This patch is to remove USB configs for 32-bit device since
they're already in kmod package. Also removed TI platform
specific configs.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
6 years agolayerscape: update patches-4.9 to LSDK1712
Yangbo Lu [Tue, 6 Feb 2018 04:39:05 +0000 (12:39 +0800)]
layerscape: update patches-4.9 to LSDK1712

Patches changes
- Updated patches-4.9 to NXP LSDK1712 linux-4.9.
- Merged changes of patch 303 into integrated patch 201.
- Split changes of patch 706 into dpaa part and dpaa2
  part, and merged these changes into integrated patches
  701 and 705.
- Removed patch 819 since ehci-fsl driver could be compiled now.
- Refreshed these patches.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
6 years agolayerscape: update restool to 2017-12-03
Yangbo Lu [Thu, 11 Jan 2018 09:23:00 +0000 (17:23 +0800)]
layerscape: update restool to 2017-12-03

Updated restool to 2017-12-03 and removed patches
since the new version had involved them.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
6 years agolayerscape: update build guide in README
Yangbo Lu [Mon, 8 Jan 2018 04:12:16 +0000 (12:12 +0800)]
layerscape: update build guide in README

Added package feeds updating and installing in build guide
of README.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
6 years agoar71xx: add support for TP-Link RE355
Henryk Heisig [Tue, 6 Feb 2018 21:08:28 +0000 (22:08 +0100)]
ar71xx: add support for TP-Link RE355

This device is identical as TP-Link RE450
RE355 is a dual-band AC1200 router, based on Qualcomm/Atheros
QCA9558+QCA9880.

Specification:

720/600/200 MHz (CPU/DDR/AHB)
64/128 MB of RAM (DDR2)
8 MB of FLASH (SPI NOR)
3T3R 2.4 GHz
3T3R 5 GHz
1x 10/100/1000 Mbps Ethernet
7x LED, 3x button
UART header on PCB

Flash instruction:
Web:
Download lede-ar71xx-generic-archer-c60-v2-squashfs-factory.bin
and use OEM System Tools - Firmware Upgrade site.

Signed-off-by: Henryk Heisig <hyniu@o2.pl>
6 years agokmod-sched: add sch_multiq to extra schedulers
Philip Prindeville [Fri, 26 Jan 2018 21:28:02 +0000 (14:28 -0700)]
kmod-sched: add sch_multiq to extra schedulers

For hardware that supports multiple h/w output queues, add
a compatible scheduler (NET_SCH_MULTIQ).

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
6 years agobase-files: don't evaluate block-device uevent
Daniel Golle [Mon, 12 Feb 2018 22:36:54 +0000 (23:36 +0100)]
base-files: don't evaluate block-device uevent

Current code and also before commit da52dd0c83 was vulnerable to shell
injection using volume lables in the GPT partition table of block
devices. Given that partition names can be freely defined in GPT tables
we really shouldn't evaluate a string which is potentially crafted with
evil intentions. Hence rather use `export -n` to absorb the uevent's
variables into the environment.

Fixes commit da52dd0c83 (base-files: quote values when evaluating uevent)
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
[mschiffer@universe-factory.net: suggested export -n usage]

6 years agokernel: add IEEE-1284 parallel port support
Daniel Gimpelevich [Thu, 18 Jan 2018 11:52:12 +0000 (03:52 -0800)]
kernel: add IEEE-1284 parallel port support

The kmod-lp package included both lp.ko and ppdev.ko, but ECP device
drivers may or may not require lp NOT to be loaded, needing only ppdev.
Additionally, There were no packages for any parport interface modules,
such as uss720 or parport_pc, provided here. It has not been otherwise
possible to use PC-style parport hardware for kmod-lp.

Signed-off-by: Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us>
6 years agobrcm63xx: switch to kernel 4.9
Jonas Gorski [Mon, 12 Feb 2018 10:44:12 +0000 (11:44 +0100)]
brcm63xx: switch to kernel 4.9

Now that we have support for it, let's switch to kernel 4.9.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
6 years agoar7: switch to kernel 4.9
Jonas Gorski [Mon, 12 Feb 2018 10:42:48 +0000 (11:42 +0100)]
ar7: switch to kernel 4.9

With generic run tested and ac49x compile tested, and no complaints so
far, let's switch to 4.9.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
6 years agoar7: fix ac49x compilation with 4.9
Jonas Gorski [Mon, 12 Feb 2018 10:40:38 +0000 (11:40 +0100)]
ar7: fix ac49x compilation with 4.9

This will introduce a warning on 3.18, but fixes an error when
compiling for 4.9.

Fixes: cf9e0a59aabd ("ar7: add kernel 4.9 support")
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
6 years agoRevert "mediatek: activate fpu feature flag"
John Crispin [Mon, 12 Feb 2018 10:35:47 +0000 (11:35 +0100)]
Revert "mediatek: activate fpu feature flag"

This reverts commit 3594447a7d0398c55ea78f658b52b7d8084ae9f9.

This causes the userland to not come up properly

Signed-off-by: John Crispin <john@phrozen.org>
6 years agotools: update patch to v2.7.6
Russell Senior [Mon, 12 Feb 2018 07:40:59 +0000 (23:40 -0800)]
tools: update patch to v2.7.6

Removes a redundant patch with a fix already upstream.  Build tested on
apm821xx (PPC).

Signed-off-by: Russell Senior <russell@personaltelco.net>
6 years agomvebu: fix sysupgrade from 17.04 for clearfog pro
Jonas Gorski [Sun, 11 Feb 2018 21:31:36 +0000 (22:31 +0100)]
mvebu: fix sysupgrade from 17.04 for clearfog pro

When clearfog was renamed to clearfog pro, it broke sysupgrade from
17.04 as the new images now get rejected as incompatible. Fix this by
adding the legacy boardname to the compatible devices.

Fixes: ec4a8c6dee81 ("mvebu: ClearFog renamed upstream to ClearFog Pro")
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
6 years agobrcm63xx: add kernel 4.14 support
Jonas Gorski [Sat, 13 Jan 2018 17:43:32 +0000 (18:43 +0100)]
brcm63xx: add kernel 4.14 support

Add support for kernel 4.14. Increases compressed kernel size by ~64k
compared to 4.9.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
6 years agobroadcom-wl: fix compilation with 4.14
Jonas Gorski [Sat, 13 Jan 2018 17:44:04 +0000 (18:44 +0100)]
broadcom-wl: fix compilation with 4.14

The last_rx field was removed from net_device. Since the field wasn't
used by the generic subsystem, and the driver only writes to it, just
remove the usage.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
6 years agobrcm63xx: add kernel 4.9 support
Jonas Gorski [Sat, 13 Jan 2018 12:18:10 +0000 (13:18 +0100)]
brcm63xx: add kernel 4.9 support

Add support for kernel 4.9 based on the more upstream comformant
partition defintions. Increases compressed kernel size by ~95k
compared to 4.4.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
6 years agobrcm63xx: switch to new partition layout specification
Jonas Gorski [Wed, 28 Jun 2017 08:44:38 +0000 (10:44 +0200)]
brcm63xx: switch to new partition layout specification

Now that we support parsing the expected upstream definition, update
the dts files to it.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>