Re: [PATCH] ath10k-ct: update to version 2018-08-25

2020-09-02 Thread Sander Vanheule
On Wed, 2020-09-02 at 02:14 +0300, Stijn Tintel wrote: > And since we are using mac80211 5.8, let's also switch the ath10k-ct > driver to the new 5.8 version. > > Signed-off-by: Stijn Tintel Built and run-tested on ath79 (TP-Link EAP245 v3: qca9563+qca9982) Tested-by: San

Re: tplink-safeloader support-list on CPE/WBS devices

2020-08-31 Thread Sander Vanheule
Hi Adrian, On Sun, 2020-08-30 at 22:43 +0200, Adrian Schmutzler wrote: > Hi, > > while increasing the kernel partition for the TP-Link CPE devices, I > found that the partitions called "soft-version" and "support-list" > are handled as a part of the file-system/firmware partition, in > contrast

[PATCH 2/6] ath79: add QCA956x SERDES init workaround

2020-10-20 Thread Sander Vanheule
[Sander Vanheule: Minor code style fixes, Remove hunk adding qca956x-serdes-fixup to a missing DTS, Remove variable err that was only assigned, Rename function to sgmii_serdes_init, Lower priority of serdes call message to pr_debug] Signed-off-by: Sander Vanheule --- .../net

[PATCH 4/6] ath79: support for TP-Link EAP245 v1

2020-10-20 Thread Sander Vanheule
quot; are based on that work. Signed-off-by: Sander Vanheule --- .../ath79/dts/qca9563_tplink_eap245-v1.dts| 44 +++ .../generic/base-files/etc/board.d/02_network | 1 + .../etc/hotplug.d/firmware/11-ath10k-caldata | 11 ++--- target/linux/ath79/image/generic-tp-link.mk | 11 +++

[PATCH 6/6] ath79: support for TP-Link EAP225 v3

2020-10-20 Thread Sander Vanheule
with hwaddr b0:...:3e and ssid "..." Using interface ath10 with hwaddr b0:...:3f and ssid "..." Tested by forum user blinkstar88 Signed-off-by: Sander Vanheule --- .../ath79/dts/qca9563_tplink_eap225-v3.dts| 30 +++ .../generic/base-files/etc/boa

[PATCH 5/6] ath79: support for TP-Link EAP225-Outdoor v1

2020-10-20 Thread Sander Vanheule
D8:...:2E Tested by forum user PolynomialDivision on firmware v1.7.0. UART access tested by forum user arinc9. Signed-off-by: Sander Vanheule --- .../dts/qca9563_tplink_eap225-outdoor-v1.dts | 30 +++ .../generic/base-files/etc/board.d/02_network | 1 + .../etc/hotplug.d/firmw

[PATCH 3/6] ath79: prepare for 1-port TP-Link EAP2x5 devices

2020-10-20 Thread Sander Vanheule
on PCIe * Ethernet: AR8033-AL1A, one 1GbE port (802.3at PoE) Signed-off-by: Sander Vanheule --- .../dts/qca9563_tplink_eap2x5-1port.dtsi | 135 ++ 1 file changed, 135 insertions(+) create mode 100644 target/linux/ath79/dts/qca9563_tplink_eap2x5-1port.dtsi diff --git

[PATCH 0/6] ath79: support for TP-Link single-port EAP2x5 devices

2020-10-20 Thread Sander Vanheule
on-tp-link-eap225/33956/105 Julien Dusser (1): ath79: add QCA956x SERDES init workaround Sander Vanheule (5): ath79: ensure QCA956x gmac0 mux selects sgmii ath79: prepare for 1-port TP-Link EAP2x5 devices ath79: support for TP-Link EAP245 v1 ath79: support for TP-Link EAP225-Outdoor

[PATCH 1/6] ath79: ensure QCA956x gmac0 mux selects sgmii

2020-10-20 Thread Sander Vanheule
Some bootloaders do not set up gmac0 properly, leaving it disconnected from the sgmii interface. If the user specificies phy-mode sgmii, then use the gmac-config/device node to ensure the mux is configured correctly. Signed-off-by: Sander Vanheule --- .../net/ethernet/atheros/ag71xx

Re: jffs2 errors with 5.4 kernel

2020-08-17 Thread Sander Vanheule
On Mon, 2020-08-17 at 21:19 +0200, Nick wrote: > Logs AVM Fritz!Box: > - > https://gist.github.com/PolynomialDivision/96bfd98d723f288c617fd96f8ff04c22 > > I think many more devices are affected. Keep an eye out for jffs2 > errors. > > We believe that the mx25l12835f (16-pin package) chip is

[PATCH] kernel: mtdsplit: support ELF loader splitting

2020-08-19 Thread Sander Vanheule
be aligned to an erase-block after the loader and kernel image. In case section header table is empty, determine the elf loader size by finding the end of the last segment, as defined by the program header table. Signed-off-by: Sander Vanheule --- This patch was tested on a number of ath79 devices

[PATCH] rtl838x: clean up build instructions

2020-09-29 Thread Sander Vanheule
-netgear.mk does it. Signed-off-by: Sander Vanheule --- target/linux/rtl838x/image/Makefile | 24 ++-- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/target/linux/rtl838x/image/Makefile b/target/linux/rtl838x/image/Makefile index eef1fe0a33..0174e47449 100644

Re: [PATCH] rtl838x: clean up build instructions

