mbox series

[OpenWrt-Devel,0/4] Update Gemini to kernel v4.19

Message ID 20190119202902.29416-1-linus.walleij@linaro.org
Headers show
Series Update Gemini to kernel v4.19 | expand

Message

Linus Walleij Jan. 19, 2019, 8:28 p.m. UTC
This updates the Gemini platform to use kernel v4.19.

Since many of the in-flight patches are upstream in v4.19
we cut down a bit on the patch burden with this, and we
also invented and patched some new stuff.

As the Gemini platforms use DSA switches as of v4.19 we
don't need the switch kmod or swconfig anymore.

A new reference design named SL93512R is available so
support it.

If the first patch is too big, the patches are also
available here:
https://dflund.se/~triad/krad/gemini/openwrt/

Linus Walleij (4):
  gemini: Add v4.19 kernel patches
  gemini: Switch to kernel v4.19
  gemini: Drop switch kmod and swconfig
  gemini: Add SL93512R Support

 target/linux/gemini/Makefile                  |   2 +-
 target/linux/gemini/config-4.19               | 453 ++++++++++++++++++
 target/linux/gemini/image/Makefile            |  22 +-
 ...pinctrl-gemini-Mask-and-set-properly.patch |  36 ++
 ...inctrl-gemini-Fix-up-TVC-clock-group.patch | 146 ++++++
 ...nctrl-gemini-Drop-noisy-debug-prints.patch |  87 ++++
 .../0004-boot-sq201-from-sda1.patch           |  25 +
 ...hysmap_of-Move-custom-initialization.patch |  52 ++
 ...physmap_of_gemini-Handle-pin-control.patch | 194 ++++++++
 ...he-D-Link-DIR-685-MTD-partition-info.patch |  71 +++
 ...8-ARM-dts-Enable-Gemini-flash-access.patch | 169 +++++++
 ...rtitions-Add-RedBoot-FIS-DT-bindings.patch |  51 ++
 ...ns-Add-second-compatible-for-redboot.patch |  77 +++
 ...11-ARM-dts-Fix-up-SQ201-flash-access.patch |  73 +++
 ...ARM-dts-Blank-D-Link-DIR-685-console.patch |  30 ++
 ...ost-fotg2-add-silicon-clock-handling.patch | 123 +++++
 ...st-add-DT-bindings-for-faraday-fotg2.patch |  69 +++
 ...b-host-fotg2-add-device-tree-probing.patch |  48 ++
 ...t-fotg2-add-Gemini-specific-handling.patch | 138 ++++++
 ...t-fotg2-restart-hcd-after-port-reset.patch |  32 ++
 ...he-FOTG210-USB-host-to-Gemini-boards.patch | 210 ++++++++
 21 files changed, 2106 insertions(+), 2 deletions(-)
 create mode 100644 target/linux/gemini/config-4.19
 create mode 100644 target/linux/gemini/patches-4.19/0001-pinctrl-gemini-Mask-and-set-properly.patch
 create mode 100644 target/linux/gemini/patches-4.19/0002-pinctrl-gemini-Fix-up-TVC-clock-group.patch
 create mode 100644 target/linux/gemini/patches-4.19/0003-pinctrl-gemini-Drop-noisy-debug-prints.patch
 create mode 100644 target/linux/gemini/patches-4.19/0004-boot-sq201-from-sda1.patch
 create mode 100644 target/linux/gemini/patches-4.19/0005-mtd-physmap_of-Move-custom-initialization.patch
 create mode 100644 target/linux/gemini/patches-4.19/0006-mtd-physmap_of_gemini-Handle-pin-control.patch
 create mode 100644 target/linux/gemini/patches-4.19/0007-ARM-dts-Fix-up-the-D-Link-DIR-685-MTD-partition-info.patch
 create mode 100644 target/linux/gemini/patches-4.19/0008-ARM-dts-Enable-Gemini-flash-access.patch
 create mode 100644 target/linux/gemini/patches-4.19/0009-mtd-partitions-Add-RedBoot-FIS-DT-bindings.patch
 create mode 100644 target/linux/gemini/patches-4.19/0010-mtd-partitions-Add-second-compatible-for-redboot.patch
 create mode 100644 target/linux/gemini/patches-4.19/0011-ARM-dts-Fix-up-SQ201-flash-access.patch
 create mode 100644 target/linux/gemini/patches-4.19/0012-ARM-dts-Blank-D-Link-DIR-685-console.patch
 create mode 100644 target/linux/gemini/patches-4.19/0013-usb-host-fotg2-add-silicon-clock-handling.patch
 create mode 100644 target/linux/gemini/patches-4.19/0014-usb-host-add-DT-bindings-for-faraday-fotg2.patch
 create mode 100644 target/linux/gemini/patches-4.19/0015-usb-host-fotg2-add-device-tree-probing.patch
 create mode 100644 target/linux/gemini/patches-4.19/0016-usb-host-fotg2-add-Gemini-specific-handling.patch
 create mode 100644 target/linux/gemini/patches-4.19/0017-usb-host-fotg2-restart-hcd-after-port-reset.patch
 create mode 100644 target/linux/gemini/patches-4.19/0018-ARM-dts-Add-the-FOTG210-USB-host-to-Gemini-boards.patch

