VIM3 烧录vim3-ubuntu-20.04-server-linux-4.9-fenix-1.4-221229-emmc 后,启动异常,

Which Khadas SBC do you use?

VIM3

Which system do you use? Android, Ubuntu, OOWOW or others?

vim3-ubuntu-20.04-server-linux-4.9-fenix-1.4-221229-emmc

Which version of system do you use? Khadas official images, self built images, or others?

vim3-ubuntu-20.04-server-linux-4.9-fenix-1.4-221229-emmc

Please describe your issue below:

烧录系统后,无法正常启动

Post a console log of your issue below:

[BEGIN] 2023/2/27 10:24:27
[ 6.466448@0] cectx ff80023c.aocec: cec driver date:2019/6/13:early suspend not report pw status
[ 6.466448@0]
[ 6.471600@0] cectx ff80023c.aocec: compatible:amlogic, aocec-g12a
[ 6.477431@0] cectx ff80023c.aocec: cecb_ver:0x1
[ 6.482002@0] cectx ff80023c.aocec: line_reg:0x1
[ 6.486590@0] cectx ff80023c.aocec: line_bit:0x3
[ 6.491188@2] cectx ff80023c.aocec: ee_to_ao:0x1
[ 6.496010@1] cectx ff80023c.aocec: not find ‘port_num’
[ 6.501028@2] cectx ff80023c.aocec: using cec:1
[ 6.505501@2] cectx ff80023c.aocec: no hdmirx regs
[ 6.510241@2] cectx ff80023c.aocec: no hhi regs
[ 6.514753@2] cectx ff80023c.aocec: not find ‘output’
[ 6.521219@2] cectx ff80023c.aocec: irq cnt:2
[ 6.524238@2] cectx ff80023c.aocec: wakeup_reason:0x0
[ 6.529184@2] cectx ff80023c.aocec: cev val1: 0x0;val2: 0x0
[ 6.534681@2] cectx ff80023c.aocec: aml_cec_probe success end
[ 6.989098@0] defendkey ff630218.defendkey: Reserved memory is not enough!
[ 7.213183@0] asoc-aml-card auge_sound: control 2:0:0:I2SIn CLK:0 is already present
[ 7.215286@0] snd_tdm ff642000.audiobus:tdma: ASoC: Failed to add I2SIn CLK: -16
[ 7.222689@0] aml_dai_tdm_probe, failed add snd tdm controls
[ 7.228296@0] asoc-aml-card auge_sound: control 2:0:0:I2SIn CLK:0 is already present
[ 7.236024@0] snd_tdm ff642000.audiobus:tdmc: ASoC: Failed to add I2SIn CLK: -16
[ 7.243401@2] aml_dai_tdm_probe, failed add snd tdm controls
[ 7.609098@0] edt_ft5x06 3-0038: touchscreen probe failed
[ 7.617147@0] rtc-hym8563 4-0051: hctosys: unable to read the hardware clock
[ 7.733768@2] thermal thermal_zone0: binding zone soc_thermal with cdev thermal-cpufreq-0 failed:-22
[ 7.737322@2] thermal thermal_zone0: binding zonG12B: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: 161110

BL2 Built : 19:23:21, Sep 18 2020. g12b g9fde858 - gongwei.chen@droid11-sz

Board ID = 10
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: 0002be92
eMMC boot @ 0
sw8 s
board id: 10
Load FIP HDR DDR from eMMC, src: 0x00010200, des: 0xfffd0000, size: 0x00004000, part: 0
Get wrong ddr fw magic! Error!!
fw parse done
PIEI prepare done
00000000
emmc switch 1 ok
ddr saved addr:00016000
Load ddr parameter from eMMC, src: 0x02c00000, des: 0xfffd0000, size: 0x00001000, part: 0
00000000
emmc switch 0 ok
fastboot data verify
result: 255
Cfg max: 12, cur: 1. Board id: 255. Force loop cfg
LPDDR4 probe

LPDDR4_PHY_V_0_1_22-Built : 14:57:26, Sep 1 2020. g12b g3c95fed - gongwei.chen@droid11-sz
ddr clk to 1608MHz

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 read dq deskew training
INFO : End of MPR read delay center optimization
INFO : End of Write leveling coarse delay
INFO : End of read delay center optimization
INFO : Training has run successfully!
Check phy result
INFO : End of initialization
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
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!

