openwrt/staging/nbd.git
6 years agokmod-sched-cake: bump to latest cake bake
Kevin Darbyshire-Bryant [Mon, 8 Jan 2018 12:59:46 +0000 (12:59 +0000)]
kmod-sched-cake: bump to latest cake bake

More important bug fix:

402f05c Use full-rate mtu_time in all tins.  Fixes an issue where some
cake tins experienced excessive latency since 49776da (dynamically
adjust target)

Minor bug fixes:

31277c2 Avoid unsigned comparison against zero.  Fix compiler warning,
no known impact.
8cf5278 ack_filter: fix TCP flag check. A very contrived case may have
lead to dropping a SYN packet that should not be dropped.

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
6 years agoat91: create device specific sdcard images
Hauke Mehrtens [Mon, 8 Jan 2018 22:58:40 +0000 (23:58 +0100)]
at91: create device specific sdcard images

Without this patch one sdcard image with the following name is created
for all devices:
openwrt-at91-sama5--sdcard.img.gz
This makes the build system create device specific versions like:
openwrt-at91-sama5-at91-sama5d2_xplained-sdcard.img.gz

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 years agokernel: bump 4.14 to 4.14.13
Kevin Darbyshire-Bryant [Wed, 10 Jan 2018 14:06:52 +0000 (14:06 +0000)]
kernel: bump 4.14 to 4.14.13

Refresh patches

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
6 years agokernel: bump 4.4 to 4.4.111
Kevin Darbyshire-Bryant [Wed, 10 Jan 2018 14:07:17 +0000 (14:07 +0000)]
kernel: bump 4.4 to 4.4.111

Refresh patches

Tested-on: ar71xx Archer C7 v2

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
6 years agokernel: bump 4.9 to 4.9.76
Kevin Darbyshire-Bryant [Wed, 10 Jan 2018 14:07:41 +0000 (14:07 +0000)]
kernel: bump 4.9 to 4.9.76

Refresh patches

Tested-on: ar71xx Archer C7 v2

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Tested-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
6 years agobuild: fix restoring /etc/opkg with PER_DEVICE_ROOTFS
Jo-Philipp Wich [Wed, 10 Jan 2018 19:17:48 +0000 (20:17 +0100)]
build: fix restoring /etc/opkg with PER_DEVICE_ROOTFS

When generating per-device rootfs directories, the ./etc/opkg/ directory
is moved away prior to calling opkg install, opkg remove and rootfs_prepare.
After the opkg invocations and the rootfs_prepare macro call, the saved opkg
config directory is supposed to be moved back to its previous ./etc/opkg
location.

The mv command however can fail to properly restore the directory under
certain circumstances, e.g. when the prior opkg or files/ overlay copy
operations caused a new ./etc/opkg/ directory to be created.

In this case, the backed up directory (named target-dir-$hash.opkg) will be
moved into the preexisting ./etc/opkg/ directory instead, causing the opkg
configuration to be located in a wrong path on the final rootfs, e.g. in
/etc/opkg/target-dir-$hash.opkg/distfeeds.conf instead of
/etc/opkg/distfeeds.conf.

Solve this problem by replacing the naive "mv" command with a recursive
"cp -T" invocation which causes the backed up directory tree to get merged
with the destination directory in case it already exists.

Also perform the rootfs_prepare macro call after restoring the opkg
configuration, to allow users to override it again by using the files/
overlay mechanism.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agosdk: change base feed fallback to git.openwrt.org
Jo-Philipp Wich [Wed, 10 Jan 2018 22:53:45 +0000 (23:53 +0100)]
sdk: change base feed fallback to git.openwrt.org

Change the hardcoded lede-project.org base feed fallback to
$(PROJECT_GIT)/openwrt/openwrt.git instead.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agobcm53xx: replace linux,part-probe with a proper partitions subnode
Rafał Miłecki [Thu, 11 Jan 2018 12:59:32 +0000 (13:59 +0100)]
bcm53xx: replace linux,part-probe with a proper partitions subnode

This solution is more upstream compatible as it only requires specifying
of_match_table in the parser code and doesn't depend on linux,part-probe
which is solution made generic by a LEDE downstream patch that can't be
upstreamed.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
6 years agokernel: backport mtd implementation for "compatible" in "partitions" subnode
Rafał Miłecki [Thu, 11 Jan 2018 10:59:39 +0000 (11:59 +0100)]
kernel: backport mtd implementation for "compatible" in "partitions" subnode

This backports upstream support for "compatible" DT property set for the
"partitions" subnode of flash node. It allows specifying how partitions
should be created/parsed. Right now only "fixed-partitions" is
supported.

It should eventually replace our downstream "linux,part-probe" solution.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
6 years agokernel: allow disabling multicast routing support
Matthias Schiffer [Wed, 10 Jan 2018 14:38:42 +0000 (15:38 +0100)]
kernel: allow disabling multicast routing support

Multicast routing support is not needed in most setups, and increases the
size of the kernel considerably (>10K after LZMA). Add a config switch to
allow disabling it.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
6 years agogeneric: unlock Winbond flash on boot
Matthias Schiffer [Tue, 9 Jan 2018 20:03:00 +0000 (21:03 +0100)]
generic: unlock Winbond flash on boot

The underlying issue breaking Spansion flash has been fixed with "mtd: spi-nor:
wait until lock/unlock operations are ready" and "mtd: spi-nor: wait for SR_WIP
to clear on initial unlock", so we can support unlocking for Winbond flash
again.

This is necessary to have writable flash on certain UBNT devices with some
bootloader versions.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
6 years agoebtables: update to latest git 2017-10-24
Matthias Schiffer [Tue, 9 Jan 2018 19:05:04 +0000 (20:05 +0100)]
ebtables: update to latest git 2017-10-24

6a82659 Use flock() for --concurrent option
73c2371 ebtables: extensions: Constify option struct

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
6 years agosunxi: enable missing config symbol
Jo-Philipp Wich [Thu, 11 Jan 2018 02:11:19 +0000 (03:11 +0100)]
sunxi: enable missing config symbol

Enable CONFIG_MFD_AXP20X_I2C after the switch to Kernel 4.9, this symbol
is reportedly required to get USB working on the Banana Pi.

Ref: https://forum.lede-project.org/t/sunxi-kernel-4-9-usb-not-working/10513
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agoomcproxy: silence fw3 warnings
Hans Dedecker [Mon, 8 Jan 2018 08:02:30 +0000 (09:02 +0100)]
omcproxy: silence fw3 warnings

