[PATCH v3 0/3] ath25: update kernel from 5.4 to 5.10

Sergey Ryazanov ryazanov.s.a at gmail.com
Sun Dec 19 06:31:50 PST 2021


Hello,

I finally managed to update ath25 to the 5.10 kernel. Sorry for that it
took so long time, I was a quite busy this fall. The update itself is
relatively simple: mostly copy'n'refresh plus a few Ethernet fixes.

Run-time tested with:
* Abicom FreedomCPE (AR5312 based)
* D-Link DWL-2100AP (AR2312 based)
* D-Link DIR-300 (AR2317 based) - WiFi was not tested

I bricked my FON2202 in last year update. Now I have bricked my DIR-300.
Looks like I overwrote the "FIS directory" partition with a too fat
image during sysupgrade. I wonder should the kernel check the partition
boundary before attempting to write outside of it?

Anyway, the new code has not been fully tested against the AR2315 and
AR2317 SoCs and the Marvell 88E6060 switch. Are there any brave testers
here who would like to help test the series with the Fonera 2.0g board?
It should run smoothly, but it is better to be shure.

Changes in v3:
* update the description of the mvswitch moving patch to make it clear
  that switching to DSA is possible but not an option for now, thanks to
  Bjørn for spotting misguiding description

Changes in v2:
* instead of recovering mvswitch building with v5.10 as a generic
  driver, make it ath25 specific in v5.4 and then upgrade the
  corresponding patch as usual, thanks Felix for the suggestion

CC: Hauke Mehrtens <hauke at hauke-m.de>
CC: Rui Salvaterra <rsalvaterra at gmail.com>
CC: Russell Senior <russell at personaltelco.net>
CC: Bjørn Mork <bjorn at mork.no>
CC: Stefan Lippers-Hollmann <s.l-h at gmx.de>

Sergey Ryazanov (3):
  Move mvswitch 88E6060 driver to the ath25
  ath25: refresh kernel 5.4 config
  ath25: add kernel 5.10 support

 target/linux/ath25/Makefile                   |    2 +-
 target/linux/ath25/config-5.10                |  127 ++
 target/linux/ath25/config-5.4                 |   56 +-
 .../files/drivers/net/phy/mvswitch.c          |    0
 .../files/drivers/net/phy/mvswitch.h          |    0
 .../ath25/patches-5.10/107-ar5312_gpio.patch  |  212 ++
 .../ath25/patches-5.10/108-ar2315_gpio.patch  |  363 ++++
 .../patches-5.10/110-ar2313_ethernet.patch    | 1735 +++++++++++++++++
 .../ath25/patches-5.10/120-spiflash.patch     |  631 ++++++
 .../ath25/patches-5.10/130-watchdog.patch     |  277 +++
 .../140-redboot_boardconfig.patch             |   60 +
 .../141-redboot_partition_scan.patch          |   44 +
 .../142-redboot_various_erase_size_fix.patch  |   72 +
 .../ath25/patches-5.10/210-reset_button.patch |   71 +
 .../220-enet_micrel_workaround.patch          |  111 ++
 .../ath25/patches-5.10/330-board_leds.patch   |  116 ++
 .../patches-5.10/700-swconfig_mvswitch.patch  |   23 +
 .../patches-5.4/700-swconfig_mvswitch.patch   |   23 +
 target/linux/generic/config-5.10              |    1 -
 target/linux/generic/config-5.4               |    1 -
 .../700-swconfig_switch_drivers.patch         |    9 +-
 21 files changed, 3870 insertions(+), 64 deletions(-)
 create mode 100644 target/linux/ath25/config-5.10
 rename target/linux/{generic => ath25}/files/drivers/net/phy/mvswitch.c (100%)
 rename target/linux/{generic => ath25}/files/drivers/net/phy/mvswitch.h (100%)
 create mode 100644 target/linux/ath25/patches-5.10/107-ar5312_gpio.patch
 create mode 100644 target/linux/ath25/patches-5.10/108-ar2315_gpio.patch
 create mode 100644 target/linux/ath25/patches-5.10/110-ar2313_ethernet.patch
 create mode 100644 target/linux/ath25/patches-5.10/120-spiflash.patch
 create mode 100644 target/linux/ath25/patches-5.10/130-watchdog.patch
 create mode 100644 target/linux/ath25/patches-5.10/140-redboot_boardconfig.patch
 create mode 100644 target/linux/ath25/patches-5.10/141-redboot_partition_scan.patch
 create mode 100644 target/linux/ath25/patches-5.10/142-redboot_various_erase_size_fix.patch
 create mode 100644 target/linux/ath25/patches-5.10/210-reset_button.patch
 create mode 100644 target/linux/ath25/patches-5.10/220-enet_micrel_workaround.patch
 create mode 100644 target/linux/ath25/patches-5.10/330-board_leds.patch
 create mode 100644 target/linux/ath25/patches-5.10/700-swconfig_mvswitch.patch
 create mode 100644 target/linux/ath25/patches-5.4/700-swconfig_mvswitch.patch

-- 
2.32.0




More information about the openwrt-devel mailing list