[OpenWrt-Devel] [PATCH 3/3] treewide: sysupgrade: use $UPGRADE_BACKUP to check for backup

2019-09-05 Thread Rafał Miłecki
From: Rafał Miłecki Now that $UPGRADE_BACKUP is set conditionally there is no need to check the $UPGRADE_OPT_SAVE_CONFIG anymore. All conditions can be simplified. Signed-off-by: Rafał Miłecki --- package/base-files/files/lib/upgrade/common.sh | 2 +- package/base-files/files/lib/upgr

[OpenWrt-Devel] [PATCH procd 2/3] sysupgrade: support "backup" attribute

2019-09-05 Thread Rafał Miłecki
From: Rafał Miłecki This new attribute allows passing path of the backup archive. It provides much more flexibility than hardcoding /tmp/sysupgrade.tgz. It may help avoiding some cp/mv for user-provided backup archive. Signed-off-by: Rafał Miłecki --- initd/preinit.c | 2 +- system.c|

[OpenWrt-Devel] [PATCH 0/3] sysupgrade: support custom backup paths

2019-09-05 Thread Rafał Miłecki
From: Rafał Miłecki Up to now preserving a backup over sysupgrade required using a magic path /tmp/sysupgrade.tgz. It was a bad design (hardcoded path) and required moving/copying already existing backup archives in some cases. This patchset makes sysupgrade more generic as it allows specifying

[OpenWrt-Devel] [PATCH 1/3] base-files: sysupgrade: pass "backup" ubus attribute

2019-09-05 Thread Rafał Miłecki
From: Rafał Miłecki This explicitly tells procd what backup file should be used during sysupgrade (if any). It's much more generic this way compared to the magic /tmp/sysupgrade.tgz file that had to be created before a call. Signed-off-by: Rafał Miłecki --- package/base-files/files/sbin/sysupg

[OpenWrt-Devel] [PATCH 2/2] iwinfo: add device id for Qualcomm Atheros QCA9886

2019-09-05 Thread David Bauer
Signed-off-by: David Bauer --- hardware.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/hardware.txt b/hardware.txt index cf4d4c1..e85db06 100644 --- a/hardware.txt +++ b/hardware.txt @@ -156,6 +156,7 @@ 0x168c 0x003c 0x19b6 0xd03c0 0 "Mikrotik" "R11e-5HacT" 0x168c 0x0046 0x16

[OpenWrt-Devel] [PATCH 1/2] iwinfo: add device id for Qualcomm Atheros QCA9887

2019-09-05 Thread David Bauer
Signed-off-by: David Bauer --- hardware.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/hardware.txt b/hardware.txt index 8950589..cf4d4c1 100644 --- a/hardware.txt +++ b/hardware.txt @@ -155,6 +155,7 @@ 0x168c 0x003c 0x 0x0 0 "Qualcomm Atheros" "QCA9880" 0x168c 0x003c

[OpenWrt-Devel] [PATCHv2] elfutils: Add host build

2019-09-05 Thread Rosen Penev
Needed for glib2 host build: gresource-tool.c:32:20: fatal error: libelf.h: No such file or directory #include Changed PKG_LICENSE to the SPDX version. Switched build dependency for argp-standalone to !USE_GLIBC. argp is a glibc extension. Treat it as such. Adjusted patch to use strerror_l, w

[OpenWrt-Devel] [PATCH] elfutils: Add host build

2019-09-05 Thread Rosen Penev
Needed for glib2 host build: gresource-tool.c:32:20: fatal error: libelf.h: No such file or directory #include Changed PKG_LICENSE to the SPDX version. Switched build dependency for argp-standalone to !USE_GLIBC. argp is a glibc extension. Treat it as such. Signed-off-by: Rosen Penev --- pa

[OpenWrt-Devel] [PATCH] ath79: really fix invalid UPGRADE_OPT_SAVE_CONFIG spellings