Silence fw3 warnings in omcproxy init script in case fw3 is not enabled

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
6 years agotreewide: replace LEDE_GIT with PROJECT_GIT
Jo-Philipp Wich [Fri, 5 Jan 2018 09:46:06 +0000 (10:46 +0100)]
treewide: replace LEDE_GIT with PROJECT_GIT

Remove LEDE_GIT references in favor to the new name-agnostic
PROJECT_GIT variable.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agodownloads.mk: introduce name-agnostic PROJECT_GIT variable
Jo-Philipp Wich [Fri, 5 Jan 2018 09:43:55 +0000 (10:43 +0100)]
downloads.mk: introduce name-agnostic PROJECT_GIT variable

Introduce a name-agnostic PROJECT_GIT variable poiting to
https://git.openwrt.org/ and declare LEDE_GIT and OPENWRT_GIT
as aliases to it.

After some transition time we can drop this alias variables.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agonetifd: update dhcp.script to handle dynamic routing
Mogula Pranay [Tue, 9 Jan 2018 06:13:29 +0000 (11:43 +0530)]
netifd: update dhcp.script to handle dynamic routing

Certain DHCP servers push a gateway outside of the assigned interface subnet,
to support those situations, install a host route towards the gateway.

If Gateway and IP are served in same network, openwrt quagga cannot learn
routes (rip routes are not getting added, showing inactive) whereas
working fine when Gateway and IP are in different network.

Signed-off-by: Mogula Pranay <mogula.pranay@nxp.com>
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
6 years agoltq-xdsl-app: drop script for renaming the netdev
Mathias Kresin [Sat, 6 Jan 2018 17:38:35 +0000 (18:38 +0100)]
ltq-xdsl-app: drop script for renaming the netdev

Our netdevs are named dsl by default now, the rename via scripts isn't
required anymore.

Signed-off-by: Mathias Kresin <dev@kresin.me>
6 years agolantiq: create ATM/PTM interfaces with dsl as netdev name
Mathias Kresin [Sat, 6 Jan 2018 16:30:38 +0000 (17:30 +0100)]
lantiq: create ATM/PTM interfaces with dsl as netdev name

Renaming an atm etherbride using 'ip link' (via hotplug) is racy since the
original netdev might disappear before br2684ctl has finished appling it's
setting:

 local2.notice br2684ctl[1667]: Interface "nas0" created sucessfully
 local2.notice br2684ctl[1667]: Communicating over ATM 0.8.35, encapsulation: LLC
 kern.info kernel: dsl0: renamed from nas0
 kern.err kernel: br2684:br2684_regvcc: tried to attach to non-existent device
 local2.err br2684ctl[1667]: Could not configure interface:No such device or address

By passing the final used netdev name to br2684ctl_wrap another race
condition workaround will be enabled again.

Change the lantiq ptm driver to create a netdev with the name dsl as well.
Albeit the rename via 'ip link' works fine so far, using a different
approach for ptm then atm could be confusing.

Signed-off-by: Mathias Kresin <dev@kresin.me>
6 years agoltq-xdsl-app: drop manual br2684ctl reload
Mathias Kresin [Sat, 6 Jan 2018 16:37:13 +0000 (17:37 +0100)]
ltq-xdsl-app: drop manual br2684ctl reload

br2684ctl starts automatically, set up reload triggers, which fire as soon
as a atm driver is loaded. No need to do the reload via the script.

The reload is only required as soon as we can reliable switch between atm
and ptm driver and need to be implemented in a race free way.

Signed-off-by: Mathias Kresin <dev@kresin.me>
6 years agolinux-atm: add br2684ctl option to specify the netdev name
Martin Schiller [Mon, 8 Jan 2018 12:12:20 +0000 (13:12 +0100)]
linux-atm: add br2684ctl option to specify the netdev name

Add the uci option nameprefix to specifc a target netdev name. Patch the
br2684ctl code to accept and set a netdev name via commandline parameters.

It allows to use the same netdev name for ATM and PTM lines on lantiq
xdsl hardware.

Signed-off-by: Martin Schiller <ms@dev.tdt.de>
Signed-off-by: Mathis Kresin <dev@kresin.me>
6 years agoarmvirt: re-enable VFP support
Jo-Philipp Wich [Tue, 9 Jan 2018 23:40:33 +0000 (00:40 +0100)]
armvirt: re-enable VFP support

Enable CONFIG_VFP again which was disabled during the 4.9 -> 4.14 bump.

Boot tested both 32 and 64 bit subtargets using initramfs images with the
qemu-system-arm and qemu-system-aarch64 emulators.

Fixes: aa100b66f2 ("armvirt: bump to v4.14")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agoarmvirt: 64: add missing kernel config symbols
Jo-Philipp Wich [Tue, 9 Jan 2018 23:39:14 +0000 (00:39 +0100)]
armvirt: 64: add missing kernel config symbols

Fixes: aa100b66f2 ("armvirt: bump to v4.14")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agokernel: bump 4.4 to 4.4.110
Kevin Darbyshire-Bryant [Sun, 7 Jan 2018 14:12:52 +0000 (14:12 +0000)]
kernel: bump 4.4 to 4.4.110

Refresh patches

Fixes: CVE-2017-5754 aka Meltdown
Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
[fix typo in commit msg, conflict after 4.14 bump]
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
6 years agokernel: bump 4.9 to 4.9.75
Kevin Darbyshire-Bryant [Sun, 7 Jan 2018 14:08:03 +0000 (14:08 +0000)]
kernel: bump 4.9 to 4.9.75

Refresh patches

Fixes: CVE-2017-5754 aka Meltdown
Tested-on: ar71xx Archer C7 v2

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Tested-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
[fix conflict after 4.14 bump]
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
6 years agouboot-at91: make packages hidden
Hauke Mehrtens [Mon, 8 Jan 2018 22:42:31 +0000 (23:42 +0100)]
uboot-at91: make packages hidden

These packages are needed to generate the image, better mark them hidden
so we will activate them based on which boards gets build and they will
be activated always when the board which needs then gets build.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 years agoat91bootstrap: make packages hidden
Hauke Mehrtens [Mon, 8 Jan 2018 22:41:10 +0000 (23:41 +0100)]
at91bootstrap: make packages hidden

These packages are needed to generate the image, better mark them hidden
so we will activate them based on which boards gets build and they will
be activated always when the board which needs then gets build.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 years agoat91bootstrap: remove redundant definition of BUILD_SUBTARGET
Hauke Mehrtens [Mon, 8 Jan 2018 22:20:57 +0000 (23:20 +0100)]
at91bootstrap: remove redundant definition of BUILD_SUBTARGET

It is sufficient to define this in AT91Bootstrap/Default as this is not
used for all.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 years agoat91bootstrap: at91bootstrap default selection
Sandeep Sheriker Mallikarjun [Thu, 4 Jan 2018 19:47:17 +0000 (12:47 -0700)]
at91bootstrap: at91bootstrap default selection