soc_vref_reg_value 0x 00000024 00000027 00000027 00000026 00000027 00000027 00000026 00000025 00000025 00000027 00000025 00000025 00000026 00000025 00000026 00000026 00000026 00000027 00000024 00000026 00000026 00000024 00000025 00000026 00000027 00000027 00000027 00000027 00000026 00000024 00000027 00000027 dwc_ddrphy_apb_wr((0<<20)|(2<<16)|(0<<12)|(0xb0):0004
dram_vref_reg_value 0x 00000015
2D training succeed
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== 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: 0x000ce600, 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 09 14 00 00 19 30 34 33 42 42 50
[0.018959 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 (Dec 29 2022 - 03:32:44)

DRAM: 3.8 GiB
Relocation Offset is: d6e42000
spi_post_bind(spifc): req_seq = 0
register usb cfg[0][1] = 00000000d7f392b0
aml_i2c_init_port init regs for 0
MCU version: 0x00 0x03
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() 297: PART_TYPE_AML
[mmc_init] mmc init success
start dts,buffer=00000000d3e37620,dt_addr=00000000d3e37620
get_partition_from_dts() 91: ret 0
parts: 3
00: logo 0000000000800000 1
01: ramdisk 0000000002000000 1
02: rootfs ffffffffffffffff 4
init_part() 297: PART_TYPE_AML
eMMC/TSD partition table have been checked OK!
crc32_s:0x1577dad == storage crc_pattern:0x1577dad!!!
crc32_s:0xee152b83 == storage crc_pattern:0xee152b83!!!
crc32_s:0x79f50f07 == storage crc_pattern:0x79f50f07!!!
mmc env offset: 0x6c00000
In: serial
Out: serial
Err: serial
reboot_mode=cold_boot
[store]To run cmd[emmc dtb_read 0x1000000 0x40000]
_verify_dtb_checksum()-3477: calc 6a39f04d, store 6a39f04d
_verify_dtb_checksum()-3477: calc 6a39f04d, store 6a39f04d
dtb_read()-3694: total valid 2
update_old_dtb()-3675: do nothing
aml_i2c_init_port init regs for 0
fusb302_init: Device ID: 0x91
gpio: pin GPIOA_13 (gpio 77) value is 1
gpio: pin GPIOA_13 (gpio 77) value is 0
gpio: pin GPIOA_8 (gpio 72) value is 0

amlkey_init() enter!
[EFUSE_MSG]keynum is 1
vpu: clk_level in dts: 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: detect mode: tablet, key_valid: 0
lcd: detect lcd_clk_path: 1
lcd: load config from dts
lcd: pinctrl_version: 2
lcd: use panel_type=lcd_0
lcd: bl: pinctrl_version: 2
lcd: bl: name: backlight_pwm, method: 1
lcd: bl: aml_bl_power_ctrl: 0
Net: dwmac.ff3f0000
amlkey_init() enter!
amlkey_init() 71: already init!
[EFUSE_MSG]keynum is 1
MACADDR:02:00:00:14:09:01(from chipid)

upgrade_step=2
reboot_mode:::: cold_boot

amlkey_init() enter!
amlkey_init() 71: already init!
[EFUSE_MSG]keynum is 1
[KM]Error:f[key_manage_query_size]L515:key[usid] not programed yet

mac address: c8:63:14:72:10:8f
[KM]Error:f[key_manage_query_size]L515:key[deviceid] not programed yet
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]load fb addr from dts:/meson-fb
[OSD]set initrd_high: 0x7f800000
[OSD]fb_addr for logo: 0x7f800000
[OSD]load fb addr from dts:/meson-fb
[OSD]fb_addr for logo: 0x7f800000
[OSD]VPP_OFIFO_SIZE:0xfff01fff
[CANVAS]canvas init
[CANVAS]addr=0x7f800000 width=5760, height=2160
card out
** Bad device mmc 0 **
Failed to mount ext2 filesystem…
** Unrecognized filesystem type **
1080138 bytes read in 47 ms (21.9 MiB/s)
[OSD]osd_hw.free_dst_data: 0,1079,0,1919
[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: TS050, mipi, 1080x1920@55.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 = 120.000MHz, bit_rate = 960.000MHz, lanebyteclk = 120.000MHz
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

amlkey_init() enter!
amlkey_init() 71: already init!
[EFUSE_MSG]keynum is 1
[KM]Error:f[key_manage_query_size]L515:key[usid] not programed yet

mac address: c8:63:14:72:10:8f
[KM]Error:f[key_manage_query_size]L515:key[deviceid] not programed yet
gpio: pin GPIOAO_7 (gpio 7) value is 1
saradc: 0x34c, hw_ver: 0x34 (VIM3.V14)
Product checking: pass! Hardware version: VIM3.V14
normal power on
boot wol: disable
port mode is usb3.0
Hit Enter or space or Ctrl+C key to stop autoboot – : 0
pll tsensor avg: 0x1f40, u_efuse: 0x80b5
temp1: 30
ddr tsensor avg: 0x1f4d, u_efuse: 0x804c
temp2: 32
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 …
Failed to mount ext2 filesystem…
** Unrecognized filesystem type **
cfgload: no /boot.ini or empty file on mmc 1:1
cfgload: reading /boot/boot.ini from mmc 1:1 …
Failed to mount ext2 filesystem…
** Unrecognized filesystem type **
cfgload: no /boot/boot.ini or empty file on mmc 1:1
cfgload: reading /boot/boot.ini from mmc 1:5 …
10279 bytes read in 5 ms (2 MiB/s)
cfgload: applying boot.ini…
[#] Script a:d3e39010 l:10259 c:0 s:0 - run
Starting boot.ini…
saradc: 0x34c, hw_ver: 0x34 (VIM3.V14)

mac address: c8:63:14:72:10:8f
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…
** Unrecognized filesystem type **
Scanning mmc 1:5…
9160467 bytes read in 265 ms (33 MiB/s)
29245952 bytes read in 830 ms (33.6 MiB/s)
90241 bytes read in 10 ms (8.6 MiB/s)
4561 bytes read in 6 ms (742.2 KiB/s)
Import env.txt
Can not get u-boot part UUID, set to NULL
Booting legacy kernel…
port mode is usb3.0
Apply dtbo uart3
225 bytes read in 9 ms (24.4 KiB/s)
Apply dtbo pwm_f
345 bytes read in 9 ms (37.1 KiB/s)
Apply dtbo i2c3
223 bytes read in 8 ms (26.4 KiB/s)
Apply dtbo i2s
3330 bytes read in 8 ms (406.3 KiB/s)
Apply dtbo os08a10
1072 bytes read in 9 ms (116.2 KiB/s)
Apply dtbo watchdog
222 bytes read in 9 ms (23.4 KiB/s)
HDMI: Autodetect: 1080p60hz

Loading init Ramdisk from Legacy Image at 13000000 …

Image Name: uInitrd
Image Type: AArch64 Linux RAMDisk Image (uncompressed)
Data Size: 9160403 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
reserving fdt memory region: addr=1000000 size=17000
Loading Ramdisk to 7ef43000, end 7f7ff6d3 … OK
Loading Device Tree to 000000001ffe6000, end 000000001fffffff … OK

Starting kernel …

uboot time: 5406473 us
[ 0.365982@4] codec_mm_module_init
[ 0.372768@4] clkmsr ffd18004.meson_clk_msr: failed to get msr ring reg0
[ 0.552730@4] dmi: Firmware registration failed.
[ 0.556569@4] lcd: error: failed to get null
[ 0.556589@4] lcd: error: Out of clock range, reset to default setting
[ 0.556665@4] lcd: error: lcd_debug_info_if is null
[ 0.995174@4] mtdoops: mtd device (mtddev=name/number) must be supplied
[ 1.016173@2] meson_cpufreq_init:don’t find the node <dynamic_gp1_clk>
[ 1.017992@2] meson_cpufreq_init:don’t find the node <dynamic_gp1_clk>
[ 1.019789@2] ff803000.serial: clock gate not found
[ 1.074420@2] meson-remote ff808040.rc: don’t find the node <led_blink>
[ 1.075507@2] meson-remote ff808040.rc: don’t find the node <led_blink_frq>
[ 1.083062@2] efuse efuse: open efuse clk gate error!!
[ 1.115732@4] meson-fb meson-fb: create ion_client ffffffc07f0cacc0, handle=ffffffc098e72c00
[ 1.115736@4] meson-fb meson-fb: ion memory(0): created fb at 0x00000000e5800000, size 75 MiB

@chschytzmcy
是一直重启还是卡在这里?

@ivan.li
是一直在重启,串口循环打印

你好!@chschytzmcy
使用24w适配器再次尝试。如果还存在此问题,可以使用OOWOW重新安装此固件。我刚试过,此固件一切正常。

进入OOWOW系统后,按照引导进行固件安装。

@ivan.li
你好,我这个是用 USB 工具烧录的,你的意思是要先烧录oowow,然后再基于oowo升级系统吗?

@chschytzmcy
更换24W适配器后还是不断重启吗?

是这样的,先将OOWOW烧录到SD卡,然后将SD卡插入VIM3。利用OOWOW安装你上面提到的固件