diff mbox

[LEDE-DEV,13/13] sunxi: Add A64 support with cortex53 subtarget

Message ID 20170803213759.8875-14-hauke@hauke-m.de
State Accepted
Delegated to: Hauke Mehrtens
Headers show

Commit Message

Hauke Mehrtens Aug. 3, 2017, 9:37 p.m. UTC
This adds initial support for the A64 Allwinner SoC to LEDE.
It will be build in the new cortexa53 subtarget.

Currently it only supports the pine64 and the image is able to boot on
this SoC.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
---
 target/linux/sunxi/Makefile                 |   2 +-
 target/linux/sunxi/cortexa53/config-default | 100 ++++++++++++++++++++++++++++
 target/linux/sunxi/cortexa53/target.mk      |  13 ++++
 target/linux/sunxi/image/Makefile           |   1 +
 target/linux/sunxi/image/cortex-a53.mk      |  20 ++++++
 5 files changed, 135 insertions(+), 1 deletion(-)
 create mode 100644 target/linux/sunxi/cortexa53/config-default
 create mode 100644 target/linux/sunxi/cortexa53/target.mk
 create mode 100644 target/linux/sunxi/image/cortex-a53.mk

Comments

Baptiste Jonglez Aug. 28, 2017, 11:09 p.m. UTC | #1
Hi,

On 03-08-17, Hauke Mehrtens wrote:
> This adds initial support for the A64 Allwinner SoC to LEDE.
> It will be build in the new cortexa53 subtarget.
> 
> Currently it only supports the pine64 and the image is able to boot on
> this SoC.

Thanks for the patches!

I tested them on a pine64+ 1GB but it does not seem to work: the green NIC
LED keeps blinking on and off and the device stays unreachable from the
network.  If I force the other end to use 100baseTx-FD, the green NIC LED
stays on instead of blinking, but the device is still unreachable.

I will soon look at it more closely with a serial cable.

> Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
> ---
>  target/linux/sunxi/Makefile                 |   2 +-
>  target/linux/sunxi/cortexa53/config-default | 100 ++++++++++++++++++++++++++++
>  target/linux/sunxi/cortexa53/target.mk      |  13 ++++
>  target/linux/sunxi/image/Makefile           |   1 +
>  target/linux/sunxi/image/cortex-a53.mk      |  20 ++++++
>  5 files changed, 135 insertions(+), 1 deletion(-)
>  create mode 100644 target/linux/sunxi/cortexa53/config-default
>  create mode 100644 target/linux/sunxi/cortexa53/target.mk
>  create mode 100644 target/linux/sunxi/image/cortex-a53.mk
> 
> diff --git a/target/linux/sunxi/Makefile b/target/linux/sunxi/Makefile
> index 65d43358c9..982eecbcbd 100644
> --- a/target/linux/sunxi/Makefile
> +++ b/target/linux/sunxi/Makefile
> @@ -11,7 +11,7 @@ ARCH:=arm
>  BOARD:=sunxi
>  BOARDNAME:=Allwinner A1x/A20/A3x
>  FEATURES:=fpu usb ext4 display rtc squashfs
> -SUBTARGETS:=cortexa8 cortexa7
> +SUBTARGETS:=cortexa8 cortexa7 cortexa53
>  MAINTAINER:=Zoltan HERPAI <wigyori@uid0.hu>
>  
>  KERNEL_PATCHVER:=4.9
> diff --git a/target/linux/sunxi/cortexa53/config-default b/target/linux/sunxi/cortexa53/config-default
> new file mode 100644
> index 0000000000..58ac214695
> --- /dev/null
> +++ b/target/linux/sunxi/cortexa53/config-default
> @@ -0,0 +1,100 @@
> +CONFIG_64BIT=y
> +CONFIG_ARCH_DMA_ADDR_T_64BIT=y
> +CONFIG_ARCH_HAS_CACHE_LINE_SIZE=y
> +CONFIG_ARCH_HAS_GIGANTIC_PAGE=y
> +CONFIG_ARCH_HAS_HOLES_MEMORYMODEL=y
> +CONFIG_ARCH_HAS_KCOV=y
> +CONFIG_ARCH_MMAP_RND_BITS=18
> +CONFIG_ARCH_MMAP_RND_BITS_MAX=24
> +CONFIG_ARCH_MMAP_RND_BITS_MIN=18
> +CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MIN=11
> +CONFIG_ARCH_SELECT_MEMORY_MODEL=y
> +CONFIG_ARCH_SPARSEMEM_DEFAULT=y
> +CONFIG_ARCH_SPARSEMEM_ENABLE=y
> +CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y
> +CONFIG_ARCH_SUPPORTS_NUMA_BALANCING=y
> +CONFIG_ARCH_WANT_COMPAT_IPC_PARSE_VERSION=y
> +CONFIG_ARCH_WANT_FRAME_POINTERS=y
> +CONFIG_ARCH_WANT_HUGE_PMD_SHARE=y
> +CONFIG_ARM64=y
> +# CONFIG_ARM64_16K_PAGES is not set
> +CONFIG_ARM64_4K_PAGES=y
> +# CONFIG_ARM64_64K_PAGES is not set
> +CONFIG_ARM64_CONT_SHIFT=4
> +# CONFIG_ARM64_CRYPTO is not set
> +# CONFIG_ARM64_HW_AFDBM is not set
> +# CONFIG_ARM64_LSE_ATOMICS is not set
> +CONFIG_ARM64_PAGE_SHIFT=12
> +# CONFIG_ARM64_PAN is not set
> +# CONFIG_ARM64_PTDUMP is not set
> +# CONFIG_ARM64_RANDOMIZE_TEXT_OFFSET is not set
> +# CONFIG_ARM64_UAO is not set
> +CONFIG_ARM64_VA_BITS=39
> +CONFIG_ARM64_VA_BITS_39=y
> +# CONFIG_ARM64_VA_BITS_48 is not set
> +# CONFIG_ARM64_VHE is not set
> +CONFIG_ARM_AMBA=y
> +CONFIG_ARM_GIC_V3=y
> +# CONFIG_ARM_SBSA_WATCHDOG is not set
> +# CONFIG_ARM_SP805_WATCHDOG is not set
> +CONFIG_AUDIT_ARCH_COMPAT_GENERIC=y
> +# CONFIG_COMMON_CLK_VERSATILE is not set
> +CONFIG_COMMON_CLK_XGENE=y
> +# CONFIG_COMPAT is not set
> +# CONFIG_DEBUG_ALIGN_RODATA is not set
> +CONFIG_DEBUG_RODATA=y
> +CONFIG_FRAME_POINTER=y
> +# CONFIG_FSL_ERRATUM_A008585 is not set
> +CONFIG_GENERIC_BUG_RELATIVE_POINTERS=y
> +CONFIG_GENERIC_CPU_AUTOPROBE=y
> +CONFIG_GENERIC_CSUM=y
> +CONFIG_GENERIC_IRQ_MIGRATION=y
> +CONFIG_HAVE_ALIGNED_STRUCT_PAGE=y
> +CONFIG_HAVE_ARCH_HUGE_VMAP=y
> +CONFIG_HAVE_ARCH_KASAN=y
> +CONFIG_HAVE_CMPXCHG_DOUBLE=y
> +CONFIG_HAVE_CMPXCHG_LOCAL=y
> +CONFIG_HAVE_DEBUG_BUGVERBOSE=y
> +CONFIG_HAVE_EBPF_JIT=y
> +CONFIG_HAVE_KVM_MSI=y
> +CONFIG_HAVE_MEMORY_PRESENT=y
> +CONFIG_HAVE_PATA_PLATFORM=y
> +CONFIG_ILLEGAL_POINTER_VALUE=0xdead000000000000
> +# CONFIG_KASAN is not set
> +CONFIG_KERNEL_MODE_NEON=y
> +CONFIG_KVM_ARM_PMU=y
> +CONFIG_KVM_ARM_VGIC_V3_ITS=y
> +CONFIG_MODULES_USE_ELF_RELA=y
> +CONFIG_NEED_SG_DMA_LENGTH=y
> +CONFIG_NO_IOPORT_MAP=y
> +# CONFIG_NUMA is not set
> +CONFIG_PARTITION_PERCPU=y
> +# CONFIG_PCI_DOMAINS is not set
> +# CONFIG_PHY_XGENE is not set
> +# CONFIG_PINCTRL_GR8 is not set
> +# CONFIG_PINCTRL_SUN4I_A10 is not set
> +CONFIG_PINCTRL_SUN50I_A64=y
> +# CONFIG_PINCTRL_SUN5I_A10S is not set
> +# CONFIG_PINCTRL_SUN5I_A13 is not set
> +# CONFIG_PINCTRL_SUN6I_A31 is not set
> +# CONFIG_PINCTRL_SUN6I_A31S is not set
> +# CONFIG_PINCTRL_SUN6I_A31_R is not set
> +# CONFIG_PINCTRL_SUN7I_A20 is not set
> +# CONFIG_PINCTRL_SUN8I_A23 is not set
> +# CONFIG_PINCTRL_SUN8I_A23_R is not set
> +# CONFIG_PINCTRL_SUN8I_A33 is not set
> +# CONFIG_PINCTRL_SUN8I_A83T is not set
> +# CONFIG_PINCTRL_SUN8I_H3 is not set
> +# CONFIG_PINCTRL_SUN8I_H3_R is not set
> +# CONFIG_PINCTRL_SUN9I_A80 is not set
> +# CONFIG_PINCTRL_SUN9I_A80_R is not set
> +# CONFIG_RANDOMIZE_BASE is not set
> +# CONFIG_SERIAL_AMBA_PL010 is not set
> +# CONFIG_SERIAL_AMBA_PL011 is not set
> +CONFIG_SPARSEMEM=y
> +CONFIG_SPARSEMEM_EXTREME=y
> +CONFIG_SPARSEMEM_MANUAL=y
> +CONFIG_SPARSEMEM_VMEMMAP=y
> +CONFIG_SPARSEMEM_VMEMMAP_ENABLE=y
> +CONFIG_SUN50I_A64_CCU=y
> +CONFIG_SYSCTL_EXCEPTION_TRACE=y
> diff --git a/target/linux/sunxi/cortexa53/target.mk b/target/linux/sunxi/cortexa53/target.mk
> new file mode 100644
> index 0000000000..6715d00bda
> --- /dev/null
> +++ b/target/linux/sunxi/cortexa53/target.mk
> @@ -0,0 +1,13 @@
> +#
> +# Copyright (C) 2017 Hauke Mehrtens
> +#
> +# This is free software, licensed under the GNU General Public License v2.
> +# See /LICENSE for more information.
> +#
> +
> +include $(TOPDIR)/rules.mk
> +
> +ARCH:=aarch64
> +BOARDNAME:=Allwinner A64
> +CPU_TYPE:=cortex-a53
> +KERNELNAME:=Image dtbs
> diff --git a/target/linux/sunxi/image/Makefile b/target/linux/sunxi/image/Makefile
> index 20ecf66a9c..8f95c61906 100644
> --- a/target/linux/sunxi/image/Makefile
> +++ b/target/linux/sunxi/image/Makefile
> @@ -41,5 +41,6 @@ endef
>  
>  include cortex-a7.mk
>  include cortex-a8.mk
> +include cortex-a53.mk
>  
>  $(eval $(call BuildImage))
> diff --git a/target/linux/sunxi/image/cortex-a53.mk b/target/linux/sunxi/image/cortex-a53.mk
> new file mode 100644
> index 0000000000..bbb253f0ae
> --- /dev/null
> +++ b/target/linux/sunxi/image/cortex-a53.mk
> @@ -0,0 +1,20 @@
> +#
> +# Copyright (C) 2013-2016 OpenWrt.org
> +# Copyright (C) 2016 Yousong Zhou
> +#
> +# This is free software, licensed under the GNU General Public License v2.
> +# See /LICENSE for more information.
> +#
> +ifeq ($(SUBTARGET),cortexa53)
> +
> +define Device/sun50i-a64-pine64-plus
> +  DEVICE_TITLE:=Pine64 Plus A64
> +  SUPPORTED_DEVICES:=pine64,pine64-plus
> +  SUNXI_DTS:=allwinner/sun50i-a64-pine64-plus
> +  KERNEL_NAME := Image
> +  KERNEL := kernel-bin
> +endef
> +
> +TARGET_DEVICES += sun50i-a64-pine64-plus
> +
> +endif
Baptiste Jonglez Aug. 29, 2017, 7:22 a.m. UTC | #2
On 29-08-17, Baptiste Jonglez wrote:
> Hi,
> 
> On 03-08-17, Hauke Mehrtens wrote:
> > This adds initial support for the A64 Allwinner SoC to LEDE.
> > It will be build in the new cortexa53 subtarget.
> > 
> > Currently it only supports the pine64 and the image is able to boot on
> > this SoC.
> 
> Thanks for the patches!
> 
> I tested them on a pine64+ 1GB but it does not seem to work: the green NIC
> LED keeps blinking on and off and the device stays unreachable from the
> network.  If I force the other end to use 100baseTx-FD, the green NIC LED
> stays on instead of blinking, but the device is still unreachable.

I just found this comment in the DTS:

  /* TODO: Camera, Ethernet PHY, touchscreen, etc. */

So, the non-working NIC seems to be expected: this should be more apparent
in the patch descriptions to avoid surprises :)

(I totally understand that this patch series is about preliminary support
for the board)

