[OpenWrt-Devel] [PATCH opkg] alternatives: special-case busybox as alternatives provider

2019-06-11 Thread Yousong Zhou
From: Yousong Zhou Almost all busybox applets are alternatives to some other existing "full" utilities. To lift the maintenance burden of enumerating CONFIG symbols, symlink path of each applet, we special case busybox here as a known alternatives provider. All file pathes provided by busybox w

[OpenWrt-Devel] [RFC] sysupgrade: Cross-flashing NOR/NAND proof of concept

2019-06-11 Thread Jeff Kletsky
From: Jeff Kletsky Certain devices can have both NOR- and NAND-resident firmware, such as the GL.iNet GL-AR300M. These devices can be booted with either firmware. The GL-AR300M boot loader will automatically fail-over to NOR firmware after three failed boots, providing end-user benefits when bad

Re: [OpenWrt-Devel] [PATCH v3 2/3] network/config: add xfrm interface support scripts

2019-06-11 Thread Stijn Tintel
On 8/06/19 14:48, André Valentin wrote: > This package adds scripts for xfrm interfaces support. > Example configuration via /etc/config/network: > > config interface 'xfrm0' > option proto 'xfrm' > option mtu '1300' > option zone 'VPN' > option tunlink 'wan' >

Re: [OpenWrt-Devel] [PATCH] gpio-button-hotplug: gpio-keys: fix always missing first event

2019-06-11 Thread David Bauer
Hello, On 05.06.19 22:23, Christian Lamparter wrote: > I had to attach the patch as a file since gmail's webmail interface now seems > to > eat all the tabs. I hope this still gets through. I ran into problems booting multiple QCA9558 boards, namely the OCEDO Koala and the devolo WiFi pro 1200e

Re: [OpenWrt-Devel] KERNEL_PATCHVER in master

2019-06-11 Thread Jonas Gorski
Hi, On Tue, 11 Jun 2019 at 23:08, Stijn Tintel wrote: > > Hi, > > Since we now have a 19.07 branch, is it OK to switch KERNEL_PATCHVER for > targets in master that have 4.19 support to 4.19? Fine by me. The earlier we start testing 4.19, the faster we can iron out the kinks, hopefully reducing t

Re: [OpenWrt-Devel] [PATCH] gemini: Fix up patch format

2019-06-11 Thread Linus Walleij
On Tue, Jun 11, 2019 at 11:28 PM Linus Walleij wrote: > One of the patches were not properly refreshed. Fix it up. > > Signed-off-by: Linus Walleij Bah, drop this patch. I was fixing my own out-of-tree patches :P Sorry for the buzz Linus Walleij ___

[OpenWrt-Devel] [PATCH] gemini: Fix up patch format

2019-06-11 Thread Linus Walleij
One of the patches were not properly refreshed. Fix it up. Signed-off-by: Linus Walleij --- .../0008-ARM-dts-Enable-Gemini-flash-access.patch | 7 --- 1 file changed, 7 deletions(-) diff --git a/target/linux/gemini/patches-4.19/0008-ARM-dts-Enable-Gemini-flash-access.patch b/tar

[OpenWrt-Devel] [PATCH v2] gemini: Make root filesystem writeable

2019-06-11 Thread Linus Walleij
The squashfs+jffs2 root filesystem only came up as read-only and the config would not take: [ 25.600237] mount_root: Could not open mtd device: /dev/mtd4 [ 25.634674] mount_root: reading rootfs_data failed [ 25.665346] mount_root: Could not open mtd device: /dev/mtd3 [ 25.699802] mount_roo

[OpenWrt-Devel] [PATCH 2/3 v2] gemini: Make a per-board case for ethernet MAC

2019-06-11 Thread Linus Walleij
The DNS-313 isn't the only special board so let's bite the bullet and create a case ladder in preparation for DIR-685. Signed-off-by: Linus Walleij --- ChangeLog v1->v2: - Rebase on the new patch using library functions --- .../lib/preinit/05_set_ether_mac_gemini | 28 +++

[OpenWrt-Devel] KERNEL_PATCHVER in master