The fixes following problems
1. changing prefix at91bootstrap to AT91bootstrap will fix the default
   selection of at91bootstrap for the selected sama5 subtarget.
2. fixed missing default selection of sama5d4 nand flash for the
   selected sama5d4 subtarget.
3. corrected at91bootstrap Title name.

Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikarjun@microchip.com>
6 years agouboot-at91: fix build after fpu activation
Sandeep Sheriker Mallikarjun [Thu, 4 Jan 2018 19:43:23 +0000 (12:43 -0700)]
uboot-at91: fix build after fpu activation

neon and VFPv4 support is added to this target and uboot-at91 build
fails due to TARGET_CFLAGS -mfloat-abi set to hard. as a fix, setting
uboot-at91 CFLAGS -mfloat-abi=soft.

Fixes: 01cc6bd495f ("at91: sama5: activate fpu")
Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikarjun@microchip.com>
6 years agokernel: kmod-w1 depends on kmod-hwmon-core since Linux 4.14
Jo-Philipp Wich [Tue, 9 Jan 2018 21:47:17 +0000 (22:47 +0100)]
kernel: kmod-w1 depends on kmod-hwmon-core since Linux 4.14

Fixes the following dependency error encountered by the buildbots:

    Package kmod-w1 is missing dependencies for the following libraries:
    hwmon.ko

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agokirkwood: sort occurrences of boardame alphabetically
Mathias Kresin [Mon, 8 Jan 2018 22:49:22 +0000 (23:49 +0100)]
kirkwood: sort occurrences of boardame alphabetically

This restores the alphabetical sort that was present
before the renaming of boardname.

Signed-off-by: Mathias Kresin <dev@kresin.me>
6 years agouboot-envtools: add pogoplug v4
Alberto Bursi [Tue, 2 Jan 2018 15:32:01 +0000 (16:32 +0100)]
uboot-envtools: add pogoplug v4

add pogoplug v4 envs support in uboot-envtools

Signed-off-by: Alberto Bursi <alberto.bursi@outlook.it>
6 years agokirkwood: add pogoplug v4
Alberto Bursi [Tue, 2 Jan 2018 15:07:19 +0000 (16:07 +0100)]
kirkwood: add pogoplug v4

also known as
POGO-V4-A3-02
or
POGO-V4-A3-01

SoC: Marvell 88F6192 800Mhz
SDRAM memory: 128MB
Gigabit ethernet: 1 Marvell 88E1310
Flash memory: 128MB
2 status LEDs (one green one red)
1 "Eject" button on the back (used as "Reset" button)
1 USB 2.0 port (on upper side)
1 sata slot (power + data) for 2.5'' drives (upper side)
2 USB 3.0 ports from a controller on PCIe x1 of the SoC
1 full-size SDcard slot (fits a whole SD card into it)

This device supports the (linux-only) kwboot tool to send
a new uboot over serial console, so it is easy to unbrick
in case the uboot is erased and the device won't boot.

-----
Install instructions:
-----
Since it's not possible to get ssh access to these
devices, the only way to take control is to
solder pins to get TTL serial access.

Case can be opened by removing screws beneath two rubber
feet at back of device, then lifting while prying the
sides of the upper part out to unhook a latch on each
side about 2/3rds of the way toward the front.

Serial connection pins are those labeled "J11", left
of SD as you face SD opening.
Pins are (from left to right, i.e. the first in the list
is the nearest to the SD slot) GND, Rx, Tx.
Do not connect +V pin if you use a USB (self-powered)
TTL-to-USB dongle. Any USB TTL-to-USB converter will work.
Baud rate is 115200, parity "none", databits "8",
flow control "none".

Stock uboot is unable to read ubi partitions (nor usb)
so we will replace it first with our uboot.

Start a TFTP server at IP address 169.254.254.254, and
place the uboot.kwb file in the folder of the server.

Start the serial session and then power up the device.

As soon as you see text on the serial start pressing random
letter keys to stop the boot process.

If you see something like the following line you can proceed:

CE>>

Otherwise if text is still scrolling by you missed the
opportunity, pull the plug and try again.

write

printenv ethaddr

The uboot will write something like this:

ethaddr=00:50:43:00:02:02

This is the device's MAC address, also present in the sticker
under the device.

Write this down as we will need to add it in the
new uboot configuration.

Use the following commands to load the new uboot:

tftp 0x20000 u-boot.kwb

If the uboot confirms that the transfer was successful,
then you can write it to flash with the following commands:

nand erase 0 0x200000
nand write 0x20000 0 0x1c0000

if after the last command the uboot wrote
"xxxx bytes written: OK"
then it was written correctly and we can proceed.

If it did not go well, try again or ask assistence in forums.
Shutting down or rebooting at this time will brick
the device, to unbrick it you will need to use the kwboot
tool from a Linux PC or Virtual Machine.

Now write:

reset

and press enter, the device will reboot and you should see
again text scrolling by.
Press a random key to stop it, and now you should see

pogoplugv4>

We now add the MAC address back, write:

setenv ethaddr '00:50:43:00:02:02'

Confirm that the uboot has understood by writing

printenv ethaddr

If all looks ok, save the setting with

saveenv

At this point the uboot is configured, and we only need to load
the firmware in the flash memory.

Follow the steps below in "Firmware recovery procedure".

----
Firmware recovery procedure
----
The new uboot allows easy recovery from a bad firmware upgrade
where you can't access the device anymore over ssh or luci.

Take a USB flash drive formatted as FAT32, and copy the
initramfs image file in it (it will have "initramfs" in the
file name), then rename it as "initramfs.bin".

Insert the USB drive in the USB 2.0 port of the pogoplug
(the port at the top).

Power up the device, and wait for it to finish booting.

The uboot should find and load the "initramfs.bin"
from usb and if you are connected with serial you should
see the linux kernel boot log (text scrolling by).
Once it is done, press Enter and you will be greeted by
the OpenWRT banner.

If you were not connected with serial just wait a bit and,
you will be able to access it with ssh or luci web interface
(once you find its IP).

The recovery "initramfs" images are run from RAM, so you will
have to do a normal sysupgrade (firmware upgrade) to write
a firmware image to flash memory.

Signed-off-by: Alberto Bursi <alberto.bursi@outlook.it>
6 years agouboot-kirkwood: add uboot for pogoplug v4
Alberto Bursi [Tue, 2 Jan 2018 14:54:07 +0000 (15:54 +0100)]
uboot-kirkwood: add uboot for pogoplug v4

add an uboot able to boot a kernel in an ubi partition

