Hdmi no signal Vim3 pro

UBUNTU 20.4 Thanks

open /tmp/mounts/dumps/downloads/vim3-ubuntu-20.04-server-linux-4.9-fenix-1.0.11
│ │
│ wait… │
│ │
│ ┌────────────────────────────────────────────────────────────────────────┐ │
│ │ 10 │ │
│ └────────────────────────────────────────────────────────────────────────┘ │
└──────────────────────────────────────────────────────────────────────────────┘
[burn] ++++++++++++++++±------------------------------------------

  ┌─────────────────────────Image write: ───────────────────────────┐
  │ vim3-ubuntu-20.04-server-linux-4.9-fenix-1.0.11-220429.img.xz   │
  │ size: 2.6 G                                                     │
  │ type:xz                                                         │
  │ label: Ubuntu                                                   │
  │ match: BOARD=VIM3                                               │
  │ builder: fenix                                                  │
  │ link: https://dl.khadas.com/Firmware/                           │
  │ desc: Ubuntu 1.0.11 server focal - fenix generated images       │
  │ https://github.com/khadas/fenix                                 │
  │ duration: 60                                                    │
  │ date: Fri 29 Apr 2022 01:59:56 PM UTC                           │
  ├─────────────────────────────────────────────────────────────────┤
  │           <INSTALL>      < CHECK >      <CANCEL >               │
  └─────────────────────────────────────────────────────────────────┘







      ┌───────────────────Image was written──────────────────────┐
      │ IMAGE   : vim3-ubuntu-20.04-server-linux-4.9-fenix-1.0   │
      │ STATUS  : COMPLETED                                      │
      │ DURATION: 79 sec                                         │
      │ ---------------------------------------------------      │
      │   Press REBOOT to new system! or BACK to continue        │
      │ ---------------------------------------------------      │
      ├──────────────────────────────────────────────────────────┤
      │               <REBOOT>        < BACK >                   │
      └──────────────────────────────────────────────────────────┘








         ┌─────────────────Shutdown system────────────────────┐
         │          To boot into your new system!             │
         │             press Reboot or Poweroff               │
         │ - -------------------------------------------- -   │
         │ please eject SD card before for reboot from eMMC   │
         ├────────────────────────────────────────────────────┤
         │       < Reboot >    <Poweroff>    <  Back  >       │
         └────────────────────────────────────────────────────┘

| _ \ | | ___ ___ | |
| |) / _ \ ’ \ / _ \ / _ | |
| _ < / |) | () | () | |
|_| __
|_.
/ _/ _/ __|

Terminated
root@Krescue:/# [ 1093.297746] reboot: Restarting system
bl31 reboot reason: 0xd
bl31 reboot reason: 0x0
system cmd 1.
G12B:BL:6e7c85:2a3b91;FEAT:E0F83180:402000;POC:F;RCY:0;EMMC:0;READ:0;0.0x01
bl2_stage_init 0x81
hw id: 0x0000 - pwm id 0x01
bl2_stage_init 0xc1
bl2_stage_init 0x02

L0:00000000
L1:20000703
L2:00008067
L3:14000000
B2:00402000
B1:e0f83180

TE: 101283

BL2 Built : 15:22:05, Aug 28 2019. g12b g1bf2b53 - luan.yuan@droid15-sz

Board ID = 8
Set A53 clk to 24M
Set A73 clk to 24M
Set clk81 to 24M
A53 clk: 1200 MHz
A73 clk: 1200 MHz
CLK81: 166.6M
smccc: 0001d381
eMMC boot @ 0
sw8 s
DDR driver_vesion: LPDDR4_PHY_V_0_1_18 build time: Aug 28 2019 15:22:01
board id: 8
Load FIP HDR from eMMC, src: 0x00010200, des: 0xfffd0000, size: 0x00004000, part: 0
fw parse done
Load ddrfw from eMMC, src: 0x00060200, des: 0xfffd0000, size: 0x0000c000, part: 0
Load ddrfw from eMMC, src: 0x00038200, des: 0xfffd0000, size: 0x00004000, part: 0
PIEI prepare done
fastboot data load
00000000
emmc switch 1 ok
00000000
emmc switch 2 ok
fastboot data verify
verify result: 265
Cfg max: 4, cur: 1. Board id: 255. Force loop cfg
LPDDR4 probe
ddr clk to 1608MHz
Load ddrfw from eMMC, src: 0x0003c200, des: 0xfffd0000, size: 0x0000c000, part: 0
00000000
emmc switch 0 ok

dmc_version 0001
Check phy result
INFO : End of CA training
INFO : End of initialization
INFO : Training has run successfully!
Check phy result
INFO : End of initialization
INFO : End of read enable training
INFO : End of fine write leveling
INFO : End of Write leveling coarse delay
INFO : Training has run successfully!
Check phy result
INFO : End of initialization
INFO : End of read dq deskew training
INFO : End of MPR read delay center optimization
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 training succeed
Load ddrfw from eMMC, src: 0x00048200, des: 0xfffd0000, size: 0x0000c000, part: 0
Check phy result
INFO : End of initialization
INFO : End of 2D read delay Voltage center optimization
INFO : End of 2D read delay Voltage center optimization
INFO : End of 2D write delay Voltage center optimization
INFO : End of 2D write delay Voltage center optimization
INFO : Training has run successfully!

channel==0
RxClkDly_Margin_A0==87 ps 9
TxDqDly_Margin_A0==106 ps 11
RxClkDly_Margin_A1==97 ps 10
TxDqDly_Margin_A1==106 ps 11
TrainedVREFDQ_A0==27
TrainedVREFDQ_A1==27
VrefDac_Margin_A0==27
DeviceVref_Margin_A0==26
VrefDac_Margin_A1==26
DeviceVref_Margin_A1==26

channel==1
RxClkDly_Margin_A0==87 ps 9
TxDqDly_Margin_A0==106 ps 11
RxClkDly_Margin_A1==97 ps 10
TxDqDly_Margin_A1==97 ps 10
TrainedVREFDQ_A0==24
TrainedVREFDQ_A1==25
VrefDac_Margin_A0==26
DeviceVref_Margin_A0==24
VrefDac_Margin_A1==27
DeviceVref_Margin_A1==24