2019-06-11 Thread Stijn Tintel
Hi, Since we now have a 19.07 branch, is it OK to switch KERNEL_PATCHVER for targets in master that have 4.19 support to 4.19? Thanks, Stijn ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/open

[OpenWrt-Devel] [PATCH 3/3 v2] gemini: Fix MAC address assignment for DIR-685

2019-06-11 Thread Linus Walleij
The DIR-685 has the MAC addresses in the RedBoot code just like DNS-313. Check some magic numbers to determine that the MAC address is where we want it and extract it from RedBoot. Signed-off-by: Linus Walleij --- ChangeLog v1->v2: - Rebase on the other patches - Use library functions to get part

[OpenWrt-Devel] [PATCH 1/3 v2] gemini: Use library functions to assign MAC address

2019-06-11 Thread Linus Walleij
This simplifies the ethernet address extraction script by using standard library functions to locate the MTD partitions and extract ethernet address from a binary offset location in the flash. Suggested-by: Christian Lamparter Signed-off-by: Linus Walleij --- ChangeLog v1->v2: - New patch prepen

Re: [OpenWrt-Devel] [PATCH v3 2/3] network/config: add xfrm interface support scripts

2019-06-11 Thread Hans Dedecker
Hi, On Mon, Jun 10, 2019 at 8:10 PM Andre Valentin wrote: > > Hi Hans, > > after testing xfrm tunnels a bit I found to big differences compared to other > convential tunnels. > 1) xfrm tunnel interfaces cannot be replaced with netlink > 2) xfrm tunnel interfaces DO NOT vanish if parent is delete

[OpenWrt-Devel] [PATCH] ramips: add support for Edimax EW-7478APC