> I will soon look at it more closely with a serial cable.
> 
> > Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
> > ---
> >  target/linux/sunxi/Makefile                 |   2 +-
> >  target/linux/sunxi/cortexa53/config-default | 100 ++++++++++++++++++++++++++++
> >  target/linux/sunxi/cortexa53/target.mk      |  13 ++++
> >  target/linux/sunxi/image/Makefile           |   1 +
> >  target/linux/sunxi/image/cortex-a53.mk      |  20 ++++++
> >  5 files changed, 135 insertions(+), 1 deletion(-)
> >  create mode 100644 target/linux/sunxi/cortexa53/config-default
> >  create mode 100644 target/linux/sunxi/cortexa53/target.mk
> >  create mode 100644 target/linux/sunxi/image/cortex-a53.mk
> > 
> > diff --git a/target/linux/sunxi/Makefile b/target/linux/sunxi/Makefile
> > index 65d43358c9..982eecbcbd 100644
> > --- a/target/linux/sunxi/Makefile
> > +++ b/target/linux/sunxi/Makefile
> > @@ -11,7 +11,7 @@ ARCH:=arm
> >  BOARD:=sunxi
> >  BOARDNAME:=Allwinner A1x/A20/A3x
> >  FEATURES:=fpu usb ext4 display rtc squashfs
> > -SUBTARGETS:=cortexa8 cortexa7
> > +SUBTARGETS:=cortexa8 cortexa7 cortexa53
> >  MAINTAINER:=Zoltan HERPAI <wigyori@uid0.hu>
> >  
> >  KERNEL_PATCHVER:=4.9
> > diff --git a/target/linux/sunxi/cortexa53/config-default b/target/linux/sunxi/cortexa53/config-default
> > new file mode 100644
> > index 0000000000..58ac214695
> > --- /dev/null
> > +++ b/target/linux/sunxi/cortexa53/config-default
> > @@ -0,0 +1,100 @@
> > +CONFIG_64BIT=y
> > +CONFIG_ARCH_DMA_ADDR_T_64BIT=y
> > +CONFIG_ARCH_HAS_CACHE_LINE_SIZE=y
> > +CONFIG_ARCH_HAS_GIGANTIC_PAGE=y
> > +CONFIG_ARCH_HAS_HOLES_MEMORYMODEL=y
> > +CONFIG_ARCH_HAS_KCOV=y
> > +CONFIG_ARCH_MMAP_RND_BITS=18
> > +CONFIG_ARCH_MMAP_RND_BITS_MAX=24
> > +CONFIG_ARCH_MMAP_RND_BITS_MIN=18
> > +CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MIN=11
> > +CONFIG_ARCH_SELECT_MEMORY_MODEL=y
> > +CONFIG_ARCH_SPARSEMEM_DEFAULT=y
> > +CONFIG_ARCH_SPARSEMEM_ENABLE=y
> > +CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y
> > +CONFIG_ARCH_SUPPORTS_NUMA_BALANCING=y
> > +CONFIG_ARCH_WANT_COMPAT_IPC_PARSE_VERSION=y
> > +CONFIG_ARCH_WANT_FRAME_POINTERS=y
> > +CONFIG_ARCH_WANT_HUGE_PMD_SHARE=y
> > +CONFIG_ARM64=y
> > +# CONFIG_ARM64_16K_PAGES is not set
> > +CONFIG_ARM64_4K_PAGES=y
> > +# CONFIG_ARM64_64K_PAGES is not set
> > +CONFIG_ARM64_CONT_SHIFT=4
> > +# CONFIG_ARM64_CRYPTO is not set
> > +# CONFIG_ARM64_HW_AFDBM is not set
> > +# CONFIG_ARM64_LSE_ATOMICS is not set
> > +CONFIG_ARM64_PAGE_SHIFT=12
> > +# CONFIG_ARM64_PAN is not set
> > +# CONFIG_ARM64_PTDUMP is not set
> > +# CONFIG_ARM64_RANDOMIZE_TEXT_OFFSET is not set
> > +# CONFIG_ARM64_UAO is not set
> > +CONFIG_ARM64_VA_BITS=39
> > +CONFIG_ARM64_VA_BITS_39=y
> > +# CONFIG_ARM64_VA_BITS_48 is not set
> > +# CONFIG_ARM64_VHE is not set
> > +CONFIG_ARM_AMBA=y
> > +CONFIG_ARM_GIC_V3=y
> > +# CONFIG_ARM_SBSA_WATCHDOG is not set
> > +# CONFIG_ARM_SP805_WATCHDOG is not set
> > +CONFIG_AUDIT_ARCH_COMPAT_GENERIC=y
> > +# CONFIG_COMMON_CLK_VERSATILE is not set
> > +CONFIG_COMMON_CLK_XGENE=y
> > +# CONFIG_COMPAT is not set
> > +# CONFIG_DEBUG_ALIGN_RODATA is not set
> > +CONFIG_DEBUG_RODATA=y
> > +CONFIG_FRAME_POINTER=y
> > +# CONFIG_FSL_ERRATUM_A008585 is not set
> > +CONFIG_GENERIC_BUG_RELATIVE_POINTERS=y
> > +CONFIG_GENERIC_CPU_AUTOPROBE=y
> > +CONFIG_GENERIC_CSUM=y
> > +CONFIG_GENERIC_IRQ_MIGRATION=y
> > +CONFIG_HAVE_ALIGNED_STRUCT_PAGE=y
> > +CONFIG_HAVE_ARCH_HUGE_VMAP=y
> > +CONFIG_HAVE_ARCH_KASAN=y
> > +CONFIG_HAVE_CMPXCHG_DOUBLE=y
> > +CONFIG_HAVE_CMPXCHG_LOCAL=y
> > +CONFIG_HAVE_DEBUG_BUGVERBOSE=y
> > +CONFIG_HAVE_EBPF_JIT=y
> > +CONFIG_HAVE_KVM_MSI=y
> > +CONFIG_HAVE_MEMORY_PRESENT=y
> > +CONFIG_HAVE_PATA_PLATFORM=y
> > +CONFIG_ILLEGAL_POINTER_VALUE=0xdead000000000000
> > +# CONFIG_KASAN is not set
> > +CONFIG_KERNEL_MODE_NEON=y
> > +CONFIG_KVM_ARM_PMU=y
> > +CONFIG_KVM_ARM_VGIC_V3_ITS=y
> > +CONFIG_MODULES_USE_ELF_RELA=y
> > +CONFIG_NEED_SG_DMA_LENGTH=y
> > +CONFIG_NO_IOPORT_MAP=y
> > +# CONFIG_NUMA is not set
> > +CONFIG_PARTITION_PERCPU=y
> > +# CONFIG_PCI_DOMAINS is not set
> > +# CONFIG_PHY_XGENE is not set
> > +# CONFIG_PINCTRL_GR8 is not set
> > +# CONFIG_PINCTRL_SUN4I_A10 is not set
> > +CONFIG_PINCTRL_SUN50I_A64=y
> > +# CONFIG_PINCTRL_SUN5I_A10S is not set
> > +# CONFIG_PINCTRL_SUN5I_A13 is not set
> > +# CONFIG_PINCTRL_SUN6I_A31 is not set
> > +# CONFIG_PINCTRL_SUN6I_A31S is not set
> > +# CONFIG_PINCTRL_SUN6I_A31_R is not set
> > +# CONFIG_PINCTRL_SUN7I_A20 is not set
> > +# CONFIG_PINCTRL_SUN8I_A23 is not set
> > +# CONFIG_PINCTRL_SUN8I_A23_R is not set
> > +# CONFIG_PINCTRL_SUN8I_A33 is not set
> > +# CONFIG_PINCTRL_SUN8I_A83T is not set
> > +# CONFIG_PINCTRL_SUN8I_H3 is not set
> > +# CONFIG_PINCTRL_SUN8I_H3_R is not set
> > +# CONFIG_PINCTRL_SUN9I_A80 is not set
> > +# CONFIG_PINCTRL_SUN9I_A80_R is not set
> > +# CONFIG_RANDOMIZE_BASE is not set
> > +# CONFIG_SERIAL_AMBA_PL010 is not set
> > +# CONFIG_SERIAL_AMBA_PL011 is not set
> > +CONFIG_SPARSEMEM=y
> > +CONFIG_SPARSEMEM_EXTREME=y
> > +CONFIG_SPARSEMEM_MANUAL=y
> > +CONFIG_SPARSEMEM_VMEMMAP=y
> > +CONFIG_SPARSEMEM_VMEMMAP_ENABLE=y
> > +CONFIG_SUN50I_A64_CCU=y
> > +CONFIG_SYSCTL_EXCEPTION_TRACE=y
> > diff --git a/target/linux/sunxi/cortexa53/target.mk b/target/linux/sunxi/cortexa53/target.mk
> > new file mode 100644
> > index 0000000000..6715d00bda
> > --- /dev/null
> > +++ b/target/linux/sunxi/cortexa53/target.mk
> > @@ -0,0 +1,13 @@
> > +#
> > +# Copyright (C) 2017 Hauke Mehrtens
> > +#
> > +# This is free software, licensed under the GNU General Public License v2.
> > +# See /LICENSE for more information.
> > +#
> > +
> > +include $(TOPDIR)/rules.mk
> > +
> > +ARCH:=aarch64
> > +BOARDNAME:=Allwinner A64
> > +CPU_TYPE:=cortex-a53
> > +KERNELNAME:=Image dtbs
> > diff --git a/target/linux/sunxi/image/Makefile b/target/linux/sunxi/image/Makefile
> > index 20ecf66a9c..8f95c61906 100644
> > --- a/target/linux/sunxi/image/Makefile
> > +++ b/target/linux/sunxi/image/Makefile
> > @@ -41,5 +41,6 @@ endef
> >  
> >  include cortex-a7.mk
> >  include cortex-a8.mk
> > +include cortex-a53.mk
> >  
> >  $(eval $(call BuildImage))
> > diff --git a/target/linux/sunxi/image/cortex-a53.mk b/target/linux/sunxi/image/cortex-a53.mk
> > new file mode 100644
> > index 0000000000..bbb253f0ae
> > --- /dev/null
> > +++ b/target/linux/sunxi/image/cortex-a53.mk
> > @@ -0,0 +1,20 @@
> > +#
> > +# Copyright (C) 2013-2016 OpenWrt.org
> > +# Copyright (C) 2016 Yousong Zhou
> > +#
> > +# This is free software, licensed under the GNU General Public License v2.
> > +# See /LICENSE for more information.
> > +#
> > +ifeq ($(SUBTARGET),cortexa53)
> > +
> > +define Device/sun50i-a64-pine64-plus
> > +  DEVICE_TITLE:=Pine64 Plus A64
> > +  SUPPORTED_DEVICES:=pine64,pine64-plus
> > +  SUNXI_DTS:=allwinner/sun50i-a64-pine64-plus
> > +  KERNEL_NAME := Image
> > +  KERNEL := kernel-bin
> > +endef
> > +
> > +TARGET_DEVICES += sun50i-a64-pine64-plus
> > +
> > +endif



> _______________________________________________
> Lede-dev mailing list
> Lede-dev@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/lede-dev
Hauke Mehrtens Sept. 3, 2017, 12:55 p.m. UTC | #3
On 08/29/2017 09:22 AM, Baptiste Jonglez wrote:
> On 29-08-17, Baptiste Jonglez wrote:
>> Hi,
>>
>> On 03-08-17, Hauke Mehrtens wrote:
>>> This adds initial support for the A64 Allwinner SoC to LEDE.
>>> It will be build in the new cortexa53 subtarget.
>>>
>>> Currently it only supports the pine64 and the image is able to boot on
>>> this SoC.
>>
>> Thanks for the patches!
>>
>> I tested them on a pine64+ 1GB but it does not seem to work: the green NIC
>> LED keeps blinking on and off and the device stays unreachable from the
>> network.  If I force the other end to use 100baseTx-FD, the green NIC LED
>> stays on instead of blinking, but the device is still unreachable.
> 
> I just found this comment in the DTS:
> 
>   /* TODO: Camera, Ethernet PHY, touchscreen, etc. */
> 
> So, the non-working NIC seems to be expected: this should be more apparent
> in the patch descriptions to avoid surprises :)
> 
> (I totally understand that this patch series is about preliminary support
> for the board)

Yes that is currently not supported, I will mention it more clearly in
the commit message.

I plan to backport Ethernet support later, but it takes some time, it is
supported with mainline kernel 4.13.

Hauke
Baptiste Jonglez Oct. 23, 2017, 6:17 p.m. UTC | #4
Hi Hauke,

On 03-08-17, Hauke Mehrtens wrote:
> This adds initial support for the A64 Allwinner SoC to LEDE.
> It will be build in the new cortexa53 subtarget.
> 
> Currently it only supports the pine64 and the image is able to boot on
> this SoC.

This was merged a while ago, but I gave it another try on my Pine64+ and
still couldn't boot a LEDE image.  But this time I have a serial console
adapter :)

I tried to boot the latest LEDE snapshot from several different µSD card.
The kernel always starts to boot, complains about errors reading from the
mmc, and then gets stuck.  The device is a pine64+ with 1 GB of RAM.

Sometimes it fails before mounting the root:

[    1.273249] Waiting for root device /dev/mmcblk0p2...
[    1.281238] sunxi-mmc 1c0f000.mmc: smc 0 err, cmd 55, RE RCE !!
[    1.317715] sunxi-mmc 1c0f000.mmc: smc 0 err, cmd 3, RCE !!
[    1.323864] sunxi-mmc 1c0f000.mmc: smc 0 err, cmd 3, RCE !!
[    1.344409] sunxi-mmc 1c0f000.mmc: smc 0 err, cmd 55, RCE !!
[    1.350097] sunxi-mmc 1c0f000.mmc: smc 0 err, cmd 6, RE RCE !!
[    1.355941] sunxi-mmc 1c0f000.mmc: smc 0 err, cmd 55, RCE !!
[    1.361651] mmc0: new high speed SDHC card at address cda0
[    1.367559] mmcblk0: mmc0:cda0 00000 7.51 GiB
[    1.372415] sunxi-mmc 1c0f000.mmc: smc 0 err, cmd 18, RD RE RCE !!
[    1.378609] sunxi-mmc 1c0f000.mmc: data error, sending stop command
[    2.374894] sunxi-mmc 1c0f000.mmc: send stop command failed

Sometimes it fails just after:

[    1.273185] Waiting for root device /dev/mmcblk0p2...
[    1.342876] mmc0: new high speed SDHC card at address 0007
[    1.348790] mmcblk0: mmc0:0007 SD8GB 7.42 GiB
[    1.354623]  mmcblk0: p1 p2
[    1.401534] VFS: Mounted root (squashfs filesystem) readonly on device 179:2.
[    1.408891] Freeing unused kernel memory: 320K
[    1.418724] sunxi-mmc 1c0f000.mmc: smc 0 err, cmd 18, RD DCE !!
[    1.424659] sunxi-mmc 1c0f000.mmc: data error, sending stop command
[    1.430953] sunxi-mmc 1c0f000.mmc: send stop command failed
[    1.436564] mmcblk0: timed out sending r/w cmd command, card status 0x400900
[    1.443601] mmcblk0: command error, retrying timeout
[    1.449386] sunxi-mmc 1c0f000.mmc: smc 0 err, cmd 18, RD DCE !!
[    1.455309] sunxi-mmc 1c0f000.mmc: data error, sending stop command
[    1.461581] sunxi-mmc 1c0f000.mmc: send stop command failed
[    1.467185] mmcblk0: timed out sending r/w cmd command, card status 0x400900
[    1.474221] mmcblk0: command error, retrying timeout
[    1.484737] sunxi-mmc 1c0f000.mmc: smc 0 err, cmd 18, RD DCE !!
[    1.490670] sunxi-mmc 1c0f000.mmc: data error, sending stop command
[    1.496956] sunxi-mmc 1c0f000.mmc: send stop command failed
[    1.502550] mmcblk0: timed out sending r/w cmd command, card status 0x400900
[    1.509598] mmcblk0: command error, retrying timeout
[    1.516026] sunxi-mmc 1c0f000.mmc: smc 0 err, cmd 18, RD DCE !!
[    1.521959] sunxi-mmc 1c0f000.mmc: data error, sending stop command
[    2.524849] sunxi-mmc 1c0f000.mmc: send stop command failed

Do you have any idea of what could be wrong?

I also tried an Armbian image (based on Debian jessie, with a non-mainline
3.10 kernel) and it worked fine out-of-the-box.

Attached are full bootlogs for both LEDE and Armbian.

Thanks,
Baptiste
U-Boot SPL 2017.07 (Oct 19 2017 - 19:48:49)
DRAM: 1024 MiB
Trying to boot from MMC1
NOTICE:  BL3-1: Running on A64/H64 (1689) in SRAM A2 (@0x44000)
NOTICE:  Configuring SPC Controller
NOTICE:  BL3-1: v1.0(debug):fbde9ac
NOTICE:  BL3-1: Built : 23:50:51, Oct 19 2017
NOTICE:  Configuring AXP PMIC
NOTICE:  PMIC: fixing DRAM voltage from 1.24V to 1.36V
NOTICE:  PMIC: setup successful
NOTICE:  SCPI: dummy stub handler, implementation level: 000000
INFO:    BL3-1: Initializing runtime services
INFO:    BL3-1: Preparing for EL3 exit to normal world
INFO:    BL3-1: Next image address: 0x4a000000, SPSR: 0x3c9


U-Boot 2017.07 (Oct 19 2017 - 19:48:49 +0000) Allwinner Technology

CPU:   Allwinner A64 (SUN50I)
Model: Pine64+
DRAM:  1 GiB
MMC:   SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   No ethernet found.
starting USB...
USB0:   USB EHCI 1.00
USB1:   USB OHCI 1.0
scanning bus 0 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
Hit any key to stop autoboot:  0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
reading /boot.scr
384 bytes read in 16 ms (23.4 KiB/s)
## Executing script at 4fc00000
reading uImage
7090184 bytes read in 690 ms (9.8 MiB/s)
reading dtb
8592 bytes read in 27 ms (310.5 KiB/s)
## Flattened Device Tree blob at 4fa00000
   Booting using the fdt blob at 0x4fa00000
   Loading Device Tree to 0000000049ffa000, end 0000000049fff18f ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.9.57 (buildbot@crazyhorse) (gcc version 5.5.0 (LEDE GCC 5.5.0 r5117-fbde9ac) ) #0 SMP PREEMPT Thu Oct 19 19:48:49 2017