2019-09-05 Thread Adrian Schmutzler
This fixes two cases were the prefix UPGRADE_OPT_ has been added three times, so it remained wrong after removing one prefix in 1078de96e315 ("treewide: fix invalid UPGRADE_OPT_SAVE_CONFIG spellings"). Fixes: 1078de9 ("treewide: fix invalid UPGRADE_OPT_SAVE_CONFIG spellings") Signed-off-by: Adrian

[OpenWrt-Devel] zerotier license change

2019-09-05 Thread Moritz Warning
hi, I noticed that the Zerotier [0] changed its license from gpl3 to a proprietary license [1]. While they like Zerotier to remain packaged in openwrt/packages, I wonder if there is a conflict with any package guidelines. Anyway, they try to clear up any confusion and like to keep it open and p

[OpenWrt-Devel] Same Kernel Crash / Dont crash , given an attempt to read rootfs ?

2019-09-05 Thread sven falempin
Hello, I was learning about openWRT and trying to get an ipq4019 to work with recent openwrt I forked : d3e832d6fda8a39e7ec262994f75dac67353dcae and create a DTS file from the templates, tried my build using dhcp/bootm initramfs Kernel, The layout of the flash separate the FIT kernel and the ROO

[OpenWrt-Devel] Migration in ath79 for swapped ethernet

2019-09-05 Thread Adrian Schmutzler
Hi, if I remember correctly, there is still no mechanism to fix eth0/eth1 for devices where those have been swapped from ar71xx to ath79. In principle, this can be done with a relatively small piece of code (not tested): diff --git a/target/linux/ath79/base-files/etc/uci-defaults/05_eth_migrat

[OpenWrt-Devel] [PATCH 2/3] ath79: remove empty default case in 10_fix_wifi_mac

2019-09-05 Thread Adrian Schmutzler
This removes a useless empty default case. Signed-off-by: Adrian Schmutzler --- .../ath79/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac| 2 -- 1 file changed, 2 deletions(-) diff --git a/target/linux/ath79/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac b/target/linux/ath79/base-f

[OpenWrt-Devel] [PATCH 3/3] ath79: apply alphabetical sorting to entries in 10_fix_wifi_mac

2019-09-05 Thread Adrian Schmutzler
Signed-off-by: Adrian Schmutzler --- .../base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac| 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/target/linux/ath79/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac b/target/linux/ath79/base-files/etc/hotplug.d/ieee8021

[OpenWrt-Devel] [PATCH 1/3] ath79: fix whitespaces in 10_fix_wifi_mac

2019-09-05 Thread Adrian Schmutzler
This converts leading whitespaces to tabs and removes a double newline at the end of the file. Signed-off-by: Adrian Schmutzler --- .../etc/hotplug.d/ieee80211/10_fix_wifi_mac | 15 +++ 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/target/linux/ath79/base-files

[OpenWrt-Devel] [PATCH] base-files: use get_mac_binary() in mtd_get_mac_binary_ubi()

2019-09-05 Thread Adrian Schmutzler
The actual retrieval of the MAC address in mtd_get_mac_binary_ubi() is the same as in get_mac_binary(). Thus, use the latter function in the former to reduce duplicate code. This will also allow to benefit from the enhanced path check there and bring mtd_get_mac_binary_ubi() more in line with the

Re: [OpenWrt-Devel] [PATCH] base-files: fix get_mac_address not accepting hex offsets

2019-09-05 Thread Adrian Schmutzler
Hi David, > -Original Message- > From: David Bauer [mailto:m...@david-bauer.net] > Sent: Mittwoch, 4. September 2019 23:07 > To: m...@adrianschmutzler.de > Cc: openwrt-devel@lists.openwrt.org > Subject: Re: [OpenWrt-Devel] [PATCH] base-files: fix get_mac_address not > accepting hex offset

[OpenWrt-Devel] [PATCH] base-files: validate firmware for compatibility with backup

2019-09-05 Thread Rafał Miłecki
From: Rafał Miłecki This allows platform code to check if firmware image can be used with preserving a backup. It may be used e.g. when installing vendor firmwares that won't restore appended backup archive. Suggested-by: Luis Araneda Signed-off-by: Rafał Miłecki --- .../base-files/files/usr/