This uboot also has a "recovery" feature, before
booting from flash it will try to boot a initramfs
image called "initramfs.bin" from a FAT32-formatted
USB drive connected to the USB 2.0 port.
(u-boot lacks drivers for usb 3.0 controllers)

Just rename the initramfs image and place it on
the usb drive, the uboot will load it.

In case there is no USB drive or no such file
is found, the uboot will boot from internal flash.

The whole check takes less than a second, boot times
are not impacted.

Signed-off-by: Alberto Bursi <alberto.bursi@outlook.it>
6 years agokirkwood: sync image filename with boardname
Mathias Kresin [Thu, 28 Dec 2017 09:39:19 +0000 (10:39 +0100)]
kirkwood: sync image filename with boardname

Use <manufacturer>_<modelname> as image name.

Use the BOARD_NAME variable to ensure that the former used boardname is
still used as the subdirectory name for the sysupgrade-tar image, to
not break sysupgrade from earlier versions.

Signed-off-by: Mathias Kresin <dev@kresin.me>
6 years agokirkwood: use the generic board detect
Mathias Kresin [Thu, 28 Dec 2017 09:18:48 +0000 (10:18 +0100)]
kirkwood: use the generic board detect

Drop the target specific detection function in favour of the generic
one provided by base-files.

Signed-off-by: Mathias Kresin <dev@kresin.me>
6 years agokirkwood: use image metadata
Mathias Kresin [Thu, 28 Dec 2017 08:22:45 +0000 (09:22 +0100)]
kirkwood: use image metadata

Append and enforce image metadata. Remove the device specific image
checks, they are replaced by image metadata.

Signed-off-by: Mathias Kresin <dev@kresin.me>
6 years agouboot-kirkwood: fix default u-boot selection
Mathias Kresin [Thu, 28 Dec 2017 00:15:57 +0000 (01:15 +0100)]
uboot-kirkwood: fix default u-boot selection

Build the Seagate GoFlexHome u-boot for the Seagate GoFlexNet as well. The
name clearly indicates that the u-boot can be used for both boards

Build the Zyxel NSA310 u-boot if the NSA310B image is selected.

Signed-off-by: Mathias Kresin <dev@kresin.me>
6 years agokirkwood: fix nsa310b compatible strings
Mathias Kresin [Fri, 12 May 2017 19:01:44 +0000 (21:01 +0200)]
kirkwood: fix nsa310b compatible strings

Use a destinct compatible string fro the nsa310b.

Signed-off-by: Mathias Kresin <dev@kresin.me>
6 years agokirkwood: fix compatible string in ib62x0 dts
Mathias Kresin [Thu, 28 Dec 2017 09:07:48 +0000 (10:07 +0100)]
kirkwood: fix compatible string in ib62x0 dts

There is no point in being that specifc in a generic dts covering a range
of boards. Keep only the the generic compat string to use it for a
devicetree based boardname.

Signed-off-by: Mathias Kresin <dev@kresin.me>
6 years agokirkwood: drop support for orphaned boards
Mathias Kresin [Wed, 27 Dec 2017 23:40:49 +0000 (00:40 +0100)]
kirkwood: drop support for orphaned boards

No image build code for the Guruplug, Sheevaplug and NSA310S exists. Drop
support for the boards for now.

Signed-off-by: Mathias Kresin <dev@kresin.me>
6 years agokirkwood: cleanup image build code
Mathias Kresin [Wed, 27 Dec 2017 23:25:41 +0000 (00:25 +0100)]
kirkwood: cleanup image build code

Drop NAND_BLOCKSIZE, UBI_OPTS and UBIFS_OPTS. They are either used by
not supported filesystems or by the legacy image build code.

Add common used options/images to the default build code and override
the options where necessary.

Don't export the kernel image, it isn't required by any board.

While at it, change the file extension for the sysupgrade images to bin.

Signed-off-by: Mathias Kresin <dev@kresin.me>
6 years agoipq806x: drop kernel 4.4 leftovers
Mathias Kresin [Mon, 8 Jan 2018 22:27:35 +0000 (23:27 +0100)]
ipq806x: drop kernel 4.4 leftovers

Remove the kernel 4.4 specific devicetree source files.

Fixes: 3a3564ead5e4 ("ipq806x: remove v4.4 support")
Signed-off-by: Mathias Kresin <dev@kresin.me>
6 years agoar71xx: fix Archer C7v4 5GHz MAC-address
David Bauer [Tue, 19 Dec 2017 01:32:47 +0000 (02:32 +0100)]
ar71xx: fix Archer C7v4 5GHz MAC-address

The TP-Link firmware uses (primary_mac-1) as MAC-address
for the 5GHz WiFi. This applies the same behaviour to LEDE.

Currently, the MAC-address is retrieved from eth1, which
does not exist on the Archer C7 v4. As a result from this,
every C7 v4 with LEDE carries the same MAC-Address on the 5GHz WiFi.

Signed-off-by: David Bauer <mail@david-bauer.net>
6 years agoramips: fix lenovo newifi-y1 switch and LED config
Chuanhong Guo [Fri, 29 Dec 2017 04:35:32 +0000 (12:35 +0800)]
ramips: fix lenovo newifi-y1 switch and LED config

There are 3 ethernet ports on Y1. LAN1 on port1, LAN2 on port0 and WAN on
port4.

Use a standalone switch configuration to match this and use the switch
trigger so that LAN LED could indicate the connetction status for both
lan ports correctly.

This patch also drop the internet led configuration, because there is a
WAN led for port4 and eth0.2 isn't always used as WAN.

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
6 years agoramips: add missing soc compatibles to dts
Mathias Kresin [Sat, 30 Dec 2017 19:41:22 +0000 (20:41 +0100)]
ramips: add missing soc compatibles to dts

Add SoC compatibles where missing.

Signed-off-by: Mathias Kresin <dev@kresin.me>
6 years agoramips: firewrt: indicate boot status via LED
Mathias Kresin [Sat, 30 Dec 2017 09:19:18 +0000 (10:19 +0100)]
ramips: firewrt: indicate boot status via LED

Add the Firefly FireWRT gree power LED to diag.sh to indicate the boot
status via the power LED.

Signed-off-by: Mathias Kresin <dev@kresin.me>
6 years agobase-files: gpio switch: set output value with direction
Mathias Kresin [Thu, 21 Dec 2017 00:06:42 +0000 (01:06 +0100)]
base-files: gpio switch: set output value with direction

Use the "low" and "high" values to configure the GPIO as an output with
that initial value. It ensures that the gpio doesn't have a unwanted value
during the time the direction is set to ouput and the actual value is
applied.