[    0.000000] Boot CPU: AArch64 Processor [410fd034]
[    0.000000] earlycon: uart0 at MMIO32 0x0000000001c28000 (options '')
[    0.000000] bootconsole [uart0] enabled
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv0.2 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: Trusted OS migration not required
[    0.000000] percpu: Embedded 20 pages/cpu @ffffffc03ff99000 s44056 r8192 d29672 u81920
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 258048
[    0.000000] Kernel command line: console=ttyS0,115200 earlyprintk root=/dev/mmcblk0p2 rootwait earlycon=uart,mmio32,0x01c28000
[    0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes)
[    0.000000] Memory: 1022908K/1048576K available (4606K kernel code, 396K rwdata, 1588K rodata, 320K init, 355K bss, 25668K reserved, 0K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     modules : 0xffffff8000000000 - 0xffffff8008000000   (   128 MB)
[    0.000000]     vmalloc : 0xffffff8008000000 - 0xffffffbebfff0000   (   250 GB)
[    0.000000]       .text : 0xffffff8008080000 - 0xffffff8008500000   (  4608 KB)
[    0.000000]     .rodata : 0xffffff8008500000 - 0xffffff8008690000   (  1600 KB)
[    0.000000]       .init : 0xffffff8008690000 - 0xffffff80086e0000   (   320 KB)
[    0.000000]       .data : 0xffffff80086e0000 - 0xffffff8008743008   (   397 KB)
[    0.000000]        .bss : 0xffffff8008743008 - 0xffffff800879be54   (   356 KB)
[    0.000000]     fixed   : 0xffffffbefe7fd000 - 0xffffffbefec00000   (  4108 KB)
[    0.000000]     PCI I/O : 0xffffffbefee00000 - 0xffffffbeffe00000   (    16 MB)
[    0.000000]     vmemmap : 0xffffffbf00000000 - 0xffffffc000000000   (     4 GB maximum)
[    0.000000]               0xffffffbf00000000 - 0xffffffbf01000000   (    16 MB actual)
[    0.000000]     memory  : 0xffffffc000000000 - 0xffffffc040000000   (  1024 MB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  CONFIG_RCU_FANOUT set to non-default value of 32
[    0.000000]  RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[    0.000000] NR_IRQS:64 nr_irqs:64 0
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] arm_arch_timer: Architected cp15 timer(s) running at 24.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000006] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.008146] Console: colour dummy device 80x25
[    0.012601] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.022951] pid_max: default: 32768 minimum: 301
[    0.027639] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes)
[    0.034338] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes)
[    0.042161] ASID allocator initialised with 65536 entries
[    0.218584] Detected VIPT I-cache on CPU1
[    0.218635] CPU1: Booted secondary processor [410fd034]
[    0.288183] Detected VIPT I-cache on CPU2
[    0.288213] CPU2: Booted secondary processor [410fd034]
[    0.358224] Detected VIPT I-cache on CPU3
[    0.358254] CPU3: Booted secondary processor [410fd034]
[    0.358312] Brought up 4 CPUs
[    0.388922] SMP: Total of 4 processors activated.
[    0.393619] CPU features: detected feature: 32-bit EL0 Support
[    0.399451] CPU: All CPU(s) started at EL2
[    0.406552] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.416402] futex hash table entries: 1024 (order: 5, 131072 bytes)
[    0.422814] pinctrl core: initialized pinctrl subsystem
[    0.428947] NET: Registered protocol family 16
[    0.434581] vdso: 2 pages (1 code @ ffffff8008505000, 1 data @ ffffff80086e4000)
[    0.442174] DMA: preallocated 256 KiB pool for atomic allocations
[    0.483789] SCSI subsystem initialized
[    0.488185] usbcore: registered new interface driver usbfs
[    0.493821] usbcore: registered new interface driver hub
[    0.499223] usbcore: registered new device driver usb
[    0.504511] Linux video capture interface: v2.00
[    0.509287] pps_core: LinuxPPS API ver. 1 registered
[    0.514243] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.523418] PTP clock support registered
[    0.527832] Advanced Linux Sound Architecture Driver Initialized.
[    0.534896] clocksource: Switched to clocksource arch_sys_counter
[    0.549492] NET: Registered protocol family 2
[    0.554470] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[    0.561638] TCP bind hash table entries: 8192 (order: 5, 131072 bytes)
[    0.568366] TCP: Hash tables configured (established 8192 bind 8192)
[    0.574799] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.580748] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.587259] NET: Registered protocol family 1
[    0.591966] kvm [1]: 8-bit VMID
[    0.595130] kvm [1]: IDMAP page: 404f3000
[    0.599133] kvm [1]: HYP VA range: 4000000000:7fffffffff
[    0.604770] kvm [1]: Hyp mode initialized successfully
[    0.609950] kvm [1]: vgic-v2@1c84000
[    0.613622] kvm [1]: vgic interrupt IRQ1
[    0.617567] kvm [1]: virtual timer IRQ4
[    0.622946] No memory allocated for crashlog
[    0.627404] workingset: timestamp_bits=62 max_order=18 bucket_order=0
[    0.640492] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.647929] io scheduler noop registered
[    0.651850] io scheduler deadline registered
[    0.656248] io scheduler cfq registered (default)
[    0.661499] sun4i-usb-phy 1c19400.phy: failed to get clock usb0_phy
[    0.706328] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.715536] dw-apb-uart 1c28000.serial: could not find pctldev for node /soc/pinctrl@1c20800/uart0@0, deferring probe
[    0.726633] Unable to detect cache hierarchy from DT for CPU 0
[    0.737485] loop: module loaded
[    0.741294] libphy: Fixed MDIO Bus: probed
[    0.745558] dwmac-sun8i 1c30000.ethernet: could not find pctldev for node /soc/pinctrl@1c20800/rgmii_pins, deferring probe
[    0.756875] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.763393] ehci-platform: EHCI generic platform driver
[    0.768783] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.774980] ohci-platform: OHCI generic platform driver
[    0.780381] usbcore: registered new interface driver usb-storage
[    0.786653] mousedev: PS/2 mouse device common for all mice
[    0.792389] i2c /dev entries driver
[    0.795984] mv64xxx_i2c 1c2b000.i2c: could not find pctldev for node /soc/pinctrl@1c20800/i2c1_pins, deferring probe
[    0.806947] sunxi-mmc 1c0f000.mmc: could not find pctldev for node /soc/pinctrl@1c20800/mmc0-pins, deferring probe
[    0.818468] NET: Registered protocol family 10
[    0.823731] NET: Registered protocol family 17
[    0.828223] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    0.841166] can: controller area network core (rev 20120528 abi 9)
[    0.847502] NET: Registered protocol family 29
[    0.851940] 8021q: 802.1Q VLAN Support v1.8
[    0.865064] sun50i-a64-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.872778] console [ttyS0] disabled
[    0.896477] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 13, base_baud = 1500000) is a U6_16550A
[    0.905460] console [ttyS0] enabled
[    0.905460] console [ttyS0] enabled
[    0.912419] bootconsole [uart0] disabled
[    0.912419] bootconsole [uart0] disabled
[    0.920948] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[    0.926731] dwmac-sun8i 1c30000.ethernet: No regulator found
[    0.932414] dwmac-sun8i 1c30000.ethernet: Will use external PHY
[    0.938497] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[    0.944151] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[    0.951378] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[    0.957039] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[    0.964251] dwmac-sun8i 1c30000.ethernet: COE Type 2
[    0.969219] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[    0.976098] libphy: stmmac: probed
[    0.980818] ehci-platform 1c1b000.usb: EHCI Host Controller
[    0.986425] ehci-platform 1c1b000.usb: new USB bus registered, assigned bus number 1
[    0.994251] ehci-platform 1c1b000.usb: irq 8, io mem 0x01c1b000
[    1.024914] ehci-platform 1c1b000.usb: USB 2.0 started, EHCI 1.00
[    1.031136] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.037931] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.045154] usb usb1: Product: EHCI Host Controller
[    1.050026] usb usb1: Manufacturer: Linux 4.9.57 ehci_hcd
[    1.055427] usb usb1: SerialNumber: 1c1b000.usb
[    1.060373] hub 1-0:1.0: USB hub found
[    1.064139] hub 1-0:1.0: 1 port detected
[    1.068515] ohci-platform 1c1b400.usb: Generic Platform OHCI controller
[    1.075151] ohci-platform 1c1b400.usb: new USB bus registered, assigned bus number 2
[    1.082973] ohci-platform 1c1b400.usb: irq 9, io mem 0x01c1b400
[    1.159021] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
[    1.165820] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.173033] usb usb2: Product: Generic Platform OHCI controller
[    1.178959] usb usb2: Manufacturer: Linux 4.9.57 ohci_hcd
[    1.184351] usb usb2: SerialNumber: 1c1b400.usb
[    1.189282] hub 2-0:1.0: USB hub found
[    1.193051] hub 2-0:1.0: 1 port detected
[    1.198372] sunxi-mmc 1c0f000.mmc: Got CD GPIO
[    1.254920] sunxi-mmc 1c0f000.mmc: base:0xffffff800807b000 irq:6
[    1.260944] hctosys: unable to open rtc device (rtc0)
[    1.266323] ALSA device list:
[    1.269286]   No soundcards found.
[    1.273249] Waiting for root device /dev/mmcblk0p2...
[    1.281238] sunxi-mmc 1c0f000.mmc: smc 0 err, cmd 55, RE RCE !!
[    1.317715] sunxi-mmc 1c0f000.mmc: smc 0 err, cmd 3, RCE !!
[    1.323864] sunxi-mmc 1c0f000.mmc: smc 0 err, cmd 3, RCE !!
[    1.344409] sunxi-mmc 1c0f000.mmc: smc 0 err, cmd 55, RCE !!
[    1.350097] sunxi-mmc 1c0f000.mmc: smc 0 err, cmd 6, RE RCE !!
[    1.355941] sunxi-mmc 1c0f000.mmc: smc 0 err, cmd 55, RCE !!
[    1.361651] mmc0: new high speed SDHC card at address cda0
[    1.367559] mmcblk0: mmc0:cda0 00000 7.51 GiB
[    1.372415] sunxi-mmc 1c0f000.mmc: smc 0 err, cmd 18, RD RE RCE !!
[    1.378609] sunxi-mmc 1c0f000.mmc: data error, sending stop command
[    2.374894] sunxi-mmc 1c0f000.mmc: send stop command failed
U-Boot SPL 2017.07 (Oct 14 2017 - 22:24:22)
DRAM: 1024 MiB
Trying to boot from MMC1
NOTICE:  BL3-1: Running on A64/H64 (1689) in SRAM A2 (@0x44000)
NOTICE:  Configuring SPC Controller
NOTICE:  BL3-1: v1.0(debug):aba071d
NOTICE:  BL3-1: Built : 06:53:41, Oct 15 2017
NOTICE:  Configuring AXP PMIC
NOTICE:  PMIC: fixing DRAM voltage from 1.24V to 1.36V
NOTICE:  PMIC: setup successful
NOTICE:  SCPI: dummy stub handler, implementation level: 000000
INFO:    BL3-1: Initializing runtime services
INFO:    BL3-1: Preparing for EL3 exit to normal world
INFO:    BL3-1: Next image address: 0x4a000000, SPSR: 0x3c9


U-Boot 2017.07 (Oct 14 2017 - 22:24:22 +0000) Allwinner Technology

CPU:   Allwinner A64 (SUN50I)
Model: Pine64+
DRAM:  1 GiB
MMC:   SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   No ethernet found.
starting USB...
USB0:   USB EHCI 1.00
USB1:   USB OHCI 1.0
scanning bus 0 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
Hit any key to stop autoboot:  0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
reading /boot.scr
384 bytes read in 15 ms (24.4 KiB/s)
## Executing script at 4fc00000
reading uImage
7090184 bytes read in 484 ms (14 MiB/s)
reading dtb
8592 bytes read in 24 ms (349.6 KiB/s)
## Flattened Device Tree blob at 4fa00000
   Booting using the fdt blob at 0x4fa00000
   Loading Device Tree to 0000000049ffa000, end 0000000049fff18f ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.9.57 (buildbot@builds) (gcc version 5.5.0 (LEDE GCC 5.5.0 r5086-aba071d) ) #0 SMP PREEMPT Wed Oct 18 21:26:15 2017
[    0.000000] Boot CPU: AArch64 Processor [410fd034]
[    0.000000] earlycon: uart0 at MMIO32 0x0000000001c28000 (options '')
[    0.000000] bootconsole [uart0] enabled
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv0.2 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: Trusted OS migration not required
[    0.000000] percpu: Embedded 20 pages/cpu @ffffffc03ff99000 s44056 r8192 d29672 u81920
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 258048
[    0.000000] Kernel command line: console=ttyS0,115200 earlyprintk root=/dev/mmcblk0p2 rootwait earlycon=uart,mmio32,0x01c28000
[    0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes)
[    0.000000] Memory: 1022908K/1048576K available (4606K kernel code, 396K rwdata, 1588K rodata, 320K init, 355K bss, 25668K reserved, 0K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     modules : 0xffffff8000000000 - 0xffffff8008000000   (   128 MB)
[    0.000000]     vmalloc : 0xffffff8008000000 - 0xffffffbebfff0000   (   250 GB)
[    0.000000]       .text : 0xffffff8008080000 - 0xffffff8008500000   (  4608 KB)
[    0.000000]     .rodata : 0xffffff8008500000 - 0xffffff8008690000   (  1600 KB)
[    0.000000]       .init : 0xffffff8008690000 - 0xffffff80086e0000   (   320 KB)
[    0.000000]       .data : 0xffffff80086e0000 - 0xffffff8008743008   (   397 KB)
[    0.000000]        .bss : 0xffffff8008743008 - 0xffffff800879be54   (   356 KB)
[    0.000000]     fixed   : 0xffffffbefe7fd000 - 0xffffffbefec00000   (  4108 KB)
[    0.000000]     PCI I/O : 0xffffffbefee00000 - 0xffffffbeffe00000   (    16 MB)
[    0.000000]     vmemmap : 0xffffffbf00000000 - 0xffffffc000000000   (     4 GB maximum)
[    0.000000]               0xffffffbf00000000 - 0xffffffbf01000000   (    16 MB actual)
[    0.000000]     memory  : 0xffffffc000000000 - 0xffffffc040000000   (  1024 MB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  CONFIG_RCU_FANOUT set to non-default value of 32
[    0.000000]  RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[    0.000000] NR_IRQS:64 nr_irqs:64 0
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] arm_arch_timer: Architected cp15 timer(s) running at 24.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000005] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.008146] Console: colour dummy device 80x25
[    0.012601] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.022952] pid_max: default: 32768 minimum: 301
[    0.027640] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes)
[    0.034340] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes)
[    0.042161] ASID allocator initialised with 65536 entries
[    0.218572] Detected VIPT I-cache on CPU1
[    0.218621] CPU1: Booted secondary processor [410fd034]
[    0.288196] Detected VIPT I-cache on CPU2
[    0.288225] CPU2: Booted secondary processor [410fd034]
[    0.358226] Detected VIPT I-cache on CPU3
[    0.358256] CPU3: Booted secondary processor [410fd034]
[    0.358314] Brought up 4 CPUs
[    0.388924] SMP: Total of 4 processors activated.
[    0.393621] CPU features: detected feature: 32-bit EL0 Support
[    0.399454] CPU: All CPU(s) started at EL2
[    0.406556] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.416400] futex hash table entries: 1024 (order: 5, 131072 bytes)
[    0.422810] pinctrl core: initialized pinctrl subsystem
[    0.428944] NET: Registered protocol family 16
[    0.434568] vdso: 2 pages (1 code @ ffffff8008505000, 1 data @ ffffff80086e4000)
[    0.442161] DMA: preallocated 256 KiB pool for atomic allocations
[    0.483767] SCSI subsystem initialized
[    0.488152] usbcore: registered new interface driver usbfs
[    0.493783] usbcore: registered new interface driver hub
[    0.499183] usbcore: registered new device driver usb
[    0.504471] Linux video capture interface: v2.00
[    0.509245] pps_core: LinuxPPS API ver. 1 registered
[    0.514210] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.523387] PTP clock support registered
[    0.527788] Advanced Linux Sound Architecture Driver Initialized.
[    0.534853] clocksource: Switched to clocksource arch_sys_counter
[    0.549444] NET: Registered protocol family 2
[    0.554412] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[    0.561578] TCP bind hash table entries: 8192 (order: 5, 131072 bytes)
[    0.568304] TCP: Hash tables configured (established 8192 bind 8192)
[    0.574737] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.580687] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.587202] NET: Registered protocol family 1
[    0.591908] kvm [1]: 8-bit VMID
[    0.595062] kvm [1]: IDMAP page: 404f3000
[    0.599064] kvm [1]: HYP VA range: 4000000000:7fffffffff
[    0.604701] kvm [1]: Hyp mode initialized successfully
[    0.609881] kvm [1]: vgic-v2@1c84000
[    0.613551] kvm [1]: vgic interrupt IRQ1
[    0.617492] kvm [1]: virtual timer IRQ4
[    0.622857] No memory allocated for crashlog
[    0.627301] workingset: timestamp_bits=62 max_order=18 bucket_order=0
[    0.642450] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.650128] io scheduler noop registered
[    0.654056] io scheduler deadline registered
[    0.658503] io scheduler cfq registered (default)
[    0.663888] sun4i-usb-phy 1c19400.phy: failed to get clock usb0_phy
[    0.711400] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.720282] dw-apb-uart 1c28000.serial: could not find pctldev for node /soc/pinctrl@1c20800/uart0@0, deferring probe
[    0.731308] Unable to detect cache hierarchy from DT for CPU 0
[    0.742164] loop: module loaded
[    0.746029] libphy: Fixed MDIO Bus: probed
[    0.750273] dwmac-sun8i 1c30000.ethernet: could not find pctldev for node /soc/pinctrl@1c20800/rgmii_pins, deferring probe
[    0.761546] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.768075] ehci-platform: EHCI generic platform driver
[    0.773442] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.779684] ohci-platform: OHCI generic platform driver
[    0.785172] usbcore: registered new interface driver usb-storage
[    0.791433] mousedev: PS/2 mouse device common for all mice
[    0.797195] i2c /dev entries driver
[    0.800768] mv64xxx_i2c 1c2b000.i2c: could not find pctldev for node /soc/pinctrl@1c20800/i2c1_pins, deferring probe
[    0.811747] sunxi-mmc 1c0f000.mmc: could not find pctldev for node /soc/pinctrl@1c20800/mmc0-pins, deferring probe
[    0.823274] NET: Registered protocol family 10
[    0.828565] NET: Registered protocol family 17
[    0.833032] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    0.845976] can: controller area network core (rev 20120528 abi 9)
[    0.852300] NET: Registered protocol family 29
[    0.856753] 8021q: 802.1Q VLAN Support v1.8
[    0.869897] sun50i-a64-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.877656] console [ttyS0] disabled
[    0.898113] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 13, base_baud = 1500000) is a U6_16550A
[    0.907088] console [ttyS0] enabled
[    0.907088] console [ttyS0] enabled
[    0.914047] bootconsole [uart0] disabled
[    0.914047] bootconsole [uart0] disabled
[    0.922571] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[    0.928349] dwmac-sun8i 1c30000.ethernet: No regulator found
[    0.934032] dwmac-sun8i 1c30000.ethernet: Will use external PHY
[    0.940111] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[    0.945777] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[    0.952990] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[    0.958650] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[    0.965871] dwmac-sun8i 1c30000.ethernet: COE Type 2
[    0.970828] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[    0.977709] libphy: stmmac: probed
[    0.982429] ehci-platform 1c1b000.usb: EHCI Host Controller
[    0.988033] ehci-platform 1c1b000.usb: new USB bus registered, assigned bus number 1
[    0.995884] ehci-platform 1c1b000.usb: irq 8, io mem 0x01c1b000
[    1.024872] ehci-platform 1c1b000.usb: USB 2.0 started, EHCI 1.00
[    1.031095] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.037891] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.045113] usb usb1: Product: EHCI Host Controller
[    1.049985] usb usb1: Manufacturer: Linux 4.9.57 ehci_hcd
[    1.055387] usb usb1: SerialNumber: 1c1b000.usb
[    1.060331] hub 1-0:1.0: USB hub found
[    1.064101] hub 1-0:1.0: 1 port detected
[    1.068471] ohci-platform 1c1b400.usb: Generic Platform OHCI controller
[    1.075106] ohci-platform 1c1b400.usb: new USB bus registered, assigned bus number 2
[    1.082930] ohci-platform 1c1b400.usb: irq 9, io mem 0x01c1b400
[    1.158221] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
[    1.165020] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.172232] usb usb2: Product: Generic Platform OHCI controller
[    1.178157] usb usb2: Manufacturer: Linux 4.9.57 ohci_hcd
[    1.183548] usb usb2: SerialNumber: 1c1b400.usb
[    1.188473] hub 2-0:1.0: USB hub found
[    1.192240] hub 2-0:1.0: 1 port detected
[    1.197556] sunxi-mmc 1c0f000.mmc: Got CD GPIO
[    1.254876] sunxi-mmc 1c0f000.mmc: base:0xffffff800807b000 irq:6
[    1.260896] hctosys: unable to open rtc device (rtc0)
[    1.266262] ALSA device list:
[    1.269225]   No soundcards found.
[    1.273185] Waiting for root device /dev/mmcblk0p2...
[    1.342876] mmc0: new high speed SDHC card at address 0007
[    1.348790] mmcblk0: mmc0:0007 SD8GB 7.42 GiB
[    1.354623]  mmcblk0: p1 p2
[    1.401534] VFS: Mounted root (squashfs filesystem) readonly on device 179:2.
[    1.408891] Freeing unused kernel memory: 320K
[    1.418724] sunxi-mmc 1c0f000.mmc: smc 0 err, cmd 18, RD DCE !!
[    1.424659] sunxi-mmc 1c0f000.mmc: data error, sending stop command
[    1.430953] sunxi-mmc 1c0f000.mmc: send stop command failed
[    1.436564] mmcblk0: timed out sending r/w cmd command, card status 0x400900
[    1.443601] mmcblk0: command error, retrying timeout
[    1.449386] sunxi-mmc 1c0f000.mmc: smc 0 err, cmd 18, RD DCE !!
[    1.455309] sunxi-mmc 1c0f000.mmc: data error, sending stop command
[    1.461581] sunxi-mmc 1c0f000.mmc: send stop command failed
[    1.467185] mmcblk0: timed out sending r/w cmd command, card status 0x400900
[    1.474221] mmcblk0: command error, retrying timeout
[    1.484737] sunxi-mmc 1c0f000.mmc: smc 0 err, cmd 18, RD DCE !!
[    1.490670] sunxi-mmc 1c0f000.mmc: data error, sending stop command
[    1.496956] sunxi-mmc 1c0f000.mmc: send stop command failed
[    1.502550] mmcblk0: timed out sending r/w cmd command, card status 0x400900
[    1.509598] mmcblk0: command error, retrying timeout
[    1.516026] sunxi-mmc 1c0f000.mmc: smc 0 err, cmd 18, RD DCE !!
[    1.521959] sunxi-mmc 1c0f000.mmc: data error, sending stop command
[    2.524849] sunxi-mmc 1c0f000.mmc: send stop command failed
=> HELLO! BOOT0 is starting!
boot0 commit : 045061a8bb2580cb3fa02e301f52a015040c158f

