[OpenWrt-Devel] [PATCH 1/2] ar71xx: fix QCA955X SGMII link loss

2018-08-06 Thread David Bauer
-on-patch-by: Sven Eckelmann Signed-off-by: David Bauer --- .../files/arch/mips/ath79/mach-fritz450e.c| 1 + .../include/asm/mach-ath79/ag71xx_platform.h | 1 + .../net/ethernet/atheros/ag71xx/ag71xx.h | 2 + .../net/ethernet/atheros/ag71xx/ag71xx_main.c | 79

[OpenWrt-Devel] [PATCH 2/4] ath79: fix QCA9557 eth PLL settings

2018-08-06 Thread David Bauer
The QCA9557 dtsi is currently missing pll-handle and pll-regs for both eth0 and eth1, therefore PLL settings won't be applied. This commit fixes this behavior. Signed-off-by: David Bauer --- target/linux/ath79/dts/qca9557.dtsi | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-)

[OpenWrt-Devel] [PATCH 1/4] uboot-envtools: add ath79 target

2018-08-06 Thread David Bauer
This adds uci entries for all ath79 devices for which this already was the case on ar71xx. Additionally we add the OCEDO Koala as there was no support in OpenWRT yet. Signed-off-by: David Bauer --- package/boot/uboot-envtools/files/ath79 | 26 + 1 file changed, 26

[OpenWrt-Devel] [PATCH 4/4] ath79: add support for OCEDO Koala

2018-08-06 Thread David Bauer
ting. It is possible from the initramfs image with > fw_setenv bootcmd run bootcmd_1 Afterwards you can reboot the device. Signed-off-by: David Bauer --- package/boot/uboot-envtools/files/ath79 | 1 + .../ath79/base-files/etc/board.d/02_network | 1 + .../etc/hotplug.d/firmware/1

[OpenWrt-Devel] [PATCH 3/4] kernel: allow device-tree configuration of at803x

2018-08-06 Thread David Bauer
This commit adds the ability to configure specific functions of the at803x series ethernet-PHYs, which were previously configured exclusively with the help of platform-data, via device-tree. This is needed to fully support existing boards of the ar71xx platform. Signed-off-by: David Bauer

[OpenWrt-Devel] [PATCH v2] ath79: add support for OCEDO Koala

2018-08-08 Thread David Bauer
ting. It is possible from the initramfs image with > fw_setenv bootcmd run bootcmd_1 Afterwards you can reboot the device. Signed-off-by: David Bauer --- package/boot/uboot-envtools/files/ath79 | 1 + .../ath79/base-files/etc/board.d/02_network | 1 + .../etc/hotplug.d/firmware/1

[OpenWrt-Devel] [PATCH] ath79: fix PLL settings for QCA955x

2018-08-09 Thread David Bauer
settings defined in the QCA9557.dtsi are applied which are off for those devices. Signed-off-by: David Bauer --- target/linux/ath79/dts/qca9557.dtsi| 4 ++-- target/linux/ath79/dts/qca9558_openmesh_om5p-ac-v2.dts | 4 target/linux/ath79/dts/qca9558_tplink_tl-wr1043nd.dtsi | 4

[OpenWrt-Devel] [PATCH 1/2] ath79: add QCA956x GMAC config

2018-08-12 Thread David Bauer
This commit adds the ability to configure the GMAC of the QCA956x. Signed-off-by: David Bauer --- target/linux/ath79/dts/qca956x.dtsi | 5 + .../net/ethernet/atheros/ag71xx/ag71xx_gmac.c | 13 + 2 files changed, 18 insertions(+) diff --git a/target/linux

[OpenWrt-Devel] [PATCH 2/2] ath79: add support for Fritz!Box 4020

2018-08-12 Thread David Bauer
> quote USER adam2 ftp> quote PASS adam2 ftp> binary ftp> debug ftp> passive ftp> quote MEDIA FLSH ftp> put openwrt-sysupgrade.bin mtd1 Note that this procedure might take up to two minutes. After transfer is complete you need to powercycle the device to boot OpenWRT.

[OpenWrt-Devel] [PATCH] build: add mkrasimage

2018-08-15 Thread David Bauer
deleted in the future. Signed-off-by: David Bauer --- include/image-commands.mk | 13 + target/linux/ipq40xx/image/Makefile | 2 +- tools/firmware-utils/Makefile | 1 + tools/firmware-utils/src/mkrasimage.c | 374 ++ 4 files changed, 389

[OpenWrt-Devel] [PATCH v2] ath79: add support for Fritz!Box 4020

2018-08-15 Thread David Bauer
> quote USER adam2 ftp> quote PASS adam2 ftp> binary ftp> debug ftp> passive ftp> quote MEDIA FLSH ftp> put openwrt-sysupgrade.bin mtd1 Note that this procedure might take up to two minutes. After transfer is complete you need to powercycle the device to boot OpenWRT.

Re: [OpenWrt-Devel] [PATCH] build: add mkrasimage

2018-08-16 Thread David Bauer
ed-zyxel-nbg6617-tftp-flash-wont-take/17731/10 Greetings David > Cheers, > Karl P > >> >> Signed-off-by: David Bauer >> --- >> include/image-commands.mk | 13 + >> target/linux/ipq40xx/image/Makefile | 2 +- >> tools/firmware-utils/

