[OpenWrt-Devel] Latest OpenWRT on Gemini v4.14

Linus Walleij linus.walleij at linaro.org
Mon Feb 26 15:28:04 EST 2018


Hi,

I have a forward-port hack-ish thing for Gemini,
this 500K patch on top of openwrt HEAD:

https://dflund.se/~triad/krad/gemini/0001-gemini-Forward-port-to-v4.14.patch

It's ... big ... and just kills off the old v4.4 kernel support.

And I can't test it on the Raidsonic aka IcyBox
aka NAS4220B which is an important target.

But it's something!

It generates the image for it, maybe you can try it out
and see if it works for you.

I think it should be straight forward to apply.

It uses the "new style" of build rules, at least a bit, until
I got to the custom sysupgrade format etc.

The D-Link images are not really complete but the rootfs
works.

NB: IF YOU'RE GONNA USE THIS, USE GCC 7.3.0 TO
BUILD. The 5.5 toolchain doesn't work.

Is there a way to require the 7.3.x toolchain?

Here is the start of the patch:

From ac5b5377c71a474e7bd7a323980cb70cbed33e26 Mon Sep 17 00:00:00 2001
From: Linus Walleij <linus.walleij at linaro.org>
Date: Wed, 21 Feb 2018 20:52:35 +0100
Subject: [PATCH] gemini: Forward-port to v4.14

This forward-ports the Gemini OpenWRT by taking all the device
tree patches from v4.16-rc2 and backporting on top of v4.14.

The TVE200 graphics are excluded but these were never used by
OpenWRT before. We will fix that when we get there.

On top of this are some WIP patches for USB support.

The Raidsonic image generation was hacked up without any chance
of testing on an actual device.

Signed-off-by: Linus Walleij <linus.walleij at linaro.org>
---
 target/linux/gemini/Makefile                       |   15 +-
 target/linux/gemini/config-4.14                    | 3391 ++++++++++++++++++
 target/linux/gemini/config-4.4                     |  165 -
 .../files/arch/arm/mach-gemini/include/mach/gmac.h |   21 -
 .../linux/gemini/files/arch/arm/mach-gemini/pci.c  |  318 --
 .../linux/gemini/files/drivers/ata/pata_gemini.c   |  234 --
 .../files/drivers/net/ethernet/gemini/Kconfig      |   31 -
 .../files/drivers/net/ethernet/gemini/Makefile     |    5 -
 .../files/drivers/net/ethernet/gemini/sl351x.c     | 2340 -------------
 .../files/drivers/net/ethernet/gemini/sl351x_hw.h  | 1436 --------
 .../gemini/files/drivers/usb/host/ehci-fotg2.c     |  258 --
 .../gemini/files/drivers/watchdog/gemini_wdt.c     |  378 --
 target/linux/gemini/image/Makefile                 |  138 +-
 target/linux/gemini/image/slask.mk                 |   56 +
 .../0001-cache-patch-from-OpenWRT.patch}           |   14 +
 ...0002-pinctrl-gemini-Add-missing-functions.patch |   38 +
 ...ARM-dts-Add-TVE200-to-the-Gemini-SoC-DTSI.patch |   56 +
 ...rl-Add-skew-delay-pin-config-and-bindings.patch |   82 +
 ...0005-pinctrl-gemini-Use-generic-DT-parser.patch |  119 +
 ...-gemini-Implement-clock-skew-delay-config.patch |  287 ++
 .../0007-pinctrl-gemini-Fix-GMAC-groups.patch      |  191 +
 ...nctrl-gemini-Fix-missing-pad-descriptions.patch |   32 +
 ...inctrl-gemini-Add-two-missing-GPIO-groups.patch |   30 +
 ...0-pinctrl-gemini-Fix-usage-of-3512-groups.patch |   30 +
 ...trl-gemini-Support-drive-strength-setting.patch |  205 ++
 ...d-ethernet-PHYs-to-the-a-bunch-of-Geminis.patch |  124 +
 ...s-Add-basic-devicetree-for-D-Link-DNS-313.patch |  280 ++
 ...RM-dts-Flags-D-Link-DIR-685-I2C-bus-gpios.patch |   32 +
 ...0015-ARM-dts-Add-PCI-to-WBD111-and-WBD222.patch |   81 +
 ...-Add-TVE-TVC-and-ILI9322-panel-to-DIR-685.patch |  118 +
 ...tchdog-gemini-ftwdt010-rename-DT-bindings.patch |   80 +
 ...gemini-ftwdt010-rename-driver-and-symbols.patch |  328 ++
 ...watchdog-ftwdt010-Make-interrupt-optional.patch |   98 +
 .../0020-soc-Add-SoC-driver-for-Gemini.patch       |  124 +
 ...t-Add-DT-bindings-for-the-Gemini-ethernet.patch |  125 +
 ...t-Add-a-driver-for-Gemini-gigabit-etherne.patch | 3682 ++++++++++++++++++++
 ...23-ARM-dts-Add-ethernet-to-the-Gemini-SoC.patch |   79 +
 .../0024-net-gemini-Depend-on-HAS_IOMEM.patch      |   35 +
 ...-dts-Set-D-Link-DNS-313-SATA-to-muxmode-0.patch |   41 +
 ...r-gemini-poweroff-Avoid-spurious-poweroff.patch |   85 +
 ...sb-host-add-DT-bindings-for-faraday-fotg2.patch |   71 +
 ...28-usb-host-fotg2-add-device-tree-probing.patch |   66 +
 ...usb-host-fotg2-add-silicon-clock-handling.patch |  106 +
 ...b-host-fotg2-add-Gemini-specific-handling.patch |  138 +
 ...RM-dts-Add-the-FOTG210-USB-host-to-Gemini.patch |  193 +
 .../linux/gemini/patches-4.4/050-gpio-to-irq.patch |   21 -
 .../110-watchdog-add-gemini_wdt-driver.patch       |   29 -
 .../111-arm-gemini-add-watchdog-device.patch       |   33 -
 .../112-arm-gemini-register-watchdog-devices.patch |   40 -
 .../120-net-add-gemini-gmac-driver.patch           |   20 -
 .../121-arm-gemini-add-gmac-device.patch           |   85 -
 .../122-arm-gemini-register-ethernet.patch         |  227 --
 .../130-usb-ehci-add-fot2g-driver.patch            |  133 -
 .../131-arm-gemini-add-usb-device.patch            |   77 -
 .../patches-4.4/132-arm-gemini-register-usb.patch  |   65 -
 .../140-arm-gemini-add-pci-support.patch           |   66 -
 .../linux/gemini/patches-4.4/150-gemini-pata.patch |  192 -
 target/linux/gemini/raidsonic/config-default       |    5 -
 target/linux/gemini/raidsonic/target.mk            |   17 -
 target/linux/gemini/wiligear/target.mk             |   10 -
 60 files changed, 10503 insertions(+), 6273 deletions(-)
 create mode 100644 target/linux/gemini/config-4.14
 delete mode 100644 target/linux/gemini/config-4.4
 delete mode 100644