boot0 version : 4.0.0
set pll start
set pll end
rtc[0] value = 0x00000000
rtc[1] value = 0x00000000
rtc[2] value = 0x00000000
rtc[3] value = 0x00000000
rtc[4] value = 0x00000000
rtc[5] value = 0x00000000
DRAM driver version: V1.1
rsb_send_initseq: rsb clk 400Khz -> 3Mhz
PMU: AXP81X
ddr voltage = 1500 mv
DRAM Type = 3 (2:DDR2,3:DDR3,6:LPDDR2,7:LPDDR3)
DRAM clk = 672 MHz
DRAM zq value: 003b3bbb
DRAM single rank full DQ OK
DRAM size = 1024 MB
DRAM init ok
dram size =1024
card boot number = 0, boot0 copy = 0
card no is 0
sdcard 0 line count 4
[mmc]: mmc driver ver 2015-05-08 20:06
[mmc]: sdc0 spd mode error, 2
[mmc]: Wrong media type 0x00000000
[mmc]: ***Try SD card 0***
[mmc]: HSSDR52/SDR25 4 bit
[mmc]: 50000000 Hz
[mmc]: 7691 MB
[mmc]: ***SD/MMC 0 init OK!!!***
sdcard 0 init ok
The size of uboot is 000e8000.
sum=2a39a234
src_sum=2a39a234
Succeed in loading uboot from sdmmc flash.
boot0: start load other image
boot0: Loading BL3-1
Loading file 0 at address 0x40000000,size 0x0000a200 success
boot0: Loading scp
Loading file 2 at address 0x00040000,size 0x00019a00 success
set arisc reset to de-assert state
Ready to disable icache.
����ɽ����5R�NOTICE:  BL3-1: v1.0(debug):3cdc5c3
NOTICE:  BL3-1: Built : 12:02:56, Jun  7 2017
INFO:    BL3-1: Initializing runtime services
INFO:    BL3-1: Preparing for EL3 exit to normal world
INFO:    BL3-1: Next image address = 0x4a000000
INFO:    BL3-1: Next image spsr = 0x1d3


U-Boot 2014.07-g6f37e5c-dirty (Jun 13 2017 - 15:42:40) Allwinner Technology

uboot commit : 6f37e5cf6a65b0b10455d12dbd631effabe765ec

rsb: secure monitor exist
[      0.400]pmbus:   ready
[      0.403][ARISC] :arisc initialize
[      0.734][ARISC] :arisc_dvfs_cfg_vf_table: support only one vf_table
[SCP] :sunxi-arisc driver begin startup 2
[SCP] :arisc_para size:1a8
[SCP] :arisc version: [v0.1.76]
[SCP] :sunxi-arisc driver v1.10 is starting
[      0.862][ARISC] :sunxi-arisc driver startup succeeded
[      0.896]PMU: AXP81X
[      0.898]PMU: AXP81X found
bat_vol=137, ratio=100
[      0.905]PMU: dcdc2 1100
[      0.908]PMU: cpux 1008 Mhz,AXI=336 Mhz
PLL6=600 Mhz,AHB1=200 Mhz, APB1=100Mhz AHB2=300Mhz MBus=400Mhz
device_type = 3253, onoff=1
dcdc1_vol = 3300, onoff=1
dcdc2_vol = 1100, onoff=1
dcdc6_vol = 1100, onoff=1
aldo1_vol = 2800, onoff=0
aldo2_vol = 1800, onoff=1
aldo3_vol = 3000, onoff=1
dldo1_vol = 3300, onoff=0
dldo2_vol = 3300, onoff=0
dldo3_vol = 2800, onoff=0
dldo4_vol = 3300, onoff=1
eldo1_vol = 1800, onoff=1
eldo2_vol = 1800, onoff=0
eldo3_vol = 1800, onoff=0
fldo1_vol = 1200, onoff=0
fldo2_vol = 1100, onoff=1
gpio0_vol = 3100, onoff=0
vbus not exist
no battery, limit to dc
run key detect
no key found
no uart input
DRAM:  1008 MiB
fdt addr: 0x76ebcf00
Relocation Offset is: 35f0f000
In:    serial
Out:   serial
Err:   serial
gic: sec monitor mode
[      1.718]start
drv_disp_init
init_clocks: finish init_clocks.
enable power vcc-hdmi-33, ret=0
drv_disp_init finish
boot_disp.output_disp=0
boot_disp.output_type=3
boot_disp.output_mode=10
fetch script data boot_disp.auto_hpd fail
disp0 device type(4) enable
attched ok, mgr0<-->device1, type=4, mode=10
[      2.089]end
workmode = 0,storage type = 1
[      2.093]MMC:        0
[mmc]: mmc driver ver 2015-06-03 13:50:00
SUNXI SD/MMC: 0
[mmc]: start mmc_calibrate_delay_unit, don't access device...
[mmc]: delay chain cal done, sample: 192(ps)
[mmc]: media type 0x0
[mmc]: Wrong media type 0x0
[mmc]: ************Try SD card 0************
[mmc]: host caps: 0x27
[mmc]: MID 1b PSN 17cc39e2
[mmc]: PNM 00000 -- 0x30-30-30-30-30
[mmc]: PRV 1.0
[mmc]: MDT m-10 y-2010
[mmc]: speed mode     : HSSDR52/SDR25
[mmc]: clock          : 50000000 Hz
[mmc]: bus_width      : 4 bit
[mmc]: user capacity  : 7691 MB
[mmc]: ************SD/MMC 0 init OK!!!************
[mmc]: erase_grp_size      : 0x1WrBlk*0x200=0x200 Byte
[mmc]: secure_feature      : 0x0
[mmc]: secure_removal_type : 0x0
[      2.279]sunxi flash init ok

** Unable to use mmc 0:1 for loading the env **
Using default environment

--------fastboot partitions--------
mbr not exist
base bootcmd=run mmcbootcmd
bootcmd set setargs_mmc
key 0
recovery key high 12, low 10
fastboot key high 6, low 4
no misc partition is found
to be run cmd=run mmcbootcmd
update dtb dram start
update dtb dram  end
serial is: 0410519008042024080b
check for ANX9807
get Pine64 model from DRAM size
DRAM >512M
Pine64 model: pine64-plus
no battery exist
sunxi bmp: unable to open file /boot/bootlogo.bmp
[      2.612]inter uboot shell
autoboot in 3 seconds, Press s or <Esc><Esc> to abort
4707 bytes read in 44 ms (103.5 KiB/s)
Booting with script ...
## Executing script at 41000000
192 bytes read in 34 ms (4.9 KiB/s)
68724 bytes read in 53 ms (1.2 MiB/s)
3402661 bytes read in 339 ms (9.6 MiB/s)
12620312 bytes read in 1059 ms (11.4 MiB/s)
Image lacks image_size field, assuming 16MiB
## Loading init Ramdisk from Legacy Image at 45300000 ...
   Image Name:   uInitrd
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    3402597 Bytes = 3.2 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 45000000
   Booting using the fdt blob at 0x45000000
   reserving fdt memory region: addr=41010000 size=10000
   reserving fdt memory region: addr=41020000 size=800
   reserving fdt memory region: addr=40100000 size=4000
   reserving fdt memory region: addr=40104000 size=1000
   reserving fdt memory region: addr=40105000 size=1000
   reserving fdt memory region: addr=45000000 size=11000
   Loading Ramdisk to 76b77000, end 76eb5b65 ... OK
   Loading Device Tree to 44feb000, end 44ffefff ... OK

Starting kernel ...