Re: [OpenWrt-Devel] [PATCH v2] ath79: add support for Fritz!Box 4020

2018-08-16 Thread David Bauer
I was informed that gpio-hogs might be the thing we are looking for, i will look into that. So this patch should be hold back for now. On 8/16/18 2:15 AM, David Bauer wrote: > This commit adds support for the AVM Fritz!Box 4020 WiFi-router. > > SoC: Qualcomm Atheros QCA9561 (Dragonfl

[OpenWrt-Devel] [PATCH] ath79: fix SUPPORTED_DEVICES for TL-MR3020

2018-08-18 Thread David Bauer
e. Signed-off-by: David Bauer --- target/linux/ath79/image/tiny-tp-link.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/linux/ath79/image/tiny-tp-link.mk b/target/linux/ath79/image/tiny-tp-link.mk index 6ccc9d7dba..dadcd24b42 100644 --- a/target/linux/ath79/ima

[OpenWrt-Devel] [PATCH v3] ath79: add support for Fritz!Box 4020

2018-08-18 Thread David Bauer
SER adam2 ftp> quote PASS adam2 ftp> binary ftp> debug ftp> passive ftp> quote MEDIA FLSH ftp> put openwrt-sysupgrade.bin mtd1 Note that this procedure might take up to two minutes. After transfer is complete you need to powercycle the device to boot OpenWRT. Signe

Re: [OpenWrt-Devel] [PATCH] ath79: fix SUPPORTED_DEVICES for TL-MR3020

2018-08-18 Thread David Bauer
On 8/19/18 12:13 AM, Karl Palsson wrote: > These were removed as "it was intended to be required to force > when switching "architectures"" I disagreed then, but it got > railed through, so it's good to see I'm not the only one who > thought you should be able to upgrade from ar71xx to ath79 on the

Re: [OpenWrt-Devel] [PATCH] build: add mkrasimage

2018-08-18 Thread David Bauer
Hi Christian, I wrote the bash version because of issues in the past with C implementations of firmware packers for the Meraki routers (mkmerakifw.c and mkmerakifw-old.c). The issue there was that the main dev was coming from a sysadmin background and as with many OpenWrt users he had problems w

[OpenWrt-Devel] [PATCH v2] build: add mkrasimage

2018-08-19 Thread David Bauer
deleted in the future. The new mkrasimage is also compatible with other ZyXEL devices using the ras image-format. This is not tested with a OpenWRT build but it correctly builds the header for ZyXEL factory images for all devices it is added to. Signed-off-by: David Bauer --- v2 changes

Re: [OpenWrt-Devel] [PATCH v2] build: add mkrasimage

2018-08-21 Thread David Bauer
Hi, On 8/21/18 8:31 AM, Stefan Lippers-Hollmann wrote: > While this passes the version check, the appended git hash does break > later on in the flashing process - so at the moment only the numerical > revision (of DISTRIB_REVISION='r7890-40eb9bda44') seems to be safe: > > RAS_VERSION := "V1.99(

[OpenWrt-Devel] [PATCH v3] build: add mkrasimage

2018-08-22 Thread David Bauer
with other ZyXEL devices using the ras image-format. This is not tested with the NBG6616 but it correctly builds the header for ZyXEL factory image. Signed-off-by: David Bauer --- v3 changes: - Removed remark about leaving the old script - Adjusted NBG6817 RAS_VERSION string to allow Web-UI

Re: [OpenWrt-Devel] Ubiquiti UniFi AC range missing factory images?

2018-09-08 Thread David Bauer
Hi Stijn, On 9/8/18 5:47 PM, Stijn Segers wrote: > Since > newer Ubiquiti images (after March 2017 it seems) also lack the mtd > command necessary to flash OpenWrt, I was wondering why there's only > sysupgrade images. After all, Ubiquiti might pull those older firmwares > at any time, and that wo

[OpenWrt-Devel] [PATCH 2/2] ath79: flag FritzBox 4020 buttons as active low

2018-09-11 Thread David Bauer
Buttons of AVM FritzBox 4020 are incorrectly flagged as active high. This was an oversight as RFKill button was working as expected even with incorrectly flagged GPIO. Signed-off-by: David Bauer --- target/linux/ath79/dts/qca9561_avm_fritz4020.dts | 4 ++-- 1 file changed, 2 insertions(+), 2

[OpenWrt-Devel] [PATCH 1/2] ar71xx: flag FritzBox 4020 buttons as active low

2018-09-11 Thread David Bauer
Buttons of AVM FritzBox 4020 are incorrectly flagged as active high. This was an oversight as RFKill button was working as expected even with incorrectly flagged GPIO. Signed-off-by: David Bauer --- This commit should also be applied to the openwrt-18.06 branch as the issue is also present

[OpenWrt-Devel] [PATCH] ar71xx: move OCEDO Koala back to generic subtarget

2018-10-18 Thread David Bauer
This changes the OCEDO Koala flash-layout to a unified firmware partition, thus making the ar71xx-generic kernel fit in flash. Compile and runtested on OCEDO Koala. Signed-off-by: David Bauer --- target/linux/ar71xx/generic/config-default | 1 + target/linux/ar71xx/image/generic.mk | 9

[OpenWrt-Devel] [PATCH] kernel: b53: register switch on probe

2018-10-21 Thread David Bauer
Koala. Signed-off-by: David Bauer --- .../files/drivers/net/phy/b53/b53_mdio.c | 43 +-- 1 file changed, 21 insertions(+), 22 deletions(-) diff --git a/target/linux/generic/files/drivers/net/phy/b53/b53_mdio.c b/target/linux/generic/files/drivers/net/phy/b53/b53_mdio.c index

Re: [OpenWrt-Devel] RFT: ar71xx - 4.14

2018-10-28 Thread David Bauer
Hi Koen, On 25.10.18 14:39, Koen Vandeputte wrote: > Hi All, > > As most of you know, ar71xx bumped to 4.14 which caused a slight kernel > oversize for some targets. > > I crafted some patches to address this, but it requires testing. > As I don't have any of these devices locally, I would like

[OpenWrt-Devel] [PATCH] ath79: add support for Archer C58/C59 v1

2018-10-31 Thread David Bauer
g down the reset-button. The router will flash itself and reboot. Note: For TFTP, you might need a switch between router and computer, as link establishment might take to long. Signed-off-by: David Bauer --- .../ath79/base-files/etc/board.d/01_leds | 5 + .../ath79/base-files/etc/board.d/

[OpenWrt-Devel] [PATCH] ipq40xx: fix NBG6617 LED mapping

2018-11-04 Thread David Bauer
The NBG6617's LEDs are wrongly identified in the 01_leds boardinit script (board instead of boardname), resulting in referencing non-existent LEDs in UCI. Signed-off-by: David Bauer --- target/linux/ipq40xx/base-files/etc/board.d/01_leds | 6 +++--- 1 file changed, 3 insertions(+), 3 dele

[OpenWrt-Devel] [PATCH] tools: tplink-safeloader: add C7v5 EU SupportList

2018-11-07 Thread David Bauer
Currently flash from WebIF is broken for Archer C7 v5 EU models as their SupportList entries are missing. The added entries originate from TP-Links latest Archer C7 v5 EU firmware. Signed-off-by: David Bauer --- tools/firmware-utils/src/tplink-safeloader.c | 6 +- 1 file changed, 5

Re: [OpenWrt-Devel] [PATCH] ath79: add support for TP-Link Archer A7

2018-11-17 Thread David Bauer
Hello Karl, On 10.11.18 18:06, Karl-Felix Glatzer wrote: > This patch adds support for TP-Link Archer A7 > > Specification: > - SOC: QCA9563 > - Flash: 16 MiB (SPI) > - RAM: 128 MiB (DDR2) > - Ethernet: 4x 1Gbps LAN + 1x 1Gbps WAN > - Wireless: > - 2.4GHz (bgn) SoC internal > - 5GHz (ac) QCA9

[OpenWrt-Devel] [PATCH 1/2] ath79: add firmware partition compatible for OCEDO

2018-11-26 Thread David Bauer
This commit adds firmware partition compatible for the OCEDO Raccoon and OCEDO Koala. Since a22311e this allows to select the correct mtdsplit parser instead of trying all available ones one by one. Signed-off-by: David Bauer --- target/linux/ath79/dts/ar9344_ocedo_raccoon.dts | 1 + target

[OpenWrt-Devel] [PATCH 2/2] ath79: add Archer C58/C59 partition compatible

2018-11-26 Thread David Bauer
This commit adds firmware partition compatible for the TP-Link Archer C58 v1 and Archer C59 v1. Since a22311e this allows to select the correct mtdsplit parser instead of trying all available ones one by one. Signed-off-by: David Bauer --- target/linux/ath79/dts/qca9561_tplink_archer-c58-v1

Re: [OpenWrt-Devel] [PATCH v2] ath79: add support for TP-Link Archer A7

2018-11-29 Thread David Bauer
Hello Karl, just as a heads-up for your v3: On 23.11.18 22:00, Karl-Felix Glatzer wrote: > --- a/target/linux/ath79/image/common-tp-link.mk > +++ b/target/linux/ath79/image/common-tp-link.mk > @@ -39,6 +39,15 @@ define Build/mktplinkfw-combined > @mv $@.new $@ > endef > > +define Build/u

[OpenWrt-Devel] [PATCH 1/2] kernel: add DT binding support to AVM EVA parser

2018-11-30 Thread David Bauer
It allows selecting split-firmware parser directly by specifying image-format in the device-tree. Signed-off-by: David Bauer --- .../generic/files/drivers/mtd/mtdsplit/mtdsplit_eva.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/target/linux/generic/files/drivers/mtd/mtdsplit

[OpenWrt-Devel] [PATCH 2/2] ath79: add AVM 4020 firmware partition compatible

2018-11-30 Thread David Bauer
This commit adds firmware partition compatible for the AVM FRITZ!Box 4020. This allows to select the correct mtdsplit parser instead of trying all available ones one by one. Signed-off-by: David Bauer --- target/linux/ath79/dts/qca9561_avm_fritz4020.dts | 1 + 1 file changed, 1 insertion

[OpenWrt-Devel] [PATCH] ath79: add AVM EVA firmware partition compatible

2018-12-01 Thread David Bauer
This commit adds firmware partition compatible for the AVM FRITZ!Box 4020 and AVM FRITZ!WLAN Repeater 300E. This allows to select the correct mtdsplit parser instead of trying all available ones one by one. Signed-off-by: David Bauer --- target/linux/ath79/dts/ar7242_avm_fritz300e.dts | 1

Re: [OpenWrt-Devel] [PATCH 2/2] ath79: add AVM 4020 firmware partition compatible

2018-12-01 Thread David Bauer
Hi Petr, On 01.12.18 10:33, Petr Štetiar wrote: > Do you think, that the same format could be applied also to > ar7242_avm_fritz300e.dts? Would you mind to add this board to this patch as > well? According to my notes which are included in the PR[1] it should be just > this two AVM boards with thi

Re: [OpenWrt-Devel] [PATCH 1/2] kernel: add DT binding support to AVM EVA parser

2018-12-03 Thread David Bauer
Hello John, On 03.12.18 07:24, John Crispin wrote: @@ -79,9 +80,19 @@ static int mtdsplit_parse_eva(struct mtd_info *master,   return EVA_NR_PARTS;   } +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 9, 0) Hi, the kernel version check is not required and can be dropped i believe    John

