avafinger / bpi-m64-firmware

Banana Pi M64 firmware (eMMC, Wifi, bluetooth, GbE, OV5640)
27 stars 8 forks source link

WiringPi & RPI.GPIO do not work - on 4.4 Kernel #18

Closed shaddow501 closed 5 years ago

shaddow501 commented 5 years ago

Hello, I was trying your image and I have some issues with it.

following the guide from BPI of installing WiringPi & python GPIO and it doesnt run on the board. the error I get that the application can run only on Raspberry PI board.

When using other image as like Armbian / or other BPI_M64 those applications work without any issue.

What is missing and how to fix that? I like your image since it is small but I need to be able to work with those applications.

Another question: I am using HDMI 5" 800x480 LCD, On Armbian image I can see the display, with yours I have a white screen, what do I need to do in order to get it to work?

avafinger commented 5 years ago

When using other image as like Armbian / or other BPI_M64 those applications work without any issue

I think I2C, SPI should be enabled in order to WiringPi & RPI.GPIO do the work, i can't remember if it is set in the DTB for the 4.4. Please, decompile and change the status to "okay";

Another question: I am using HDMI 5" 800x480 LCD, On Armbian image I can see the display, with yours I have a white screen, what do I need to do in order to get it to work?

Can you tell which HDMI 5" you have exactly?

shaddow501 commented 5 years ago

Hi, Thanks for the fast answer;

the lcd is that one: https://www.elecrow.com/wiki/index.php?title=HDMI_Interface_5_Inch_800x480_TFT_Display

Which dtb are you referring to? and how to get it to be enabled? what should I need to change?

avafinger commented 5 years ago

Ok, i will provide the changes to DTB and you can test your RPI.GPIO and give some feedback.

About the HDMI 5" 800x480 LCD, seems there is no support for 800x480 resolution. I will try to add support for it but i will be not able to test it.

shaddow501 commented 5 years ago

Dear Avafinger

About the 5" display, this is what I have tried so far without success:

http://forum.banana-pi.org/t/bpi-m64-800x480-display-support/9292/10

avafinger commented 5 years ago

Hmm, ok. Kernel cannot detect or read EDID from your LCD. In Armbian you set edid/800x480.bin and force it to 800x480, that's why works. There must be a way to force 800x480 in Kernel 4.4. I will try to find a way. I will set hdmi_cts_compatibility=1 in the DTB so you get the same behavior.

I am curious about your AC/Battery, Can you please specify which battery you use and the connector?

avafinger commented 5 years ago

There is a little problem if we set 480p in Kernel 4.4, there is only support for 720x480.

shaddow501 commented 5 years ago

Hi I will update about the connector and battery later on when ill get home, I know that there is an issue with this kernel, that is why I am looking for support of someone that know where to touch to add 800x480 resolution even if it is dealing with modify kernel files, I am searching where to modify and how... Also if it is possible to add the EDID to this kernel...

This is the connector (6 Pin): https://www.aliexpress.com/item/32793493228.html?spm=a2g0s.9042311.0.0.27424c4ddblQgs 1.25mm Pitch Connector Micro JST Or https://www.aliexpress.com/item/32844291445.html?spm=a2g0o.productlist.0.0.3d3c527c3xurFE&algo_pvid=6e714d99-69e1-419c-8849-9f2af11a6908&algo_expid=6e714d99-69e1-419c-8849-9f2af11a6908-2&btsid=26244999-3e5c-4794-b569-16c737c0d1e3&ws_ab_test=searchweb0_0%2Csearchweb201602_10%2Csearchweb201603_52

Battery that I use is: https://www.aliexpress.com/item/32792018741.html?spm=a2g0o.productlist.0.0.3d484aa1Cs2x1p&algo_pvid=7edcea62-7b92-4c56-9d31-1db081a2c022&algo_expid=7edcea62-7b92-4c56-9d31-1db081a2c022-2&btsid=0a5ee086-83b1-45af-91f5-7934d49310c4&ws_ab_test=searchweb0_0%2Csearchweb201602_10%2Csearchweb201603_52

avafinger commented 5 years ago

I am adding 800x480p support, i will rebuild the kernel and you can test if works.

shaddow501 commented 5 years ago

Thanks, waiting to test it

By the way even though I have updated the WiFi and Bluetooth, I get this message ..

[ 44.490134] Bluetooth: hci0 command 0x1003 tx timeout

By the way if you recompile the kernel is it possible to use the latest one (latest sources)? since the I have issues with WLAN and Bluetooth..

About the problem with the python GPIO & WiringPI

root@bpi-m64:~# gpio -v gpio version: 2.44 Copyright (c) 2012-2017 Gordon Henderson This is free software with ABSOLUTELY NO WARRANTY. For details type: gpio -warranty

Oops: Unable to determine board revision from /proc/cpuinfo -> No "Revision" line -> You'd best google the error to find out why.

With your image:

root@bpi-m64:~# cat /proc/cpuinfo processor : 0 BogoMIPS : 48.00 Features : fp asimd aes pmull sha1 sha2 crc32 CPU implementer : 0x41 CPU architecture: 8 CPU variant : 0x0 CPU part : 0xd03 CPU revision : 4 With Armbian it looks for this information:

root@bananapim64:~ # cat /proc/cpuinfo processor : 0 Processor : AArch64 Processor rev 4 (aarch64) Hardware : sun50iw1p1 BogoMIPS : 48.00 Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid CPU implementer : 0x41 CPU architecture: 8 CPU variant : 0x0 CPU part : 0xd03 CPU revision : 4

I think that it looks for this info: Processor : AArch64 Processor rev 4 (aarch64) Hardware : sun50iw1p1

And it doesnt find it so it fail.

avafinger commented 5 years ago

And it doesnt find it so it fail.

True. Note this kernel is derived from BSP 4.4 and this WiringPI is not compatible with this Kernel. It is compatible with the mainline kernel, the one used in Armbian. That's why it works in Armbian!

The WiringPi from BPI will also fail since it looks for some other specific info.

Regarding Wifi & BT

You need to update the firmware (Wifi A1 chip or A0) in order to match the current HW you have. See https://github.com/avafinger/bpi-m64-firmware#things-you-should-do-after-flashing-the-os-image

You have to make some decisions:

Regarding LCD 5" HDMI I have finished support for the 5", if you want to give it a try follow th next post.

About the AC/Battery

Can you please provide a picture on how you soldered the pins?

shaddow501 commented 5 years ago