[mmc]: MMC Device 2 not found
[mmc]: mmc 2 not find, so not exit
INFO:    BL3-1: Next image address = 0x41080000
INFO:    BL3-1: Next image spsr = 0x3c9
Loading, please wait...
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Begin: Will now check root file system ... fsck from util-linux 2.25.2
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 3.10.105-pine64 (root@devel) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4) ) #1 SMP PREEMPT Wed Jun 7 12:04:01 CEST 2017
[    0.000000] CPU: AArch64 Processor [410fd034] revision 4
[    0.000000] Machine: Pine64+
[    0.000000] cma: CMA: reserved 64 MiB at 7c000000
[    0.000000] On node 0 totalpages: 258048
[    0.000000]   DMA zone: 3528 pages used for memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 258048 pages, LIFO batch:31
[    0.000000] script_init enter!
[    0.000000] script buffer is NULL!
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv0.2 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] PERCPU: Embedded 12 pages/cpu @ffffffc03af98000 s18880 r8192 d22080 u49152
[    0.000000] pcpu-alloc: s18880 r8192 d22080 u49152 alloc=12*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 254520
[    0.000000] Kernel command line: root=UUID=7a086d96-45d5-4b3f-ae4f-6c8398b9b61d rootfstype=ext4 rootwait console=tty1 console=ttyS0,115200n8 no_console_suspend earlycon=uart,mmio32,0x01c28000 mac_addr=62:76:78:59:76:b5 panic=10 consoleblank=0 loglevel=1
[    0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes)
[    0.000000] Memory: 1008MB = 1008MB total
[    0.000000] Memory: 933740k/933740k available, 98452k reserved
[    0.000000] Virtual kernel memory layout:
    vmalloc : 0xffffff8000000000 - 0xffffffbbffff0000   (245759 MB)
    vmemmap : 0xffffffbc00e38000 - 0xffffffbc01c00000   (    13 MB)
    modules : 0xffffffbffc000000 - 0xffffffc000000000   (    64 MB)
    memory  : 0xffffffc000000000 - 0xffffffc03f000000   (  1008 MB)
      .init : 0xffffffc000aaf000 - 0xffffffc000b2f9c0   (   515 kB)
      .text : 0xffffffc000080000 - 0xffffffc000aaee84   ( 10428 kB)
      .data : 0xffffffc000b30000 - 0xffffffc000c89218   (  1381 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Dump stacks of tasks blocking RCU-preempt GP.
[    0.000000] NR_IRQS:64 nr_irqs:64 0
[    0.000000] Architected cp15 timer(s) running at 24.00MHz (phys).
[    0.000000] Console: colour dummy device 80x25
[    0.000000] console [tty1] enabled
[    0.000000] allocated 4194304 bytes of page_cgroup
[    0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups
[    9.498397] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    9.498405] pid_max: default: 32768 minimum: 301
[    9.498496] Security Framework initialized
[    9.498538] AppArmor: AppArmor initialized
[    9.498573] Mount-cache hash table entries: 256
[    9.508818] Initializing cgroup subsys memory
[    9.508861] Initializing cgroup subsys devices
[    9.508868] Initializing cgroup subsys freezer
[    9.508874] Initializing cgroup subsys blkio
[    9.508879] Initializing cgroup subsys perf_event
[    9.508888] Initializing cgroup subsys hugetlb
[    9.508948] ftrace: allocating 27458 entries in 108 pages
[    9.539186] CPU0: update cpu_power 1968128
[    9.539204] hw perfevents: enabled with arm/armv8-pmuv3 PMU driver, 7 counters available
[    9.540133] virtual base = 0xffffff800000a000.
[    9.540142] gicd_base = 0xffffff800000c000.
[    9.540147] gicc_base = 0xffffff800000e000.
[    9.540734] CPU1: Booted secondary processor
[    9.540757] CPU1: update cpu_power 1968128
[    9.543358] CPU2: Booted secondary processor
[    9.543370] CPU2: update cpu_power 1968128
[    9.547476] CPU3: Booted secondary processor
[    9.547486] CPU3: update cpu_power 1968128
[    9.547560] Brought up 4 CPUs
[    9.547580] SMP: Total of 4 processors activated (192.00 BogoMIPS).
[    9.548048] devtmpfs: initialized
[    9.552634] pinctrl core: initialized pinctrl subsystem
[    9.554900] NET: Registered protocol family 16
[    9.555125] script_sysfs_init success
[    9.555341] dump_class_init,806, success
[    9.555570] vdso: 2 pages (1 code, 1 data) at base ffffffc000b35000
[    9.555589] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    9.556833] software IO TLB [mem 0x79c00000-0x7a000000] (4MB) mapped at [ffffffc038c00000-ffffffc038ffffff]
[    9.557775] DMA: preallocated 256 KiB pool for atomic allocations
[    9.557887] Serial: AMBA PL011 UART driver
[    9.557972] axp81x_board_init: axp regl_devs num = 23
[    9.558113] pll_audio-set_default_rate=24576000 success!
[    9.558132] pll_video0-set_default_rate=297000000 success!
[    9.558197] pll_video1-set_default_rate=297000000 success!
[    9.558253] pll_de-set_default_rate=297000000 success!
[    9.558945] de-set_default_source=pll_de success!
[    9.558951] de-set_default_rate=297000000 success!
[    9.558996] tcon0-set_default_source=pll_mipi success!
[    9.559026] tcon1-set_default_source=pll_video0 success!
[    9.559236] hdmi-set_default_source=pll_video0 success!
[    9.561351] sun50i-r-pinctrl 1f02c00.pinctrl: initialized sunXi PIO driver
[    9.561509] [sun50iw1p1_pinctrl_probe][838]
[    9.562893] sun50i-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    9.563494] sunxi hwspinlock vbase:0xffffff800005c000
[    9.573442] bio: create slab <bio-0> at 0
[    9.573818] pwm module init!
[    9.574959] SCSI subsystem initialized
[    9.575071] usbcore: registered new interface driver usbfs
[    9.575104] usbcore: registered new interface driver hub
[    9.575170] usbcore: registered new device driver usb
[    9.575839] Linux video capture interface: v2.00
[    9.576283] [ARISC] :sunxi-arisc driver v1.10
[    9.582836] [ARISC] :sunxi-arisc driver v1.10 startup succeeded
[    9.583052] Advanced Linux Sound Architecture Driver Initialized.
[    9.583383] NetLabel: Initializing
[    9.583388] NetLabel:  domain hash size = 128
[    9.583392] NetLabel:  protocols = UNLABELED CIPSOv4
[    9.583429] NetLabel:  unlabeled traffic allowed by default
[    9.583557] [pm]aw_pm_init!
[    9.583616] rtc physical base = 0x0000000001f00000 .
[    9.583647] np name = /soc@01c00000/rtc@01f00000.
[    9.583653] base = ffffff800006e100, len = 4.
[    9.583658] pmu name: pmu0 .
[    9.583689] pmu0_enable = 0x1.
[    9.583694] pmux_id = 0x6.
[    9.583701] pmux_twi_id = 0x1.
[    9.583706] pmux_twi_addr = 0x34.
[    9.583710] pmu name: pmu1 .
[    9.583755] Warning: can not find np for pmu1. 
[    9.583962] add_sys_pwr_dm: get ldo name  for id: vcc-lpddr failed
[    9.584110] after inited: sys_mask config = 0x4a55.
[    9.584131] Warning: can not find np for dynamic_standby_para. 
[    9.584243] [pm]valid
[    9.584247] [pm]valid
[    9.584251] Notice: sun9i&sun8iw5&sun50i not need support normal standby,                            change to super standby.
[    9.584435] Switching to clocksource arch_sys_counter_ool
[    9.594501] AppArmor: AppArmor Filesystem Enabled
[    9.600228] NET: Registered protocol family 2
[    9.600857] TCP established hash table entries: 8192 (order: 5, 131072 bytes)
[    9.600983] TCP bind hash table entries: 8192 (order: 5, 131072 bytes)
[    9.601121] TCP: Hash tables configured (established 8192 bind 8192)
[    9.601190] TCP: reno registered
[    9.601199] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    9.601228] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    9.601443] NET: Registered protocol family 1
[    9.601709] RPC: Registered named UNIX socket transport module.
[    9.601714] RPC: Registered udp transport module.
[    9.601718] RPC: Registered tcp transport module.
[    9.601723] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    9.601871] Trying to unpack rootfs image as initramfs...
[    9.751475] Freeing initrd memory: 3320K (ffffffc035b77000 - ffffffc035eb5000)
[    9.752467] kvm [1]: interrupt-controller@1c84000 IRQ25
[    9.752818] kvm [1]: timer IRQ27
[    9.752830] kvm [1]: Hyp mode initialized successfully
[    9.754396] lock super standby defaultly!
[    9.754408] lookup_scene_lock_name: new scene lock super_standby
[    9.754412] scene_lock_init name=super_standby
[    9.754418] scene_lock: super_standby, type 5, count 1
[    9.754781] audit: initializing netlink socket (disabled)
[    9.754820] type=2000 audit(0.240:1): initialized
[    9.755371] HugeTLB registered 2 MB page size, pre-allocated 0 pages
[    9.755825] VFS: Disk quotas dquot_6.5.2
[    9.755925] Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    9.756816] NFS: Registering the id_resolver key type
[    9.756857] Key type id_resolver registered
[    9.756862] Key type id_legacy registered
[    9.756873] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    9.757006] NTFS driver 2.1.30 [Flags: R/W].
[    9.757163] fuse init (API version 7.22)
[    9.757340] msgmni has been set to 1958
[    9.758288] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
[    9.758368] io scheduler noop registered
[    9.758374] io scheduler deadline registered
[    9.758406] io scheduler cfq registered (default)
[    9.758906] [DISP]disp_module_init
[    9.759289] [DISP] disp_boot_para_parse,line:301:of_property_read disp.boot_disp fail
[    9.759296] [DISP] boot_disp:0x0
[    9.759856] [DISP] disp_sys_script_get_item,line:193:of_find_compatible_node allwinner,sunxi-lcd1 fail
[    9.759988] [DISP] disp_sys_script_get_item,line:193:of_find_compatible_node allwinner,sunxi-lcd1 fail
[    9.760120] [DISP] disp_sys_script_get_item,line:193:of_find_compatible_node allwinner,sunxi-lcd1 fail
[    9.761208] [DISP] disp_boot_para_parse,line:301:of_property_read disp.fb_base fail
[    9.761213] [DISP] fb_base:0x0
[    9.778636] Console: switching to colour frame buffer device 160x45
[    9.793024] [DISP]disp_module_init finish
[    9.793376] uart0: ttyS0 at MMIO 0x1c28000 (irq = 32) is a SUNXI
[    9.793395] sw_console_setup()1173 - console setup baud 115200 parity n bits 8, flow n
[    9.793736] console [ttyS0] enabled
[    9.794104] uart1: ttyS1 at MMIO 0x1c28400 (irq = 33) is a SUNXI
[    9.794322] uart2: ttyS2 at MMIO 0x1c28800 (irq = 34) is a SUNXI
[    9.794621] uart3: ttyS3 at MMIO 0x1c28c00 (irq = 35) is a SUNXI
[    9.794897] uart4: ttyS4 at MMIO 0x1c29000 (irq = 36) is a SUNXI
[    9.795209] misc dump reg init
[    9.795355] [drm] Initialized drm 1.1.0 20060810
[    9.797382] brd: module loaded
[    9.799457] loop: module loaded
[    9.799680] sunxi-bt bt.28: Missing bt_power.
[    9.799687] sunxi-bt bt.28: bt_power_name ((null))
[    9.799695] sunxi-bt bt.28: io_regulator_name (vcc-wifi-io)
[    9.799723] sunxi-bt bt.28: bt_rst gpio=356  mul-sel=1  pull=-1  drv_level=-1  data=0
[    9.799757] sunxi-bt bt.28: clk not config
[    9.799823] sunxi-bt bt.28: block state already is 1
[    9.799991] sunxi-wlan wlan.27: wlan_busnum (1)
[    9.799999] sunxi-wlan wlan.27: Missing wlan_power.
[    9.800005] sunxi-wlan wlan.27: wlan_power_name ((null))
[    9.800012] sunxi-wlan wlan.27: io_regulator_name (vcc-wifi-io)
[    9.800029] sunxi-wlan wlan.27: wlan_regon gpio=354  mul-sel=1  pull=-1  drv_level=-1  data=0
[    9.800047] sunxi-wlan wlan.27: wlan_hostwake gpio=355  mul-sel=6  pull=-1  drv_level=-1  data=0
[    9.800063] sunxi-wlan wlan.27: clk not config
[    9.800725] WARNING: Get ephy clock is failed
[    9.801184] PPP generic driver version 2.4.2
[    9.801294] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    9.801399] get ehci0-controller drv_vbus_gpio is fail
[    9.801405] get ehci0-controller, regulator_io is no nocare
[    9.801453] [sunxi-ehci0]: probe, pdev->name: 1c1a000.ehci0-controller, sunxi_ehci: 0xffffffc000d12b00, 0x:ffffff80000a8000, irq_no:68
[    9.801501] sunxi-ehci 1c1a000.ehci0-controller: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
[    9.801522] sunxi-ehci 1c1a000.ehci0-controller: new USB bus registered, assigned bus number 1
[    9.801871] sunxi-ehci 1c1a000.ehci0-controller: irq 104, io mem 0xffffffc00058278c
[    9.820650] sunxi-ehci 1c1a000.ehci0-controller: USB 0.0 started, EHCI 1.00
[    9.821016] hub 1-0:1.0: USB hub found
[    9.821034] hub 1-0:1.0: 1 port detected
[    9.821164] scene_lock_init name=ehci_standby
[    9.821237] get ehci1-controller drv_vbus_gpio is fail
[    9.821243] get ehci1-controller, regulator_io is no nocare
[    9.821282] [sunxi-ehci1]: probe, pdev->name: 1c1b000.ehci1-controller, sunxi_ehci: 0xffffffc000d12d50, 0x:ffffff80000b0000, irq_no:6a
[    9.821328] sunxi-ehci 1c1b000.ehci1-controller: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
[    9.821343] sunxi-ehci 1c1b000.ehci1-controller: new USB bus registered, assigned bus number 2
[    9.821571] sunxi-ehci 1c1b000.ehci1-controller: irq 106, io mem 0xffffffc00058278c
[    9.840333] sunxi-ehci 1c1b000.ehci1-controller: USB 0.0 started, EHCI 1.00
[    9.840631] hub 2-0:1.0: USB hub found
[    9.840644] hub 2-0:1.0: 1 port detected
[    9.840760] scene_lock_init name=ehci_standby
[    9.840927] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    9.841058] get ohci0-controller drv_vbus_gpio is fail
[    9.841064] get ohci0-controller, regulator_io is no nocare
[    9.841100] [sunxi-ohci0]: probe, pdev->name: 1c1a000.ohci0-controller, sunxi_ohci: 0xffffffc000d12660
[    9.841146] sunxi-ohci 1c1a000.ohci0-controller: SW USB2.0 'Open' Host Controller (OHCI) Driver
[    9.841161] sunxi-ohci 1c1a000.ohci0-controller: new USB bus registered, assigned bus number 3
[    9.841184] sunxi-ohci 1c1a000.ohci0-controller: irq 105, io mem 0x6e6b61ff726b6b64
[    9.903602] hub 3-0:1.0: USB hub found
[    9.903616] hub 3-0:1.0: 1 port detected
[    9.903732] scene_lock_init name=ohci_standby
[    9.903792] get ohci1-controller drv_vbus_gpio is fail
[    9.903797] get ohci1-controller, regulator_io is no nocare
[    9.903828] [sunxi-ohci1]: probe, pdev->name: 1c1b000.ohci1-controller, sunxi_ohci: 0xffffffc000d128b0
[    9.903869] sunxi-ohci 1c1b000.ohci1-controller: SW USB2.0 'Open' Host Controller (OHCI) Driver
[    9.903883] sunxi-ohci 1c1b000.ohci1-controller: new USB bus registered, assigned bus number 4
[    9.903906] sunxi-ohci 1c1b000.ohci1-controller: irq 107, io mem 0x6e6b61ff726b6b64
[    9.962656] hub 4-0:1.0: USB hub found
[    9.962669] hub 4-0:1.0: 1 port detected
[    9.962780] scene_lock_init name=ohci_standby
[    9.963049] usbcore: registered new interface driver usb-storage
[    9.963087] usbcore: registered new interface driver ums-alauda
[    9.963111] usbcore: registered new interface driver ums-cypress
[    9.963135] usbcore: registered new interface driver ums-datafab
[    9.963158] usbcore: registered new interface driver ums_eneub6250
[    9.963180] usbcore: registered new interface driver ums-freecom
[    9.963204] usbcore: registered new interface driver ums-isd200
[    9.963228] usbcore: registered new interface driver ums-jumpshot
[    9.963250] usbcore: registered new interface driver ums-karma
[    9.963274] usbcore: registered new interface driver ums-onetouch
[    9.963307] usbcore: registered new interface driver ums-realtek
[    9.963331] usbcore: registered new interface driver ums-sddr09
[    9.963355] usbcore: registered new interface driver ums-sddr55
[    9.963379] usbcore: registered new interface driver ums-usbat
[    9.963457] usbcore: registered new interface driver usbserial
[    9.963482] usbcore: registered new interface driver usbserial_generic
[    9.963505] usbserial: USB Serial support registered for generic
[    9.963686] mousedev: PS/2 mouse device common for all mice
[    9.964087] input: sunxi-keyboard as /devices/virtual/input/input0
[    9.964876] get ctp_para failed, -1
[    9.964899] get_detect_list name = sc7a30
[    9.964905] get_detect_list name = lsm303d
[    9.964910] get_detect_list name = fxos8700
[    9.964915] get_detect_list name = mxc622x
[    9.964920] get_detect_list name = dmard06
[    9.964925] get_detect_list name = dmard10
[    9.964930] get_detect_list name = kxtik
[    9.964935] get_detect_list name = lis3dh_acc
[    9.964940] get_detect_list name = lis3de_acc
[    9.964945] get_detect_list name = afa750
[    9.964950] get_detect_list name = mc32x0
[    9.964955] get_detect_list: script_get_item err.support_number = 6. 
[    9.964959] get_detect_list name = mma865x
[    9.964964] get_detect_list name = mma7660
[    9.964969] get_detect_list name = mma8452
[    9.964974] get_detect_list name = stk831x
[    9.964979] get_detect_list: script_get_item err.support_number = 2. 
[    9.964983] get_detect_list name = bma250
[    9.964988] get_detect_list name = lsm9ds0_acc_mag
[    9.965009] sw_get_write_info:open error ....IS(filp):1
[    9.965020] sw_set_write_info:open error ....IS(filp):1
[    9.965024] get write info erro!
[    9.965180] twi_start()370 - [i2c1] START can't sendout!
[    9.965426] twi_start()370 - [i2c1] START can't sendout!
[    9.965671] twi_start()370 - [i2c1] START can't sendout!
[    9.966017] sunxi-rtc 1f00000.rtc: rtc core: registered rtc-sunxi as rtc0
[    9.966035] sunxi-rtc 1f00000.rtc: RTC enabled
[    9.966198] i2c /dev entries driver
[    9.978240] twi_start()370 - [i2c1] START can't sendout!
[    9.978487] twi_start()370 - [i2c1] START can't sendout!
[    9.978733] twi_start()370 - [i2c1] START can't sendout!
[    9.997971] twi_start()370 - [i2c1] START can't sendout!
[    9.998218] twi_start()370 - [i2c1] START can't sendout!
[    9.998463] twi_start()370 - [i2c1] START can't sendout!
[   10.008136] input: axp81x-supplyer as /devices/platform/axp81x_board/axp81x-supplyer.47/input/input1
[   10.011449] sunxi budget cooling probe start !
[   10.011473] CPU freq cooling register Success
[   10.011492] CPU hotplug cooling register Success
[   10.011574] thermal thermal_zone0: binding zone soc_thermal with cdev sunxi-budget failed:-22
[   10.011582] CPU budget cooling register Success
[   10.011783] sunxi gpu cooling probe start !
[   10.011792] CPU gpu cooling register Success
[   10.012350] cpuidle: using governor ladder
[   10.012357] cpuidle: using governor menu
[   10.013084] sunxi-mmc 1c0f000.sdmmc: SD/MMC/SDIO Host Controller Driver(v0.20 2015-7-13 16:28) Compiled in Jun  7 2017 at 12:03:20
[   10.013108] sunxi-mmc 1c0f000.sdmmc: regulator prop vmmc,str none
[   10.013117] sunxi-mmc 1c0f000.sdmmc: regulator prop vqmmc,str none
[   10.013125] sunxi-mmc 1c0f000.sdmmc: regulator prop vdmmc,str vcc-sdc
[   10.013171] sunxi-mmc 1c0f000.sdmmc: No vmmc regulator found
[   10.013178] sunxi-mmc 1c0f000.sdmmc: No vqmmc regulator found
[   10.013613] sunxi-mmc 1c0f000.sdmmc: Got CD GPIO #166.
[   10.013700] sunxi-mmc 1c0f000.sdmmc: sdc set ios: clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
[   10.013722] sunxi-mmc 1c0f000.sdmmc: no vqmmc,Check if there is regulator
[   10.017627] twi_start()370 - [i2c1] START can't sendout!
[   10.017873] twi_start()370 - [i2c1] START can't sendout!
[   10.018118] twi_start()370 - [i2c1] START can't sendout!
[   10.027282] sunxi-mmc 1c0f000.sdmmc: sdc set ios: clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[   10.037259] twi_start()370 - [i2c1] START can't sendout!
[   10.037505] twi_start()370 - [i2c1] START can't sendout!
[   10.037751] twi_start()370 - [i2c1] START can't sendout!
[   10.046971] sunxi-mmc 1c0f000.sdmmc: base:0xffffff80000d6000 irq:92
[   10.047371] sunxi-mmc 1c10000.sdmmc: SD/MMC/SDIO Host Controller Driver(v0.20 2015-7-13 16:28) Compiled in Jun  7 2017 at 12:03:20
[   10.047395] sunxi-mmc 1c10000.sdmmc: Can't get vmmc regulator string
[   10.047403] sunxi-mmc 1c10000.sdmmc: Can't get vqmmc regulator string
[   10.047410] sunxi-mmc 1c10000.sdmmc: Can't get vdmmc regulator string
[   10.047415] get() with no identifier
[   10.047418] get() with no identifier
[   10.047422] get() with no identifier
[   10.047427] sunxi-mmc 1c10000.sdmmc: No vmmc regulator found
[   10.047433] sunxi-mmc 1c10000.sdmmc: No vqmmc regulator found
[   10.047439] sunxi-mmc 1c10000.sdmmc: No vdmmc regulator found
[   10.047799] sunxi-mmc 1c10000.sdmmc: sdc set ios: clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
[   10.047818] sunxi-mmc 1c10000.sdmmc: no vqmmc,Check if there is regulator
[   10.057025] twi_start()370 - [i2c1] START can't sendout!
[   10.057271] twi_start()370 - [i2c1] START can't sendout!
[   10.057517] twi_start()370 - [i2c1] START can't sendout!
[   10.066651] sunxi-mmc 1c10000.sdmmc: sdc set ios: clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[   10.076623] twi_start()370 - [i2c1] START can't sendout!
[   10.076869] twi_start()370 - [i2c1] START can't sendout!
[   10.077115] twi_start()370 - [i2c1] START can't sendout!
[   10.086333] sunxi-mmc 1c10000.sdmmc: base:0xffffff80000de000 irq:93
[   10.086939] ledtrig-cpu: registered to indicate activity on CPUs
[   10.087005] hidraw: raw HID events driver (C) Jiri Kosina
[   10.087128] usbcore: registered new interface driver usbhid
[   10.087132] usbhid: USB HID core driver
[   10.087891] usbcore: registered new interface driver snd-usb-audio
[   10.089762] sndhdmi sound.8:  sndhdmi <-> 1c22800.daudio mapping ok
[   10.090477] TCP: cubic registered
[   10.090485] Initializing XFRM netlink socket
[   10.090567] NET: Registered protocol family 10
[   10.091307] mip6: Mobile IPv6
[   10.091314] sit: IPv6 over IPv4 tunneling driver
[   10.091651] NET: Registered protocol family 17
[   10.091673] NET: Registered protocol family 15
[   10.091713] 8021q: 802.1Q VLAN Support v1.8
[   10.091756] Key type dns_resolver registered
[   10.091952] Registering SWP/SWPB emulation handler
[   10.092207] registered taskstats version 1
[   10.096351] twi_start()370 - [i2c1] START can't sendout!
[   10.096605] twi_start()370 - [i2c1] START can't sendout!
[   10.096851] twi_start()370 - [i2c1] START can't sendout!
[   10.101175] Key type encrypted registered
[   10.101195] AppArmor: AppArmor sha1 policy hashing enabled
[   10.101562] [DISP] disp_boot_para_parse,line:301:of_property_read disp.boot_disp fail
[   10.101569] [DISP] boot_disp:0x0
[   10.101597] HDMI base address: ffffff8000c40000
[   10.102315] [HDMI] power vcc-hdmi-33
[   10.102813] [HDMI] cec support = 0
[   10.115989] twi_start()370 - [i2c1] START can't sendout!
[   10.116236] twi_start()370 - [i2c1] START can't sendout!
[   10.116481] twi_start()370 - [i2c1] START can't sendout!
[   10.135661] twi_start()370 - [i2c1] START can't sendout!
[   10.135908] twi_start()370 - [i2c1] START can't sendout!
[   10.136153] twi_start()370 - [i2c1] START can't sendout!
[   10.146198] sunxi-mmc 1c0f000.sdmmc: smc 0 p0 err, cmd 52, RTO !!
[   10.147014] sunxi-mmc 1c0f000.sdmmc: smc 0 p0 err, cmd 52, RTO !!
[   10.147032] sunxi-mmc 1c0f000.sdmmc: sdc set ios: clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[   10.149429] sunxi-mmc 1c0f000.sdmmc: sdc set ios: clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[   10.151554] sunxi-mmc 1c0f000.sdmmc: smc 0 p0 err, cmd 5, RTO !!
[   10.152365] sunxi-mmc 1c0f000.sdmmc: smc 0 p0 err, cmd 5, RTO !!
[   10.153177] sunxi-mmc 1c0f000.sdmmc: smc 0 p0 err, cmd 5, RTO !!
[   10.153986] sunxi-mmc 1c0f000.sdmmc: smc 0 p0 err, cmd 5, RTO !!
[   10.154611] sunxi-mmc 1c0f000.sdmmc: sdc set ios: clk 400000Hz bm PP pm ON vdd 16 width 1 timing LEGACY(SDR12) dt B
[   10.154654] sunxi-mmc 1c0f000.sdmmc: sdc set ios: clk 400000Hz bm PP pm ON vdd 16 width 1 timing LEGACY(SDR12) dt B
[   10.155382] twi_start()370 - [i2c1] START can't sendout!
[   10.155628] twi_start()370 - [i2c1] START can't sendout!
[   10.155874] twi_start()370 - [i2c1] START can't sendout!
[   10.157027] sunxi-mmc 1c0f000.sdmmc: sdc set ios: clk 400000Hz bm PP pm ON vdd 16 width 1 timing LEGACY(SDR12) dt B
[   10.175021] twi_start()370 - [i2c1] START can't sendout!
[   10.175268] twi_start()370 - [i2c1] START can't sendout!
[   10.175513] twi_start()370 - [i2c1] START can't sendout!
[   10.181828] mmc0: host does not support reading read-only switch. assuming write-enable.
[   10.183655] sunxi-mmc 1c0f000.sdmmc: sdc set ios: clk 400000Hz bm PP pm ON vdd 16 width 1 timing SD-HS(SDR25) dt B
[   10.183700] sunxi-mmc 1c0f000.sdmmc: sdc set ios: clk 50000000Hz bm PP pm ON vdd 16 width 1 timing SD-HS(SDR25) dt B
[   10.183800] sunxi-mmc 1c0f000.sdmmc: sdc set ios: clk 50000000Hz bm PP pm ON vdd 16 width 4 timing SD-HS(SDR25) dt B
[   10.183824] mmc0: new high speed SDHC card at address b368
[   10.184236] mmcblk0: mmc0:b368 00000 7.51 GiB
[   10.186017]  mmcblk0: p1
[   10.187097] sunxi-mmc 1c10000.sdmmc: smc 1 p1 err, cmd 52, RTO !!
[   10.187907] sunxi-mmc 1c10000.sdmmc: smc 1 p1 err, cmd 52, RTO !!
[   10.187924] sunxi-mmc 1c10000.sdmmc: sdc set ios: clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[   10.190307] sunxi-mmc 1c10000.sdmmc: sdc set ios: clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[   10.192124] sunxi-mmc 1c10000.sdmmc: smc 1 p1 err, cmd 8, RTO !!
[   10.192931] sunxi-mmc 1c10000.sdmmc: smc 1 p1 err, cmd 5, RTO !!
[   10.193738] sunxi-mmc 1c10000.sdmmc: smc 1 p1 err, cmd 5, RTO !!
[   10.194545] sunxi-mmc 1c10000.sdmmc: smc 1 p1 err, cmd 5, RTO !!
[   10.194710] twi_start()370 - [i2c1] START can't sendout!
[   10.194957] twi_start()370 - [i2c1] START can't sendout!
[   10.195203] twi_start()370 - [i2c1] START can't sendout!
[   10.195367] sunxi-mmc 1c10000.sdmmc: smc 1 p1 err, cmd 5, RTO !!
[   10.196176] sunxi-mmc 1c10000.sdmmc: smc 1 p1 err, cmd 55, RTO !!
[   10.196983] sunxi-mmc 1c10000.sdmmc: smc 1 p1 err, cmd 55, RTO !!
[   10.197789] sunxi-mmc 1c10000.sdmmc: smc 1 p1 err, cmd 55, RTO !!
[   10.198596] sunxi-mmc 1c10000.sdmmc: smc 1 p1 err, cmd 55, RTO !!
[   10.198612] sunxi-mmc 1c10000.sdmmc: sdc set ios: clk 400000Hz bm OD pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[   10.199446] sunxi-mmc 1c10000.sdmmc: smc 1 p1 err, cmd 1, RTO !!
[   10.199463] sunxi-mmc 1c10000.sdmmc: sdc set ios: clk 0Hz bm OD pm OFF vdd 0 width 1 timing LEGACY(SDR12) dt B
[   10.206017] input: sunxi-ths as /devices/virtual/input/input2
[   10.206143] thermal thermal_zone0: failed to read out thermal zone 0
[   10.206486] ALSA device list:
[   10.206492]   #0: sndhdmi
[   10.206853] Freeing unused kernel memory: 512K (ffffffc000aaf000 - ffffffc000b2f000)
[   10.214436] twi_start()370 - [i2c1] START can't sendout!
[   10.214688] twi_start()370 - [i2c1] START can't sendout!
[   10.214934] twi_start()370 - [i2c1] START can't sendout!
[   10.230064] systemd-udevd[142]: starting version 215
[   10.234120] twi_start()370 - [i2c1] START can't sendout!
[   10.234373] twi_start()370 - [i2c1] START can't sendout!
[   10.234619] twi_start()370 - [i2c1] START can't sendout!
[   10.253849] twi_start()370 - [i2c1] START can't sendout!
[   10.254106] twi_start()370 - [i2c1] START can't sendout!
[   10.254354] twi_start()370 - [i2c1] START can't sendout!
[   10.273481] twi_start()370 - [i2c1] START can't sendout!
[   10.273736] twi_start()370 - [i2c1] START can't sendout!
[   10.273983] twi_start()370 - [i2c1] START can't sendout!
[   10.293154] twi_start()370 - [i2c1] START can't sendout!
[   10.293408] twi_start()370 - [i2c1] START can't sendout!
[   10.293654] twi_start()370 - [i2c1] START can't sendout!
[   10.312825] twi_start()370 - [i2c1] START can't sendout!
[   10.313081] twi_start()370 - [i2c1] START can't sendout!
[   10.313349] twi_start()370 - [i2c1] START can't sendout!
[   10.332502] twi_start()370 - [i2c1] START can't sendout!
[   10.332756] twi_start()370 - [i2c1] START can't sendout!
[   10.333005] twi_start()370 - [i2c1] START can't sendout!
[   10.352275] twi_start()370 - [i2c1] START can't sendout!
[   10.352530] twi_start()370 - [i2c1] START can't sendout!
[   10.352777] twi_start()370 - [i2c1] START can't sendout!
[   10.372058] twi_start()370 - [i2c1] START can't sendout!
[   10.372312] twi_start()370 - [i2c1] START can't sendout!
[   10.372559] twi_start()370 - [i2c1] START can't sendout!
[   10.391513] twi_start()370 - [i2c1] START can't sendout!
[   10.391765] twi_start()370 - [i2c1] START can't sendout!
[   10.392015] twi_start()370 - [i2c1] START can't sendout!
[   10.411188] twi_start()370 - [i2c1] START can't sendout!
[   10.411437] twi_start()370 - [i2c1] START can't sendout!
[   10.411682] twi_start()370 - [i2c1] START can't sendout!
[   10.430959] twi_start()370 - [i2c1] START can't sendout!
[   10.431211] twi_start()370 - [i2c1] START can't sendout!
[   10.431457] twi_start()370 - [i2c1] START can't sendout!
[   10.450550] twi_start()370 - [i2c1] START can't sendout!
[   10.450798] twi_start()370 - [i2c1] START can't sendout!
[   10.451043] twi_start()370 - [i2c1] START can't sendout!
[   10.470248] twi_start()370 - [i2c1] START can't sendout!
[   10.470501] twi_start()370 - [i2c1] START can't sendout!
[   10.470748] twi_start()370 - [i2c1] START can't sendout!
[   10.489903] twi_start()370 - [i2c1] START can't sendout!
[   10.490151] twi_start()370 - [i2c1] START can't sendout!
[   10.490396] twi_start()370 - [i2c1] START can't sendout!
[   10.509581] twi_start()370 - [i2c1] START can't sendout!
[   10.509890] twi_start()370 - [i2c1] START can't sendout!
[   10.510136] twi_start()370 - [i2c1] START can't sendout!
[   10.529334] twi_start()370 - [i2c1] START can't sendout!
[   10.529588] twi_start()370 - [i2c1] START can't sendout!
[   10.529835] twi_start()370 - [i2c1] START can't sendout!
[   10.548995] twi_start()370 - [i2c1] START can't sendout!
[   10.549246] twi_start()370 - [i2c1] START can't sendout!
[   10.549493] twi_start()370 - [i2c1] START can't sendout!
[   10.568657] twi_start()370 - [i2c1] START can't sendout!
[   10.568910] twi_start()370 - [i2c1] START can't sendout!
[   10.569155] twi_start()370 - [i2c1] START can't sendout!
[   10.588305] twi_start()370 - [i2c1] START can't sendout!
[   10.588554] twi_start()370 - [i2c1] START can't sendout!
[   10.588799] twi_start()370 - [i2c1] START can't sendout!
[   10.608058] twi_start()370 - [i2c1] START can't sendout!
[   10.608311] twi_start()370 - [i2c1] START can't sendout!
[   10.608557] twi_start()370 - [i2c1] START can't sendout!
[   10.627661] twi_start()370 - [i2c1] START can't sendout!
[   10.627907] twi_start()370 - [i2c1] START can't sendout!
[   10.628155] twi_start()370 - [i2c1] START can't sendout!
[   10.647346] twi_start()370 - [i2c1] START can't sendout!
[   10.647592] twi_start()370 - [i2c1] START can't sendout!
[   10.647838] twi_start()370 - [i2c1] START can't sendout!
[   10.667063] twi_start()370 - [i2c1] START can't sendout!
[   10.667317] twi_start()370 - [i2c1] START can't sendout!
[   10.667566] twi_start()370 - [i2c1] START can't sendout!
[   10.686715] twi_start()370 - [i2c1] START can't sendout!
[   10.686968] twi_start()370 - [i2c1] START can't sendout!
[   10.687213] twi_start()370 - [i2c1] START can't sendout!
[   10.706384] twi_start()370 - [i2c1] START can't sendout!
[   10.706632] twi_start()370 - [i2c1] START can't sendout!
[   10.706878] twi_start()370 - [i2c1] START can't sendout!
[   10.726061] twi_start()370 - [i2c1] START can't sendout!
[   10.726309] twi_start()370 - [i2c1] START can't sendout!
[   10.726554] twi_start()370 - [i2c1] START can't sendout!
[   10.745776] twi_start()370 - [i2c1] START can't sendout!
[   10.746025] twi_start()370 - [i2c1] START can't sendout!
[   10.746270] twi_start()370 - [i2c1] START can't sendout!
[   10.765445] twi_start()370 - [i2c1] START can't sendout!
[   10.765697] twi_start()370 - [i2c1] START can't sendout!
[   10.765943] twi_start()370 - [i2c1] START can't sendout!
[   10.785129] twi_start()370 - [i2c1] START can't sendout!
[   10.785381] twi_start()370 - [i2c1] START can't sendout!
[   10.785627] twi_start()370 - [i2c1] START can't sendout!
[   10.804658] [DISP] disp_device_attached_and_enable,line:159:attched ok, mgr0<-->device1, type=4, mode=5
[   10.804790] twi_start()370 - [i2c1] START can't sendout!
[   10.805040] twi_start()370 - [i2c1] START can't sendout!
[   10.805285] twi_start()370 - [i2c1] START can't sendout!
[   10.824460] twi_start()370 - [i2c1] START can't sendout!
[   10.824707] twi_start()370 - [i2c1] START can't sendout!
[   10.824952] twi_start()370 - [i2c1] START can't sendout!
[   10.844141] twi_start()370 - [i2c1] START can't sendout!
[   10.844387] twi_start()370 - [i2c1] START can't sendout!
[   10.844632] twi_start()370 - [i2c1] START can't sendout!
[   10.863818] twi_start()370 - [i2c1] START can't sendout!
[   10.864064] twi_start()370 - [i2c1] START can't sendout!
[   10.864310] twi_start()370 - [i2c1] START can't sendout!
[   10.883500] twi_start()370 - [i2c1] START can't sendout!
[   10.883746] twi_start()370 - [i2c1] START can't sendout!
[   10.883991] twi_start()370 - [i2c1] START can't sendout!
[   10.903179] twi_start()370 - [i2c1] START can't sendout!
[   10.903426] twi_start()370 - [i2c1] START can't sendout!
[   10.903672] twi_start()370 - [i2c1] START can't sendout!
[   10.922858] twi_start()370 - [i2c1] START can't sendout!
[   10.923104] twi_start()370 - [i2c1] START can't sendout!
[   10.923349] twi_start()370 - [i2c1] START can't sendout!
[   10.942537] twi_start()370 - [i2c1] START can't sendout!
[   10.942784] twi_start()370 - [i2c1] START can't sendout!
[   10.943029] twi_start()370 - [i2c1] START can't sendout!
[   10.962218] twi_start()370 - [i2c1] START can't sendout!
[   10.962464] twi_start()370 - [i2c1] START can't sendout!
[   10.962709] twi_start()370 - [i2c1] START can't sendout!
[   10.981900] twi_start()370 - [i2c1] START can't sendout!
[   10.982146] twi_start()370 - [i2c1] START can't sendout!
[   10.982391] twi_start()370 - [i2c1] START can't sendout!
[   11.001580] twi_start()370 - [i2c1] START can't sendout!
[   11.001827] twi_start()370 - [i2c1] START can't sendout!
[   11.002072] twi_start()370 - [i2c1] START can't sendout!
[   11.021261] twi_start()370 - [i2c1] START can't sendout!
[   11.021507] twi_start()370 - [i2c1] START can't sendout!
[   11.021753] twi_start()370 - [i2c1] START can't sendout!
[   11.040942] twi_start()370 - [i2c1] START can't sendout!
[   11.041188] twi_start()370 - [i2c1] START can't sendout!
[   11.041433] twi_start()370 - [i2c1] START can't sendout!
[   11.060621] twi_start()370 - [i2c1] START can't sendout!
[   11.060867] twi_start()370 - [i2c1] START can't sendout!
[   11.061112] twi_start()370 - [i2c1] START can't sendout!
[   11.080303] twi_start()370 - [i2c1] START can't sendout!
[   11.080549] twi_start()370 - [i2c1] START can't sendout!
[   11.080794] twi_start()370 - [i2c1] START can't sendout!
[   11.099983] twi_start()370 - [i2c1] START can't sendout!
[   11.100230] twi_start()370 - [i2c1] START can't sendout!
[   11.100475] twi_start()370 - [i2c1] START can't sendout!
[   11.119661] twi_start()370 - [i2c1] START can't sendout!
[   11.119907] twi_start()370 - [i2c1] START can't sendout!
[   11.120152] twi_start()370 - [i2c1] START can't sendout!
[   11.139342] twi_start()370 - [i2c1] START can't sendout!
[   11.139588] twi_start()370 - [i2c1] START can't sendout!
[   11.139833] twi_start()370 - [i2c1] START can't sendout!
[   11.159021] twi_start()370 - [i2c1] START can't sendout!
[   11.159267] twi_start()370 - [i2c1] START can't sendout!
[   11.159512] twi_start()370 - [i2c1] START can't sendout!
[   11.178703] twi_start()370 - [i2c1] START can't sendout!
[   11.178949] twi_start()370 - [i2c1] START can't sendout!
[   11.179195] twi_start()370 - [i2c1] START can't sendout!
[   11.198383] twi_start()370 - [i2c1] START can't sendout!
[   11.198630] twi_start()370 - [i2c1] START can't sendout!
[   11.198876] twi_start()370 - [i2c1] START can't sendout!
[   11.218061] twi_start()370 - [i2c1] START can't sendout!
[   11.218307] twi_start()370 - [i2c1] START can't sendout!
[   11.218552] twi_start()370 - [i2c1] START can't sendout!
[   11.237742] twi_start()370 - [i2c1] START can't sendout!
[   11.237988] twi_start()370 - [i2c1] START can't sendout!
[   11.238233] twi_start()370 - [i2c1] START can't sendout!
[   11.257423] twi_start()370 - [i2c1] START can't sendout!
[   11.257669] twi_start()370 - [i2c1] START can't sendout!
[   11.257915] twi_start()370 - [i2c1] START can't sendout!
[   11.277104] twi_start()370 - [i2c1] START can't sendout!
[   11.277350] twi_start()370 - [i2c1] START can't sendout!
[   11.277595] twi_start()370 - [i2c1] START can't sendout!
[   11.296783] twi_start()370 - [i2c1] START can't sendout!
[   11.297030] twi_start()370 - [i2c1] START can't sendout!
[   11.297276] twi_start()370 - [i2c1] START can't sendout!
[   11.316461] twi_start()370 - [i2c1] START can't sendout!
[   11.316707] twi_start()370 - [i2c1] START can't sendout!
[   11.316952] twi_start()370 - [i2c1] START can't sendout!
[   11.336009] get node lightsensor failed
[   11.336014] get sysconfig para erro!
[   11.336023] get node gyroscopesensor failed
[   11.336027] get sysconfig para erro!
[   11.336036] get node compasssensor failed
[   11.336039] get sysconfig para erro!
[   11.336061] wakeup gpio set err!get node ctp failed
[   11.395047] get sysconfig para erro!
[   13.550008] [ehci0-controller]: sunxi_usb_disable_ehci
[   13.550023] [sunxi-ehci0]: remove, pdev->name: 1c1a000.ehci0-controller, sunxi_ehci: 0xffffffc000d12b00
[   13.550042] scene_lock_destroy name=ehci_standby
[   13.550054] sunxi-ehci 1c1a000.ehci0-controller: remove, state 4
[   13.550073] usb usb1: USB disconnect, device number 1
[   13.550552] sunxi-ehci 1c1a000.ehci0-controller: USB bus 1 deregistered
[   13.550584] [ohci0-controller]: sunxi_usb_disable_ohci
[   13.550592] [sunxi-ohci0]: remove, pdev->name: 1c1a000.ohci0-controller, sunxi_ohci: 0xffffffc000d12660
[   13.550597] scene_lock_destroy name=ohci_standby
[   13.550604] sunxi-ohci 1c1a000.ohci0-controller: remove, state 4
[   13.550621] usb usb3: USB disconnect, device number 1
[   13.551004] sunxi-ohci 1c1a000.ohci0-controller: USB bus 3 deregistered
[   13.551038] [ehci0-controller]: sunxi_usb_enable_ehci
[   13.551045] [sunxi-ehci0]: probe, pdev->name: 1c1a000.ehci0-controller, sunxi_ehci: 0xffffffc000d12b00, 0x:ffffff80000a8000, irq_no:68
[   13.551088] sunxi-ehci 1c1a000.ehci0-controller: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
[   13.551112] sunxi-ehci 1c1a000.ehci0-controller: new USB bus registered, assigned bus number 1
[   13.552541] sunxi-ehci 1c1a000.ehci0-controller: irq 104, io mem 0xffffffc0000b8688
[   13.569697] sunxi-ehci 1c1a000.ehci0-controller: USB 0.0 started, EHCI 1.00
[   13.570148] hub 1-0:1.0: USB hub found
[   13.570168] hub 1-0:1.0: 1 port detected
[   13.570318] scene_lock_init name=ehci_standby
[   13.570326] [ohci0-controller]: sunxi_usb_enable_ohci
[   13.570333] [sunxi-ohci0]: probe, pdev->name: 1c1a000.ohci0-controller, sunxi_ohci: 0xffffffc000d12660
[   13.570379] sunxi-ohci 1c1a000.ohci0-controller: SW USB2.0 'Open' Host Controller (OHCI) Driver
[   13.570396] sunxi-ohci 1c1a000.ohci0-controller: new USB bus registered, assigned bus number 3
[   13.570434] sunxi-ohci 1c1a000.ohci0-controller: irq 105, io mem 0xffffffc0000b8688
[   13.633072] hub 3-0:1.0: USB hub found
[   13.633094] hub 3-0:1.0: 1 port detected
[   13.633243] scene_lock_init name=ohci_standby
[   21.134835] EXT4-fs (mmcblk0p1): mounted filesystem with writeback data mode. Opts: (null)
[   21.693901] systemd[1]: systemd 215 running in system mode. (+PAM +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ -SECCOMP -APPARMOR)
[   21.694073] systemd[1]: Detected architecture 'arm64'.
[   21.729133] systemd[1]: Set hostname to <pine64>.
[   22.248885] systemd[1]: Cannot add dependency job for unit display-manager.service, ignoring: Unit display-manager.service failed to load: No such file or directory.
[   22.250336] systemd[1]: Expecting device dev-ttyS0.device...
[   22.268330] systemd[1]: Starting Forward Password Requests to Wall Directory Watch.
[   22.268516] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[   22.268566] systemd[1]: Starting Remote File Systems (Pre).
[   22.287963] systemd[1]: Reached target Remote File Systems (Pre).
[   22.288087] systemd[1]: Starting Arbitrary Executable File Formats File System Automount Point.
[   22.307668] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[   22.307746] systemd[1]: Starting Dispatch Password Requests to Console Directory Watch.
[   22.307878] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[   22.307915] systemd[1]: Starting Paths.
[   22.327330] systemd[1]: Reached target Paths.
[   22.327369] systemd[1]: Starting Encrypted Volumes.
[   22.347001] systemd[1]: Reached target Encrypted Volumes.
[   22.347051] systemd[1]: Starting Root Slice.
[   22.366686] systemd[1]: Created slice Root Slice.
[   22.366732] systemd[1]: Starting /dev/initctl Compatibility Named Pipe.
[   22.386371] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[   22.386412] systemd[1]: Starting Delayed Shutdown Socket.
[   22.406043] systemd[1]: Listening on Delayed Shutdown Socket.
[   22.406086] systemd[1]: Starting Journal Socket (/dev/log).
[   22.425738] systemd[1]: Listening on Journal Socket (/dev/log).
[   22.425789] systemd[1]: Starting User and Session Slice.
[   22.445410] systemd[1]: Created slice User and Session Slice.
[   22.445468] systemd[1]: Starting udev Control Socket.
[   22.465086] systemd[1]: Listening on udev Control Socket.
[   22.465136] systemd[1]: Starting udev Kernel Socket.
[   22.484776] systemd[1]: Listening on udev Kernel Socket.
[   22.484852] systemd[1]: Starting Journal Socket.
[   22.504453] systemd[1]: Listening on Journal Socket.
[   22.504581] systemd[1]: Starting System Slice.
[   22.524127] systemd[1]: Created slice System Slice.
[   22.524235] systemd[1]: Starting Increase datagram queue length...
[   22.545501] systemd[1]: Starting Nameserver information manager...
[   22.565217] systemd[1]: Starting Restore / save the current clock...
[   22.599118] systemd[1]: Mounting Debug File System...
[   22.628604] systemd[1]: Started Set Up Additional Binary Formats.
[   22.628717] systemd[1]: Mounting POSIX Message Queue File System...
[   22.653736] systemd[1]: Mounting Huge Pages File System...
[   22.673601] systemd[1]: Starting Create list of required static device nodes for the current kernel...
[   22.693855] systemd[1]: Starting udev Coldplug all Devices...
[   22.712921] systemd[1]: Starting LSB: Set keymap...
[   22.732438] systemd[1]: Starting system-serial\x2dgetty.slice.
[   22.750559] systemd[1]: Created slice system-serial\x2dgetty.slice.
[   22.750646] systemd[1]: Starting system-getty.slice.
[   22.770236] systemd[1]: Created slice system-getty.slice.
[   22.775246] systemd[1]: Starting Load Kernel Modules...
[   22.791511] systemd[1]: Started File System Check on Root Device.
[   22.791621] systemd[1]: Starting Slices.
[   22.809581] systemd[1]: Reached target Slices.
[   22.829261] systemd[1]: Mounted Huge Pages File System.
[   22.848940] systemd[1]: Mounted POSIX Message Queue File System.
[   22.868587] systemd[1]: Mounted Debug File System.
[   22.888261] systemd[1]: Started Increase datagram queue length.
[   22.908098] systemd[1]: Started Restore / save the current clock.
[   22.937511] systemd[1]: Started Create list of required static device nodes for the current kernel.
[   22.955132] sunxi-codec-machine sound.7:  codec-aif1 <-> 1c22c00.i2s0-controller mapping ok
[   22.955378] sunxi-codec-machine sound.7:  codec-aif2 <-> bb-dai mapping ok
[   22.955506] sunxi-codec-machine sound.7:  codec-aif2 <-> bb-dai mapping ok
[   22.955638] sunxi-codec-machine sound.7:  codec-aif3 <-> bb-dai mapping ok
[   22.956732] input: audiocodec sunxi Audio Jack as /devices/soc.1/sound.7/sound/card1/input3
[   22.957203] systemd[1]: Started LSB: Set keymap.
[   22.957368] SUNXI_HMIC_STS:8,225
[   22.966944] plugout_end:switch:0
[   22.976933] systemd[1]: Started Nameserver information manager.
[   22.979651] systemd[1]: Time has been changed
[   23.016207] systemd[1]: Started udev Coldplug all Devices.
[   23.071773] systemd[1]: Starting Create Static Device Nodes in /dev...
[   23.074444] cfg80211: Calling CRDA to update world regulatory domain
[   23.097260] systemd[1]: Starting Syslog Socket.
[   23.114635] systemd[1]: Listening on Syslog Socket.
[   23.347797] RTL871X: module init start
[   23.347809] RTL871X: rtl8723bs v4.3.16_13854.20150410_BTCOEX20150119-5844
[   23.347815] RTL871X: build time: Jun  7 2017 12:03:43
[   23.347819] RTL871X: rtl8723bs BT-Coex version = BTCOEX20150119-5844
[   23.347832] sunxi-wlan wlan.27: bus_index: 1
[   23.347961] sunxi-wlan wlan.27: check wlan io_regulator voltage: 1800000
[   23.456303] sunxi-mmc 1c10000.sdmmc: sdc set ios: clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
[   23.456371] RTL871X: module init ret=0
[   23.456405] sunxi-mmc 1c10000.sdmmc: no vqmmc,Check if there is regulator
[   23.468753] sunxi-mmc 1c10000.sdmmc: sdc set ios: clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[   23.478726] systemd[1]: Started Load Kernel Modules.
[   23.489227] sunxi-mmc 1c10000.sdmmc: smc 1 p1 err, cmd 52, RTO !!
[   23.490042] sunxi-mmc 1c10000.sdmmc: smc 1 p1 err, cmd 52, RTO !!
[   23.490061] sunxi-mmc 1c10000.sdmmc: sdc set ios: clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[   23.492464] sunxi-mmc 1c10000.sdmmc: sdc set ios: clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[   23.494283] sunxi-mmc 1c10000.sdmmc: smc 1 p1 err, cmd 8, RTO !!
[   23.495093] sunxi-mmc 1c10000.sdmmc: smc 1 p1 err, cmd 5, RTO !!
[   23.495900] sunxi-mmc 1c10000.sdmmc: smc 1 p1 err, cmd 5, RTO !!
[   23.496707] sunxi-mmc 1c10000.sdmmc: smc 1 p1 err, cmd 5, RTO !!
[   23.497514] sunxi-mmc 1c10000.sdmmc: smc 1 p1 err, cmd 5, RTO !!
[   23.498327] sunxi-mmc 1c10000.sdmmc: smc 1 p1 err, cmd 55, RTO !!
[   23.498393] systemd[1]: Started Create Static Device Nodes in /dev.
[   23.499140] sunxi-mmc 1c10000.sdmmc: smc 1 p1 err, cmd 55, RTO !!
[   23.499957] sunxi-mmc 1c10000.sdmmc: smc 1 p1 err, cmd 55, RTO !!
[   23.500767] sunxi-mmc 1c10000.sdmmc: smc 1 p1 err, cmd 55, RTO !!
[   23.500790] sunxi-mmc 1c10000.sdmmc: sdc set ios: clk 400000Hz bm OD pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[   23.501660] sunxi-mmc 1c10000.sdmmc: smc 1 p1 err, cmd 1, RTO !!
[   23.501680] sunxi-mmc 1c10000.sdmmc: sdc set ios: clk 0Hz bm OD pm OFF vdd 0 width 1 timing LEGACY(SDR12) dt B
[   23.511910] systemd[1]: Starting udev Kernel Device Manager...
[   23.529869] systemd[1]: Mounting Configuration File System...
[   23.549200] systemd[1]: Starting Apply Kernel Variables...
[   23.565390] systemd-udevd[248]: starting version 215
[   23.569229] systemd[1]: Mounting FUSE Control File System...
[   23.606648] systemd[1]: Started udev Kernel Device Manager.
[   23.626298] systemd[1]: Mounted FUSE Control File System.
[   23.646042] systemd[1]: Mounted Configuration File System.
[   23.665634] systemd[1]: Started Apply Kernel Variables.
[   23.685036] systemd[1]: Starting Copy rules generated while the root was ro...
[   23.706951] systemd[1]: Starting LSB: Tune IDE hard disks...
[   23.726378] systemd[1]: Starting LSB: Set preliminary keymap...
[   23.764077] systemd[1]: Started Copy rules generated while the root was ro.
[   23.900472] systemd[1]: Starting system-systemd\x2drfkill.slice.
[   23.921599] systemd[1]: Created slice system-systemd\x2drfkill.slice.
[   23.921686] systemd[1]: Starting Sound Card.
[   23.941195] systemd[1]: Reached target Sound Card.
[   24.000242] systemd[1]: Started LSB: Tune IDE hard disks.
[   24.226573] systemd[1]: Found device /dev/ttyS0.
[   24.242659] Driver for 1-wire Dallas network protocol.
[   24.250127] sunxi cedar version 0.1 
[   24.250271] [cedar]: install start!!!
[   24.250354] ycy the get irq is 90
[   24.250601] ycy clk_bass_vir 0x18  is ffffff8001182018, the value:3006207
[   24.250607] ycy clk_bass_vir 0x13c  is ffffff800118213c, the value:0
[   24.250612] ycy clk_bass_vir 0x64  is ffffff8001182064, the value:601810
[   24.250617] ycy clk_bass_vir 0x2c4  is ffffff80011822c4, the value:601c10
[   24.250621] ycy clk_bass_vir 0x100  is ffffff8001182100, the value:0
[   24.250625] [cedar]: install end!!!
[   24.255375] Registered IR keymap rc_map_sunxi
[   24.255829] input: sunxi_ir_recv as /devices/soc.1/1f02000.s_cir/rc/rc0/input4
[   24.256018] rc0: sunxi_ir_recv as /devices/soc.1/1f02000.s_cir/rc/rc0
[   24.346663] IR NEC protocol handler initialized
[   24.348412] IR JVC protocol handler initialized
[   24.350115] IR RC5(x) protocol handler initialized
[   24.352203] input: MCE IR Keyboard/Mouse (sunxi-rc-recv) as /devices/virtual/input/input5
[   24.352409] IR MCE Keyboard/mouse protocol handler initialized
[   24.356686] IR Sony protocol handler initialized
[   24.356688] IR RC6 protocol handler initialized
[   24.356902] lirc_dev: IR Remote Control driver registered, major 248
[   24.357045] IR SANYO protocol handler initialized
[   24.360633] rc rc0: lirc_dev: driver ir-lirc-codec (sunxi-rc-recv) registered at minor = 0
[   24.360645] IR LIRC bridge handler initialized
[   24.445092] cfg80211: World regulatory domain updated:
[   24.445109] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[   24.445116] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm)
[   24.445122] cfg80211:   (2457000 KHz - 2482000 KHz @ 20000 KHz), (N/A, 2000 mBm)
[   24.445127] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm)
[   24.445132] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz), (N/A, 2000 mBm)
[   24.445137] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz), (N/A, 2000 mBm)
[   24.445143] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm)
[   24.445148] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm)
[   24.445153] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm)
[   24.496596] [VFE]cci probe end cci_sel = 0!
[   24.496796] [VFE]cci_init end
[   24.654269] [VFE]Welcome to Video Front End driver
[   24.654538] [VFE]csi probe end csi_sel = 0!
[   24.654896] [VFE]csi_init end
[   24.655563] [VFE]isp probe start isp_sel = 0!
[   24.657184] [ISP] isp platform_id = 3!
[   24.657207] [VFE]isp probe end isp_sel = 0!
[   24.657278] [VFE]sunxi_isp_platform_register end
[   24.658570] [VFE]mipi probe start mipi_sel = 0!
[   24.658597] [VFE]mipi probe end mipi_sel = 0!
[   24.658653] [VFE]mipi_init end
[   24.658659] [VFE]flash_init end
[   24.659406] [VFE]vfe_init end
[   24.679121] systemd[1]: Started LSB: Set preliminary keymap.
[   24.687840] systemd[1]: Starting Remount Root and Kernel File Systems...
[   24.710474] systemd[1]: Starting system-ifup.slice.
[   24.728478] systemd[1]: Created slice system-ifup.slice.
[   24.733170] EXT4-fs (mmcblk0p1): re-mounted. Opts: commit=600,errors=remount-ro
[   24.757924] systemd[1]: Started Remount Root and Kernel File Systems.
[   24.777860] systemd[1]: Starting Load/Save RF Kill Switch Status of rfkill0...
[   24.799119] systemd[1]: Activating swap /var/swap...
[   24.818600] systemd[1]: Started Various fixups to make systemd work better on Debian.
[   24.818714] systemd[1]: Starting Load/Save Random Seed...
[   24.838381] systemd[1]: Starting Local File Systems (Pre).
[   24.856327] systemd[1]: Reached target Local File Systems (Pre).
[   24.856424] systemd[1]: Mounting /tmp...
[   24.905475] systemd[1]: Started Load/Save RF Kill Switch Status of rfkill0.
[   24.910665] Adding 131068k swap on /var/swap.  Priority:-1 extents:2 across:139260k SS
[   24.925148] systemd[1]: Started Load/Save Random Seed.
[   24.944781] systemd[1]: Activated swap /var/swap.
[   24.964449] systemd[1]: Mounted /tmp.
[   24.989029] systemd[1]: Starting Local File Systems.
[   25.003829] systemd[1]: Reached target Local File Systems.
[   25.003904] systemd[1]: Starting Armbian enhanced Log2Ram...
[   25.025641] systemd[1]: Starting Create Volatile Files and Directories...
[   25.045001] systemd[1]: Starting Remote File Systems.
[   25.063037] systemd[1]: Reached target Remote File Systems.
[   25.063149] systemd[1]: Starting LSB: Prepare console...
[   25.084269] systemd[1]: Starting Swap.
[   25.102339] systemd[1]: Reached target Swap.
[   25.102453] systemd[1]: Starting LSB: Raise network interfaces....
[   25.151549] systemd[1]: Started Create Volatile Files and Directories.
[   25.163982] systemd[1]: Starting Update UTMP about System Boot/Shutdown...
[   25.259752] systemd[1]: Started Update UTMP about System Boot/Shutdown.
[   25.308964] systemd[1]: Started Armbian enhanced Log2Ram.
[   25.328631] systemd[1]: Started LSB: Prepare console.
[   25.334509] systemd[1]: Starting LSB: Set console font and keymap...
[   25.359769] systemd[1]: Starting Journal Service...
[   25.397528] systemd[1]: Started Journal Service.
[   25.516407] systemd-journald[472]: Received request to flush runtime journal from PID 1
[   25.866658] libphy: 1c30000.eth: probed
[   25.866765] sunxi-gmac 1c30000.eth eth0: eth0: PHY ID 001cc915 at 0 IRQ poll (1c30000.eth-0:00)
[   25.866771] init ephy for pine64
[   28.758981] CPU Budget:update CPU 0 cpufreq max to 1152000 min to 480000
[   28.761956] CPU Budget:update CPU 0 cpufreq max to 1152000 min to 480000
[   28.764616] CPU Budget:update CPU 0 cpufreq max to 1152000 min to 480000
[   28.766978] CPU Budget:update CPU 0 cpufreq max to 1152000 min to 480000
Hauke Mehrtens Oct. 23, 2017, 7:26 p.m. UTC | #5
Hi Baptiste,

