frank-w / BPI-Router-Linux

Linux kernel 4.14+ for BPI-R2, 5.4+ for R64, 6.1+ for R2Pro and R3
Other
132 stars 47 forks source link

Stuck at "waiting for root device ..." #8

Closed weiqi-chen closed 6 years ago

weiqi-chen commented 6 years ago

Hi , Thank you for porting kernel for R2.

I compiled the kernel form your repository, and stuck at "Waiting for root device..". I compare .config bewteen version 4.4 and 4.14 and it seem no option about enabling mmc.

Is it no emmc / sd mmc support yet?

frank-w commented 6 years ago

Hi,

Both should working (did it in my system).

please make sure your using main-branch, not master.

your root-device should be /dev/mmcblk0p2 if booting from sd and /dev/mmcblk1p2 if booting from emmc like numbered on 4.4. Please look at cmdline whe kernel starts booting (after loaded by uboot). Maybe you have to change your uEnv.txt. maybe i have to change default cmdline in kernel

ok, i have not defined a root-device in kernels cmdline...i set it via uboot's uEnv.txt...

CONFIG_CMDLINE="earlyprintk console=ttyS0,115200 vmalloc=496M debug=7 no_console_suspend"

you can add

root=/dev/mmcblk0p2

if booting from SD

weiqi-chen commented 6 years ago

I re-compiled the kernel, still not work

Here is the full log:


[USBD] USB PRB0 LineState: 0

[USBD] USB cable/ No Cable inserted!

[PLFM] Keep stay in USB Mode
Platform initialization is ok
wait for frequency meter finish, CLK26CALI = 0x81
mt_pll_post_init: mt_get_cpu_freq = 1040000Khz
wait for frequency meter finish, CLK26CALI = 0x90
mt_pll_post_init: mt_get_bus_freq = 273000Khz
wait for frequency meter finish, CLK26CALI = 0x81
mt_pll_post_init: mt_get_mem_freq = 133250Khz
[PWRAP] pwrap_init_preloader
[PWRAP] pwrap_init
[PWRAP] _pwrap_init_sistrobe [Read Test] fail,index=0,rdata=2D52
[PWRAP] _pwrap_init_sistrobe [Read Test] fail,index=1,rdata=2D52
[PWRAP] _pwrap_init_sistrobe [Read Test] fail,index=2,rdata=2D52
[PWRAP] _pwrap_init_sistrobe [Read Test] fail,index=3,rdata=5AA4
[PWRAP] _pwrap_init_sistrobe [Read Test] pass,index=4 rdata=5AA5
[PWRAP] _pwrap_init_sistrobe [Read Test] pass,index=5 rdata=5AA5
[PWRAP] _pwrap_init_sistrobe [Read Test] pass,index=6 rdata=5AA5
[PWRAP] _pwrap_init_sistrobe [Read Test] pass,index=7 rdata=5AA5
[PWRAP] _pwrap_init_sistrobe [Read Test] pass,index=8 rdata=5AA5
[PWRAP] _pwrap_init_sistrobe [Read Test] pass,index=9 rdata=5AA5
[PWRAP] _pwrap_init_sistrobe [Read Test] pass,index=10 rdata=5AA5
[PWRAP] _pwrap_init_sistrobe [Read Test] fail,index=11,rdata=B50B
[PWRAP] _pwrap_init_sistrobe [Read Test] fail,index=12,rdata=B54B
[PWRAP] _pwrap_init_sistrobe [Read Test] fail,index=13,rdata=B54B
[PWRAP] _pwrap_init_sistrobe [Read Test] fail,index=14,rdata=B54B
[PWRAP] _pwrap_init_sistrobe [Read Test] fail,index=15,rdata=B54B
[PWRAP] _pwrap_init_sistrobe [Read Test] fail,index=16,rdata=B54B
[PWRAP] _pwrap_init_sistrobe [Read Test] fail,index=17,rdata=B54B
[PWRAP] _pwrap_init_sistrobe [Read Test] fail,index=18,rdata=B54B
[PWRAP] _pwrap_init_sistrobe [Read Test] fail,index=19,rdata=6297
[PWRAP] _pwrap_init_sistrobe [Read Test] fail,index=20,rdata=6A97
[PWRAP] _pwrap_init_sistrobe [Read Test] fail,index=21,rdata=6A97
[PWRAP] _pwrap_init_sistrobe [Read Test] fail,index=22,rdata=6A97
[PWRAP] _pwrap_init_sistrobe [Read Test] fail,index=23,rdata=6A97
[PWRAP] _pwrap_init_reg_clock
[PMIC_WRAP]wrap_init pass,the return value=0.
[pmic6323_init] Preloader Start..................
[pmic6323_init] PMIC CHIP Code = 0x2023
INT_MISC_CON: 1  TOP_RST_MISC: 1
pl pmic powerkey Release
[pmic6323_init] powerKey = 0
[pmic6323_init] is USB in = 0xB004
[pmic6323_init] Reg[0x11A]=0x1B
pmic setup LED
[pmic6323_init] Done...................
mt7623 disable long press reset ->>>>>
mt7623 disable long press reset <<<<<-
mt7623 VPA supplied by 1.0V to MT7530 ->
mt7623 VPA supplied by 1.0V to MT7530 <-
mt7623 enables RG_VGP1_EN for LCM ->
mt7623 enables RG_VGP1_EN for LCM <-
MT7623 E2 setting =>
MT7623 E2 setting <=
[PLFM] Init I2C: OK(0)
[PLFM] Init PWRAP: OK(0)
[PLFM] Init PMIC: OK(0)
[PLFM] chip[CA00]

[BLDR] [Support SD/eMMC] Build Time: 20170905-120917
==== Dump RGU Reg ========
RGU MODE:     4D
RGU LENGTH:   FFE0
RGU STA:      0
RGU INTERVAL: FFF
RGU SWSYSRST: 0
==== Dump RGU Reg End ====
RGU: g_rgu_satus:0
 mtk_wdt_mode_config  mode value=10, tmp:22000010
PL P ON
WDT does not trigger reboot
RGU mtk_wdt_init:MTK_WDT_DEBUG_CTL(590200F3)
kpd read addr: 0x0040: data:0x4001
Enter mtk_kpd_gpio_set! 
kpd debug column : 0, 0, 0, 0, 0, 0, 0, 0
kpd debug row : 0, 0, 0, 0, 0, 0, 0, 0
after set KP enable: KP_SEL = 0x0 !
MTK_PMIC_RST_KEY is used for this project!
[RTC] get_frequency_meter: input=0x0, ouput=5
[RTC] get_frequency_meter: input=0x0, ouput=3968
[RTC] get_frequency_meter: input=0x0, ouput=5
[RTC] get_frequency_meter: input=0x0, ouput=0
[RTC] get_frequency_meter: input=0x0, ouput=0
[RTC] bbpu = 0xD, con = 0x426
[RTC] powerkey1 = 0xA357, powerkey2 = 0x67D2
Writeif_unlock
[RTC] RTC_SPAR0=0x40 
rtc_2sec_reboot_check cali=512
[RTC] irqsta = 0x0, pdn1 = 0x0, pdn2 = 0x201, spar0 = 0x40, spar1 = 0x800
[RTC] new_spare0 = 0x0, new_spare1 = 0x1, new_spare2 = 0x1, new_spare3 = 0x1
[RTC] bbpu = 0xD, con = 0x426, cali = 0x200
pl pmic powerkey Release
[PLFM] Power key boot!
[RTC] rtc_bbpu_power_on done
[EMI] mcp_dram_num:0,discrete_dram_num:1,enable_combo_dis:0
[EMI] PCDDR3
[Check]mt_get_mdl_number 0x0
[EMI] eMMC/NAND ID = 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
[EMI] MDL number = 0
[EMI] emi_set eMMC/NAND ID = 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
[EMI][Vcore]0x21E=0x48,0x220=0x48
[EMI][Vmem]0x554=0x0
wait for frequency meter finish, CLK26CALI = 0x81
[EMI] PCDDR3 DRAM Clock = 1600012 KHz, MEMPLL MODE = 2 
[EMI] PCDDR3 RXTDN Calibration:
Start REXTDN SW calibration...
drvp=0xB,drvn=0x8
[EMI] pinmux = 4
===============================================================================

        dramc_write_leveling_swcal
===============================================================================
delay  byte0  byte1  byte2  byte3
-----------------------------
0    0    1    1    1    
1    1    1    1    1    
2    1    1    1    1    
3    1    1    1    1    
4    1    1    1    1    
5    1    1    1    1    
6    1    1    1    1    
7    1    1    1    1    
8    1    1    1    1    
9    1    1    1    1    
10    1    1    1    1    
11    1    1    1    1    
12    1    1    1    1    
13    1    1    1    1    
14    1    1    1    1    
15    1    1    1    1    
pass bytecount = 4
byte_i    status    best delay
0    2    1
1    2    0
2    2    0
3    2    0
========================================
[write leveling]DQS: 0x1, DQM: 0x1
[write leveling after remap]DQ byte0 reg: 0x200 val: 0x11110000
[write leveling after remap]DQ byte1 reg: 0x204 val: 0x1111
[write leveling after remap]DQ byte2 reg: 0x208 val: 0x0
[write leveling after remap]DQ byte3 reg: 0x20C val: 0x0
=============================================
X-axis: DQS Gating Window Delay (Fine Scale)
Y-axis: DQS Gating Window Delay (Coarse Scale)
=============================================
          0    8   16   24   32   40   48   56   64   72   80   88   96  104  112  120
      --------------------------------------------------------------------------------