2020-09-29 Thread Sander Vanheule
Hi Adrian, On Tue, 2020-09-29 at 19:44 +0200, Adrian Schmutzler wrote: > > -define Build/custom-uimage > > - mkimage -A $(LINUX_KARCH) \ > > - -O linux -T kernel \ > > - -C gzip -a $(KERNEL_LOADADDR) $(if $(UIMAGE_MAGIC),-M > > $(UIMAGE_MAGIC),) \ > > - -e $(if > >

[PATCH] ath79: switch to kernel loader for ar9344 CPE/WBS

2020-09-27 Thread Sander Vanheule
on the new tplink-safeloader-elf base device. Signed-off-by: Sander Vanheule --- I've build tested this patch for all affected devices, but I cannot test these new images on the CPE/WBS devices as I do not have these. Any volunteer willing to test this patch on their device would be welcome to do so

Re: [RFC PATCH 4/7] ath79: prepare for 1-port TP-Link EAP2x5 devices

2020-07-18 Thread Sander Vanheule
Hi David, On Sat, 2020-07-18 at 21:45 +0200, David Bauer wrote: > > + gmac-config { > > + device = <>; > > + > > + rgmii-ge0 = <1>; > > + ge0-sgmii = <1>; > > + rxdv-delay = <3>; > > + rxd-delay = <3>; > > This does not make a lot of sense to

Re: [RFC PATCH v2 4/6] ath79: support for TP-Link EAP245 v1

2020-07-20 Thread Sander Vanheule
Hi Adrian, On Sun, 2020-07-19 at 23:24 +0200, Sander Vanheule wrote: > TP-Link EAP245 v1 is an AC1750 (802.11ac Wave-1) ceiling mount access > point. > > Device specifications: > * SoC: QCA9563 @ 775MHz > * RAM: 128MiB DDR2 > * Flash: 16MiB SPI-NOR > * Wireless

[PATCH] tools/firmware-utils: use UTC for image timestamps

2020-08-06 Thread Sander Vanheule
By using localtime() to determine the timestamp that goes into factory images, the resulting image depends on the timezone of the build system. Use gmtime() instead, which results in more reproducible images. Signed-off-by: Sander Vanheule --- Tested by building factory images with tplink

[PATCH v2] tools/firmware-utils: use UTC for image timestamps

2020-08-06 Thread Sander Vanheule
By using localtime() to determine the timestamp that goes into factory images, the resulting image depends on the timezone of the build system. Use gmtime() instead, which results in more reproducible images. Signed-off-by: Sander Vanheule --- tools/firmware-utils/Makefile| 2

Re: [RFC] Policy for PKG_RELEASE bumps

2020-08-09 Thread Sander Vanheule
Hi Paul, Following our brief discussion on IRC, here are my remarks again, so others can also comment on them. I'm still pretty new to this packaging stuff, so some arguments may already have been made in the past. On Fri, 2020-08-07 at 12:32 -1000, Paul Spooren wrote: > Hi team, > > currently

[RFC PATCH 1/1] kernel: mtdsplit: support ELF loader splitting

2020-07-08 Thread Sander Vanheule
at some offset behind the loader (OKLI-style loader), the rootfs must be aligned to an erase-block after the loader and kernel image. Some improvements were suggested by Julien Dusser. Signed-off-by: Sander Vanheule --- .../files/drivers/mtd/mtdsplit/Kconfig| 5 + .../files/drivers/mtd

[RFC PATCH 0/1] Introduce mtd splitter for ELF kernel loader

2020-07-08 Thread Sander Vanheule
with squashfs rootfs). Sander Vanheule (1): kernel: mtdsplit: support ELF loader splitting .../files/drivers/mtd/mtdsplit/Kconfig| 5 + .../files/drivers/mtd/mtdsplit/Makefile | 1 + .../files/drivers/mtd/mtdsplit/mtdsplit_elf.c | 216 ++ 3 files changed, 222

[RFC PATCH v2 0/1] Introduce mtd splitter for ELF kernel loader

2020-07-11 Thread Sander Vanheule
with squashfs root). Changes since v1: - Fix whitespace issues - Rename elf_header.class* to elf_header.elf* - Use stack for elf header instead of vmalloc mtdsplit_tplink uses a much larger header on the stack, so using vmalloc doesn't seem justified. Sander Vanheule (1): kernel

[RFC PATCH v2 1/1] kernel: mtdsplit: support ELF loader splitting

2020-07-11 Thread Sander Vanheule
be aligned to an erase-block after the loader and kernel image. Includes some suggestions by Julien Dusser. Signed-off-by: Sander Vanheule Tested-by: Julien Dusser --- .../files/drivers/mtd/mtdsplit/Kconfig| 5 + .../files/drivers/mtd/mtdsplit/Makefile | 1 + .../files

[RFC PATCH 4/7] ath79: prepare for 1-port TP-Link EAP2x5 devices

2020-07-17 Thread Sander Vanheule
* Ethernet: AR8033-AL1A, one 1GbE port (802.3at PoE) This patch was originally developed by Julien Dusser for the EAP245 v1, and was adapted by Sander Vanheule to support more devices. Signed-off-by: Julien Dusser Signed-off-by: Sander Vanheule --- .../dts/qca9563_tplink_eap2x5_1port.dtsi | 174

[RFC PATCH 0/7] ath79: support for TP-Link EAP2x5 devices

2020-07-17 Thread Sander Vanheule
ath79: add QCA956x SERDES init workaround Sander Vanheule (4): ath79: prepare for 1-port TP-Link EAP2x5 devices ath79: support for TP-Link EAP245 v1 ath79: support for TP-Link EAP225-Outdoor v1 ath79: support for TP-Link EAP225 v3 .../ath79/dts/qca9563_tplink_eap225-v3.dts| 21