target/linux/gemini/files/arch/arm/mach-gemini/include/mach/gmac.h
 delete mode 100644 target/linux/gemini/files/arch/arm/mach-gemini/pci.c
 delete mode 100644 target/linux/gemini/files/drivers/ata/pata_gemini.c
 delete mode 100644
target/linux/gemini/files/drivers/net/ethernet/gemini/Kconfig
 delete mode 100644
target/linux/gemini/files/drivers/net/ethernet/gemini/Makefile
 delete mode 100644
target/linux/gemini/files/drivers/net/ethernet/gemini/sl351x.c
 delete mode 100644
target/linux/gemini/files/drivers/net/ethernet/gemini/sl351x_hw.h
 delete mode 100644 target/linux/gemini/files/drivers/usb/host/ehci-fotg2.c
 delete mode 100644 target/linux/gemini/files/drivers/watchdog/gemini_wdt.c
 create mode 100644 target/linux/gemini/image/slask.mk
 rename target/linux/gemini/{patches-4.4/060-cache-fa.patch =>
patches-4.14/0001-cache-patch-from-OpenWRT.patch} (73%)
 create mode 100644
target/linux/gemini/patches-4.14/0002-pinctrl-gemini-Add-missing-functions.patch
 create mode 100644
target/linux/gemini/patches-4.14/0003-ARM-dts-Add-TVE200-to-the-Gemini-SoC-DTSI.patch
 create mode 100644
target/linux/gemini/patches-4.14/0004-pinctrl-Add-skew-delay-pin-config-and-bindings.patch
 create mode 100644
target/linux/gemini/patches-4.14/0005-pinctrl-gemini-Use-generic-DT-parser.patch
 create mode 100644
target/linux/gemini/patches-4.14/0006-pinctrl-gemini-Implement-clock-skew-delay-config.patch
 create mode 100644
target/linux/gemini/patches-4.14/0007-pinctrl-gemini-Fix-GMAC-groups.patch
 create mode 100644
target/linux/gemini/patches-4.14/0008-pinctrl-gemini-Fix-missing-pad-descriptions.patch
 create mode 100644
target/linux/gemini/patches-4.14/0009-pinctrl-gemini-Add-two-missing-GPIO-groups.patch
 create mode 100644