0000:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0001:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0002:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0003:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0004:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0005:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0006:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0007:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0008:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0009:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
000A:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
000B:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
000C:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
000D:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
000E:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
000F:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0010:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    1    1
0011:|    0    0    0    0    0    0    0    0    0    1    1    1    1    1    1    1
0012:|    0    0    0    1    1    1    1    1    1    1    1    1    0    0    0    0
0013:|    1    1    1    1    1    1    0    0    0    0    0    0    0    0    0    0
0014:|    1    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0015:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0016:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0017:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0018:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0019:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
001A:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
001B:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
001C:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
001D:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
001E:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
001F:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
Rank 0 coarse tune value selection : 18, 18
18
56
rank 0 coarse = 18
rank 0 fine = 56
00:|    0    0    0    0    0    0    0    0    1    1    1    0
opt_dle value:13
==================================================================
                RX      DQS perbit delay software calibration 
==================================================================
1.0-31 bit dq delay value
==================================================================
bit|     0  1  2  3  4  5  6  7  8  9
--------------------------------------
0 |    0 0 0 0 0 0 0 0 0 0 
10 |    0 0 0 0 0 0 0 0 0 0 
20 |    0 0 0 0 0 0 0 0 0 0 
30 |    0 0 
--------------------------------------
==================================================================
2.dqs window
x=pass dqs delay value (min~max)center 
y=0-7bit DQ of every group
input delay:DQS0 =49 DQS1 = 38 DQS2 =51 DQS3 = 42
==================================================================
bit     DQS0     bit      DQS1     bit     DQS2     bit     DQS3
0  (17~67)42  8  (7~57)32  16  (22~69)45  24  (17~61)39
1  (19~66)42  9  (7~60)33  17  (25~70)47  25  (16~57)36
2  (19~67)43  10  (13~62)37  18  (25~70)47  26  (19~61)40
3  (17~69)43  11  (11~62)36  19  (21~68)44  27  (19~58)38
4  (21~72)46  12  (15~62)38  20  (25~72)48  28  (22~63)42
5  (19~70)44  13  (15~62)38  21  (25~73)49  29  (21~64)42
6  (22~70)46  14  (13~60)36  22  (25~72)48  30  (16~64)40
7  (26~72)49  15  (15~62)38  23  (29~74)51  31  (19~64)41
==================================================================
3.dq delay value last
==================================================================
bit|    0  1  2  3  4  5  6  7  8   9
--------------------------------------
0 |    7 7 6 6 3 5 3 0 6 5 
10 |    1 2 0 0 2 0 6 4 4 7 
20 |    3 2 3 0 3 6 2 4 0 0 
30 |    2 1 
==================================================================
*DQIDLY1 = 0x6060707
*DQIDLY2 = 0x30503
*DQIDLY3 = 0x2010506
*DQIDLY4 = 0x20000
*DQIDLY5 = 0x7040406
*DQIDLY6 = 0x30203
*DQIDLY7 = 0x4020603
*DQIDLY8 = 0x1020000
*DRAMC_R0DELDLY = 0x2A332631

[MEM]CONA:F3A2,conf1:F07486A3
DM4BitMux = 1 
[Warning] DQSO 0 in TX per-bit = 3 > DQSO 0 in WL = 1  
DQSO 1 in TX per-bit = 0 <= DQSO 1 in WL = 0  
[Warning] DQSO 2 in TX per-bit = 7 > DQSO 2 in WL = 0  
[Warning] DQSO 3 in TX per-bit = 3 > DQSO 3 in WL = 0  
Tx DQM dly  = 0x123
Tx DQM dly bit4 = 0x0
DRAMC_DQODLY1=4532434h
DRAMC_DQODLY2=24224354h
DRAMC_DQODLY3=1112002h
DRAMC_DQODLY4=3113h
Tx DQ dly bit4 = 0x0
Tx DQS dly = 0x3703
Tx DQS dly bit4 = 0x0
TX Byte0: DQ - 14, DQS - 16. win_sum= 29
TX Byte1: DQ - 20, DQS - 14. win_sum= 33
TX Byte2: DQ - 10, DQS - 22. win_sum= 31
TX Byte3: DQ - 12, DQS - 19. win_sum= 30
DRAMC calibration takes 650169057 CPU cycles

[EMI] DRAMC calibration passed

[MEM] complex R/W mem test pass
0:dram_rank_size:80000000
[Dram_Buffer] dram size:-2147483648 
[Dram_Buffer] structure size: 1725560 
[Dram_Buffer] MAX_TEE_DRAM_SIZE: 0 
Load u-boot from eMMC...
[PLFM] Init Boot Device: OK(0)

[PART] blksz: 512B
[PART] [0x0000000000000000-0x000000000003FFFF] "PRELOADER" (512 blocks) 
[PART] [0x0000000000000000-0x000000000003FFFF] "MBR" (512 blocks) 
[PART] [0x0000000000040000-0x00000000000BFFFF] "UBOOT" (1024 blocks) 
[PART] [0x00000000000C0000-0x00000000000FFFFF] "CONFIG" (512 blocks) 
[PART] [0x0000000000100000-0x000000000013FFFF] "FACTORY" (512 blocks) 
[PART] [0x0000000000140000-0x000000000213FFFF] "BOOTIMG" (65536 blocks) 
[PART] [0x0000000002140000-0x000000000413FFFF] "RECOVERY" (65536 blocks) 
[PART] [0x0000000004140000-0x000000004413FFFF] "ROOTFS" (2097152 blocks) 
[PART] [0x0000000044140000-0x000001FFC413FFFF] "USER" (-4194304 blocks) 
BPI: SD/eMMC SD=1 eMMC=0 id = 0 (drivers/mmc/mediatek/mtk_mmc.c)
__mmc_init ret = 0
ret2 = 1
ret2 = 1
BPI: g_mtk_mmc_block.dev = 0
<= [mmc1 block 0] =>
[0x00000000] 00 00 00 00 00 00 00 00
[0x00000008] 00 00 00 00 00 00 00 00
[0x00000010] 00 00 00 00 00 00 00 00
[0x00000018] 00 00 00 00 00 00 00 00
[0x00000020] 00 00 00 00 00 00 00 00
[0x00000028] 00 00 00 00 00 00 00 00
[0x00000030] 00 00 00 00 00 00 00 00
[0x00000038] 00 00 00 00 00 00 00 00
[0x00000040] 00 00 00 00 00 00 00 00
[0x00000048] 00 00 00 00 00 00 00 00
[0x00000050] 00 00 00 00 00 00 00 00
[0x00000058] 00 00 00 00 00 00 00 00
[0x00000060] 00 00 00 00 00 00 00 00
[0x00000068] 00 00 00 00 00 00 00 00
[0x00000070] 00 00 00 00 00 00 00 00
[0x00000078] 00 00 00 00 00 00 00 00
[0x00000080] 00 00 00 00 00 00 00 00
[0x00000088] 00 00 00 00 00 00 00 00
[0x00000090] 00 00 00 00 00 00 00 00
[0x00000098] 00 00 00 00 00 00 00 00
[0x000000a0] 00 00 00 00 00 00 00 00
[0x000000a8] 00 00 00 00 00 00 00 00
[0x000000b0] 00 00 00 00 00 00 00 00
[0x000000b8] 00 00 00 00 00 00 00 00
[0x000000c0] 00 00 00 00 00 00 00 00
[0x000000c8] 00 00 00 00 00 00 00 00
[0x000000d0] 00 00 00 00 00 00 00 00
[0x000000d8] 00 00 00 00 00 00 00 00
[0x000000e0] 00 00 00 00 00 00 00 00
[0x000000e8] 00 00 00 00 00 00 00 00
[0x000000f0] 00 00 00 00 00 00 00 00
[0x000000f8] 00 00 00 00 00 00 00 00
[0x00000100] 00 00 00 00 00 00 00 00
[0x00000108] 00 00 00 00 00 00 00 00
[0x00000110] 00 00 00 00 00 00 00 00
[0x00000118] 00 00 00 00 00 00 00 00
[0x00000120] 00 00 00 00 00 00 00 00
[0x00000128] 00 00 00 00 00 00 00 00
[0x00000130] 00 00 00 00 00 00 00 00
[0x00000138] 00 00 00 00 00 00 00 00
[0x00000140] 00 00 00 00 00 00 00 00
[0x00000148] 00 00 00 00 00 00 00 00
[0x00000150] 00 00 00 00 00 00 00 00
[0x00000158] 00 00 00 00 00 00 00 00
[0x00000160] 00 00 00 00 00 00 00 00
[0x00000168] 00 00 00 00 00 00 00 00
[0x00000170] 00 00 00 00 00 00 00 00
[0x00000178] 00 00 00 00 00 00 00 00
[0x00000180] 00 00 00 00 00 00 00 00
[0x00000188] 00 00 00 00 00 00 00 00
[0x00000190] 00 00 00 00 00 00 00 00
[0x00000198] 00 00 00 00 00 00 00 00
[0x000001a0] 00 00 00 00 00 00 00 00
[0x000001a8] 00 00 00 00 00 00 00 00
[0x000001b0] 00 00 00 00 00 00 00 00
[0x000001b8] 56 d0 00 57 00 00 00 00
[0x000001c0] 01 80 83 03 10 7f 00 20
[0x000001c8] 03 00 00 00 08 00 00 00
[0x000001d0] 01 80 83 03 d0 ff 00 20
[0x000001d8] 0b 00 00 e0 dd 00 00 00
[0x000001e0] 00 00 00 00 00 00 00 00
[0x000001e8] 00 00 00 00 00 00 00 00
[0x000001f0] 00 00 00 00 00 00 00 00
[0x000001f8] 00 00 00 00 00 00 55 aa

