【VIM3L】烧录系统后设备循环重启

使用的板卡:

khadas VIM3L
(板子丝印:VIM3 V14 22092242)

烧录的镜像:

vim3l-ubuntu-20.04-gnome-linux-4.9-fenix-1.1.2-220930-emmc.img

出现的问题:

烧录完系统后,涉笔一直循环重启。无法进入系统。

串口打印的信息

Hello @locke

可以试试最新固件:https://dl.khadas.com/products/vim3l/firmware/ubuntu/emmc/vim3l-ubuntu-20.04-gnome-linux-4.9-fenix-1.3-221118-emmc.img.xz

1 Like

好的,我先下载该镜像进行测试。我们目前已有了一个使用 Krescue备份出来用于生产的镜像,如果重新制作生产镜像的话时间上来不及了,是否可以在原有的镜像文件中修复该错误呢?

你们基于我们原始的固件U-boot和/boot/boot.ini文件有做过修改吗?如果没有,我们可以提供一种方式在当前的固件下进行修改适配,然后重新用krescue备份新的固件。

1 Like

需要更新下U-Boot和boot.ini文件。更新步骤如下:

更新U-Boot

1、使用旧的板子把你们自己的固件跑起来
2、固件跑起来后进入U-Boot命令行,参考:VIM3/3L Setup Serial Debug Console [Khadas Docs]
3、准备一个fat32文件系统的U盘,把U-Boot文件下载后放到U盘。U-Boot文件下载链接:https://dl.khadas.com/.test/u-boot.bin
4、把U盘插入到板子上
5、执行如下命令进行U-Boot更新

usb_update bootloader u-boot.bin

如果更新成功,可以看到如下输出:

usb_start_count 0
(Re)start USB...
USB0:   USB3.0 XHCI init start
Register 3000140 NbrPorts 2
Starting the controller
USB XHCI 1.10
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices... init_part() 282: PART_TYPE_DOS
1 Storage Device(s) found
[fat]Filesize is 0x140770B[1M]
[fat]0x:leftSz 2000 < BPS 4000, gotSz 2000
[MSG]Down(store) part(bootloader) sz(0x140770) fmt(normal)
[MSG]totalSlotNum = 0, nextWriteBackSlot 21
[fat]Filesize is 0x140770B[1M]
[fat]0x:leftSz 770 < BPS 4000, gotSz 770
[MSG]Burn Start...
Wrting blocks 1 to 2564 @ user
Wrting blocks 1 to 2564 @ 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 2564 @ 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
BURN u-boot.bin to part bootloader OK!
=====>Burn part bootloader in fmt normal OK<======

6、执行reset命令重启
7、重启后再次进入U-Boot命令行
8、确认下U-Boot是否成功更新,检查U-Boot版本号,执行命令version查看版本号,如果版本号如下则表示更新成功。

kvim3l#version

U-Boot 2015.01 (Nov 18 2022 - 17:15:05)
aarch64-none-elf-gcc (crosstool-NG linaro-1.13.1-4.8-2013.11 - Linaro GCC 2013.10) 4.8.3 20131111 (prerelease)
GNU ld (crosstool-NG linaro-1.13.1-4.8-2013.11 - Linaro GCC 2013.10) 2.23.2.20130610 Linaro 2013.10-4

9、重置环境变量,执行如下步骤:

env default -a
saveenv
reset

10、接下来会重启进入系统

更新boot.ini

进入系统后,按如下方法更新:

cd /tmp/
wget https://dl.khadas.com/.test/boot.ini
sudo cp boot.ini /boot/boot.ini 
sync
sudo reboot

重启后就可以在此使用kreacure备份新的系统了。

使用krescue备份新的系统

上面的步骤执行完后,就可以再次备份新的系统了,新的系统可以适配新的板子。

1 Like

我们没有改过系统内核,是直接使用官方系统进行开发的。
但是我们有使用到nvme硬盘,在系统中会操作【sudo echo 1 > /sys/class/mcu/usb_pcie_switch_mode】命令。

那没关系,参考这里的步骤试试。

好的,我试试这个方法。同时想问一下,系统是否可以安装在nvme硬盘上呢?

Hello @locke

