[PATCH] ipq40xx: add support for GL.iNet GL-B2200

2021-11-16 Thread Enrico Mioso
From: TruongSinh Tran-Nguyen This patch adds supports for the GL-B2200 router. Specifications: - SOC: Qualcomm IPQ4019 ARM Quad-Core - RAM: 512 MiB - Flash: 16 MiB NOR - SPI0 - EMMC: 8GB EMMC - ETH: Qualcomm QCA8075 - WLAN1: Qualcomm Atheros QCA4019 2.4GHz 802.11b/g/n 2x2 - WLAN2:

Re: [PATCH v2 1/2] ath79: add support for reset key on MikroTik RB912UAG-2HPnD

2021-11-16 Thread Sergey Ryazanov
On Tue, Nov 16, 2021 at 7:07 PM Denis Kalashnikov wrote: > On MikroTik RB91x board series a reset key shares SoC gpio > line #15 with NAND ALE and NAND IO7. So we need a custom > gpio driver to manage this non-trivial connection schema. > Also rb91x-nand needs to have ability to disable a polling

Re: [PATCH v2 2/2] generic: platform/mikrotik: use MTD notifier

2021-11-16 Thread Sergey Ryazanov
On Tue, Nov 16, 2021 at 7:07 PM Denis Kalashnikov wrote: > If the SPI probe is sufficiently delayed, the routerboot driver may fail > to init as the routerboot partitions are not yet available. > > Register an MTD user notifier instead of doing straight init so that the > init subroutines are only

Re: [PATCH 2/2] ath79: mikrotik: Change the moment of routerboot partition parser init

2021-11-16 Thread Denis K
Thank you for your help, Thibaut. I think we've found the right way of initializing routerboot. I've sent a v2 of the patch. Denis вт, 16 нояб. 2021 г. в 13:20, Thibaut : > > Hi, > > > Le 16 nov. 2021 à 10:46, Denis K a écrit : > > > > I got it! _exit macro of rb_hardconfig_init seems to cause t

[PATCH v2 2/2] generic: platform/mikrotik: use MTD notifier

2021-11-16 Thread Denis Kalashnikov
If the SPI probe is sufficiently delayed, the routerboot driver may fail to init as the routerboot partitions are not yet available. Register an MTD user notifier instead of doing straight init so that the init subroutines are only executed when the target MTD partitions are present. Because the

[PATCH v2 1/2] ath79: add support for reset key on MikroTik RB912UAG-2HPnD

2021-11-16 Thread Denis Kalashnikov
On MikroTik RB91x board series a reset key shares SoC gpio line #15 with NAND ALE and NAND IO7. So we need a custom gpio driver to manage this non-trivial connection schema. Also rb91x-nand needs to have ability to disable a polling of the key while it works with NAND, and we need to add "cansleep"

[PATCH v2 0/2] ath79: add a support for reset key on MikroTik RB912

2021-11-16 Thread Denis Kalashnikov
Add support of a reset key on MikroTik RB91x board series to get a rather usefull ability to reset a device into factory config by pressing the key. Since a reset key on RB91x shares a gpio line with NAND (IO7 and ALE), we see 2 ways to support it: * Add a board specific module that manages this s

Re: [PATCH] ramips: add support for Zbtlink ZBT-WG1602

2021-11-16 Thread Enrico Mioso
On Tue, 16 Nov 2021, Sergey Ryazanov wrote: Date: Tue, 16 Nov 2021 14:26:41 From: Sergey Ryazanov To: Enrico Mioso Cc: OpenWrt Development List Subject: Re: [PATCH] ramips: add support for Zbtlink ZBT-WG1602 On Tue, Nov 16, 2021 at 3:40 PM Enrico Mioso wrote: Does the device use ZLoader

Re: [PATCH] ramips: add support for Zbtlink ZBT-WG1602

2021-11-16 Thread Sergey Ryazanov
On Tue, Nov 16, 2021 at 3:40 PM Enrico Mioso wrote: > Does the device use ZLoader? If you mean Zyxel bootloader, then no. The board utilizes U-boot with some PandoraBox patches according to the logo printed to the serial console. > Is a recovery mode available? (maybe document it in the commit)

Re: [PATCH] ramips: add support for Zbtlink ZBT-WG1602

2021-11-16 Thread Enrico Mioso
Hello!! Thanks for your work! Does the device use ZLoader? Is a recovery mode available? (maybe document it in the commit) Does it require LZMA loader for 5.10? thanks a lot again, Enrico On Tue, 16 Nov 2021, Sergey Ryazanov wrote: Date: Tue, 16 Nov 2021 11:10:25 From: Sergey Ryazanov To:

Re: mac address issue of tp-link wdr3600 and archer c7-v2

2021-11-16 Thread Paul D
C7v2 here. 21.02 eth0: 73 eth1: 72 (br-lan) wlan0: 71 (11n+ac, 5GHz) wlan1: 72 (11bgn, 2.4GHz) Works fine as is. On 2021-11-15 21:04, e9hack wrote: Hi, I'm using two tp-link routers. Both are using the same mac address for one eth and one wlan interface: archer c7-v2: uboot    60:xx:xx:

Re: [PATCH] ramips: add support for Zbtlink ZBT-WG1602

2021-11-16 Thread Sergey Ryazanov
Hello Roger, On Tue, Nov 16, 2021 at 1:29 PM Roger Pueyo Centelles | Guifi.net wrote: > I spotted a very small typo on the commit message: > > * Eth: 10/100/100 Mbps Ethernet x5 ports (4xLAN + WAN) > > is probably > > * Eth: 10/100/1000 Mbps Ethernet x5 ports (4xLAN + WAN) Sure, this should be 1

[PATCH] ramips: add support for Zbtlink ZBT-WG1602

2021-11-16 Thread Sergey Ryazanov
Zbtlink ZBT-WG1602 is a Wi-Fi router intendent to use with WWAN (UMTS/LTE/3G/4G) modems. The router board offsers a couple of miniPCIe slots with USB and SIM only and another one pure miniPCIe slot as well as five Gigabit Ethernet ports (4xLAN + WAN). Specification: * SoC: MT7621A * RAM: 256/512

Re: [PATCH 2/2] ath79: mikrotik: Change the moment of routerboot partition parser init

2021-11-16 Thread Denis K
I got it! _exit macro of rb_hardconfig_init seems to cause this kernel panic. Here is a patch. Regards, Denis. From e042f7d0a72ff9b69fd34ab2f3bac2b698da776f Mon Sep 17 00:00:00 2001 From: Denis Kalashnikov Date: Mon, 15 Nov 2021 11:27:14 +0300 Subject: [PATCH] Fixes to generic: platform/mikrotik: