BSP linux not booting with prebuilt image

Hi,

I have used 2017-07-13-ubuntu-16.04-mate-desktop-beta-bpi-m3-lcd7-ov8865-sd-emmc.img for BPI-M3 and it is booting perfect. but when I replace uImage with BSP linux from https://github.com/BPI-SINOVOIP/BPI-M3-bsp/linux-sunxi boot hang before linux loading.

HELLO! BOOT0 is starting!

boot0 version : 4.0.0

rtc[1] value = 0x00010000

rtc[2] value = 0x00020000

rtc[3] value = 0x00030000

DRAM DRIVE INFO: V1.0

DRAM Type =7 (2:DDR2,3:DDR3,6:LPDDR2,7:LPDDR3)

DRAM normal_mode value: 00000001

DRAM CLK =672 MHZ

PMU: AXP81X

ddr voltage = 1200 mv

using ic A83T

using axp AXP813

DRAM zq value: 00003bfb

dram size =2048

card boot number = 0

card no is 0

sdcard 0 line count 0

[mmc]: mmc driver ver 2014-8-11 15:06:39

[mmc]: Try SD card 0

[mmc]: SD/MMC Card: 4bit, capacity: 60543MB

[mmc]: vendor: Man 00845446 Snr 2700042d

[mmc]: product: MS

[mmc]: revision: 0.2

[mmc]: SD/MMC 0 init OK!!!

sdcard 0 init ok

ERROR! NOT find the head of uboot.

The size of uboot is 000dc000.

sum=ed2d2f40

src_sum=ed2d2f40

Succeed in loading uboot from sdmmc flash.

Ready to disable icache.

Jump to secend Boot.

[ 0.301]

U-Boot 2011.09-rc1-00000-g9d05f46 (Jul 13 2017 - 09:28:22) Allwinner Technology

[ 0.310]version: 2.1.0

normal mode

[ 0.390]pmbus: normal or secure os

ready

[ 0.394]PMU: AXP81X

[ 0.396]PMU: AXP81X found

bat_vol=162, ratio=100

[ 0.402]PMU: dcdc2 900

[ 0.404]PMU: pll1 1008 Mhz

AXI0=336 Mhz,PLL_PERIPH =1200 Mhz AHB1=200 Mhz, APB1=100 Mhz

set power on vol to default

dcdc1_vol = 3300, onoff=1

dcdc2_vol = 900, onoff=1

dcdc3_vol = 900, onoff=1

dcdc4_vol = 900, onoff=1

dcdc6_vol = 900, onoff=1

aldo1_vol = 1800, onoff=0

aldo2_vol = 1800, onoff=1

aldo3_vol = 3000, onoff=1

eldo2_vol = 1800, onoff=0

dldo1_vol = 3300, onoff=0

dldo2_vol = 3300, onoff=0

dldo3_vol = 2500, onoff=1

dldo4_vol = 2800, onoff=0

fldo2_vol = 900, onoff=1

gpio0_vol = 3300, onoff=1

gpio1_vol = 3300, onoff=1

find power_sply to end

supply=dcdc1

axp=axp81x, supply=dcdc1, vol=3300

reg addr=0x1c20b04, value=0xd, pmu_vol=3300

supply=dcdc1

axp=axp81x, supply=dcdc1, vol=3300

reg addr=0x1c20b08, value=0xd, pmu_vol=3300

supply=dldo3

axp=axp81x, supply=dldo3, vol=2500

reg addr=0x1c20b0c, value=0x6, pmu_vol=2500

supply=dcdc1

axp=axp81x, supply=dcdc1, vol=3300

reg addr=0x1c20b10, value=0xd, pmu_vol=3300

supply=dcdc1

axp=axp81x, supply=dcdc1, vol=3300

reg addr=0x1c20b14, value=0xd, pmu_vol=3300

supply=dcdc1

axp=axp81x, supply=dcdc1, vol=3300

