[OpenWrt-Devel] Pending ath79 issues on ar9342 and 4.14/4.19 kernels

2019-01-01 Thread Petr Štetiar
Hi, this is more like my todo list shared with 蝈蝈 (Guo), but I hope, that I could get some inputs from others as well. I'm aware about following issues with ath79 on ar9342 so far, and I don't know how to fix some of them properly. BTW, everything described bellow works fine on ar71xx using 4.14

[OpenWrt-Devel] [PATCH 5/7] procd: add start-console support

2019-01-01 Thread Michael Heimpold
This adds a hotplug function to (re-)start inittab entries with askfirst or respawn. At the moment the devices used with these actions must be present during boot otherwise such lines are skipped. However, this prevents having inittab entries with consoles for e.g. USB gadget devices which only

[OpenWrt-Devel] [PATCH 1/7] procd: simplify code in procd_inittab_run

2019-01-01 Thread Michael Heimpold
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 changed, 2 insertions(+), 5 deletions(-) diff --git a/inittab.c b/inittab.c index 4b9..c9e6c13

[OpenWrt-Devel] [PATCH 0/7] procd: console hotplugging support

2019-01-01 Thread Michael Heimpold
This series extends procd to allow starting consoles for devices which are not present during boot or after kernel module loading. This is for example the case when a USB gadget serial device is created with configfs. Here the kernel module is loaded but the tty device only appears after gadget is

[OpenWrt-Devel] [PATCH 6/7] procd: add upgraded binary to .gitignore

2019-01-01 Thread Michael Heimpold
Signed-off-by: Michael Heimpold --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 9d80a74..eaf1ef4 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ procd askfirst udevtrigger init +upgraded/upgraded .* Makefile CMakeCache.txt --

[OpenWrt-Devel] [PATCH 3/7] procd: skip respawn in case device disappeared