不支持安装在NVMe SSD。

你好,我该如何进入U-Boot命令行呢?

参考文档配置好串口连接:VIM3/3L Setup Serial Debug Console [Khadas Docs]

开机后按空格键即可进入。


执行【usb_update bootloader u-boot.bin】命令后出现这样这样的报错。

U盘格式已经是FAT32格式了

Hello @locke

换个U盘试试?

换了个U盘(金士顿64G)就可以识别到了,还有个小问题,有没有方法设置默认启动NVME接口,这样不用每台设备都输入【sudo echo 1 > /sys/class/mcu/usb_pcie_switch_mode】命令。

可以的,把这个命令放到/etc/rc.local脚本里面,这样开机就会自动执行。然后再用krescue把系统备份出来。

系统修改后,使用krescue备份出来,插卡到另一块板卡上,上电后一直循环重启,串口打印

U-Boot 2015.01 (Nov 18 2022 - 06:26:31)

DRAM:  2 GiB
Relocation Offset is: 76e4c000
spi_post_bind(spifc): req_seq = 0
register usb cfg[0][1] = 0000000077f324a8
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 = 0x0000000073e3ce50
aml_priv->desc_buf = 0x0000000073e3f190
SDIO Port B: 0, SDIO Port C: 1
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=0x3ff2800
emmc/sd response timeout, cmd55, status=0x3ff2800
co-phase 0x2, tx-dly 0, clock 400000
co-phase 0x2, tx-dly 0, clock 40000000
aml_sd_retry_refix[983]:delay = 0x0,gadjust =0x172000
[mmc_startup] mmc refix success
init_part() 297: PART_TYPE_AML
[mmc_init] mmc init success
start dts,buffer=0000000073e41a00,dt_addr=0000000073e41a00
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 e8691676, store e8691676
_verify_dtb_checksum()-3477: calc e8691676, store e8691676
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
CC connected in 0 as UFP
fusb302 detect chip.port_num = 0
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:0x2b
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:28:13: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:12:42
[KM]Error:f[key_manage_query_size]L515:key[deviceid] not programed yet
edid preferred_mode is 1080p60hz[16]
hdr mode is 0
dv  mode is ver:0  len: 0
hdr10+ mode is 0
edid extension block number : 2
Dump EDID Rawdata
00ffffffffffff0061a9c32301000000091f010380351d782a1f65a455509f26
0c5054bdcf00714f8180818c81009500950fa9c0b300023a801871382d40582c
45000f252100001e000000fd00324b0f6413000a202020202020000000ff0032
383034383031303037323832000000fc005265646d69204d6f6e69746f720184
020316b149010312130414051f1067030c0010000026011d007251d01e206e28
5500a05a0000001e662156aa51001e30468f33000e532100001e7f4880187138
2d4030285500a05a0000001e0e1f008051001e303020370070cf1000001e0000
0000000000000000000000000000000000000000000000000000000000000090
Manufacturer: XMI Model 23c3 Serial Number 1
EDID version: 1.3
Established timings supported:
  720x400@70Hz
  640x480@60Hz
  640x480@67Hz
  640x480@72Hz
  640x480@75Hz
  800x600@60Hz
  800x600@72Hz
  800x600@75Hz
  1024x768@60Hz
  1024x768@70Hz
  1024x768@75Hz
  1280x1024@75Hz
Standard timings supported:
  1152x864@75Hz
  1280x1024@60Hz
  1280x1024@72Hz
  1280x800@60Hz
  1440x900@60Hz
  1440x900@75Hz
  1600x900@60Hz
  1680x1050@60Hz
Detailed mode (1) : Clock 148 MHz, 527 mm x 293 mm
               1920 2008 2052 2200 hborder 0
               1080 1084 1089 1125 vborder 0
               +hsync +vsync 
Monitor ranges (GTF): 50-75Hz V, 15-100kHz H, max dotclock 190MHz
Serial number: 2804801007282
Has 1 extension blocks
Checksum: 0x84 (valid)