reg addr=0x1c20b18, value=0xd, pmu_vol=3300

supply=dcdc1

axp=axp81x, supply=dcdc1, vol=3300

reg addr=0x1c20b1c, value=0xd, pmu_vol=3300

supply=aldo3

axp=axp81x, supply=aldo3, vol=3000

reg addr=0x1f02f00, value=0xa, pmu_vol=3000

config gpio bias voltage finish vbus exist no battery, limit to dc ac100 reg 0x00 = 0x101 ac100 reg 0xd0 = 0x0 ac100 reg 0xd1 = 0x0 446:(board.c:power_source_init) [AXP81X]:[00]=[C5] [AXP81X]:[01]=[10] [AXP81X]:[02]=[02] [AXP81X]:[03]=[51] [AXP81X]:[04]=[00] [AXP81X]:[05]=[00] [AXP81X]:[06]=[00] [AXP81X]:[07]=[00] [AXP81X]:[08]=[00] [AXP81X]:[09]=[00] [AXP81X]:[0A]=[00] [AXP81X]:[0B]=[00] [AXP81X]:[0C]=[00] [AXP81X]:[0D]=[00] [AXP81X]:[0E]=[00] [AXP81X]:[0F]=[00] [AXP81X]:[10]=[3F] [AXP81X]:[11]=[00] [AXP81X]:[12]=[20] [AXP81X]:[13]=[C8] [AXP81X]:[14]=[08] [AXP81X]:[15]=[1A] [AXP81X]:[16]=[1A] [AXP81X]:[17]=[12] [AXP81X]:[18]=[15] [AXP81X]:[19]=[00] [AXP81X]:[1A]=[16] [AXP81X]:[1B]=[00] [AXP81X]:[1C]=[0B] [AXP81X]:[1D]=[04] [AXP81X]:[1E]=[00] [AXP81X]:[1F]=[00] [AXP81X]:[20]=[11] [AXP81X]:[21]=[A8] [AXP81X]:[22]=[A8] [AXP81X]:[23]=[A8] [AXP81X]:[24]=[A4] [AXP81X]:[25]=[9E] [AXP81X]:[26]=[A8] [AXP81X]:[27]=[FC] [AXP81X]:[28]=[0B] [AXP81X]:[29]=[0B] [AXP81X]:[2A]=[17] [AXP81X]:[2B]=[00] [AXP81X]:[2C]=[00] [AXP81X]:[2D]=[30] [AXP81X]:[2E]=[40] [AXP81X]:[2F]=[00] [AXP81X]:[30]=[03] [AXP81X]:[31]=[03] [AXP81X]:[32]=[43] [AXP81X]:[33]=[C8] [AXP81X]:[34]=[45] [AXP81X]:[35]=[18] [AXP81X]:[36]=[59] [AXP81X]:[37]=[00] [AXP81X]:[38]=[A5] [AXP81X]:[39]=[1F] [AXP81X]:[3A]=[80] [AXP81X]:[3B]=[08] [AXP81X]:[3C]=[FC] [AXP81X]:[3D]=[16] [AXP81X]:[3E]=[7C] BPI-M3:[AXP81X]:[3A]=[80] BPI-M3: [AXP81X]: set [3A]=[85] BPI-M3:[AXP81X]: read [3A]=[85] BPI-M3: [AXP81X]: set [35]=[83] BPI-M3:[AXP81X]: read [35]=[83] BPI-M3:[AXP81X]: do_reset resetting … set next mode 14 drv_disp_exit [ 1.298][mmc]: MMC Device 2 not found [ 1.302][mmc]: mmc not find,so not exit