target/linux/gemini/patches-4.14/0010-pinctrl-gemini-Fix-usage-of-3512-groups.patch
 create mode 100644
target/linux/gemini/patches-4.14/0011-pinctrl-gemini-Support-drive-strength-setting.patch
 create mode 100644
target/linux/gemini/patches-4.14/0012-ARM-dts-Add-ethernet-PHYs-to-the-a-bunch-of-Geminis.patch
 create mode 100644
target/linux/gemini/patches-4.14/0013-ARM-dts-Add-basic-devicetree-for-D-Link-DNS-313.patch
 create mode 100644
target/linux/gemini/patches-4.14/0014-ARM-dts-Flags-D-Link-DIR-685-I2C-bus-gpios.patch
 create mode 100644
target/linux/gemini/patches-4.14/0015-ARM-dts-Add-PCI-to-WBD111-and-WBD222.patch
 create mode 100644
target/linux/gemini/patches-4.14/0016-ARM-dts-Add-TVE-TVC-and-ILI9322-panel-to-DIR-685.patch
 create mode 100644
target/linux/gemini/patches-4.14/0017-watchdog-gemini-ftwdt010-rename-DT-bindings.patch
 create mode 100644
target/linux/gemini/patches-4.14/0018-watchdog-gemini-ftwdt010-rename-driver-and-symbols.patch
 create mode 100644
target/linux/gemini/patches-4.14/0019-watchdog-ftwdt010-Make-interrupt-optional.patch
 create mode 100644
target/linux/gemini/patches-4.14/0020-soc-Add-SoC-driver-for-Gemini.patch
 create mode 100644
target/linux/gemini/patches-4.14/0021-net-ethernet-Add-DT-bindings-for-the-Gemini-ethernet.patch
 create mode 100644
target/linux/gemini/patches-4.14/0022-net-ethernet-Add-a-driver-for-Gemini-gigabit-etherne.patch
 create mode 100644
target/linux/gemini/patches-4.14/0023-ARM-dts-Add-ethernet-to-the-Gemini-SoC.patch
 create mode 100644
target/linux/gemini/patches-4.14/0024-net-gemini-Depend-on-HAS_IOMEM.patch
 create mode 100644
target/linux/gemini/patches-4.14/0025-ARM-dts-Set-D-Link-DNS-313-SATA-to-muxmode-0.patch
 create mode 100644
target/linux/gemini/patches-4.14/0026-power-gemini-poweroff-Avoid-spurious-poweroff.patch
 create mode 100644
target/linux/gemini/patches-4.14/0027-usb-host-add-DT-bindings-for-faraday-fotg2.patch
 create mode 100644
target/linux/gemini/patches-4.14/0028-usb-host-fotg2-add-device-tree-probing.patch
 create mode 100644
target/linux/gemini/patches-4.14/0029-usb-host-fotg2-add-silicon-clock-handling.patch
 create mode 100644
target/linux/gemini/patches-4.14/0030-usb-host-fotg2-add-Gemini-specific-handling.patch
 create mode 100644
target/linux/gemini/patches-4.14/0031-ARM-dts-Add-the-FOTG210-USB-host-to-Gemini.patch
 delete mode 100644 target/linux/gemini/patches-4.4/050-gpio-to-irq.patch
 delete mode 100644
target/linux/gemini/patches-4.4/110-watchdog-add-gemini_wdt-driver.patch
 delete mode 100644
target/linux/gemini/patches-4.4/111-arm-gemini-add-watchdog-device.patch
 delete mode 100644
target/linux/gemini/patches-4.4/112-arm-gemini-register-watchdog-devices.patch
 delete mode 100644
target/linux/gemini/patches-4.4/120-net-add-gemini-gmac-driver.patch
 delete mode 100644
target/linux/gemini/patches-4.4/121-arm-gemini-add-gmac-device.patch
 delete mode 100644
target/linux/gemini/patches-4.4/122-arm-gemini-register-ethernet.patch
 delete mode 100644
target/linux/gemini/patches-4.4/130-usb-ehci-add-fot2g-driver.patch
 delete mode 100644
target/linux/gemini/patches-4.4/131-arm-gemini-add-usb-device.patch
 delete mode 100644
target/linux/gemini/patches-4.4/132-arm-gemini-register-usb.patch
 delete mode 100644
target/linux/gemini/patches-4.4/140-arm-gemini-add-pci-support.patch
 delete mode 100644 target/linux/gemini/patches-4.4/150-gemini-pata.patch
 delete mode 100644 target/linux/gemini/raidsonic/config-default
 delete mode 100644 target/linux/gemini/raidsonic/target.mk
 delete mode 100644 target/linux/gemini/wiligear/target.mk
(...)

Yours,
Linus Walleij
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list