[RFC PATCH 6/7] ath79: support for TP-Link EAP225-Outdoor v1

2020-07-17 Thread Sander Vanheule
ted by forum user PolynomialDivision on firmware v1.7.0. Signed-off-by: Sander Vanheule --- .../ath79/dts/qca9563_tplink_eap225od-v1.dts | 21 ++ .../generic/base-files/etc/board.d/02_network | 1 + .../etc/hotplug.d/firmware/11-ath10k-caldata | 6 target/linux/ath79/image/generic

[RFC PATCH 1/7] ath79: add lots of missing regs for QCA956x

2020-07-17 Thread Sander Vanheule
-by: Sander Vanheule --- .../920-qca956x-add-more-registers.patch | 186 ++ .../920-qca956x-add-more-registers.patch | 186 ++ 2 files changed, 372 insertions(+) create mode 100644 target/linux/ath79/patches-4.19/920-qca956x-add-more-registers.patch

[RFC PATCH 7/7] ath79: support for TP-Link EAP225 v3

2020-07-17 Thread Sander Vanheule
address incremented by 1. From OEM boot log: Using interface ath0 with hwaddr b0:...:3e and ssid "..." Using interface ath10 with hwaddr b0:...:3f and ssid "..." Tested by forum user blinkstar88 Signed-off-by: Sander Vanheule --- .../ath79/dts/qca9563_tplink_e

[RFC PATCH 2/7] ath79: export more QCA956x GMAC settings to DT

2020-07-17 Thread Sander Vanheule
Allow configuration of rgmii-ge0, mii-ge0, gmii-ge0, mii-ge0-master, mii-ge0-slave, ge0-sgmii, txen-delay, txd-delay, rxdv-delay and rxd-delay in device-tree for qca956x SoCs. Signed-off-by: Julien Dusser Signed-off-by: Sander Vanheule --- .../net/ethernet/atheros/ag71xx/ag71xx_gmac.c

[RFC PATCH 3/7] ath79: add QCA956x SERDES init workaround

2020-07-17 Thread Sander Vanheule
for QCA956x. Note that reset is the same on QCA955x and QCA956x, same register offset and values. Auto calibration is done on u-boot, but always fall back to default value 0x7. Add a DTS entry serdes-cal in case a device require another value. Signed-off-by: Julien Dusser Signed-off-by: Sander

[RFC PATCH 5/7] ath79: support for TP-Link EAP245 v1

2020-07-17 Thread Sander Vanheule
during boot * tftp initramfs to flash via Luci web-interface Tested on the EAP245v1 running the latest firmware (v1.4.0). The binary patch might not apply to uclited from other firmware versions. Signed-off-by: Sander Vanheule --- .../ath79/dts/qca9563_tplink_eap245-v1.dts| 26 +

Re: [RFC PATCH 6/7] ath79: support for TP-Link EAP225-Outdoor v1

2020-07-18 Thread Sander Vanheule
Hi Adrian, On Fri, 2020-07-17 at 15:01 +0200, m...@adrianschmutzler.de wrote: > Hi, > > > diff --git a/target/linux/ath79/dts/qca9563_tplink_eap225od-v1.dts > > b/target/linux/ath79/dts/qca9563_tplink_eap225od-v1.dts > > new file mode 100644 > > index 00..dcfdb7e524 > > --- /dev/null > >

Re: [RFC PATCH 5/7] ath79: support for TP-Link EAP245 v1

2020-07-18 Thread Sander Vanheule
Hi Adrian, On Fri, 2020-07-17 at 14:54 +0200, m...@adrianschmutzler.de wrote: > Hi, > > > diff --git a/target/linux/ath79/dts/qca9563_tplink_eap245-v1.dts > > b/target/linux/ath79/dts/qca9563_tplink_eap245-v1.dts > > new file mode 100644 > > index 00..8a11d2e469 > > --- /dev/null > > +++

Re: [RFC PATCH 4/7] ath79: prepare for 1-port TP-Link EAP2x5 devices

2020-07-18 Thread Sander Vanheule
On Fri, 2020-07-17 at 14:49 +0200, m...@adrianschmutzler.de wrote: > Hi, Hi Adrian, Thanks for the quick feedback. > > diff --git > > a/target/linux/ath79/dts/qca9563_tplink_eap2x5_1port.dtsi > > b/target/linux/ath79/dts/qca9563_tplink_eap2x5_1port.dtsi > > new file mode 100644 > > index

[RFC PATCH v2 5/6] ath79: support for TP-Link EAP225-Outdoor v1

2020-07-19 Thread Sander Vanheule
ted by forum user PolynomialDivision on firmware v1.7.0. Signed-off-by: Sander Vanheule --- .../dts/qca9563_tplink_eap225-outdoor-v1.dts | 31 +++ .../generic/base-files/etc/board.d/02_network | 1 + .../etc/hotplug.d/firmware/11-ath10k-caldata | 6 target/linux/ath79/image/gene

[RFC PATCH v2 3/6] ath79: prepare for 1-port TP-Link EAP2x5 devices

2020-07-19 Thread Sander Vanheule
on PCIe * Ethernet: AR8033-AL1A, one 1GbE port (802.3at PoE) This patch was originally developed by Julien Dusser for the EAP245 v1, and was adapted by Sander Vanheule to support more devices. Signed-off-by: Julien Dusser Signed-off-by: Sander Vanheule --- .../dts

[RFC PATCH v2 1/6] ath79: ensure QCA956x gmac0 mux selects sgmii