Dear Avafinger

  1. Regarding Wifi & BT I did flash the firmware but I only see lo & eth0 interface. I dont see wlan0 while running the command ifconfig.

  2. A. Ask in armbian, well I did but the support there is not so good there is the same question that I asked about pine64 that also there it doesnt work, there is no answers anywhere.,. here look for yourself; [https://forum.armbian.com/topic/10104-pine64-axp20-sysclasspower_supply-problems/]

B. If you kernel work with the display I could maybe incitement this on the mainline kernel, that only if you will agree to share the information. Though I really prefer your image and work because your image is thinner than the other ones based on Ubuntu, you take about 2.4Gb of space while the other mainline Ubuntu from BPI takes about 4.5~5GB of space, so I sure like yours better since I prefer thinner image. So if I can get everything to work with your image I prefer to stay with it. I dont know what they did with the 4.19 Kernel but the AC/battery do not work there.

  1. Regarding LCD 5" HDMI: I would like to give the new kernel a try to see if it works and if it does I would like that you will share the information of what did you do in order that it will work..

About the AC/Battery (more about the battery)

  1. I didnt soldered the pins, I have a tool at work that crimp those pins, but I guess you can solder them, a bit hard since it is very small In Aliexpress you can buy also connector with wires, here is the link, https://www.aliexpress.com/item/32863843944.html?spm=a2g0o.productlist.0.0.16c1b434KWoBBQ&algo_pvid=9b1e4776-fb08-4924-b6aa-dd907e4a5439&algo_expid=9b1e4776-fb08-4924-b6aa-dd907e4a5439-0&btsid=cb0b8465-f25a-4d26-bea3-b2b72406a92d&ws_ab_test=searchweb0_0%2Csearchweb201602_10%2Csearchweb201603_52

Attached is the pin locations picture: connector

Do you have BPI_M64? Or BPI-M3 or BPI-M2U? I am currently designing a case that for the BPI_M64 hold the module + LCD + location for batteries. and for the others can hold LCD + 2,5" SSD/HDD (they do not have battery support) I will able to finish the case when the software will work,, there is no point to have a case that the screen stay white...

But since the other modules do not have battery option than they can run in Armbian with full support: look at the post I have created: https://forum.armbian.com/topic/10610-bpi_m64-with-5-hdmi-lcd-touchscreen-how-to/

4 5 6 7 8 1 2 3

shaddow501 commented 5 years ago

Where should I look to find the next post about 5" LCD?

avafinger commented 5 years ago

Uploading now....

ubuntu@bpi-m64:~$ ifconfig
eth0      Link encap:Ethernet  HWaddr 36:c9:e3:f1:b8:05  
          inet addr:192.168.254.100  Bcast:192.168.255.255  Mask:255.255.0.0
          inet6 addr: fe80::34c9:e3ff:fef1:b805/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1292 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1017 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:215463 (215.4 KB)  TX bytes:165324 (165.3 KB)
          Interrupt:172 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:167 errors:0 dropped:0 overruns:0 frame:0
          TX packets:167 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1 
          RX bytes:12191 (12.1 KB)  TX bytes:12191 (12.1 KB)

wlan0     Link encap:Ethernet  HWaddr 94:a1:a2:c2:55:46  
          inet addr:192.168.254.103  Bcast:192.168.255.255  Mask:255.255.0.0
          inet6 addr: fe80::45dd:88c2:a4a2:5bae/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:168 errors:0 dropped:0 overruns:0 frame:0
          TX packets:41 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:8602 (8.6 KB)  TX bytes:5466 (5.4 KB)

ubuntu@bpi-m64:~$ 
ubuntu@bpi-m64:~$ ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: bond0: <BROADCAST,MULTICAST,MASTER> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 3e:6e:1a:fd:38:dd brd ff:ff:ff:ff:ff:ff
3: ifb0: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN group default qlen 32
    link/ether aa:af:af:17:c4:0a brd ff:ff:ff:ff:ff:ff
4: ifb1: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN group default qlen 32
    link/ether 42:a0:8a:9c:4e:2e brd ff:ff:ff:ff:ff:ff
5: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 36:c9:e3:f1:b8:05 brd ff:ff:ff:ff:ff:ff
    inet 192.168.254.100/16 brd 192.168.255.255 scope global eth0
       valid_lft forever preferred_lft forever
    inet6 fe80::34c9:e3ff:fef1:b805/64 scope link 
       valid_lft forever preferred_lft forever
6: tunl0@NONE: <NOARP> mtu 1480 qdisc noop state DOWN group default qlen 1
    link/ipip 0.0.0.0 brd 0.0.0.0
7: gre0@NONE: <NOARP> mtu 1476 qdisc noop state DOWN group default qlen 1
    link/gre 0.0.0.0 brd 0.0.0.0
8: gretap0@NONE: <BROADCAST,MULTICAST> mtu 1462 qdisc noop state DOWN group default qlen 1000
    link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff
9: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 94:a1:a2:c2:55:46 brd ff:ff:ff:ff:ff:ff
    inet 192.168.254.103/16 brd 192.168.255.255 scope global dynamic wlan0
       valid_lft 4694sec preferred_lft 4694sec
    inet6 fe80::45dd:88c2:a4a2:5bae/64 scope link 
       valid_lft forever preferred_lft forever
ubuntu@bpi-m64:~$ 
avafinger commented 5 years ago

Please, try this: https://github.com/avafinger/bpi-m64-firmware/releases/tag/v1.0

After you make the changes, do a sync & sudo shutdown -h now Attach your 5" LCD and boot.

avafinger commented 5 years ago

Missed this:

sudo ln -sf Image_4.4.89 Image
avafinger commented 5 years ago

Just a reminder, i am using LXDE 16.04, if you are using CLI (command line interface) and no LXDE you need to edit /etc/network/interfaces just like this:

https://github.com/avafinger/nanopi-a64-kodi#mainline-kernel-520-rc6

Scroll to where is says about the interfaces or you could follow this:

https://github.com/avafinger/bananapi-zero-ubuntu-base-minimal#connecting-to-ap-via-wifi

I just can't remember what IMG i had released. I am running from SD card.

wifi_bt

shaddow501 commented 5 years ago

could this happen...?

Loading boot environment ... Booting with defaults ... fdt a64/a64.dtb ... () sunxi#

No worries re-flashing the SD, and will try again..

avafinger commented 5 years ago

Did you have time to issue the command prior to boot?: sudo ln -sf Image_4.4.89 Image

If you have a USB sd card reader/writer and a linux box you just need to check the files in /boot/a64

avafinger commented 5 years ago

Also check if Kernel was decompressed to the right location...

/lib/modules/4.4.89

shaddow501 commented 5 years ago

yes i did before reboot.

I have a Ubuntu vmware environment on my laptop, but the charger is at work and I have already killed the battery for today.. lol. I used file zilla to copy the files to the card...

avafinger commented 5 years ago

Better use the tar, it will check if the files don't get corrupted after decompressing it.....

Anyway, the message printed means it does not find the Image (Kernel Image).

Check if the symlinks were created as described.

avafinger commented 5 years ago

You must have this in /boot/a64:

lrwxrwxrwx 1 root root       11 Jun  7  2018 m64.dtb -> m64-4.4.dtb
lrwxrwxrwx 1 root root       11 Jun  7  2018 a64.dtb -> m64-4.4.dtb
lrwxrwxrwx 1 root root       12 Jul  1 18:19 Image -> Image_4.4.89
-rwxrwxr-x 1 root root 15592328 Jul  1 17:43 Image_4.4.89
shaddow501 commented 5 years ago

I did as instructed checked everything you noted and went step by step. still..

boot0: Loading scp
Loading file 2 at address 0x00040000,size 0x00019a00 success
set arisc reset to de-assert state
Ready to disable icache.
Jump to secend Boot.
no battery, limit to dc
no uart input
DRAM:  
In:    Out:   Err:   Using default environment

update dtb dram start
update dtb dram  end
 ()
[      3.350]inter uboot shell
 ()
Loading boot environment ...
Booting with defaults ...
fdt ...
 ()
sunxi#

root@bpi-m64:/lib/modules/4.4.89# ls
build              modules.builtin      modules.devname  modules.symbols.bin
kernel             modules.builtin.bin  modules.order    source
modules.alias      modules.dep          modules.softdep
modules.alias.bin  modules.dep.bin      modules.symbols

root@bpi-m64:/lib/modules/4.4.89# ls -l  /boot/a64 
total 30744
lrwxrwxrwx 1 root   root         18 Jul  1 20:47 a64.dtb -> m64-4.4_5_inch.dtb
lrwxrwxrwx 1 root   root         12 Jul  1 20:48 Image -> Image_4.4.89
-rwxr-xr-x 1 root   root   15726216 Aug 20  2018 Image_4.4.89-a64
-rwxrwxr-x 1 ubuntu ubuntu 15592328 Jul  1 16:43 Inage_4.4.89
-rw-r--r-- 1 root   root      77889 Jul  1 20:44 m64-4.4_5_inch.dtb
-rw-rw-r-- 1 ubuntu ubuntu    77773 Aug 20  2018 m64-4.4.dtb
lrwxrwxrwx 1 root   root         18 Jul  1 20:47 m64.dtb -> m64-4.4_5_inch.dtb

I work all as root so sudo is not needed. but I still copy and paste your instructions with the sudo command.

Ohhh I understand why
could it because of this? -rwxrwxr-x 1 ubuntu ubuntu 15592328 Jul 1 16:43 Inage_4.4.89

Inage? anyway to fix it or need to re-flash again the SD?

avafinger commented 5 years ago

Seems correct!

Do you have BPI_M64? Or BPI-M3 or BPI-M2U? I am currently designing a case that for the BPI_M64 hold the module + LCD + location for batteries.

Are you aware there is a nice 5" LCD from BPI with touch? You should rethink the case to use that LCD panel.

It the same lcd panel shown here: http://forum.banana-pi.org/t/bpi-m2-magic-new-image-ubuntu-16-04-mate-desktop-beta-bpi-m2m-sd-emmc-img-2017-09-18/3873

avafinger commented 5 years ago

but only works with kernel 3.y

shaddow501 commented 5 years ago

I Will also have an update for this LCD but they are hard to get, just ordered one... https://www.tindie.com/products/DIGCM/5-touch-screen-lcd-for-banana-pi-banana-pro/

by the way the screen from the banana forum is an ugly front cheap mobile phone screen. it doesnt even have mounting holes, how do they expect people to use it? to throw it next to the module? and it isnt available anyway...

shaddow501 commented 5 years ago

could it because of this? -rwxrwxr-x 1 ubuntu ubuntu 15592328 Jul 1 16:43 Inage_4.4.89

Inage? it doesnt create the link for inage... only for image... anyway to fix it or need to re-flash again the SD?

avafinger commented 5 years ago

Sure, should be Image_4.4.89

Good catch.

avafinger commented 5 years ago

Don't need to re-flash, just re-create the link and should be Image

avafinger commented 5 years ago

I was reading the post about the axp20x , but i think it should be axp803 or axp813 , but there is no official support for mainline kernel.

Let's see you you get the panel working with 4.4.89 and i make a patch for it.

shaddow501 commented 5 years ago

Ok loaded the new image but the screen stay the same...

20190702_090331_HDR

avafinger commented 5 years ago

Exactly the same as before?

Please, print the complete bootlog, use the tag <>

shaddow501 commented 5 years ago

Sure, here it is:

`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 = 0x0000a101
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 = 2048 MB
DRAM init ok
dram size =2048
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]: 15193 MB
[mmc]: ***SD/MMC 0 init OK!!!***
sdcard 0 init ok
The size of uboot is 000e8000.
sum=31fb9511
src_sum=31fb9511
Succeed in loading uboot from sdmmc flash.
boot0: start load other image
boot0: Loading BL3-1
Loading file 0 at address 0x40000000,size 0x00007200 success
boot0: Loading scp
Loading file 2 at address 0x00040000,size 0x00019a00 success
set arisc reset to de-assert state
Ready to disable icache.
Jump to secend Boot.
normal dc exist, limit to dc
no uart input
DRAM:  
In:    Out:   Err:   Using default environment

update dtb dram start
update dtb dram  end
 ()
[     14.031]inter uboot shell
 ()
Loading boot environment ...
Booting with defaults ...
fdt ...
 ()
 ()
 ()
OK
OK
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 4.4.89 (alex@svn) (gcc version 7.3.1 20180425 [linaro-7.3-2018.05 revision d29120a424ecfbc167ef90065c0eeb7f91977701] (Linaro GCC 7.3-2018.05) ) #9 SMP PREEMPT Mon Jul 1 17:42:50 -03 2019
[    0.000000] Boot CPU: AArch64 Processor [410fd034]
[    0.000000] cma: Reserved 16 MiB at 0x00000000bf000000
[    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 @ffffffc07ef37000 s43544 r8192 d30184 u81920
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: enabling workaround for ARM erratum 845719
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 512064
[    0.000000] Kernel command line: console=tty0 console=ttyS0,115200n8 no_console_suspend disp.screen0_output_mode=1080p60 earlycon=uart,mmio32,0x01c28000 mac_addr=36:c9:e3:f1:b8:05 root=/dev/mmcblk1p2 ro rootwait
[    0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
[    0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
[    0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
[    0.000000] software IO TLB [mem 0xb8a00000-0xbca00000] (64MB) mapped at [ffffffc078a00000-ffffffc07c9fffff]
[    0.000000] Memory: 1928152K/2080768K available (8958K kernel code, 1466K rwdata, 4336K rodata, 448K init, 726K bss, 136232K reserved, 16384K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     modules : 0xffffff8000000000 - 0xffffff8008000000   (   128 MB)
[    0.000000]     vmalloc : 0xffffff8008000000 - 0xffffffbdbfff0000   (   246 GB)
[    0.000000]       .init : 0xffffff8008d80000 - 0xffffff8008df0000   (   448 KB)
[    0.000000]       .text : 0xffffff8008080000 - 0xffffff8008940000   (  8960 KB)
[    0.000000]     .rodata : 0xffffff8008940000 - 0xffffff8008d80000   (  4352 KB)
[    0.000000]       .data : 0xffffff8008df0000 - 0xffffff8008f5eb88   (  1467 KB)
[    0.000000]     vmemmap : 0xffffffbdc0000000 - 0xffffffbfc0000000   (     8 GB maximum)
[    0.000000]               0xffffffbdc0040000 - 0xffffffbdc2000000   (    31 MB actual)
[    0.000000]     fixed   : 0xffffffbffe7fd000 - 0xffffffbffec00000   (  4108 KB)
[    0.000000]     PCI I/O : 0xffffffbffee00000 - 0xffffffbfffe00000   (    16 MB)
[    0.000000]     memory  : 0xffffffc001000000 - 0xffffffc080000000   (  2032 MB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] NR_IRQS:64 nr_irqs:64 0
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000000] 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.000000] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000000] Console: colour dummy device 80x25
[    0.000000] console [tty0] enabled
[    0.001232] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.001285] pid_max: default: 32768 minimum: 301
[    0.001442] Security Framework initialized
[    0.001520] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes)
[    0.001553] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes)
[    0.002214] Initializing cgroup subsys io
[    0.002254] Initializing cgroup subsys memory
[    0.002303] Initializing cgroup subsys devices
[    0.002336] Initializing cgroup subsys freezer
[    0.002368] Initializing cgroup subsys net_cls
[    0.002400] Initializing cgroup subsys perf_event
[    0.002431] Initializing cgroup subsys net_prio
[    0.002468] Initializing cgroup subsys pids
[    0.002499] Initializing cgroup subsys debug
[    0.002891] sched-energy: CPU device node has no sched-energy-costs
[    0.002925] Invalid sched_group_energy for CPU0
[    0.002952] CPU0: update cpu_capacity 1024
[    0.003019] ASID allocator initialised with 65536 entries
[    0.010000] Detected VIPT I-cache on CPU1
[    0.010000] Invalid sched_group_energy for CPU1
[    0.010000] CPU1: update cpu_capacity 1024
[    0.010000] CPU1: Booted secondary processor [410fd034]
[    0.010000] Detected VIPT I-cache on CPU2
[    0.010000] Invalid sched_group_energy for CPU2
[    0.010000] CPU2: update cpu_capacity 1024
[    0.010000] CPU2: Booted secondary processor [410fd034]
[    0.010000] Detected VIPT I-cache on CPU3
[    0.010000] Invalid sched_group_energy for CPU3
[    0.010000] CPU3: update cpu_capacity 1024
[    0.010000] CPU3: Booted secondary processor [410fd034]
[    0.150057] Brought up 4 CPUs
[    0.150351] SMP: Total of 4 processors activated.
[    0.150384] CPU: All CPU(s) started at EL2
[    0.150433] alternatives: patching kernel code
[    0.150639] Invalid sched_group_energy for CPU3
[    0.150670] Invalid sched_group_energy for CPU2
[    0.150698] Invalid sched_group_energy for CPU1
[    0.150726] Invalid sched_group_energy for CPU0
[    0.150960] devtmpfs: initialized
[    0.190968] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.190968] futex hash table entries: 1024 (order: 5, 131072 bytes)
[    0.191150] xor: measuring software checksum speed
[    0.289850]    8regs     :  1821.600 MB/sec
[    0.389857]    8regs_prefetch:  1634.800 MB/sec
[    0.489864]    32regs    :  2468.000 MB/sec
[    0.589874]    32regs_prefetch:  2070.000 MB/sec
[    0.589902] xor: using function: 32regs (2468.000 MB/sec)
[    0.589955] atomic64_test: passed
[    0.589988] pinctrl core: initialized pinctrl subsystem
[    0.592245] NET: Registered protocol family 16
[    0.593968] dump_class_init,858, success
[    0.620020] cpuidle: using governor ladder
[    0.650019] cpuidle: using governor menu
[    0.650422] vdso: 2 pages (1 code @ ffffff8008946000, 1 data @ ffffff8008df4000)
[    0.650499] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.651827] DMA: preallocated 256 KiB pool for atomic allocations
[    0.652117] Serial: AMBA PL011 UART driver
[    0.654435] sun50i-r-pinctrl r_pio: initialized sunXi PIO driver
[    0.654988] [sun50iw1p1_pinctrl_probe][841]
[    0.657623] sun50i-pinctrl pio: initialized sunXi PIO driver
[    0.659757] sunxi hwspinlock vbase:0xffffff8008058000
[    0.680925] [ARISC] :sunxi-arisc driver v1.10
[    0.682594] [ARISC] :sunxi-arisc driver v1.10 startup succeeded
[    0.950175] raid6: int64x1  gen()   344 MB/s
[    1.120052] raid6: int64x1  xor()   319 MB/s
[    1.289994] raid6: int64x2  gen()   560 MB/s
[    1.459960] raid6: int64x2  xor()   428 MB/s
[    1.630015] raid6: int64x4  gen()   802 MB/s
[    1.799966] raid6: int64x4  xor()   555 MB/s
[    1.969992] raid6: int64x8  gen()   650 MB/s
[    2.139929] raid6: int64x8  xor()   509 MB/s
[    2.309989] raid6: neonx1   gen()   615 MB/s
[    2.479916] raid6: neonx1   xor()   556 MB/s
[    2.649896] raid6: neonx2   gen()   928 MB/s
[    2.819896] raid6: neonx2   xor()   813 MB/s
[    2.989888] raid6: neonx4   gen()  1247 MB/s
[    3.159878] raid6: neonx4   xor()   928 MB/s
[    3.329888] raid6: neonx8   gen()  1282 MB/s
[    3.499853] raid6: neonx8   xor()   967 MB/s
[    3.499882] raid6: using algorithm neonx8 gen() 1282 MB/s
[    3.499910] raid6: .... xor() 967 MB/s, rmw enabled
[    3.499937] raid6: using intx1 recovery algorithm
[    3.500098] pwm module init!
[    3.504626] SCSI subsystem initialized
[    3.505432] usbcore: registered new interface driver usbfs
[    3.505614] usbcore: registered new interface driver hub
[    3.505824] usbcore: registered new device driver usb
[    3.508233] Linux video capture interface: v2.00
[    3.509497] Advanced Linux Sound Architecture Driver Initialized.
[    3.511292] Bluetooth: Core ver 2.21
[    3.511438] NET: Registered protocol family 31
[    3.511466] Bluetooth: HCI device and connection manager initialized
[    3.511507] Bluetooth: HCI socket layer initialized
[    3.511544] Bluetooth: L2CAP socket layer initialized
[    3.511619] Bluetooth: SCO socket layer initialized
[    3.512435] NetLabel: Initializing
[    3.512463] NetLabel:  domain hash size = 128
[    3.512490] NetLabel:  protocols = UNLABELED CIPSOv4
[    3.512583] NetLabel:  unlabeled traffic allowed by default
[    3.512874] [axp803] chip id detect 0x51 !
[    3.512874] [axp803] enable dcdc2 dvm.
[    3.526967] clocksource: Switched to clocksource arch_sys_counter
[    3.527595] FS-Cache: Loaded
[    3.527793] CacheFiles: Loaded
[    3.547696] NET: Registered protocol family 2
[    3.548510] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
[    3.548704] TCP bind hash table entries: 16384 (order: 6, 262144 bytes)
[    3.548991] TCP: Hash tables configured (established 16384 bind 16384)
[    3.549120] UDP hash table entries: 1024 (order: 3, 32768 bytes)
[    3.549195] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes)
[    3.549593] NET: Registered protocol family 1
[    3.550125] RPC: Registered named UNIX socket transport module.
[    3.550155] RPC: Registered udp transport module.
[    3.550182] RPC: Registered tcp transport module.
[    3.550208] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    3.553836] thermal thermal_zone2: failed to read out thermal zone (-19)
[    3.556976] Unpacking initramfs...
[    3.602976] Freeing initrd memory: 1076K
[    3.603918] hw perfevents: enabled with armv8_pmuv3 PMU driver, 7 counters available
[    3.606104] audit: initializing netlink subsys (disabled)
[    3.606191] audit: type=2000 audit(3.600:1): initialized
[    3.625552] VFS: Disk quotas dquot_6.6.0
[    3.625944] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    3.629295] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    3.643576] NFS: Registering the id_resolver key type
[    3.643658] Key type id_resolver registered
[    3.643686] Key type id_legacy registered
[    3.644728] Key type cifs.spnego registered
[    3.644792] Key type cifs.idmap registered
[    3.644831] ntfs: driver 2.1.32 [Flags: R/W].
[    3.645817] fuse init (API version 7.23)
[    3.648194] ceph: loaded (mds proto 32)
[    3.665956] NET: Registered protocol family 38
[    3.666479] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
[    3.666674] io scheduler noop registered
[    3.666709] io scheduler deadline registered
[    3.667115] io scheduler cfq registered (default)
[    3.668189] [DISP]disp_module_init
[    3.669170] [DISP] boot_disp:0x0
[    3.669958] [DISP] disp_sys_script_get_item,line:198:
[    3.669972] of_find_compatible_node allwinner,sunxi-lcd1 fail
[    3.670528] [DISP] disp_sys_script_get_item,line:198:
[    3.670543] of_find_compatible_node allwinner,sunxi-lcd1 fail
[    3.670751] [DISP] disp_sys_script_get_item,line:198:
[    3.670763] of_find_compatible_node allwinner,sunxi-lcd1 fail
[    3.672670] [DISP] fb_base:0x0
[    3.675352] [DISP] Fb_copy_boot_fb,line:1224:
[    3.675367] no boot_fb0
[    3.681998] Console: switching to colour frame buffer device 100x30
[    3.691908] [DISP]disp_module_init finish
[    3.694562] np name = /soc@01c00000/rtc@01f00000
[    3.696650] base = ffffff8009320100, len = 4.
[    3.698796] pmu1 does not exist.
[    3.701554] axp_add_sys_pwr_dm: get ldo name for id: vcc-lpddr failed
[    3.703985] axp_add_sys_pwr_dm: vcc-pc not sys id.
[    3.706157] after inited: sys_mask config = 0x4a55.
[    3.708418] Warning: can not find np for dynamic_standby_para.
[    3.710928] lookup_scene_lock_name: new scene lock super_standby
[    3.713089] scene_lock_init name=super_standby
[    3.715242] scene_lock: super_standby, type 5, count 1
[    3.717430] enter set_extended_standby_manager
[    3.719637] leave set_extended_standby_manager : id 0x8
[    3.721867] xenfs: not registering filesystem on non-xen platform
[    3.732106] uart0: ttyS0 at MMIO 0x1c28000 (irq = 146, base_baud = 1500000) is a SUNXI
[    3.734531] sw_console_setup()1676 - console setup baud 115200 parity n bits 8, flow n
[    4.970775] console [ttyS0] enabled
[    4.978220] uart1: ttyS1 at MMIO 0x1c28400 (irq = 147, base_baud = 1500000) is a SUNXI
[    4.989668] sw_uart_pm()1376 - uart1 clk is already disable
[    4.999265] uart2: ttyS2 at MMIO 0x1c28800 (irq = 148, base_baud = 1500000) is a SUNXI
[    5.010718] sw_uart_pm()1376 - uart2 clk is already disable
[    5.020767] misc dump reg init
[    5.027989] Unable to detect cache hierarchy from DT for CPU 0
[    5.037462] sunxi-bt bt: bt_power_num (1)
[    5.044562] sunxi-bt bt: bt_power_name (vcc-wifi)
[    5.052377] sunxi-bt bt: io_regulator_name (vcc-wifi-io)
[    5.060893] sunxi-bt bt: request pincrtl handle for device [bt] failed
[    5.070820] sunxi-bt bt: bt_rst gpio=356  mul-sel=1  pull=-1  drv_level=-1  data=0
[    5.081972] sunxi-bt bt: clk_name (losc_out)
[    5.089616] sunxi-bt bt: block state already is 1
[    5.097798] sunxi-wlan wlan: wlan_busnum (1)
[    5.105129] sunxi-wlan wlan: wlan_power_num (1)
[    5.112689] sunxi-wlan wlan: Missing wlan_power.
[    5.120290] sunxi-wlan wlan: wlan_power_name ((null))
[    5.128324] sunxi-wlan wlan: io_regulator_name (vcc-wifi-io)
[    5.137067] sunxi-wlan wlan: request pincrtl handle for device [wlan] failed
[    5.147426] sunxi-wlan wlan: wlan_regon gpio=354  mul-sel=1  pull=-1  drv_level=-1  data=0
[    5.159244] sunxi-wlan wlan: get gpio wlan_power_enable failed
[    5.168307] sunxi-wlan wlan: wlan_hostwake gpio=355  mul-sel=6  pull=-1  drv_level=-1  data=0
[    5.180413] sunxi-wlan wlan: Missing clocks.
[    5.187612] sunxi-wlan wlan: clk_name ((null))
[    5.194945] sunxi-wlan wlan: clk not config
[    5.201952] Loading iSCSI transport class v2.0-870.
[    5.210255] iscsi: registered transport (tcp)
[    5.219751] spi spi1: master is unqueued, this is deprecated
[    5.228715] spidev spi1.0: buggy DT: spidev listed directly in DT
[    5.237728] ------------[ cut here ]------------
[    5.244982] WARNING: at drivers/spi/spidev.c:719
[    5.247642] Modules linked in:
[    5.247642] 
[    5.247642] CPU: 3 PID: 1 Comm: swapper/0 Not tainted 4.4.89 #9
[    5.247642] Hardware name: sun50iw1 (DT)
[    5.247642] task: ffffffc078490000 ti: ffffffc078464000 task.ti: ffffffc078464000
[    5.247642] PC is at spidev_probe+0x64/0x194
[    5.247642] LR is at spidev_probe+0x60/0x194
[    5.247642] pc : [<ffffff800857b600>] lr : [<ffffff800857b5fc>] pstate: 40000045
[    5.247642] sp : ffffffc0784678e0
[    5.247642] x29: ffffffc0784678e0 x28: ffffffc077b6cf98 
[    5.247642] x27: 0000000000000000 x26: 0000000000000000 
[    5.247642] x25: ffffffc077b6c000 x24: 0000000000000000 
[    5.247642] x23: ffffff8008f059c0 x22: ffffff8008efe000 
[    5.247642] x21: ffffff8008f059a0 x20: ffffffc0774ac000 
[    5.247642] x19: ffffff8008a396d0 x18: 0000000000000000 
[    5.247642] x17: 0000000000000000 x16: 000000007312709d 
[    5.247642] x15: ffffff8008df5b10 x14: ffffff8009199400 
[    5.247642] x13: ffffff8009199400 x12: 0000000000000030 
[    5.247642] x11: 0101010101010101 x10: 7f7f7f7f7f7f7f7f 
[    5.247642] x9 : feff756463686f72 x8 : ffffffffffffffff 
[    5.247642] x7 : fefefefefefefefe x6 : 0000000000008080 
[    5.247642] x5 : 0000000000000000 x4 : ffffffffffffffff 
[    5.247642] x3 : 0000766564697073 x2 : ffffffc078464000 
[    5.247642] x1 : 0000000000000000 x0 : 0000000000000000 
[    5.247642] 
[    5.247642] SP: 0xffffffc078467860:
[    5.247642] 7860  08efe000 ffffff80 08f059c0 ffffff80 00000000 00000000 77b6c000 ffffffc0
[    5.247642] 7880  00000000 00000000 00000000 00000000 77b6cf98 ffffffc0 784678e0 ffffffc0
[    5.247642] 78a0  0857b5fc ffffff80 784678e0 ffffffc0 0857b600 ffffff80 40000045 00000000
[    5.247642] 78c0  08f059a0 ffffff80 08efe000 ffffff80 ffffffff ffffffff 0857b5fc ffffff80
[    5.247642] 78e0  78467930 ffffffc0 08578fcc ffffff80 774ac000 ffffffc0 00000000 00000000
[    5.247642] 7900  08f059a0 ffffff80 08efe000 ffffff80 08f059c0 ffffff80 00000000 00000000
[    5.247642] 7920  77b6c000 ffffffc0 08931754 ffffff80 78467960 ffffffc0 0852e444 ffffff80
[    5.247642] 7940  774ac000 ffffffc0 00000000 00000000 08fe0000 ffffff80 00000000 00000000
[    5.247642] 
[    5.247642] X2: 0xffffffc078463f80:
[    5.247642] 3f80  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    5.247642] 3fa0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    5.247642] 3fc0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    5.247642] 3fe0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    5.247642] 4000  00000002 00000000 ffffffff ffffffff 78490000 ffffffc0 00000000 00000003
[    5.247642] 4020  57ac6e9d 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    5.247642] 4040  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    5.247642] 4060  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    5.247642] 
[    5.247642] X20: 0xffffffc0774abf80:
[    5.247642] bf80  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    5.247642] bfa0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    5.247642] bfc0  00000000 00000000 00000005 00000000 00000000 00000000 00000000 00000000
[    5.247642] bfe0  00000000 00000000 00000000 00000000 ffffffff ffffffff ffffffff ffffffff
[    5.247642] c000  77b6c000 ffffffc0 779ec900 ffffffc0 779ed400 ffffffc0 7856e080 ffffffc0
[    5.247642] c020  77b6c018 ffffffc0 77b6c010 ffffffc0 7856e080 ffffffc0 08efe4c8 ffffff80
[    5.247642] c040  779ef3c0 ffffffc0 00000003 00000007 00000000 00000000 00000000 00000000
[    5.247642] c060  00000000 00010001 774ac068 ffffffc0 774ac068 ffffffc0 78490000 ffffffc0
[    5.247642] 
[    5.247642] X25: 0xffffffc077b6bf80:
[    5.247642] bf80  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    5.247642] bfa0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    5.247642] bfc0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    5.247642] bfe0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    5.247642] c000  77c7ec10 ffffffc0 779ec800 ffffffc0 779ed200 ffffffc0 774ac018 ffffffc0
[    5.247642] c020  77c7ec28 ffffffc0 779ed280 ffffffc0 7856e080 ffffffc0 08efe4c8 ffffff80
[    5.247642] c040  77bf4f00 ffffffc0 00000006 00000007 00000000 00000000 00000000 00000000
[    5.247642] c060  00000001 00000000 77b6c068 ffffffc0 77b6c068 ffffffc0 00000000 00000000
[    5.247642] 
[    5.247642] X28: 0xffffffc077b6cf18:
[    5.247642] cf18  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    5.247642] cf38  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    5.247642] cf58  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    5.247642] cf78  00000000 00000000 00000000 00000000 00000000 00000000 00000007 0000009d
[    5.247642] cf98  31697073 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    5.247642] cfb8  00000000 00000000 00000000 00000000 00000001 00000000 77bd8a00 ffffffc0
[    5.247642] cfd8  ffffffe0 0000000f 77b6cfe0 ffffffc0 77b6cfe0 ffffffc0 0857fa5c ffffff80
[    5.247642] cff8  77b6cff8 ffffffc0 77b6cff8 ffffffc0 00010001 00000000 00000000 00000000
[    5.247642] 
[    5.247642] X29: 0xffffffc078467860:
[    5.247642] 7860  08efe000 ffffff80 08f059c0 ffffff80 00000000 00000000 77b6c000 ffffffc0
[    5.247642] 7880  00000000 00000000 00000000 00000000 77b6cf98 ffffffc0 784678e0 ffffffc0
[    5.247642] 78a0  0857b5fc ffffff80 784678e0 ffffffc0 0857b600 ffffff80 40000045 00000000
[    5.247642] 78c0  08f059a0 ffffff80 08efe000 ffffff80 ffffffff ffffffff 0857b5fc ffffff80
[    5.247642] 78e0  78467930 ffffffc0 08578fcc ffffff80 774ac000 ffffffc0 00000000 00000000
[    5.247642] 7900  08f059a0 ffffff80 08efe000 ffffff80 08f059c0 ffffff80 00000000 00000000
[    5.247642] 7920  77b6c000 ffffffc0 08931754 ffffff80 78467960 ffffffc0 0852e444 ffffff80
[    5.247642] 7940  774ac000 ffffffc0 00000000 00000000 08fe0000 ffffff80 00000000 00000000
[    5.247642] 
[    5.247642] ---[ end trace 9b9d41e2aa250d45 ]---
[    5.247642] Call trace:
[    5.247642] Exception stack(0xffffffc078467710 to 0xffffffc078467840)
[    5.247642] 7700:                                   ffffff8008a396d0 0000008000000000
[    5.247642] 7720: ffffffc0784678e0 ffffff800857b600 ffffffc078467860 ffffffc078467860
[    5.247642] 7740: ffffffc078467830 00000000ffffffd8 ffffffc0784677d8 4554535953425553
[    5.247642] 7760: ffffffc0784677a0 ffffff800847024c ffffffc078467848 ffffff8008dc7000
[    5.247642] 7780: ffffffc078467848 ffffffc078467880 ffffff8008df6000 0000000000000001
[    5.247642] 77a0: ffffffc0784677b0 ffffff80080875c0 0000000000000000 0000000000000000
[    5.247642] 77c0: ffffffc078464000 0000766564697073 ffffffffffffffff 0000000000000000
[    5.247642] 77e0: 0000000000008080 fefefefefefefefe ffffffffffffffff feff756463686f72
[    5.247642] 7800: 7f7f7f7f7f7f7f7f 0101010101010101 0000000000000030 ffffff8009199400
[    5.247642] 7820: ffffff8009199400 ffffff8008df5b10 000000007312709d 0000000000000000
[    5.247642] [<ffffff800857b600>] spidev_probe+0x64/0x194
[    5.247642] [<ffffff8008578fcc>] spi_drv_probe+0x94/0xac
[    5.247642] [<ffffff800852e444>] driver_probe_device+0x190/0x274
[    5.247642] [<ffffff800852e658>] __device_attach_driver+0x60/0x9c
[    5.247642] [<ffffff800852cb2c>] bus_for_each_drv+0x84/0x94
[    5.247642] [<ffffff800852e22c>] __device_attach+0xa4/0xf8
[    5.247642] [<ffffff800852e7cc>] device_initial_probe+0x10/0x18
[    5.247642] [<ffffff800852d8e4>] bus_probe_device+0x2c/0x8c
[    5.247642] [<ffffff800852bcc8>] device_add+0x414/0x50c
[    5.247642] [<ffffff80085795f8>] spi_add_device+0x124/0x148
[    5.247642] [<ffffff800857aae8>] spi_register_master+0x64c/0x67c
[    5.247642] [<ffffff800857f6e0>] sunxi_spi_probe+0x530/0x5a4
[    5.247642] [<ffffff800852fcd4>] platform_drv_probe+0x54/0xa8
[    5.247642] [<ffffff800852e444>] driver_probe_device+0x190/0x274
[    5.247642] [<ffffff800852e574>] __driver_attach+0x4c/0x90
[    5.247642] [<ffffff800852ca74>] bus_for_each_dev+0x80/0x90
[    5.247642] [<ffffff800852df48>] driver_attach+0x20/0x28
[    5.247642] [<ffffff800852dbd0>] bus_add_driver+0x194/0x1d8
[    5.247642] [<ffffff800852ee38>] driver_register+0x98/0xd0
[    5.247642] [<ffffff800852fbf0>] __platform_driver_register+0x48/0x50
[    5.247642] [<ffffff8008da0da8>] sunxi_spi_init+0x18/0x20
[    5.247642] [<ffffff8008082b2c>] do_one_initcall+0x18c/0x1a8
[    5.247642] [<ffffff8008d80e08>] kernel_init_freeable+0x23c/0x240
[    5.247642] [<ffffff800892bc70>] kernel_init+0x10/0xf8
[    5.247642] [<ffffff8008082690>] ret_from_fork+0x10/0x40
[    6.360203] Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
[    6.376403] libphy: Fixed MDIO Bus: probed
[    6.385264] gmac-power2: NULL
[    6.391464] PPP generic driver version 2.4.2
[    6.398398] PPP BSD Compression module registered
[    6.405416] PPP Deflate Compression module registered
[    6.412861] PPP MPPE Compression module registered
[    6.419997] NET: Registered protocol family 24
[    6.427018] usbcore: registered new interface driver smsc95xx
[    6.435370] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    6.444904] get ehci0-controller, regulator_io is no nocare
[    6.453278] [sunxi-ehci0]: probe, pdev->name: 1c1a000.ehci0-controller, sunxi_ehci: 0xffffff8008fe2d50, 0x:ffffff8009332000, irq_no:98
[    6.471117] sunxi-ehci 1c1a000.ehci0-controller: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
[    6.485939] sunxi-ehci 1c1a000.ehci0-controller: new USB bus registered, assigned bus number 1
[    6.498606] sunxi-ehci 1c1a000.ehci0-controller: irq 152, io mem 0xffffffc078467bc0
[    6.520040] sunxi-ehci 1c1a000.ehci0-controller: USB 0.0 started, EHCI 1.00
[    6.530704] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    6.540960] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    6.551716] usb usb1: Product: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
[    6.562824] usb usb1: Manufacturer: Linux 4.4.89 ehci_hcd
[    6.571604] usb usb1: SerialNumber: sunxi-ehci
[    6.580429] hub 1-0:1.0: USB hub found
[    6.587390] hub 1-0:1.0: 1 port detected
[    6.595062] [ehci0-controller]: sunxi_usb_disable_ehci
[    6.603499] [sunxi-ehci0]: remove, pdev->name: 1c1a000.ehci0-controller, sunxi_ehci: 0xffffff8008fe2d50
[    6.619659] sunxi-ehci 1c1a000.ehci0-controller: remove, state 1
[    6.629354] usb usb1: USB disconnect, device number 1
[    6.639850] sunxi-ehci 1c1a000.ehci0-controller: USB bus 1 deregistered
[    6.650598] get drv_vbus is fail, 84
[    6.657588] get ehci1-controller, regulator_io is no nocare
[    6.667038] [sunxi-ehci1]: probe, pdev->name: 1c1b000.ehci1-controller, sunxi_ehci: 0xffffff8008fe2af0, 0x:ffffff800933c000, irq_no:9a
[    6.686832] sunxi-ehci 1c1b000.ehci1-controller: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
[    6.703241] sunxi-ehci 1c1b000.ehci1-controller: new USB bus registered, assigned bus number 1
[    6.716465] sunxi-ehci 1c1b000.ehci1-controller: irq 154, io mem 0xffffffc078467bc0
[    6.740038] sunxi-ehci 1c1b000.ehci1-controller: USB 0.0 started, EHCI 1.00
[    6.750831] sunxi-ehci 1c1b000.ehci1-controller: ehci_irq: highspeed device connect
[    6.751070] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    6.751078] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    6.751084] usb usb1: Product: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
[    6.751090] usb usb1: Manufacturer: Linux 4.4.89 ehci_hcd
[    6.751096] usb usb1: SerialNumber: sunxi-ehci
[    6.812524] hub 1-0:1.0: USB hub found
[    6.819634] hub 1-0:1.0: 1 port detected
[    6.827840] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    6.838055] get ohci0-controller, regulator_io is no nocare
[    6.847518] [sunxi-ohci0]: probe, pdev->name: 1c1a000.ohci0-controller, sunxi_ohci: 0xffffff8008fe36d0
[    6.863891] sunxi-ohci 1c1a000.ohci0-controller: SW USB2.0 'Open' Host Controller (OHCI) Driver
[    6.876739] sunxi-ohci 1c1a000.ohci0-controller: new USB bus registered, assigned bus number 2
[    6.889547] sunxi-ohci 1c1a000.ohci0-controller: irq 153, io mem 0xffffff8008f09c48
[    6.964272] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
[    6.974958] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    6.986090] usb usb2: Product: SW USB2.0 'Open' Host Controller (OHCI) Driver
[    6.997072] usb usb2: Manufacturer: Linux 4.4.89 ohci_hcd
[    7.006005] usb usb2: SerialNumber: sunxi-ohci
[    7.014754] hub 2-0:1.0: USB hub found
[    7.021643] hub 2-0:1.0: 1 port detected
[    7.029143] [ohci0-controller]: sunxi_usb_disable_ohci
[    7.037449] [sunxi-ohci0]: remove, pdev->name: 1c1a000.ohci0-controller, sunxi_ohci: 0xffffff8008fe36d0
[    7.053320] sunxi-ohci 1c1a000.ohci0-controller: remove, state 1
[    7.062816] usb usb2: USB disconnect, device number 1
[    7.072252] sunxi-ohci 1c1a000.ohci0-controller: USB bus 2 deregistered
[    7.082768] get drv_vbus is fail, 84
[    7.089490] get ohci1-controller, regulator_io is no nocare
[    7.098776] [sunxi-ohci1]: probe, pdev->name: 1c1b000.ohci1-controller, sunxi_ohci: 0xffffff8008fe3470
[    7.115111] sunxi-ohci 1c1b000.ohci1-controller: SW USB2.0 'Open' Host Controller (OHCI) Driver
[    7.128042] sunxi-ohci 1c1b000.ohci1-controller: new USB bus registered, assigned bus number 2
[    7.140039] usb 1-1: new high-speed USB device number 2 using sunxi-ehci
[    7.151499] sunxi-ohci 1c1b000.ohci1-controller: irq 155, io mem 0xffffff8008f09c48
[    7.223693] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
[    7.234317] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    7.245415] usb usb2: Product: SW USB2.0 'Open' Host Controller (OHCI) Driver
[    7.256450] usb usb2: Manufacturer: Linux 4.4.89 ohci_hcd
[    7.265464] usb usb2: SerialNumber: sunxi-ohci
[    7.274378] hub 2-0:1.0: USB hub found
[    7.281507] hub 2-0:1.0: 1 port detected
[    7.289742] usbcore: registered new interface driver uas
[    7.298721] usbcore: registered new interface driver usb-storage
[    7.308352] usbcore: registered new interface driver ums-alauda
[    7.310657] usb 1-1: New USB device found, idVendor=1a40, idProduct=0101
[    7.310664] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    7.310670] usb 1-1: Product: USB 2.0 Hub
[    7.311708] hub 1-1:1.0: USB hub found
[    7.311793] hub 1-1:1.0: 4 ports detected
[    7.359957] usbcore: registered new interface driver ums-cypress
[    7.369316] usbcore: registered new interface driver ums-datafab
[    7.378577] usbcore: registered new interface driver ums_eneub6250
[    7.387986] usbcore: registered new interface driver ums-freecom
[    7.397056] usbcore: registered new interface driver ums-isd200
[    7.405882] usbcore: registered new interface driver ums-jumpshot
[    7.414751] usbcore: registered new interface driver ums-karma
[    7.423258] usbcore: registered new interface driver ums-onetouch
[    7.431963] usbcore: registered new interface driver ums-realtek
[    7.440432] usbcore: registered new interface driver ums-sddr09
[    7.448657] usbcore: registered new interface driver ums-sddr55
[    7.456839] usbcore: registered new interface driver ums-usbat
[    7.464927] usbcore: registered new interface driver usbserial
[    7.472827] usbcore: registered new interface driver usbserial_generic
[    7.481477] usbserial: USB Serial support registered for generic
[    7.489591] usb_serial_number:20080411
[    7.495816] mousedev: PS/2 mouse device common for all mice
[    7.504072] sunxi_keyboard_startup: keyboard has no clk.
[    7.511841] input: sunxi-keyboard as /devices/virtual/input/input0
[    7.521363] sunxi-rtc rtc: rtc core: registered sunxi-rtc as rtc0
[    7.529864] sunxi-rtc rtc: RTC enabled
[    7.535924] i2c /dev entries driver
[    7.542507] IR NEC protocol handler initialized
[    7.549016] IR RC5(x/sz) protocol handler initialized
[    7.556888] sunxi_ir_startup: get ir protocol failed
[    7.562522] Registered IR keymap rc_map_sunxi
[    7.571022] input: sunxi_ir_recv as /devices/platform/soc/s_cir0/rc/rc0/input1
[    7.581066] rc0: sunxi_ir_recv as /devices/platform/soc/s_cir0/rc/rc0
[    7.590741] sunxi cedar version 0.1 
[    7.596793] cedar_ve: cedar-ve the get irq is 145
[    7.604359] VE: get debugfs_mpp_root is NULL, please check mpp
[    7.604359] 
[    7.616433] VE: sunxi ve debug register driver failed!
[    7.616433] 
[    7.628185] google_vp9: sunxi google vp9 version 0.1
[    7.637077] input: axp803-powerkey as /devices/platform/soc/pmu0/axp803-powerkey/input/input2
[    7.659924] sunxi gpu cooling probe start !
[    7.667101] CPU gpu cooling register Success
[    7.675260] device-mapper: uevent: version 1.0.3
[    7.683591] device-mapper: ioctl: 4.34.0-ioctl (2015-10-28) initialised: dm-devel@redhat.com
[    7.695902] Bluetooth: HCI UART driver ver 2.3
[    7.703433] Bluetooth: HCI UART protocol H4 registered
[    7.711694] Bluetooth: HCI UART protocol BCSP registered
[    7.720087] Bluetooth: HCI UART protocol LL registered
[    7.728276] sunxi_cpufreq_init: only one opp_table
[    7.736044] [cpu_freq] ERR: Unable to get regulator
[    7.748859] sunxi-mmc sdc2: SD/MMC/SDIO Host Controller Driver(v1.19 2017-12-19 14:01)
[    7.760371] sunxi-mmc sdc2: regulator prop vmmc,str vcc-emmcv
[    7.769005] sunxi-mmc sdc2: regulator prop vqmmc,str vcc-emmcvq18
[    7.778030] sunxi-mmc sdc2: regulator prop vdmmc,str none
[    7.786439] sunxi-mmc sdc2: No vdmmc regulator found
[    7.794573] sunxi-mmc sdc2: set host busy
[    7.801372] sunxi-mmc sdc2: sdc set ios:clk 0Hz bm PP pm UP vdd 22 width 1 timing LEGACY(SDR12) dt B
[    7.830039] sunxi-mmc sdc2: sdc set ios:clk 400000Hz bm PP pm ON vdd 22 width 1 timing LEGACY(SDR12) dt B
[    7.860045] sunxi-mmc sdc2: detmode:alway in(non removable)
[    7.860876] sunxi-mmc sdc2: smc 0 p2 err, cmd 52, RTO !!
[    7.861706] sunxi-mmc sdc2: smc 0 p2 err, cmd 52, RTO !!
[    7.861726] sunxi-mmc sdc2: sdc set ios:clk 400000Hz bm PP pm ON vdd 22 width 1 timing LEGACY(SDR12) dt B
[    7.864158] sunxi-mmc sdc2: sdc set ios:clk 400000Hz bm PP pm ON vdd 22 width 1 timing LEGACY(SDR12) dt B
[    7.866025] sunxi-mmc sdc2: smc 0 p2 err, cmd 8, RTO !!
[    7.866852] sunxi-mmc sdc2: smc 0 p2 err, cmd 5, RTO !!
[    7.867677] sunxi-mmc sdc2: smc 0 p2 err, cmd 5, RTO !!
[    7.868502] sunxi-mmc sdc2: smc 0 p2 err, cmd 5, RTO !!
[    7.869329] sunxi-mmc sdc2: smc 0 p2 err, cmd 5, RTO !!
[    7.870160] sunxi-mmc sdc2: smc 0 p2 err, cmd 55, RTO !!
[    7.870987] sunxi-mmc sdc2: smc 0 p2 err, cmd 55, RTO !!
[    7.871814] sunxi-mmc sdc2: smc 0 p2 err, cmd 55, RTO !!
[    7.872642] sunxi-mmc sdc2: smc 0 p2 err, cmd 55, RTO !!
[    7.872660] sunxi-mmc sdc2: sdc set ios:clk 400000Hz bm OD pm ON vdd 22 width 1 timing LEGACY(SDR12) dt B
[    7.873030] sunxi-mmc sdc2: sdc set ios:clk 400000Hz bm OD pm ON vdd 22 width 1 timing LEGACY(SDR12) dt B
[    7.873084] sunxi-mmc sdc2: sdc set ios:clk 400000Hz bm OD pm ON vdd 22 width 1 timing LEGACY(SDR12) dt B
[    7.875510] sunxi-mmc sdc2: sdc set ios:clk 400000Hz bm OD pm ON vdd 22 width 1 timing LEGACY(SDR12) dt B
[    7.901192] sunxi-mmc sdc2: sdc set ios:clk 400000Hz bm PP pm ON vdd 22 width 1 timing LEGACY(SDR12) dt B
[    7.912755] mmc0: MAN_BKOPS_EN bit is not set
[    7.913718] sunxi-mmc sdc2: sdc set ios:clk 400000Hz bm PP pm ON vdd 22 width 1 timing MMC-HS(SDR20) dt B
[    7.914094] sunxi-mmc sdc2: sdc set ios:clk 52000000Hz bm PP pm ON vdd 22 width 1 timing MMC-HS(SDR20) dt B
[    7.914269] sunxi-mmc sdc2: sdc set ios:clk 50000000Hz bm PP pm ON vdd 22 width 8 timing MMC-HS(SDR20) dt B
[    7.914472] mmc0: new high speed MMC card at address 0001
[    7.915417] mmcblk0: mmc0:0001 8WPD3R 7.28 GiB 
[    7.915816] mmcblk0boot0: mmc0:0001 8WPD3R partition 1 4.00 MiB
[    7.916217] mmcblk0boot1: mmc0:0001 8WPD3R partition 2 4.00 MiB
[    7.917709]  mmcblk0: p1
[    8.157074] sunxi-mmc sdc0: SD/MMC/SDIO Host Controller Driver(v1.19 2017-12-19 14:01)
[    8.169067] sunxi-mmc sdc0: regulator prop vmmc,str vcc-sdcv
[    8.178523] sunxi-mmc sdc0: regulator prop vqmmc,str vcc-sdcvq33
[    8.188329] sunxi-mmc sdc0: regulator prop vdmmc,str vcc-sdcvd
[    8.198634] sunxi-mmc sdc0: set host busy
[    8.205983] sunxi-mmc sdc0: Got CD GPIO
[    8.213226] sunxi-mmc sdc0: sdc set ios:clk 0Hz bm PP pm UP vdd 22 width 1 timing LEGACY(SDR12) dt B
[    8.240039] sunxi-mmc sdc0: sdc set ios:clk 400000Hz bm PP pm ON vdd 22 width 1 timing LEGACY(SDR12) dt B
[    8.270049] sunxi-mmc sdc0: detmode:gpio polling
[    8.270881] sunxi-mmc sdc0: smc 1 p0 err, cmd 52, RTO !!
[    8.271711] sunxi-mmc sdc0: smc 1 p0 err, cmd 52, RTO !!
[    8.271729] sunxi-mmc sdc0: sdc set ios:clk 400000Hz bm PP pm ON vdd 22 width 1 timing LEGACY(SDR12) dt B
[    8.274159] sunxi-mmc sdc0: sdc set ios:clk 400000Hz bm PP pm ON vdd 22 width 1 timing LEGACY(SDR12) dt B
[    8.276350] sunxi-mmc sdc0: smc 1 p0 err, cmd 5, RTO !!
[    8.277175] sunxi-mmc sdc0: smc 1 p0 err, cmd 5, RTO !!
[    8.278000] sunxi-mmc sdc0: smc 1 p0 err, cmd 5, RTO !!
[    8.278825] sunxi-mmc sdc0: smc 1 p0 err, cmd 5, RTO !!
[    8.279467] sunxi-mmc sdc0: sdc set ios:clk 400000Hz bm PP pm ON vdd 22 width 1 timing LEGACY(SDR12) dt B
[    8.281899] sunxi-mmc sdc0: sdc set ios:clk 400000Hz bm PP pm ON vdd 22 width 1 timing LEGACY(SDR12) dt B
[    8.351637] mmc1: host does not support reading read-only switch, assuming write-enable
[    8.354913] sunxi-mmc sdc0: sdc set ios:clk 400000Hz bm PP pm ON vdd 22 width 1 timing SD-HS(SDR25) dt B
[    8.354970] sunxi-mmc sdc0: sdc set ios:clk 50000000Hz bm PP pm ON vdd 22 width 1 timing SD-HS(SDR25) dt B
[    8.355052] sunxi-mmc sdc0: sdc set ios:clk 50000000Hz bm PP pm ON vdd 22 width 4 timing SD-HS(SDR25) dt B
[    8.355089] mmc1: new high speed SDHC card at address aaaa
[    8.355941] mmcblk1: mmc1:aaaa SC16G 14.8 GiB 
[    8.358512]  mmcblk1: p1 p2
[    8.470376] sunxi-mmc sdc1: SD/MMC/SDIO Host Controller Driver(v1.19 2017-12-19 14:01)
[    8.482074] sunxi-mmc sdc1: Can't get vmmc regulator string
[    8.491156] sunxi-mmc sdc1: Can't get vqmmc regulator string
[    8.500264] sunxi-mmc sdc1: Can't get vdmmc regulator string
[    8.509229] get() with no identifier
[    8.515766] get() with no identifier
[    8.522161] get() with no identifier
[    8.528477] sunxi-mmc sdc1: No vmmc regulator found
[    8.536348] sunxi-mmc sdc1: No vqmmc regulator found
[    8.544345] sunxi-mmc sdc1: No vdmmc regulator found
[    8.552895] sunxi-mmc sdc1: set host busy
[    8.560066] sunxi-mmc sdc1: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
[    8.574990] sunxi-mmc sdc1: no vqmmc,Check if there is regulator
[    8.600038] sunxi-mmc sdc1: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    8.630044] sunxi-mmc sdc1: detmode:manually by software
[    8.630871] sunxi-mmc sdc1: smc 2 p1 err, cmd 52, RTO !!
[    8.631696] sunxi-mmc sdc1: smc 2 p1 err, cmd 52, RTO !!
[    8.631715] sunxi-mmc sdc1: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    8.634141] sunxi-mmc sdc1: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    8.636002] sunxi-mmc sdc1: smc 2 p1 err, cmd 8, RTO !!
[    8.636827] sunxi-mmc sdc1: smc 2 p1 err, cmd 5, RTO !!
[    8.637649] sunxi-mmc sdc1: smc 2 p1 err, cmd 5, RTO !!
[    8.638472] sunxi-mmc sdc1: smc 2 p1 err, cmd 5, RTO !!
[    8.639294] sunxi-mmc sdc1: smc 2 p1 err, cmd 5, RTO !!
[    8.640119] sunxi-mmc sdc1: smc 2 p1 err, cmd 55, RTO !!
[    8.640944] sunxi-mmc sdc1: smc 2 p1 err, cmd 55, RTO !!
[    8.641767] sunxi-mmc sdc1: smc 2 p1 err, cmd 55, RTO !!
[    8.642589] sunxi-mmc sdc1: smc 2 p1 err, cmd 55, RTO !!
[    8.642609] sunxi-mmc sdc1: sdc set ios:clk 400000Hz bm OD pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    8.643474] sunxi-mmc sdc1: smc 2 p1 err, cmd 1, RTO !!
[    8.643497] sunxi-mmc sdc1: sdc set ios:clk 0Hz bm PP pm OFF vdd 0 width 1 timing LEGACY(SDR12) dt B
[    8.790424] ledtrig-cpu: registered to indicate activity on CPUs
[    8.802412] hidraw: raw HID events driver (C) Jiri Kosina
[    8.815604] usbcore: registered new interface driver usbhid
[    8.823789] usbhid: USB HID core driver
[    8.830875] ion_heap_create: Invalid heap type 6
[    8.837920] ion_heap_create 'secure' failed!
[    8.845054] ashmem: initialized
[    8.852636] usbcore: registered new interface driver snd-usb-audio
[    8.862234] Enter ac108_init
[    8.867250] tas5731_audio_codec_init,l:543
[    8.874336] daudio:can not map codec digitial register 
[    8.883740] failed to get gpio-spk gpio from dts,spk_gpio:-2
[    8.892411] [ sndcodec ] err:try to get linein_detect failed!
[    8.901773] adda_com_reg_readl: reg = 0xffffff80080085c0
[    8.909615] adda_com_reg_writel: val = 0x78, reg = 0xffffff80080085c0
[    8.921038] sunxi-codec-machine sndcodec: codec-aif1 <-> i2s mapping ok
[    8.930807] sunxi-codec-machine sndcodec: codec-aif2 <-> bb-dai mapping ok
[    8.940880] sunxi-codec-machine sndcodec: codec-aif2 <-> bb-dai mapping ok
[    8.950944] sunxi-codec-machine sndcodec: codec-aif3 <-> bb-dai mapping ok
[    8.960857] sunxi-codec-machine sndcodec: ASoC: no sink widget found for LINEINL
[    8.971272] sunxi-codec-machine sndcodec: ASoC: Failed to add route Linein_detect -> direct -> LINEINL
[    8.985711] sunxi-codec-machine sndcodec: ASoC: no sink widget found for LINEINR
[    8.996105] sunxi-codec-machine sndcodec: ASoC: Failed to add route Linein_detect -> direct -> LINEINR
[    9.016133] input: audiocodec sunxi Audio Jack as /devices/platform/soc/sndcodec/sound/card0/input3
[    9.033442] SUNXI_HMIC_STS:8,267
[    9.035061] sndhdmi sndhdmi: audiohdmi-dai <-> daudio2 mapping ok
[    9.037785] ipip: IPv4 over IPv4 tunneling driver
[    9.038680] gre: GRE over IPv4 demultiplexor driver
[    9.038691] ip_gre: GRE over IPv4 tunneling driver
[    9.040292] ip_tables: (C) 2000-2006 Netfilter Core Team
[    9.079435] arp_tables: (C) 2002 David S. Miller
[    9.080043] plugout_end:switch:0
[    9.092888] Initializing XFRM netlink socket
[    9.101317] NET: Registered protocol family 10
[    9.110147] NET: Registered protocol family 17
[    9.117245] NET: Registered protocol family 15
[    9.124356] Bluetooth: RFCOMM TTY layer initialized
[    9.131829] Bluetooth: RFCOMM socket layer initialized
[    9.139607] Bluetooth: RFCOMM ver 1.11
[    9.145836] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    9.153887] Bluetooth: BNEP filters: protocol multicast
[    9.161832] Bluetooth: BNEP socket layer initialized
[    9.169435] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[    9.178050] Bluetooth: HIDP socket layer initialized
[    9.185602] 8021q: 802.1Q VLAN Support v1.8
[    9.192518] Key type dns_resolver registered
[    9.199091] Key type ceph registered
[    9.205245] libceph: loaded (mon/osd proto 15/24)
[    9.213012] sunxi_efuse_readn()711 - The key thermal_sensor is unavailable.
[    9.225105] registered taskstats version 1
[    9.235151] Btrfs loaded, debug=on, assert=on, integrity-checker=on
[    9.243983] BTRFS: selftest: Running btrfs free space cache tests
[    9.252561] BTRFS: selftest: Running extent only tests
[    9.260027] BTRFS: selftest: Running bitmap only tests
[    9.267432] BTRFS: selftest: Running bitmap and extent tests
[    9.275421] BTRFS: selftest: Running space stealing from bitmap to extent
[    9.285587] BTRFS: selftest: Free space cache tests finished
[    9.293542] BTRFS: selftest: Running extent buffer operation tests
[    9.300387] BTRFS: selftest: Running btrfs_split_item tests
[    9.310048] BTRFS: selftest: Running find delalloc tests
[    9.697179] BTRFS: selftest: Running btrfs_get_extent tests
[    9.705606] BTRFS: selftest: Running hole first btrfs_get_extent test
[    9.714647] BTRFS: selftest: Running outstanding_extents tests
[    9.723006] BTRFS: selftest: Running qgroup tests
[    9.729928] BTRFS: selftest: Qgroup basic add
[    9.736672] BTRFS: selftest: Qgroup multiple refs test
[    9.801300] Key type encrypted registered
[    9.808173] [DISP] boot_disp:0x0
[    9.813819] [DISP] disp_sys_pin_set_state,line:449:
[    9.819165] pinctrl_lookup_state for allwinner,sunxi-hdmi fail
[    9.829336] [DISP] disp_sys_pin_set_state,line:449:
[    9.834698] pinctrl_lookup_state for allwinner,sunxi-hdmi fail
[    9.844797] [HDMI WRN] file:drivers/video/fbdev/sunxi/disp2/hdmi/drv_hdmi.c,line:801:    
[    9.853931] hdmi_clk_enable
[    9.860872] [HDMI] power vcc-hdmi-33
[    9.867140] [HDMI] cec support = 0
[    9.980684] console [netcon0] enabled
[    9.986419] netconsole: network logging started
[    9.993232] sunxi-rtc rtc: setting system clock to 2019-07-02 12:32:12 UTC (1562070732)
[   10.004363] sunxi budget cooling probe start !
[   10.011209] CPU freq cooling register Success
[   10.017925] CPU hotplug cooling register Success
[   10.025280] CPU budget cooling register Success
[   10.042064] axp803_dcdc3: incomplete constraints, leaving on
[   10.050476] axp803_aldo1: incomplete constraints, leaving on
[   10.058713] axp803_dldo2: incomplete constraints, leaving on
[   10.066916] axp803_dldo3: incomplete constraints, leaving on
[   10.075056] axp803_dldo4: incomplete constraints, leaving on
[   10.083216] axp803_eldo3: incomplete constraints, leaving on
[   10.091343] axp803_ldoio0: incomplete constraints, leaving on
[   10.099706] ALSA device list:
[   10.104729]   #0: audiocodec
[   10.109617]   #1: sndhdmi
[   10.114782] Freeing unused kernel memory: 448K
Kernel params: console=tty0 console=ttyS0,115200n8 no_console_suspend disp.screen0_output_mode=1080p60 earlycon=uart,mmio32,0x01c28000 mac_addr=36:c9:e3:f1:b8:05 root=/dev/mmcblk1p2 ro rootwait
Waiting for root system /dev/mmcblk1p2, countdown : 5
Rootfs: /dev/mmcblk1p2
[   10.227183] EXT4-fs (mmcblk1p2): couldn't mount as ext3 due to feature incompatibilities
[   10.244180] EXT4-fs (mmcblk1p2): couldn't mount as ext2 due to feature incompatibilities
[   10.268777] EXT4-fs (mmcblk1p2): warning: mounting unchecked fs, running e2fsck is recommended
[   10.289526] EXT4-fs (mmcblk1p2): mounted filesystem without journal. Opts: (null)
[   10.590093] [DISP] disp_device_attached_and_enable,line:200:
[   10.596461] attached ok, mgr0<-->device0, type=4, mode=18
[   10.609054] [HDMI WRN] file:drivers/video/fbdev/sunxi/disp2/hdmi/drv_hdmi.c,line:406:    
[   10.618345] unsupported video mode 18 when set display mode
[   10.630306] [DISP] disp_hdmi_enable,line:342:
[   10.635034] video info is null
[   10.889692] random: systemd: uninitialized urandom read (16 bytes read, 28 bits of entropy available)
[   10.909127] random: systemd: uninitialized urandom read (16 bytes read, 28 bits of entropy available)
[   10.923624] random: systemd: uninitialized urandom read (16 bytes read, 29 bits of entropy available)
[   10.942931] systemd[1]: systemd 229 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ -LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN)
[   10.971549] systemd[1]: Detected architecture arm64.

Welcome to Ubuntu 16.04.6 LTS!

[   11.023756] systemd[1]: Set hostname to <bpi-m64>.
[   11.055129] random: systemd: uninitialized urandom read (16 bytes read, 29 bits of entropy available)
[   11.093010] random: systemd-cryptse: uninitialized urandom read (16 bytes read, 30 bits of entropy available)
[   11.129517] random: systemd-gpt-aut: uninitialized urandom read (16 bytes read, 30 bits of entropy available)
[   11.131396] random: systemd-sysv-ge: uninitialized urandom read (16 bytes read, 30 bits of entropy available)
[   11.138826] random: systemd-sysv-ge: uninitialized urandom read (16 bytes read, 30 bits of entropy available)
[   11.183286] random: systemd-gpt-aut: uninitialized urandom read (16 bytes read, 31 bits of entropy available)
[   11.201468] random: systemd-gpt-aut: uninitialized urandom read (16 bytes read, 31 bits of entropy available)
[   11.414040] systemd[1]: Listening on udev Control Socket.
[  OK  ] Listening on udev Control Socket.
[   11.440321] systemd[1]: Reached target Encrypted Volumes.
[  OK  ] Reached target Encrypted Volumes.
[   11.470756] systemd[1]: Created slice System Slice.
[  OK  ] Created slice System Slice.
[   11.500649] systemd[1]: Created slice system-systemd\x2dfsck.slice.
[  OK  ] Created slice system-systemd\x2dfsck.slice.
[   11.530135] systemd[1]: Reached target User and Group Name Lookups.
[  OK  ] Reached target User and Group Name Lookups.
[   11.560121] systemd[1]: Reached target Remote File Systems (Pre).
[  OK  ] Reached target Remote File Systems (Pre).
[   11.590116] systemd[1]: Reached target Remote File Systems.
[  OK  ] Reached target Remote File Systems.
[   11.620297] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
[   11.650621] systemd[1]: Created slice system-serial\x2dgetty.slice.
[  OK  ] Created slice system-serial\x2dgetty.slice.
[   11.680383] systemd[1]: Listening on Journal Socket.
[  OK  ] Listening on Journal Socket.
[   11.723941] systemd[1]: Starting LSB: controls configuration of serial ports...
         Starting LSB: controls configuration of serial ports...
[   11.750485] systemd[1]: Listening on fsck to fsckd communication Socket.
[  OK  ] Listening on fsck to fsckd communication Socket.
[   11.783022] systemd[1]: Mounting Debug File System...
         Mounting Debug File System...
[   11.810537] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[  OK  ] Started Forward Password Requests to Wall Directory Watch.
[   11.840631] systemd[1]: Listening on Journal Audit Socket.
[  OK  ] Listening on Journal Audit Socket.
[   11.870416] systemd[1]: Listening on Journal Socket (/dev/log).
[  OK  ] Listening on Journal Socket (/dev/log).
[   11.903024] systemd[1]: Starting Journal Service...
         Starting Journal Service...
[   11.930262] systemd[1]: Reached target Swap.
[  OK  ] Reached target Swap.
[   11.952942] systemd[1]: Starting Set console keymap...
         Starting Set console keymap...
[   11.980733] systemd[1]: Created slice User and Session Slice.
[  OK  ] Created slice User and Session Slice.
[   12.010300] systemd[1]: Reached target Slices.
[  OK  ] Reached target Slices.
[   12.033222] systemd[1]: Mounting POSIX Message Queue File System...
         Mounting POSIX Message Queue File System...
[   12.073170] systemd[1]: Starting Create list of required static device nodes for the current kernel...
         Starting Create list of required st... nodes for the current kernel...
[   12.113300] systemd[1]: Starting Remount Root and Kernel File Systems...
         Starting Remount Root and Kernel File Systems...
[   12.140481] EXT4-fs (mmcblk1p2): re-mounted. Opts: (null)
[   12.145220] systemd[1]: Starting Load Kernel Modules...
         Starting Load Kernel Modules...
[   12.180450] systemd[1]: Listening on udev Kernel Socket.
[  OK  ] Listening on udev Kernel Socket.
[   12.217902] systemd[1]: Mounted POSIX Message Queue File System.
[  OK  ] Mounted POSIX Message Queue File System.
[   12.250576] systemd[1]: Mounted Debug File System.
[   12.252446] dhd_module_init: in Dongle Host Driver, version 1.363.59.144.10 (r)
[   12.252454] ======== dhd_wlan_init_plat_data ========
[   12.252458] dhd_wlan_init_gpio: GPIO(WL_REG_ON) = -1
[   12.252462] dhd_wlan_init_gpio: GPIO(WL_HOST_WAKE) = -1
[   12.252472] dhd_wlan_init_gpio: host_oob_irq: 10
[   12.252476] dhd_wlan_init_gpio: host_oob_irq_flags=0x4084
[   12.252479] dhd_wifi_platform_load: Enter
[   12.252509] Power-up adapter 'DHD generic adapter'
[   12.252604] wifi_platform_set_power = 1
[   12.252609] ======== PULL WL_REG_ON(-1) HIGH! ========
[   12.252844] sunxi-wlan wlan: check wlan io_regulator voltage: 3300000
[  OK  ] Mounted Debug File System.
[   12.360664] systemd[1]: Started Journal Service.
[  OK  ] Started Journal Service.
[FAILED] Failed to start Set console keymap.
See 'systemctl status keyboard-setup.service' for details.
[  OK  ] Started Create list of required sta...ce nodes for the current kernel.
[  OK  ] Started Remount Root and Kernel File Systems.
[  OK  ] Started LSB: controls configuration of serial ports.
[   12.570084] wifi_platform_bus_enumerate device present 1
[   12.578103] sunxi-wlan wlan: bus_index: 1
[   12.584853] ======== Card detection to detect SDIO card! ========
[   12.593896] sunxi-mmc sdc1: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
         Starting Load/Save Random Seed...
[   12.608678] sunxi-mmc sdc1: no vqmmc,Check if there is regulator
         Starting udev Coldplug all Devic[   12.630172] sunxi-mmc sdc1: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
es...
[   12.660900] sunxi-mmc sdc1: smc 2 p1 err, cmd 52, RTO !!
         [   12.669906] sunxi-mmc sdc1: smc 2 p1 err, cmd 52, RTO !!
[   12.678246] sunxi-mmc sdc1: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
Starting Create Static Device Nodes in /dev...
[   12.695958] sunxi-mmc sdc1: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[   12.713264] sunxi-mmc sdc1: smc 2 p1 err, cmd 8, RTO !!
         Starting Flush Journal to Persistent Storage...
[   12.736161] mmc2: queuing unknown CIS tuple 0x80 (2 bytes)
[   12.746338] mmc2: queuing unknown CIS tuple 0x80 (3 bytes)
[  OK  [   12.756581] mmc2: queuing unknown CIS tuple 0x80 (3 bytes)
] Started Load/Save Random Seed.
[   12.768057] mmc2: queuing unknown CIS tuple 0x80 (7 bytes)
[   12.780304] mmc2: queuing unknown CIS tuple 0x81 (9 bytes)
[FAILED] Failed to start Create Static Device Nodes in /dev.
See 'systemctl status systemd-tmpfiles-setup-dev.service' for details.
[   12.877373] sunxi-mmc sdc1: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
[   12.892937] systemd-journald[1390]: Received request to flush runtime journal from PID 1
         Starting udev Kernel Device Mana[   12.905208] sunxi-mmc sdc1: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
ger...
[   12.921812] sunxi-mmc sdc1: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 4 timing SD-HS(SDR25) dt B
[  OK  ] Reached target Local File Syst[   12.939943] mmc2: new high speed SDIO card at address 0001
ems (Pre).
[  OK  ] Started Flush Journal to Persistent Storage.
[   12.969042] bcmsdh_register: register client driver
[   12.977387] bcmsdh_sdmmc: bcmsdh_sdmmc_probe Enter
[   12.985646] bcmsdh_sdmmc: bcmsdh_sdmmc_probe Enter
[   12.993753] bus num (host idx)=2, slot num (rca)=1
[   13.001573] found adapter info 'DHD generic adapter'
[   13.009577] sdioh_attach: set sd_f2_blocksize 256
[   13.017650] dhdsdio_probe : no mutex held. set lock
[   13.025699] F1 signature read @0x18000000=0x1541a9a6
[   13.036153] F1 signature OK, socitype:0x1 chip:0xa9a6 rev:0x1 pkg:0x4
[   13.046665] DHD: dongle ram size is set to 524288(orig 524288) at 0x0
[   13.056339] dhd_conf_set_chiprev: chip=0xa9a6, chiprev=1
[   13.065710] wl_create_event_handler(): thread:wl_event_handler:6e6 started
[   13.075748] tsk Enter, tsk = 0xffffffc0776a1a70
[   13.080579] dhd_attach(): thread:dhd_watchdog_thread:6e8 started
[   13.080672] dhd_attach(): thread:dhd_dpc:6e9 started
[   13.080757] dhd_attach(): thread:dhd_rxf:6ea started
[   13.080771] dhd_deferred_work_init: work queue initialized 
[  OK  ] Started udev Coldplug all Devi[   13.129521] Dongle Host Driver, version 1.363.59.144.10 (r)
ces.
[   13.139577] Register interface [wlan0]  MAC: 8c:f7:10:32:cf:80
[   13.139577] 
[   13.152486] wl_event_handler: was terminated
[   13.159357] wl_destroy_event_handler(): thread:wl_event_handler:6e6 terminated OK
[   13.169929] dhd_wl_ioctl: returning as busstate=0
[   13.177344] bcmsdh_oob_intr_unregister: Enter
[  OK  ] Started udev Kernel Device Man[   13.184288] bcmsdh_oob_intr_unregister: irq is not registered
ager.
[   13.195627] dhd_txglom_enable: enable 0
[   13.201947] dhd_conf_set_txglom_params: swtxglom=0, txglom_ext=0, txglom_bucket_size=0
[   13.201958] dhd_conf_set_txglom_params: txglomsize=0, deferred_tx_len=0, bus_txglom=-1
[   13.201962] dhd_conf_set_txglom_params: tx_in_rx=1, txinrx_thres=-1, dhd_txminmax=1
[   13.201966] dhd_conf_set_txglom_params: tx_max_offset=0, txctl_tmo_fix=1
[   13.201970] sdioh_set_mode: set txglom_mode to multi-desc
[   13.201975] dhd_bus_devreset:  WLAN OFF DONE
[   13.202052] wifi_platform_set_power = 0
[   13.202057] ======== PULL WL_REG_ON(-1) LOW! ========
[   13.202357] dhdsdio_probe : the lock is released.
[   13.202580] dhd_module_init: Exit err=0
[  OK  ] Started Dispatch Password Requests to Console Directory Watch.
[  OK  ] Reached target Paths.
[  OK  ] Started Load Kernel Modules.
         Starting Apply Kernel Variables...
         Mounting FUSE Control File System...
         Mounting Configuration File System...
[  OK  ] Mounted Configuration File System.
[  OK  ] Mounted FUSE Control File System.
[  OK  ] Started Apply Kernel Variables.
[  OK  ] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch.
         Starting Load/Save RF Kill Switch Status...
[  OK  ] Started Load/Save RF Kill Switch Status.
[  OK  ] Found device /sys/subsystem/net/devices/eth0.
[  OK  ] Reached target Sound Card.
[  OK  ] Found device /dev/ttyS0.
[   14.227977] [VFE_ERR]Error registering v4l2 subdevice No such device!
[   14.237570] [VFE_ERR]vfe sensor register check error at input_num = 0
[  OK  ] Found device /dev/mmcblk1p1.
         Starting File System Check on /dev/mmcblk1p1...
[  OK  ] Started File System Check Daemon to report status.
[  OK  ] Found device /sys/subsystem/net/devices/wlan0.
[  OK  ] Started File System Check on /dev/mmcblk1p1.
         Mounting /boot...
[  OK  ] Mounted /boot.
[  OK  ] Reached target Local File Systems.
[  OK  ] Started ifup for eth0.
         Starting Set console font and keymap...
         Starting Tell Plymouth To Write Out Runtime Data...
         Starting Raise network interfaces...
[  OK  ] Started ifup for wlan0.
         Starting Create Volatile Files and Directories...
[FAILED] Failed to start Set console font and keymap.
See 'systemctl status console-setup.service' for details.
[  OK  ] Started Tell Plymouth To Write Out Runtime Data.
[FAILED] Failed to start Create Volatile Files and Directories.
See 'systemctl status systemd-tmpfiles-setup.service' for details.
         Starting Network Time Synchronization...
         Starting Update UTMP about System Boot/Shutdown...
[  OK  ] Started Network Time Synchronization.
[  OK  ] Reached target System Time Synchronized.
[  OK  ] Started Update UTMP about System Boot/Shutdown.
[  OK  ] Reached target System Initialization.
[  OK  ] Started Daily Cleanup of Temporary Directories.
[  OK  ] Started Daily apt download activities.
[  OK  ] Started Daily apt upgrade and clean activities.
[  OK  ] Reached target Timers.
[  OK  ] Listening on D-Bus System Message Bus Socket.
[  OK  ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
[  OK  ] Reached target Sockets.
[  OK  ] Reached target Basic System.
         Starting Modem Manager...
         Starting Save/Restore Sound Card State...
         Starting Accounts Service...
         Starting LSB: Banana Pi script...
         Starting Restore /etc/resolv.conf i...re the ppp link was shut down...
         Starting LSB: Set the CPU Frequency Scaling governor to "ondemand"...
         Starting Login Service...
         Starting Avahi mDNS/DNS-SD Stack...
         Starting controls configuration of serial ports...
         Starting Permit User Sessions...
[  OK  ] Started D-Bus System Message Bus.
[  OK  ] Started Avahi mDNS/DNS-SD Stack.
         Starting Network Manager...
[  OK  ] Started Restore /etc/resolv.conf if...fore the ppp link was shut down.
[  OK  ] Started Permit User Sessions.
[  OK  ] Started Save/Restore Sound Card State.
[  OK  ] Started LSB: Set the CPU Frequency Scaling governor to "ondemand".
[  OK  ] Started Login Service.
         Starting Authenticate and Authorize Users to Run Privileged Tasks...
         Starting Light Display Manager...
[  OK  ] Started controls configuration of serial ports.
[  OK  ] Started Authenticate and Authorize Users to Run Privileged Tasks.
[  OK  ] Started Accounts Service.
[  OK  ] Created slice system-getty.slice.
[  OK  ] Started Light Display Manager.
[  OK  ] Started Network Manager.
         Starting Network Manager Script Dispatcher Service...
[  OK  ] Started Modem Manager.
[  OK  ] Started Network Manager Script Dispatcher Service.
         Starting Hostname Service...
[  OK  ] Started Hostname Service.
         Starting WPA supplicant...
[  OK  ] Started WPA supplicant.
[  OK  ] Created slice User Slice of lightdm.
[  OK  ] Started Session c1 of user lightdm.
         Starting User Manager for UID 106...
[  OK  ] Started User Manager for UID 106.
         Starting Bluetooth service...
[  OK  ] Started Bluetooth service.
         Starting RealtimeKit Scheduling Policy Service...
[  OK  ] Started RealtimeKit Scheduling Policy Service.
         Starting Daemon for power management...
[  OK  ] Started Daemon for power management.
         Starting Manage, Install and Generate Color Profiles...
[  OK  ] Started Manage, Install and Generate Color Profiles.
[  OK  ] Started Raise network interfaces.
[  OK  ] Reached target Network.
         Starting OpenBSD Secure Shell server...
         Starting /etc/rc.local Compatibility...
[  OK  ] Started /etc/rc.local Compatibility.
[FAILED] Failed to start OpenBSD Secure Shell server.
See 'systemctl status ssh.service' for details.
         Starting Hold until boot process finishes up...
[  OK  ] Started Hold until boot process finishes up.
[  OK  ] Started Getty on tty1.
[  OK  ] Started Serial Getty on ttyS0.
[  OK  ] Reached target Login Prompts.
[  OK  ] Stopped OpenBSD Secure Shell server.
         Starting OpenBSD Secure Shell server...
[FAILED] Failed to start OpenBSD Secure Shell server.
See 'systemctl status ssh.service' for details.
[  OK  ] Stopped OpenBSD Secure Shell server.
         Starting OpenBSD Secure Shell server...
[FAILED] Failed to start OpenBSD Secure Shell server.
See 'systemctl status ssh.service' for details.
[  OK  ] Stopped OpenBSD Secure Shell server.
         Starting OpenBSD Secure Shell server...
[FAILED] Failed to start OpenBSD Secure Shell server.
See 'systemctl status ssh.service' for details.
[  OK  ] Stopped OpenBSD Secure Shell server.
         Starting OpenBSD Secure Shell server...
[FAILED] Failed to start OpenBSD Secure Shell server.
See 'systemctl status ssh.service' for details.
[  OK  ] Stopped OpenBSD Secure Shell server.
[FAILED] Failed to start OpenBSD Secure Shell server.
See 'systemctl status ssh.service' for details.

Ubuntu 16.04.6 LTS bpi-m64 ttyS0

[   45.500111] Bluetooth: hci0 command 0x1003 tx timeout
[   47.500123] Bluetooth: hci0 command 0x1001 tx timeout
[   49.500124] Bluetooth: hci0 command 0x1009 tx timeout
[   55.490115] Bluetooth: hci0 command 0x1003 tx timeout
[   57.490095] Bluetooth: hci0 command 0x1001 tx timeout
[   59.490104] Bluetooth: hci0 command 0x1009 tx timeout
`
avafinger commented 5 years ago

Well, spi is Buggy.

I will check how to enable debugging...

shaddow501 commented 5 years ago

Is the problem with the LCD related to the SPI? I see also issue with the SSH. and still when I do ifconfig after applying the patch I get this:

root@bpi-m64:~# ifconfig
eth0      Link encap:Ethernet  HWaddr 36:c9:e3:f1:b8:05  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:172 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

root@bpi-m64:~# 

and...
`root@bpi-m64:~# ifconfig wlan0 up
SIOCSIFFLAGS: Operation not possible due to RF-kill
root@bpi-m64:~# rfkill unblock all
root@bpi-m64:~# ifconfig wlan0 up 
root@bpi-m64:~# ifconfig 
eth0      Link encap:Ethernet  HWaddr 36:c9:e3:f1:b8:05  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:172 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wlan0     Link encap:Ethernet  HWaddr 8c:f7:10:32:cf:80  
          inet6 addr: fe80::8ef7:10ff:fe32:cf80/64 Scope:Link
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:14 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:1819 (1.8 KB)

root@bpi-m64:~# 
`

is this normal?

In nmtui I get nothing..

nmtui

avafinger commented 5 years ago

Is the problem with the LCD related to the SPI? No.

Are you using CLI or you have a desktop installed?

What is the output of ls -la /lib/firmware/ap6212/

avafinger commented 5 years ago

update your firmware, just in case:

sudo tar -xvpzf firmware.tar.gz -C /lib/firmware

I still have A0 chip (old board), you need firmware for the A1 (wlan0) eth0 may need to adjust TX and RX.

firmware.tar.gz

avafinger commented 5 years ago

and you can't use SSH without ethernet or wlan, can you? I think your printscreen is from TTL debug, right?

shaddow501 commented 5 years ago

Dear Avafinger

I will try to answer all those questions;

  1. I have the desktop installed but I work with TTL serial & SSH, I dont have a screen remember ... :)
  2. Output of the ap6212
