[OpenWrt-Devel] [PATCH] ipq40xx: clean up netgear-dni image generation

2018-12-17 Thread David Bauer
The NETGEAR EX61x0v2 does only validate the DNI header, neither it needs the kernel to be a specific size nor a fake filesystem header to be present. This has been tested using the NETGEAR Web-UI and the pushbutton TFTP recovery. Signed-off-by: David Bauer --- target/linux/ipq40xx/image/Makefil

Re: [OpenWrt-Devel] ath79: seting GPIO registers to specific values via DTS?

2018-12-17 Thread Roger Pueyo Centelles | Guifi.net
Hi, Thank you very much for clarifying that. :) After looking a little bit into other devices' configurations, this line in etc/board.d/01_leds will do the trick:     ucidef_set_led_switch "wan" "WAN" "$boardname:green:wan" "switch0" "0x02" Last thing, I managed to get inside the stock firmwar

[OpenWrt-Devel] [PATCH v3 1/2] ath79: add support for devolo WiFi pro 1200e

2018-12-17 Thread David Bauer
Hardware CPU: Qualcomm Atheros QCA9558 RAM: 128M DDR2 FLASH: 16MiB ETH: 1x Atheros AR8035 (PoE in) 1x Atheros AR8033 WiFi2: QCA9558 2T2R WiFi5: QCA9880 2T2R BTN: 1x Reset LED: 1x LED blue 1x LED red BUZZ: 1x GPIO attached piezo buzzer (controllable ass LED) UART:

[OpenWrt-Devel] [PATCH v3 2/2] ath79: add support for devolo WiFi pro 1750c