2020-07-19 Thread Sander Vanheule
Some bootloaders do not set up gmac0 properly, leaving it disconnected from the sgmii interface. If the user specificies phy-mode sgmii, then use the gmac-config/device node to ensure the mux is configured correctly. Signed-off-by: Sander Vanheule Cc: David Bauer --- .../net/ethernet/atheros

[RFC PATCH v2 6/6] ath79: support for TP-Link EAP225 v3

2020-07-19 Thread Sander Vanheule
incremented by 1. From OEM boot log: Using interface ath0 with hwaddr b0:...:3e and ssid "..." Using interface ath10 with hwaddr b0:...:3f and ssid "..." Tested by forum user blinkstar88 Signed-off-by: Sander Vanheule --- .../ath79/dts/qca9563_tplink_e

[RFC PATCH v2 2/6] ath79: add QCA956x SERDES init workaround

2020-07-19 Thread Sander Vanheule
Signed-off-by: Sander Vanheule --- .../net/ethernet/atheros/ag71xx/ag71xx_main.c | 78 +++ 1 file changed, 78 insertions(+) diff --git a/target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c b/target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx

[RFC PATCH v2 4/6] ath79: support for TP-Link EAP245 v1

2020-07-19 Thread Sander Vanheule
during boot * tftp initramfs to flash via the LuCI web interface Tested on the EAP245 v1 running the latest firmware (v1.4.0). The binary patch might not apply to uclited from other firmware versions. Signed-off-by: Sander Vanheule --- .../ath79/dts/qca9563_tplink_eap245-v1.dts| 36 ++

[RFC PATCH v2 0/6] ath79: support for TP-Link EAP2x5 1-port devices

2020-07-19 Thread Sander Vanheule
in the correct device node (eth0, not phy4) * Ensure QCA956X_ETH_CFG_GE0_SGMII is set when required. Removes the need for the device tree extension patch. Julien Dusser (1): ath79: add QCA956x SERDES init workaround Sander Vanheule (5): ath79: ensure QCA956x gmac0 mux selects sgmii ath79

Re: [RFC PATCH v2 4/6] ath79: support for TP-Link EAP245 v1

2020-07-21 Thread Sander Vanheule
are > > > versions. > > > > > > Signed-off-by: Sander Vanheule > > > > Seems like I was overdue on a proper read of the kernel patch > > submission > > guidelines. My understanding from the guidelines and your previous > > mail [1], > > is that t

Re: [RFC PATCH v2 1/6] ath79: ensure QCA956x gmac0 mux selects sgmii

2020-07-22 Thread Sander Vanheule
Hi David, On Wed, 2020-07-22 at 12:28 +0200, David Bauer wrote: > Hi Sander, > > this looks good, however there are two minor improvements still open. > > > + int err = 0; > > Remove this, as it is only assigned but never accessed. > > > + u32 serdes_cal; > > This is never used. > I

Re: [RFC PATCH 4/7] ath79: prepare for 1-port TP-Link EAP2x5 devices

2020-07-18 Thread Sander Vanheule
On Sat, 2020-07-18 at 13:03 +0200, m...@adrianschmutzler.de wrote: > > I tried 80MHz and 65MHz, but that didn't result in proper reads. > > 50MHz, > > 55MHz, and 60MHz do appear to work on my eap245-v1, so I really > > wouldn't > > risk going above 50MHz. > > If you've taken the 25 MHz somewhere

Re: [RFC PATCH v2 3/6] ath79: prepare for 1-port TP-Link EAP2x5 devices

2020-07-20 Thread Sander Vanheule
Hi Adrian, On Mon, 2020-07-20 at 00:25 +0200, m...@adrianschmutzler.de wrote: > Hi, > > > Signed-off-by: Julien Dusser > > Signed-off-by: Sander Vanheule > > technically, if Julien is first SoB, you should also put him in the > author (From:) field. The DTSI i

Re: [PATCH 0/8] kernel: mtdsplit_uimage: use device tree properties for non-standard uimage parsing

2020-11-25 Thread Sander Vanheule
Hi Bjørn, Just some thoughts in addition to what was already mentioned about the property names. On Wed, 2020-11-25 at 12:45 +0100, Bjørn Mork wrote: > This ended up a bit more invasive than I imagined, but here goes.. > > I wanted to add a couple of new rtl83xx devices.  They both use >

[PATCH] ramips: mt7621: replace missing custom-initramfs-uimage

2020-11-26 Thread Sander Vanheule
custom-initramfs-uimage was replaced by calls to uImage, but apparently mtc_wr1201 was missed in the transistion. Use uImage for this device too. Fixes: 9f574b1b875c "ramips: mt7621: drop custom uImage function" Signed-off-by: Sander Vanheule --- target/linux/ramips/image/mt7621.mk

Re: [PATCH] ath79: switch to kernel loader for ar9344 CPE/WBS

2020-12-22 Thread Sander Vanheule
Hi, On Tue, 2020-12-22 at 12:21 +0100, Petr Štetiar wrote: > > does not apply anymore, so you should rebase and resend. I was actually made aware that my approach is not recommended, so I'm just going to retract this patch. As described in commit 0c0bb6299 [1], the bootloader on these devices

Re: [PATCH 2/5] ramips: mt7621: drop custom uImage function

2020-11-04 Thread Sander Vanheule
Hi Adrian, On Wed, 2020-11-04 at 14:42 +0100, Adrian Schmutzler wrote: > Hi Sander, > > > -Original Message- > > From: openwrt-devel > > [mailto:openwrt-devel-boun...@lists.openwrt.org] > > On Behalf Of Sander Vanheule > > Sent: Mittwoch, 4. Novem