Partition Map for MMC device 0  --   Partition Type: DOS

Part    Start Sector    Num Sectors     UUID            Type
  1     204800          524288          5700d056-01     83
  2     729088          14540800        5700d056-02     83
mmc0 is available
reading bpi-r2/linux/uEnv.txt
** Unable to read file bpi-r2/linux/uEnv.txt **
reading uEnv.txt
1581 bytes read in 3 ms (514.6 KiB/s)
Banana Pi bpi-r2 chip: mt7623n Service: 4.14.12-bpi-r2
reading bpi-r2/4.14.12-bpi-r2/uImage
8766697 bytes read in 536 ms (15.6 MiB/s)
Kernel loaded.
reading bpi-r2/4.14.12-bpi-r2/uInitrd
** Unable to read file bpi-r2/4.14.12-bpi-r2/uInitrd **
reading bpi-r2/4.14.12-bpi-r2/mt7623n-bpi-r2.dtb
** Unable to read file bpi-r2/4.14.12-bpi-r2/mt7623n-bpi-r2.dtb **
bootm flag=0, states=70f
## Booting kernel from Legacy Image at 84000000 ...
   Image Name:   Linux Kernel v4.14-45-g2e651881b
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    8766633 Bytes = 8.4 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.12-bpi-r2 (weiqi@B85i-PC) (gcc version 7.2.0 (Ubuntu/Linaro 7.2.0-6ubuntu1)) #6 SMP Sun Jan 7 19:01:36 CST 2018
[    0.000000] CPU: ARMv7 Processor [410fc073] revision 3 (ARMv7), cr=10c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: Bananapi BPI-R2
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] [WMT-CONSYS-HW][W]reserve_memory_consys_fn: name: consys-reserve-memory, base: 0xffe00000, size: 0x100000
[    0.000000] OF: reserved mem: initialized node consys-reserve-memory, compatible id mediatek,consys-reserve-memory
[    0.000000] cma: Reserved 64 MiB at 0xfb800000
[    0.000000] On node 0 totalpages: 524031
[    0.000000] free_area_init_node: node 0, pgdat c13cdb00, node_mem_map df5f9000
[    0.000000]   Normal zone: 1170 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 133120 pages, LIFO batch:31
[    0.000000]   HighMem zone: 390911 pages, LIFO batch:31
[    0.000000] random: fast init done
[    0.000000] percpu: Embedded 17 pages/cpu @df59e000 s38860 r8192 d22580 u69632
[    0.000000] pcpu-alloc: s38860 r8192 d22580 u69632 alloc=17*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 522861
[    0.000000] Kernel command line: board=bpi-r2 console=earlyprintk console=tty1 console=ttyS0,115200 fbcon=map:0 root=PARTUUID=5700d056-02 rootfstype=ext4 rootwait service=4.14.12-bpi-r2 vm0
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 1991340K/2096124K available (12288K kernel code, 876K rwdata, 3832K rodata, 1024K init, 634K bss, 39248K reserved, 65536K cma-reserved, 1498108K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xe1000000 - 0xff800000   ( 488 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0800000   ( 520 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0d00000   (13280 kB)
[    0.000000]       .init : 0xc1200000 - 0xc1300000   (1024 kB)
[    0.000000]       .data : 0xc1300000 - 0xc13db0b4   ( 877 kB)
[    0.000000]        .bss : 0xc13e73bc - 0xc1485c04   ( 635 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] ftrace: allocating 40692 entries in 120 pages
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  RCU restricting CPUs from NR_CPUS=16 to nr_cpu_ids=4.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] arch_timer: cp15 timer(s) running at 13.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2ff89eacb, max_idle_ns: 440795202429 ns
[    0.000006] sched_clock: 56 bits at 13MHz, resolution 76ns, wraps every 4398046511101ns
[    0.000016] Switching to timer-based delay loop, resolution 76ns
[    0.000172] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 147020034397 ns
[    0.000186] sched_clock: 32 bits at 13MHz, resolution 76ns, wraps every 165191050201ns
[    0.000564] Console: colour dummy device 80x30
[    0.001085] console [tty1] enabled
[    0.001120] Calibrating delay loop (skipped), value calculated using timer frequency.. 26.00 BogoMIPS (lpj=130000)
[    0.001147] pid_max: default: 32768 minimum: 301
[    0.001304] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001326] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001986] CPU: Testing write buffer coherency: ok
[    0.002307] CPU0: update cpu_capacity 1024
[    0.002327] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002679] Setting up static identity map for 0x80100000 - 0x80100060
[    0.002795] Hierarchical SRCU implementation.
[    0.003464] smp: Bringing up secondary CPUs ...
[    0.003885] CPU1: update cpu_capacity 1024
[    0.003891] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.004373] CPU2: update cpu_capacity 1024
[    0.004378] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[    0.004841] CPU3: update cpu_capacity 1024
[    0.004847] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[    0.004928] smp: Brought up 1 node, 4 CPUs
[    0.005005] SMP: Total of 4 processors activated (104.00 BogoMIPS).
[    0.005020] CPU: All CPU(s) started in SVC mode.
[    0.005904] devtmpfs: initialized
[    0.011988] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 3
[    0.012204] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.012238] futex hash table entries: 1024 (order: 4, 65536 bytes)
[    0.014884] xor: measuring software checksum speed
[    0.110023]    arm4regs  :  1288.800 MB/sec
[    0.210086]    8regs     :   897.600 MB/sec
[    0.310152]    32regs    :   921.600 MB/sec
[    0.410220]    neon      :  1301.600 MB/sec
[    0.410234] xor: using function: neon (1301.600 MB/sec)
[    0.410325] pinctrl core: initialized pinctrl subsystem
[    0.411109] NET: Registered protocol family 16
[    0.412878] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.413957] No ATAGs?
[    0.414102] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.414135] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.650599] raid6: int32x1  gen()   182 MB/s
[    0.820563] raid6: int32x1  xor()   169 MB/s
[    0.990692] raid6: int32x2  gen()   222 MB/s
[    1.160766] raid6: int32x2  xor()   178 MB/s
[    1.330901] raid6: int32x4  gen()   211 MB/s
[    1.501093] raid6: int32x4  xor()   175 MB/s
[    1.671156] raid6: int32x8  gen()   220 MB/s
[    1.841279] raid6: int32x8  xor()   148 MB/s
[    2.011458] raid6: neonx1   gen()   510 MB/s
[    2.181498] raid6: neonx1   xor()   482 MB/s
[    2.351591] raid6: neonx2   gen()   683 MB/s
[    2.521741] raid6: neonx2   xor()   603 MB/s
[    2.691849] raid6: neonx4   gen()   754 MB/s
[    2.861945] raid6: neonx4   xor()   655 MB/s
[    3.032110] raid6: neonx8   gen()   725 MB/s
[    3.202195] raid6: neonx8   xor()   616 MB/s
[    3.202210] raid6: using algorithm neonx4 gen() 754 MB/s
[    3.202223] raid6: .... xor() 655 MB/s, rmw enabled
[    3.202236] raid6: using neon recovery algorithm
[    3.202830] vgaarb: loaded
[    3.203180] SCSI subsystem initialized
[    3.203366] usbcore: registered new interface driver usbfs
[    3.203419] usbcore: registered new interface driver hub
[    3.203499] usbcore: registered new device driver usb
[    3.204029] Advanced Linux Sound Architecture Driver Initialized.
[    3.204449] Bluetooth: Core ver 2.22
[    3.204493] NET: Registered protocol family 31
[    3.204508] Bluetooth: HCI device and connection manager initialized
[    3.204529] Bluetooth: HCI socket layer initialized
[    3.204545] Bluetooth: L2CAP socket layer initialized
[    3.204578] Bluetooth: SCO socket layer initialized
[    3.205491] clocksource: Switched to clocksource arch_sys_counter
[    3.296401] VFS: Disk quotas dquot_6.6.0
[    3.296489] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    3.296659] FS-Cache: Loaded
[    3.296857] CacheFiles: Loaded
[    3.304563] NET: Registered protocol family 2
[    3.305121] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    3.305182] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[    3.305250] TCP: Hash tables configured (established 4096 bind 4096)
[    3.305354] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    3.305393] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    3.305641] NET: Registered protocol family 1
[    3.306045] RPC: Registered named UNIX socket transport module.
[    3.306067] RPC: Registered udp transport module.
[    3.306080] RPC: Registered tcp transport module.
[    3.306093] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    3.306112] PCI: CLS 0 bytes, default 64
[    3.308598] audit: initializing netlink subsys (disabled)
[    3.309019] audit: type=2000 audit(3.300:1): state=initialized audit_enabled=0 res=1
[    3.309095] workingset: timestamp_bits=14 max_order=19 bucket_order=5
[    3.314843] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    3.316090] NFS: Registering the id_resolver key type
[    3.316135] Key type id_resolver registered
[    3.316149] Key type id_legacy registered
[    3.316169] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    3.316674] ntfs: driver 2.1.32 [Flags: R/W].
[    3.317034] fuse init (API version 7.26)
[    3.317592] JFS: nTxBlock = 8192, nTxLock = 65536
[    3.324178] SGI XFS with ACLs, security attributes, no debug enabled
[    3.329884] bounce: pool size: 64 pages
[    3.329968] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    3.330094] io scheduler noop registered
[    3.330111] io scheduler deadline registered
[    3.330336] io scheduler cfq registered (default)
[    3.330354] io scheduler mq-deadline registered
[    3.330368] io scheduler kyber registered
[    3.374526] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    3.376018] console [ttyS0] disabled
[    3.396239] 11004000.serial: ttyS0 at MMIO 0x11004000 (irq = 26, base_baud = 1625000) is a ST16650V2
[    4.262980] console [ttyS0] enabled
[    4.266765] mt6577-uart 11002000.serial: could not find pctldev for node /pinctrl@10005000/uart@0, deferring probe
[    4.277110] mt6577-uart 11003000.serial: could not find pctldev for node /pinctrl@10005000/uart@1, deferring probe
[    4.287431] mt6577-uart 11005000.serial: could not find pctldev for node /pinctrl@10005000/uart@3, deferring probe
[    4.309359] brd: module loaded
[    4.319085] loop: module loaded
[    4.335404] [WMT-DETECT][I]wmt_detect_driver_init:driver(major 154) installed success
[    4.343308] [SDIO-DETECT][I]sdio_detect_init:sdio_register_driver() ret=0
[    4.350239] MTK-BTIF[E]hal_btif_clk_get_and_prepare(286):[CCF]clk_btif=dd951980
[    4.357536] MTK-BTIF[E]hal_btif_clk_get_and_prepare(292):[CCF]clk_btif_apdma=dd951a00
[    4.366431] SCSI Media Changer driver v0.25 
[    4.371028] mtk-spi 1100a000.spi: could not find pctldev for node /pinctrl@10005000/spi@0, deferring probe
[    4.380821] Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
[    4.388741] libphy: Fixed MDIO Bus: probed
[    4.393358] PPP generic driver version 2.4.2
[    4.397796] PPP BSD Compression module registered
[    4.402468] PPP Deflate Compression module registered
[    4.407521] PPP MPPE Compression module registered
[    4.412278] NET: Registered protocol family 24
[    4.416765] usbcore: registered new interface driver asix
[    4.422166] usbcore: registered new interface driver ax88179_178a
[    4.428261] usbcore: registered new interface driver cdc_ether
[    4.434098] usbcore: registered new interface driver smsc95xx
[    4.439849] usbcore: registered new interface driver net1080
[    4.445511] usbcore: registered new interface driver cdc_subset
[    4.451416] usbcore: registered new interface driver zaurus
[    4.457006] usbcore: registered new interface driver cdc_ncm
[    4.463077] xhci-mtk 1a1c0000.usb: 1a1c0000.usb supply vbus not found, using dummy regulator
[    4.471544] xhci-mtk 1a1c0000.usb: fail to get vusb33
[    4.476829] xhci-mtk 1a240000.usb: 1a240000.usb supply vbus not found, using dummy regulator
[    4.485273] xhci-mtk 1a240000.usb: fail to get vusb33
[    4.490521] usbcore: registered new interface driver usb-storage
[    4.496544] usbcore: registered new interface driver ums-alauda
[    4.502447] usbcore: registered new interface driver ums-cypress
[    4.508450] usbcore: registered new interface driver ums-datafab
[    4.514438] usbcore: registered new interface driver ums_eneub6250
[    4.520622] usbcore: registered new interface driver ums-freecom
[    4.526626] usbcore: registered new interface driver ums-isd200
[    4.532527] usbcore: registered new interface driver ums-jumpshot
[    4.538616] usbcore: registered new interface driver ums-karma
[    4.544432] usbcore: registered new interface driver ums-onetouch
[    4.550528] usbcore: registered new interface driver ums-realtek
[    4.556533] usbcore: registered new interface driver ums-sddr09