On 10/23/2017 08:17 PM, Baptiste Jonglez wrote:
> Hi Hauke,
> 
> On 03-08-17, Hauke Mehrtens wrote:
>> This adds initial support for the A64 Allwinner SoC to LEDE.
>> It will be build in the new cortexa53 subtarget.
>>
>> Currently it only supports the pine64 and the image is able to boot on
>> this SoC.
> 
> This was merged a while ago, but I gave it another try on my Pine64+ and
> still couldn't boot a LEDE image.  But this time I have a serial console
> adapter :)
> 
> I tried to boot the latest LEDE snapshot from several different µSD card.
> The kernel always starts to boot, complains about errors reading from the
> mmc, and then gets stuck.  The device is a pine64+ with 1 GB of RAM.

I am also using the PINE64+ with 1GB memory and I also saw some problems
which I assume are related to MMC on my board.

> Sometimes it fails before mounting the root:
> 
> [    1.273249] Waiting for root device /dev/mmcblk0p2...
> [    1.281238] sunxi-mmc 1c0f000.mmc: smc 0 err, cmd 55, RE RCE !!
> [    1.317715] sunxi-mmc 1c0f000.mmc: smc 0 err, cmd 3, RCE !!
> [    1.323864] sunxi-mmc 1c0f000.mmc: smc 0 err, cmd 3, RCE !!
> [    1.344409] sunxi-mmc 1c0f000.mmc: smc 0 err, cmd 55, RCE !!
> [    1.350097] sunxi-mmc 1c0f000.mmc: smc 0 err, cmd 6, RE RCE !!
> [    1.355941] sunxi-mmc 1c0f000.mmc: smc 0 err, cmd 55, RCE !!
> [    1.361651] mmc0: new high speed SDHC card at address cda0
> [    1.367559] mmcblk0: mmc0:cda0 00000 7.51 GiB
> [    1.372415] sunxi-mmc 1c0f000.mmc: smc 0 err, cmd 18, RD RE RCE !!
> [    1.378609] sunxi-mmc 1c0f000.mmc: data error, sending stop command
> [    2.374894] sunxi-mmc 1c0f000.mmc: send stop command failed
> 
> Sometimes it fails just after:
> 
> [    1.273185] Waiting for root device /dev/mmcblk0p2...
> [    1.342876] mmc0: new high speed SDHC card at address 0007
> [    1.348790] mmcblk0: mmc0:0007 SD8GB 7.42 GiB
> [    1.354623]  mmcblk0: p1 p2
> [    1.401534] VFS: Mounted root (squashfs filesystem) readonly on device 179:2.
> [    1.408891] Freeing unused kernel memory: 320K
> [    1.418724] sunxi-mmc 1c0f000.mmc: smc 0 err, cmd 18, RD DCE !!
> [    1.424659] sunxi-mmc 1c0f000.mmc: data error, sending stop command
> [    1.430953] sunxi-mmc 1c0f000.mmc: send stop command failed
> [    1.436564] mmcblk0: timed out sending r/w cmd command, card status 0x400900
> [    1.443601] mmcblk0: command error, retrying timeout
> [    1.449386] sunxi-mmc 1c0f000.mmc: smc 0 err, cmd 18, RD DCE !!
> [    1.455309] sunxi-mmc 1c0f000.mmc: data error, sending stop command
> [    1.461581] sunxi-mmc 1c0f000.mmc: send stop command failed
> [    1.467185] mmcblk0: timed out sending r/w cmd command, card status 0x400900
> [    1.474221] mmcblk0: command error, retrying timeout
> [    1.484737] sunxi-mmc 1c0f000.mmc: smc 0 err, cmd 18, RD DCE !!
> [    1.490670] sunxi-mmc 1c0f000.mmc: data error, sending stop command
> [    1.496956] sunxi-mmc 1c0f000.mmc: send stop command failed
> [    1.502550] mmcblk0: timed out sending r/w cmd command, card status 0x400900
> [    1.509598] mmcblk0: command error, retrying timeout
> [    1.516026] sunxi-mmc 1c0f000.mmc: smc 0 err, cmd 18, RD DCE !!
> [    1.521959] sunxi-mmc 1c0f000.mmc: data error, sending stop command
> [    2.524849] sunxi-mmc 1c0f000.mmc: send stop command failed
> 
> Do you have any idea of what could be wrong?
> 
> I also tried an Armbian image (based on Debian jessie, with a non-mainline
> 3.10 kernel) and it worked fine out-of-the-box.
> 
> Attached are full bootlogs for both LEDE and Armbian.
Could you try an image build the sunxi branch of my staging tree please:
https://git.lede-project.org/?p=lede/hauke/staging.git;a=shortlog;h=refs/heads/sunxi