[PATCH 1/5] build: uImage: allow override of default arguments

2020-11-04 Thread Sander Vanheule
of the call arguments to override the provided defaults. Only the input file name (-d) and the output file name cannot overriden. Signed-off-by: Sander Vanheule --- include/image-commands.mk | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/image-commands.mk b

[PATCH 3/5] build: add UIMAGE_MAGIC to device variables

2020-11-04 Thread Sander Vanheule
... endef Fixes df8e6be59a "rtl838x: add new architecture" where UIMAGE_MAGIC was not declared as a device variable. Signed-off-by: Sander Vanheule --- include/image-commands.mk | 2 +- include/image.mk | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/inc

[PATCH 4/5] ath79: netgear: trim down uImage customisations

2020-11-04 Thread Sander Vanheule
Replace NETGEAR_KERNEL_MAGIC by UIMAGE_MAGIC to better match the variable's purpose. This allows to drop UIMAGE_MAGIC where it equals the default for uImages, and remove the custom Build/netgear-uImage. Signed-off-by: Sander Vanheule --- Build tested for Netgear WNDR3700v2 and EX6400. target

[PATCH 5/5] rtl83xx: drop custom mkimage build function

2020-11-04 Thread Sander Vanheule
UIMAGE_MAGIC is now supported by Build/uImage, in addition to UIMAGE_NAME. This removes the need for a custom mkimage call, so let's remove it. Signed-off-by: Sander Vanheule --- target/linux/rtl838x/image/Makefile | 13 + 1 file changed, 1 insertion(+), 12 deletions(-) diff --git

[PATCH 2/5] ramips: mt7621: drop custom uImage function

2020-11-04 Thread Sander Vanheule
Use the mkimage argument overrides provided by uImage to implement the customisations required for the initramfs, instead of the near-identical custom function. Signed-off-by: Sander Vanheule --- Build tested for iodata_wn1167gr2, where uImage lzma -M 0x434f4d42 -n '3.10(XBC.1)b10

[PATCH 0/5] Make Build/uImage more flexible

2020-11-04 Thread Sander Vanheule
: https://patchwork.ozlabs.org/project/openwrt/patch/20200929162006.236206-1-san...@svanheule.net/ Sander Vanheule (5): build: uImage: allow override of default arguments ramips: mt7621: drop custom uImage function build: add UIMAGE_MAGIC to device variables ath79: netgear: trim down u

Re: [PATCH v5 2/2] realtek: add support for ZyXEL GS1900-8HP v1 and v2

2021-01-08 Thread Sander Vanheule
Hi Stijn, On Fri, 2021-01-08 at 14:32 +0100, Stijn Segers wrote: > diff --git a/target/linux/realtek/image/Makefile > b/target/linux/realtek/image/Makefile > index 765e516a0a..39b28b6c67 100644 > --- a/target/linux/realtek/image/Makefile > +++ b/target/linux/realtek/image/Makefile > @@ -65,11

Re: [PATCH v2 00/10] kernel: mtdsplit_uimage: use device tree properties for non-standard uimage parsing

2021-01-13 Thread Sander Vanheule
r's builds and my own builds, I've run-tested this on my WNDR3700v2 (ath79/generic). Flashing first Petr's build, I ended up in a boot loop, although booting only failed after the partitions were correctly processed, similar to [1]. My own build and a second flash with ynezz's test build have produce

[PATCH] ramips: manage low reset lines

2021-02-04 Thread Sander Vanheule
from mips-next to allow control of the "mcm" reset line. Signed-off-by: Sander Vanheule --- The devices this is currently required for are: * TP-Link Archer C6U v1: https://github.com/openwrt/openwrt/pull/3757 * TP-Link Archer A6 v3: https://github.com/openwrt/openwrt/pull/3786 * TP-L

Re: [PATCH] ramips: gpio-ralink: use ngpios, not ralink,num-gpios

2021-04-07 Thread Sander Vanheule
Hi Ilya, On Mon, 2021-04-05 at 22:53 -0700, Ilya Lipnitskiy wrote: > DTS properties that match *-gpios are treated specially. > > Use ngpios instead, as most GPIO drivers upstream do. > > Fixes 5.10 DTS errors such as: >   OF: /palmbus@30/gpio@600: could not find phandle > > Fixes DTC

Re: [PATCH] uboot-envtools: add support for GS108T v3 & GS110TPP v1

2021-02-28 Thread Sander Vanheule
Hi Stijn On Sat, 2021-02-27 at 23:05 +0100, Stijn Segers wrote: > The Netgear GS108T v3 and its GS110TPP v1 sibling apparently label > their u-boot environment parition 'bdinfo' instead of 'u-boot-env'. Alternatively, the u-boot data partition could also just be renamed to 'u-boot-env', to match

Re: [PATCH 2/3] realtek: sort the port list numerically

2021-04-12 Thread Sander Vanheule
Hi Bjørn, On Mon, 2021-04-12 at 14:27 +0200, Bjørn Mork wrote: > Mac adresses are assigned in the order given by the port list.  The > interfaces are also brought up in this order.  This target supports > devices with up to 52 ports.  Sorting these alphabetically is very > confusing, and

Re: [PATCH] firmware-utils: tplink-safeloader: support displaying fw info

2021-04-10 Thread Sander Vanheule
Hi Rafał, This looks like a useful addition to the safeloader tool. On Thu, 2021-04-08 at 23:49 +0200, Rafał Miłecki wrote: > From: Rafał Miłecki > > Add "-i" option for reading & displaying firmware info. First it lists > in-firmware partitions ("fwup-ptn"). Then it checks for human >