CEA extension block
Extension version: 3
18 bytes of CEA data
    VIC   1 640x480@60Hz 
    VIC   3 720x480@60Hz 
    VIC  18 720x576@50Hz 
    VIC  19 1280x720@50Hz 
    VIC   4 1280x720@60Hz 
    VIC  20 1920x1080i@50Hz 
    VIC   5 1920x1080i@60Hz 
    VIC  31 1920x1080@50Hz 
    VIC  16 1920x1080@60Hz 
  Vendor-specific data block, OUI 000c03 (HDMI)
    Maximum TMDS clock: 190MHz
Detailed mode (1) : Clock 74 MHz, 160 mm x 90 mm
               1280 1390 1430 1650 hborder 0
                720  725  730  750 vborder 0
               +hsync +vsync 
Detailed mode (1) : Clock 85 MHz, 526 mm x 339 mm
               1366 1436 1579 1792 hborder 0
                768  771  774  798 vborder 0
               +hsync +vsync 
Detailed mode (1) : Clock 185 MHz, 160 mm x 90 mm
               1920 1968 2008 2200 hborder 0
               1080 1085 1090 1125 vborder 0
               +hsync +vsync 
Detailed mode (1) : Clock 79 MHz, 368 mm x 207 mm
               1280 1328 1360 1664 hborder 0
                768  771  778  798 vborder 0
               +hsync +vsync 
Checksum: 0x90 (valid)

EDID block does NOT conform to EDID 1.3!
        Name descriptor not terminated with a newline