[OpenWrt-Devel] [PATCH 2/2] ramips: fix duplicate network setup for dlink, dir-615-h1

2019-09-05 Thread Adrian Schmutzler
In 555ca422d1cb ("ramips: fix D-Link DIR-615 H1 switch port mapping"), port setup for dir-615-h1 was changed without removing the old one. This was working as the new one was triggered earlier than the old one. (In the meantine, changed sorting during ramips rename patches actually inversed that o

[OpenWrt-Devel] [PATCH 1/2] ramips: remove duplicate case for MAC setup of freestation5

2019-09-05 Thread Adrian Schmutzler
ARC FreeStation5 is present twice in MAC address setup. >From older commits/changes, it is not possible to reconstruct the correct choice only by reading the annotations. Thus, remove the second case and keep the first one, so behavior stays the same (as nobody seems to have complained about it).

Re: [OpenWrt-Devel] [PATCH] ath79: eg200: enable status led usage

2019-09-05 Thread Karl Palsson
David Bauer wrote: > > Git won't let me push to master without a on-matching SoB. > > $ git push upstream upstream-master:master > Enumerating objects: 21, done. > Counting objects: 100% (21/21), done. > Delta compression using up to 4 threads > Compressing objects: 100% (11/11), done. > Writing

[OpenWrt-Devel] [PATCHv2] ath79: eg200: enable status led usage

2019-09-05 Thread Karl Pálsson
From: Karl Palsson This enables using the "eTactica" LED during boot, to indicate failsafe, and during upgrade, while still leaving the LED alone for normal operation. This brings the device more in line with how other devices work, and makes the failsafe functionality easier to use and understa

Re: [OpenWrt-Devel] [PATCH] treewide: use new procd sysupgrade $UPGRADE_BACKUP variable

2019-09-05 Thread Rafał Miłecki
On 05.09.2019 09:13, Rafał Miłecki wrote: From: Rafał Miłecki It's a variable set by procd that should replace hardcoded /tmp/sysupgrade.tgz. My yesterday explanation & question regarding this work: [09:44] i'm planning some cleanups for sysupgrade + handling config backups [09:44] right

Re: [OpenWrt-Devel] AR10 GPHYs (WAS: Re: [lantiq] general help on AR10 platform)

2019-09-05 Thread Enrico Mioso
On Thu, 5 Sep 2019, Mathias Kresin wrote: ... In sysctrl.c, we have: clkdev_add_pmu("1f203020.gphy", NULL, 1, 0, PMU_GPHY); // OK for GPHY0 clkdev_add_pmu("1f203068.gphy", NULL, 1, 0, PMU_GPHY); //problem for GPHY1 The first parameter of clkdev_add_pmu doesn't match your dts. It has to be

[OpenWrt-Devel] [PATCH procd] sysupgrade: set UPGRADE_BACKUP env variable

2019-09-05 Thread Rafał Miłecki
From: Rafał Miłecki It points to the backup file to use duing sysupgrace process. Right now it's hardcoded to the /tmp/sysupgrade.tgz. Once all cleanups are in place "sysupgrade" ubus method should be extended to allow passing any custom path. Signed-off-by: Rafał Miłecki --- sysupgrade.c | 2

[OpenWrt-Devel] [PATCH] treewide: use new procd sysupgrade $UPGRADE_BACKUP variable

2019-09-05 Thread Rafał Miłecki
From: Rafał Miłecki It's a variable set by procd that should replace hardcoded /tmp/sysupgrade.tgz. Signed-off-by: Rafał Miłecki --- package/base-files/files/lib/upgrade/common.sh | 2 +- package/base-files/files/lib/upgrade/stage2 | 1 - target/linux/apm821xx/base-files

[OpenWrt-Devel] 2019 IBC

2019-09-05 Thread lisa.williams
Hi, I understand that you were exhibited at IBC 2019 (International Trade Show for Media, Entertainment & Technology Show) and was wondering if you would be Interested in acquiring the Attendee Companies List. We have the most updated records of attendee companies who are participating In this