Re: [PATCH] ramips: mt7621: add TP-Link EAP235-Wall support

2021-02-17 Thread Sander Vanheule
Hi Adrian, Thanks for the review. I'll fix the naming issues in a v2, some extra comments below. On Wed, 2021-02-17 at 01:47 +0100, Adrian Schmutzler wrote: > > Known issues with this device: > > The MT7613BE radio is currently not well supported by the mt7615 > > driver: > > - The EEPROM blob

[PATCH] ramips: mt7621: add TP-Link EAP235-Wall support

2021-02-14 Thread Sander Vanheule
r into its shell * Change default 'serverip' and 'ipaddr' variables (optional) * Download initramfs with `tftpboot`, and boot image with `bootm` # tftpboot 8400 openwrt-initramfs.bin # bootm Hardware was kindly provided for porting by Stijn Segers. Tested-by: Stijn Segers Signed-off-

[PATCH] ramips: mt7621: enable SX150x driver

2021-02-20 Thread Sander Vanheule
devices. Run-tested on a Netgear R6800. Cc: Stijn Segers Cc: Hauke Mehrtens Signed-off-by: Sander Vanheule --- target/linux/ramips/mt7621/config-5.4 | 1 + 1 file changed, 1 insertion(+) diff --git a/target/linux/ramips/mt7621/config-5.4 b/target/linux/ramips/mt7621/config-5.4 index

[PATCH v2] ramips: mt7621: add TP-Link EAP235-Wall support

2021-02-18 Thread Sander Vanheule
e improved/disappeared with bc3963764d. Error notice example: [ 7099.554067] mt7615e :02:00.0: Message 73 (seq 1) timeout Hardware was kindly provided for porting by Stijn Segers. Tested-by: Stijn Segers Signed-off-by: Sander Vanheule --- Changes in v2: - Added instructions on how to rever

[PATCH 1/2] firmware-utils: tplink-safeloader: improve soft-version customisation

2021-08-27 Thread Sander Vanheule
-defined types of soft-version overwrites, and provide a few macros for easy value initialisation. Requires all existing values to be updated to match the new structure. Signed-off-by: Sander Vanheule --- tools/firmware-utils/Makefile| 2 +- tools/firmware-utils/src/tplink-safeloader.c

[PATCH 0/2] TP-Link safeloader custom soft-version support

2021-08-27 Thread Sander Vanheule
d to first install a snapshot image before they can install a 21.02 release image. How would PKG_RELEASE conflicts be avoided for backported patches? Sander Vanheule (2): firmware-utils: tplink-safeloader: improve soft-version customisation firmware-utils: tplink-safeloader: set EAP235-Wall v1 so

[PATCH 2/2] firmware-utils: tplink-safeloader: set EAP235-Wall v1 soft-version

2021-08-27 Thread Sander Vanheule
can install OpenWrt on their devices. Signed-off-by: Sander Vanheule --- tools/firmware-utils/src/tplink-safeloader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/firmware-utils/src/tplink-safeloader.c b/tools/firmware-utils/src/tplink-safeloader.c index 9349173e59

Re: [PATCH 2/2] firmware-utils: tplink-safeloader: set EAP235-Wall v1 soft-version

2021-08-31 Thread Sander Vanheule
On Fri, 2021-08-27 at 11:38 +0200, Sander Vanheule wrote: > Starting with v3 of the vendor firmware for the TP-Link EAP235-Wall v1, > downgrades to firmware versions below v3 as not allowed.  Since OpenWrt > uses version 0.0.0 as a default, this causes the factory install to fail >

Re: [PATCH 0/2] TP-Link safeloader custom soft-version support

2021-08-31 Thread Sander Vanheule
On Sat, 2021-08-28 at 10:24 -0300, Henrique de Moraes Holschuh wrote: > On 27/08/2021 06:38, Sander Vanheule wrote: > > > > EAP235-Wall support will be included in the 21.02 release, but users who > > have a v3 (or later) firmware installed, will not be able to install

[PATCH] firmware-utils: tplink-safeloader: use revision field

2021-09-01 Thread Sander Vanheule
this revision number when printing image info. Fixes: 1a211af2cb3b ("firmware-utils: tplink-safeloader: refactor meta-partition generation") Signed-off-by: Sander Vanheule --- This patch conflicts with my other tplink-safeloader patch [1] due to the PKG_RELEASE version bump. Dependin

[PATCH v2 0/2] Safeloader firmware images contain a soft-version partition, which encodes version info about the image. There are currently two formats: plain text and structured binary with the firmw

2021-09-10 Thread Sander Vanheule
then changes the (structured) soft-version override for the EAP235-WALL v1 to support recent vendor firmwares. Series v1: https://lists.infradead.org/pipermail/openwrt-devel/2021-August/036170.html Sander Vanheule (2): firmware-utils: tplink-safeloader: improve soft-version customisation

[PATCH v2 2/2] firmware-utils: tplink-safeloader: set EAP235-Wall v1 soft-version

2021-09-10 Thread Sander Vanheule
can install OpenWrt on their devices. Reported-by: Colton Conor Tested-by: Colton Conor Signed-off-by: Sander Vanheule --- v2: Add Colton Conor's tags tools/firmware-utils/src/tplink-safeloader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/firmware-utils/src/tplink

[PATCH v2 1/2] firmware-utils: tplink-safeloader: improve soft-version customisation