khadas_support_mode 1080p60hz
bestmode is 1080p60hz, IEEEOUI 0x000c03
HDMI Mode
hpd_state=1
[OSD]load fb addr from dts:/meson-fb
[OSD]load fb addr from dts:/fb
[OSD]set initrd_high: 0x7f800000
[OSD]fb_addr for logo: 0x7f800000
[OSD]load fb addr from dts:/meson-fb
[OSD]load fb addr from dts:/fb
[OSD]fb_addr for logo: 0x7f800000
[OSD]VPP_OFIFO_SIZE:0xfff01fff
[CANVAS]canvas init
[CANVAS]addr=0x7f800000 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 =0x172000
[mmc_startup] mmc refix success
init_part() 282: PART_TYPE_DOS
[mmc_init] mmc init success
Failed to mount ext2 filesystem...
** Unrecognized filesystem type **
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[1294]
rx version is 1.4 or below  div=10
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:12:42
[KM]Error:f[key_manage_query_size]L515:key[deviceid] not programed yet
gpio: pin GPIOAO_7 (gpio 7) value is 1
saradc: 0x34a, 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: 0x1f60, u_efuse: 0x800b
temp1: 33
ddr tsensor avg: 0x1f73, u_efuse: 0x1f
temp2: 35
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:73e42af0 l:9472 c:0 s:0 - run
saradc: 0x349, hw_ver: 0x34 (VIM3.V14)
** KRESCUE START hwver: VIM3.V14 hostname: KVIM3L maxcpus: 4 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 -4-
**KRESCUE LOAD by fatload mmc 0 FROM // + post:  // VIM3.V14 // VIM3.V14**
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-gxl-s905x-khadas-vim.dtb
reading /rescue/fdt.kresq/amlogic/meson-gxl-s905x-khadas-vim.dtb
40772 bytes read in 11 ms (3.5 MiB/s)
libfdt fdt_path_offset() returned FDT_ERR_BADPATH
** port mode is 0 **
load packed initrd
fatload mmc 0 0x8000000 /rescue/uInitrd
reading /rescue/uInitrd
9155280 bytes read in 505 ms (17.3 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.V14 no_console_suspend consoleblank=0 dtb=/rescue/fdt.kresq/amlogic/meson-gxl-s905x-khadas-vim.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 366 ms (17.1 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 7357e000, end 73e39290 ... OK
   Loading Device Tree to 000000001fff3000, end 000000001fffff43 ... OK

Starting kernel ...

uboot time: 5883034 us
bl31 reboot reason: 0xd
bl31 reboot reason: 0x0
system cmd  1.
SM1:BL:511f6b:81ca2f;FEAT:A0F83180:20282000;POC:F;RCY:0;EMMC:0;READ:0;0.0;CHK: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:00000703
L2:00008067
L3:15000000
S1:00000000
B2:20282000
B1:a0f83180

TE: 132217

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

Board ID = 10
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
eMMC boot @ 0
sw8 s
board id: 10
Load FIP HDR DDR from eMMC, src: 0x00010200, des: 0xfffd0000, size: 0x00004000, part: 0
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:16, Sep  1 2020. g12a g3c95fed - gongwei.chen@droid11-sz
ddr clk to 1608MHz

dmc_version 0001
Check phy result
INFO : ERROR : Training has failed!
Check phy result
INFO : ERROR : Training has failed!
Check phy result
INFO : End of initialization
INFO : ERROR : Training has failed!
1D training failed
Cfg max: 12, cur: 2. Board id: 255. Force loop cfg
LPDDR4 probe
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 00000027 00000026 00000026 00000026 00000025 00000027 00000026 00000028 00000026 00000027 00000026 00000024 00000026 00000026 00000027 00000022 00000027 00000028 00000027 00000028 00000027 00000027 00000029 00000027 00000027 00000027 00000026 0000002a 00000027 00000026 00000027 00000028 dwc_ddrphy_apb_wr((0<<20)|(2<<16)|(0<<12)|(0xb0):0004 
 dram_vref_reg_value 0x 00000014
2D training succeed
auto size-- 65535DDR cs0 size: 2048MB
DDR cs1 size: 0MB
DMC_DDR_CTRL: 00c0002cDDR size: 2048MB
cs0 DataBus test pass
cs0 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: 0x000c8800, part: 0
0.0;M3 CHK:0;cm4_sp_mode 0
MVN_1=0x00000000
MVN_2=0x00000000
[Image: g12a_v1.1.3390-6ac5299 2019-09-26 14:09:46 luan.yuan@droid15-sz]
OPS=0x04
ring efuse init
2b 0c 04 00 01 13 28 00 00 0e 38 38 37 50 43 50 
[0.879786 Inits done]
secure task start!
high task start!
low task start!
boot 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 18 2022 - 06:26:31)

DRAM:  2 GiB
Relocation Offset is: 76e4c000
spi_post_bind(spifc): req_seq = 0
register usb cfg[0][1] = 0000000077f324a8
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 = 0x0000000073e3ce50
aml_priv->desc_buf = 0x0000000073e3f190
SDIO Port B: 0, SDIO Port C: 1
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=0x3ff2800
emmc/sd response timeout, cmd55, status=0x3ff2800
co-phase 0x2, tx-dly 0, clock 400000
co-phase 0x2, tx-dly 0, clock 40000000
aml_sd_retry_refix[983]:delay = 0x0,gadjust =0x172000
[mmc_startup] mmc refix success
init_part() 297: PART_TYPE_AML
[mmc_init] mmc init success
start dts,buffer=0000000073e41a00,dt_addr=0000000073e41a00
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 e8691676, store e8691676
_verify_dtb_checksum()-3477: calc e8691676, store e8691676
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
CC connected in 0 as UFP
fusb302 detect chip.port_num = 0
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:0x2b
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:28:13: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:12:42
[KM]Error:f[key_manage_query_size]L515:key[deviceid] not programed yet
edid preferred_mode is 1080p60hz[16]
hdr mode is 0
dv  mode is ver:0  len: 0
hdr10+ mode is 0
edid extension block number : 2
Dump EDID Rawdata
00ffffffffffff0061a9c32301000000091f010380351d782a1f65a455509f26
0c5054bdcf00714f8180818c81009500950fa9c0b300023a801871382d40582c
45000f252100001e000000fd00324b0f6413000a202020202020000000ff0032
383034383031303037323832000000fc005265646d69204d6f6e69746f720184
020316b149010312130414051f1067030c0010000026011d007251d01e206e28
5500a05a0000001e662156aa51001e30468f33000e532100001e7f4880187138
2d4030285500a05a0000001e0e1f008051001e303020370070cf1000001e0000
0000000000000000000000000000000000000000000000000000000000000090
Manufacturer: XMI Model 23c3 Serial Number 1
EDID version: 1.3
Established timings supported:
  720x400@70Hz
  640x480@60Hz
  640x480@67Hz
  640x480@72Hz
  640x480@75Hz
  800x600@60Hz
  800x600@72Hz
  800x600@75Hz
  1024x768@60Hz
  1024x768@70Hz
  1024x768@75Hz
  1280x1024@75Hz
Standard timings supported:
  1152x864@75Hz
  1280x1024@60Hz
  1280x1024@72Hz
  1280x800@60Hz
  1440x900@60Hz
  1440x900@75Hz
  1600x900@60Hz
  1680x1050@60Hz
Detailed mode (1) : Clock 148 MHz, 527 mm x 293 mm
               1920 2008 2052 2200 hborder 0
               1080 1084 1089 1125 vborder 0
               +hsync +vsync 
Monitor ranges (GTF): 50-75Hz V, 15-100kHz H, max dotclock 190MHz
Serial number: 2804801007282
Has 1 extension blocks
Checksum: 0x84 (valid)

CEA extension block
Extension version: 3
18 bytes of CEA data
    VIC   1 640x480@60Hz 
    VIC   3 720x480@60Hz 
    VIC  18 720x576@50Hz 
    VIC  19 1280x720@50Hz 
    VIC   4 1280x720@60Hz 
    VIC  20 1920x1080i@50Hz 
    VIC   5 1920x1080i@60Hz 
    VIC  31 1920x1080@50Hz 
    VIC  16 1920x1080@60Hz 
  Vendor-specific data block, OUI 000c03 (HDMI)
    Maximum TMDS clock: 190MHz
Detailed mode (1) : Clock 74 MHz, 160 mm x 90 mm
               1280 1390 1430 1650 hborder 0
                720  725  730  750 vborder 0
               +hsync +vsync 
Detailed mode (1) : Clock 85 MHz, 526 mm x 339 mm
               1366 1436 1579 1792 hborder 0
                768  771  774  798 vborder 0
               +hsync +vsync 
Detailed mode (1) : Clock 185 MHz, 160 mm x 90 mm
               1920 1968 2008 2200 hborder 0
               1080 1085 1090 1125 vborder 0
               +hsync +vsync 
Detailed mode (1) : Clock 79 MHz, 368 mm x 207 mm
               1280 1328 1360 1664 hborder 0
                768  771  778  798 vborder 0
               +hsync +vsync 
Checksum: 0x90 (valid)

EDID block does NOT conform to EDID 1.3!
        Name descriptor not terminated with a newline
khadas_support_mode 1080p60hz
bestmode is 1080p60hz, IEEEOUI 0x000c03
HDMI Mode
hpd_state=1
[OSD]load fb addr from dts:/meson-fb
[OSD]load fb addr from dts:/fb
[OSD]set initrd_high: 0x7f800000
[OSD]fb_addr for logo: 0x7f800000
[OSD]load fb addr from dts:/meson-fb
[OSD]load fb addr from dts:/fb
[OSD]fb_addr for logo: 0x7f800000
[OSD]VPP_OFIFO_SIZE:0xfff01fff
[CANVAS]canvas init
[CANVAS]addr=0x7f800000 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 =0x172000
[mmc_startup] mmc refix success
init_part() 282: PART_TYPE_DOS
[mmc_init] mmc init success
Failed to mount ext2 filesystem...
** Unrecognized filesystem type **
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[1294]
rx version is 1.4 or below  div=10
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:12:42
[KM]Error:f[key_manage_query_size]L515:key[deviceid] not programed yet
gpio: pin GPIOAO_7 (gpio 7) value is 1
saradc: 0x349, 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

Hello @locke

你把卡插到旧的板子上可以正常启动吗?

把卡插到旧的板子上可以启动,接屏幕后可以显示菜单

Hello @locke

确认下几个信息,如下:

  1. 新的板子上原本跑的是【 https://dl.khadas.com/products/vim3l/firmware/ubuntu/emmc/vim3l-ubuntu-20.04-gnome-linux-4.9-fenix-1.3-221118-emmc.img.xz 】固件
  2. Krescue使用的版本是【board.VIM3L.time.1641796810.size.16697603 .SIZE.67108864.ver.220110_266.krescue.sd.img】【 http://dl.khadas.com/firmware/Krescue/dump/VIM3L.krescue.sd.img.gz