`root@bpi-m64:~# ls -la /lib/firmware/ap6212/
total 1716
drwxr-xr-x  2 root   root     4096 Jul  2 01:56 .
drwxrwxr-x 39 ubuntu ubuntu   4096 Jul  1 17:14 ..
-rwxr-xr-x  1 root   root    26020 Jan 21  2017 bcm43438a0.hcd
-rw-r--r--  1 root   root    33376 Jul  2 01:56 bcm43438a1.hcd
-rwxr-xr-x  1 root   root      136 Jan 21  2017 config.txt
-rwxr-xr-x  1 root   root   309352 Jan 21  2017 fw_bcm43438a0_apsta.bin
-rwxr-xr-x  1 root   root   326074 Jan 21  2017 fw_bcm43438a0.bin
-rwxr-xr-x  1 root   root   326074 Jan 21  2017 fw_bcm43438a0_p2p.bin
-rw-r--r--  1 root   root   374608 Jul  2 01:56 fw_bcm43438a1.bin
-rwxr-xr-x  1 root   root   326074 Jan 21  2017 fw_bcmdhd.bin
-rwxr-xr-x  1 root   root      956 Jan 21  2017 nvram_ap6212.txt
-rwxr-xr-x  1 root   root      956 Jan 21  2017 nvram.txt
root@bpi-m64:~# `
  1. I did the firmware.tar.gz and rebooted, here is the output after reboot.