2021-09-10 Thread Sander Vanheule
-defined types of soft-version overwrites, and provide a few macros for easy value initialisation. Requires all existing values to be updated to match the new structure. Signed-off-by: Sander Vanheule --- v2: Rebase for PKG_RELEASE bump tools/firmware-utils/Makefile| 2 +- tools

Re: [PATCH] realtek: fix RTL8231 gpio expander for high GPIOs

2021-09-20 Thread Sander Vanheule
Hi Paul, Thanks for the patch. One comment below. On Fri, 2021-09-17 at 16:11 +0300, Paul Fertser wrote: > GPIOs > 31 require special handling. This patch fixes both the > initialisation (defaulting to input) and direction get/set operations. > > Runtime-tested on D-Link DGS-1210-10P-R1 which

[PATCH] ath79: add support for TP-Link EAP225 v1

2021-09-25 Thread Sander Vanheule
bootelf $fileaddr Tested by forum user KernelMaker. Signed-off-by: Sander Vanheule --- .../ath79/dts/qca9563_tplink_eap225-v1.dts| 44 +++ .../generic/base-files/etc/board.d/02_network | 1 + .../etc/hotplug.d/firmware/11-ath10k-caldata | 1 + target/linux/ath79/image/generic

Re: [PATCH] realtek: ensure output drivers are enabled in RTL8231

2021-09-30 Thread Sander Vanheule
he boot in case the bootloader left direction and > data registers in an inconsistent state (e.g. pulling SoC's reset to 0) > reconfigure everything as input. > > Thanks to Sander Vanheule for telling about LED_Start. > > Signed-off-by: Paul Fertser > --- > > My previou

Re: [PATCH v2] realtek: ensure output drivers are enabled in RTL8231

2021-09-30 Thread Sander Vanheule
no effect. > > To avoid disrupting the boot in case the bootloader left direction and > data registers in an inconsistent state (e.g. pulling SoC's reset to 0) > reconfigure everything as input. > > Signed-off-by: Paul Fertser Reviewed-by: San

Re: [PATCH v2] realtek: fix RTL8231 gpio expander for high GPIOs

2021-09-20 Thread Sander Vanheule
dify high GPIOs direction bits on init Thanks for the update. Reviewed-by: Sander Vanheule > >  .../realtek/files-5.4/drivers/gpio/gpio-rtl8231.c   | 13 - >  1 file changed, 8 insertions(+), 5 deletions(-) > > diff --git a/target/linux/realtek/files-5.4/drivers/gpio/gpio

Re: [PATCH] realtek: do not hardcode restart handler and enable gpio-restart

2021-10-05 Thread Sander Vanheule
Hi Paul, On Tue, 2021-10-05 at 16:35 +0300, Paul Fertser wrote: > Most boards supported by this target have a dedicated GPIO line > connected to SoC's /RESET to allow full clean reliable reboot. > > Use regular kernel notifier methods for default restart routines to > allow higher-priority

Re: [PATCH v2 2/2] realtek: add support for Panasonic Switch-M8eG PN28080K

2021-12-04 Thread Sander Vanheule
Hi Hiroshi, Thanks for the update. Some inline comments below. On Tue, 2021-11-30 at 19:43 +0900, INAGAKI Hiroshi wrote: > Panasonic Switch-M8eG PN28080K is a 8 + 1 port gigabit switch, based on > RTL8380M. > > Specification: > > - SoC   : Realtek RTL8380M > - RAM   : DDR3 128

Re: [RFC PATCH 0/5] add support mikrotik routerboard hex poe

2022-01-04 Thread Sander Vanheule
Hi, On Sun, 2021-12-26 at 20:41 +0200, Oskari Lemmela wrote: > RFC patchset because of following open questions: > > --- [...] > POE driver is implemented as a kernel module. Every port is separate > hwmon device with same label as the DSA port. [...] > > Should this be implemented in Realtek

[PATCH v2 0/4] realtek: RTL8231 refinements

2021-11-20 Thread Sander Vanheule
] - Verify chip presence when probing, and fail if it cannot be found [4/4] Main changes since v1: - Add chip detection patch These patches were tested on my GS110TPP. Sander Vanheule (4): realtek: fix RTL8231 gpio count realtek: use automatic GPIO numbering for RTL8231 realtek: always require SMI

[PATCH v2 2/4] realtek: use automatic GPIO numbering for RTL8231

2021-11-20 Thread Sander Vanheule
Set the gpio_chip.base to -1 to use automatic GPIO line indexing. Setting base to 0 or a positive number is deprecated and should not be used. Signed-off-by: Sander Vanheule --- target/linux/realtek/files-5.10/drivers/gpio/gpio-rtl8231.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH v2 4/4] realtek: add RTL8231 chip detection

2021-11-20 Thread Sander Vanheule
two lines will be logged: [0.453698] Probing RTL8231 GPIOs [0.457312] rtl8231_init called, MDIO bus ID: 31 Signed-off-by: Sander Vanheule --- .../files-5.10/drivers/gpio/gpio-rtl8231.c| 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/target

[PATCH v2 3/4] realtek: always require SMI bus ID for RTL8231

2021-11-20 Thread Sander Vanheule
; property, as there is no real reason to use 0 as default, and perform a sanity check on the value when probing. This allows the other parts of the driver to be simplified a bit. Signed-off-by: Sander Vanheule --- .../files-5.10/drivers/gpio/gpio-rtl8231.c| 33 +-- 1 file changed, 16

[PATCH v2 1/4] realtek: fix RTL8231 gpio count