2018-12-17 Thread David Bauer
Hardware CPU: Qualcomm Atheros QCA9558 RAM: 128M DDR2 FLASH: 16MiB ETH: 1x Atheros AR8035 (PoE in) WiFi2: QCA9558 3T3R WiFi5: QCA9880 3T3R BTN: 1x Reset LED: 1x LED blue 1x LED red BUZZ: 1x GPIO attached piezo buzzer (controllable ass LED) UART: 3.3V GND TX RX (115200-N-

Re: [OpenWrt-Devel] MIPS stack security and other problems

2018-12-17 Thread Rosen Penev
On Mon, Dec 17, 2018 at 4:34 PM Rosen Penev wrote: > > On Mon, Dec 17, 2018 at 3:40 PM Dave Taht wrote: > > > > John Crispin writes: > > > > > On 17/12/2018 23:18, Dave Taht wrote: > > >> Rosen Penev writes: > > >> > > >>> On Sun, Dec 16, 2018 at 4:54 PM Dave Taht wrote: > > > > A pr

Re: [OpenWrt-Devel] MIPS stack security and other problems

2018-12-17 Thread Rosen Penev
On Mon, Dec 17, 2018 at 3:40 PM Dave Taht wrote: > > John Crispin writes: > > > On 17/12/2018 23:18, Dave Taht wrote: > >> Rosen Penev writes: > >> > >>> On Sun, Dec 16, 2018 at 4:54 PM Dave Taht wrote: > > A pretty deep look at home MIPS and arm routers, and a surprising > bug i

Re: [OpenWrt-Devel] MIPS stack security and other problems

2018-12-17 Thread Rosen Penev
On Mon, Dec 17, 2018 at 2:49 PM John Crispin wrote: > > > On 17/12/2018 23:18, Dave Taht wrote: > > Rosen Penev writes: > > > >> On Sun, Dec 16, 2018 at 4:54 PM Dave Taht wrote: > >>> > >>> A pretty deep look at home MIPS and arm routers, and a surprising > >>> bug in Linux/MIPS - by mudge and c

[OpenWrt-Devel] [PATCH] kernel: Fix rtc-ds1307 dependency on hwmon-core for 4.19

2018-12-17 Thread Petr Štetiar
It seems, that since Linux 4.18-rc1 rtc-ds1307 depends on hwmon-core. commit 6b583a64fd1e019fd01626b46892ebf2361951c5 Author: Heiner Kallweit Date: Wed Sep 27 22:41:26 2017 +0200 rtc: ds1307: simplify hwmon config We don't have to define an extra config symbol, IS_REACHABLE does

Re: [OpenWrt-Devel] MIPS stack security and other problems

2018-12-17 Thread Dave Taht
John Crispin writes: > On 17/12/2018 23:18, Dave Taht wrote: >> Rosen Penev writes: >> >>> On Sun, Dec 16, 2018 at 4:54 PM Dave Taht wrote: A pretty deep look at home MIPS and arm routers, and a surprising bug in Linux/MIPS - by mudge and co: https://cyber-itl.org/2018/

[OpenWrt-Devel] [PATCH] kernel: Fix usb-chipidea dependency on ulpi.ko for 4.19

2018-12-17 Thread Petr Štetiar
It seems, that since Linux 4.18-rc2 ci_hdrc depends on ulpi. commit a930d8bd94d8db7715d1af74299f710b1fb22fc8 Author: Fabio Estevam Date: Wed Jul 4 10:09:58 2018 -0300 usb: chipidea: Always build ULPI code Commit 03e6275ae381 ("usb: chipidea: Fix ULPI on imx51") causes a kernel

Re: [OpenWrt-Devel] MIPS stack security and other problems

2018-12-17 Thread John Crispin
On 17/12/2018 23:18, Dave Taht wrote: Rosen Penev writes: On Sun, Dec 16, 2018 at 4:54 PM Dave Taht wrote: A pretty deep look at home MIPS and arm routers, and a surprising bug in Linux/MIPS - by mudge and co: https://cyber-itl.org/2018/12/07/a-look-at-home-routers-and-linux-mips.html I

[OpenWrt-Devel] [PATCH] kernel: Fix kmod-w1 dependency on hwmon-core for 4.19

2018-12-17 Thread Petr Štetiar
kmod-w1 depends on kmod-hwmon-core since Linux 4.14 Signed-off-by: Petr Štetiar --- package/kernel/linux/modules/w1.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/kernel/linux/modules/w1.mk b/package/kernel/linux/modules/w1.mk index e936a28..d9f20c7 100644 --- a/

Re: [OpenWrt-Devel] [PATCH] ipq806x: add ath10k calibration data MAC addresses patching

2018-12-17 Thread Mathias Kresin
17/12/2018 19:05, Christian Lamparter: On Saturday, December 15, 2018 9:10:39 PM CET Christian Lamparter wrote: On Wednesday, November 14, 2018 8:39:22 PM CET Ben Greear wrote: On 11/01/2018 03:18 AM, Felix Fietkau wrote: On 2018-10-28 17:39, Christian Lamparter wrote: Ben Greear reported in

Re: [OpenWrt-Devel] MIPS stack security and other problems

2018-12-17 Thread Dave Taht
Rosen Penev writes: > On Sun, Dec 16, 2018 at 4:54 PM Dave Taht wrote: >> >> >> A pretty deep look at home MIPS and arm routers, and a surprising >> bug in Linux/MIPS - by mudge and co: >> >> https://cyber-itl.org/2018/12/07/a-look-at-home-routers-and-linux-mips.html >> >> I have no idea if curr

[OpenWrt-Devel] [PATCH] ipq40xx: add support for ASUS Lyra

2018-12-17 Thread Marius Genheimer
SoC: Qualcomm IPQ4019 (Dakota) 717 MHz, 4 cores RAM: 256 MiB (Nanya NT5CC128M16IP-DI) FLASH: 128 MiB (Macronix NAND) WiFi0: Qualcomm IPQ4019 b/g/n 2x2 WiFi1: Qualcomm IPQ4019 a/n/ac 2x2 WiFi2: Qualcomm Atheros QCA9886 a/n/ac BT:Atheros AR3012 IN:WPS Button, Reset Button OUT: RGB-LED v

[OpenWrt-Devel] [PATCH] kernel: Add missing symbols to 4.19

2018-12-17 Thread Petr Štetiar
While building 4.19 for ath79 with CONFIG_ALL_KMODS=y with verbose mode enabled I was asked by kernel config about few symbols/modules so I'm adding those missing symbols to the generic config. Signed-off-by: Petr Štetiar --- target/linux/generic/config-4.19 | 4 1 file changed, 4 insertion

Re: [OpenWrt-Devel] Missing GPG signatures

2018-12-17 Thread Jo-Philipp Wich
Hi, > It seems only Robert Call of the LibreCMC fork is consistently signing > releases > with the same key. But how is he verifying upstream...? probably by trusting https://openwrt.org/docs/guide-user/security/signatures I cross-signed the 18.06 key with the 17.01 one now and signed both usi

Re: [OpenWrt-Devel] [PATCH] ipq806x: add ath10k calibration data MAC addresses patching

2018-12-17 Thread Christian Lamparter
On Saturday, December 15, 2018 9:10:39 PM CET Christian Lamparter wrote: > On Wednesday, November 14, 2018 8:39:22 PM CET Ben Greear wrote: > > On 11/01/2018 03:18 AM, Felix Fietkau wrote: > > > On 2018-10-28 17:39, Christian Lamparter wrote: > > >> Ben Greear reported in his patch: > > >> |Subject

[OpenWrt-Devel] [PATCH] hotplug: Allow renaming wireless phy devices.

2018-12-17 Thread greearb
From: Ben Greear uci set wireless.@wifi-device[0].phyname=wiphy0 Then reboot and/or re-plug that device, and this will name the phy wiphy0 instead of phy0, phy1, etc. This can help keep phy names consistent through driver reloads which may make the system easier to configure properly or to make

Re: [OpenWrt-Devel] [PATCH] hotplug: Allow renaming phy devices.

2018-12-17 Thread Ben Greear
On 12/16/2018 11:14 PM, John Crispin wrote: I'd like to review your patch but it hits the ML as an attachment making it impossible. regardless, the subject is misleading, there are lots of phy types and i fail to understand why this is required. John The attachment was due to us enab

[OpenWrt-Devel] [PATCH] build: fix build dependency of kmod .ipk with version filtered files

2018-12-17 Thread Yousong Zhou
We need to use resolved file list as prerequisites for repacking kmod .ipk files. Note that currently version_filter uses a Makefile macro KERNEL_PATCHVER that should be available at ipk building time. Reported-by: Rafał Miłecki Signed-off-by: Yousong Zhou --- include/kernel.mk | 2 +- 1 file

[OpenWrt-Devel] Missing GPG signatures

2018-12-17 Thread autosend
Hello I couldn't find a way to cross verify the 18.06 key using the 17.01 key. So it seems anyone with the 17.01 key is not at any advantage over a totally new user, when upgrading to 18.06. This is a very unusual situation compared to what all major Linux distributions are doing nowadays. I the

Re: [OpenWrt-Devel] [PATCH v2 6/7] ipq40xx: specify "firmware" partition format for GL.iNet GL-B1300

2018-12-17 Thread Christian Lamparter
On Monday, December 17, 2018 1:08:27 PM CET you wrote: > > On 17/12/18 12:39, Christian Lamparter wrote: > > On Monday, December 17, 2018 10:31:51 AM CET Alberto Bursi wrote: > >> On 15/12/18 22:02, Christian Lamparter wrote: > >>> Specify firmware partition format by compatible string. > >>> > >>

Re: [OpenWrt-Devel] Broken packaging of modules (updating them) when using @lt or @gt

2018-12-17 Thread Rafał Miłecki
On 17.12.2018 07:20, Yousong Zhou wrote: On Mon, 17 Dec 2018 at 12:59, Rafał Miłecki wrote: On Sat, 15 Dec 2018 at 08:05, Yousong Zhou wrote: On Sat, 15 Dec 2018 at 06:00, Rafał Miłecki wrote: I've noticed a problem with kmod-phy-bcm-ns-usb2 defined in the target/linux/bcm53xx/modules.mk

Re: [OpenWrt-Devel] [PATCH v2 6/7] ipq40xx: specify "firmware" partition format for GL.iNet GL-B1300

2018-12-17 Thread Alberto Bursi
On 17/12/18 12:39, Christian Lamparter wrote: On Monday, December 17, 2018 10:31:51 AM CET Alberto Bursi wrote: On 15/12/18 22:02, Christian Lamparter wrote: Specify firmware partition format by compatible string. Signed-off-by: Christian Lamparter --- .../files-4.14/arch/arm/boot/dts/qc

Re: [OpenWrt-Devel] [PATCH v2 6/7] ipq40xx: specify "firmware" partition format for GL.iNet GL-B1300

2018-12-17 Thread Christian Lamparter
On Monday, December 17, 2018 10:31:51 AM CET Alberto Bursi wrote: > > On 15/12/18 22:02, Christian Lamparter wrote: > > Specify firmware partition format by compatible string. > > > > Signed-off-by: Christian Lamparter > > --- > > .../files-4.14/arch/arm/boot/dts/qcom-ipq4029-gl-b1300.dts

Re: [OpenWrt-Devel] [PATCH v2 6/7] ipq40xx: specify "firmware" partition format for GL.iNet GL-B1300

2018-12-17 Thread Alberto Bursi
On 17/12/18 10:57, Petr Štetiar wrote: Alberto Bursi [2018-12-17 10:29:36]: Hi Alberto, firmware@18 { + compatible = "denx,fit"; label = "firmware"; reg = <0x18 0x1e8>; }; This

Re: [OpenWrt-Devel] [PATCH V2] procd: simplify code in procd_inittab_run

2018-12-17 Thread Bjørn Mork
John Crispin writes: > On 09/12/2018 22:54, Michael Heimpold wrote: >> This is a trial to make it more obvious what the historically >> grown code is actually doing. >> >> Signed-off-by: Michael Heimpold >> --- >> V2: use Jo-Philipp Wich's proposal >> >> inittab.c | 7 ++- >> 1 file change

[OpenWrt-Devel] [PATCH v2] kernel: backport ifconfig ioctl support for class e addresses

2018-12-17 Thread Kevin 'ldir' Darbyshire-Bryant
Backport net: Allow class-e address assignment via ifconfig ioctl While most distributions long ago switched to the iproute2 suite of utilities, which allow class-e (240.0.0.0/4) address assignment, distributions relying on busybox, toybox and other forms of ifconfig cannot assign class-e addresses

[OpenWrt-Devel] [PATCH] kernel: backport ifconfig ioctl support for class e addresses

2018-12-17 Thread Kevin 'ldir' Darbyshire-Bryant
Backport net: Allow class-e address assignment via ifconfig ioctl While most distributions long ago switched to the iproute2 suite of utilities, which allow class-e (240.0.0.0/4) address assignment, distributions relying on busybox, toybox and other forms of ifconfig cannot assign class-e addresses

Re: [OpenWrt-Devel] [PATCH v2 6/7] ipq40xx: specify "firmware" partition format for GL.iNet GL-B1300

2018-12-17 Thread Petr Štetiar
Alberto Bursi [2018-12-17 10:29:36]: Hi Alberto, > > firmware@18 { > > + compatible = "denx,fit"; > > label = "firmware"; > > reg = <0x18 0x1e8>; > > }; > > This patch prevents boot on my B1300. I comp

Re: [OpenWrt-Devel] [PATCH v2 6/7] ipq40xx: specify "firmware" partition format for GL.iNet GL-B1300

2018-12-17 Thread Alberto Bursi
On 15/12/18 22:02, Christian Lamparter wrote: Specify firmware partition format by compatible string. Signed-off-by: Christian Lamparter --- .../files-4.14/arch/arm/boot/dts/qcom-ipq4029-gl-b1300.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/target/linux/ipq40xx/files-4.14/

Re: [OpenWrt-Devel] ath79: seting GPIO registers to specific values via DTS?

2018-12-17 Thread Petr Štetiar
Sebastian Kemper [2018-12-16 19:07:52]: Hi Sebastian, > pinctrl-0 = <&jtag_disable_pins>; // works > pinctrl-1 = <&enable_gpio_11>; // nothing happens hm, that's strange, it should work if you provide proper `pinctrl-names` property: pinctrl-names = "disable_jtag", "enable_gpio11"; pinctrl-0