[LEDE-DEV] [PATCH 00/13] sunxi: upgrade to kernel 4.9 and add A64 support

Hauke Mehrtens hauke at hauke-m.de
Thu Aug 3 14:37:46 PDT 2017


This upgrades the target to kernel 4.9 and also adds support for the 
Allwinner A64 SoC. This was only tested on the pine64+ and I do not own 
any older Allwinner SoC.

Could someone please test this on an older 32 bit Allwinner SoC and 
report back some results.

Hauke Mehrtens (13):
  kernel: add some config options
  sunix: add support for kernel 4.9
  include: u-boot.mk: remove LEDE HOSTCPPFLAGS from u-boot HOSTCPPFLAGS
  uboot-sunxi: update to version 2017.07
  uboot-sunxi: do not depend on dtc being install on host
  uboot-sunxi: revert the usage of binman
  sunxi: fix build of rtc package when module not available
  sunxi: split into cortex A8 and A7 subtarget
  arm-trusted-firmware-sunxi: add new package
  uboot-sunxi: build A64 SoC and pine64 U-Boot
  sunxi: Backport patches needed for A64
  sunxi: Backport patches from kernel 4.11 for A64
  sunxi: Add A64 support with cortex53 subtarget

 include/u-boot.mk                                  |    2 +-
 package/boot/arm-trusted-firmware-sunxi/Makefile   |   51 +
 package/boot/uboot-sunxi/Makefile                  |   39 +-
 .../patches/002-add-olimex-a13-som.patch           |    3 +-
 .../patches/003-add-theobroma-a31-pangolin.patch   |   22 +-
 .../patches/010-dt-sync-files-with-kernel.patch    | 1403 ----
 .../011-dt-sync-dts-files-with-kernel.patch        | 7211 --------------------
 .../patches/012-sun6i-fix-clock_twi_onoff.patch    |   38 -
 .../patches/013-enable-realtek-phy.patch           |   24 -
 .../uboot-sunxi/patches/014-fix-gmac-init.patch    |  127 -
 .../patches/015-fix-2nd-usb-ctrler-on-sun47i.patch |   78 -
 .../patches/016-spl-print-mmc-slot.patch           |   31 -
 .../017-usb-add-support-for-usb3-vbus-pin.patch    |   39 -
 .../018-usb-specify-vbus-pins-on-orangepis.patch   |   31 -
 .../019-sid-add-efuse-support-for-h3-a83t.patch    |   33 -
 .../020-boot-display-board-model-on-startup.patch  |   23 -
 .../091-sun6i-sync-PLL1-multdiv-with-Boot1.patch   |    6 +-
 .../patches/093-sun6i-fix-PLL-LDO-voltselect.patch |   15 +-
 .../patches/100-sun6i-alternate-on-UART2.patch     |    4 +-
 .../101-sun6i-support-console-on-UART2.patch       |    8 +-
 .../102-sunxi-make_CONS_INDEX-configurable.patch   |    6 +-
 ...check-environment-for-dtc-binary-location.patch |   35 +
 ...Makefile-Build-python-libfdt-library-if-n.patch |   96 +
 ...pts-Makefile.lib-Always-have-.-u-boot.dts.patch |   31 +
 ...2-Revert-Avoid-non-portable-sed-construct.patch |   26 +
 ...-Revert-sunxi-Use-binman-for-sunxi-boards.patch |   68 +
 package/boot/uboot-sunxi/uEnv-a64.txt              |    5 +
 target/linux/generic/config-4.9                    |   10 +
 target/linux/sunxi/Makefile                        |    5 +-
 target/linux/sunxi/config-4.9                      |  571 ++
 target/linux/sunxi/cortexa53/config-default        |  100 +
 target/linux/sunxi/cortexa53/target.mk             |   13 +
 target/linux/sunxi/cortexa7/target.mk              |   12 +
 target/linux/sunxi/cortexa8/target.mk              |   12 +
 target/linux/sunxi/image/Makefile                  |  152 +-
 target/linux/sunxi/image/cortex-a53.mk             |   20 +
 target/linux/sunxi/image/cortex-a7.mk              |  110 +
 target/linux/sunxi/image/cortex-a8.mk              |   59 +
 target/linux/sunxi/modules.mk                      |    4 +-
 ...rm64-sunxi-always-enable-reset-controller.patch |   39 +
 ...k-sunxi-ng-Rename-the-internal-structures.patch |  239 +
 ...g-Remove-the-use-of-rational-computations.patch |  239 +
 ...g-Finish-to-convert-to-structures-for-arg.patch |  182 +
 ...g-Add-minimums-for-all-the-relevant-struc.patch |  256 +
 ...unxi-ng-Implement-minimum-for-multipliers.patch |  132 +
 .../0007-clk-sunxi-ng-Add-A64-clocks.patch         | 1295 ++++
 ...010-arm64-dts-add-Allwinner-A64-SoC-.dtsi.patch |  311 +
 .../0011-arm64-dts-add-Pine64-support.patch        |  176 +
 ...ix-build-errors-from-missing-dependencies.patch |  134 +
 ...llwinner-add-USB1-related-nodes-of-Allwin.patch |   84 +
 ...llwinner-sort-the-nodes-in-sun50i-a64-pin.patch |   40 +
 ...llwinner-enable-EHCI1-OHCI1-and-USB-PHY-n.patch |   47 +
 ...4-dts-add-MUSB-node-to-Allwinner-A64-dtsi.patch |   42 +
 ...nable-the-MUSB-controller-of-Pine64-in-ho.patch |   32 +
 ...llwinner-Remove-no-longer-used-pinctrl-su.patch |   31 +
 .../0019-arm64-allwinner-a64-Add-MMC-nodes.patch   |   69 +
 ...arm64-allwinner-a64-Add-MMC-pinctrl-nodes.patch |   50 +
 ...22-arm64-allwinner-pine64-add-MMC-support.patch |   62 +
 ...3-arm64-allwinner-a64-add-UART1-pin-nodes.patch |   35 +
 .../0024-arm64-allwinner-a64-add-r_ccu-node.patch  |   52 +
 ...rm64-allwinner-a64-add-R_PIO-pinctrl-node.patch |   35 +
 ...4-allwinner-a64-add-pmu0-regs-for-USB-PHY.patch |   29 +
 ...nner-a64-Add-PLL_PERIPH0-clock-to-the-R_C.patch |   32 +
 ...sunxi-Rework-the-pin-config-building-code.patch |  251 +
 ...xi-Use-macros-from-bindings-header-file-f.patch |   38 +
 .../0032-pinctrl-sunxi-Handle-bias-disable.patch   |   42 +
 ...033-pinctrl-sunxi-Support-generic-binding.patch |  106 +
 ...4-pinctrl-sunxi-Deal-with-configless-pins.patch |  128 +
 ...xi-make-bool-drivers-explicitly-non-modul.patch |  437 ++
 ...xi-Free-configs-in-pinctrl_map-only-if-it.patch |   51 +
 ...xi-Fix-PIN_CONFIG_BIAS_PULL_-DOWN-UP-argu.patch |   40 +
 ...xi-Add-support-for-fetching-pinconf-setti.patch |  158 +
 ...xi-Make-sunxi_pconf_group_set-use-sunxi_p.patch |  122 +
 ...unxi-Add-support-for-interrupt-debouncing.patch |  171 +
 ...xi-fix-theoretical-uninitialized-variable.patch |   40 +
 ...-pinctrl-sunxi-Testing-the-wrong-variable.patch |   35 +
 ...-sunxi-Don-t-enforce-bias-disable-for-now.patch |   42 +
 .../patches-4.9/115-musb-ignore-vbus-errors.patch  |   26 +
 .../patches-4.9/131-reset-add-h3-resets.patch      |   92 +
 79 files changed, 6712 insertions(+), 9233 deletions(-)
 create mode 100644 package/boot/arm-trusted-firmware-sunxi/Makefile
 delete mode 100644 package/boot/uboot-sunxi/patches/010-dt-sync-files-with-kernel.patch
 delete mode 100644 package/boot/uboot-sunxi/patches/011-dt-sync-dts-files-with-kernel.patch
 delete mode 100644 package/boot/uboot-sunxi/patches/012-sun6i-fix-clock_twi_onoff.patch
 delete mode 100644 package/boot/uboot-sunxi/patches/013-enable-realtek-phy.patch
 delete mode 100644 package/boot/uboot-sunxi/patches/014-fix-gmac-init.patch
 delete mode 100644 package/boot/uboot-sunxi/patches/015-fix-2nd-usb-ctrler-on-sun47i.patch
 delete mode 100644 package/boot/uboot-sunxi/patches/016-spl-print-mmc-slot.patch
 delete mode 100644 package/boot/uboot-sunxi/patches/017-usb-add-support-for-usb3-vbus-pin.patch
 delete mode 100644 package/boot/uboot-sunxi/patches/018-usb-specify-vbus-pins-on-orangepis.patch
 delete mode 100644 package/boot/uboot-sunxi/patches/019-sid-add-efuse-support-for-h3-a83t.patch
 delete mode 100644 package/boot/uboot-sunxi/patches/020-boot-display-board-model-on-startup.patch
 create mode 100644 package/boot/uboot-sunxi/patches/200-mkimage-check-environment-for-dtc-binary-location.patch
 create mode 100644 package/boot/uboot-sunxi/patches/210-Revert-fdt-Makefile-Build-python-libfdt-library-if-n.patch
 create mode 100644 package/boot/uboot-sunxi/patches/211-Revert-scripts-Makefile.lib-Always-have-.-u-boot.dts.patch
 create mode 100644 package/boot/uboot-sunxi/patches/212-Revert-Avoid-non-portable-sed-construct.patch
 create mode 100644 package/boot/uboot-sunxi/patches/213-Revert-sunxi-Use-binman-for-sunxi-boards.patch
 create mode 100644 package/boot/uboot-sunxi/uEnv-a64.txt
 create mode 100644 target/linux/sunxi/config-4.9
 create mode 100644 target/linux/sunxi/cortexa53/config-default
 create mode 100644 target/linux/sunxi/cortexa53/target.mk
 create mode 100644 target/linux/sunxi/cortexa7/target.mk
 create mode 100644 target/linux/sunxi/cortexa8/target.mk
 create mode 100644 target/linux/sunxi/image/cortex-a53.mk
 create mode 100644 target/linux/sunxi/image/cortex-a7.mk
 create mode 100644 target/linux/sunxi/image/cortex-a8.mk
 create mode 100644 target/linux/sunxi/patches-4.9/0001-arm64-sunxi-always-enable-reset-controller.patch
 create mode 100644 target/linux/sunxi/patches-4.9/0002-clk-sunxi-ng-Rename-the-internal-structures.patch
 create mode 100644 target/linux/sunxi/patches-4.9/0003-clk-sunxi-ng-Remove-the-use-of-rational-computations.patch
 create mode 100644 target/linux/sunxi/patches-4.9/0004-clk-sunxi-ng-Finish-to-convert-to-structures-for-arg.patch
 create mode 100644 target/linux/sunxi/patches-4.9/0005-clk-sunxi-ng-Add-minimums-for-all-the-relevant-struc.patch
 create mode 100644 target/linux/sunxi/patches-4.9/0006-clk-sunxi-ng-Implement-minimum-for-multipliers.patch
 create mode 100644 target/linux/sunxi/patches-4.9/0007-clk-sunxi-ng-Add-A64-clocks.patch
 create mode 100644 target/linux/sunxi/patches-4.9/0010-arm64-dts-add-Allwinner-A64-SoC-.dtsi.patch
 create mode 100644 target/linux/sunxi/patches-4.9/0011-arm64-dts-add-Pine64-support.patch
 create mode 100644 target/linux/sunxi/patches-4.9/0012-arm64-dts-fix-build-errors-from-missing-dependencies.patch
 create mode 100644 target/linux/sunxi/patches-4.9/0013-arm64-dts-allwinner-add-USB1-related-nodes-of-Allwin.patch
 create mode 100644 target/linux/sunxi/patches-4.9/0014-arm64-dts-allwinner-sort-the-nodes-in-sun50i-a64-pin.patch
 create mode 100644 target/linux/sunxi/patches-4.9/0015-arm64-dts-allwinner-enable-EHCI1-OHCI1-and-USB-PHY-n.patch
 create mode 100644 target/linux/sunxi/patches-4.9/0016-arm64-dts-add-MUSB-node-to-Allwinner-A64-dtsi.patch
 create mode 100644 target/linux/sunxi/patches-4.9/0017-arm64-dts-enable-the-MUSB-controller-of-Pine64-in-ho.patch
 create mode 100644 target/linux/sunxi/patches-4.9/0018-arm64-dts-allwinner-Remove-no-longer-used-pinctrl-su.patch
 create mode 100644 target/linux/sunxi/patches-4.9/0019-arm64-allwinner-a64-Add-MMC-nodes.patch
 create mode 100644 target/linux/sunxi/patches-4.9/0020-arm64-allwinner-a64-Add-MMC-pinctrl-nodes.patch
 create mode 100644 target/linux/sunxi/patches-4.9/0022-arm64-allwinner-pine64-add-MMC-support.patch
 create mode 100644 target/linux/sunxi/patches-4.9/0023-arm64-allwinner-a64-add-UART1-pin-nodes.patch
 create mode 100644 target/linux/sunxi/patches-4.9/0024-arm64-allwinner-a64-add-r_ccu-node.patch
 create mode 100644 target/linux/sunxi/patches-4.9/0025-arm64-allwinner-a64-add-R_PIO-pinctrl-node.patch
 create mode 100644 target/linux/sunxi/patches-4.9/0026-arm64-allwinner-a64-add-pmu0-regs-for-USB-PHY.patch
 create mode 100644 target/linux/sunxi/patches-4.9/0027-arm64-allwinner-a64-Add-PLL_PERIPH0-clock-to-the-R_C.patch
 create mode 100644 target/linux/sunxi/patches-4.9/0030-pinctrl-sunxi-Rework-the-pin-config-building-code.patch
 create mode 100644 target/linux/sunxi/patches-4.9/0031-pinctrl-sunxi-Use-macros-from-bindings-header-file-f.patch
 create mode 100644 target/linux/sunxi/patches-4.9/0032-pinctrl-sunxi-Handle-bias-disable.patch
 create mode 100644 target/linux/sunxi/patches-4.9/0033-pinctrl-sunxi-Support-generic-binding.patch
 create mode 100644 target/linux/sunxi/patches-4.9/0034-pinctrl-sunxi-Deal-with-configless-pins.patch
 create mode 100644 target/linux/sunxi/patches-4.9/0035-pinctrl-sunxi-make-bool-drivers-explicitly-non-modul.patch
 create mode 100644 target/linux/sunxi/patches-4.9/0036-pinctrl-sunxi-Free-configs-in-pinctrl_map-only-if-it.patch
 create mode 100644 target/linux/sunxi/patches-4.9/0037-pinctrl-sunxi-Fix-PIN_CONFIG_BIAS_PULL_-DOWN-UP-argu.patch
 create mode 100644 target/linux/sunxi/patches-4.9/0038-pinctrl-sunxi-Add-support-for-fetching-pinconf-setti.patch
 create mode 100644 target/linux/sunxi/patches-4.9/0039-pinctrl-sunxi-Make-sunxi_pconf_group_set-use-sunxi_p.patch
 create mode 100644 target/linux/sunxi/patches-4.9/0040-pinctrl-sunxi-Add-support-for-interrupt-debouncing.patch
 create mode 100644 target/linux/sunxi/patches-4.9/0041-pinctrl-sunxi-fix-theoretical-uninitialized-variable.patch
 create mode 100644 target/linux/sunxi/patches-4.9/0042-pinctrl-sunxi-Testing-the-wrong-variable.patch
 create mode 100644 target/linux/sunxi/patches-4.9/0043-pinctrl-sunxi-Don-t-enforce-bias-disable-for-now.patch
 create mode 100644 target/linux/sunxi/patches-4.9/115-musb-ignore-vbus-errors.patch
 create mode 100644 target/linux/sunxi/patches-4.9/131-reset-add-h3-resets.patch

-- 
2.11.0




More information about the Lede-dev mailing list