dwc_ddrphy_apb_wr((0<<20)|(2<<16)|(0<<12)|(0xb0):0004

soc_vref_reg_value 0x 00000027 00000026 00000027 00000025 00000026 00000025 00000025 00000025 00000027 00000023 00000026 00000024 00000024 00000026 00000025 00000024 00000027 00000026 00000028 00000026 00000026 00000028 00000027 00000024 00000025 00000027 00000025 00000027 00000026 00000024 00000025 00000026 dram_vref_reg_value 0x 00000013
2D training succeed
aml_ddr_fw_vesion: LPDDR4_PHY_V_0_1_18 build time: Aug 28 2019 13:54:19
auto size-- 65535DDR cs0 size: 2048MB
DDR cs1 size: 2048MB
DMC_DDR_CTRL: 00e00024DDR size: 3928MB
cs0 DataBus test pass
cs1 DataBus test pass
cs0 AddrBus test pass
cs1 AddrBus test pass

100bdlr_step_size ps== 414
result report
boot times 0Enable ddr reg access
00000000
emmc switch 3 ok
Authentication key not yet programmed
get rpmb counter error 0x00000007
00000000
emmc switch 0 ok
Load FIP HDR from eMMC, src: 0x00010200, des: 0x01700000, size: 0x00004000, part: 0
Load BL3X from eMMC, src: 0x00078200, des: 0x01768000, size: 0x000d0000, part: 0
0.0;M3 CHK:0;cm4_sp_mode 0
MVN_1=0x00000000
MVN_2=0x00000000
[Image: g12b_v1.1.3390-6ac5299 2019-09-26 14:10:05 luan.yuan@droid15-sz]
OPS=0x10
ring efuse init
chipver efuse init
29 0b 10 00 01 0f 13 00 00 02 37 30 4e 42 4e 50
[0.890210 Inits done]
secure task start!
high task start!
low task start!
run into bl31
NOTICE: BL31: v1.3(release):4fc40b1
NOTICE: BL31: Built : 15:58:17, May 22 2019
NOTICE: BL31: G12A normal boot!
NOTICE: BL31: BL33 decompress pass
ERROR: Error initializing runtime service opteed_fast

U-Boot 2015.01 (Apr 29 2022 - 21:51:49)

DRAM: 3.8 GiB
Relocation Offset is: d6e42000
spi_post_bind(spifc): req_seq = 0
register usb cfg[0][1] = 00000000d7f39210
aml_i2c_init_port init regs for 0
MCU version: 0x00 0x02
MCU version is to low! Doesn’t support froce boot from SD card.
MMC: aml_priv->desc_buf = 0x00000000d3e32a70
aml_priv->desc_buf = 0x00000000d3e34db0
SDIO Port B: 0, SDIO Port C: 1
co-phase 0x3, tx-dly 0, clock 400000
co-phase 0x3, tx-dly 0, clock 400000
co-phase 0x3, tx-dly 0, clock 400000
emmc/sd response timeout, cmd8, status=0x3ff2800
emmc/sd response timeout, cmd55, status=0x3ff2800
co-phase 0x3, tx-dly 0, clock 400000
co-phase 0x1, tx-dly 0, clock 40000000
aml_sd_retry_refix[983]:delay = 0x0,gadjust =0x2000
[mmc_startup] mmc refix success
init_part() 282: PART_TYPE_DOS
[mmc_init] mmc init success
start dts,buffer=00000000d3e37620,dt_addr=00000000d3e37620
check_valid_dts: FDT_ERR_BADMAGIC
get_partition_from_dts() 91: ret -9
get_partition_from_dts() 94: ret -9
get_ptbl_from_dtb()-272: get partition table from dts faild
mmc_device_init()-1254: get partition table from dtb failed
get_ptbl_rsv()-494: magic faild MPT,
mmc_device_init()-1281: dtb&rsv are not exist, no LPT source
get partition info failed !!
Using default environment

In: serial
Out: serial
Err: serial
reboot_mode=cold_boot
[store]To run cmd[emmc dtb_read 0x1000000 0x40000]
_verify_dtb_checksum()-3477: calc a7978dce, store 5011944
update_dtb_info()-3585: cpy 1 is not valid
_verify_dtb_checksum()-3477: calc 96e51623, store 60f81f
update_dtb_info()-3585: cpy 0 is not valid
dtb_read()-3694: total valid 0
emmc - EMMC sub system

Usage:
emmc dtb_read addr size
emmc dtb_write addr size
emmc erase dtb
emmc erase key
emmc fastboot_read addr size
emmc fastboot_write addr size

aml_i2c_init_port init regs for 0
fusb302_init: Device ID: 0x91
CC connected in 1 as UFP
fusb302 detect chip.port_num = 0
[KM]Error:f[keymanage_dts_parse]L307:not a fdt at 0x0000000001000000
vpu: error: vpu: check dts: FDT_ERR_BADMAGIC, load default parameters
vpu: clk_level = 7
vpu: vpu_power_on
vpu: set clk: 666667000Hz, readback: 666666667Hz(0x100)
vpu: vpu_module_init_config
vpp: vpp_init
vpp: vpp osd2 matrix rgb2yuv…
cvbs: cpuid:0x29
LCD_RESET PIN: 0
lcd: error: check dts: FDT_ERR_BADMAGIC, load default lcd parameters
lcd: detect mode: tablet, key_valid: 0
lcd: load config from bsp
lcd: use panel_type=lcd_0
lcd: bl: name: lcd_0, method: 1
lcd: bl: aml_bl_power_ctrl: 0
Net: [KM]Error:f[keymanage_dts_get_key_device]L100:/unify not parsed yet!
[KM]Error:f[_get_km_ops_by_name]L248:key eth_exphy_para not know device 4
[KM]Error:f[key_unify_read]L312:key[eth_exphy_para] no cfg in dts
dwmac.ff3f0000 Waiting for PHY auto negotiation to complete… done
The Best Window is index 40
[KM]Error:f[keymanage_dts_get_key_device]L100:/unify not parsed yet!
[KM]Error:f[_get_km_ops_by_name]L248:key eth_exphy_para not know device 4
[KM]Error:f[key_unify_write]L279:key[eth_exphy_para] no cfg in dts
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
No FDT memory address configured. Please configure
the FDT address via "fdt addr " command.
Aborting!
dwmac.ff3f0000[KM]Error:f[keymanage_dts_parse]L307:not a fdt at 0x0000000001000000

upgrade_step=0
reboot_mode:::: cold_boot
[KM]Error:f[keymanage_dts_parse]L307:not a fdt at 0x0000000001000000
edid preferred_mode is [0]
hdr mode is 0
dv mode is ver:0 len: 0
hdr10+ mode is 0
HDMI cable is NOT connected
hpd_state=0
[OSD]check dts: FDT_ERR_BADMAGIC, load default fb_addr parameters
[OSD]set initrd_high: 0x3d800000
[OSD]fb_addr for logo: 0x3d800000
[OSD]check dts: FDT_ERR_BADMAGIC, load default fb_addr parameters
[OSD]fb_addr for logo: 0x3d800000
[OSD]VPP_OFIFO_SIZE:0xfff01fff
[CANVAS]canvas init
[CANVAS]addr=0x3d800000 width=5760, height=2160
card in
co-phase 0x2, tx-dly 0, clock 400000
co-phase 0x2, tx-dly 0, clock 400000
co-phase 0x2, tx-dly 0, clock 400000
co-phase 0x2, tx-dly 0, clock 400000
co-phase 0x2, tx-dly 0, clock 40000000
aml_sd_retry_refix[983]:delay = 0x0,gadjust =0xc2000
[mmc_startup] mmc refix success
init_part() 282: PART_TYPE_DOS
[mmc_init] mmc init success
Failed to mount ext2 filesystem…
** Unrecognized filesystem type **
1080138 bytes read in 44 ms (23.4 MiB/s)
[OSD]osd_hw.free_dst_data: 0,767,0,1023
[OSD]osd1_update_disp_freescale_enable
cvbs: outputmode[panel] is invalid
hdmitx: outputmode[panel] is invalid
vpp: vpp_matrix_update: 0
vpp: g12a/b post2(bit12) matrix: YUV limit → RGB …
lcd: enable: lcd_0, mipi, 768x1024@60.0Hz
lcd: tablet driver init(ver 20180718): mipi
lcd: lcd_pll_wait_lock: pll_lock=1, wait_loop=1
vpp: vpp_init_lcd_gamma_table
lcd: pixel_clk = 64.843MHz, bit_rate = 518.744MHz, lanebyteclk = 64.843MHz
lcd: Waiting STOP STATE LANE
lcd: dsi init on
lcd: bl: set level: 100, last level: 0
lcd: bl: aml_bl_power_ctrl: 1
lcd: clear mute
vpp: Rx hdr_info.hdr_sup_eotf_smpte_st_2084 = 0
[KM]Error:f[keymanage_dts_parse]L307:not a fdt at 0x0000000001000000
gpio: pin GPIOAO_7 (gpio 7) value is 1
saradc: 0x289, hw_ver: 0x32 (VIM3.V12)
Product checking: pass! Hardware version: VIM3.V12
normal power on
boot wol: disable
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
port mode is usb3.0
No FDT memory address configured. Please configure
the FDT address via "fdt addr " command.
Aborting!
No FDT memory address configured. Please configure
the FDT address via "fdt addr " command.
Aborting!
Hit Enter or space or Ctrl+C key to stop autoboot – : 0
pll tsensor avg: 0x20a0, u_efuse: 0x800b
temp1: 43
ddr tsensor avg: 0x20cc, u_efuse: 0xb
temp2: 45
device cool done
cfgload: start …
cfgload: reading /boot.ini from mmc 0:1 …
reading /boot.ini
9502 bytes read in 4 ms (2.3 MiB/s)
cfgload: applying boot.ini…
[#] Script a:d3e545c0 l:9472 c:0 s:0 - run
saradc: 0x289, hw_ver: 0x32 (VIM3.V12)
** KRESCUE START hwver: VIM3.V12 hostname: KVIM3 maxcpus: 6 fdt: source: : target: **
[i] scan rescue device usb 0
** Bad device usb 0 **
[i] scan rescue device usb 1
** Bad device usb 1 **
[i] scan rescue device usb 2
** Bad device usb 2 **
[i] scan rescue device usb 1:5
** Bad device usb 1 **
[i] scan rescue device mmc 0
reading /rescue/80_user_env.txt
1898 bytes read in 3 ms (617.2 KiB/s)
[i] rescue loading via fatload mmc 0 …
[w] detect by maxcpus -6-
KRESCUE LOAD by fatload mmc 0 FROM // + post: // VIM3.V12 // VIM3.V12
load env
fatload mmc 0 0x32000000 /rescue/80_user_env.txt
reading /rescue/80_user_env.txt
1898 bytes read in 3 ms (617.2 KiB/s)
env import -t 0x32000000 76a
load logo
fatload mmc 0 0x30000000 /splash.bmp
reading /splash.bmp
7660 bytes read in 3 ms (2.4 MiB/s)
There is no valid bmp file at the given address
BMP KO
fatload mmc 0 0x30000000 /rescue/splash.bmp.2.gz
reading /rescue/splash.bmp.2.gz
** Unable to read file /rescue/splash.bmp.2.gz **
unzip 0x30000000 0x7f800000
Uncompressed size: 518454 = 0x7E936
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
KRESCUE_TIME: 1641796810
KRESCUE_DATE: Mon Jan 10 06:40:10 2022
KRESCUE_VER : 220110_266
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
addrs: UIMAGE_ADDR :: UINITRD_ADDR :: DTB_ADDR
addrs: 0x6000000 :: 0x8000000 :: 0x1000000
setenv kernel_addr_r ; setenv ramdisk_addr_r ; setenv fdt_addr_r ;
:::::::::::::::
load dtb
fatload mmc 0 0x1000000 /rescue/fdt.kresq/amlogic/meson-g12b-a311d-khadas-vim3.dtb
reading /rescue/fdt.kresq/amlogic/meson-g12b-a311d-khadas-vim3.dtb
76986 bytes read in 12 ms (6.1 MiB/s)
libfdt fdt_path_offset() returned FDT_ERR_BADPATH
port mode is usb3.0
** port mode is 0 **
load packed initrd
fatload mmc 0 0x8000000 /rescue/uInitrd
reading /rescue/uInitrd
9155280 bytes read in 484 ms (18 MiB/s)
libfdt fdt_path_offset() returned FDT_ERR_NOTFOUND
[i] bootargs: rw panic=10 net.ifnames=0 loglevel=4 fbcon=font:TER16x32 video=HDMI-A-1:1920x1080@60e config_firewall=private kresq_type=sd config_test=sd booted= hwver=VIM3.V12 no_console_suspend consoleblank=0 dtb=/rescue/fdt.kresq/amlogic/meson-g12b-a311d-khadas-vim3.dtb
[i] bootcmd: run storeboot
load packed kernel
bootm 0x6000000 0x8000000 0x1000000
fatload mmc 0 0x6000000 /rescue/uImage
reading /rescue/uImage
6547474 bytes read in 348 ms (17.9 MiB/s)
CONFIG_AVB2:
avb2: 0
ee_gate_off …
avb2: 0

Booting kernel from Legacy Image at 06000000 …

Image Name: kernel
Image Type: AArch64 Linux Kernel Image (gzip compressed)
Data Size: 6547410 Bytes = 6.2 MiB
Load Address: 0d080000
Entry Point: 0d080000
Verifying Checksum … OK

Loading init Ramdisk from Legacy Image at 08000000 …

Image Name: uInitrd
Image Type: AArch64 Linux RAMDisk Image (uncompressed)
Data Size: 9155216 Bytes = 8.7 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum … OK
load dtb from 0x1000000 …

Flattened Device Tree blob at 01000000

Booting using the fdt blob at 0x1000000
Uncompressing Kernel Image … OK
kernel loaded at 0x0d080000, end = 0x0e09ba00
libfdt fdt_path_offset() returned FDT_ERR_NOTFOUND
[rsvmem] fdt get prop fail.
Loading Ramdisk to 3cf44000, end 3d7ff290 … OK
Loading Device Tree to 000000001ffea000, end 000000001ffffcb9 … OK

Starting kernel …

uboot time: 8150891 us
[i] INITRD INIT :: UPTIME: 1.72 8.50 Linux (none) 5.14.0-rc5 #1 SMP PREEMPT Wed Dec 15 10:08:36 CST 2021 aarch64 GNU/Linux
[i] init display
failed to find a module named meson_ee_pwrc
failed to find a module named meson_dw_hdmi
#MANUAL
link/ether 00:15:18:01:81:31 brd ff:ff:ff:ff:ff:ff

BusyBox v1.30.1 () built-in shell (ash)

Krescue

 __ _____  Khadas ## hyphop ## 
/ //_/ _ \___ ___ ______ _____ 

/ ,< / , / -|-</ __/ // / -)
//|//||_//_/_,/__/

extreme tiny and fast rescue system

BUILD: 220110_266 from: Mon Jan 10 06:40:10 2022

[i] POST_CONFIG: kresq_type=sd + booted= + || start: /dev/mmcblk0
[i] Device: VIM3 Amlogic:G12B ver:0x0002 6 cores 4G ram 29.1 G eMMC
[w] root password undefined
[i] just type > krescue < to start gui
root@Krescue:/#

Now I’m at work. Than before I connected the hdmi cable to an adapter from hdmi to vga on work monitor (no hdmi port). This is the result:

G12B:BL:6e7c85:2a3b91;FEAT:E0F83180:402000;POC:F;RCY:0;EMMC:0;READ:0;0.
bl2_stage_init 0x01
bl2_stage_init 0x81
hw id: 0x0000 - pwm id 0x01
bl2_stage_init 0xc1
bl2_stage_init 0x02

L0:00000000
L1:20000703
L2:00008067
L3:14000000
B2:00402000
B1:e0f83180

TE: 179215

BL2 Built : 15:22:05, Aug 28 2019. g12b g1bf2b53 - luan.yuan@droid15-sz

Board ID = 8
Set A53 clk to 24M
Set A73 clk to 24M
Set clk81 to 24M
A53 clk: 1200 MHz
A73 clk: 1200 MHz
CLK81: 166.6M
smccc: 000303ec
eMMC boot @ 0
sw8 s
DDR driver_vesion: LPDDR4_PHY_V_0_1_18 build time: Aug 28 2019 15:22:01
board id: 8
Load FIP HDR from eMMC, src: 0x00010200, des: 0xfffd0000, size: 0x00004000, part: 0
fw parse done
Load ddrfw from eMMC, src: 0x00060200, des: 0xfffd0000, size: 0x0000c000, part: 0
Load ddrfw from eMMC, src: 0x00038200, des: 0xfffd0000, size: 0x00004000, part: 0
PIEI prepare done
fastboot data load
00000000
emmc switch 1 ok
00000000
emmc switch 2 ok
fastboot data verify
verify result: 265
Cfg max: 4, cur: 1. Board id: 255. Force loop cfg
LPDDR4 probe
ddr clk to 1608MHz
Load ddrfw from eMMC, src: 0x0003c200, des: 0xfffd0000, size: 0x0000c000, part: 0
00000000
emmc switch 0 ok

dmc_version 0001
Check phy result
INFO : End of CA training
INFO : End of initialization
INFO : Training has run successfully!
Check phy result
INFO : End of initialization
INFO : End of read enable training
INFO : End of fine write leveling
INFO : End of Write leveling coarse delay
INFO : Training has run successfully!
Check phy result
INFO : End of initialization
INFO : End of read dq deskew training
INFO : End of MPR read delay center optimization
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 training succeed
Load ddrfw from eMMC, src: 0x00048200, des: 0xfffd0000, size: 0x0000c000, part: 0
Check phy result
INFO : End of initialization
INFO : End of 2D read delay Voltage center optimization
INFO : End of 2D read delay Voltage center optimization
INFO : End of 2D write delay Voltage center optimization
INFO : End of 2D write delay Voltage center optimization
INFO : Training has run successfully!

channel==0
RxClkDly_Margin_A0==77 ps 8
TxDqDly_Margin_A0==106 ps 11
RxClkDly_Margin_A1==97 ps 10
TxDqDly_Margin_A1==106 ps 11
TrainedVREFDQ_A0==27
TrainedVREFDQ_A1==26
VrefDac_Margin_A0==25
DeviceVref_Margin_A0==26
VrefDac_Margin_A1==26
DeviceVref_Margin_A1==26

channel==1
RxClkDly_Margin_A0==77 ps 8
TxDqDly_Margin_A0==106 ps 11
RxClkDly_Margin_A1==77 ps 8
TxDqDly_Margin_A1==106 ps 11
TrainedVREFDQ_A0==23
TrainedVREFDQ_A1==24
VrefDac_Margin_A0==26
DeviceVref_Margin_A0==23
VrefDac_Margin_A1==28
DeviceVref_Margin_A1==24

dwc_ddrphy_apb_wr((0<<20)|(2<<16)|(0<<12)|(0xb0):0004

soc_vref_reg_value 0x 00000026 00000026 00000027 00000025 00000026 00000025 00000024 00000025 00000026 00000022 00000025 00000024 00000023 00000026 00000025 00000024 00000027 00000026 00000028 00000025 00000025 00000027 00000026 00000024 00000025 00000026 00000024 00000027 00000026 00000024 00000024 00000026 dram_vref_reg_value 0x 00000012
2D training succeed
aml_ddr_fw_vesion: LPDDR4_PHY_V_0_1_18 build time: Aug 28 2019 13:54:19
auto size-- 65535DDR cs0 size: 2048MB
DDR cs1 size: 2048MB
DMC_DDR_CTRL: 00e00024DDR size: 3928MB
cs0 DataBus test pass
cs1 DataBus test pass
cs0 AddrBus test pass
cs1 AddrBus test pass

100bdlr_step_size ps== 420
result report
boot times 0Enable ddr reg access
00000000
emmc switch 3 ok
Authentication key not yet programmed
get rpmb counter error 0x00000007
00000000
emmc switch 0 ok
Load FIP HDR from eMMC, src: 0x00010200, des: 0x01700000, size: 0x00004000, part: 0
Load BL3X from eMMC, src: 0x00078200, des: 0x01768000, size: 0x000d0000, part: 0
0.0;M3 CHK:0;cm4_sp_mode 0
MVN_1=0x00000000
MVN_2=0x00000000
[Image: g12b_v1.1.3390-6ac5299 2019-09-26 14:10:05 luan.yuan@droid15-sz]
OPS=0x10
ring efuse init
chipver efuse init
29 0b 10 00 01 0f 13 00 00 02 37 30 4e 42 4e 50
[0.018961 Inits done]
secure task start!
high task start!
low task start!
run into bl31
NOTICE: BL31: v1.3(release):4fc40b1
NOTICE: BL31: Built : 15:58:17, May 22 2019
NOTICE: BL31: G12A normal boot!
NOTICE: BL31: BL33 decompress pass
ERROR: Error initializing runtime service opteed_fast

U-Boot 2015.01 (Apr 29 2022 - 21:51:49)

DRAM: 3.8 GiB
Relocation Offset is: d6e42000
spi_post_bind(spifc): req_seq = 0
register usb cfg[0][1] = 00000000d7f39210
aml_i2c_init_port init regs for 0
MCU version: 0x00 0x02
MCU version is to low! Doesn’t support froce boot from SD card.
MMC: aml_priv->desc_buf = 0x00000000d3e32a70
aml_priv->desc_buf = 0x00000000d3e34db0
SDIO Port B: 0, SDIO Port C: 1
co-phase 0x3, tx-dly 0, clock 400000
co-phase 0x3, tx-dly 0, clock 400000
co-phase 0x3, tx-dly 0, clock 400000
emmc/sd response timeout, cmd8, status=0x3ff2800
emmc/sd response timeout, cmd55, status=0x3ff2800
co-phase 0x3, tx-dly 0, clock 400000
co-phase 0x1, tx-dly 0, clock 40000000
aml_sd_retry_refix[983]:delay = 0x0,gadjust =0x2000
[mmc_startup] mmc refix success
init_part() 282: PART_TYPE_DOS
[mmc_init] mmc init success
start dts,buffer=00000000d3e37620,dt_addr=00000000d3e37620
check_valid_dts: FDT_ERR_BADMAGIC
get_partition_from_dts() 91: ret -9
get_partition_from_dts() 94: ret -9
get_ptbl_from_dtb()-272: get partition table from dts faild
mmc_device_init()-1254: get partition table from dtb failed
get_ptbl_rsv()-494: magic faild MPT,
mmc_device_init()-1281: dtb&rsv are not exist, no LPT source
get partition info failed !!
Using default environment

In: serial
Out: serial
Err: serial
reboot_mode=cold_boot
[store]To run cmd[emmc dtb_read 0x1000000 0x40000]
_verify_dtb_checksum()-3477: calc a7978dce, store 5011944
update_dtb_info()-3585: cpy 1 is not valid
_verify_dtb_checksum()-3477: calc 96e51623, store 60f81f
update_dtb_info()-3585: cpy 0 is not valid
dtb_read()-3694: total valid 0
emmc - EMMC sub system

Usage:
emmc dtb_read addr size
emmc dtb_write addr size
emmc erase dtb
emmc erase key
emmc fastboot_read addr size
emmc fastboot_write addr size

aml_i2c_init_port init regs for 0
fusb302_init: Device ID: 0x91
CC connected in 1 as UFP
charge ic max_vol = 12000mv max_cur = 6000ma
chip->pos_power = 3, chip->pd_output_vol=12000 chip->pd_output_cur=2000
fusb302 detect chip.port_num = 0
[KM]Error:f[keymanage_dts_parse]L307:not a fdt at 0x0000000001000000
vpu: error: vpu: check dts: FDT_ERR_BADMAGIC, load default parameters
vpu: clk_level = 7
vpu: vpu_power_on
vpu: set clk: 666667000Hz, readback: 666666667Hz(0x100)
vpu: vpu_module_init_config
vpp: vpp_init
vpp: vpp osd2 matrix rgb2yuv…
cvbs: cpuid:0x29
LCD_RESET PIN: 0
lcd: error: check dts: FDT_ERR_BADMAGIC, load default lcd parameters
lcd: detect mode: tablet, key_valid: 0
lcd: load config from bsp
lcd: use panel_type=lcd_0
lcd: bl: name: lcd_0, method: 1
lcd: bl: aml_bl_power_ctrl: 0
Net: [KM]Error:f[keymanage_dts_get_key_device]L100:/unify not parsed yet!
[KM]Error:f[_get_km_ops_by_name]L248:key eth_exphy_para not know device 4
[KM]Error:f[key_unify_read]L312:key[eth_exphy_para] no cfg in dts
dwmac.ff3f0000 Waiting for PHY auto negotiation to complete… done
The Best Window is index 40
[KM]Error:f[keymanage_dts_get_key_device]L100:/unify not parsed yet!
[KM]Error:f[_get_km_ops_by_name]L248:key eth_exphy_para not know device 4
[KM]Error:f[key_unify_write]L279:key[eth_exphy_para] no cfg in dts
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
No FDT memory address configured. Please configure
the FDT address via "fdt addr " command.
Aborting!
dwmac.ff3f0000[KM]Error:f[keymanage_dts_parse]L307:not a fdt at 0x0000000001000000

upgrade_step=0
reboot_mode:::: cold_boot
[KM]Error:f[keymanage_dts_parse]L307:not a fdt at 0x0000000001000000
edid preferred_mode is 480p60hz[3]
hdr mode is 0
dv mode is ver:0 len: 0
hdr10+ mode is 0
edid extension block number : 2
Dump EDID Rawdata
00ffffffffffff0022640000000000001917010380301b78ea1160a854488725
1a5054bfef80d1c0b300a9409500904081808140714f1a3680a070381f403020
2500dd0c1100001a000000ff0031323334353637383930313233000000fd0038
4b1e5312000a202020202020000000fc0048503232374443420a2020202001cc
02031b61230907078301000067030c002000802d43908402e2000f8c0ad08a20
e02d10103e9600a05a0000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000029
Manufacturer: HSD Model 0 Serial Number 0
EDID version: 1.3
Established timings supported:
720x400@70Hz
640x480@60Hz
640x480@67Hz
640x480@72Hz
640x480@75Hz
800x600@56Hz
800x600@60Hz
800x600@72Hz
800x600@75Hz
832x624@75Hz
1024x768@60Hz
1024x768@70Hz
1024x768@75Hz
1280x1024@75Hz
1152x870@75Hz
Standard timings supported:
1920x1080@60Hz
1680x1050@60Hz
1600x1200@60Hz
1440x900@60Hz
1400x1050@60Hz
1280x1024@60Hz
1280x960@60Hz
1152x864@75Hz
Detailed mode (1) : Clock 138 MHz, 477 mm x 268 mm
1920 1968 2000 2080 hborder 0
1080 1082 1087 1111 vborder 0
+hsync -vsync
Serial number: 1234567890123
Monitor ranges (GTF): 56-75Hz V, 30-83kHz H, max dotclock 180MHz
Monitor name: HP227DCB
Has 1 extension blocks
Checksum: 0xcc (valid)

CEA extension block
Extension version: 3
23 bytes of CEA data
Linear PCM, max channels 2
Vendor-specific data block, OUI 000c03 (HDMI)
Supports_AI
Maximum TMDS clock: 225MHz
VIC 16 1920x1080@60Hz (native)
VIC 4 1280x720@60Hz (native)
VIC 2 720x480@60Hz
YCbCr quantization: (0)
RGB quantization: (0)
PT scan behaviour: (0)
IT scan behaviour: (3)
CE scan behaviour: (3)
Detailed mode (1) : Clock 27 MHz, 160 mm x 90 mm
720 736 798 858 hborder 0
480 489 495 525 vborder 0
-hsync -vsync analog composite
Checksum: 0x29 (valid)

khadas_support_mode 1080p60hz
bestmode is 1080p60hz, IEEEOUI 0x000c03
HDMI Mode
hpd_state=1
[OSD]check dts: FDT_ERR_BADMAGIC, load default fb_addr parameters
[OSD]set initrd_high: 0x3d800000
[OSD]fb_addr for logo: 0x3d800000
[OSD]check dts: FDT_ERR_BADMAGIC, load default fb_addr parameters
[OSD]fb_addr for logo: 0x3d800000
[OSD]VPP_OFIFO_SIZE:0xfff01fff
[CANVAS]canvas init
[CANVAS]addr=0x3d800000 width=5760, height=2160
card in
co-phase 0x2, tx-dly 0, clock 400000
co-phase 0x2, tx-dly 0, clock 400000
co-phase 0x2, tx-dly 0, clock 400000
co-phase 0x2, tx-dly 0, clock 400000
co-phase 0x2, tx-dly 0, clock 40000000
aml_sd_retry_refix[983]:delay = 0x0,gadjust =0xc2000
[mmc_startup] mmc refix success
init_part() 282: PART_TYPE_DOS
[mmc_init] mmc init success
Failed to mount ext2 filesystem…
** Unrecognized filesystem type **
1080138 bytes read in 45 ms (22.9 MiB/s)
[OSD]osd_hw.free_dst_data: 0,1919,0,1079
[OSD]osd1_update_disp_freescale_enable
cvbs: outputmode[1080p60hz] is invalid
vpp: vpp_matrix_update: 2
set hdmitx VIC = 16
config HPLL = 5940000 frac_rate = 1
HPLL: 0x3b3a04f7
HPLL: 0x1b3a04f7
HPLLv1: 0xdb3a04f7
config HPLL done
j = 6 vid_clk_div = 1
hdmitx: set enc for VIC: 16
hdmitx phy setting done
enc_vpu_bridge_reset[1312]
rx version is 1.4 or below div=10
vpp: Rx hdr_info.hdr_sup_eotf_smpte_st_2084 = 0
[KM]Error:f[keymanage_dts_parse]L307:not a fdt at 0x0000000001000000
gpio: pin GPIOAO_7 (gpio 7) value is 1
saradc: 0x289, hw_ver: 0x32 (VIM3.V12)
Product checking: pass! Hardware version: VIM3.V12
normal power on
boot wol: disable
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
port mode is usb3.0
No FDT memory address configured. Please configure
the FDT address via "fdt addr " command.
Aborting!
No FDT memory address configured. Please configure
the FDT address via "fdt addr " command.
Aborting!
Hit Enter or space or Ctrl+C key to stop autoboot – : 0
pll tsensor avg: 0x1f98, u_efuse: 0x800b
temp1: 35
ddr tsensor avg: 0x1fbf, u_efuse: 0xb
temp2: 37
device cool done
cfgload: start …
cfgload: reading /boot.ini from mmc 0:1 …
reading /boot.ini
9502 bytes read in 3 ms (3 MiB/s)
cfgload: applying boot.ini…
[#] Script a:d3e54640 l:9472 c:0 s:0 - run
saradc: 0x289, hw_ver: 0x32 (VIM3.V12)
** KRESCUE START hwver: VIM3.V12 hostname: KVIM3 maxcpus: 6 fdt: source: : target: **
[i] scan rescue device usb 0
** Bad device usb 0 **
[i] scan rescue device usb 1
** Bad device usb 1 **
[i] scan rescue device usb 2
** Bad device usb 2 **
[i] scan rescue device usb 1:5
** Bad device usb 1 **
[i] scan rescue device mmc 0
reading /rescue/80_user_env.txt
1898 bytes read in 4 ms (462.9 KiB/s)
[i] rescue loading via fatload mmc 0 …
[w] detect by maxcpus -6-
KRESCUE LOAD by fatload mmc 0 FROM // + post: // VIM3.V12 // VIM3.V12
load env
fatload mmc 0 0x32000000 /rescue/80_user_env.txt
reading /rescue/80_user_env.txt
1898 bytes read in 4 ms (462.9 KiB/s)
env import -t 0x32000000 76a
load logo
fatload mmc 0 0x30000000 /splash.bmp
reading /splash.bmp
7660 bytes read in 3 ms (2.4 MiB/s)
There is no valid bmp file at the given address
BMP KO
fatload mmc 0 0x30000000 /rescue/splash.bmp.2.gz
reading /rescue/splash.bmp.2.gz
** Unable to read file /rescue/splash.bmp.2.gz **
unzip 0x30000000 0x7f800000
Uncompressed size: 518454 = 0x7E936
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
KRESCUE_TIME: 1641796810
KRESCUE_DATE: Mon Jan 10 06:40:10 2022
KRESCUE_VER : 220110_266
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
addrs: UIMAGE_ADDR :: UINITRD_ADDR :: DTB_ADDR
addrs: 0x6000000 :: 0x8000000 :: 0x1000000
setenv kernel_addr_r ; setenv ramdisk_addr_r ; setenv fdt_addr_r ;
:::::::::::::::
load dtb
fatload mmc 0 0x1000000 /rescue/fdt.kresq/amlogic/meson-g12b-a311d-khadas-vim3.dtb
reading /rescue/fdt.kresq/amlogic/meson-g12b-a311d-khadas-vim3.dtb
76986 bytes read in 11 ms (6.7 MiB/s)
libfdt fdt_path_offset() returned FDT_ERR_BADPATH
port mode is usb3.0
** port mode is 0 **
load packed initrd
fatload mmc 0 0x8000000 /rescue/uInitrd
reading /rescue/uInitrd
9155280 bytes read in 485 ms (18 MiB/s)
libfdt fdt_path_offset() returned FDT_ERR_NOTFOUND
[i] bootargs: rw panic=10 net.ifnames=0 loglevel=4 fbcon=font:TER16x32 video=HDMI-A-1:1920x1080@60e config_firewall=private kresq_type=sd config_test=sd booted= hwver=VIM3.V12 no_console_suspend consoleblank=0 dtb=/rescue/fdt.kresq/amlogic/meson-g12b-a311d-khadas-vim3.dtb
[i] bootcmd: run storeboot
load packed kernel
bootm 0x6000000 0x8000000 0x1000000
fatload mmc 0 0x6000000 /rescue/uImage
reading /rescue/uImage
6547474 bytes read in 349 ms (17.9 MiB/s)
CONFIG_AVB2:
avb2: 0
ee_gate_off …
avb2: 0

Booting kernel from Legacy Image at 06000000 …

Image Name: kernel
Image Type: AArch64 Linux Kernel Image (gzip compressed)
Data Size: 6547410 Bytes = 6.2 MiB
Load Address: 0d080000
Entry Point: 0d080000
Verifying Checksum … OK

Loading init Ramdisk from Legacy Image at 08000000 …

Image Name: uInitrd
Image Type: AArch64 Linux RAMDisk Image (uncompressed)
Data Size: 9155216 Bytes = 8.7 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum … OK
load dtb from 0x1000000 …

Flattened Device Tree blob at 01000000

Booting using the fdt blob at 0x1000000
Uncompressing Kernel Image … OK
kernel loaded at 0x0d080000, end = 0x0e09ba00
libfdt fdt_path_offset() returned FDT_ERR_NOTFOUND
[rsvmem] fdt get prop fail.
Loading Ramdisk to 3cf44000, end 3d7ff290 … OK
Loading Device Tree to 000000001ffea000, end 000000001ffffcb9 … OK

Starting kernel …

uboot time: 8362152 us
[i] INITRD INIT :: UPTIME: 1.86 9.33 Linux (none) 5.14.0-rc5 #1 SMP PREEMPT Wed Dec 15 10:08:36 CST 2021 aarch64 GNU/Linux
[i] init display
failed to find a module named meson_ee_pwrc
failed to find a module named meson_dw_hdmi
#MANUAL
link/ether 00:15:18:01:81:31 brd ff:ff:ff:ff:ff:ff

BusyBox v1.30.1 () built-in shell (ash)

Krescue

 __ _____  Khadas ## hyphop ## 
/ //_/ _ \___ ___ ______ _____ 

/ ,< / , / -|-</ __/ // / -)
//|//||_//_/_,/__/

extreme tiny and fast rescue system

BUILD: 220110_266 from: Mon Jan 10 06:40:10 2022

[i] POST_CONFIG: kresq_type=sd + booted= + || start: /dev/mmcblk0
[i] Device: VIM3 Amlogic:G12B ver:0x0002 6 cores 4G ram 29.1 G eMMC
[w] root password undefined
[i] just type > krescue < to start gui
root@Krescue:/#

[i] INITRD INIT :: UPTIME: 1.86 9.33 Linux (none) 5.14.0-rc5 #1 SMP PREEMPT Wed Dec 15 10:08:36 CST 2021 aarch64 GNU/Linux

Again? Why after a full reset?

Server version you will only see a login prompt in the terminal.

Are you removing the SD card when rebooting, it seems that you are booting into krescue on SD card.

I tried but it continued to give data without stopping… Today I will try again. Thanks

I have the same issue. I remove the sd card and, after reboot, it doesn’t stop to write data

100bdlr_step_size ps== 425
result report
boot times 21Enable ddr reg access
00000000
emmc switch 3 ok
Authentication key not yet programmed
get rpmb counter error 0x00000007
00000000
emmc switch 0 ok
Load FIP HDR from eMMC, src: 0x00010200, des: 0x01700000, size: 0x00004000, part: 0
Load BL3X from eMMC, src: 0x00078200, des: 0x01768000, size: 0x000d0000, part: 0
0.0;M3 CHK:0;cm4_sp_mode 0
MVN_1=0x00000000
MVN_2=0x00000000
[Image: g12b_v1.1.3390-6ac5299 2019-09-26 14:10:05 luan.yuan@droid15-sz]
OPS=0x10
ring efuse init
chipver efuse init
29 0b 10 00 01 0f 13 00 00 02 37 30 4e 42 4e 50
[0.982267 Inits done]
secure task start!
high task start!
low task start!
run into bl31
NOTICE: BL31: v1.3(release):4fc40b1
NOTICE: BL31: Built : 15:58:17, May 22 2019
NOTICE: BL31: G12A normal boot!
NOTICE: BL31: BL33 decompress pass
ERROR: Error initializing runtime service opteed_fast

U-Boot 2015.01 (Apr 29 2022 - 21:51:49)

DRAM: 3.8 GiB
Relocation Offset is: d6e42000
spi_post_bind(spifc): req_seq = 0
register usb cfg[0][1] = 00000000d7f39210
aml_i2c_init_port init regs for 0
MCU version: 0x00 0x02
MCU version is to low! Doesn’t support froce boot from SD card.
MMC: aml_priv->desc_buf = 0x00000000d3e32a70
aml_priv->desc_buf = 0x00000000d3e34db0
SDIO Port B: 0, SDIO Port C: 1
co-phase 0x3, tx-dly 0, clock 400000
co-phase 0x3, tx-dly 0, clock 400000
co-phase 0x3, tx-dly 0, clock 400000
emmc/sd response timeout, cmd8, status=0x3ff2800
emmc/sd response timeout, cmd55, status=0x3ff2800
co-phase 0x3, tx-dly 0, clock 400000
co-phase 0x1, tx-dly 0, clock 40000000
aml_sd_retry_refix[983]:delay = 0x0,gadjust =0x2000
[mmc_startup] mmc refix success
init_part() 282: PART_TYPE_DOS
[mmc_init] mmc init success
start dts,buffer=00000000d3e37620,dt_addr=00000000d3e37620
check_valid_dts: FDT_ERR_BADMAGIC
get_partition_from_dts() 91: ret -9
get_partition_from_dts() 94: ret -9
get_ptbl_from_dtb()-272: get partition table from dts faild
mmc_device_init()-1254: get partition table from dtb failed
get_ptbl_rsv()-494: magic faild MPT,
mmc_device_init()-1281: dtb&rsv are not exist, no LPT source
get partition info failed !!
Using default environment

In: serial
Out: serial
Err: serial
reboot_mode=normal
[store]To run cmd[emmc dtb_read 0x1000000 0x40000]
_verify_dtb_checksum()-3477: calc a7978dce, store 5011944
update_dtb_info()-3585: cpy 1 is not valid
_verify_dtb_checksum()-3477: calc 96e51623, store 60f81f
update_dtb_info()-3585: cpy 0 is not valid
dtb_read()-3694: total valid 0
emmc - EMMC sub system

Usage:
emmc dtb_read addr size
emmc dtb_write addr size
emmc erase dtb
emmc erase key
emmc fastboot_read addr size
emmc fastboot_write addr size

aml_i2c_init_port init regs for 0
fusb302_init: Device ID: 0x91
CC connected in 1 as UFP
fusb302 detect chip.port_num = 0
[KM]Error:f[keymanage_dts_parse]L307:not a fdt at 0x0000000001000000
vpu: error: vpu: check dts: FDT_ERR_BADMAGIC, load default parameters
vpu: clk_level = 7
vpu: vpu_power_on
vpu: set clk: 666667000Hz, readback: 666666667Hz(0x100)
vpu: vpu_module_init_config
vpp: vpp_init
vpp: vpp osd2 matrix rgb2yuv…
cvbs: cpuid:0x29
LCD_RESET PIN: 0
lcd: error: check dts: FDT_ERR_BADMAGIC, load default lcd parameters
lcd: detect mode: tablet, key_valid: 0
lcd: load config from bsp
lcd: use panel_type=lcd_0
lcd: bl: name: lcd_0, method: 1
lcd: bl: aml_bl_power_ctrl: 0
Net: [KM]Error:f[keymanage_dts_get_key_device]L100:/unify not parsed yet!
[KM]Error:f[_get_km_ops_by_name]L248:key eth_exphy_para not know device 4
[KM]Error:f[key_unify_read]L312:key[eth_exphy_para] no cfg in dts
dwmac.ff3f0000 Waiting for PHY auto negotiation to complete… done
The Best Window is index 40
[KM]Error:f[keymanage_dts_get_key_device]L100:/unify not parsed yet!
[KM]Error:f[_get_km_ops_by_name]L248:key eth_exphy_para not know device 4
[KM]Error:f[key_unify_write]L279:key[eth_exphy_para] no cfg in dts
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
No FDT memory address configured. Please configure
the FDT address via "fdt addr " command.
Aborting!
dwmac.ff3f0000[KM]Error:f[keymanage_dts_parse]L307:not a fdt at 0x0000000001000000

upgrade_step=0
reboot_mode:::: normal
[KM]Error:f[keymanage_dts_parse]L307:not a fdt at 0x0000000001000000
edid preferred_mode is [0]
hdr mode is 0
dv mode is ver:0 len: 0
hdr10+ mode is 0
HDMI cable is NOT connected
hpd_state=0
[OSD]check dts: FDT_ERR_BADMAGIC, load default fb_addr parameters
[OSD]set initrd_high: 0x3d800000
[OSD]fb_addr for logo: 0x3d800000
[OSD]check dts: FDT_ERR_BADMAGIC, load default fb_addr parameters
[OSD]fb_addr for logo: 0x3d800000
[OSD]VPP_OFIFO_SIZE:0xfff01fff
[CANVAS]canvas init
[CANVAS]addr=0x3d800000 width=5760, height=2160
card out
** Bad device mmc 0 **
1080138 bytes read in 46 ms (22.4 MiB/s)
[OSD]osd_hw.free_dst_data: 0,767,0,1023
[OSD]osd1_update_disp_freescale_enable
cvbs: outputmode[panel] is invalid
hdmitx: outputmode[panel] is invalid
vpp: vpp_matrix_update: 0
vpp: g12a/b post2(bit12) matrix: YUV limit → RGB …
lcd: enable: lcd_0, mipi, 768x1024@60.0Hz
lcd: tablet driver init(ver 20180718): mipi
lcd: lcd_pll_wait_lock: pll_lock=1, wait_loop=1
vpp: vpp_init_lcd_gamma_table
lcd: pixel_clk = 64.843MHz, bit_rate = 518.744MHz, lanebyteclk = 64.843MHz
lcd: Waiting STOP STATE LANE
lcd: dsi init on
lcd: bl: set level: 100, last level: 0
lcd: bl: aml_bl_power_ctrl: 1
lcd: clear mute
vpp: Rx hdr_info.hdr_sup_eotf_smpte_st_2084 = 0
[KM]Error:f[keymanage_dts_parse]L307:not a fdt at 0x0000000001000000
gpio: pin GPIOAO_7 (gpio 7) value is 1
saradc: 0x289, hw_ver: 0x32 (VIM3.V12)
Product checking: pass! Hardware version: VIM3.V12
normal power on
boot wol: disable
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
port mode is usb3.0
No FDT memory address configured. Please configure
the FDT address via "fdt addr " command.
Aborting!
No FDT memory address configured. Please configure
the FDT address via "fdt addr " command.
Aborting!
Hit Enter or space or Ctrl+C key to stop autoboot – : 0
pll tsensor avg: 0x1fe9, u_efuse: 0x800b
temp1: 38
ddr tsensor avg: 0x200d, u_efuse: 0xb
temp2: 39
device cool done
cfgload: start …
cfgload: reading /boot.ini from mmc 0:1 …
card out
** Bad device mmc 0 **
cfgload: no /boot.ini or empty file on mmc 0:1
cfgload: reading /boot/boot.ini from mmc 0:1 …
card out
** Bad device mmc 0 **
cfgload: no /boot/boot.ini or empty file on mmc 0:1
cfgload: reading /boot.ini from mmc 1:1 …
reading /boot.ini
10145 bytes read in 3 ms (3.2 MiB/s)
cfgload: applying boot.ini…
[#] Script a:d3e548b0 l:10125 c:0 s:0 - run
Starting boot.ini…
saradc: 0x289, hw_ver: 0x32 (VIM3.V12)

mac address: c8:63:14:70:45:a9
uboot type: vendor
Scanning mmc 0:1…
card out
** Bad device mmc 0 **
Scanning mmc 0:5…
card out
** Bad device mmc 0 **
Scanning mmc 1:1…
reading uInitrd
emmckey_is_access_range_legal, keys 73760, keye 74271, start 66088, blkcnt 20948
Emmckey: Access range is illegal!
Error reading cluster
** Unable to read file uInitrd **
Scanning mmc 1:5…
** Invalid partition 5 **
Scanning mmc 2:1…
MMC Device 2 not found
** Bad device mmc 2 **
Scanning mmc 2:5…
MMC Device 2 not found
** Bad device mmc 2 **
Scanning usb 0:1…
** Bad device usb 0 **
Scanning usb 1:1…
** Bad device usb 1 **
Scanning usb 2:1…
** Bad device usb 2 **
Scanning usb 3:1…
** Bad device usb 3 **
card out
** Bad device mmc 0 **
reading s905_autoscript
10463 bytes read in 3 ms (3.3 MiB/s)

Executing script at 01020000

Starting S905 autoscript…
saradc: 0x289, hw_ver: 0x32 (VIM3.V12)

mac address: c8:63:14:70:45:a9
uboot type: vendor
Scanning mmc 0:1…
card out
** Bad device mmc 0 **
Scanning mmc 0:5…
card out
** Bad device mmc 0 **
Scanning mmc 1:1…
reading uInitrd
emmckey_is_access_range_legal, keys 73760, keye 74271, start 66088, blkcnt 20948
Emmckey: Access range is illegal!
Error reading cluster
** Unable to read file uInitrd **
Scanning mmc 1:5…
** Invalid partition 5 **
Scanning mmc 2:1…
MMC Device 2 not found
** Bad device mmc 2 **
Scanning mmc 2:5…
MMC Device 2 not found
** Bad device mmc 2 **
Scanning usb 0:1…
** Bad device usb 0 **
Scanning usb 1:1…
** Bad device usb 1 **
Scanning usb 2:1…
** Bad device usb 2 **
Scanning usb 3:1…
** Bad device usb 3 **
** Invalid partition 5 **
** Invalid partition 5 **
** Invalid partition 5 **
[rsvmem] get fdtaddr NULL!
rsvmem - reserve memory

Usage:
rsvmem check - check reserved memory
rsvmem dump - dump reserved memory

rsvmem check failed
Bad Linux ARM64 Image magic!
reading aml_autoscript
868 bytes read in 2 ms (423.8 KiB/s)

Executing script at 01080000

Saving Environment to aml-storage…
get partition info failed !!
reboot use default mode: normal
bl31 reboot reason: 0xd
bl31 reboot reason: 0x1
system cmd 1.
G12B:BL:6e7c85:2a3b91;FEAT:E0F83180:402000;POC:F;RCY:0;EMMC:0;READ:0;0.
bl2_stage_init 0x01
bl2_stage_init 0x81
hw id: 0x0000 - pwm id 0x01
bl2_stage_init 0xc1
bl2_stage_init 0x02

L0:00000000
L1:20000703
L2:00008067
L3:14000000
B2:00402000
B1:e0f83180

TE: 187586

BL2 Built : 15:22:05, Aug 28 2019. g12b g1bf2b53 - luan.yuan@droid15-sz

Board ID = 8
Set A53 clk to 24M
Set A73 clk to 24M
Set clk81 to 24M
A53 clk: 1200 MHz
A73 clk: 1200 MHz
CLK81: 166.6M
smccc: 000324a0
eMMC boot @ 0
sw8 s
DDR driver_vesion: LPDDR4_PHY_V_0_1_18 build time: Aug 28 2019 15:22:01
board id: 8
Load FIP HDR from eMMC, src: 0x00010200, des: 0xfffd0000, size: 0x00004000, part: 0
fw parse done
Load ddrfw from eMMC, src: 0x00060200, des: 0xfffd0000, size: 0x0000c000, part: 0
Load ddrfw from eMMC, src: 0x00038200, des: 0xfffd0000, size: 0x00004000, part: 0
PIEI prepare done
fastboot data load
00000000
emmc switch 1 ok
00000000
emmc switch 2 ok
fastboot data verify
verify result: 265
Cfg max: 4, cur: 1. Board id: 255. Force loop cfg
LPDDR4 probe
ddr clk to 1608MHz
Load ddrfw from eMMC, src: 0x0003c200, des: 0xfffd0000, size: 0x0000c000, part: 0
00000000
emmc switch 0 ok

dmc_version 0001
Check phy result
INFO : End of CA training
INFO : End of initialization
INFO : Training has run successfully!
Check phy result
INFO : End of initialization
INFO : End of read enable training
INFO : End of fine write leveling
INFO : End of Write leveling coarse delay
INFO : Training has run successfully!
Check phy result
INFO : End of initialization
INFO : End of read dq deskew training
INFO : End of MPR read delay center optimization
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 training succeed
Load ddrfw from eMMC, src: 0x00048200, des: 0xfffd0000, size: 0x0000c000, part: 0
Check phy result
INFO : End of initialization
INFO : End of 2D read delay Voltage center optimization
INFO : End of 2D read delay Voltage center optimization
INFO : End of 2D write delay Voltage center optimization
INFO : End of 2D write delay Voltage center optimization
INFO : Training has run successfully!

channel==0
RxClkDly_Margin_A0==77 ps 8
TxDqDly_Margin_A0==106 ps 11
RxClkDly_Margin_A1==87 ps 9
TxDqDly_Margin_A1==97 ps 10
TrainedVREFDQ_A0==27
TrainedVREFDQ_A1==26
VrefDac_Margin_A0==27
DeviceVref_Margin_A0==26
VrefDac_Margin_A1==28
DeviceVref_Margin_A1==26

channel==1
RxClkDly_Margin_A0==87 ps 9
TxDqDly_Margin_A0==106 ps 11
RxClkDly_Margin_A1==87 ps 9
TxDqDly_Margin_A1==97 ps 10
TrainedVREFDQ_A0==25
TrainedVREFDQ_A1==25
VrefDac_Margin_A0==25
DeviceVref_Margin_A0==24
VrefDac_Margin_A1==28
DeviceVref_Margin_A1==24

dwc_ddrphy_apb_wr((0<<20)|(2<<16)|(0<<12)|(0xb0):0004

soc_vref_reg_value 0x 00000027 00000027 00000027 00000025 00000026 00000026 00000025 00000025 00000027 00000024 00000026 00000025 00000024 00000027 00000026 00000025 00000028 00000027 00000029 00000026 00000026 00000028 00000027 00000025 00000026 00000027 00000025 00000028 00000027 00000025 00000025 00000027 dram_vref_reg_value 0x 00000013
2D training succeed
aml_ddr_fw_vesion: LPDDR4_PHY_V_0_1_18 build time: Aug 28 2019 13:54:19
auto size-- 65535DDR cs0 size: 2048MB
DDR cs1 size: 2048MB
DMC_DDR_CTRL: 00e00024DDR size: 3928MB
cs0 DataBus test pass
cs1 DataBus test pass
cs0 AddrBus test pass
cs1 AddrBus test pass

non-sec scramble use zero key
ddr scramble enabled

100bdlr_step_size ps== 425
result report
boot times 22Enable ddr reg access
00000000
emmc switch 3 ok
Authentication key not yet programmed
get rpmb counter error 0x00000007
00000000
emmc switch 0 ok
Load FIP HDR from eMMC, src: 0x00010200, des: 0x01700000, size: 0x00004000, part: 0
Load BL3X from eMMC, src: 0x00078200, des: 0x01768000, size: 0x000d0000, part: 0
0.0;M3 CHK:0;cm4_sp_mode 0
MVN_1=0x00000000
MVN_2=0x00000000
[Image: g12b_v1.1.3390-6ac5299 2019-09-26 14:10:05 luan.yuan@droid15-sz]
OPS=0x10
ring efuse init
chipver efuse init
29 0b 10 00 01 0f 13 00 00 02 37 30 4e 42 4e 50
[0.982392 Inits done]
secure task start!
high task start!
low task start!
run into bl31
NOTICE: BL31: v1.3(release):4fc40b1
NOTICE: BL31: Built : 15:58:17, May 22 2019
NOTICE: BL31: G12A normal boot!
NOTICE: BL31: BL33 decompress pass
ERROR: Error initializing runtime service opteed_fast

U-Boot 2015.01 (Apr 29 2022 - 21:51:49)

DRAM: 3.8 GiB
Relocation Offset is: d6e42000
spi_post_bind(spifc): req_seq = 0
register usb cfg[0][1] = 00000000d7f39210
aml_i2c_init_port init regs for 0
MCU version: 0x00 0x02
MCU version is to low! Doesn’t support froce boot from SD card.
MMC: aml_priv->desc_buf = 0x00000000d3e32a70
aml_priv->desc_buf = 0x00000000d3e34db0
SDIO Port B: 0, SDIO Port C: 1
co-phase 0x3, tx-dly 0, clock 400000
co-phase 0x3, tx-dly 0, clock 400000
co-phase 0x3, tx-dly 0, clock 400000
emmc/sd response timeout, cmd8, status=0x3ff2800
emmc/sd response timeout, cmd55, status=0x3ff2800
co-phase 0x3, tx-dly 0, clock 400000
co-phase 0x1, tx-dly 0, clock 40000000
aml_sd_retry_refix[983]:delay = 0x0,gadjust =0x2000
[mmc_startup] mmc refix success
init_part() 282: PART_TYPE_DOS
[mmc_init] mmc init success
start dts,buffer=00000000d3e37620,dt_addr=00000000d3e37620
check_valid_dts: FDT_ERR_BADMAGIC
get_partition_from_dts() 91: ret -9
get_partition_from_dts() 94: ret -9
get_ptbl_from_dtb()-272: get partition table from dts faild
mmc_device_init()-1254: get partition table from dtb failed
get_ptbl_rsv()-494: magic faild MPT,
mmc_device_init()-1281: dtb&rsv are not exist, no LPT source
get partition info failed !!
Using default environment

In: serial
Out: serial
Err: serial
reboot_mode=normal
[store]To run cmd[emmc dtb_read 0x1000000 0x40000]
_verify_dtb_checksum()-3477: calc a7978dce, store 5011944
update_dtb_info()-3585: cpy 1 is not valid
_verify_dtb_checksum()-3477: calc 96e51623, store 60f81f
update_dtb_info()-3585: cpy 0 is not valid
dtb_read()-3694: total valid 0
emmc - EMMC sub system

Usage:
emmc dtb_read addr size
emmc dtb_write addr size
emmc erase dtb
emmc erase key
emmc fastboot_read addr size
emmc fastboot_write addr size

aml_i2c_init_port init regs for 0
fusb302_init: Device ID: 0x91
CC connected in 1 as UFP
fusb302 detect chip.port_num = 0
[KM]Error:f[keymanage_dts_parse]L307:not a fdt at 0x0000000001000000
vpu: error: vpu: check dts: FDT_ERR_BADMAGIC, load default parameters
vpu: clk_level = 7
vpu: vpu_power_on
vpu: set clk: 666667000Hz, readback: 666666667Hz(0x100)
vpu: vpu_module_init_config
vpp: vpp_init
vpp: vpp osd2 matrix rgb2yuv…
cvbs: cpuid:0x29
LCD_RESET PIN: 0
lcd: error: check dts: FDT_ERR_BADMAGIC, load default lcd parameters
lcd: detect mode: tablet, key_valid: 0
lcd: load config from bsp
lcd: use panel_type=lcd_0
lcd: bl: name: lcd_0, method: 1
lcd: bl: aml_bl_power_ctrl: 0
Net: [KM]Error:f[keymanage_dts_get_key_device]L100:/unify not parsed yet!
[KM]Error:f[_get_km_ops_by_name]L248:key eth_exphy_para not know device 4
[KM]Error:f[key_unify_read]L312:key[eth_exphy_para] no cfg in dts
dwmac.ff3f0000 Waiting for PHY auto negotiation to complete… done

Do a total erase of EMMC and do not install anything, then power it up and post what your get.

Krescue

 __ _____  Khadas ## hyphop ## 
/ //_/ _ \___ ___ ______ _____ 

/ ,< / , / - | -</ __/ // / - )
/ /| / /| |_ / /_ /_, /__/

sistema di salvataggio estremamente piccolo e veloce

COSTRUZIONE: 220110_266 da: lun gen 10 06:40:10 2022

[i] POST_CONFIG: kresq_type=sd + booted=emmc + || inizio: /dev/mmcblk0
[i] Dispositivo: VIM3 Amlogic:G12B ver:0x0002 6 core 4G ram 29.1 G eMMC
[w] password di root non definita
[i] basta digitare > krescue < per avviare gui
root@Krescue:/# krescue

                 ┌────────────────────────────────────┐
                 │ Krescue - main menu                │
                 │ ┌────────────────────────────────┐ │
                 │ │   1  Wizard Mode               │ │
                 │ │   2  Krescue System            │ │
                 │ │   3  Image WRITE to.. > EMMC   │ │
                 │ │   4  Image DUMP. from < EMMC   │ │
                 │ │   5  Online Scripts            │ │
                 │ │   6  Network                   │ │
                 │ │   7  Advanced                  │ │
                 │ │   8  KBI - Device Configure    │ │
                 │ │   9  Testing                   │ │
                 │ │   a  Get Fun                   │ │
                 │ │   b  Reboot/PowerOff / Save    │ │
                 │ │   c  Readme Docs               │ │
                 │ │   d  Rescue Shell              │ │
                 │ └────────────────────────────────┘ │
                 │                                    │
                 │                                    │
                 ├────────────────────────────────────┤
                 │       <  OK  >    < Back >         │
                 └────────────[F1 - help]─────────────┘
              ┌──────────────────────────────────────────┐
              │ Krescue - advanced                       │
              │ ┌──────────────────────────────────────┐ │
              │ │   1   Back                           │ │
              │ │   2   Mount. USB/SD dumps Storage    │ │
              │ │   3   Switch DISK / RAM Storage      │ │
              │ │   4   Umount USB/SD dumps Storage    │ │
              │ │   5   Format SD dumps Storage        │ │
              │ │   6   Format USB dumps Storage       │ │
              │ │   7   Erase SPI Flash                │ │
              │ │   8   eMMC storage                   │ │
              │ │   9   USB OTG Storage mode           │ │
              │ │   a   USB OTG Network mode           │ │
              │ │   b   USB OTG Storage + Net          │ │
              │ │   c   USB OTG Disable                │ │
              │ │   d   Reset device to default mode   │ │
              │ │   e   Stop Update service            │ │
              │ │   f   Image autoinstall config       │ │
              │ └────↓(+)──────────────────────93%─────┘ │
              │                                          │
              │                                          │
              ├──────────────────────────────────────────┤
              │         <  OK  >     < Back >            │
              └───────────────[F1 - help]────────────────┘




           ┌───────────────────────────────────────────────┐
           │ Krescue - emmc                                │
           │ ┌───────────────────────────────────────────┐ │
           │ │   1  Back                                 │ │
           │ │   2  Erase eMMC Fast                      │ │
           │ │   3  Erase eMMC FULL                      │ │
           │ │   4  Erase eMMC partitions                │ │
           │ │   5  Print eMMM partitions                │ │
           │ │   6  Optimize minimize eMMC content       │ │
           │ │   7  Optimize reset minimal image size    │ │
           │ └───────────────────────────────────────────┘ │
           │                                               │
           │                                               │
           ├───────────────────────────────────────────────┤
           │           <  OK  >      < Back >              │
           └───────────────────────────────────────────────┘









        ┌──────────────────Full clean eMMC────────────────────┐
        │ Erase all 29.1G - 31268536320 bytes data on eMMC!   │
        │ Are u sure?                                         │
        ├─────────────────────────────────────────────────────┤
        │               < Yes >        < No  >                │
        └─────────────────────────────────────────────────────┘

| | __ __ _ ___ ___ | / | / |/ |
| _| | ’
/ ` / |/ _ \ / _ \ |/| | |/| | |
| |
| | | (
| _
\ / | / | | | | | |
|
__|
| ,
| ***/
** | * *| | | | | |* __|

[i] modalità di pulizia completa 29.1G - 31268536320 byte! per favore aspetta…
29.1GiB 0:07:02 [70.6MiB/s] [==================================> ] 100%
[i] FATTO

           ┌───────────────────────────────────────────────┐
           │ Krescue - emmc                                │
           │ ┌───────────────────────────────────────────┐ │
           │ │   1  Back                                 │ │
           │ │   2  Erase eMMC Fast                      │ │
           │ │   3  Erase eMMC FULL                      │ │
           │ │   4  Erase eMMC partitions                │ │
           │ │   5  Print eMMM partitions                │ │
           │ │   6  Optimize minimize eMMC content       │ │
           │ │   7  Optimize reset minimal image size    │ │
           │ └───────────────────────────────────────────┘ │
           │                                               │
           │                                               │
           ├───────────────────────────────────────────────┤
           │           <  OK  >      < Back >              │
           └───────────────────────────────────────────────┘

Have you power cycled the board?

No I didn’t. Do i have to do that?

Yes, if its fully erased you will some some output that is much different from what you are seeing.

do I have to remove Krescue sd?

Yes, it must be removed.

G12B:BL:6e7c85:2a3b91;FEAT:E0F83180:402000;POC:F;RCY:0;EMMC:0;READ:0;CHK:1F;READ:0;CHK:1F;READ:0;CHK:1F;SD?:20000;USB:8;LOOP:1;EMMC:0;READ:0;CHK:1F;READ:0;CHK:1F;READ:0;CHK:1F;SD?:20000;USB:8;LOOP:2;EMMC:0;READ:0;CHK:1F;READ:0;CHK:1F;READ:0;CHK:1F;SD?:20000;USB:8;LOOP:3;EMMC:0;READ:0;CHK:1F;READ:0;CHK:1F;READ:0;CHK:1F;SD?:20000;USB:8;LOOP:4;EMMC:0;READ:0;CHK:1F;READ:0;CHK:1F;READ:0;CHK:1F;SD?:20000;USB:8;LOOP:5;EMMC:0;READ:0;CHK:1F;READ:0;CHK:1F;READ:0;CHK:1F;SD?:20000;USB:8;LOOP:6;EMMC:0;READ:0;CHK:1F;READ:0;CHK:1F;READ:0;CHK:1F;SD?:20000;USB:8;LOOP:7;EMMC:0;READ:0;CHK:1F;READ:0;CHK:1F;READ:0;CHK:1F;SD?:20000;USB:8;LOOP:8;EMMC:0;READ:0;CHK:1F;READ:0;CHK:1F;READ:0;CHK:1F;SD?:20000;USB:8;LOOP:9;EMMC:0;READ:0;CHK:1F;READ:0;CHK:1F;READ:0;CHK:1F;SD?:20000;USB:8;LOOP:A;EMMC:0;READ:0;CHK:1F;READ:0;CHK:1F;READ:0;CHK:1F;SD?:20000;USB:8;LOOP:B;EMMC:0;READ:0;CHK:1F;READ:0;CHK:1F;READ:0;CHK:1F;SD?:20000;USB:8;LOOP:C;EMMC:0;READ:0;CHK:1F;READ:0;CHK:1F;READ:0;CHK:1F;SD?:20000;USB:8;LOOP:D;EMMC:0;READ:0;CHK:1F;READ:0;CHK:1F;READ:0;CHK:1F;SD?:20000;USB:8;LOOP:E;EMMC:0;READ:0;CHK:1F;READ:0;CHK:1F;READ:0;CHK:1F;SD?:20000;USB:8;LOOP:F;EMMC:0;READ:0;CHK:1F;READ:0;CHK:1F;READ:0;CHK:1F;SD?:20000;USB:8;LOOP:10;EMMC:0;READ:0;CHK:1F;READ:0;CHK:1F;READ:0;CHK:1F;SD?:20000;USB:8;LOOP:11;EMMC:0;READ:0;CHK:1F;READ:0;CHK:1F;READ:0;CHK:1F;SD?:20000;USB:8;LOOP:12;EMMC:0;READ:0;CHK:1F;READ:0;CHK:1F;READ:0;CHK:1F;SD?:20000;USB:8;LOOP:13;EMMC:0;READ:0;CHK:1F;READ:0;CHK:1F;READ:0;CHK:1F;SD?:20000;USB

it’s not complete. It’s working

I think it’s repeating the same things. Can I stop it?

Okay, that is good, it shows the emmc is completely erased.

  1. Power off and then install sd card and allow krescue to boot.
  2. Use Wizard option and install ubuntu 4.9 image USB image (pretty sure its USB not emmc image, I am away from my notes so that might be incorrect), gnome will give you a desktop and server you will only get a login prompt.
  3. When it is complete remove sd card and power cycle
  4. Watch it on terminal and you will see it boot, it will seem to pause on the terminal but that is ubuntu installing itself.

It should work fine after doing these steps, if not maybe one of the Khadas team can help you.

Thanks where are usb images?

you must select on them for downloading them

1 Like

Thanks, where are usb images?
│ VIM3_Ubuntu-gnome-focal_Linux-4.9_arm64_SD-USB_V1.0.10-220108.img. │
Is ok?