Re: [OpenWrt-Devel] [PATCH] build: depend on host zip tool

2018-10-15 Thread Sven Roederer
Am Donnerstag, 11. Oktober 2018, 19:34:35 CEST schrieb Sven Roederer: > tools/firmware-utils/src/mksercommfw.c depends on the zip-tool to generate > the firmwareimage. Thinking of this again, I wonder if it would be the proper way to build the zip-tool as y host-command like we do for tar and

[OpenWrt-Devel] [PATCH] tools/xz: Add PKG_CPE_ID for proper CVE tracking

2018-10-15 Thread Rosen Penev
Signed-off-by: Rosen Penev --- tools/xz/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/xz/Makefile b/tools/xz/Makefile index d6b619db41..5d574892bb 100644 --- a/tools/xz/Makefile +++ b/tools/xz/Makefile @@ -13,6 +13,7 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2

Re: [OpenWrt-Devel] [RFC 0/9] Using the mainline mtk-eth-soc driver for MT7621

2018-10-15 Thread Bjørn Mork
Bjørn Mork writes: > Bjørn Mork writes: >> John Crispin writes: >> >>> have you seen my staging tree ? >>> https://git.openwrt.org/?p=openwrt/staging/blogic.git;a=shortlog;h=refs/heads/mt7621_dsa >> >> No, I hadn't. Thanks for the pointer. Will look at it now > > > I've now tried to build

[OpenWrt-Devel] [PATCH][18.06] apm821xx: MBL: load kernel/dtb from SATA 0:1 first

2018-10-15 Thread Christian Lamparter
From: Freddy Leitner This remedies an issue with the MBL Duo if both disks are inserted and contain OpenWrt. kernel and dtb would be loaded from SATA 1:1 while rootfs (/dev/sda2) would be mounted on SATA 0:1. Such a mix would obviously only work if both OpenWrt versions/ builds are identical,

[OpenWrt-Devel] [PATCH 3/5] apm821xx: force WNDR4700 console to 115200n8

2018-10-15 Thread Christian Lamparter
With the upcoming 4.19 release, the serial console on the Netgear WNDR4700 would no longer work as it is never really set and always relied on the kernel's serial code not to change the baud rate. On the stock firmware, Netgear forced the console setting through a custom CONFIG_CMDLINE in their

[OpenWrt-Devel] [PATCH 4/5] apm821xx: apm82181.dtsi overhaul

2018-10-15 Thread Christian Lamparter
- order entries by mmio address where possible - switch to lower-case address values - comment on BSP u-boot behaviour in regards to what it edits and look for - annotate irq lines with the help of interrupt-names - remove deprecated "device_type" properties The pci and network

[OpenWrt-Devel] [PATCH 1/5] build: remove obsolete -rc kernel testing rewrites

2018-10-15 Thread Christian Lamparter
The -rcX "testing" kernels are no longer hosted on cdn.kernel.org file servers directly in a "testing" directory. Therefore the logic that tested for "-rc" can be removed. Signed-off-by: Christian Lamparter --- include/kernel.mk | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff

[OpenWrt-Devel] [PATCH 5/5] apm821xx: add disk-activity triggers via DT.

2018-10-15 Thread Christian Lamparter
The WNDR4700 and the MBL have a dedicated HDD activity LED. This patch adds the default led triggers to the DTS and removes the entries in 01_leds. Signed-off-by: Christian Lamparter --- target/linux/apm821xx/base-files/etc/board.d/01_leds | 5 -

[OpenWrt-Devel] [PATCH 2/5] apm821xx: set uart compatible to ns16750

2018-10-15 Thread Christian Lamparter
The APM821XX/PPC460EX datasheet mentions: "Register compatibility with 16750 register set" Signed-off-by: Christian Lamparter --- target/linux/apm821xx/dts/apm82181.dtsi | 17 +++-- 1 file changed, 11 insertions(+), 6 deletions(-) diff --git

[OpenWrt-Devel] [PATCH 2/2] tools/xz: Add PKG_CPE_ID for proper CVE tracking