[USBD] USB PRB0 LineState: 0

[USBD] USB cable/ No Cable inserted!

[PLFM] Keep stay in USB Mode
Platform initialization is ok
wait for frequency meter finish, CLK26CALI = 0x81
mt_pll_post_init: mt_get_cpu_freq = 1040000Khz
wait for frequency meter finish, CLK26CALI = 0x90
mt_pll_post_init: mt_get_bus_freq = 273000Khz
wait for frequency meter finish, CLK26CALI = 0x81
mt_pll_post_init: mt_get_mem_freq = 133250Khz
[PWRAP] pwrap_init_preloader
[PWRAP] pwrap_init
[PWRAP] _pwrap_init_sistrobe [Read Test] fail,index=0,rdata=2D52
[PWRAP] _pwrap_init_sistrobe [Read Test] fail,index=1,rdata=2D52
[PWRAP] _pwrap_init_sistrobe [Read Test] fail,index=2,rdata=2D52
[PWRAP] _pwrap_init_sistrobe [Read Test] pass,index=3 rdata=5AA5
[PWRAP] _pwrap_init_sistrobe [Read Test] pass,index=4 rdata=5AA5
[PWRAP] _pwrap_init_sistrobe [Read Test] pass,index=5 rdata=5AA5
[PWRAP] _pwrap_init_sistrobe [Read Test] pass,index=6 rdata=5AA5
[PWRAP] _pwrap_init_sistrobe [Read Test] pass,index=7 rdata=5AA5
[PWRAP] _pwrap_init_sistrobe [Read Test] pass,index=8 rdata=5AA5
[PWRAP] _pwrap_init_sistrobe [Read Test] pass,index=9 rdata=5AA5
[PWRAP] _pwrap_init_sistrobe [Read Test] pass,index=10 rdata=5AA5
[PWRAP] _pwrap_init_sistrobe [Read Test] fail,index=11,rdata=B54B
[PWRAP] _pwrap_init_sistrobe [Read Test] fail,index=12,rdata=B54B
[PWRAP] _pwrap_init_sistrobe [Read Test] fail,index=13,rdata=B54B
[PWRAP] _pwrap_init_sistrobe [Read Test] fail,index=14,rdata=B54B
[PWRAP] _pwrap_init_sistrobe [Read Test] fail,index=15,rdata=B54B
[PWRAP] _pwrap_init_sistrobe [Read Test] fail,index=16,rdata=B54B
[PWRAP] _pwrap_init_sistrobe [Read Test] fail,index=17,rdata=B54B
[PWRAP] _pwrap_init_sistrobe [Read Test] fail,index=18,rdata=B54B
[PWRAP] _pwrap_init_sistrobe [Read Test] fail,index=19,rdata=6A97
[PWRAP] _pwrap_init_sistrobe [Read Test] fail,index=20,rdata=6A97
[PWRAP] _pwrap_init_sistrobe [Read Test] fail,index=21,rdata=6A97
[PWRAP] _pwrap_init_sistrobe [Read Test] fail,index=22,rdata=6A97
[PWRAP] _pwrap_init_sistrobe [Read Test] fail,index=23,rdata=6A97
[PWRAP] _pwrap_init_reg_clock
[PMIC_WRAP]wrap_init pass,the return value=0.
[pmic6323_init] Preloader Start..................
[pmic6323_init] PMIC CHIP Code = 0x2023
INT_MISC_CON: 1  TOP_RST_MISC: 1
pl pmic powerkey Release
[pmic6323_init] powerKey = 0
[pmic6323_init] is USB in = 0xB004
[pmic6323_init] Reg[0x11A]=0x1B
pmic setup LED
[pmic6323_init] Done...................
mt7623 disable long press reset ->>>>>
mt7623 disable long press reset <<<<<-
mt7623 VPA supplied by 1.0V to MT7530 ->
mt7623 VPA supplied by 1.0V to MT7530 <-
mt7623 enables RG_VGP1_EN for LCM ->
mt7623 enables RG_VGP1_EN for LCM <-
MT7623 E2 setting =>
MT7623 E2 setting <=
[PLFM] Init I2C: OK(0)
[PLFM] Init PWRAP: OK(0)
[PLFM] Init PMIC: OK(0)
[PLFM] chip[CA00]