HELLO! BOOT0 is starting! boot0 version : 4.0.0 rtc[1] value = 0x00010000 rtc[2] value = 0x00020000 rtc[3] value = 0x00030000 DRAM DRIVE INFO: V1.0 DRAM Type =7 (2:DDR2,3:DDR3,6:LPDDR2,7:LPDDR3) DRAM normal_mode value: 00000001 DRAM CLK =672 MHZ PMU: AXP81X ddr voltage = 1200 mv using ic A83T using axp AXP813 DRAM zq value: 00003bfb dram size =2048 card boot number = 0 card no is 0 sdcard 0 line count 0 [mmc]: mmc driver ver 2014-8-11 15:06:39 [mmc]: Try SD card 0 [mmc]: SD/MMC Card: 4bit, capacity: 60543MB [mmc]: vendor: Man 00845446 Snr 2700042d [mmc]: product: MS
[mmc]: revision: 0.2 [mmc]: SD/MMC 0 init OK!!! sdcard 0 init ok ERROR! NOT find the head of uboot. The size of uboot is 000dc000. sum=ed2d2f40 src_sum=ed2d2f40 Succeed in loading uboot from sdmmc flash. Ready to disable icache. Jump to secend Boot. [ 0.301]

U-Boot 2011.09-rc1-00000-g9d05f46 (Jul 13 2017 - 09:28:22) Allwinner Technology

[ 0.310]version: 2.1.0 normal mode [ 0.390]pmbus: normal or secure os ready [ 0.394]PMU: AXP81X [ 0.396]PMU: AXP81X found bat_vol=0, ratio=100 [ 0.402]PMU: dcdc2 900 [ 0.404]PMU: pll1 1008 Mhz AXI0=336 Mhz,PLL_PERIPH =1200 Mhz AHB1=200 Mhz, APB1=100 Mhz set power on vol to default dcdc1_vol = 3300, onoff=1 dcdc2_vol = 900, onoff=1 dcdc3_vol = 900, onoff=1 dcdc4_vol = 900, onoff=1 dcdc6_vol = 900, onoff=1 aldo1_vol = 1800, onoff=0 aldo2_vol = 1800, onoff=1 aldo3_vol = 3000, onoff=1 eldo2_vol = 1800, onoff=0 dldo1_vol = 3300, onoff=0 dldo2_vol = 3300, onoff=0 dldo3_vol = 2500, onoff=1 dldo4_vol = 2800, onoff=0 fldo2_vol = 900, onoff=1 gpio0_vol = 3300, onoff=1 gpio1_vol = 3300, onoff=1 find power_sply to end supply=dcdc1 axp=axp81x, supply=dcdc1, vol=3300 reg addr=0x1c20b04, value=0xd, pmu_vol=3300 supply=dcdc1 axp=axp81x, supply=dcdc1, vol=3300 reg addr=0x1c20b08, value=0xd, pmu_vol=3300 supply=dldo3 axp=axp81x, supply=dldo3, vol=2500 reg addr=0x1c20b0c, value=0x6, pmu_vol=2500 supply=dcdc1 axp=axp81x, supply=dcdc1, vol=3300 reg addr=0x1c20b10, value=0xd, pmu_vol=3300 supply=dcdc1 axp=axp81x, supply=dcdc1, vol=3300 reg addr=0x1c20b14, value=0xd, pmu_vol=3300 supply=dcdc1 axp=axp81x, supply=dcdc1, vol=3300 reg addr=0x1c20b18, value=0xd, pmu_vol=3300 supply=dcdc1 axp=axp81x, supply=dcdc1, vol=3300 reg addr=0x1c20b1c, value=0xd, pmu_vol=3300 supply=aldo3 axp=axp81x, supply=aldo3, vol=3000 reg addr=0x1f02f00, value=0xa, pmu_vol=3000 config gpio bias voltage finish vbus exist no battery, limit to dc ac100 reg 0x00 = 0x101 ac100 reg 0xd0 = 0x0 ac100 reg 0xd1 = 0x0 446:(board.c:power_source_init) [AXP81X]:[00]=[C5] [AXP81X]:[01]=[10] [AXP81X]:[02]=[02] [AXP81X]:[03]=[51] [AXP81X]:[04]=[00] [AXP81X]:[05]=[00] [AXP81X]:[06]=[00] [AXP81X]:[07]=[00] [AXP81X]:[08]=[00] [AXP81X]:[09]=[00] [AXP81X]:[0A]=[00] [AXP81X]:[0B]=[00] [AXP81X]:[0C]=[00] [AXP81X]:[0D]=[00] [AXP81X]:[0E]=[00] [AXP81X]:[0F]=[0E] [AXP81X]:[10]=[3F] [AXP81X]:[11]=[00] [AXP81X]:[12]=[20] [AXP81X]:[13]=[C8] [AXP81X]:[14]=[08] [AXP81X]:[15]=[1A] [AXP81X]:[16]=[1A] [AXP81X]:[17]=[12] [AXP81X]:[18]=[15] [AXP81X]:[19]=[00] [AXP81X]:[1A]=[16] [AXP81X]:[1B]=[00] [AXP81X]:[1C]=[0B] [AXP81X]:[1D]=[04] [AXP81X]:[1E]=[00] [AXP81X]:[1F]=[00] [AXP81X]:[20]=[11] [AXP81X]:[21]=[A8] [AXP81X]:[22]=[A8] [AXP81X]:[23]=[A8] [AXP81X]:[24]=[A4] [AXP81X]:[25]=[9E] [AXP81X]:[26]=[A8] [AXP81X]:[27]=[FC] [AXP81X]:[28]=[0B] [AXP81X]:[29]=[0B] [AXP81X]:[2A]=[17] [AXP81X]:[2B]=[00] [AXP81X]:[2C]=[00] [AXP81X]:[2D]=[30] [AXP81X]:[2E]=[40] [AXP81X]:[2F]=[00] [AXP81X]:[30]=[03] [AXP81X]:[31]=[03] [AXP81X]:[32]=[43] [AXP81X]:[33]=[C8] [AXP81X]:[34]=[45] [AXP81X]:[35]=[83] [AXP81X]:[36]=[59] [AXP81X]:[37]=[00] [AXP81X]:[38]=[A5] [AXP81X]:[39]=[1F] [AXP81X]:[3A]=[85] [AXP81X]:[3B]=[08] [AXP81X]:[3C]=[FC] [AXP81X]:[3D]=[16] [AXP81X]:[3E]=[7C] BPI-M3:[AXP81X]:[3A]=[85] limit to 2500mA fel key old mode run key detect no key found no key input dram_para_set start dram_para_set end [ 0.748]DRAM: 2 GiB relocation Offset is: 75af3000 user_gpio config user_gpio ok gic: normal or no secure os mode script config pll_de to 504 Mhz script config pll_video1 to 297 Mhz Not Found clk pll_video in script enable power vcc-hdmi-18, ret=0