2019-06-11 Thread Birger Koblitz
ramips: add Edimax EW-7478APC SoC:MediaTek MT7620a @ 580MHz RAM:64M (Winbond W9751G6KB-25) FLASH: 8MB (Macronix) WiFi: SoC-integrated: MediaTek MT7620a bgn WiFi: MediaTek MT7612EN nac Switch: Mediatek MT7530W Gigabit Switch (4 x LAN, 1 x WAN) USB:Yes 1 x 2.0 (+ 1 x 2.0 unpopulated

[OpenWrt-Devel] [PATCH 2/2] kernel: mtd: spinand: Backport GigaDevice "F" from linux/next

2019-06-11 Thread Jeff Kletsky
From: Jeff Kletsky Backport upstream support for GigaDevice GD5F1GQ4UFxxG SPI NAND * Add support for GigaDevice GD5F1GQ4UFxxG * Add support for two-byte device IDs * Define macros for page-read ops with three-byte addresses Upstream patches refreshed against 4.19.48 Run-tested-on: ath79/nan

[OpenWrt-Devel] [PATCH 0/2] kernel: mtd: spinand: backport-4.19: Add'l chip support

2019-06-11 Thread Jeff Kletsky
From: Jeff Kletsky Supersedes https://patchwork.ozlabs.org/project/openwrt/list/?series=112040 and addresses related comments GigaDevice (and a future commit for Paragon) SPI NAND required for use of SPI NAND on at least GL.iNet GL-AR300M and GL-AR750S, already on the ath79 target on both openwr

[OpenWrt-Devel] [PATCH 1/2] kernel: mtd: spinand: backport-4.19: Chip support through 5.1

2019-06-11 Thread Jeff Kletsky
From: Jeff Kletsky generic: Add/rename patches for consistency ipq40xx: Generic-level patch replaces same-source patches-4.19/ 082-v4.20-mtd-spinand-winbond-Add-support-for-W25N01GV.patch Several SPI NAND chips were added between 4.19 and 5.1 including GigaDevice, Toshiba, and Winbond.

Re: [OpenWrt-Devel] Extending iwinfo to set interface to monitor mode

2019-06-11 Thread Vincent Wiemann
Great idea, but that needs to happen upstream. As far as I know iwinfo is only used for the hardware gains and ubus stuff in OpenWrt. It would be nice if it could be replaced by iw completely. Regards, Vincent Wiemann On 11.06.19 18:29, Nick wrote: > iw has no c library. So if you want to do aut

Re: [OpenWrt-Devel] Extending iwinfo to set interface to monitor mode

2019-06-11 Thread Nick
iw has no c library. So if you want to do automatically switching or stuff like this, I directly would have to use nl80211. Would be nice to split iw into a libiw and cmd iw or something like this. Bests, Nick On 21.05.19 19:34, John Crispin wrote: > > On 21/05/2019 17:44, Nick wrote: >> If I ext

Re: [OpenWrt-Devel] [PATCH 4/4] package: fix "LTO" option resulted in building error

2019-06-11 Thread Felix Fietkau
On 2019-06-11 12:32, Nylon Chen wrote: > When a building package has -flto option leads to building error > > We must use the gcc-ar wrapper instead of ar to invoke ar with the right > plugin arguments for handling the LTO objects when -flto is specified. > > Signed-off-by: Che-Wei Chuang > Sign

Re: [OpenWrt-Devel] [PATCH 1/3] gemini: Make a per-board case for ethernet MAC

2019-06-11 Thread Linus Walleij
Hi Christian, I worked in all the changes you requested until I got to this: On Thu, May 30, 2019 at 12:46 AM Christian Lamparter wrote: > > + ifconfig eth0 hw ether $MAC1 2>/dev/null > > I guess while we are at it, why not change it to > "ip link set dev eth0 addres

[OpenWrt-Devel] [PATCH] ath79: Merge cases in 11-ath10k-caldata

2019-06-11 Thread Adrian Schmutzler
Cosmetical patch that just merges two cases. Signed-off-by: Adrian Schmutzler --- .../ath79/base-files/etc/hotplug.d/firmware/11-ath10k-caldata | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/target/linux/ath79/base-files/etc/hotplug.d/firmware/11-ath10k-caldata

[OpenWrt-Devel] [PATCH 4/4] package: fix "LTO" option resulted in building error

2019-06-11 Thread Nylon Chen
When a building package has -flto option leads to building error We must use the gcc-ar wrapper instead of ar to invoke ar with the right plugin arguments for handling the LTO objects when -flto is specified. Signed-off-by: Che-Wei Chuang Signed-off-by: Nylon Chen --- rules.mk | 12 +--

[OpenWrt-Devel] [PATCH 3/4] ext-toolchain.sh: don't pass CFLAGS to gcc-* utilities

2019-06-11 Thread Nylon Chen
The current script passes CFLAGS parameters to gcc-* utilities, but they can not identify CFLAGS parameters, so following this script will fail package build Signed-off-by: Che-Wei Chuang Signed-off-by: Nylon Chen --- scripts/ext-toolchain.sh | 9 + 1 file changed, 9 insertions(+) diff

[OpenWrt-Devel] [PATCH 2/4] nds32: add new target for AE3XX boards

2019-06-11 Thread Nylon Chen
The AE3XX prototype demonstrates the AE3XX example platform on the FPGA. It is composed of one Andestech(nds32) processor and AE3XX. Signed-off-by: Che-Wei Chuang Signed-off-by: Nylon Chen --- target/linux/nds32/Makefile | 23 target/linux/nds32/config-4.19

[OpenWrt-Devel] [PATCH 0/2] Add nds32 toolchain and ae3xx board support

2019-06-11 Thread Nylon Chen
This patchset adds basic support for Andes's nds32 ISA and nds32 family's CPU IP based on ae3xx platform. The board is entirely supported since Linux 4.19. Nylon Chen (2): toolchain: add support of nds32 architecture nds32: add new target for AE3XX boards include/kernel.mk

[OpenWrt-Devel] [PATCH 1/4] toolchain: add support of nds32 architecture

2019-06-11 Thread Nylon Chen
This commit provides basic support for the Andes 32-bit (nds32) architecture. Signed-off-by: Che-Wei Chuang Signed-off-by: Nylon Chen --- include/kernel.mk | 2 ++ include/site/nds32 | 33 + include/target.mk | 4 target/Config.in| 5 + toolc