Hans Dedecker [Thu, 8 Nov 2018 11:15:05 +0000 (12:15 +0100)]
x86: custo support
Hans Dedecker [Mon, 5 Nov 2018 14:32:48 +0000 (15:32 +0100)]
iproute2: update to 4.19.0
Update to the latest version of iproute2; see https://lwn.net/Articles/769354/
for a full overview of the changes in 4.19.
Remove 190-add-cake-to-tc patch as CAKE qdisc is now supported in 4.19.0
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Konstantin Demin [Tue, 16 Oct 2018 13:31:58 +0000 (16:31 +0300)]
dropbear: split ECC support to basic and full
- limit ECC support to ec*-sha2-nistp256:
* DROPBEAR_ECC now provides only basic support for ECC
- provide full ECC support as an option:
* DROPBEAR_ECC_FULL brings back support for ec{dh,dsa}-sha2-nistp{384,521}
- update feature costs in binary size
Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
Konstantin Demin [Tue, 16 Oct 2018 13:31:57 +0000 (16:31 +0300)]
dropbear: rewrite init script startup logic to handle both host key files
Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
Konstantin Demin [Tue, 16 Oct 2018 13:31:56 +0000 (16:31 +0300)]
dropbear: change type of config option "Port" to scalar type "port"
it was never used anywhere, even LuCI works with "Port" as scalar type.
Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
Konstantin Demin [Tue, 16 Oct 2018 13:31:55 +0000 (16:31 +0300)]
dropbear: introduce config option "keyfile" (replacement for "rsakeyfile")
* option "keyfile" is more generic than "rsakeyfile".
* option "rsakeyfile" is considered to be deprecated and should be removed
in future releases.
* warn user (in syslog) if option "rsakeyfile" is used
* better check options ("rsakeyfile" and "keyfile"): don't append
"-r keyfile" to command line if file is absent (doesn't exist or empty),
warn user (in syslog) about such files
Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
Konstantin Demin [Tue, 16 Oct 2018 13:31:54 +0000 (16:31 +0300)]
dropbear: add initial support for ECC host key
Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
Konstantin Demin [Tue, 16 Oct 2018 16:03:14 +0000 (19:03 +0300)]
dropbear: avoid extended regex in ifndef_wrapper.sh
cherry-pick upstream commit
195934be96aa2aabd0bec0adf14f242155008e50
Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
Konstantin Demin [Tue, 16 Oct 2018 13:31:51 +0000 (16:31 +0300)]
dropbear: ifndef/endif checks for CHECKCLEARTOWRITE()
cherry-pick upstream commit
89bdf3b0b9376204b039f38f8bebffa92cb30d4e
Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
Konstantin Demin [Tue, 16 Oct 2018 13:31:50 +0000 (16:31 +0300)]
dropbear: make writev #include consistent
cherry-pick upstream commit
e7504b33118f30e981195b6022b8ee61a58b2e45
Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
Konstantin Demin [Tue, 16 Oct 2018 13:31:49 +0000 (16:31 +0300)]
dropbear: fix remote forward listeners
cherry-pick upstream commit
d2e71ade726794d888e998eda0b094a70746160b
Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
Konstantin Demin [Tue, 16 Oct 2018 13:31:48 +0000 (16:31 +0300)]
dropbear: Only advertise a single ecdsa key when -R is specified
cherry-pick upstream commit
56855744b8309f6ca672e224ce8f287b5b6ba774
Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
Konstantin Demin [Tue, 16 Oct 2018 13:31:47 +0000 (16:31 +0300)]
dropbear: avoid compiler optimization in m_burn
cherry-pick upstream commits
-
b17254925ddd82aa633ca8128751b93840fabc9b
-
8a4f7fe4f8435b9551c4145f93876e11de78cdcb
-
257bba00ac1c1461b18ff1f5d420ec83fa13a368
Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
Konstantin Demin [Tue, 16 Oct 2018 13:31:46 +0000 (16:31 +0300)]
Konstantin Demin [Tue, 16 Oct 2018 13:31:45 +0000 (16:31 +0300)]
dropbear: remove unused packet_type in encrypted write queue
cherry-pick upstream commit
7f1591054198e6633f7ed2b1f79d8ed0826df21b
Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
Konstantin Demin [Tue, 16 Oct 2018 13:31:44 +0000 (16:31 +0300)]
dropbear: make buf_getstring fail fast
cherry-pick upstream commit
9f1c8b2f8fe1722815af1cfb152c3f48aa9848ce
Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
Konstantin Demin [Tue, 16 Oct 2018 13:31:43 +0000 (16:31 +0300)]
dropbear: fix double closing fd
cherry-pick upstream commit
c1694230516fe1c3d78e4fd23aebd5fbc00ce21c
Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
Konstantin Demin [Tue, 16 Oct 2018 13:31:42 +0000 (16:31 +0300)]
dropbear: forbid multiple "command=" options
cherry-pick upstream commit
ed4c38ba467618a7193f4e5dec1d5f0169e0c227
Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
Konstantin Demin [Tue, 16 Oct 2018 13:31:41 +0000 (16:31 +0300)]
dropbear: wait to fail invalid usernames
fixes CVE-2018-15599 (same patch as
2211ee0037)
cherry-pick upstream commit
52adbb34c32d3e2e1bcdb941e20a6f81138b8248
Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
Konstantin Demin [Tue, 16 Oct 2018 13:31:40 +0000 (16:31 +0300)]
dropbear: fix memory leaks with zlib enabled
cherry-pick upstream commit
c1694230516fe1c3d78e4fd23aebd5fbc00ce21c
Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
Konstantin Demin [Tue, 16 Oct 2018 13:31:39 +0000 (16:31 +0300)]
dropbear: avoid leak of pubkey_options
cherry-pick upstream commit
e9edbe8bb204b00c7f4b4fda7eeee9d0177934ae
Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
Konstantin Demin [Tue, 16 Oct 2018 13:31:38 +0000 (16:31 +0300)]
dropbear: avoid leak of ecdh public key
cherry-pick upstream commit
38c9408cf859525029f6eb4fe00b50259e08e3f2
Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
Konstantin Demin [Tue, 16 Oct 2018 13:31:37 +0000 (16:31 +0300)]
dropbear: don't allow null characters in authorized_keys
cherry-pick upstream commit
27828c742c0c5e024aa5dd1a5333d64cb4a1b16c
Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
Konstantin Demin [Tue, 16 Oct 2018 13:31:36 +0000 (16:31 +0300)]
dropbear: libtommath: don't read uninitialised value
cherry-pick upstream commit
145fb9698929d247dffb35189397a3daff497431
Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
Konstantin Demin [Tue, 16 Oct 2018 13:31:35 +0000 (16:31 +0300)]
dropbear: avoid empty input in base64_decode
cherry-pick upstream commit
ee5769f31fc5bef0c0f5f6977523918af892fa3b
Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
Konstantin Demin [Tue, 16 Oct 2018 13:31:34 +0000 (16:31 +0300)]
dropbear: tighten ECC configuration
it's primary to avoid configuration/build errors in future.
cherry-pick upstream commits:
-
b4b11c8155b09e4d56925d2d4336c10d802adf11
-
ba94bcd2e876cf79a66f3f9f4e46473f89c288c8
Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
Konstantin Demin [Tue, 16 Oct 2018 13:31:33 +0000 (16:31 +0300)]
dropbear: fix build time warning
compiler complains in build log:
svr-auth.c: In function 'checkusername':
svr-auth.c:315:8: warning: extra tokens at end of #endif directive [-Wendif-labels]
#endif HAVE_GETGROUPLIST
^~~~~~~~~~~~~~~~~
while this warning is harmless, let's fix it.
cherry-pick upstream commit
1ae4237920c3bd7f2fa6958d2a390f6693852285
Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
Konstantin Demin [Tue, 16 Oct 2018 13:31:32 +0000 (16:31 +0300)]
dropbear: honour CFLAGS while building bundled libtomcrypt/libtommath
Felix Fietkau pointed out that bundled libtomcrypt/libtommath do funny stuff with CFLAGS.
fix this with checking environment variable OPENWRT_BUILD in both libs.
change in dropbear binary size is drastical: 221621 -> 164277.
Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
Konstantin Demin [Tue, 16 Oct 2018 13:31:31 +0000 (16:31 +0300)]
dropbear: fix hardening flags during configure
compiler complains about messed up CFLAGS in build log:
<command-line>: warning: "_FORTIFY_SOURCE" redefined
<command-line>: note: this is the location of the previous definition
and then linker fails:
mips-openwrt-linux-musl-gcc [...] -o dropbearmulti [...]
collect2: fatal error: ld terminated with signal 11 [Segmentation fault]
compilation terminated.
/staging_dir/toolchain-mips_24kc_gcc-8.2.0_musl/mips-openwrt-linux-musl/bin/ld: /tmp/cc27zORz.ltrans0.ltrans.o: relocation R_MIPS_HI16 against `cipher_descriptor' can not be used when making a shared object; recompile with -fPIC
/staging_dir/toolchain-mips_24kc_gcc-8.2.0_musl/mips-openwrt-linux-musl/bin/ld: /tmp/cc27zORz.ltrans1.ltrans.o: relocation R_MIPS_HI16 against `ses' can not be used when making a shared object; recompile with -fPIC
/staging_dir/toolchain-mips_24kc_gcc-8.2.0_musl/mips-openwrt-linux-musl/bin/ld: /tmp/cc27zORz.ltrans2.ltrans.o: relocation R_MIPS_HI16 against `cipher_descriptor' can not be used when making a shared object; recompile with -fPIC
/staging_dir/toolchain-mips_24kc_gcc-8.2.0_musl/mips-openwrt-linux-musl/bin/ld: BFD (GNU Binutils) 2.31.1 assertion fail elfxx-mips.c:6550
[...]
/staging_dir/toolchain-mips_24kc_gcc-8.2.0_musl/mips-openwrt-linux-musl/bin/ld: BFD (GNU Binutils) 2.31.1 assertion fail elfxx-mips.c:6550
make[3]: *** [Makefile:198: dropbearmulti] Error 1
make[3]: *** Deleting file 'dropbearmulti'
make[3]: Leaving directory '/build_dir/target-mips_24kc_musl/dropbear-2018.76'
make[2]: *** [Makefile:158: /build_dir/target-mips_24kc_musl/dropbear-2018.76/.built] Error 2
make[2]: Leaving directory '/package/network/services/dropbear'
This FTBFS issue was caused by hardening flags set up by dropbear's configure script.
By default, Dropbear offers hardening via CFLAGS and LDFLAGS,
but this may break or confuse OpenWrt settings.
Remove most Dropbear's hardening settings in favour of precise build,
but preserve Spectre v2 mitigations:
* -mfunction-return=thunk
* -mindirect-branch=thunk
Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
Konstantin Demin [Tue, 16 Oct 2018 13:31:30 +0000 (16:31 +0300)]
dropbear: fix accidental reset of supplied CFLAGS
compiler complains about messed up CFLAGS in build log:
cc1: note: someone does not honour COPTS correctly, passed 0 times
cherry-pick upstream commit
8d0b48f16550c9bf3693b2fa683f21e8276b1b1a
Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
Konstantin Demin [Tue, 16 Oct 2018 13:31:29 +0000 (16:31 +0300)]
dropbear: bump to 2018.76
- drop patches applied upstream:
* 010-runtime-maxauthtries.patch
* 150-dbconvert_standalone.patch
* 610-skip-default-keys-in-custom-runs.patch
- drop patches backported to previous version,
because they need to be reapplied to current version:
* 020-Wait-to-fail-invalid-usernames.patch
- refresh patches
- move OpenWrt configuration from patch to Build/Configure recipe,
thus drop patch 120-openwrt_options.patch
- update copyright years
Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
xuefenghao [Thu, 28 Sep 2017 01:19:23 +0000 (09:19 +0800)]
ledtrig-netdev: add support for brightness
Instead of using the hard-coded LED_FULL when bring ON a LED,
use 'echo value > brightness' to control the brightness in netdev trigger.
Signed-off-by: xuefenghao <haoxf1@163.com>
Felix Fietkau [Thu, 8 Nov 2018 08:17:18 +0000 (09:17 +0100)]
mt76: update to the latest version, fix a typo
29d9532 mt7603: fix faulty variable initialization in last commit
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Felix Fietkau [Wed, 7 Nov 2018 19:35:23 +0000 (20:35 +0100)]
mt76: update to the latest version
417cf49 mt7603: improve recovery from MCU hang
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Rafał Miłecki [Wed, 7 Nov 2018 10:16:25 +0000 (11:16 +0100)]
mac80211: brcmfmac: backport the last accepted 4.21 changes
It's a typo fix & patch that helps debugging possible WARN-ings.
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Rafał Miłecki [Wed, 7 Nov 2018 10:06:16 +0000 (11:06 +0100)]
mac80211: brcmfmac: backport NVRAM loading improvements
This adds support for storing board specific NVRAM files as firmware.
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Rafał Miłecki [Wed, 7 Nov 2018 08:43:14 +0000 (09:43 +0100)]
mac80211: brcmfmac: backport firmware loading cleanup
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Rafał Miłecki [Wed, 7 Nov 2018 08:01:32 +0000 (09:01 +0100)]
mac80211: brcmfmac: backport the latest 4.20 changes
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Rafał Miłecki [Wed, 7 Nov 2018 07:52:46 +0000 (08:52 +0100)]
mac80211: brcmfmac: rename 4.20 backport patches
Include kernel version to help tracking changes.
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Felix Fietkau [Tue, 6 Nov 2018 21:25:06 +0000 (22:25 +0100)]
mt76: update to the latest version
172f081 mt76x0: do not overwrite other MT_BBP(AGC, 8) fields
2ae2046 mt76x0: phy: use mt76_poll_msec in mt76x0_phy_temp_sensor
add66a0 mt76x0: init: use mt76x02_mac_shared_key_setup in mt76x0_init_hardware
1f24db9 mt76x2: move wcid_tx_rate conf at bootstrap
097b2bd mt76x0: init: use mt76x02_mac_wcid_setup for wcid configuration
d0eb03e mt76x2u: init: remove not useful configuration
c7aa8f4 mt76x2u: init: use common routines for wcid/key initialization
bd568d9 mt76: move mt76x02_eeprom_copy in mt76x02-lib module
57b441d mt76x0: phy: introduce tssi calibration support
a78802c mt76x0: phy: use tssi reported value to configure tx power if available
94ad030 mt76: remove mcu_msg_alloc
15cb426 mt76: remove wait argument from mt76x02_mcu_function_select
cd76a83 mt76: remove wait argument from mt76x02_mcu_set_radio_state
9b97e0f mt76x02: run calibration after scanning
663b197 mt76x02: assure we update gain after scan
eb53745 mt76x0: dfs: fix IBI_R11 configuration on non-radar channels
ef06c30 mt76: avoid queue/status spinlocks while passing tx status to mac80211
5195257 mt7603: fix maximum rx frame size
01815e9 mt7603: use mutex from struct mt76_dev
3c8e8a7 mt7603: use irq_lock/irqmask from struct mt76_dev
8b7f50d mt76: add size check for additional rx fragments
87bad3a mt7603: stop MAC on watchdog reset
c34baab mt7603: add missing unlock in case changing the channel fails
ac6fc78 mt7603: add debugfs file to trigger watchdog resets
d9b5324 mt7603: add SPDX license identifiers
498d716 mt7603: fix checkpatch issues
a1afefd mt7603: fix handling of fixed rate packets
5ee0523 mt7603: fix tx status rate reporting for fixed-rate packets
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Felix Fietkau [Tue, 6 Nov 2018 21:24:03 +0000 (22:24 +0100)]
ramips: add missing DTS frequency limit for the 5 GHz radio on Archer C20i
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Koen Vandeputte [Tue, 6 Nov 2018 15:33:09 +0000 (16:33 +0100)]
valgrind: bump to 4.14.0
Release notes can be found here:
http://www.valgrind.org/docs/manual/dist.news.html
Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
Koen Vandeputte [Tue, 6 Nov 2018 14:10:17 +0000 (15:10 +0100)]
ramips: fix image generation for mt76x8
Buildbot fails to generate images for targets also generating a
Sercomm binary with following error:
Opening file: /mnt/ramdisk/koen/firmware/builds/owrt_mt76x8/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/tmp/openwrt-ramips-mt76x8-netgear_r6120-squashfs-factory.img.rootfs.zip
Filesize:
3648606 .
mksercommfw: malloc.c:2427: sysmalloc: Assertion `(old_top == initial_top (av) && old_size == 0) || ((unsigned long) (old_size) >= MINSIZE && prev_inuse (old_top) && ((unsigned long) old_end & (pagesize - 1)) == 0)' failed.
Makefile:287: recipe for target '/mnt/ramdisk/koen/firmware/builds/owrt_mt76x8/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/tmp/openwrt-ramips-mt76x8-netgear_r6120-squashfs-factory.img' failed
Debugging using valgrind shows stack corruption due to a buffer overflow.
The author of the generator assumes the filename ends with "root",
while it should be "rootfs".
Fix this by accounting for the 2 missing characters which solves the build issues.
More work is required to cleanup this source, which will be done later on.
Reported-by: Hannu Nyman <hannu.nyman@iki.fi>
Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
Koen Vandeputte [Mon, 5 Nov 2018 16:41:00 +0000 (17:41 +0100)]
imx6: fix DMA transaction errors
Following errors were seen in the past on imx6 when using serial:
[ 22.617622] imx-uart
2020000.serial: DMA transaction error.
[ 22.623228] imx-uart
2020000.serial: DMA transaction error.
[ 22.628826] imx-uart
2020000.serial: DMA transaction error.
[ 22.648951] imx-uart
2020000.serial: DMA transaction error.
[ 22.654558] imx-uart
2020000.serial: DMA transaction error.
[ 22.660156] imx-uart
2020000.serial: DMA transaction error.
Which is the reason why DMA for the serial ports
got disabled in commits:
efb362cd93b0 ("imx6: disable dma on uart")
3b4241071dd4 ("imx6: disable UART dma")
As indicated on mailinglist discussion, the cause seems to be
the usage of very old SDMA firmware which is present in the soc:
[ 0.624302] imx-sdma
20ec000.sdma: Direct firmware load for imx/sdma/sdma-imx6q.bin failed with error -2
[ 0.624318] imx-sdma
20ec000.sdma: Falling back to user helper
[ 64.531607] imx-sdma
20ec000.sdma: external firmware not found, using ROM firmware
This patch adds the new firmware binary. (2196 bytes)
It is required to embed the binary into the kernel image, as it
gets loaded very early in the boot process where the rootfs is not
available yet:
[ 0.622966] imx-sdma
20ec000.sdma: loaded firmware 3.3
Extended testing shows that the DMA errors are not seen anymore
when using this newer firmware version.
Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
Koen Vandeputte [Mon, 5 Nov 2018 10:31:12 +0000 (11:31 +0100)]
ath9k: fix dynack in IBSS mode
Currently, dynack was only tested upstream using AP/STA mode.
Testing it on IBSS, showed that late-ack detection was broken.
This is caused due to dynack using Association Request/Response
frames for late-ack detection, which IBSS does not use.
Also allowing Authentication frames here solves this.
A second issue also got fixed, which was also seen AP/STA mode:
When a station was added, the estimated value would be exponentially averaged
using 0 as a starting point.
This means that on larger distances, the ack timeout was still not high
enough before synchronizing would run out of late-ack's for estimation.
Fix this by using the initial estimated value as a baseline
and only start averaging in the following estimation rounds.
Test setup:
- 2x identical devices: RB912UAG-5HPnD + 19dB sector
- IBSS
- 2x2 802.11an (ar9340), HT20, long GI
- RSSI's -70 / -71
- Real distance: 23910 meter
Results (60s iperf runs):
Fixed coverage class 54 (up to 24300m):
* 21.5 Mbits/sec
Dynack:
* 28.9 Mbits/sec
Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
Koen Vandeputte [Mon, 5 Nov 2018 11:53:55 +0000 (12:53 +0100)]
ar71xx: disable some tiny targets with kernel 4.14
The bump to kernel 4.14 caused a massive increase in kernel size.
For most targets, switching them to dynamic partitioning allowed
to cope with this.
On some targets, the kernel partition is located behind the rootfs,
which disallows switching to dynamic partitioning as the boot location
would be altered, requiring a u-boot change.
Also within the tiny section, which disables kernel symbols etc
to decrease the image size, the partition size is still too small.
Disable these targets for now, fixing image generation:
- Buffalo BHR-4GRV2
- Zbtlink ZBT-WE1526
Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
Koen Vandeputte [Mon, 5 Nov 2018 10:22:43 +0000 (11:22 +0100)]
kernel: bump 4.14 to 4.14.79
Refreshed all patches.
Compile-tested on: ar71xx, cns3xxx, imx6, x86_64
Runtime-tested on: ar71xx, cns3xxx, imx6, x86_64
Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
Hans Dedecker [Mon, 5 Nov 2018 13:19:33 +0000 (14:19 +0100)]
glibc: update to latest 2.27 commit (BZ#23709,BZ#23822)
d8eee5ef55 x86: Fix Haswell CPU string flags (BZ#23709)
5cd5309d91 i64: fix missing exp2f, log2f and powf symbols in libm.a [BZ #23822]
1759ea197b conform: XFAIL siginfo_t si_band test on sparc64
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Hannu Nyman [Sun, 4 Nov 2018 15:42:09 +0000 (17:42 +0200)]
tools/bison: update to version 3.2
Update bison to version 3.2
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
David Bauer [Sun, 4 Nov 2018 15:01:39 +0000 (16:01 +0100)]
ipq40xx: fix NBG6617 LED mapping
The NBG6617's LEDs are wrongly identified in the 01_leds boardinit
script (board instead of boardname), resulting in referencing
non-existent LEDs in UCI.
Signed-off-by: David Bauer <mail@david-bauer.net>
Daniel Golle [Sun, 4 Nov 2018 17:26:28 +0000 (18:26 +0100)]
oxnas: add console=ttyS0,115200 argument to bootargs
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Daniel Golle [Sun, 4 Nov 2018 17:24:57 +0000 (18:24 +0100)]
oxnas: enable image metadata by setting SUPPORTED_DEVICES
For each board, set the legacy name as well as the new based on the
compatible-string from devicetree.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Daniel Golle [Sun, 4 Nov 2018 17:23:51 +0000 (18:23 +0100)]
oxnas: remove stray kernel config symbols
CONFIG_CRYPTO_* shouldn't be set by the target
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Daniel Golle [Sun, 4 Nov 2018 17:22:33 +0000 (18:22 +0100)]
oxnas: switch to generic board detect
remove /lib/oxnas.sh platform-specific board-detection and use
generic which is based on device-tree compatible node instead.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Alexander Couzens [Sat, 3 Nov 2018 00:22:59 +0000 (01:22 +0100)]
iperf: allow non-ipv6 builds
Add configure argument --disable-ipv6 when ipv6 is deselected.
Add fix-non-ipv6-builds.patch as long there is no new upstream
release.
Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
Martin Weinelt [Fri, 2 Nov 2018 19:52:01 +0000 (20:52 +0100)]
ramips: fix leds on GL.iNet GL-MT300N-V2
The WAN LED now shows the link state. It's color is green,
not blue.
Signed-off-by: Martin Weinelt <hexa@darmstadt.ccc.de>
Hans Dedecker [Fri, 2 Nov 2018 12:05:13 +0000 (13:05 +0100)]
curl: noop commit to refer CVEs fixed in 7.62.0
When bumping Curl to 7.62.0 in commit
278e4eba09 I did not include the fixed
CVEs in the commit message; this commit fixes this.
The following CVEs were fixed in 7.62.0 :
CVE-2018-16839
CVE-2018-16840
CVE-2018-16842
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Christian Lamparter [Mon, 22 Oct 2018 21:47:56 +0000 (23:47 +0200)]
ipq-wifi: drop custom board-2.bins
The BDFs for all boards were upstreamed to the ath10k-firmware
repository and linux-firmware.git.
We switched to the upstream board-2.bin, hence the files can be removed
here.
Keep the ipq-wifi package in case new boards are added. It might take
some time till board-2.bins send upstream are merged.
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
Christian Lamparter [Mon, 22 Oct 2018 21:47:55 +0000 (23:47 +0200)]
ipq40xx: nbg6617: switch to upstream boardfile variant
The NBG6617's boardfile was merged and this device can
now switch to the upstream ath10k board-2.bin.
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
Christian Lamparter [Mon, 22 Oct 2018 21:47:54 +0000 (23:47 +0200)]
ath10k-firmware: update board-2.bin for community firmwares
This patch updates the board-2.bin for the default
IPQ4019, QCA9984 and QCA9888 ath10k-firmware-xyz-ct
and -ct-htt firmwares.
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
Christian Lamparter [Mon, 22 Oct 2018 21:47:53 +0000 (23:47 +0200)]
ipq40xx: rt-ac58u: replace ubi auto load hack
This patch replaces the custom autoload quirk of the
RT-AC58U with a bootargs-append overwrite.
The vendor's u-boot doesn't leave the bootargs / cmdline alone,
so the it can't be overwritten in any other way right now...
And of course, this will be a lot of fun to deal with once
the device switches to the new spi-nand subsystem.
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
Rosen Penev [Sun, 28 Oct 2018 01:53:52 +0000 (18:53 -0700)]
kernel: Remove dependencies on old kernels
Kernels 4.1 and 4.4 are not part of the tree anymore.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Rosen Penev [Wed, 31 Oct 2018 23:55:14 +0000 (16:55 -0700)]
tools/patch: Add fedora patch for crashing git style patches
https://lists.gnu.org/archive/html/bug-patch/2018-10/msg00000.html
I assume a CVE number will be assigned soon.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Daniel Engberg [Fri, 19 Oct 2018 21:05:44 +0000 (23:05 +0200)]
libconfig: Fix tarball filename (and URL)
v$(PKG_VERSION).tar.gz is a bad idea and will clash for obvious reasons.
Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
Hauke Mehrtens [Thu, 1 Nov 2018 13:05:59 +0000 (14:05 +0100)]
scripts: update config.guess and config.sub
This updates these two files to commit
2fa97a8a0ed3 ("config.guess
(amd64:CYGWIN*:*:*, x86_64:CYGWIN*:*:*): Set master") which is the
current master of
https://git.savannah.gnu.org/gitweb/?p=config.git;a=summary
This contains updates for multiple architectures and will unbreak the
build on the x32 ABI.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Thorsten Glaser [Mon, 22 Oct 2018 19:00:57 +0000 (21:00 +0200)]
build: fix libressl build on x32 (amd64ilp32) host
disable use of assembly code since x32 gets misdetected as amd64
Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
Michael Heimpold [Sun, 28 Oct 2018 14:26:08 +0000 (15:26 +0100)]
uboot-mxs: bump to v2018.09
Also update the U-Boot BSP patch for I2SE Duckbill devices
and remove upstreamed patch for LibreSSL support.
Signed-off-by: Michael Heimpold <mhei@heimpold.de>
Hannu Nyman [Sun, 28 Oct 2018 14:49:28 +0000 (16:49 +0200)]
tools/ccache: update to 3.5
Update ccache to 3.5
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
Kabuli Chana [Mon, 29 Oct 2018 16:58:07 +0000 (10:58 -0600)]
mwlwifi: update to version 10.3.8.0-
20181029
compile / test target mvebu / mamba
Signed-off-by: Kabuli Chana <newtownBuild@gmail.com>
Thomas Fuzeau [Tue, 30 Oct 2018 11:06:22 +0000 (12:06 +0100)]
kernel: add kmod-usb-serial-mos7840
Enable build of kernel module for mos7840 usb-serial devices.
Signed-off-by: Thomas Fuzeau <tfuzeau@loocla.com>
Hans Dedecker [Wed, 31 Oct 2018 21:58:54 +0000 (22:58 +0100)]
curl: bump to 7.62.0
Refresh patches, for changes in version 7.62.0 see https://curl.haxx.se/changes.html#7_62_0
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Matthias Schiffer [Tue, 30 Oct 2018 19:38:34 +0000 (20:38 +0100)]
openssl: enable OPENSSL_WITH_DEPRECATED when OpenSSL is built as a build dep
Some package (e.g. libunbound) depend on OPENSSL_WITH_DEPRECATED. In some
situations it may happen that libunbound and openssl are only pulled in as
build dependencies, but are not enabled in .config.
In such cases, the defaults of symbols like OPENSSL_WITH_DEPRECATED are
ignored (as the whole symbol depends on PACKAGE_libopenssl), and config
symbol dependencies of libunbound aren't effective either (as libunbound
is not actually enabled).
This commit works around the issue by introducing a hidden negated symbol
OPENSSL_NO_DEPRECATED, which is always disabled when PACKAGE_libopenssl is
disabled, and ensures that OpenSSL is built with deprecated APIs in this
case. A user can still manage to break the build by explicitly enabling
libopenssl and disabling OPENSSL_WITH_DEPRECATED; the interaction between
build dependencies and config symbols will require further discussion.
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
Kevin Darbyshire-Bryant [Thu, 11 Oct 2018 08:46:42 +0000 (09:46 +0100)]
dnsmasq: tighten config file permissions
Install following as config files (600) perms instead of as data (644)
/usr/share/dnsmasq/dhcpbogushostname.conf
/usr/share/dnsmasq/trust-anchors.conf
/usr/share/dnsmasq/rfc6761.conf
/etc/hotplug.d/ntp/25-dnsmasqsec
/etc/config/dhcp
/etc/dnsmasq.conf
dnsmasq reads relevant config files before dropping root privilege and
running as dnsmasq:dnsmasq
ntpd runs as root so the hotplug script is still accessible
Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Koen Vandeputte [Mon, 29 Oct 2018 14:48:10 +0000 (15:48 +0100)]
ar71xx: expand kernel size for ubnt targets
Kernel 4.14 is pretty large causing a build error as the partition is too small.
Expand the kernel partition a bit to make it fit.
* ubnt-uap-pro
* ubnt-unifi-outdoor-plus
Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
Koen Vandeputte [Mon, 29 Oct 2018 14:44:54 +0000 (15:44 +0100)]
ar71xx: disable ap91-5g due to kernel size
This target causes a build failure as the kernel image does not fit
into the kernel partition.
As the kernel is located behind the rootfs, it cannot be enlarged
as the boot entry location would get altered.
Disable this target for now.
Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
Koen Vandeputte [Wed, 24 Oct 2018 12:44:30 +0000 (14:44 +0200)]
ar71xx: fix sysupgrade generation for some targets
These targets are already defined as having a dynamic partition
but the safeloader was not adapted for them.
This causes a build warning for the sysupgrade image being too big.
Targets:
- c58-v1
- c60-v1
- c60-v2
- TL-WR1043 v5
- TL-WR902AC v1
- TL-WR942N V1
Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
Koen Vandeputte [Wed, 24 Oct 2018 12:49:07 +0000 (14:49 +0200)]
ar71xx: switch more targets to dynamic partitioning
Targets:
- TP-LINK ER355
- TP-LINK C25 V1
- TP-LINK C59 V1
- TP-LINK C7 V4
- TP-LINK C7 V5
Fixes build issues seen due to the kernel being too big
Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
Radek Dostál [Mon, 22 Oct 2018 20:34:17 +0000 (22:34 +0200)]
ar71xx: switch TP-Link RE450 v1 to dynamic partitioning
As mentioned in commit
5f24933 recent changes on ar71xx (switch to 4.14,
memory compaction, ...) cause an increase in kernel size, making it too
big for RE450.
RE450 images were not build due to the following error message:
os-image partition too big (more than
1572864 bytes): Success
Tested on RE450, device boots and was used to send this patch.
Reported-by: Enrico Mioso <mrkiko.rs@gmail.com>
Suggested-by: David Bauer <mail@david-bauer.net>
Signed-off-by: Radek Dostál <rd@radekdostal.com>
[rewrote commit msg keeping it tight + fixed SoB lines]
Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
David Bauer [Thu, 18 Oct 2018 18:43:42 +0000 (20:43 +0200)]
ar71xx: move OCEDO Koala to generic and use dynamic partitioning
This changes the OCEDO Koala flash-layout to a unified firmware
partition, thus making the ar71xx-generic kernel fit in flash.
Compile and runtested on OCEDO Koala.
Signed-off-by: David Bauer <mail@david-bauer.net>
[small title reword]
Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
Mathias Kresin [Sun, 28 Oct 2018 10:03:49 +0000 (11:03 +0100)]
ath79: fix PQI Air Pen support
Use the correct dts filename. It has to be <soc>_<manufacturer>_<device>.
Signed-off-by: Mathias Kresin <dev@kresin.me>
YuheiOKAWA [Thu, 4 Oct 2018 16:08:51 +0000 (01:08 +0900)]
ath79: add support for PQI Air Pen
SoC: AR9330 (or AR9331 revision?)
Ethernet x1, Wireless 2.4G, uSD card slot x1.
USB Power, include Li-Po Battery.
Flash 8MiB. (factory is dual image)
1. write image is use half 4MiB size from factory.
write initramfs image to mtd6 and mtd7.
2. change next boot setting. next is mtd6 boot.
echo -ne "\x01" | dd of=/dev/mtdblock8 conv=notrunc bs=1 count=1 seek=0
3. rewrite sysupgrade image.
change next boot setting. next is mtd4.
echo -ne "\x00" | dd of=/dev/mtdblock8 conv=notrunc bs=1 count=1 seek=0
OEM mtd.
dev: size erasesize name
mtd0:
00040000 00010000 "u-boot"
mtd1:
00010000 00010000 "u-boot-env"
mtd2:
00010000 00010000 "ART"
mtd3:
00010000 00010000 "NVRAM"
mtd4:
00140000 00010000 "uImage"
mtd5:
00280000 00010000 "rootfs"
mtd6:
00140000 00010000 "uImage2"
mtd7:
00280000 00010000 "rootfs2"
mtd8:
00010000 00010000 "CONF"
Signed-off-by: YuheiOKAWA <tochiro.srchack@gmail.com>
Roger Pueyo Centelles [Wed, 19 Sep 2018 12:17:35 +0000 (14:17 +0200)]
ath79: Add support for Ubiquiti LiteAP ac (LAP-120)
This commit adds support for the Ubiquiti LiteAP ac (LAP-120), an outdoor
5 GHz AC access point with an integrated 120° 16 dBi antenna. The device
was previously known as LiteBeam AP ac but was later rebranded.
CPU: Atheros AR9342 SoC
RAM: 64 MB DDR2
Flash: 16 MB NOR SPI
Ports: 1 GbE port (PoE in)
WLAN: 5 GHz QCA899X (PCI)
The integrated QCA899X is a Ubiquiti branded part with modified vendor
and product id (0777:11ac9). It is very similar to the NanoStation loco
AC, except for the 2.4 GHz management radio (missing here).
Installation procedure is the same as the NanoStation [loco] AC:
1. Connect to serial header on device
2. Power on device and enter uboot console
3. Set up tftp server serving an openwrt initramfs build
4. Load initramfs build using the command tftpboot in the uboot cli
5. Boot the loaded image using the command bootm
6. Copy squashfs openwrt sysupgrade build to the booted device
7. Use mtd to write sysupgrade to partition "firmware"
8. Reboot and enjoy
Signed-off-by: Roger Pueyo Centelles <roger.pueyo@guifi.net>
Felix Fietkau [Sat, 27 Oct 2018 15:54:36 +0000 (17:54 +0200)]
mt76: update to the latest version
fdc63f1 mt76: fix regression in tx status handling
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Daniel Engberg [Wed, 10 Oct 2018 11:04:31 +0000 (13:04 +0200)]
mt76: Fix dependencies for PCI support
USB support doesn't necessarily mean that there's
PCI support available so move that to the drivers
which requires PCI support. This applies to the
sunxi platform for instance.
Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
Signed-off-by: Felix Fietkau <nbd@nbd.name> [fix mt76x0e]
Felix Fietkau [Thu, 25 Oct 2018 20:48:49 +0000 (22:48 +0200)]
mt76: update to the latest version
0b8b15f mt7603: use common mmio mcu struct
d612e2e mt76: mt76x02: skip station tx status for non-sta wcid entries
d89d84b mt76: mt76x02: only override control->sta on sw-encrypted tx
9d59d2a mt76: add support for reporting tx status with skb
ed17ba2 mt7603: use common tx status handling code
14b6c59 mt76x0: use band parameter for LC calibration
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Philip Prindeville [Sun, 21 Oct 2018 02:23:12 +0000 (20:23 -0600)]
grub2: fix regression caused by binutils-2.31.1
grub-efi no longer works:
grub-mkimage: error: relocation 0x4 is not implemented yet.
See:
http://git.savannah.gnu.org/cgit/grub.git/commit/util?id=
842c390469e2c2e10b5aa36700324cd3bde25875
Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>i [PKG_RELEASE increase]
Jonathan Lancett [Mon, 22 Oct 2018 14:36:23 +0000 (14:36 +0000)]
mwlwifi: driver version to 10.3.8.0-
20181022
Upgrade 88W8997 firmware to 8.4.0.52.
Removed unnecessary firmware settings.
Added vendor events.
Fixed crash problem when module is removed.
Modified the code to protect tx queues.
Signed-off-by: Jonathan Lancett <j.lancett@ntlworld.com>
[tidy commit message]
Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Hans Dedecker [Tue, 23 Oct 2018 13:55:09 +0000 (15:55 +0200)]
glibc: update to latest 2.27 commit (BZ #23562, BZ #23275)
77b4b8231e signal: Use correct type for si_band in siginfo_t [BZ #23562]
5bdb6897fc Fix race in pthread_mutex_lock while promoting to PTHREAD_MUTEX_ELISION_NP [BZ #23275]
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Felix Fietkau [Tue, 23 Oct 2018 09:17:35 +0000 (11:17 +0200)]
mt76: update to the latest version
d033272 mt76: mt76x0: handle chip specific initval differences
1a2b2dc mt76: usb: fix static tracepoints
11151f4 mt76x0: antenna select corrections
dade109 mt76x0: init: simplify mt76x0_init_mac_registers
3c54612 mt76x0: pci: add missing MODULE_FIRMWARE macro
97e0269 mt76x0: mac: remove mt76x0_mac_set_ampdu_factor
5d8c4bf mt76x0: align mt76x0u and mt76x0e fw version
d4391ae mt76: move mt76x02_mac_set_short_preamble in mt76x02_mac.c
aa6ebf9 mt76: move mt76x02_init_device in mt76x02-lib module
a4a08c3 mt76: move mac beacon routines in mt76x02-lib module
6b69650 mt76: move tx beacon routines in mt76x02-lib module
8486047 mt76x0: pci: add pre_tbtt_tasklet support
acd4c99 mt76: move mt76x02_sw_scan and mt76x02_sw_scan_complete in mt76x02-lib module
2d736cf mt76: move mt76x02_get_txpower in mt76x02_util.c
aa1d6bd mt76: move mt76x02_sta_ps in mt76x02-lib module
e684281 mt76: introduce mt76x02_init_beacon_config routine
c181d97 mt76x0: pci: enable AP support
3b86d99 mt76: move mt76x02_set_tx_ackto in mt76x02-lib module
41d7ef7 mt76x0: update init vals for MT_TX_PROT registers
fe5a149 mt76: move tx protection routines in mt76x02-lib module
5bca2de mt76: move mt76x02_bss_info_changed in mt76x02-lib module
d21a835 mt76: move dfs support in mt76x02-lib module
ba9d424 mt76x0: pci: add DFS support
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Koen Vandeputte [Tue, 23 Oct 2018 08:55:56 +0000 (10:55 +0200)]
kernel: add missing symbol for target bcm53xx
Fixes: ca88f4153f8f ("kernel: bump 4.14 to 4.14.77")
Reported-by: Rafał Miłecki <rafal@milecki.pl>
Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
Rafał Miłecki [Tue, 23 Oct 2018 07:42:00 +0000 (09:42 +0200)]
bcm53xx: use upstream SPI controller fix
This just moves patch to use 0xx prefix and includes maintainer's s-o-b.
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Koen Vandeputte [Mon, 22 Oct 2018 12:11:59 +0000 (14:11 +0200)]
kernel: bump 4.14 to 4.14.78
Refreshed all patches.
Remove upstreamed:
- 050-net-emac-fix-fixed-link-setup-for-the-RTL8363SB-swit.patch
Compile-tested on: cns3xxx, imx6
Runtime-tested on: cns3xxx, imx6
Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
Koen Vandeputte [Mon, 22 Oct 2018 09:46:59 +0000 (11:46 +0200)]
kernel: bump 4.9 to 4.9.135
Refreshed all patches.
Fixes:
- CVE-2018-10883
Compile-tested on: ar71xx, layerscape
Runtime-tested on: ar71xx
Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
Hans Dedecker [Sun, 21 Oct 2018 18:43:46 +0000 (20:43 +0200)]
fstools: update to git HEAD
29e53af fstools: add ntfs support
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Hauke Mehrtens [Sun, 21 Oct 2018 14:35:49 +0000 (16:35 +0200)]
mac80211: hermes-pcmcia: add missing dependency to kmod-pcmcia-core
This fixes a build problem on x86.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Hauke Mehrtens [Thu, 18 Oct 2018 19:03:16 +0000 (21:03 +0200)]
linux-firmware: intel: Add iwl 9000 and 9260 firmware
Add the most recent supported firmware file for the Intel 9000 and
9260 wireless chips. The API version 41 is not yet supported by the driver.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Hauke Mehrtens [Thu, 18 Oct 2018 19:02:20 +0000 (21:02 +0200)]
linux-firmware: intel: update firmware files for 7265D, 8000C and 8265
Use more recent versions for the Intel wireless chips 7265D, 8000C and 8265.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Ryan Mounce [Fri, 12 Oct 2018 07:46:28 +0000 (18:16 +1030)]
mpc85xx: workaround 4.14 cross compile issue
Regression introduced with 4.10 by
43c9127d94d62a232ed33ed2eab8a08657ce5472
Build will fail if system 'ar' does not support deterministic builds.
e.g. macOS with Xcode toolchain
Appears to be fixed upstream in 4.18 by
af3901cbbd3de182aafb8ee553c825c0074df6a2
Signed-off-by: Ryan Mounce <ryan@mounce.com.au>
Arthur Skowronek [Mon, 15 Oct 2018 12:55:57 +0000 (14:55 +0200)]
tools/pkg-config: pass arguments at the end
Go for openwrt passes pkg-config arguments in the format of
pkg-config --cflags -- pkg-name
which in turn will be passed down to the real pkg-config as something
like
pkg-config.real --cflags -- pkg-name --define...
and causes the real pkg-config implementation to missinterpret the given
argument list.
This also helps to fix https://github.com/golang/go/issues/27940
Signed-off-by: Arthur Skowronek <arthur.skowronek@tuta.io>
Yufei Miao [Wed, 10 Oct 2018 15:23:44 +0000 (23:23 +0800)]
mwlwifi: driver version to 10.3.8.0-
20181008
Signed-off-by: Yufei Miao <myf@myf.cloud>