We don't need to take care of the GPIO polarity for now, since our
exported GPIOs are always active low.

Signed-off-by: Mathias Kresin <dev@kresin.me>
6 years agobase-files: gpio_switch: start before boot state done is set
Mathias Kresin [Thu, 21 Dec 2017 08:44:53 +0000 (09:44 +0100)]
base-files: gpio_switch: start before boot state done is set

Start gpio_switch before the boot state is set to up/initialised/done.
This way the exported GPIOs are available at the time rc.local is started.

Signed-off-by: Mathias Kresin <dev@kresin.me>
6 years agoar71xx: remove obsolete '< KERNEL_VERSION(4, 4, 0)' check
Gabor Juhos [Tue, 9 Jan 2018 20:20:14 +0000 (21:20 +0100)]
ar71xx: remove obsolete '< KERNEL_VERSION(4, 4, 0)' check

Because the oldest supported kernel version on the ar71xx target is 4.4,
the condition that the kernel version is smaller than 4.4.0 is always
false. Remove the obsolete check from mach-rb4xx.c to clean up the code
a bit.

Signed-off-by: Gabor Juhos <juhosg@freemail.hu>
6 years agoar71xx: remove obsolete '< KERNEL_VERSION(4, 2, 0)' check
Gabor Juhos [Tue, 9 Jan 2018 20:20:13 +0000 (21:20 +0100)]
ar71xx: remove obsolete '< KERNEL_VERSION(4, 2, 0)' check

Because the oldest supported kernel version on the ar71xx target is 4.4,
the condition that the kernel version is smaller than 4.2.0 is always
false. Remove the obsolete check from ag71xx_main.c to clean up the code
a bit.

Signed-off-by: Gabor Juhos <juhosg@freemail.hu>
6 years agoar71xx: remove obsolete '< KERNEL_VERSION(3, 15, 0)' checks
Gabor Juhos [Tue, 9 Jan 2018 20:20:12 +0000 (21:20 +0100)]
ar71xx: remove obsolete '< KERNEL_VERSION(3, 15, 0)' checks

Because the oldest supported kernel version on the ar71xx target is 4.4,
the condition that the kernel version is smaller than 3.15.0 is always
false. Remove the obsolete checks from the target specific source files
to clean up the code a bit.

Signed-off-by: Gabor Juhos <juhosg@freemail.hu>
6 years agoarmvirt: bump to v4.14
John Crispin [Tue, 9 Jan 2018 13:40:54 +0000 (14:40 +0100)]
armvirt: bump to v4.14

Signed-off-by: John Crispin <john@phrozen.org>
6 years agomalta: bump tp v4.14
John Crispin [Tue, 9 Jan 2018 09:25:37 +0000 (10:25 +0100)]
malta: bump tp v4.14

Signed-off-by: John Crispin <john@phrozen.org>
6 years agomalta: fix image prefix names
John Crispin [Tue, 9 Jan 2018 09:22:54 +0000 (10:22 +0100)]
malta: fix image prefix names

Signed-off-by: John Crispin <john@phrozen.org>
6 years agoar71xx/mikrotik: disable TP-Link TL-WR810N v2 board support
Gabor Juhos [Tue, 9 Jan 2018 07:18:16 +0000 (08:18 +0100)]
ar71xx/mikrotik: disable TP-Link TL-WR810N v2 board support

It does not belongs to the MikroTik boards.

Signed-off-by: Gabor Juhos <juhosg@freemail.hu>
6 years agoar71xx/mikrotik: disable unused MTD partitioning and split drivers
Gabor Juhos [Tue, 9 Jan 2018 07:18:15 +0000 (08:18 +0100)]
ar71xx/mikrotik: disable unused MTD partitioning and split drivers

Reduces the compressed kernel size by ~2.5KB.

Signed-off-by: Gabor Juhos <juhosg@freemail.hu>
6 years agoar71xx/mikrotik: disable unused ethernet switch and phy drivers
Gabor Juhos [Tue, 9 Jan 2018 07:18:14 +0000 (08:18 +0100)]
ar71xx/mikrotik: disable unused ethernet switch and phy drivers

Disable the drivers for the following ethernet switches:
  Realtek RTL8306
  Realtek RTL8366/8367
  Marvell 88E6060 (DSA)
  Marvell 88E6063 (DSA)

Also disable the phy driver for Marvell PHYs.

None of the supported RouterBOARDs are using any device
which needs these drivers.

Disable the DSA framework too, because it is not required
by the remaining switch drivers.

This reduces the compressed kernel size by ~20KB.

Signed-off-by: Gabor Juhos <juhosg@freemail.hu>
6 years agoar71xx: fix Kconfig dependency of the 88E6063 switch DSA driver
Gabor Juhos [Mon, 8 Jan 2018 14:47:49 +0000 (15:47 +0100)]
ar71xx: fix Kconfig dependency of the 88E6063 switch DSA driver

The Marvell 88E6063 ethernet switch driver depends on the DSA
framework. Add a 'depends on NET_DSA' statement to its Kconfig
entry to state that explicitly.

Fixes the following Kconfig warning:

  warning: (NET_DSA_MV88E6060 && NET_DSA_MV88E6063) selects NET_DSA_TAG_TRAILER which has unmet direct dependencies (NET && NET_DSA)

Signed-off-by: Gabor Juhos <juhosg@freemail.hu>
6 years agoar71xx: sort kernel configurations
Gabor Juhos [Mon, 8 Jan 2018 14:47:11 +0000 (15:47 +0100)]
ar71xx: sort kernel configurations

The symbols in some kernel configurations of the target are in
wrong order. Sort them with kconfig.pl.

Signed-off-by: Gabor Juhos <juhosg@freemail.hu>
6 years agoocteon: add support for kernel 4.14
Stijn Tintel [Mon, 8 Jan 2018 18:09:38 +0000 (20:09 +0200)]
octeon: add support for kernel 4.14

Tested on EdgeRouter Lite.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
6 years agokernel: bump 4.14 to 4.14.12
Stijn Tintel [Mon, 8 Jan 2018 11:40:26 +0000 (13:40 +0200)]
kernel: bump 4.14 to 4.14.12

No patch refresh required.

Compile-tested on: octeon, x86/64.
Runtime-tested on: octeon, x86/64.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
6 years agolantiq: activate noise margin delta for VDSL too
Hauke Mehrtens [Sat, 6 Jan 2018 01:36:39 +0000 (02:36 +0100)]
lantiq: activate noise margin delta for VDSL too