Re: [OpenWrt-Devel] ar71xx Vs ath79

2018-12-03 Thread David Bauer
Hello John, > The idea was to fade out ar71xx after the next release and only accept > new boards for ath79. However i'd been fine taking that step as of now. > i have noticed that the ath79 patches far out number the ar71xx ones. we > have lots of patches that migrate boards and i have seen a few

Re: [OpenWrt-Devel] ar71xx Vs ath79 -- sysupgrade

2018-12-03 Thread David Bauer
Hello Henrique, On 03.12.18 19:04, Henrique de Moraes Holschuh wrote: > Is there a viable way to "sysupgrade" from ar71xx to ath79? > > Even if it would require a model-by-model "update map" for the > lower-level stuff (LEDs, switch ports?, etc), that would be valuable. > Otherwise, it will be di

[OpenWrt-Devel] [PATCH 1/2] tools: mktplinkfw2: add split-uboot layout

2018-12-03 Thread David Bauer
This commit adds the split-uboot partition layout used by the Archer C50 v4 to mktplinkfw2. Signed-off-by: David Bauer --- tools/firmware-utils/src/mktplinkfw2.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/tools/firmware-utils/src/mktplinkfw2.c b/tools/firmware-utils/src

[OpenWrt-Devel] [PATCH 2/2] ramips: add support for Archer C50 v4