`root@bpi-m64:~# 
[   44.790113] Bluetooth: hci0 command 0x1003 tx timeout
i[   46.790121] Bluetooth: hci0 command 0x1001 tx timeout
fconfig
eth0      Link encap:Ethernet  HWaddr 36:c9:e3:f1:b8:05  
          inet addr:172.21.199.23  Bcast:172.21.255.255  Mask:255.255.0.0
          inet6 addr: fe80::34c9:e3ff:fef1:b805/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:362 errors:0 dropped:0 overruns:0 frame:0
          TX packets:49 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:36172 (36.1 KB)  TX bytes:6333 (6.3 KB)
          Interrupt:172 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:2 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1 
          RX bytes:98 (98.0 B)  TX bytes:98 (98.0 B)

root@bpi-m64:~# [   48.790122] Bluetooth: hci0 command 0x1009 tx timeout
[   54.780129] Bluetooth: hci0 command 0x1003 tx timeout
[   56.780122] Bluetooth: hci0 command 0x1001 tx timeout
[   58.780114] Bluetooth: hci0 command 0x1009 tx timeout`

`root@bpi-m64:~# ifconfig wlan0 up
SIOCSIFFLAGS: Operation not possible due to RF-kill`
  1. lol you are right, too many images, the one on the EMMC is armbian and the one on the SD is yours so i was getting used to work with SSH, forgotten that the eth0 is not connected... but still the ssh doesnt work for me...