Previously this was only activated for ADSL, this patch activates the
same setting also for VDSL, this feature is also support for VDSL in the
same way it works for ADSL.
I tested it with DSL FW 5.7.9.5.1.7 against a Broadcom 177.140 DSLCO
(Deutsche Telekom) and saw different data rates and Max. Attainable Data
Rates depending on the ds_snr_offset settings I choose.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
6 years agouboot-envtool: remove superfluous + sign from PKG_BUILD_DEPENDS
Matthias Schiffer [Sun, 7 Jan 2018 18:52:05 +0000 (19:52 +0100)]
uboot-envtool: remove superfluous + sign from PKG_BUILD_DEPENDS

A + sign does not have meaning in build depends.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
6 years agolibubox: fix package bump
Jo-Philipp Wich [Sun, 7 Jan 2018 15:33:51 +0000 (16:33 +0100)]
libubox: fix package bump

The previous commit was incorrectly rebased and referred to a not
yet existing PROJECT_GIT variable.

Fixes: d86a269c1f libubox: update to latest git HEAD
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agolibubox: update to latest git HEAD
Jo-Philipp Wich [Sun, 7 Jan 2018 15:15:52 +0000 (16:15 +0100)]
libubox: update to latest git HEAD

1c08e80 jshn: properly support JSON "null" type

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agoRevert "fstools: update to latest git HEAD"
Jo-Philipp Wich [Sun, 7 Jan 2018 12:42:36 +0000 (13:42 +0100)]
Revert "fstools: update to latest git HEAD"

This reverts commit df326e9b2e71a2c639371ef8acec0ac98bc36122.

The referenced commit does not exist in the upstream repository.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agofstools: update to latest git HEAD
John Crispin [Sun, 7 Jan 2018 12:02:38 +0000 (13:02 +0100)]
fstools: update to latest git HEAD

2a9a6ea libfstools: optimize building directory string for glob
de6b026 libfstools: support file paths longer than 255 chars

Signed-off-by: John Crispin <john@phrozen.org>
6 years agoar71xx: fix compiler warnings in mdio-bitbang.c for 4.4
Gabor Juhos [Fri, 5 Jan 2018 18:13:20 +0000 (19:13 +0100)]
ar71xx: fix compiler warnings in mdio-bitbang.c for 4.4

Building Linux 4.4 for ar71xx throws the following warnings in
drivers/net/phy/mdio-bitbang.c:

    CC      drivers/net/phy/mdio-bitbang.o
  In file included from include/linux/irqflags.h:14:0,
                   from drivers/net/phy/mdio-bitbang.c:20:
  drivers/net/phy/mdio-bitbang.c: In function 'mdiobb_read':
  include/linux/typecheck.h:11:18: warning: comparison of distinct pointer types lacks a cast
    (void)(&__dummy == &__dummy2); \
                    ^
  include/linux/irqflags.h:63:3: note: in expansion of macro 'typecheck'
     typecheck(unsigned long, flags); \
     ^
  include/linux/irqflags.h:124:3: note: in expansion of macro 'raw_local_irq_save'
     raw_local_irq_save(flags);   \
     ^
  drivers/net/phy/mdio-bitbang.c:162:2: note: in expansion of macro 'local_irq_save'
    local_irq_save(flags);
    ^
  include/linux/typecheck.h:11:18: warning: comparison of distinct pointer types lacks a cast
    (void)(&__dummy == &__dummy2); \
                    ^
  include/linux/irqflags.h:68:3: note: in expansion of macro 'typecheck'
     typecheck(unsigned long, flags); \
     ^
  include/linux/irqflags.h:126:39: note: in expansion of macro 'raw_local_irq_restore'
   #define local_irq_restore(flags) do { raw_local_irq_restore(flags); } while (0)
                                         ^
  drivers/net/phy/mdio-bitbang.c:175:2: note: in expansion of macro 'local_irq_restore'
    local_irq_restore(flags);
    ^
  drivers/net/phy/mdio-bitbang.c:159:11: warning: unused variable 'i' [-Wunused-variable]
    int ret, i;
             ^
  In file included from include/linux/irqflags.h:14:0,
                   from drivers/net/phy/mdio-bitbang.c:20:
  drivers/net/phy/mdio-bitbang.c: In function 'mdiobb_write':
  include/linux/typecheck.h:11:18: warning: comparison of distinct pointer types lacks a cast
    (void)(&__dummy == &__dummy2); \
                    ^
  include/linux/irqflags.h:63:3: note: in expansion of macro 'typecheck'
     typecheck(unsigned long, flags); \
     ^
  include/linux/irqflags.h:124:3: note: in expansion of macro 'raw_local_irq_save'
     raw_local_irq_save(flags);   \
     ^
  drivers/net/phy/mdio-bitbang.c:185:2: note: in expansion of macro 'local_irq_save'
    local_irq_save(flags);
    ^
  include/linux/typecheck.h:11:18: warning: comparison of distinct pointer types lacks a cast
    (void)(&__dummy == &__dummy2); \
                    ^
  include/linux/irqflags.h:68:3: note: in expansion of macro 'typecheck'
     typecheck(unsigned long, flags); \
     ^
  include/linux/irqflags.h:126:39: note: in expansion of macro 'raw_local_irq_restore'
   #define local_irq_restore(flags) do { raw_local_irq_restore(flags); } while (0)
                                         ^
  drivers/net/phy/mdio-bitbang.c:200:2: note: in expansion of macro 'local_irq_restore'
    local_irq_restore(flags);
    ^

These are caused by the 900-mdio_bitbang_ignore_ta_value and
901-phy-mdio-bitbang-prevent-rescheduling-during-command patches.

The first patch removes some code but it does not remove the variable
which is used by the removed code only.

The second patch adds local_irq_{save,restore} calls. The type of the
argument of these calls must be 'unsigned long', but the patch defines
the variable as 'long'.

Fix both patches to silence the warnings.

Signed-off-by: Gabor Juhos <juhosg@freemail.hu>
6 years agohostapd: bump PKG_RELEASE after 802.11w changes
Jo-Philipp Wich [Sun, 7 Jan 2018 11:42:14 +0000 (12:42 +0100)]
hostapd: bump PKG_RELEASE after 802.11w changes

Fixes: 8a57531855 "hostapd: set group_mgmt_cipher when ieee80211w is enabled"
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agokernel: fix packaging of kmod-gpio-nxp-74hc164
Jo-Philipp Wich [Wed, 3 Jan 2018 12:13:10 +0000 (13:13 +0100)]
kernel: fix packaging of kmod-gpio-nxp-74hc164

The NXP 74HC164 GPIO expander driver uses a different config symbol
("CONFIG_GPIO_74X164") and module name since since at least Kernel
version 2.6.37.

Update the kmod package definition accordingly by adjusting kconfig
and module file names.

This unrelated, but correct change has been separated from the
WNR2000v5 support commits.

