It has 1000M port, 4 \ 32 memory, so I was using the stock X96Air_4GB_P2_20191017-1917.img and X96Air_P4_20191121-1521.img
Here's the UART output
There's a success message at the end, but after the reset, it cycles with the following
SM1:BL:511f6b:81ca2f;FEAT:A0F83180:20282000;POC:F;RCY:0;EMMC:0;READ:8;READ:8;READ:8;SD?:20000;USB:8
Any recommendations? Would be thankful
Here's the full output of the flashing process
bl2_stage_init 0x01 bl2_stage_init 0x81 hw id: 0x0001 - pwm id 0x00 bl2_stage_init 0xc0 bl2_stage_init 0x02 L0:00000000 L1:00000703 L2:00008067 L3:15000020 S1:00000000 B2:20282000 B1:a0f83180 TE: 277164629 BL2 Built : 20:29:41, Jun 18 2019. g12a ga659aac - luan.yuan@droid15-sz Board ID = 1 Set cpu clk to 24M Set clk81 to 24M Use GP1_pll as DSU clk. DSU clk: 1200 Mhz CPU clk: 1200 MHz Set clk81 to 166.6M DDR driver_vesion: LPDDR4_PHY_V_0_1_15 build time: Jun 18 2019 20:29:37 board id: 1 Cfg max: 5, cur: 1. Board id: 255. Force loop cfg DATA transfer complete... fw parse done DATA transfer complete... AML DDR FW load done DATA transfer complete... PIEI prepare done DDR4 probe ddr clk to 1200MHz DATA transfer complete... dmc_version 0001 Check phy result INFO : End of initialization INFO : End of read enable training INFO : End of fine write leveling INFO : ERROR : Training has failed! Cfg max: 5, cur: 2. Board id: 255. Force loop cfg ddr probe id done DATA transfer complete... fw parse done DATA transfer complete... AML DDR FW load done DATA transfer complete... PIEI prepare done DDR3 probe ddr clk to 672MHz DATA transfer complete... dmc_version 0001 Check phy result INFO : End of initialization INFO : End of read enable training INFO : End of fine write leveling INFO : End of read dq deskew training INFO : End of MPR read delay center optimization INFO : End of Write leveling coarse delay INFO : End of write delay center optimization INFO : End of read delay center optimization INFO : End of max read latency training INFO : Training has run successfully! 1D init succeed need_2d=0, skip 2d fw load... ddr init done, boot next stage result report aml_ddr_fw_vesion: LPDDR4_PHY_V_0_1_15 build time: Jun 18 2019 20:29:43 auto size-- 65535DDR cs0 size: 4096MB DDR cs1 size: 0MB DMC_DDR_CTRL: 0000002dDDR size: 3928MB cs0 DataBus test pass cs0 AddrBus test pass DATA transfer complete... DATA transfer complete... Data req end DATA transfer complete... RUN bl2 usb boot bl2z: ptr: 05129330, size: 00001e40 0.0;M3 CHK:0;cm4_sp_mode 0 MVN_1=0x00000000 MVN_2=0x00000000 [Image: g12a_v1.1.3389-92241b5 2019-07-02 17:22:49 luan.yuan@droid15-sz] OPS=0x10 ring efuse init 2b 0c 10 00 01 16 19 00 00 01 32 34 50 4d 50 50 [0.017354 Inits done] secure task start! high task start! low task start! run into bl31 NOTICE: BL31: v1.3(release):4fc40b1 NOTICE: BL31: Built : 15:57:33, May 22 2019 NOTICE: BL31: G12A normal boot! NOTICE: BL31: BL33 decompress pass ERROR: Error initializing runtime service opteed_fast U-Boot 2015.01 (Nov 07 2019 - 14:57:23) DRAM: 3.8 GiB Relocation Offset is: d6e50000 spi_post_bind(spifc): req_seq = 0 [MSG]MMC init in usb aml_priv->desc_buf = 0x00000000d3e40a70 aml_priv->desc_buf = 0x00000000d3e42db0 SDIO Port B: 0, SDIO Port C: 1 InUsbBurn [MSG]sof Set Addr 12 Get DT cfg Get DT cfg Get DT cfg set CFG ID[16] tplcmd[ echo 12345] 12345 [MSG]ret = 0 [info]success BULKcmd[ low_power] [info]success ID[16] tplcmd[ download mem dtb normal 102818] [MSG]Down(mem) part(dtb) sz(0x191a2) fmt(normal) [MSG]totalSlotNum = 0, nextWriteBackSlot 2 [info]success [MSG]Burn Start... [MSG]load dt.img to 0x0000000001000000, sz=0x191a2 [MSG]Burn complete BULKcmd[download get_status] [info]success BULKcmd[disk_initial 0] Amlogic multi-dtb tool GZIP format, decompress... Multi dtb detected ##############################DDR SIZE: 0xe0000000 Multi dtb tool version: v2 . Support 5 dtbs. aml_dt soc: sm1 platform: ac213 variant: 4g dtb 0 soc: g12a plat: u212 vari: 1g dtb 1 soc: g12a plat: u212 vari: 2g dtb 2 soc: g12a plat: u212 vari: 4g dtb 3 soc: sm1 plat: ac213 vari: 2g dtb 4 soc: sm1 plat: ac213 vari: 4g Find match dtb: 4 start dts,buffer=0000000001000000,dt_addr=00000000010000 00 get_partition_from_dts() 91: ret 0 Amlogic multi-dtb tool Single dtb detected parts: 17 00: logo 0000000000800000 1 01: recovery 0000000001800000 1 02: misc 0000000000800000 1 03: dtbo 0000000000800000 1 04: cri_data 0000000000800000 2 05: param 0000000001000000 2 06: boot 0000000001000000 1 set has_boot_slot = 0 07: rsv 0000000001000000 1 08: metadata 0000000001000000 1 09: vbmeta 0000000000200000 1 10: tee 0000000002000000 1 11: vendor 0000000034000000 1 12: odm 0000000008000000 1 13: system 0000000050000000 1 14: product 0000000008000000 1 15: cache 0000000046000000 2 16: data ffffffffffffffff 4 co-phase 0x2, tx-dly 0, clock 400000 co-phase 0x2, tx-dly 0, clock 400000 co-phase 0x2, tx-dly 0, clock 400000 emmc/sd response timeout, cmd8, status=0x1ff2800 emmc/sd response timeout, cmd55, status=0x1ff2800 co-phase 0x2, tx-dly 0, clock 400000 emmc/sd read error, cmd8, status=0x1ff2008 co-phase 0x2, tx-dly 0, clock 400000 emmc/sd read error, cmd8, status=0x1ff2008 co-phase 0x2, tx-dly 0, clock 400000 co-phase 0x2, tx-dly 0, clock 40000000 aml_sd_retry_refix[983]:delay = 0x0,gadjust =0x162000 [mmc_startup] mmc refix success init_part() 297: PART_TYPE_AML [mmc_init] mmc init success _cmp_partition()-591: name: vendor<-> vendor _cmp_partition()-592: size: 34000000<->46000000 _cmp_partition()-593: offset: 5d600000<->5d600000 _cmp_partition()-594: mask: 00000001<->00000001 _cmp_iptbl()-630: partition 15 has changed mmc_device_init()-1288: update rsv with dtb! init_part() 297: PART_TYPE_AML eMMC/TSD partition table have been checked OK! check pattern failed,need to write several 0x55aa55aa pattern blocks write OK crc32_s:0x8b2a7ae8 == storage crc_pattern:0x1577dad!!! check magic failed,need to write several 0xff00ff pattern blocks write OK crc32_s:0x8b2a7ae8 == storage crc_pattern:0xee152b83!!! check random failed,need to write several 0x52414e44 pattern blocks write OK crc32_s:0x8b2a7ae8 == storage crc_pattern:0x79f50f07!!! XXXXXXX======enter EMMC boot======XXXXXX co-phase 0x2, tx-dly 0, clock 40000000 co-phase 0x2, tx-dly 0, clock 40000000 co-phase 0x2, tx-dly 0, clock 400000 emmc/sd response timeout, cmd8, status=0x1ff2800 emmc/sd response timeout, cmd55, status=0x1ff2800 co-phase 0x2, tx-dly 0, clock 400000 emmc/sd read error, cmd8, status=0x1ff2008 co-phase 0x2, tx-dly 0, clock 400000 emmc/sd read error, cmd8, status=0x1ff2008 co-phase 0x2, tx-dly 0, clock 400000 co-phase 0x2, tx-dly 0, clock 40000000 aml_sd_retry_refix[983]:delay = 0x0,gadjust =0x162000 [mmc_startup] mmc refix success init_part() 297: PART_TYPE_AML [mmc_init] mmc init success switch to partitions #0, OK mmc1(part 0) is current device Device: SDIO Port C Manufacturer ID: 15 OEM: 100 Name: BJNB4 Tran Speed: 52000000 Rd Block Len: 512 MMC version 5.1 High Capacity: Yes Capacity: 29.1 GiB mmc clock: 40000000 Bus Width: 1-bit [MSG]usb producing env_relocate mmc env offset: 0x4d400000 Amlogic multi-dtb tool Single dtb detected [info]success ID[16] tplcmd[download store _aml_dtb normal 102818] [MSG]Down(store) part(_aml_dtb) sz(0x191a2) fmt(normal) [MSG]totalSlotNum = 0, nextWriteBackSlot 2 [info]success [MSG]Burn Start... [MSG]optimus_download_dtb_image:dataSzReceived=0x191a2 start erase dtb...... dev # 1, , several blocks erased OK [store]To run cmd[emmc dtb_write 0x0000000001400000 0x40000] dtb_write()-3669: valid 0 dtb_write()-3689: new stamp 0, checksum 0x3e0e0075, version 1, magic A~D Amlogic multi-dtb tool GZIP format, decompress... Multi dtb detected ##############################DDR SIZE: 0xe0000000 Multi dtb tool version: v2 . Support 5 dtbs. aml_dt soc: sm1 platform: ac213 variant: 4g dtb 0 soc: g12a plat: u212 vari: 1g dtb 1 soc: g12a plat: u212 vari: 2g dtb 2 soc: g12a plat: u212 vari: 4g dtb 3 soc: sm1 plat: ac213 vari: 2g dtb 4 soc: sm1 plat: ac213 vari: 4g Find match dtb: 4 start dts,buffer=00000000d3e5d930,dt_addr=00000000d3e5d9 30 Amlogic multi-dtb tool GZIP format, decompress... Multi dtb detected ##############################DDR SIZE: 0xe0000000 Multi dtb tool version: v2 . Support 5 dtbs. aml_dt soc: sm1 platform: ac213 variant: 4g dtb 0 soc: g12a plat: u212 vari: 1g dtb 1 soc: g12a plat: u212 vari: 2g dtb 2 soc: g12a plat: u212 vari: 4g dtb 3 soc: sm1 plat: ac213 vari: 2g dtb 4 soc: sm1 plat: ac213 vari: 4g Find match dtb: 4 start dts,buffer=0000000001400000,dt_addr=00000000014000 00 get_partition_from_dts() 91: ret 0 Amlogic multi-dtb tool Single dtb detected parts: 17 00: logo 0000000000800000 1 01: recovery 0000000001800000 1 02: misc 0000000000800000 1 03: dtbo 0000000000800000 1 04: cri_data 0000000000800000 2 05: param 0000000001000000 2 06: boot 0000000001000000 1 set has_boot_slot = 0 07: rsv 0000000001000000 1 08: metadata 0000000001000000 1 09: vbmeta 0000000000200000 1 10: tee 0000000002000000 1 11: vendor 0000000034000000 1 12: odm 0000000008000000 1 13: system 0000000050000000 1 14: product 0000000008000000 1 15: cache 0000000046000000 2 16: data ffffffffffffffff 4 init_part() 297: PART_TYPE_AML partition table success [MSG]Burn complete BULKcmd[download get_status] [info]success BULKcmd[verify sha1sum 2295f8b76b02185a6afb61ffb049644e76243e64] [store]To run cmd[emmc dtb_read 0x0000000001400000 0x40000] dtb_read_shortcut()-3464: short cut in... [MSG]VERIFY OK [info]success ID[16] tplcmd[download store boot normal 9639936] [MSG]flash LOGIC partCap 0x1000000B [MSG]Down(store) part(boot) sz(0x931800) fmt(normal) [MSG]totalSlotNum = 0, nextWriteBackSlot 1 [info]success [MSG]Burn Start... Downloading %43 Downloading %87 [MSG]Burn complete BULKcmd[download get_status] [info]success BULKcmd[verify sha1sum e0610db2ed43998a7a3fa10e0bdc8ff1e931958d] [MSG]Verify Start... [MSG]To verify part boot in fmt normal [MSG]Verify End [MSG]VERIFY OK [info]success ID[16] tplcmd[download store dtbo normal 438] [MSG]flash LOGIC partCap 0x800000B [MSG]Down(store) part(dtbo) sz(0x1b6) fmt(normal) [MSG]totalSlotNum = 0, nextWriteBackSlot 1 [info]success [MSG]Burn Start... [MSG]Burn complete BULKcmd[download get_status] [info]success BULKcmd[verify sha1sum 7e63f51086267cbfc7ea71d55d89d967a9d2916a] [MSG]Verify Start... [MSG]To verify part dtbo in fmt normal [MSG]Verify End [MSG]VERIFY OK [info]success ID[16] tplcmd[download store logo normal 1202064] [MSG]flash LOGIC partCap 0x800000B [MSG]Down(store) part(logo) sz(0x125790) fmt(normal) [MSG]totalSlotNum = 0, nextWriteBackSlot 1 [info]success [MSG]Burn Start... [MSG]Burn complete BULKcmd[download get_status] [info]success BULKcmd[verify sha1sum 30c63ed433fb4f4818326d5bec04af9853c668f9] [MSG]Verify Start... [MSG]To verify part logo in fmt normal [MSG]Verify End [MSG]VERIFY OK [info]success ID[16] tplcmd[download store odm sparse 536652] [MSG]flash LOGIC partCap 0x8000000B [MSG]Down(store) part(odm) sz(0x8304c) fmt(sparse) [MSG]totalSlotNum = 0, nextWriteBackSlot 9 [info]success [MSG]Burn Start... [MSG]Burn complete BULKcmd[download get_status] [info]success BULKcmd[verify sha1sum 824f49d35baaaf090ddb2231a2189499abea4f0b] [MSG]Verify Start... [MSG]To verify part odm in fmt sparse [MSG]Verify End [MSG]VERIFY OK [info]success ID[16] tplcmd[download store product sparse 2125900] [MSG]flash LOGIC partCap 0x8000000B [MSG]Down(store) part(product) sz(0x20704c) fmt(sparse) [MSG]totalSlotNum = 0, nextWriteBackSlot 33 [info]success [MSG]Burn Start... [MSG]Burn complete BULKcmd[download get_status] [info]success BULKcmd[verify sha1sum 5f56d994ed180683200c05b176370b27eb711556] [MSG]Verify Start... [MSG]To verify part product in fmt sparse [MSG]Verify End [MSG]VERIFY OK [info]success ID[16] tplcmd[download store recovery normal 16326656] [MSG]flash LOGIC partCap 0x1800000B [MSG]Down(store) part(recovery) sz(0xf92000) fmt(normal) [MSG]totalSlotNum = 0, nextWriteBackSlot 1 [info]success [MSG]Burn Start... Downloading %25 Downloading %50 Downloading %75 [MSG]Burn complete BULKcmd[download get_status] [info]success BULKcmd[verify sha1sum 781642144521471de6f06874bc5e625afb8a07e9] [MSG]Verify Start... [MSG]To verify part recovery in fmt normal [MSG]Verify End [MSG]VERIFY OK [info]success ID[16] tplcmd[download store system sparse 898048244] [MSG]flash LOGIC partCap 0x50000000B [MSG]Down(store) part(system) sz(0x358720f4) fmt(sparse) [MSG]totalSlotNum = 0, nextWriteBackSlot 512 [info]success Downloading %1 Downloading %2 Downloading %3 [MSG]Burn Start... Downloading %4 Downloading %5 Downloading %6 Downloading %7 Downloading %8 Downloading %9 Downloading %10 Downloading %11 Downloading %12 Downloading %13 Downloading %14 Downloading %15 Downloading %16 Downloading %17 Downloading %18 Downloading %19 Downloading %20 Downloading %21 Downloading %22 Downloading %23 Downloading %24 Downloading %25 Downloading %26 Downloading %27 Downloading %28 Downloading %29 Downloading %30 Downloading %31 Downloading %32 Downloading %33 Downloading %34 Downloading %35 Downloading %36 Downloading %37 Downloading %38 Downloading %39 Downloading %40 Downloading %41 Downloading %42 Downloading %43 Downloading %44 Downloading %45 Downloading %46 Downloading %47 Downloading %48 Downloading %49 Downloading %50 Downloading %51 Downloading %52 Downloading %53 Downloading %54 Downloading %55 Downloading %56 Downloading %57 Downloading %58 Downloading %59 Downloading %60 Downloading %61 Downloading %62 Downloading %63 Downloading %64 Downloading %65 Downloading %66 Downloading %67 Downloading %68 Downloading %69 Downloading %70 Downloading %71 Downloading %72 Downloading %73 Downloading %74 Downloading %75 Downloading %76 Downloading %77 Downloading %78 Downloading %79 Downloading %80 Downloading %81 Downloading %82 Downloading %83 Downloading %84 Downloading %85 Downloading %86 Downloading %87 Downloading %88 Downloading %89 Downloading %90 Downloading %91 Downloading %92 Downloading %93 Downloading %94 Downloading %95 Downloading %96 Downloading %97 Downloading %98 Downloading %99 [MSG]Burn complete Downloading %100 BULKcmd[download get_status] [info]success BULKcmd[verify sha1sum 9ad27a392ef5d0fb7589c92fb1648def95cab09f] [MSG]Verify Start... [MSG]To verify part system in fmt sparse [MSG]Verify End [MSG]VERIFY OK [info]success [WRN]total 0x200 < tranferred 0x400 ID[16] tplcmd[download store vbmeta normal 4096] [MSG]flash LOGIC partCap 0x200000B [MSG]Down(store) part(vbmeta) sz(0x1000) fmt(normal) [MSG]totalSlotNum = 0, nextWriteBackSlot 1 [info]success [MSG]Burn Start... [MSG]Burn complete BULKcmd[download get_status] [info]success BULKcmd[verify sha1sum ebc223238e8f93d5bb549a7db978aac490db19bc] [MSG]Verify Start... [MSG]To verify part vbmeta in fmt normal [MSG]Verify End [MSG]VERIFY OK [info]success ID[16] tplcmd[download store vendor sparse 505807044] [MSG]flash LOGIC partCap 0x34000000B [MSG]Down(store) part(vendor) sz(0x1e2600c4) fmt(sparse) [MSG]totalSlotNum = 0, nextWriteBackSlot 512 [info]success Downloading %1 Downloading %2 Downloading %3 Downloading %4 Downloading %5 Downloading %6 [MSG]Burn Start... Downloading %7 Downloading %8 Downloading %9 Downloading %10 Downloading %11 Downloading %12 Downloading %13 Downloading %14 Downloading %15 Downloading %16 Downloading %17 Downloading %18 Downloading %19 Downloading %20 Downloading %21 Downloading %22 Downloading %23 Downloading %24 Downloading %25 Downloading %26 Downloading %27 Downloading %28 Downloading %29 Downloading %30 Downloading %31 Downloading %32 Downloading %33 Downloading %34 Downloading %35 Downloading %36 Downloading %37 Downloading %38 Downloading %39 Downloading %40 Downloading %41 Downloading %42 Downloading %43 Downloading %44 Downloading %45 Downloading %46 Downloading %47 Downloading %48 Downloading %49 Downloading %50 Downloading %51 Downloading %52 Downloading %53 Downloading %54 Downloading %55 Downloading %56 Downloading %57 Downloading %58 Downloading %59 Downloading %60 Downloading %61 Downloading %62 Downloading %63 Downloading %64 Downloading %65 Downloading %66 Downloading %67 Downloading %68 Downloading %69 Downloading %70 Downloading %71 Downloading %72 Downloading %73 Downloading %74 Downloading %75 Downloading %76 Downloading %77 Downloading %78 Downloading %79 Downloading %80 Downloading %81 Downloading %82 Downloading %83 Downloading %84 Downloading %85 Downloading %86 Downloading %87 Downloading %88 Downloading %89 Downloading %90 Downloading %91 Downloading %92 Downloading %93 Downloading %94 Downloading %95 Downloading %96 Downloading %97 Downloading %98 Downloading %99 [MSG]Burn complete Downloading %100 BULKcmd[download get_status] [info]success BULKcmd[verify sha1sum 5e2585661772b528cbfb5c00ff0bad06405aad26] [MSG]Verify Start... [MSG]To verify part vendor in fmt sparse [MSG]Verify End [MSG]VERIFY OK [info]success [WRN]total 0x200 < tranferred 0x400 ID[16] tplcmd[download store bootloader normal 1329008] [MSG]Down(store) part(bootloader) sz(0x144770) fmt(normal) [MSG]totalSlotNum = 0, nextWriteBackSlot 21 [info]success [MSG]Burn Start... Wrting blocks 1 to 2596 @ user Wrting blocks 1 to 2596 @ boot0 boot_info.rsv_base_addr : 12000 boot_info.ddr.addr : 4000 boot_info.ddr.size : 0004 boot_info.version : 0001 boot_info.checksum : 16005 Wrting blocks 1 to 2596 @ boot1 boot_info.rsv_base_addr : 12000 boot_info.ddr.addr : 4000 boot_info.ddr.size : 0004 boot_info.version : 0001 boot_info.checksum : 16005 [MSG]Burn complete BULKcmd[download get_status] [info]success BULKcmd[verify sha1sum f1134828236b185845e1a905bb9ced26fcc8595d] mmc switch to boot0 success mmc switch to boot1 success mmc switch to user success [MSG]VERIFY OK [info]success BULKcmd[save_setting] ## save_setting ## [MSG]Set upgrade_step to 2 Saving Environment to aml-storage... mmc env offset: 0x4d400000 Writing to MMC(1)... done [info]success BULKcmd[burn_complete 3] [MSG]Pls un-plug USB line to poweroff [info]success Set Addr 13 Get DT cfg Get DT cfg Get DT cfg set CFG Set Addr 14 Get DT cfg Get DT cfg Get DT cfg set CFG Set Addr 15 Get DT cfg Get DT cfg Get DT cfg set CFG SM1:BL:511f6b:81ca2f;FEAT:A0F83180:20282000;POC:F; RCY:0;EMMC:0;READ:8;READ:8;READ:8;SD?:20000;USB:8; LOOP:1;EMMC:0;READ:8;READ:8;READ:8;SD?:20000;USB:8 ;LOOP:2;EMMC:0;READ:8;READ:8;READ:8;SD?:20000;USB: 8;LOOP:3;EMMC:0;READ:8;READ:8;READ:8;SD?:20000;USB :8;LOOP:4;EMMC:0;READ:8;READ:8;READ:8;SD?:20000;US B:8;LOOP:5;EMMC:0;READ:8;READ:8;READ:8;SD?:20000;U SB:8;LOOP:6;EMMC:0;READ:8;READ:8;READ:8;SD?:20000; USB:8;