avafinger commented 5 years ago

Ok, your eth0 is up and i see some traffic, i think you need a new TX and RX values, that is going to be tough. Let's make it clear, with wrong TX and RX you might have problems with Gbps but should work with 100Mbps or vice-versa.

What i will try to do is to enable some debugging. That may take some time...

shaddow501 commented 5 years ago

Ok, I am with you waiting for your support.

Another question, Maybe you know how to enable the SPI on the BPI-SINOVOIP/BPI-M64-bsp-4.4 Kernel In the sunxi-pack/allwinner/tulip-m64/configs/BPI-M64-720P/sys_config.fex I see that the SPI is enabled ("okey") but still I dont see it in the /dev..

from the sys_config.fex:

[spi1]
spi1_used       = 1
spi1_cs_number  = 1
spi1_cs_bitmap  = 1
spi1_cs0        = port:PD0<4><1><default><default>
spi1_sclk       = port:PD1<4><default><default><default>
spi1_mosi       = port:PD2<4><default><default><default>
spi1_miso       = port:PD3<4><default><default><default>

Is there anything else I should set?

by the way with the BPI-SINOVOIP/BPI-M64-bsp-4.4 Kernel I do not have issues with WLAN and ETH0, the Bluetooth doesnt work though in any image..

avafinger commented 5 years ago