Ref: https://github.com/lede-project/source/pull/1256
Suggested-by: Raphael Catolino <raphael.catolino@gmail.com>
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agozlib: only enable NEON optimizations on eligible targets
Jo-Philipp Wich [Thu, 4 Jan 2018 13:43:34 +0000 (14:43 +0100)]
zlib: only enable NEON optimizations on eligible targets

Instead of inferring the availability of NEON support from the target
optimization flags, use a preprocessor test to decide whether to enable
ARMv8 NEON optimizations.

Fixes the following build error spotted by the mediatek/32 buildbot:

    [ 26%] Building C object CMakeFiles/zlib.dir/contrib/arm/inflate.o
    In file included from .../zlib-1.2.11/contrib/arm/chunkcopy.h:10:0,
                     from .../zlib-1.2.11/contrib/arm/inflate.c:87:
    .../arm_neon.h:31:2: error: #error You must enable NEON instructions (e.g. -mfloat-abi=softfp -mfpu=neon) to use arm_neon.h
     #error You must enable NEON instructions (e.g. -mfloat-abi=softfp -mfpu=neon) to use arm_neon.h
      ^
    In file included from .../zlib-1.2.11/contrib/arm/inflate.c:87:0:
    .../zlib-1.2.11/contrib/arm/chunkcopy.h:18:9: error: unknown type name 'uint8x16_t'
     typedef uint8x16_t chunkcopy_chunk_t;
             ^
    [...]
    CMakeFiles/zlib.dir/build.make:302: recipe for target 'CMakeFiles/zlib.dir/contrib/arm/inflate.o' failed

Fixes: 3acecba520 "package/libs/zlib: Add ARM and NEON optimizations"
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agohostapd: set group_mgmt_cipher when ieee80211w is enabled
Jo-Philipp Wich [Fri, 5 Jan 2018 12:15:01 +0000 (13:15 +0100)]
hostapd: set group_mgmt_cipher when ieee80211w is enabled

In order to properly support 802.11w, hostapd needs to advertise a group
management cipher when negotiating associations.

Introduce a new per-wifi-iface option "ieee80211w_mgmt_cipher" which
defaults to the standard AES-128-CMAC cipher and always emit a
"group_mgmt_cipher" setting in native hostapd config when 802.11w is
enabled.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agoargp-standalone: clean up patch fuzz
Kevin Darbyshire-Bryant [Thu, 4 Jan 2018 13:50:10 +0000 (13:50 +0000)]
argp-standalone: clean up patch fuzz

Refresh patches to tidy up fuzz.  No functional changes

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
6 years agolua: clean up patch fuzz
Kevin Darbyshire-Bryant [Thu, 4 Jan 2018 20:07:59 +0000 (20:07 +0000)]
lua: clean up patch fuzz

Refresh patches to tidy up fuzz.  No functional changes

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
6 years agobusybox: clean up patch fuzz
Kevin Darbyshire-Bryant [Thu, 4 Jan 2018 21:22:38 +0000 (21:22 +0000)]
busybox: clean up patch fuzz

Refresh patches to tidy up fuzz.  No functional changes

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
6 years agolantiq: fix wbmr-hp-g300h image metadata
Mathias Kresin [Thu, 4 Jan 2018 20:18:28 +0000 (21:18 +0100)]
lantiq: fix wbmr-hp-g300h image metadata

The Annex A and Annex B version are using the same (old) userspace
boardname. Update the SUPPORTED_DEVICES to allow an update from lede-17.01.

Signed-off-by: Mathias Kresin <dev@kresin.me>
6 years agoscripts/package-metadata.pl: remove broken detection of self-dependencies
Matthias Schiffer [Thu, 4 Jan 2018 16:18:16 +0000 (17:18 +0100)]
scripts/package-metadata.pl: remove broken detection of self-dependencies

A self-dependency is not an error worth a warning; rather, it is very
common: whenever there are dependencies between different binary packages
originating from the same source package, such dependencies occur. Not
actually generating dependency rules is correct, but already handled a few
lines below.

A typo prevented this redundant rule from working, which is the reason the
warning was not actually printed.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
6 years agoopkg: switch source url to git.openwrt.org
Jo-Philipp Wich [Thu, 4 Jan 2018 10:15:45 +0000 (11:15 +0100)]
opkg: switch source url to git.openwrt.org

As LEDE is rebranding to OpenWrt now, adjust the Git source references
accordingly.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agosdk: switch base feed url to git.openwrt.org
Jo-Philipp Wich [Thu, 4 Jan 2018 10:02:01 +0000 (11:02 +0100)]
sdk: switch base feed url to git.openwrt.org

As LEDE is rebranding to OpenWrt now, adjust the base feed Git reference
accordingly.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agox86: preinit: use board_name on Sm Super Servers
Philip Prindeville [Mon, 30 Oct 2017 18:32:46 +0000 (12:32 -0600)]
x86: preinit: use board_name on Sm Super Servers

Supermicro puts "Super Server" into their product_name DMI value
for a whole slew of products, making this value about as useful
as not having been filled in at all.  Instead, fall back on the
board_name instead.

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
6 years agox86: preinit: make name rewrite into reusable function
Philip Prindeville [Mon, 30 Oct 2017 18:31:04 +0000 (12:31 -0600)]
x86: preinit: make name rewrite into reusable function

There might be other places (such as vendor-supplied preinit scripts)
where we wish to take a DMI name and clean it up in a consistent way,
so make the sed command into a function.

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
6 years agonetifd: update to latest git HEAD
Hans Dedecker [Thu, 4 Jan 2018 08:47:07 +0000 (09:47 +0100)]
netifd: update to latest git HEAD

fd5c399 proto: allow dumping protocol handlers without config_params

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
6 years agomerge: github: use OpenWrt in issue/pr templates
Stijn Tintel [Wed, 3 Jan 2018 19:33:53 +0000 (20:33 +0100)]
merge: github: use OpenWrt in issue/pr templates

Keep the link to submitting patches for now.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
6 years agokernel: bump 4.14 to 4.14.11
Stijn Tintel [Tue, 2 Jan 2018 21:12:28 +0000 (22:12 +0100)]
kernel: bump 4.14 to 4.14.11

Rename unwinder config symbols to match upstream changes.
Refresh patches.
Update patch that no longer applies: 202-reduce_module_size.patch

Also enable CONFIG_PAGE_TABLE_ISOLATION. This feature was backported
from 4.15 to the 4.14 stable series. It is enabled by default, so enable
it in OpenWrt as well.