Comments

Petr Štetiar Jan. 21, 2019, 4:15 a.m. UTC | #1
Linus Walleij <linus.walleij@linaro.org> [2019-01-19 21:28:58]:

Hi,

> If the first patch is too big, the patches are also available here:
> https://dflund.se/~triad/krad/gemini/openwrt/

is it possible to fetch it somewhere directly in Git? I would like to build
test it.  Thanks.

-- ynezz
Linus Walleij Jan. 21, 2019, 10:17 p.m. UTC | #2
On Mon, Jan 21, 2019 at 9:39 AM Petr Štetiar <ynezz@true.cz> wrote:
> Linus Walleij <linus.walleij@linaro.org> [2019-01-19 21:28:58]:

> > If the first patch is too big, the patches are also available here:
> > https://dflund.se/~triad/krad/gemini/openwrt/
>
> is it possible to fetch it somewhere directly in Git? I would like to build
> test it.  Thanks.

I pushed it to the branch "gemini-v4.19" (with some more patches,
but shouldn't make a difference) here:
https://github.com/linusw/openwrt

Yours,
Linus Walleij
Petr Štetiar Jan. 22, 2019, 6:26 a.m. UTC | #3
Linus Walleij <linus.walleij@linaro.org> [2019-01-21 23:17:50]:

Hi,

> I pushed it to the branch "gemini-v4.19" (with some more patches,
> but shouldn't make a difference) here:
> https://github.com/linusw/openwrt

thanks, so I've just tried following build config:

 CONFIG_TARGET_gemini=y
 CONFIG_TARGET_MULTI_PROFILE=y
 CONFIG_TARGET_ALL_PROFILES=y
 CONFIG_TARGET_DEVICE_gemini_DEVICE_dlink-dir-685=y
 CONFIG_TARGET_DEVICE_gemini_DEVICE_dlink-dns-313=y
 CONFIG_TARGET_DEVICE_gemini_DEVICE_sq201=y
 CONFIG_TARGET_DEVICE_gemini_DEVICE_nas4220b=y
 CONFIG_TARGET_DEVICE_gemini_DEVICE_sl93512r=y
 CONFIG_TARGET_DEVICE_gemini_DEVICE_rut1xx=y
 CONFIG_TARGET_DEVICE_gemini_DEVICE_wbd111=y
 CONFIG_TARGET_DEVICE_gemini_DEVICE_wbd222=y
 CONFIG_ALL_KMODS=y
 CONFIG_ALL_NONSHARED=y

And running:

 make V=s -j$(nproc)

Ends with following:

 make[5]: Entering directory '/openwrt/build_dir/target-arm_fa526_musl_eabi/linux-gemini/linux-4.19.16'
 Makefile:600: include/config/auto.conf: No such file or directory
   YACC    scripts/kconfig/zconf.tab.c
   HOSTCC  scripts/kconfig/conf.o
   LEX     scripts/kconfig/zconf.lex.c
   HOSTCC  scripts/kconfig/zconf.tab.o
   HOSTLD  scripts/kconfig/conf
 scripts/kconfig/conf  --syncconfig Kconfig
 net/sched/Kconfig:44: warning: menuconfig statement without prompt
 .config:3930:warning: symbol value 'm' invalid for NF_NAT_REDIRECT
 *
 * Restart config...
 *
 *
 * PCI controller drivers
 *
 Faraday Technology FTPCI100 PCI controller (PCI_FTPCI100) [Y/n/?] y
 Generic PCI host controller (PCI_HOST_GENERIC) [N/y/?] n
 Xilinx AXI PCIe host bridge support (PCIE_XILINX) [N/y/?] n
 V3 Semiconductor PCI controller (PCI_V3_SEMI) [N/y/?] (NEW)

So I'm guessing, that you're probably missing some kernel config symbols
(either in generic or in gemini config) when CONFIG_ALL_KMODS=y is enabled.

-- ynezz
Linus Walleij Jan. 22, 2019, 12:56 p.m. UTC | #4
On Tue, Jan 22, 2019 at 12:15 PM Petr Štetiar <ynezz@true.cz> wrote:

> Ends with following:
>
>  make[5]: Entering directory '/openwrt/build_dir/target-arm_fa526_musl_eabi/linux-gemini/linux-4.19.16'
>  Makefile:600: include/config/auto.conf: No such file or directory
>    YACC    scripts/kconfig/zconf.tab.c
>    HOSTCC  scripts/kconfig/conf.o
>    LEX     scripts/kconfig/zconf.lex.c
>    HOSTCC  scripts/kconfig/zconf.tab.o
>    HOSTLD  scripts/kconfig/conf
>  scripts/kconfig/conf  --syncconfig Kconfig
>  net/sched/Kconfig:44: warning: menuconfig statement without prompt
>  .config:3930:warning: symbol value 'm' invalid for NF_NAT_REDIRECT
>  *
>  * Restart config...
(....)
> So I'm guessing, that you're probably missing some kernel config symbols
> (either in generic or in gemini config) when CONFIG_ALL_KMODS=y is enabled.

Yeah interesting, hm there is that make target for OpenWrt that cleans
up the defconfig now that I remember it, I'll try running that.

Yours,
Linus Walleij
Hauke Mehrtens Jan. 22, 2019, 10:05 p.m. UTC | #5
On 1/22/19 7:26 AM, Petr Štetiar wrote:
> Linus Walleij <linus.walleij@linaro.org> [2019-01-21 23:17:50]:
> 
> Hi,
> 
>> I pushed it to the branch "gemini-v4.19" (with some more patches,
>> but shouldn't make a difference) here:
>> https://github.com/linusw/openwrt
> 
> thanks, so I've just tried following build config:
> 
>  CONFIG_TARGET_gemini=y
>  CONFIG_TARGET_MULTI_PROFILE=y
>  CONFIG_TARGET_ALL_PROFILES=y
>  CONFIG_TARGET_DEVICE_gemini_DEVICE_dlink-dir-685=y
>  CONFIG_TARGET_DEVICE_gemini_DEVICE_dlink-dns-313=y
>  CONFIG_TARGET_DEVICE_gemini_DEVICE_sq201=y
>  CONFIG_TARGET_DEVICE_gemini_DEVICE_nas4220b=y
>  CONFIG_TARGET_DEVICE_gemini_DEVICE_sl93512r=y
>  CONFIG_TARGET_DEVICE_gemini_DEVICE_rut1xx=y
>  CONFIG_TARGET_DEVICE_gemini_DEVICE_wbd111=y
>  CONFIG_TARGET_DEVICE_gemini_DEVICE_wbd222=y
>  CONFIG_ALL_KMODS=y
>  CONFIG_ALL_NONSHARED=y
> 
> And running:
> 
>  make V=s -j$(nproc)
> 
> Ends with following:
> 
>  make[5]: Entering directory '/openwrt/build_dir/target-arm_fa526_musl_eabi/linux-gemini/linux-4.19.16'
>  Makefile:600: include/config/auto.conf: No such file or directory
>    YACC    scripts/kconfig/zconf.tab.c
>    HOSTCC  scripts/kconfig/conf.o
>    LEX     scripts/kconfig/zconf.lex.c
>    HOSTCC  scripts/kconfig/zconf.tab.o
>    HOSTLD  scripts/kconfig/conf
>  scripts/kconfig/conf  --syncconfig Kconfig
>  net/sched/Kconfig:44: warning: menuconfig statement without prompt
>  .config:3930:warning: symbol value 'm' invalid for NF_NAT_REDIRECT
>  *
>  * Restart config...
>  *
>  *
>  * PCI controller drivers
>  *
>  Faraday Technology FTPCI100 PCI controller (PCI_FTPCI100) [Y/n/?] y
>  Generic PCI host controller (PCI_HOST_GENERIC) [N/y/?] n
>  Xilinx AXI PCIe host bridge support (PCIE_XILINX) [N/y/?] n
>  V3 Semiconductor PCI controller (PCI_V3_SEMI) [N/y/?] (NEW)
> 
> So I'm guessing, that you're probably missing some kernel config symbols
> (either in generic or in gemini config) when CONFIG_ALL_KMODS=y is enabled.

This should be added to target/linux/generic/config-4.19

Hauke