BPI-M64-bsp-4.4 has a patch for eth . My board is a pre-production board, something has changed on their new HW revision.

Regarding SPI , that is all you need to set. Check dmesg and see if it was not crashed at some point. I am not sure which SPI should be set spidev1,0 or spidev0.0.

shaddow501 commented 5 years ago

On the BPI-SINOVOIP/BPI-M64-bsp-4.4 Kernel (Ubuntu image)

I have this:


root@bpi-iot-ros-ai:~# ifconfig
eth0      Link encap:Ethernet  HWaddr 0a:77:1d:6e:87:72  
          inet addr:172.21.199.58  Bcast:172.21.255.255  Mask:255.255.0.0
          inet6 addr: fe80::4c6d:1e5f:bd40:56df/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:851 errors:0 dropped:0 overruns:0 frame:0
          TX packets:252 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:173199 (173.1 KB)  TX bytes:33640 (33.6 KB)
          Interrupt:172 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:95 errors:0 dropped:0 overruns:0 frame:0
          TX packets:95 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1 
          RX bytes:8565 (8.5 KB)  TX bytes:8565 (8.5 KB)

wlan0     Link encap:Ethernet  HWaddr 8c:f7:10:32:cf:80  
          inet addr:10.0.0.88  Bcast:10.255.255.255  Mask:255.0.0.0
          inet6 addr: fe80::624b:758a:3a60:2b6f/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:14 errors:0 dropped:0 overruns:0 frame:0
          TX packets:68 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:2000 (2.0 KB)  TX bytes:9423 (9.4 KB)