Compile-tested on x86/64.
Runtime-tested on x86/64.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
6 years agokernel: move CONFIG_KASAN to generic config
Stijn Tintel [Tue, 2 Jan 2018 17:53:04 +0000 (18:53 +0100)]
kernel: move CONFIG_KASAN to generic config

While bumping 4.14, the kernel build failed due to missing CONFIG_KASAN
symbol. Move it to generic config instead of defining it for all arm64
and x86/64 targets.

It was only added in 4.0, so not needed in config-3.18.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
6 years agouci: add missing 'option' support to uci_rename()
Tony Ambardar [Tue, 25 Apr 2017 09:16:56 +0000 (02:16 -0700)]
uci: add missing 'option' support to uci_rename()

When using the uci.sh wrapper, allow parameters to match those supported
by the uci binary i.e. "uci rename <config>.<section>[.<option>]=<name>".

Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
6 years agopackage/libs/zlib: Add host build
Daniel Engberg [Tue, 12 Dec 2017 14:31:59 +0000 (15:31 +0100)]
package/libs/zlib: Add host build

Some packages such as Python/Python3 (host pip/pip3) needs this
to compile.

More detailed explanation provided by Alexandru:

"i need the zlib/host for Python/Python3 ; because, it seems the
host pip/pip3 needs this to work ; i suspect in older versions
this worked, because some of the host's build env would be used
in the build, and then the zlib-dev from the host distro would
be used ; now, the host-build does not seem to have any
-I/usr/include stuff, which is good

and it also seems that Python/Python3 does not like it if the
zlib-dev package is too old, so using this zlib/host would be
good for this as well"

Source:
https://github.com/lede-project/source/pull/1329#issuecomment-351055861

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
6 years agopackage/libs/zlib: Add option for O3 optimization
Daniel Engberg [Tue, 5 Sep 2017 17:31:10 +0000 (19:31 +0200)]
package/libs/zlib: Add option for O3 optimization

Add option to use O3 optimization as not all devices have
space constraints. This option is default using GCC in upstream
but isn't in the CMake makefile for some reason.

Source: https://github.com/madler/zlib/blob/master/configure#L170

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
6 years agopackage/libs/zlib: Add ARM and NEON optimizations
Daniel Engberg [Tue, 5 Sep 2017 18:38:07 +0000 (20:38 +0200)]
package/libs/zlib: Add ARM and NEON optimizations

This adds two optimizations for ARM:
NEON optimized Adler(-)32 checksum algorithm (ARMv7 and newer NEON CPUs)
ARM(v7+) specific optimization for inflate
I've also connected inflate optimization to the build using the following
source as template.
https://github.com/mirror/chromium/commit/0397489124ce7e6aced020f8b85f5034c7d5f49b#diff-a62ad2db6c83dbc205d34bb9a8884f16

Additional info:
https://codereview.chromium.org/2676493007/
https://codereview.chromium.org/2722063002/

Sources:
https://github.com/madler/zlib/pull/251 (only the first commit)
https://github.com/madler/zlib/pull/256

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
6 years agopackage/libs/zlib: Use toolchain build logic
Daniel Engberg [Tue, 5 Sep 2017 17:31:10 +0000 (19:31 +0200)]
package/libs/zlib: Use toolchain build logic

Use build logic provided by toolchain instead of doing it manually.

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
6 years agoprocd: procd_send_signal use signal names
Kevin Darbyshire-Bryant [Tue, 2 Jan 2018 14:34:51 +0000 (14:34 +0000)]
procd: procd_send_signal use signal names

Usage documentation for 'procd_send_signal' states "The signal is SIGHUP
by default, and must be specified by NAME."  Make actual behaviour match
the stated documented behaviour.

https://wiki.openwrt.org/inbox/procd-init-scripts

Suggested-by: Jo-Philip Wich <jow@mein.io>
Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
6 years agoprocd: update to latest git HEAD
John Crispin [Tue, 2 Jan 2018 12:04:06 +0000 (13:04 +0100)]
procd: update to latest git HEAD

a5954cf procd: Add %m to several functions that return errno.
810d7a5 procd: Remove redundant errno variable in several printf functions.
fa5ce1c procd: Replace strerror(errno) with %m.

Signed-off-by: John Crispin <john@phrozen.org>
6 years agoumdns: update to latest git HEAD
John Crispin [Tue, 2 Jan 2018 11:58:05 +0000 (12:58 +0100)]
umdns: update to latest git HEAD

7897441 umdnsd: Replace strerror(errno) with %m.

Signed-off-by: John Crispin <john@phrozen.org>
6 years agokernel: make uas work during early boot
Daniel Albers [Thu, 28 Dec 2017 17:36:24 +0000 (18:36 +0100)]
kernel: make uas work during early boot

Add the uas(p) module to the modules loaded early on the boot process.

The uas(p) is an modern alternative, which is used by the modern USB3
storage cases, compared to the bot protocol. To be able to use uas(p)
storage cases for extroot, the kernel module has to be loaded before the
search for extroot has been called. This patch changes the load order to
support uas(p) storage cases for extroot.

Signed-off-by: Daniel Albers <daniel.albers@public-files.de>
6 years agofstools: update to latest git HEAD
John Crispin [Tue, 2 Jan 2018 06:55:41 +0000 (07:55 +0100)]
fstools: update to latest git HEAD

11efbf3 overlay: fix race condition when switching to jffs2
bdeb95a libblkid-tiny: add support for NTFS superblock
ef2cc03 fstools: Replace strerror(errno) with %m format.
98fd5b4 libblkid-tiny: add support for UBI superblock

Signed-off-by: John Crispin <john@phrozen.org>
6 years agobase-files: protect stop and reload actions with procd_lock
Roman Yeryomin [Thu, 14 Dec 2017 21:55:08 +0000 (23:55 +0200)]
base-files: protect stop and reload actions with procd_lock

Signed-off-by: Roman Yeryomin <roman@advem.lv>
Signed-off-by: Andrejs Hanins <ahanins@gmail.com>
6 years agoprocd: introduce procd_lock for init script protection
Roman Yeryomin [Thu, 14 Dec 2017 21:54:26 +0000 (23:54 +0200)]
procd: introduce procd_lock for init script protection

Use flock to protect init script from concurrent execution
(of the same script).
Important for services which generate native config files.

Signed-off-by: Roman Yeryomin <roman@advem.lv>
Signed-off-by: Andrejs Hanins <ahanins@gmail.com>
6 years agobusybox: enable flock by default
Roman Yeryomin [Sun, 17 Dec 2017 18:30:42 +0000 (20:30 +0200)]
busybox: enable flock by default

This is needed for procd init script protection to work.
flock adds 4248 bytes to stripped busybox binary.

Signed-off-by: Roman Yeryomin <roman@advem.lv>