I backproted the MMC driver in there as it got some patches which are
probably needed for the A64 SoC. For me it also boots up without these
changes, but sometimes I also see some error messages.

I never looked at the 3.10 kernel or booted it up, I only looked at what
is in mainline. If we add kernel 4.14 support before the next LEDE
release I will probably bring the sunxi target to kernel 4.14 as this
kernel version has official support for the A64 SoC.

Hauke
Baptiste Jonglez Oct. 24, 2017, 7:38 a.m. UTC | #6
On 23-10-17, Hauke Mehrtens wrote:
> Could you try an image build the sunxi branch of my staging tree please:
> https://git.lede-project.org/?p=lede/hauke/staging.git;a=shortlog;h=refs/heads/sunxi
> 
> I backproted the MMC driver in there as it got some patches which are
> probably needed for the A64 SoC. For me it also boots up without these
> changes, but sometimes I also see some error messages.

Thanks, it worked on the first try with your branch!

> I never looked at the 3.10 kernel or booted it up, I only looked at what
> is in mainline.

I agree, I tested the non-mainline 3.10 kernel to make sure there was no
hardware issue.

Baptiste
diff mbox

Patch

diff --git a/target/linux/sunxi/Makefile b/target/linux/sunxi/Makefile
index 65d43358c9..982eecbcbd 100644
--- a/target/linux/sunxi/Makefile
+++ b/target/linux/sunxi/Makefile
@@ -11,7 +11,7 @@  ARCH:=arm
 BOARD:=sunxi
 BOARDNAME:=Allwinner A1x/A20/A3x
 FEATURES:=fpu usb ext4 display rtc squashfs