regarding to the SPI:

root@bpi-iot-ros-ai:~# dmesg | grep spi
[    0.676565] sunxi hwspinlock vbase:0xffffff8008058000
[    5.573628] spi spi1: master is unqueued, this is deprecated

I have no idea what it means only that in /dev I do not see it.

avafinger commented 5 years ago

Here is the patch that supposedly would work. Apply the patch to BPI kernel and change sys_config.fex:

[disp] screen0_output_mode = 18

hdmi_5_800x480.patch.tar.gz

shaddow501 commented 5 years ago

Dear Avafinger

are you talking about your image or BPI-SINOVOIP/BPI-M64-bsp-4.4 image? because in your image i dont know where is the sys_config.fex

avafinger commented 5 years ago

BPI-SINOVOIP/BPI-M64-bsp-4.4 image

shaddow501 commented 5 years ago

Hmm How do I apply the patch in the BPI-SINOVOIP/BPI-M64-bsp-4.4 image?

avafinger commented 5 years ago

You have to rebuild Kernel and Image (BPI) with this patch applied. From the root where there is the .git (build.sh) you try:

git apply --check hdmi_5_800x480.patch if no error you can then: git apply hdmi_5_800x480.patch

shaddow501 commented 5 years ago

warning: linux-sunxi/drivers/video/fbdev/sunxi/disp2/disp/de/include.h has type 100755, expected 100644 error: patch failed: linux-sunxi/drivers/video/fbdev/sunxi/disp2/hdmi/drv_hdmi.c:358 error: linux-sunxi/drivers/video/fbdev/sunxi/disp2/hdmi/drv_hdmi.c: patch does not apply

avafinger commented 5 years ago

hmm, you have some user privileges issues here. You can edit the patch, find the source and line and apply manually.

For example, this did not apply because there are new code in BPI Kernel, edit the file by hand and apply: **diff --git a/linux-sunxi/drivers/video/fbdev/sunxi/disp2/hdmi/drv_hdmi.c b/linux-sunxi/drivers/video/fbdev/sunxi/disp2/hdmi/drv_hdmi.c index 09efafa..f466a7a 100644 --- a/linux-sunxi/drivers/video/fbdev/sunxi/disp2/hdmi/drv_hdmi.c +++ b/linux-sunxi/drivers/video/fbdev/sunxi/disp2/hdmi/drv_hdmi.c @@ -358,6 +358,7 @@ static struct disp_hdmi_mode hdmi_mode_tbl[] = { {DISP_TV_MOD_3840_2160P_25HZ, HDMI3840_2160P_25, }, {DISP_TV_MOD_3840_2160P_24HZ, HDMI3840_2160P_24, }, {DISP_TV_MOD_4096_2160P_24HZ, HDMI4096_2160P_24, },