2018-10-15 Thread Rosen Penev
Signed-off-by: Rosen Penev --- tools/xz/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/xz/Makefile b/tools/xz/Makefile index d6b619db41..5de9eb5e28 100644 --- a/tools/xz/Makefile +++ b/tools/xz/Makefile @@ -13,6 +13,7 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2

[OpenWrt-Devel] [PATCH 1/2] tools/libressl: Add PKG_CPE_ID for proper CVE tracking

2018-10-15 Thread Rosen Penev
Signed-off-by: Rosen Penev --- tools/libressl/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/libressl/Makefile b/tools/libressl/Makefile index 1698971f4f..57cdacd961 100644 --- a/tools/libressl/Makefile +++ b/tools/libressl/Makefile @@ -12,6 +12,8 @@ PKG_VERSION:=2.8.1

[OpenWrt-Devel] [PATCH] patch: Add missing CVE

2018-10-15 Thread Rosen Penev
uscan reports a new CVE now that PKG_CPE_ID was added. Reordered patches by date. Signed-off-by: Rosen Penev --- tools/patch/Makefile | 2 +- tools/patch/patches/010-CVE-2018-6951.patch | 29 +++ ...00156.patch => 020-CVE-2018-1000156.patch} | 20

Re: [OpenWrt-Devel] Compile juci on Ubuntu 18.04

2018-10-15 Thread Nick
I just followed "Usage on OpenWrt". OpenWrt Commit ID: 9b4650b3b92e6246b986ac9e3d7c2a80d66b805b Here is the commit to fix the regex stuff: > https://github.com/PolynomialDivision/openwrt/commit/c0d2080fa4253f34506360cddeb0c457683854b5 On 10/15/2018 04:58 PM, Koen Vandeputte wrote: > > > On

Re: [OpenWrt-Devel] Compile juci on Ubuntu 18.04

2018-10-15 Thread Koen Vandeputte
On 2018-10-15 16:20, Nick wrote: Hi, did someone manage to follow the Readme.md? I got several problems when compiling juci in Xubuntu 18.04. First where was a Regex mismatch. And then npm makes trouble. Now there is a new issue: touch

[OpenWrt-Devel] Compile juci on Ubuntu 18.04

2018-10-15 Thread Nick
Hi, did someone manage to follow the Readme.md? I got several problems when compiling juci in Xubuntu 18.04. First where was a Regex mismatch. And then npm makes trouble. Now there is a new issue: > touch > /home/user/openwrt_juci/staging_dir/target-x86_64_musl-1.1.14/stamp/.juci_installed >

Re: [OpenWrt-Devel] [RFC 0/9] Using the mainline mtk-eth-soc driver for MT7621

2018-10-15 Thread Bjørn Mork
Bjørn Mork writes: > John Crispin writes: > >> have you seen my staging tree ? >> https://git.openwrt.org/?p=openwrt/staging/blogic.git;a=shortlog;h=refs/heads/mt7621_dsa > > No, I hadn't. Thanks for the pointer. Will look at it now I've now tried to build this with the WAP6805, but I'm

Re: [OpenWrt-Devel] [RFC 0/9] Using the mainline mtk-eth-soc driver for MT7621

2018-10-15 Thread Bjørn Mork
John Crispin writes: > have you seen my staging tree ? > https://git.openwrt.org/?p=openwrt/staging/blogic.git;a=shortlog;h=refs/heads/mt7621_dsa No, I hadn't. Thanks for the pointer. Will look at it now I started out with Thirsty's work, but ended up redoing it all to try to keep changes as

Re: [OpenWrt-Devel] [RFC 0/9] Using the mainline mtk-eth-soc driver for MT7621