2018-12-03 Thread David Bauer
y in OpenWRT. It is important to note that Web-Recovery is only based on this flag. It can't detect e.g. a crashing kernel or other means. Once activated it won't boot the OS before a recovery action (either via TFTP or HTTP) is performed. This recovery-mode is indicated by an illuminated WPS

[OpenWrt-Devel] [PATCH v2] kernel: add DT binding support to AVM EVA parser

2018-12-04 Thread David Bauer
It allows selecting split-firmware parser directly by specifying image-format in the device-tree. Signed-off-by: David Bauer --- v2: remove kernel version check .../linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_eva.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/target/linux

[OpenWrt-Devel] [PATCH 1/2] ath79: load watchdog before PHY driver

2018-12-09 Thread David Bauer
The initialization for the two ethernet PHYs causes the hardware wathchdog of devolo WiFi pro boards to trigger reset. Linking the watchdog drivers before the PHY driver fixes this issue. Signed-off-by: David Bauer --- .../431-link-phy-after-watchdog.patch | 31 +++ 1

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

2018-12-09 Thread David Bauer
device. User is root, password the one set in the web interface. 2. Install OpenWRT with > sysupgrade -n -F /tmp/ Signed-off-by: David Bauer --- .../ath79/base-files/etc/board.d/02_network | 3 + .../etc/hotplug.d/firmware/11-ath10k-caldata | 4 + .../ath79/dts/qca9558_devolo_dvl1200e.

Re: [OpenWrt-Devel] [PATCH 1/2] ath79: load watchdog before PHY driver

2018-12-10 Thread David Bauer
On 10.12.18 09:55, Mathias Kresin wrote: > Hey David, > > have you tried to set GPIO_WATCHDOG_ARCH_INITCALL instead? According to > the help text, it might solve your issue: Hello Mathias, thanks for pointing out, indeed this does solve my issue. This patch is therefore obsolete. I will send a v2

[OpenWrt-Devel] [PATCH v2] ath79: add support for devolo WiFi pro 1200e

2018-12-10 Thread David Bauer
device. User is root, password the one set in the web interface. 2. Install OpenWRT with > sysupgrade -n -F /tmp/ Signed-off-by: David Bauer --- v2: - fixed whitespace issues - activate CONFIG_GPIO_WATCHDOG_ARCH_INITCALL kernel config symbol .../ath79/base-files/etc/board.d/02_network |

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