[BLDR] [Support SD/eMMC] Build Time: 20170905-120917
==== Dump RGU Reg ========
RGU MODE:     4D
RGU LENGTH:   FFE0
RGU STA:      0
RGU INTERVAL: FFF
RGU SWSYSRST: 0
==== Dump RGU Reg End ====
RGU: g_rgu_satus:0
 mtk_wdt_mode_config  mode value=10, tmp:22000010
PL P ON
WDT does not trigger reboot
RGU mtk_wdt_init:MTK_WDT_DEBUG_CTL(590200F3)
kpd read addr: 0x0040: data:0x4001
Enter mtk_kpd_gpio_set! 
kpd debug column : 0, 0, 0, 0, 0, 0, 0, 0
kpd debug row : 0, 0, 0, 0, 0, 0, 0, 0
after set KP enable: KP_SEL = 0x0 !
MTK_PMIC_RST_KEY is used for this project!
[RTC] get_frequency_meter: input=0x0, ouput=5
[RTC] get_frequency_meter: input=0x0, ouput=3968
[RTC] get_frequency_meter: input=0x0, ouput=5
[RTC] get_frequency_meter: input=0x0, ouput=0
[RTC] get_frequency_meter: input=0x0, ouput=0
[RTC] bbpu = 0xD, con = 0x426
[RTC] powerkey1 = 0xA357, powerkey2 = 0x67D2
Writeif_unlock
[RTC] RTC_SPAR0=0x40 
rtc_2sec_reboot_check cali=512
[RTC] irqsta = 0x0, pdn1 = 0x0, pdn2 = 0x201, spar0 = 0x40, spar1 = 0x800
[RTC] new_spare0 = 0x0, new_spare1 = 0x1, new_spare2 = 0x1, new_spare3 = 0x1
[RTC] bbpu = 0xD, con = 0x426, cali = 0x200
pl pmic powerkey Release
[PLFM] Power key boot!
[RTC] rtc_bbpu_power_on done
[EMI] mcp_dram_num:0,discrete_dram_num:1,enable_combo_dis:0
[EMI] PCDDR3
[Check]mt_get_mdl_number 0x0
[EMI] eMMC/NAND ID = 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
[EMI] MDL number = 0
[EMI] emi_set eMMC/NAND ID = 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
[EMI][Vcore]0x21E=0x48,0x220=0x48
[EMI][Vmem]0x554=0x0
wait for frequency meter finish, CLK26CALI = 0x81
[EMI] PCDDR3 DRAM Clock = 1600012 KHz, MEMPLL MODE = 2 
[EMI] PCDDR3 RXTDN Calibration:
Start REXTDN SW calibration...
drvp=0xB,drvn=0x8
[EMI] pinmux = 4
===============================================================================

        dramc_write_leveling_swcal
===============================================================================
delay  byte0  byte1  byte2  byte3
-----------------------------
0    0    1    1    1    
1    1    1    1    1    
2    1    1    1    1    
3    1    1    1    1    
4    1    1    1    1    
5    1    1    1    1    
6    1    1    1    1    
7    1    1    1    1    
8    1    1    1    1    
9    1    1    1    1    
10    1    1    1    1    
11    1    1    1    1    
12    1    1    1    1    
13    1    1    1    1    
14    1    1    1    1    
15    1    1    1    1    
pass bytecount = 4
byte_i    status    best delay
0    2    1
1    2    0
2    2    0
3    2    0
========================================
[write leveling]DQS: 0x1, DQM: 0x1
[write leveling after remap]DQ byte0 reg: 0x200 val: 0x11110000
[write leveling after remap]DQ byte1 reg: 0x204 val: 0x1111
[write leveling after remap]DQ byte2 reg: 0x208 val: 0x0
[write leveling after remap]DQ byte3 reg: 0x20C val: 0x0
=============================================
X-axis: DQS Gating Window Delay (Fine Scale)
Y-axis: DQS Gating Window Delay (Coarse Scale)
=============================================
          0    8   16   24   32   40   48   56   64   72   80   88   96  104  112  120
      --------------------------------------------------------------------------------
0000:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0001:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0002:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0003:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0004:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0005:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0006:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0007:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0008:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0009:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
000A:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
000B:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
000C:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
000D:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
000E:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
000F:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0010:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    1    1
0011:|    0    0    0    0    0    0    0    0    0    1    1    1    1    1    1    1
0012:|    0    0    0    1    1    1    1    1    1    1    1    1    0    0    0    0
0013:|    1    1    1    1    1    1    0    0    0    0    0    0    0    0    0    0
0014:|    1    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0015:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0016:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0017:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0018:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0019:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
001A:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
001B:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
001C:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
001D:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
001E:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
001F:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
Rank 0 coarse tune value selection : 18, 18
18
56
rank 0 coarse = 18
rank 0 fine = 56
00:|    0    0    0    0    0    0    0    0    1    1    1    0
opt_dle value:13
==================================================================
                RX      DQS perbit delay software calibration 
==================================================================
1.0-31 bit dq delay value
==================================================================
bit|     0  1  2  3  4  5  6  7  8  9
--------------------------------------
0 |    0 0 0 0 0 0 0 0 0 0 
10 |    0 0 0 0 0 0 0 0 0 0 
20 |    0 0 0 0 0 0 0 0 0 0 
30 |    0 0 
--------------------------------------
==================================================================
2.dqs window
x=pass dqs delay value (min~max)center 
y=0-7bit DQ of every group
input delay:DQS0 =48 DQS1 = 38 DQS2 =51 DQS3 = 43
==================================================================
bit     DQS0     bit      DQS1     bit     DQS2     bit     DQS3
0  (17~67)42  8  (7~58)32  16  (23~70)46  24  (17~61)39
1  (19~66)42  9  (7~60)33  17  (24~70)47  25  (16~57)36
2  (19~67)43  10  (13~62)37  18  (25~71)48  26  (19~61)40
3  (17~68)42  11  (11~62)36  19  (21~68)44  27  (19~58)38
4  (21~72)46  12  (14~62)38  20  (24~72)48  28  (22~64)43
5  (19~70)44  13  (14~62)38  21  (25~74)49  29  (21~64)42
6  (22~70)46  14  (13~60)36  22  (25~72)48  30  (16~64)40
7  (26~71)48  15  (15~62)38  23  (29~74)51  31  (19~64)41
==================================================================
3.dq delay value last
==================================================================
bit|    0  1  2  3  4  5  6  7  8   9
--------------------------------------
0 |    6 6 5 6 2 4 2 0 6 5 
10 |    1 2 0 0 2 0 5 4 3 7 
20 |    3 2 3 0 4 7 3 5 0 1 
30 |    3 2 
==================================================================
*DQIDLY1 = 0x6050606
*DQIDLY2 = 0x20402
*DQIDLY3 = 0x2010506
*DQIDLY4 = 0x20000
*DQIDLY5 = 0x7030405
*DQIDLY6 = 0x30203
*DQIDLY7 = 0x5030704
*DQIDLY8 = 0x2030100
*DRAMC_R0DELDLY = 0x2B332630

[MEM]CONA:F3A2,conf1:F07486A3
DM4BitMux = 1 
[Warning] DQSO 0 in TX per-bit = 3 > DQSO 0 in WL = 1  
DQSO 1 in TX per-bit = 0 <= DQSO 1 in WL = 0  
[Warning] DQSO 2 in TX per-bit = 7 > DQSO 2 in WL = 0  
[Warning] DQSO 3 in TX per-bit = 3 > DQSO 3 in WL = 0  
Tx DQM dly  = 0x133
Tx DQM dly bit4 = 0x0
DRAMC_DQODLY1=4532434h
DRAMC_DQODLY2=24234354h
DRAMC_DQODLY3=2122002h
DRAMC_DQODLY4=2223h
Tx DQ dly bit4 = 0x0
Tx DQS dly = 0x3703
Tx DQS dly bit4 = 0x0
TX Byte0: DQ - 14, DQS - 16. win_sum= 29
TX Byte1: DQ - 20, DQS - 14. win_sum= 33
TX Byte2: DQ - 9, DQS - 22. win_sum= 30
TX Byte3: DQ - 12, DQS - 19. win_sum= 30
DRAMC calibration takes 650079957 CPU cycles

[EMI] DRAMC calibration passed

[MEM] complex R/W mem test pass
0:dram_rank_size:80000000
[Dram_Buffer] dram size:-2147483648 
[Dram_Buffer] structure size: 1725560 
[Dram_Buffer] MAX_TEE_DRAM_SIZE: 0 
Load u-boot from eMMC...
[PLFM] Init Boot Device: OK(0)