2021-11-20 Thread Sander Vanheule
The RTL8231's gpio_chip.ngpio was set to 36, which is the largest valid GPIO index. Fix the allowed number of GPIOs by setting ngpio to 37, the actual line count. Reported-by: INAGAKI Hiroshi Signed-off-by: Sander Vanheule --- target/linux/realtek/files-5.10/drivers/gpio/gpio-rtl8231.c | 2

[PATCH v2] realtek: reset both ethernet NIC and queues

2021-11-18 Thread Sander Vanheule
to unresponsive network after the restart. By resetting both the ethernet NIC and queues, networking always comes up reliably. Suggested-by: Birger Koblitz Signed-off-by: Sander Vanheule --- v1 -> v2: - Reword commit message - Introduce reset_mask variable --- .../files-5.10/drivers/net/ether

Re: [PATCH 3/3] realtek: add support for Panasonic Switch-M8eG PN28080K

2021-11-13 Thread Sander Vanheule
On Fri, 2021-11-12 at 23:46 +0100, Sander Vanheule wrote: > > diff --git > > a/target/linux/realtek/dts-5.10/rtl83xx_panasonic_mxxeg-pn28xx0k.dtsi > > b/target/linux/realtek/dts-5.10/rtl83xx_panasonic_mxxeg-pn28xx0k.dtsi > > new file mode 100644 > > index 00

[PATCH 0/3] realtek: RTL8231 refinements

2021-11-15 Thread Sander Vanheule
The RTL8231 driver is currently not setting the maximum number of GPIOs correctly, so this needs to be fixed. While we're at it, add some other small improvements to the driver. These patches were tested on my GS110TPP. Sander Vanheule (3): realtek: Fix RTL8231 gpio count realtek: Use

[PATCH 1/3] realtek: Fix RTL8231 gpio count

2021-11-15 Thread Sander Vanheule
The RTL8231's gpio_chip.ngpio was set to 36, which is the largest valid GPIO index. Fix the allowed number of GPIOs by setting ngpio to 37, the actual line count. Reported-by: INAGAKI Hiroshi Signed-off-by: Sander Vanheule --- target/linux/realtek/files-5.10/drivers/gpio/gpio-rtl8231.c | 2

[PATCH 3/3] realtek: Always require SMI bus ID for RTL8231

2021-11-15 Thread Sander Vanheule
; property, and perform a sanity check when probing the device. This allows the other parts of the driver to be simplified a bit. Signed-off-by: Sander Vanheule --- .../files-5.10/drivers/gpio/gpio-rtl8231.c| 33 +-- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/ta

[PATCH 2/3] realtek: Use automatic GPIO numbering for RTL8231

2021-11-15 Thread Sander Vanheule
Set the gpio_chip.base to -1 to use automatic GPIO line indexing. Setting base to 0 or a positive number is deprecated and should not be used. Signed-off-by: Sander Vanheule --- target/linux/realtek/files-5.10/drivers/gpio/gpio-rtl8231.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

Re: [PATCH 3/3] realtek: add support for Panasonic Switch-M8eG PN28080K

2021-11-14 Thread Sander Vanheule
Hi Hiroshi, On Sun, 2021-11-14 at 14:32 +0900, INAGAKI Hiroshi wrote: > Hi Sander, > > Thank you for your review. > > On 2021/11/13 7:46, Sander Vanheule wrote: > > Hi Hiroshi, > > > > On Sun, 2021-10-03 at 15:53 +0900, INAGAKI Hiroshi wrote: > > &g

[PATCH v4 3/5] realtek: Backport Realtek Otto WDT driver

2021-11-14 Thread Sander Vanheule
Add patch submitted upstream to linux-watchdog and replace the MIPS architecture symbols. Requires one extra patch for the DIV_ROUND_* macros, which have moved to a different header since 5.10. Signed-off-by: Sander Vanheule -- v3: - Fix watchdog Kconfig modifation patch v2: - Remove kernel

[PATCH v4 4/5] realtek: Add and enable watchdog node

2021-11-14 Thread Sander Vanheule
tware| reboot=software Preferrably, these devices should use an alternative restart method like gpio-restart to provide reliable restarts. Note that watchdog restarts are not yet exposed, since the _machine_restart override is still present. Signed-off-by: Sander Vanheule -- v4: -

[PATCH v4 5/5] realtek: Remove _machine_restart and _machine_halt

2021-11-14 Thread Sander Vanheule
timer"). Let's remove it again. Signed-off-by: Sander Vanheule --- .../files-5.10/arch/mips/rtl838x/setup.c | 85 --- 1 file changed, 85 deletions(-) diff --git a/target/linux/realtek/files-5.10/arch/mips/rtl838x/setup.c b/target/linux/realtek/files-5.10/arch/mips/r

[PATCH v4 1/5] realtek: Consolidate bootargs

2021-11-14 Thread Sander Vanheule
All current devices use identical bootargs, so let's move that to the common devicetree includes. Signed-off-by: Sander Vanheule -- v4: - Drop stdout-path and earlycon again, to limit scope of patch v2: - Add stdout-path node, and earlycon to bootargs --- target/linux/realtek/dts-5.10

[PATCH v4 0/5] realtek: Use WDT for system restart

2021-11-14 Thread Sander Vanheule
, Zyxel GS1900-8, and Zyxel XGS1250-12. Testers with other devices should ensure that their system can still restart after applying the complete series. Main changes in v4: - Use cold restart (full SoC reset) on all devices by default Sander Vanheule (5): realtek: Consolidate bootargs realtek: Add

  1   2   3   4   5   >