2018-10-15 Thread John Crispin
On 15/10/2018 12:24, Bjørn Mork wrote: This is NOT READY for merge. ( This code can also be found in a github branch, in case you find that easier to review: https://github.com/bmork/LEDE/tree/mt7621-with-mainline-eth-driver ) Hoping for some early feedback in case what I am doing

[OpenWrt-Devel] [RFC 4/9] mt7621: import mtk_eth_soc and mt7530 patches from the mediatek target

2018-10-15 Thread Bjørn Mork
This syncronizes most of the mtk_eth_soc and mt7530 patches between the two targets, with the following exception: 0045-net-dsa-mediatek-turn-into-platform-driver.patch which will require more changes to the mt7621 device-trees than the absolute minimum. Signed-off-by: Bjørn Mork ---

[OpenWrt-Devel] [RFC 1/9] wap6805: add Mitrastar uImage tool

2018-10-15 Thread Bjørn Mork
Signed-off-by: Bjørn Mork --- include/image-commands.mk | 10 + tools/firmware-utils/Makefile | 1 + tools/firmware-utils/src/mkmitrastar.c | 958 + 3 files changed, 969 insertions(+) create mode 100644

[OpenWrt-Devel] [RFC 3/9] ramips: rename out-of-tree net driver to "ralink"

2018-10-15 Thread Bjørn Mork
Signed-off-by: Bjørn Mork --- .../drivers/net/ethernet/mediatek/Kconfig | 70 -- .../drivers/net/ethernet/mediatek/Makefile | 22 --- .../files-4.14/drivers/net/ethernet/ralink/Kconfig | 70 ++ .../drivers/net/ethernet/ralink/Makefile

[OpenWrt-Devel] [RFC 0/9] Using the mainline mtk-eth-soc driver for MT7621

2018-10-15 Thread Bjørn Mork
This is NOT READY for merge. ( This code can also be found in a github branch, in case you find that easier to review: https://github.com/bmork/LEDE/tree/mt7621-with-mainline-eth-driver ) Hoping for some early feedback in case what I am doing here is completely out of the question. Which

[OpenWrt-Devel] [RFC 2/9] wap6805: add board definition and DTS

2018-10-15 Thread Bjørn Mork
Signed-off-by: Bjørn Mork --- .../linux/ramips/base-files/etc/board.d/02_network | 4 + .../ramips/base-files/etc/board.d/03_gpio_switches | 3 + target/linux/ramips/base-files/lib/ramips.sh | 3 + .../ramips/base-files/lib/upgrade/platform.sh | 6 +-

[OpenWrt-Devel] [RFC 5/9] mt7621: enable mainline driver

2018-10-15 Thread Bjørn Mork
Signed-off-by: Bjørn Mork --- target/linux/ramips/mt7621/config-4.14 | 1 + .../ramips/patches-4.14/2200-mt7621-eth-dsa.patch | 121 + 2 files changed, 122 insertions(+) create mode 100644 target/linux/ramips/patches-4.14/2200-mt7621-eth-dsa.patch diff --git

[OpenWrt-Devel] [RFC 9/9] wap6805: use mtk-eth-soc driver with DSA

2018-10-15 Thread Bjørn Mork
Signed-off-by: Bjørn Mork --- .../linux/ramips/base-files/etc/board.d/02_network | 3 +- target/linux/ramips/dts/WAP6805.dts| 61 +- target/linux/ramips/image/mt7621.mk| 1 + 3 files changed, 62 insertions(+), 3 deletions(-) diff --git

[OpenWrt-Devel] [RFC 6/9] mt7621: fix softirq loop

2018-10-15 Thread Bjørn Mork
Signed-off-by: Bjørn Mork --- .../2201-mt7621-eth-fix-napi-int.patch | 22 ++ 1 file changed, 22 insertions(+) create mode 100644 target/linux/ramips/patches-4.14/2201-mt7621-eth-fix-napi-int.patch diff --git

[OpenWrt-Devel] [RFC 7/9] mt7621: update dtsi

2018-10-15 Thread Bjørn Mork
Signed-off-by: Bjørn Mork --- target/linux/ramips/dts/mt7621.dtsi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/target/linux/ramips/dts/mt7621.dtsi b/target/linux/ramips/dts/mt7621.dtsi index aa85aee6cb38..8b65f6149826 100644 --- a/target/linux/ramips/dts/mt7621.dtsi

[OpenWrt-Devel] [RFC 8/9] mt7621 dsa: add virtual DSA kernel package

2018-10-15 Thread Bjørn Mork
Signed-off-by: Bjørn Mork --- target/linux/ramips/modules.mk | 26 ++ 1 file changed, 26 insertions(+) diff --git a/target/linux/ramips/modules.mk b/target/linux/ramips/modules.mk index 88e83a487f6f..5c3b09721934 100644 --- a/target/linux/ramips/modules.mk +++