[PART] blksz: 512B
[PART] [0x0000000000000000-0x000000000003FFFF] "PRELOADER" (512 blocks) 
[PART] [0x0000000000000000-0x000000000003FFFF] "MBR" (512 blocks) 
[PART] [0x0000000000040000-0x00000000000BFFFF] "UBOOT" (1024 blocks) 
[PART] [0x00000000000C0000-0x00000000000FFFFF] "CONFIG" (512 blocks) 
[PART] [0x0000000000100000-0x000000000013FFFF] "FACTORY" (512 blocks) 
[PART] [0x0000000000140000-0x000000000213FFFF] "BOOTIMG" (65536 blocks) 
[PART] [0x0000000002140000-0x000000000413FFFF] "RECOVERY" (65536 blocks) 
[PART] [0x0000000004140000-0x000000004413FFFF] "ROOTFS" (2097152 blocks) 
[PART] [0x0000000044140000-0x000001FFC413FFFF] "USER" (-4194304 blocks) 
BPI: SD/eMMC SD=1 eMMC=0 id = 0 (drivers/mmc/mediatek/mtk_mmc.c)
__mmc_init ret = 0
ret2 = 1
ret2 = 1
BPI: g_mtk_mmc_block.dev = 0
<= [mmc1 block 0] =>
[0x00000000] 00 00 00 00 00 00 00 00
[0x00000008] 00 00 00 00 00 00 00 00
[0x00000010] 00 00 00 00 00 00 00 00
[0x00000018] 00 00 00 00 00 00 00 00
[0x00000020] 00 00 00 00 00 00 00 00
[0x00000028] 00 00 00 00 00 00 00 00
[0x00000030] 00 00 00 00 00 00 00 00
[0x00000038] 00 00 00 00 00 00 00 00
[0x00000040] 00 00 00 00 00 00 00 00
[0x00000048] 00 00 00 00 00 00 00 00
[0x00000050] 00 00 00 00 00 00 00 00
[0x00000058] 00 00 00 00 00 00 00 00
[0x00000060] 00 00 00 00 00 00 00 00
[0x00000068] 00 00 00 00 00 00 00 00
[0x00000070] 00 00 00 00 00 00 00 00
[0x00000078] 00 00 00 00 00 00 00 00
[0x00000080] 00 00 00 00 00 00 00 00
[0x00000088] 00 00 00 00 00 00 00 00
[0x00000090] 00 00 00 00 00 00 00 00
[0x00000098] 00 00 00 00 00 00 00 00
[0x000000a0] 00 00 00 00 00 00 00 00
[0x000000a8] 00 00 00 00 00 00 00 00
[0x000000b0] 00 00 00 00 00 00 00 00
[0x000000b8] 00 00 00 00 00 00 00 00
[0x000000c0] 00 00 00 00 00 00 00 00
[0x000000c8] 00 00 00 00 00 00 00 00
[0x000000d0] 00 00 00 00 00 00 00 00
[0x000000d8] 00 00 00 00 00 00 00 00
[0x000000e0] 00 00 00 00 00 00 00 00
[0x000000e8] 00 00 00 00 00 00 00 00
[0x000000f0] 00 00 00 00 00 00 00 00
[0x000000f8] 00 00 00 00 00 00 00 00
[0x00000100] 00 00 00 00 00 00 00 00
[0x00000108] 00 00 00 00 00 00 00 00
[0x00000110] 00 00 00 00 00 00 00 00
[0x00000118] 00 00 00 00 00 00 00 00
[0x00000120] 00 00 00 00 00 00 00 00
[0x00000128] 00 00 00 00 00 00 00 00
[0x00000130] 00 00 00 00 00 00 00 00
[0x00000138] 00 00 00 00 00 00 00 00
[0x00000140] 00 00 00 00 00 00 00 00
[0x00000148] 00 00 00 00 00 00 00 00
[0x00000150] 00 00 00 00 00 00 00 00
[0x00000158] 00 00 00 00 00 00 00 00
[0x00000160] 00 00 00 00 00 00 00 00
[0x00000168] 00 00 00 00 00 00 00 00
[0x00000170] 00 00 00 00 00 00 00 00
[0x00000178] 00 00 00 00 00 00 00 00
[0x00000180] 00 00 00 00 00 00 00 00
[0x00000188] 00 00 00 00 00 00 00 00
[0x00000190] 00 00 00 00 00 00 00 00
[0x00000198] 00 00 00 00 00 00 00 00
[0x000001a0] 00 00 00 00 00 00 00 00
[0x000001a8] 00 00 00 00 00 00 00 00
[0x000001b0] 00 00 00 00 00 00 00 00
[0x000001b8] 56 d0 00 57 00 00 00 00
[0x000001c0] 01 80 83 03 10 7f 00 20
[0x000001c8] 03 00 00 00 08 00 00 00
[0x000001d0] 01 80 83 03 d0 ff 00 20
[0x000001d8] 0b 00 00 e0 dd 00 00 00
[0x000001e0] 00 00 00 00 00 00 00 00
[0x000001e8] 00 00 00 00 00 00 00 00
[0x000001f0] 00 00 00 00 00 00 00 00
[0x000001f8] 00 00 00 00 00 00 55 aa

Partition Map for MMC device 0  --   Partition Type: DOS

Part    Start Sector    Num Sectors     UUID            Type
  1     204800          524288          5700d056-01     83
  2     729088          14540800        5700d056-02     83