-SUBTARGETS:=cortexa8 cortexa7
+SUBTARGETS:=cortexa8 cortexa7 cortexa53
 MAINTAINER:=Zoltan HERPAI <wigyori@uid0.hu>
 
 KERNEL_PATCHVER:=4.9
diff --git a/target/linux/sunxi/cortexa53/config-default b/target/linux/sunxi/cortexa53/config-default
new file mode 100644
index 0000000000..58ac214695
--- /dev/null
+++ b/target/linux/sunxi/cortexa53/config-default
@@ -0,0 +1,100 @@ 
+CONFIG_64BIT=y
+CONFIG_ARCH_DMA_ADDR_T_64BIT=y
+CONFIG_ARCH_HAS_CACHE_LINE_SIZE=y
+CONFIG_ARCH_HAS_GIGANTIC_PAGE=y
+CONFIG_ARCH_HAS_HOLES_MEMORYMODEL=y
+CONFIG_ARCH_HAS_KCOV=y
+CONFIG_ARCH_MMAP_RND_BITS=18
+CONFIG_ARCH_MMAP_RND_BITS_MAX=24
+CONFIG_ARCH_MMAP_RND_BITS_MIN=18
+CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MIN=11
+CONFIG_ARCH_SELECT_MEMORY_MODEL=y
+CONFIG_ARCH_SPARSEMEM_DEFAULT=y
+CONFIG_ARCH_SPARSEMEM_ENABLE=y
+CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y
+CONFIG_ARCH_SUPPORTS_NUMA_BALANCING=y
+CONFIG_ARCH_WANT_COMPAT_IPC_PARSE_VERSION=y
+CONFIG_ARCH_WANT_FRAME_POINTERS=y
+CONFIG_ARCH_WANT_HUGE_PMD_SHARE=y
+CONFIG_ARM64=y
+# CONFIG_ARM64_16K_PAGES is not set
+CONFIG_ARM64_4K_PAGES=y
+# CONFIG_ARM64_64K_PAGES is not set
+CONFIG_ARM64_CONT_SHIFT=4
+# CONFIG_ARM64_CRYPTO is not set
+# CONFIG_ARM64_HW_AFDBM is not set
+# CONFIG_ARM64_LSE_ATOMICS is not set
+CONFIG_ARM64_PAGE_SHIFT=12
+# CONFIG_ARM64_PAN is not set
+# CONFIG_ARM64_PTDUMP is not set
+# CONFIG_ARM64_RANDOMIZE_TEXT_OFFSET is not set
+# CONFIG_ARM64_UAO is not set
+CONFIG_ARM64_VA_BITS=39
+CONFIG_ARM64_VA_BITS_39=y
+# CONFIG_ARM64_VA_BITS_48 is not set
+# CONFIG_ARM64_VHE is not set
+CONFIG_ARM_AMBA=y
+CONFIG_ARM_GIC_V3=y
+# CONFIG_ARM_SBSA_WATCHDOG is not set
+# CONFIG_ARM_SP805_WATCHDOG is not set
+CONFIG_AUDIT_ARCH_COMPAT_GENERIC=y
+# CONFIG_COMMON_CLK_VERSATILE is not set
+CONFIG_COMMON_CLK_XGENE=y
+# CONFIG_COMPAT is not set
+# CONFIG_DEBUG_ALIGN_RODATA is not set
+CONFIG_DEBUG_RODATA=y
+CONFIG_FRAME_POINTER=y
+# CONFIG_FSL_ERRATUM_A008585 is not set
+CONFIG_GENERIC_BUG_RELATIVE_POINTERS=y
+CONFIG_GENERIC_CPU_AUTOPROBE=y
+CONFIG_GENERIC_CSUM=y
+CONFIG_GENERIC_IRQ_MIGRATION=y
+CONFIG_HAVE_ALIGNED_STRUCT_PAGE=y
+CONFIG_HAVE_ARCH_HUGE_VMAP=y
+CONFIG_HAVE_ARCH_KASAN=y
+CONFIG_HAVE_CMPXCHG_DOUBLE=y
+CONFIG_HAVE_CMPXCHG_LOCAL=y
+CONFIG_HAVE_DEBUG_BUGVERBOSE=y
+CONFIG_HAVE_EBPF_JIT=y
+CONFIG_HAVE_KVM_MSI=y
+CONFIG_HAVE_MEMORY_PRESENT=y
+CONFIG_HAVE_PATA_PLATFORM=y
+CONFIG_ILLEGAL_POINTER_VALUE=0xdead000000000000
+# CONFIG_KASAN is not set
+CONFIG_KERNEL_MODE_NEON=y
+CONFIG_KVM_ARM_PMU=y
+CONFIG_KVM_ARM_VGIC_V3_ITS=y
+CONFIG_MODULES_USE_ELF_RELA=y
+CONFIG_NEED_SG_DMA_LENGTH=y
+CONFIG_NO_IOPORT_MAP=y
+# CONFIG_NUMA is not set
+CONFIG_PARTITION_PERCPU=y
+# CONFIG_PCI_DOMAINS is not set
+# CONFIG_PHY_XGENE is not set
+# CONFIG_PINCTRL_GR8 is not set
+# CONFIG_PINCTRL_SUN4I_A10 is not set
+CONFIG_PINCTRL_SUN50I_A64=y
+# CONFIG_PINCTRL_SUN5I_A10S is not set
+# CONFIG_PINCTRL_SUN5I_A13 is not set
+# CONFIG_PINCTRL_SUN6I_A31 is not set
+# CONFIG_PINCTRL_SUN6I_A31S is not set
+# CONFIG_PINCTRL_SUN6I_A31_R is not set
+# CONFIG_PINCTRL_SUN7I_A20 is not set
+# CONFIG_PINCTRL_SUN8I_A23 is not set
+# CONFIG_PINCTRL_SUN8I_A23_R is not set
+# CONFIG_PINCTRL_SUN8I_A33 is not set
+# CONFIG_PINCTRL_SUN8I_A83T is not set
+# CONFIG_PINCTRL_SUN8I_H3 is not set
+# CONFIG_PINCTRL_SUN8I_H3_R is not set
+# CONFIG_PINCTRL_SUN9I_A80 is not set
+# CONFIG_PINCTRL_SUN9I_A80_R is not set
+# CONFIG_RANDOMIZE_BASE is not set
+# CONFIG_SERIAL_AMBA_PL010 is not set
+# CONFIG_SERIAL_AMBA_PL011 is not set
+CONFIG_SPARSEMEM=y
+CONFIG_SPARSEMEM_EXTREME=y
+CONFIG_SPARSEMEM_MANUAL=y
+CONFIG_SPARSEMEM_VMEMMAP=y
+CONFIG_SPARSEMEM_VMEMMAP_ENABLE=y
+CONFIG_SUN50I_A64_CCU=y
+CONFIG_SYSCTL_EXCEPTION_TRACE=y
diff --git a/target/linux/sunxi/cortexa53/target.mk b/target/linux/sunxi/cortexa53/target.mk
new file mode 100644
index 0000000000..6715d00bda
--- /dev/null
+++ b/target/linux/sunxi/cortexa53/target.mk
@@ -0,0 +1,13 @@ 
+#
+# Copyright (C) 2017 Hauke Mehrtens
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+ARCH:=aarch64
+BOARDNAME:=Allwinner A64
+CPU_TYPE:=cortex-a53
+KERNELNAME:=Image dtbs
diff --git a/target/linux/sunxi/image/Makefile b/target/linux/sunxi/image/Makefile
index 20ecf66a9c..8f95c61906 100644
--- a/target/linux/sunxi/image/Makefile
+++ b/target/linux/sunxi/image/Makefile
@@ -41,5 +41,6 @@  endef
 
 include cortex-a7.mk
 include cortex-a8.mk
+include cortex-a53.mk
 
 $(eval $(call BuildImage))
diff --git a/target/linux/sunxi/image/cortex-a53.mk b/target/linux/sunxi/image/cortex-a53.mk
new file mode 100644
index 0000000000..bbb253f0ae
--- /dev/null
+++ b/target/linux/sunxi/image/cortex-a53.mk
@@ -0,0 +1,20 @@ 
+#
+# Copyright (C) 2013-2016 OpenWrt.org
+# Copyright (C) 2016 Yousong Zhou
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+ifeq ($(SUBTARGET),cortexa53)
+
+define Device/sun50i-a64-pine64-plus
+  DEVICE_TITLE:=Pine64 Plus A64
+  SUPPORTED_DEVICES:=pine64,pine64-plus
+  SUNXI_DTS:=allwinner/sun50i-a64-pine64-plus
+  KERNEL_NAME := Image
+  KERNEL := kernel-bin
+endef
+
+TARGET_DEVICES += sun50i-a64-pine64-plus
+
+endif