2019-01-01 Thread Michael Heimpold
Signed-off-by: Michael Heimpold --- inittab.c | 5 + 1 file changed, 5 insertions(+) diff --git a/inittab.c b/inittab.c index b8552e9..18023f5 100644 --- a/inittab.c +++ b/inittab.c @@ -123,6 +123,11 @@ static void child_exit(struct uloop_process *proc, int ret) DEBUG(4, "pid:%d,

[OpenWrt-Devel] [PATCH 7/7] procd: replace exit(-1) with exit(EXIT_FAILURE)

2019-01-01 Thread Michael Heimpold
Signed-off-by: Michael Heimpold --- initd/init.c| 2 +- initd/preinit.c | 6 +++--- initd/zram.c| 4 ++-- plug/coldplug.c | 3 ++- plug/hotplug.c | 14 +++--- upgraded/upgraded.c | 2 +- 6 files changed, 16 insertions(+), 15 deletions(-) diff --git

[OpenWrt-Devel] [PATCH 2/7] procd: guard fork_worker calls

2019-01-01 Thread Michael Heimpold
Usually respawn(), askfirst(), askconsole() and rcrespawn() are run only one time to start a worker child for the given inittab entry. In case we want to allow calling these functions several times, we need to ensure that we do not start multiple workers at the same time for the same inittab

[OpenWrt-Devel] [PATCH 4/7] procd: shift arguments for askfirst only once

2019-01-01 Thread Michael Heimpold
In case we want to process an inittab item multiple times (e.g. in case of hotplugging) we must not shift the arguments for askfirst multiple times. So check whether we already did it. Signed-off-by: Michael Heimpold --- inittab.c | 18 -- 1 file changed, 12 insertions(+), 6

[OpenWrt-Devel] ath9k broken

2019-01-01 Thread W. Michael Petullo
I have found that my ath9k-based WiFi card is malfunctioning with recent OpenWrt master builds. I build things myself, but my configuration (both the build configuration and /etc/config/wireless and so on) has not changed other than doing a "git pull" to get the latest source from

Re: [OpenWrt-Devel] [PATCH] config: enable some useful features on !SMALL_FLASH devices

2019-01-01 Thread Petr Štetiar
Daniel Golle [2019-01-01 17:56:25]: Hi, > On Sun, Dec 30, 2018 at 11:26:58AM +0100, Petr Štetiar wrote: > > Daniel Golle [2018-12-29 06:51:32]: > > > > > config KERNEL_AIO > > > config KERNEL_FHANDLE > > > config KERNEL_FANOTIFY > > > + default y if !SMALL_FLASH > > > > What about

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

2019-01-01 Thread Rosen Penev
On Tue, Jan 1, 2019 at 9:44 AM Hauke Mehrtens wrote: > > On 12/18/18 12:46 PM, Hauke Mehrtens wrote: > > On 12/17/18 1:54 AM, Dave Taht wrote: > >> > >> A pretty deep look at home MIPS and arm routers, and a surprising bug in > >> Linux/MIPS - by mudge and co: > >> > >>

Re: [OpenWrt-Devel] [PATCH] ath79: align GL-AR750S boardname to other GL.iNet devices

2019-01-01 Thread Piotr Dymacz
Hi Christian, On 01.01.2019 18:23, Christian Lamparter wrote: On Tuesday, January 1, 2019 1:03:22 PM CET Christoph Krapp via openwrt-devel wrote: The sender domain has a DMARC Reject/Quarantine policy which disallows sending mailing list messages using the original "From" header. To mitigate

Re: [OpenWrt-Devel] [PATCH] ath79: align GL-AR750S boardname to other GL.iNet devices

2019-01-01 Thread Mathias Kresin
01/01/2019 18:23, Christian Lamparter: The "Device/glinet_ar750s" change to "Device/glinet_gl-ar750s" will likely break sysupgrade from existing "glinet_ar750s" images. This is because the now deprecated glinet_ar750s identifier was not added to the SUPPORTED_DEVICES variable. Other than that,

Re: [OpenWrt-Devel] [PATCH] ath79: align GL-AR750S boardname to other GL.iNet devices

2019-01-01 Thread Christoph Krapp via openwrt-devel
The sender domain has a DMARC Reject/Quarantine policy which disallows sending mailing list messages using the original "From" header. To mitigate this problem, the original message has been wrapped automatically by the mailing list software.--- Begin Message --- > I had this problem (DMARC

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

2019-01-01 Thread David Bauer
Hardware CPU: Qualcomm Atheros QCA9558 RAM: 128M DDR2 FLASH: 16MiB ETH: 1x Atheros AR8035 (PoE in) WiFi2: QCA9558 2T2R WiFi5: QCA9880 2T2R BTN: 1x Reset LED: 1x LED blue 1x LED red BEEP: 1x GPIO attached piezo beeper UART: 3.3V GND TX RX (115200-N-8) (3.3V is square

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

2019-01-01 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 BEEP: 1x GPIO attached piezo beeper UART: 3.3V GND TX RX (115200-N-8) (3.3V is square

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

2019-01-01 Thread Hauke Mehrtens
On 12/18/18 12:46 PM, Hauke Mehrtens wrote: On 12/17/18 1:54 AM, 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 current

Re: [OpenWrt-Devel] [PATCH] ath79: align GL-AR750S boardname to other GL.iNet devices

2019-01-01 Thread Christian Lamparter
On Tuesday, January 1, 2019 1:03:22 PM CET Christoph Krapp via openwrt-devel wrote: > The sender domain has a DMARC Reject/Quarantine policy which disallows > sending mailing list messages using the original "From" header. > > To mitigate this problem, the original message has been wrapped >

[OpenWrt-Devel] [PATCH 1/2] brcm2708: boot-part feature integration

2019-01-01 Thread Christian Lamparter
This patch adds the boot-part feature which enables the brcm2708 target move from the custom boot partition size config option to the generic CONFIG_TARGET_KERNEL_PARTSIZE. Note: For people using custom images: Just like with CONFIG_TARGET_ROOTFS_PARTSIZE changing the value can cause sysupgrade

[OpenWrt-Devel] [PATCH 2/2] mac80211: ath10k: remove "ath10k: fix otp failure result" patch

2019-01-01 Thread Christian Lamparter
Initially this patch was introduced as a quick fix following the removal of 936-ath10k_skip_otp_check.patch which caused multiple ath10k pcie devices in various ipq806x and ar71xx/ath79 targets to malfunction. Thankfully, the affected devices have been updated to utilize the pre-caldata method.

Re: [OpenWrt-Devel] [PATCH] treewide: dts: Unify naming of gpio-keys nodes

2019-01-01 Thread Petr Štetiar
Christian Lamparter [2018-12-31 17:41:34]: > I hope you know what you are up against because unless you also do the changes > upstream this will happen again and again. :\ / :) My plan is to first wait for comments here, see if it gets merged eventualy and then start poking upstream. I still

Re: [OpenWrt-Devel] [PATCH] config: enable some useful features on !SMALL_FLASH devices

2019-01-01 Thread Daniel Golle
Hi! On Sun, Dec 30, 2018 at 11:26:58AM +0100, Petr Štetiar wrote: > Daniel Golle [2018-12-29 06:51:32]: > > > config KERNEL_AIO > > config KERNEL_FHANDLE > > config KERNEL_FANOTIFY > > + default y if !SMALL_FLASH > > What about `FEATURES += nas` to make it clear and don't abuse

[OpenWrt-Devel] [PATCH] ath79: align GL-AR750S boardname to other GL.iNet devices

2019-01-01 Thread Christoph Krapp via openwrt-devel
The sender domain has a DMARC Reject/Quarantine policy which disallows sending mailing list messages using the original "From" header. To mitigate this problem, the original message has been wrapped automatically by the mailing list software.--- Begin Message --- As the official device name is