mmc0 is available
reading bpi-r2/linux/uEnv.txt
** Unable to read file bpi-r2/linux/uEnv.txt **
reading uEnv.txt
1581 bytes read in 3 ms (514.6 KiB/s)
Banana Pi bpi-r2 chip: mt7623n Service: 4.14.12-bpi-r2
reading bpi-r2/4.14.12-bpi-r2/uImage
8766697 bytes read in 536 ms (15.6 MiB/s)
Kernel loaded.
reading bpi-r2/4.14.12-bpi-r2/uInitrd
** Unable to read file bpi-r2/4.14.12-bpi-r2/uInitrd **
reading bpi-r2/4.14.12-bpi-r2/mt7623n-bpi-r2.dtb
** Unable to read file bpi-r2/4.14.12-bpi-r2/mt7623n-bpi-r2.dtb **
bootm flag=0, states=70f
## Booting kernel from Legacy Image at 84000000 ...
   Image Name:   Linux Kernel v4.14-45-g2e651881b
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    8766633 Bytes = 8.4 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.12-bpi-r2 (weiqi@B85i-PC) (gcc version 7.2.0 (Ubuntu/Linaro 7.2.0-6ubuntu1)) #6 SMP Sun Jan 7 19:01:36 CST 2018
[    0.000000] CPU: ARMv7 Processor [410fc073] revision 3 (ARMv7), cr=10c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: Bananapi BPI-R2
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] [WMT-CONSYS-HW][W]reserve_memory_consys_fn: name: consys-reserve-memory, base: 0xffe00000, size: 0x100000
[    0.000000] OF: reserved mem: initialized node consys-reserve-memory, compatible id mediatek,consys-reserve-memory
[    0.000000] cma: Reserved 64 MiB at 0xfb800000
[    0.000000] On node 0 totalpages: 524031
[    0.000000] free_area_init_node: node 0, pgdat c13cdb00, node_mem_map df5f9000
[    0.000000]   Normal zone: 1170 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 133120 pages, LIFO batch:31
[    0.000000]   HighMem zone: 390911 pages, LIFO batch:31
[    0.000000] random: fast init done
[    0.000000] percpu: Embedded 17 pages/cpu @df59e000 s38860 r8192 d22580 u69632
[    0.000000] pcpu-alloc: s38860 r8192 d22580 u69632 alloc=17*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 522861
[    0.000000] Kernel command line: board=bpi-r2 console=earlyprintk console=tty1 console=ttyS0,115200 fbcon=map:0 root=PARTUUID=5700d056-02 rootfstype=ext4 rootwait service=4.14.12-bpi-r2 vm0
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 1991340K/2096124K available (12288K kernel code, 876K rwdata, 3832K rodata, 1024K init, 634K bss, 39248K reserved, 65536K cma-reserved, 1498108K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xe1000000 - 0xff800000   ( 488 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0800000   ( 520 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0d00000   (13280 kB)
[    0.000000]       .init : 0xc1200000 - 0xc1300000   (1024 kB)
[    0.000000]       .data : 0xc1300000 - 0xc13db0b4   ( 877 kB)
[    0.000000]        .bss : 0xc13e73bc - 0xc1485c04   ( 635 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] ftrace: allocating 40692 entries in 120 pages
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  RCU restricting CPUs from NR_CPUS=16 to nr_cpu_ids=4.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] arch_timer: cp15 timer(s) running at 13.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2ff89eacb, max_idle_ns: 440795202429 ns
[    0.000006] sched_clock: 56 bits at 13MHz, resolution 76ns, wraps every 4398046511101ns
[    0.000016] Switching to timer-based delay loop, resolution 76ns
[    0.000174] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 147020034397 ns
[    0.000188] sched_clock: 32 bits at 13MHz, resolution 76ns, wraps every 165191050201ns
[    0.000565] Console: colour dummy device 80x30
[    0.001086] console [tty1] enabled
[    0.001120] Calibrating delay loop (skipped), value calculated using timer frequency.. 26.00 BogoMIPS (lpj=130000)
[    0.001148] pid_max: default: 32768 minimum: 301
[    0.001303] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001326] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001984] CPU: Testing write buffer coherency: ok
[    0.002307] CPU0: update cpu_capacity 1024
[    0.002327] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002683] Setting up static identity map for 0x80100000 - 0x80100060
[    0.002803] Hierarchical SRCU implementation.
[    0.003476] smp: Bringing up secondary CPUs ...
[    0.003898] CPU1: update cpu_capacity 1024
[    0.003904] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.004382] CPU2: update cpu_capacity 1024
[    0.004387] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[    0.004849] CPU3: update cpu_capacity 1024
[    0.004855] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[    0.004936] smp: Brought up 1 node, 4 CPUs
[    0.005013] SMP: Total of 4 processors activated (104.00 BogoMIPS).
[    0.005027] CPU: All CPU(s) started in SVC mode.
[    0.005917] devtmpfs: initialized
[    0.012006] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 3
[    0.012218] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.012252] futex hash table entries: 1024 (order: 4, 65536 bytes)
[    0.014866] xor: measuring software checksum speed
[    0.110018]    arm4regs  :  1288.800 MB/sec
[    0.210081]    8regs     :   897.600 MB/sec
[    0.310147]    32regs    :   921.600 MB/sec
[    0.410215]    neon      :  1301.600 MB/sec
[    0.410229] xor: using function: neon (1301.600 MB/sec)
[    0.410321] pinctrl core: initialized pinctrl subsystem
[    0.411110] NET: Registered protocol family 16
[    0.412882] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.413964] No ATAGs?
[    0.414113] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.414146] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.650597] raid6: int32x1  gen()   182 MB/s
[    0.820581] raid6: int32x1  xor()   169 MB/s
[    0.990677] raid6: int32x2  gen()   222 MB/s
[    1.160909] raid6: int32x2  xor()   178 MB/s
[    1.330897] raid6: int32x4  gen()   211 MB/s
[    1.501100] raid6: int32x4  xor()   175 MB/s
[    1.671158] raid6: int32x8  gen()   220 MB/s
[    1.841267] raid6: int32x8  xor()   148 MB/s
[    2.011458] raid6: neonx1   gen()   510 MB/s
[    2.181470] raid6: neonx1   xor()   482 MB/s
[    2.351595] raid6: neonx2   gen()   683 MB/s
[    2.521709] raid6: neonx2   xor()   603 MB/s
[    2.691842] raid6: neonx4   gen()   754 MB/s
[    2.861946] raid6: neonx4   xor()   654 MB/s
[    3.032127] raid6: neonx8   gen()   725 MB/s
[    3.202184] raid6: neonx8   xor()   616 MB/s
[    3.202199] raid6: using algorithm neonx4 gen() 754 MB/s
[    3.202212] raid6: .... xor() 654 MB/s, rmw enabled
[    3.202225] raid6: using neon recovery algorithm
[    3.202810] vgaarb: loaded
[    3.203158] SCSI subsystem initialized
[    3.203343] usbcore: registered new interface driver usbfs
[    3.203396] usbcore: registered new interface driver hub
[    3.203474] usbcore: registered new device driver usb
[    3.204006] Advanced Linux Sound Architecture Driver Initialized.
[    3.204427] Bluetooth: Core ver 2.22
[    3.204470] NET: Registered protocol family 31
[    3.204485] Bluetooth: HCI device and connection manager initialized
[    3.204505] Bluetooth: HCI socket layer initialized
[    3.204522] Bluetooth: L2CAP socket layer initialized
[    3.204555] Bluetooth: SCO socket layer initialized
[    3.205468] clocksource: Switched to clocksource arch_sys_counter
[    3.296398] VFS: Disk quotas dquot_6.6.0
[    3.296487] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    3.296659] FS-Cache: Loaded
[    3.296858] CacheFiles: Loaded
[    3.304546] NET: Registered protocol family 2
[    3.305108] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    3.305169] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[    3.305237] TCP: Hash tables configured (established 4096 bind 4096)
[    3.305344] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    3.305382] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    3.305629] NET: Registered protocol family 1
[    3.306023] RPC: Registered named UNIX socket transport module.
[    3.306044] RPC: Registered udp transport module.
[    3.306057] RPC: Registered tcp transport module.
[    3.306069] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    3.306089] PCI: CLS 0 bytes, default 64
[    3.308563] audit: initializing netlink subsys (disabled)
[    3.308986] audit: type=2000 audit(3.300:1): state=initialized audit_enabled=0 res=1
[    3.309065] workingset: timestamp_bits=14 max_order=19 bucket_order=5
[    3.314801] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    3.316056] NFS: Registering the id_resolver key type
[    3.316096] Key type id_resolver registered
[    3.316110] Key type id_legacy registered
[    3.316130] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    3.316638] ntfs: driver 2.1.32 [Flags: R/W].
[    3.316999] fuse init (API version 7.26)
[    3.317546] JFS: nTxBlock = 8192, nTxLock = 65536
[    3.324124] SGI XFS with ACLs, security attributes, no debug enabled
[    3.329840] bounce: pool size: 64 pages
[    3.329925] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    3.330055] io scheduler noop registered
[    3.330071] io scheduler deadline registered
[    3.330311] io scheduler cfq registered (default)
[    3.330329] io scheduler mq-deadline registered
[    3.330343] io scheduler kyber registered
[    3.374673] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    3.376193] console [ttyS0] disabled
[    3.396378] 11004000.serial: ttyS0 at MMIO 0x11004000 (irq = 26, base_baud = 1625000) is a ST16650V2
[    4.263183] console [ttyS0] enabled
[    4.266927] mt6577-uart 11002000.serial: could not find pctldev for node /pinctrl@10005000/uart@0, deferring probe
[    4.277260] mt6577-uart 11003000.serial: could not find pctldev for node /pinctrl@10005000/uart@1, deferring probe
[    4.287579] mt6577-uart 11005000.serial: could not find pctldev for node /pinctrl@10005000/uart@3, deferring probe
[    4.309558] brd: module loaded
[    4.319294] loop: module loaded
[    4.335783] [WMT-DETECT][I]wmt_detect_driver_init:driver(major 154) installed success
[    4.343605] [SDIO-DETECT][I]sdio_detect_init:sdio_register_driver() ret=0
[    4.350544] MTK-BTIF[E]hal_btif_clk_get_and_prepare(286):[CCF]clk_btif=dd999440
[    4.357854] MTK-BTIF[E]hal_btif_clk_get_and_prepare(292):[CCF]clk_btif_apdma=dd9994c0
[    4.366740] SCSI Media Changer driver v0.25 
[    4.371328] mtk-spi 1100a000.spi: could not find pctldev for node /pinctrl@10005000/spi@0, deferring probe
[    4.381119] Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
[    4.389040] libphy: Fixed MDIO Bus: probed
[    4.393637] PPP generic driver version 2.4.2
[    4.398090] PPP BSD Compression module registered
[    4.402764] PPP Deflate Compression module registered
[    4.407818] PPP MPPE Compression module registered
[    4.412576] NET: Registered protocol family 24
[    4.417071] usbcore: registered new interface driver asix
[    4.422473] usbcore: registered new interface driver ax88179_178a
[    4.428571] usbcore: registered new interface driver cdc_ether
[    4.434399] usbcore: registered new interface driver smsc95xx
[    4.440149] usbcore: registered new interface driver net1080
[    4.445812] usbcore: registered new interface driver cdc_subset
[    4.451721] usbcore: registered new interface driver zaurus
[    4.457312] usbcore: registered new interface driver cdc_ncm
[    4.463393] xhci-mtk 1a1c0000.usb: 1a1c0000.usb supply vbus not found, using dummy regulator
[    4.471859] xhci-mtk 1a1c0000.usb: fail to get vusb33
[    4.477148] xhci-mtk 1a240000.usb: 1a240000.usb supply vbus not found, using dummy regulator
[    4.485628] xhci-mtk 1a240000.usb: fail to get vusb33
[    4.490854] usbcore: registered new interface driver usb-storage
[    4.496872] usbcore: registered new interface driver ums-alauda
[    4.502775] usbcore: registered new interface driver ums-cypress
[    4.508778] usbcore: registered new interface driver ums-datafab
[    4.514766] usbcore: registered new interface driver ums_eneub6250
[    4.520942] usbcore: registered new interface driver ums-freecom
[    4.526949] usbcore: registered new interface driver ums-isd200
[    4.532851] usbcore: registered new interface driver ums-jumpshot
[    4.538943] usbcore: registered new interface driver ums-karma
[    4.544761] usbcore: registered new interface driver ums-onetouch
[    4.550864] usbcore: registered new interface driver ums-realtek
[    4.556869] usbcore: registered new interface driver ums-sddr09
[    4.562772] usbcore: registered new interface driver ums-sddr55
[    4.568685] usbcore: registered new interface driver ums-usbat
[    4.574739] mousedev: PS/2 mouse device common for all mice
[    4.580545] i2c-mt65xx 11007000.i2c: could not find pctldev for node /pinctrl@10005000/i2c@0, deferring probe
[    4.590464] i2c-mt65xx 11008000.i2c: could not find pctldev for node /pinctrl@10005000/i2c@1, deferring probe
[    4.600505] IR NEC protocol handler initialized
[    4.605003] IR RC5(x/sz) protocol handler initialized
[    4.610034] IR RC6 protocol handler initialized
[    4.614531] IR JVC protocol handler initialized
[    4.619040] IR Sony protocol handler initialized
[    4.623621] IR SANYO protocol handler initialized
[    4.628302] IR Sharp protocol handler initialized
[    4.632971] IR MCE Keyboard/mouse protocol handler initialized
[    4.638772] IR XMP protocol handler initialized
[    4.643506] MTK_WDT_NONRST_REG(0)
[    4.647397] mtk-wdt 10007000.watchdog: Watchdog enabled (timeout=31 sec, nowayout=0)
[    4.656264] device-mapper: uevent: version 1.0.3
[    4.661099] device-mapper: ioctl: 4.37.0-ioctl (2017-09-20) initialised: dm-devel@redhat.com
[    4.669864] mtk-msdc 11240000.mmc: could not find pctldev for node /pinctrl@10005000/mmc1default, deferring probe
[    4.680107] mtk-msdc 11230000.mmc: could not find pctldev for node /pinctrl@10005000/mmc0default, deferring probe
[    4.690538] hidraw: raw HID events driver (C) Jiri Kosina
[    4.696299] usbcore: registered new interface driver usbhid
[    4.701833] usbhid: USB HID core driver
[    4.706710] ipip: IPv4 and MPLS over IPv4 tunneling driver
[    4.712613] Initializing XFRM netlink socket
[    4.717298] NET: Registered protocol family 10
[    4.722694] Segment Routing with IPv6
[    4.726415] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    4.733263] NET: Registered protocol family 17
[    4.737770] Key type dns_resolver registered
[    4.742295] ThumbEE CPU extension supported.
[    4.746556] Registering SWP/SWPB emulation handler
[    4.752740] Btrfs loaded, crc32c=crc32c-generic
[    4.758046] Key type encrypted registered
[    4.770601] mt6577-uart 11002000.serial: could not find pctldev for node /pinctrl@10005000/uart@0, deferring probe
[    4.781118] mt6577-uart 11003000.serial: could not find pctldev for node /pinctrl@10005000/uart@1, deferring probe
[    4.791568] mt6577-uart 11005000.serial: could not find pctldev for node /pinctrl@10005000/uart@3, deferring probe
[    4.802206] mtk-spi 1100a000.spi: could not find pctldev for node /pinctrl@10005000/spi@0, deferring probe
[    4.812391] xhci-mtk 1a1c0000.usb: 1a1c0000.usb supply vbus not found, using dummy regulator
[    4.820861] xhci-mtk 1a1c0000.usb: fail to get vusb33
[    4.826411] xhci-mtk 1a240000.usb: 1a240000.usb supply vbus not found, using dummy regulator
[    4.834876] xhci-mtk 1a240000.usb: fail to get vusb33
[    4.840178] i2c-mt65xx 11007000.i2c: could not find pctldev for node /pinctrl@10005000/i2c@0, deferring probe
[    4.850191] i2c-mt65xx 11008000.i2c: could not find pctldev for node /pinctrl@10005000/i2c@1, deferring probe
[    4.860193] mtk-msdc 11240000.mmc: could not find pctldev for node /pinctrl@10005000/mmc1default, deferring probe
[    4.870528] mtk-msdc 11230000.mmc: could not find pctldev for node /pinctrl@10005000/mmc0default, deferring probe
[    4.881554] ALSA device list:
[    4.884506]   No soundcards found.
[    4.888377] md: Waiting for all devices to be available before autodetect
[    4.895120] md: If you don't use raid, use raid=noautodetect
[    4.901389] md: Autodetecting RAID arrays.
[    4.905488] md: autorun ...
[    4.908261] md: ... autorun DONE.
[    4.911737] Waiting for root device PARTUUID=5700d056-02...
weiqi-chen commented 6 years ago