2018-12-17 Thread David Bauer
set a password for the root user as prompted on first setup! 1. Upload OpenWRT sysupgrade image via SSH to the device. Use /tmp as the destination folder on the device. User is root, password the one set in the web interface. 2. Install OpenWRT with > sysupgrade -n -F /tmp/ Signed-off-by: Da

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

2018-12-17 Thread David Bauer
device. User is root, password the one set in the web interface. 2. Install OpenWRT with > sysupgrade -n -F /tmp/ Signed-off-by: David Bauer --- v2: - fixed whitespace issues - activate CONFIG_GPIO_WATCHDOG_ARCH_INITCALL kernel config symbol v3: - refactored LED DT-nodes - fixed GMAC con

[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

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

2018-12-18 Thread David Bauer
Hello Christian, On 19.12.18 00:14, Christian Lamparter wrote: > I had no luck with a loaned EX6150v2 and this patch. I tried to sysupgrade > from the current -snapshot to a newly compiled image with the patch applied. > But sadly, the device didn't boot (power led stayed orange). I had to > init

[OpenWrt-Devel] [PATCH] ipq40xx: disable kernel-padding for DNI image

2018-12-20 Thread David Bauer
This commit removes the fixed kernel size-padding for the Netgear DNI image creation as it is not necessary for a working image. The fake rootfs still needs to be padded to the blocksize. Tested-By: Christian Lamparter Signed-off-by: David Bauer --- target/linux/ipq40xx/image/Makefile | 5

[OpenWrt-Devel] [PATCH v2 2/2] ramips: add support for Archer C50 v4

2018-12-24 Thread David Bauer
y in OpenWRT. It is important to note that Web-Recovery is only based on this flag. It can't detect e.g. a crashing kernel or other means. Once activated it won't boot the OS before a recovery action (either via TFTP or HTTP) is performed. This recovery-mode is indicated by an illuminat

[OpenWrt-Devel] [PATCH v2 1/2] tools: mktplinkfw2: add split-uboot layout

2018-12-24 Thread David Bauer
This commit adds the split-uboot partition layout used by the Archer C50 v4 to mktplinkfw2. Signed-off-by: David Bauer --- tools/firmware-utils/src/mktplinkfw2.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/tools/firmware-utils/src/mktplinkfw2.c b/tools/firmware-utils/src

[OpenWrt-Devel] [PATCH] iwinfo: add device id for MediaTek MT7612E

2018-12-24 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 f646d6a..40988ea 100644 --- a/hardware.txt +++ b/hardware.txt @@ -64,3 +64,4 @@ 0x11ab 0x2a55 0x11ab 0x0 0 "Marvell" "88W8864"

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

2018-12-26 Thread David Bauer
root user as prompted on first setup! 1. Upload OpenWRT sysupgrade image via SSH to the device. Use /tmp as the destination folder on the device. User is root, password the one set in the web interface. 2. Install OpenWRT with > sysupgrade -n -F /tmp/ Signed-off-by: David Bauer --- .../at

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

2018-12-26 Thread David Bauer
, password the one set in the web interface. 2. Install OpenWRT with > sysupgrade -n -F /tmp/ Signed-off-by: David Bauer --- v2: - fixed whitespace issues - activate CONFIG_GPIO_WATCHDOG_ARCH_INITCALL kernel config symbol v3: - refactored LED DT-nodes - fixed GMAC config for dvl1200e -

[OpenWrt-Devel] [PATCH] ath79: fix Archer A7 v5 5GHz MAC adress

2018-12-28 Thread David Bauer
Currently all Archer A7 v5 have the same (incorrect) MAC address. The address is currently derived from eth1 which is not present on the QCA9563. Use eth0 to get the correct MAC address. Signed-off-by: David Bauer --- .../ath79/base-files/etc/hotplug.d/firmware/11-ath10k-caldata | 2 +- 1

[OpenWrt-Devel] [PATCH] ath79: fix OCEDO Koala ethernet configuration

2018-12-29 Thread David Bauer
The OCEDO Koala has incorrect PLL settings which result in ~3% packet loss on ethernet connections. Also omit the gmac-configuration as it's incorrect too. Signed-off-by: David Bauer --- target/linux/ath79/dts/qca9558_ocedo_koala.dts | 12 +--- 1 file changed, 1 insertion(+

[OpenWrt-Devel] [PATCH] ath79: use caldata patching for Archer C58/C59

2018-12-30 Thread David Bauer
With this commit the TP-Link Archer C58 and Archer C59 use caldata patching in order to set the correct 5GHz MAC-address. Tested on TP-Link Archer C59 v1. For more details see commit 330965b. Signed-off-by: David Bauer --- .../ath79/base-files/etc/hotplug.d/firmware/11-ath10k-caldata | 1

[OpenWrt-Devel] [PATCH v3 1/3] tools: mktplinkfw2: add split-uboot layout

2018-12-31 Thread David Bauer
This commit adds the split-uboot partition layout used by the Archer C50 v4 to mktplinkfw2. Signed-off-by: David Bauer --- tools/firmware-utils/src/mktplinkfw2.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/tools/firmware-utils/src/mktplinkfw2.c b/tools/firmware-utils/src

[OpenWrt-Devel] [PATCH v3 2/3] mtd: add logic for TP-Link ramips recovery magic

2018-12-31 Thread David Bauer
moved. This way, the TP-Link web-recovery is automatically enabled on an unsucessful flash (e.g. power loss). This option is only available if the mtd package is compiled for the ramips target. Signed-off-by: David Bauer --- package/system/mtd/Makefile | 2 +- package/system/mt

[OpenWrt-Devel] [PATCH v3 3/3] ramips: add support for Archer C50 v4

2018-12-31 Thread David Bauer
y in OpenWRT. It is important to note that Web-Recovery is only based on this flag. It can't detect e.g. a crashing kernel or other means. Once activated it won't boot the OS before a recovery action (either via TFTP or HTTP) is performed. This recovery-mode is indicated by an illumina

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

2019-01-01 Thread David Bauer
web interface. 2. Install OpenWRT with > sysupgrade -n -F /tmp/ Signed-off-by: David Bauer --- .../ath79/base-files/etc/board.d/02_network | 1 + .../etc/hotplug.d/firmware/11-ath10k-caldata | 3 +- .../ath79/dts/qca9558_devolo_dvl1750i.dts | 51 +++ target/linux/at

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

2019-01-01 Thread David Bauer
web interface. 2. Install OpenWRT with > sysupgrade -n -F /tmp/ Signed-off-by: David Bauer --- .../ath79/base-files/etc/board.d/02_network | 1 + .../etc/hotplug.d/firmware/11-ath10k-caldata | 1 + .../ath79/dts/qca9558_devolo_dvl1200i.dts | 51 +++ target/linux/at

[OpenWrt-Devel] [PATCH] mpc85xx: add support for Sophos RED 15w Rev.1

2019-01-06 Thread David Bauer
o save it using 'saveenv'! After this, boot the OpenWRT initramfs image just like you would for installation. Write back the three vendor partitions using mtd. Reboot the device afterwards. Signed-off-by: David Bauer --- target/linux/mpc85xx/Makefile | 2 +- target/linux/mpc85x

[OpenWrt-Devel] [PATCH v2] mpc85xx: add support for Sophos RED 15w Rev.1

2019-01-07 Thread David Bauer
o save it using 'saveenv'! After this, boot the OpenWRT initramfs image just like you would for installation. Write back the three vendor partitions using mtd. Reboot the device afterwards. Signed-off-by: David Bauer --- v2: - move kernel configuration to subtarget - move nand feature to subta

Re: [OpenWrt-Devel] [PATCH v2] mpc85xx: add support for Sophos RED 15w Rev.1

2019-01-10 Thread David Bauer
On 10.01.19 19:03, Christian Lamparter wrote: > On Tuesday, January 8, 2019 1:20:56 AM CET David Bauer wrote: >> Hardware >> >> CPU: Freescale P1010 PowerPC >> RAM: 128M DDR3 >> NAND: 128MiB >> ETH: RTL8211F SGMII PHY >> RTL8367B 5

[OpenWrt-Devel] [PATCH 1/2] mpc85xx: use generic diag.sh

2019-01-16 Thread David Bauer
system. Where possible, the red status LED is used to indicate failsafe mode and a running upgrade. Signed-off-by: David Bauer --- target/linux/mpc85xx/base-files/etc/diag.sh | 41 --- .../arch/powerpc/boot/dts/hiveap-330.dts | 11 - .../arch/powerpc/boot/dts/red-15w-rev1

[OpenWrt-Devel] [PATCH 2/2] mpc85xx: add support for OCEDO Panda

2019-01-16 Thread David Bauer
bi part ubi && ubi read 0x100 kernel && bootm 0x100" > fw_setenv bootargs_owrt "setenv bootargs console=ttyS0,115200 ubi.mtd=3,2048" > fw_setenv bootcmd "run bootargs_owrt; run bootcmd_owrt" 8. Transfer the sysupgrade image via scp into the /tmp d

[OpenWrt-Devel] [PATCH] ramips: adjust Netgear R6120 model name

2019-01-20 Thread David Bauer
Adjust the model string and device title to match other Netgear routers in the ramips target. Signed-off-by: David Bauer --- target/linux/ramips/dts/R6120.dts | 2 +- target/linux/ramips/image/mt76x8.mk | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/target/linux/ramips

[OpenWrt-Devel] [PATCH] lantiq: make AVM FRITZ!Box naming consistent

2019-01-22 Thread David Bauer
for boards which are only supported by a specific sub-revision. Signed-off-by: David Bauer --- .../arch/mips/boot/dts/FRITZ3370-REV2-HYNIX.dts | 2 +- .../arch/mips/boot/dts/FRITZ3370-REV2-MICRON.dts | 2 +- .../arch/mips/boot/dts/FRITZ3370-REV2.dtsi | 2 +- .../files-4.14/

[OpenWrt-Devel] [PATCH] ipq40xx: remove misplaced MR33 UCI definition

2019-01-25 Thread David Bauer
This removes the misplaced UCI-network configuration for the MR33. The LAN port is set in 01_leds while it is already correctly defined in 02_network. This was most likely an oversight as no network configuration belongs into 01_leds. Signed-off-by: David Bauer --- target/linux/ipq40xx/base

[OpenWrt-Devel] [PATCH 2/3] ramips: fix Netgear R6120 MAC address

2019-01-30 Thread David Bauer
Currently, the MAC address for the Netgear R6120 is read from the NVRAM partition. The offset for the MAC address however is not consistent across devices or firmware versions. Switch to using the factory partition like all other Netgear devices do. Signed-off-by: David Bauer --- target/linux

[OpenWrt-Devel] [PATCH 3/3] ramips: fix Netgear R6120 switchport numbering

2019-01-30 Thread David Bauer
The LAN ports of the R6120 are labled in reverse on the casing. Adjust LuCI switchport numbering accordingly. Signed-off-by: David Bauer --- target/linux/ramips/base-files/etc/board.d/02_network | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/target/linux/ramips/base

[OpenWrt-Devel] [PATCH 1/3] ramips: fix Netgear R6120 LED mapping

2019-01-30 Thread David Bauer
The R6120 has no 5GHz WLAN LED, the assigned GPIO in fact controls the WAN LED. Renames the LED accordingly in the device-tree. Removes the 5GHz WLAN LED trigger. Adds the correct WAN port LED trigger. Signed-off-by: David Bauer --- target/linux/ramips/base-files/etc/board.d/01_leds | 2

[OpenWrt-Devel] [PATCH] ath79: add support for Xiaomi Mi Router 4Q

2019-02-01 Thread David Bauer
ep! 6. Install OpenWRT permanently by executing > sysupgrade -n /tmp/ Signed-off-by: David Bauer --- .../ath79/base-files/etc/board.d/02_network | 5 + .../ath79/dts/qca9561_xiaomi_mi-router-4q.dts | 153 ++ target/linux/ath79/image/generic.mk | 7 + 3 fil

[OpenWrt-Devel] [PATCH v2] ramips: various Netgear R6120 fixes

2019-02-01 Thread David Bauer
eeprom offsets for the R6120 are currently wrong (5GHz offset is bigger than the partition itself). Fixes poor performance on 2.4 and 5 GHz. Signed-off-by: David Bauer --- v2: - Squash commits into one - Fix incorrect WiFi eeprom offsets .../ramips/base-files/etc/board.d/01_leds | 2

[OpenWrt-Devel] [PATCH 1/3] scripts: make eva_ramboot.py offset configurable

2019-02-10 Thread David Bauer
, the script behaves exactly as before this commit. Signed-off-by: David Bauer --- scripts/flashing/eva_ramboot.py | 30 +++--- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/scripts/flashing/eva_ramboot.py b/scripts/flashing/eva_ramboot.py index b825d2768b

[OpenWrt-Devel] [PATCH 3/3] ipq40xx: add support for FritzBox 7530

2019-02-10 Thread David Bauer
+ rootfs + overlayfs. > ubirmvol /dev/ubi0 --name=avm_filesys_0 > ubirmvol /dev/ubi0 --name=avm_filesys_1 8. Flash OpenWRT peristently using sysupgrade. > sysupgrade -n /path/to/openwrt-sysupgrade.bin Signed-off-by: David Bauer --- package/boot/uboot-fritz4040/Mak

[OpenWrt-Devel] [PATCH 2/3] uboot-fritz4040: bump version to 2019-02-08

2019-02-10 Thread David Bauer
Adds support for the AVM FRITZ!Box 7530. Signed-off-by: David Bauer --- package/boot/uboot-fritz4040/Makefile | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/package/boot/uboot-fritz4040/Makefile b/package/boot/uboot-fritz4040/Makefile index df00b89af0

Re: [OpenWrt-Devel] [PATCH 3/3] ipq40xx: add support for FritzBox 7530

2019-02-12 Thread David Bauer
Hi Christian, On 11.02.19 23:15, Christian Lamparter wrote: > Comments inline. > > On Sunday, February 10, 2019 2:34:30 PM CET David Bauer wrote: >> Hardware >> >> CPU: Qualcomm IPQ4019 >> RAM: 256M >> FLASH: 128M NAND >> ETH: QCA807

Re: [OpenWrt-Devel] [PATCH 3/3] ipq40xx: add support for FritzBox 7530

2019-02-12 Thread David Bauer
On 12.02.19 22:17, Christian Lamparter wrote: > On Tuesday, February 12, 2019 8:55:37 PM CET David Bauer wrote: >> Hi Christian, >> On 11.02.19 23:15, Christian Lamparter wrote: >>> Comments inline. >>> >>> On Sunday, February 10, 2019 2:34:

[OpenWrt-Devel] [PATCH v2 3/3] ipq40xx: add support for FritzBox 7530

2019-02-18 Thread David Bauer
+ rootfs + overlayfs. > ubirmvol /dev/ubi0 --name=avm_filesys_0 > ubirmvol /dev/ubi0 --name=avm_filesys_1 8. Flash OpenWRT peristently using sysupgrade. > sysupgrade -n /path/to/openwrt-sysupgrade.bin Signed-off-by: David Bauer --- v2: - add PCIe subnode so VRX518 is detected on

[OpenWrt-Devel] [PATCH v2 1/3] scripts: make eva_ramboot.py offset configurable

2019-02-18 Thread David Bauer
, the script behaves exactly as before this commit. Signed-off-by: David Bauer --- scripts/flashing/eva_ramboot.py | 30 +++--- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/scripts/flashing/eva_ramboot.py b/scripts/flashing/eva_ramboot.py index b825d2768b

[OpenWrt-Devel] [PATCH v2 2/3] uboot-fritz4040: bump version to 2019-02-08

2019-02-18 Thread David Bauer
Adds support for the AVM FRITZ!Box 7530. Signed-off-by: David Bauer --- package/boot/uboot-fritz4040/Makefile | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/package/boot/uboot-fritz4040/Makefile b/package/boot/uboot-fritz4040/Makefile index df00b89af0

[OpenWrt-Devel] [PATCH] ath79: fix support-list for TP-Link WDR3600

2019-02-22 Thread David Bauer
problem however, as the only difference is the 5GHz WiFi chip which has 3SS instead of 2SS. Both work with either image. Signed-off-by: David Bauer --- target/linux/ath79/image/generic-tp-link.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/linux/ath79/image/generic-

[OpenWrt-Devel] [PATCH] ath79: add ar71xx support-list entry for Fritz4020

2019-02-23 Thread David Bauer
This adds the support-list entry the AVM FRITZ!Box 4020 expects in the ar71xx target to allow non-forced sysupgrades from ar71xx to ath79. Signed-off-by: David Bauer --- target/linux/ath79/image/generic.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/target/linux/ath79/image/generic.mk

[OpenWrt-Devel] [PATCH] ath79: make TP-Link revision naming consistent

2019-02-24 Thread David Bauer
This commit makes the TP-Link hardware-revision naming consistent to match the one used by the vendor. TP-Link refers to the different revisions as "vX" not "Version X". Signed-off-by: David Bauer --- target/linux/ath79/dts/ar9132_tplink_tl-wr1043nd-v1.dts | 2 +- ta

Re: [OpenWrt-Devel] [PATCH v2 3/3] ipq40xx: add support for FritzBox 7530

2019-02-25 Thread David Bauer
Hello Christian, On 25.02.19 23:10, Christian Lamparter wrote: > On Wednesday, February 20, 2019 6:02:21 PM CET Christian Lamparter wrote: >> On Monday, February 18, 2019 11:58:34 PM CET David Bauer wrote: >>> diff --git >>> a/target/linux/ipq40xx/files-4.14/arc

[OpenWrt-Devel] [PATCH] ramips: change LED trigger

2018-06-10 Thread David Bauer
change against two of those devices, namely a TL-WR841 v13 and a Archer C50 v3. Signed-off-by: David Bauer --- target/linux/ramips/base-files/etc/board.d/01_leds | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/target/linux/ramips/base-files/etc/board.d/01_leds b/target

[OpenWrt-Devel] [PATCH] ipq40xx: add get_status_led to diag.sh

2018-06-12 Thread David Bauer
This commit adds the get_status_led method to diag.sh, which sets the boot-led as status-led for scripts using this method to get a status-led. This method is used platform-independent in downstream project gluon to set the LED used to indicate the config-mode. Signed-off-by: David Bauer

[OpenWrt-Devel] [PATCH] ath79: fix OCEDO Raccoon

2018-07-20 Thread David Bauer
the bootloader. Signed-off-by: David Bauer --- target/linux/ath79/base-files/etc/board.d/02_network | 1 + target/linux/ath79/dts/ar9344_ocedo_raccoon.dts | 4 2 files changed, 5 insertions(+) diff --git a/target/linux/ath79/base-files/etc/board.d/02_network b/target/linux/ath79/base

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

2019-09-04 Thread David Bauer
The get_mac_address helper methods did not support hexadecimal offset values, resulting them to break after 75bfc393ba6c ("treewide: convert MAC address location offsets to hexadecimal") This commit fixes this by evaluating the hexadecimal input, converting them to decimal. Signed-off

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

2019-09-04 Thread David Bauer
Hello Adrian, On 9/4/19 10:08 PM, m...@adrianschmutzler.de wrote: > when I tested it then, the hexdump offset did accept hexadecimal values > intrinsically. > I remember that because I was quite surprised that offset accepted > hexadecimal values and size didn't. This might be the case for hexd

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

2019-09-04 Thread David Bauer
Hello Karl, On 9/3/19 6:57 PM, Karl Palsson wrote: > > > Karl Pálsson wrote: >> >> Signed-off-by: Karl Palsson >> --- > > It's minor, but if someone picks this, please _don't_ change my > SoB to match the email. The original source commits and all git > config names are unaccented, and it's

[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&

[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" "Q

[OpenWrt-Devel] [PATCH] ath79: fix UniFi AC LED mapping

2019-09-06 Thread David Bauer
The UniFi AC LED mapping is currently off. The blue/white LED are used as WiFi indicators, while the vendor firmware does not feature WiFI LEDs. Instead, the LEDs are used to indicate the devices status. Align the LED mapping to match the vendor firmware as good as possible. Signed-off-by: David

Re: [OpenWrt-Devel] Migration in ath79 for swapped ethernet

2019-09-07 Thread David Bauer
Hello Adrian, On 9/5/19 5:00 PM, Adrian Schmutzler wrote: > 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): >

<    1   2   3   4   5   >