DRV_DISP_Init end [ 0.913]boot_disp.output_disp=0 [ 0.916]boot_disp.output_type=1 [ 0.920]boot_disp.output_mode=5 [ 0.923]fetch script data boot_disp.auto_hpd fail

disp0 device type(1) enable S070WV20_MIPI_RGB++++LCD_open_flow+++uboot++ disp 0, clk: pll(80000000),clk(80000000),dclk(20000000) dsi_rate(20000000) clk real:pll(78000000),clk(0),dclk(0) dsi_rate(19500000) S070WV20_MIPI_RGB++++LCD_open_flow+++uboot++ enable power vcc-dsi-18, ret=0 enable power vcc-mipi, ret=0 enable power vcc-pd, ret=0 ++++LCD_power_on+++++ workmode = 0

MMC: 0 [ 1.209][mmc]: mmc driver ver 2015-04-13 14:50:00 [ 1.214][mmc]: get sdc_phy_wipe fail. [ 1.218][mmc]: get sdc0 sdc_erase fail. [ 1.222][mmc]: get sdc_f_max fail,use default 50000000Hz [ 1.227][mmc]: get sdc_ex_dly_used fail,use default dly [ 1.233][mmc]: SUNXI SD/MMC: 0 [ 1.246][mmc]: Try SD card 0 [ 1.279][mmc]: CID 0x8454464d 0x53202020 0x2270004 0x2d011369 [ 1.284][mmc]: mmc clk 50000000 [ 1.288][mmc]: SD/MMC Card: 4bit, capacity: 60543MB [ 1.293][mmc]: boot0 capacity: 0KB,boot1 capacity: 0KB [ 1.298][mmc]: SD/MMC 0 init OK!!! [ 1.302][mmc]: erase_grp_size:0x1WrBlk * 0x200 = 0x200 Byte [ 1.308][mmc]: secure_feature 0x0 [ 1.311][mmc]: secure_removal_type 0x0 [ 1.315]sunxi flash init ok [ 1.320][mmc]: MMC Device 2 not found [ 1.323][mmc]: Can not find mmc dev [ 1.327][mmc]: read first backup failed in fun sdmmc_secure_storage_read line 1854 sunxi_secstorage_read fail get secure storage map err sunxi secure storage is not supported private partition is not exist In: serial Out: serial Err: serial --------fastboot partitions-------- -total partitions:6- -name- -start- -size-
boot-res : 1000000 2000000
env : 3000000 1000000
boot : 4000000 1000000
rootfs : 5000000 20000000
klog : 25000000 1000000
UDISK : 26000000 0