Here is my uboot environment

BPI-EMMC> printenv
arch=arm
baudrate=115200
board=bpi-r2
board_name=mt7623_evb
boot0=setenv mmc 0; run bootcmd
boot1=setenv mmc 1; run bootcmd
boot2=run bootcmd
boot3=setenv mmc 0; run bootfallback
boot4=setenv mmc 1; run bootfallback
bootargs=board=bpi-r2 earlyprintk console=tty1 fbcon=map:0 console=ttyS0,115200 vmalloc=496M debug=7 t
bootcmd=mmc init $mmc; run loadbootenv; run uenvcmd
bootdelay=3
bootenv=uEnv.txt
bootfallback=mmc init $mmc; run loadbootenv; run ufallbackcmd
bootfile=iverson_uImage
bootmenu_0=1. Boot from internal emmc.=run boot0
bootmenu_1=2. Boot from external sd-card.=run boot1
bootmenu_2=3. Boot from default medium.=run boot2
bootmenu_3=4. Fallback boot from internam emmc.=run boot3
bootmenu_4=5. Fallback boot from external sd-card.=run boot4
bpi=bananapi
bpiver=1
chip=MT7623N
cpu=armv7
debug=7
device=mmc
ethact=mtk_eth
ethaddr=00:0C:E7:11:22:33
ipaddr=10.10.10.254
kernel=uImage
loadaddr=0x84000000
loadbootenv=fatload ${device} ${partition} ${scriptaddr} ${board}/${service}/${bootenv} ||fatload ${d;
mmc=0
partition=0:1
scriptaddr=0x83000000
serverip=10.10.10.3
service=linux
soc=mt7623
stderr=serial
stdin=serial
stdout=serial
vendor=mediatek
weiqi-chen commented 6 years ago

Here is the info in the fat32 partition:

$ find
.
./uEnv.txt
./bpi-r2
./bpi-r2/4.14.12-bpi-r2
./bpi-r2/4.14.12-bpi-r2/uImage
./bpi-r2/linux
./bpi-r2/linux/uImage
./bpi-r2/linux/uEnv.txt.backup
./bpi-r2/4.4.70-bpi-r2-2
./bpi-r2/4.4.70-bpi-r2-2/uImage
$ cat uEnv.txt 
bpi=bananapi
board=bpi-r2
chip=mt7623n
#
kernel=uImage
initrd=uInitrd
dtb=mt7623n-bpi-r2.dtb
#
target=4.14.12-bpi-r2
fallback=linux
root=PARTUUID="5700d056-02" rootfstype=ext4 rootwait
#
kaddr=0x84000000
rdaddr=0x86000000
dtaddr=0x88000000
#
console=earlyprintk console=tty1 console=ttyS0,115200 fbcon=map:0
bootopts=vmalloc=496M debug=7 initcall_debug=0
abootargs=setenv bootargs board=${board} console=${console} root=${root} service=${service} ${bootopt}
ahello=echo Banana Pi ${board} chip: $chip Service: $service
## load kernel
aload_kernel_cmd=fatload $device $partition $kaddr ${board}/${service}/${kernel}
aload_kernel=if run aload_kernel_cmd ; then echo Kernel loaded. ; else exit; fi
## load initrd
aload_initrd_cmd=fatload $device $partition $rdaddr ${board}/${service}/${initrd}
aload_initrd=if run aload_initrd_cmd; then echo Initrd loaded. ; else set rdaddr - ; fi
## load device tree
aload_device_tree_cmd=fatload $device $partition $rdaddr ${board}/${service}/${dtb}
aload_device_tree=if run aload_device_tree_cmd; then echo Device Tree loaded. ; else set dtaddr - ; fi
##bootm
abootm=bootm $kaddr $rdaddr $dtaddr
#
uenvcmd=setenv service ${target}; run ahello abootargs aload_kernel aload_initrd aload_device_tree abm
ufallbackcmd=setenv service ${fallback}; run ahello abootargs aload_kernel aload_initrd aload_device_m
########################################################
########################################################
########################################################
########################################################
weiqi-chen commented 6 years ago

I seem that some warnning message in boot-up log..

weiqi-chen commented 6 years ago

And here is how i compiled the kernel work.sh:

#!/bin/bash
export ARCH=arm
export KPKG_ARCH=armhf
export CROSS_COMPILE=arm-linux-gnueabihf-
export LOADADDR=0x80008000
export LOCALVERSION=""
##you may make mt7623n_evb_defconfig
#fakeroot make-kpkg --initrd --uimage --verbose binary-arch
#fakeroot make-kpkg --uimage --verbose binary-arch
make bindeb-pkg

mkimg.sh

#!/bin/bash
export ARCH=arm
export KPKG_ARCH=armhf
export CROSS_COMPILE=arm-linux-gnueabihf-
export LOADADDR=0x80008000
export LOCALVERSION=""
make uImage dtbs
cat arch/arm/boot/zImage arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dtb > arch/arm/boot/zImage-dtb
mkimage -A arm -O linux -T kernel -C none -a 80008000 -e 80008000 -n "Linux Kernel $(git describe --tags)" -d arch/arm/boot/zImage-dtb ./uImage
frank-w commented 6 years ago

Please try with my build.sh and define a root in uenv pointing to /dev not partuuid

frank-w commented 6 years ago

which config do you use?

./build.sh importconfig ./build.sh

also kernel has another name (appended bpi-r2...thats not with my config/script)

from where do you get the uenv.txt? there are much more options than in standard-uenv.txt

weiqi-chen commented 6 years ago

I copied .config from 4.4.70 before. Now I'm trying the default config: make mt7623n_evb_fwu_defconfig...

weiqi-chen commented 6 years ago

It works now!!

make mt7623n_evb_fwu_defconfig

fix the problem.

Thank for your help!!!