base bootcmd=run setargs_nand boot_normal bootcmd set setargs_mmc key 0 recovery key high 10, low 8 cant find fstbt value no misc partition is found to be run cmd=run setargs_mS070WV20_MIPI_RGB++++LCD_open_flow+++uboot++ S070WV20_MIPI_RGB_panel++normal -+++uboot+++++ mc boot_normal serial is: 00000000000000000000 mount part name boot-res cant open script.bin, maybe it is not exist WORK_MODE_BOOT board_status_probe [ 1.699]pre sys mode sunxi_bmp_logo_display [ 1.770][mmc]: blkcnt should not be 0 [ 1.782]fetch script data boot_disp.output_disp fail [ 1.787]screen_id =0, screen_width =800, screen_height =480 [ 1.792]frame buffer address 46400000 [ 1.796]Hit any key to stop autoboot: 3 S070WV20_MIPI_RGB++++LCD_open_flow+++uboot++ S070WV20_MIPI_RGB++++LCD_open_flow+++uboot++ S070WV20_MIPI_RGB++++LCD_open_flow+++uboot++ S070WV20_MIPI_RGB++++LCD_open_flow+++uboot++ 0 [ 5.071][mmc]: MMC Device 2 not found

** Invalid boot device ** [ 5.083][mmc]: blkcnt should not be 0 Loaded environment from uEnv.txt Running uenvcmd …

Banana Pi bpi-m3 chip: a83t Service: linux bpiuser: lcd7 [ 5.612][mmc]: blkcnt should not be 0

Booting kernel from Legacy Image at 48000000 …

Image Name: Linux-3.4.39-BPI-M3-Kernel Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 6826568 Bytes = 6.5 MiB Load Address: 40008000 Entry Point: 40008000 Verifying Checksum … OK

Loading init Ramdisk from Legacy Image at 43100000 …

Image Name: uInitrd Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 5161148 Bytes = 4.9 MiB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum … OK Loading Kernel Image … OK OK [ 5.806][mmc]: MMC Device 2 not found [ 5.809][mmc]: mmc not find,so not exit [ 5.813] Starting kernel …

[sun8i_fixup]: From boot, get meminfo: Start: 0x40000000 Size: 2048MB ion_carveout reserve: 96m 128m ion_reserve_common: ion reserve: [0xb8000000, 0xc0000000]! ion_cma reserve: 120m 176m 512m ion_reserve_common: ion reserve: [0xa0000000, 0xc0000000]! ------sun8i_smp_init_ops----37-----

<< hang here >>

Any help?