VIM3L 固件升级失败 反复重启

你好,我们的开发板之前升级uboot之后就一直无法进入系统,最近想重新刷一下板子的系统软件,我在https://docs.khadas.com/zh-cn/firmware/Vim3Firmware.html 下载了VIM3L EMMC的固件包,通过USB升级工具升级,但板子会重启
Hit Enter or space or Ctrl+C key to stop autoboot – : 0
pll tsensor avg: 0x205a, u_efuse: 0x8060
temp1: 40
ddr tsensor avg: 0x2065, u_efuse: 0x8038
temp2: 41
device cool done
cfgload: start …
cfgload: reading /boot.ini from mmc 0:1 …
emmc/sd response timeout, cmd16, status=0x1ff2800
** Can’t read partition table on 0:0 **
** Invalid partition 1 **
cfgload: no /boot.ini or empty file on mmc 0:1
cfgload: reading /boot/boot.ini from mmc 0:1 …
emmc/sd response timeout, cmd16, status=0x1ff2800
** Can’t read partition table on 0:0 **
** Invalid partition 1 **
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 …
8282 bytes read in 4 ms (2 MiB/s)
cfgload: applying boot.ini…
[#] Script a:13e46040 l:8262 c:0 s:0 - run
Starting boot.ini…
saradc: 0x28b, hw_ver: 0x32 (VIM3.V12)
uboot type: vendor
Scanning mmc 0:1…
emmc/sd response timeout, cmd16, status=0x1ff2800
** Can’t read partition table on 0:0 **
** Invalid partition 1 **
Scanning mmc 0:5…
emmc/sd response timeout, cmd16, status=0x1ff2800
** Can’t read partition table on 0:0 **
** Invalid partition 5 **
Scanning mmc 1:1…
** Unrecognized filesystem type **
Scanning mmc 1:5…
10717088 bytes read in 308 ms (33.2 MiB/s)
29045248 bytes read in 821 ms (33.7 MiB/s)
87738 bytes read in 8 ms (10.5 MiB/s)
2760 bytes read in 5 ms (539.1 KiB/s)
Import env.txt
“Synchronous Abort” handler, esr 0x96000010
ELR: 17eec0d4
LR: 17eeb3b0
x0 : 0000000013e75730 x1 : 0000000020000000
x2 : 0000000000000ac8 x3 : 0000000000000000
x4 : 0000000000000ac8 x5 : 0000000017f43f50
x6 : 0000000000000000 x7 : 0000000000000000
x8 : 0000000000000001 x9 : 0000000000000008
x10: 000000000000000f x11: 0000000017efd568
x12: 0000000000000000 x13: 0000000000000008
x14: 0000000000000410 x15: 00000000000016c0
x16: 000000000000e2b8 x17: 000000000000e370
x18: 0000000013e3ce28 x19: 0000000000000000
x20: 0000000017f43f28 x21: 0000000013e75730
x22: 0000000000000ac8 x23: 0000000000000001
x24: 0000000000000000 x25: 0000000000000000
x26: 0000000000000000 x27: 000000000000000a
x28: 0000000013e3b9d0 x29: 0000000013e3b9e0

Resetting CPU …

resetting …

LOG 如上,请帮忙看看 。谢谢。

Hello,

Which uboot did you use? Looks like it is missing the offset text needed for amlogic soc.

Please provide more information about the new uboot that you used.

@Alexjiang2020 你烧的是哪一个固件,确定你烧写的版本是对的么,另外清除flash的选项不要勾上再试试

你好 我使用的是USB_Burning_Tools 烧写的固件是https://dl.khadas.com/Firmware/VIM3L/Ubuntu/EMMC/VIM3L_Ubuntu-server-focal_Linux-4.9_arm64_EMMC_V0.9-20200530.7z
https://dl.khadas.com/Firmware/VIM3L/Ubuntu/EMMC/VIM3L_Ubuntu-gnome-focal_Linux-4.9_arm64_EMMC_V0.9-20200530.7z
https://dl.khadas.com/Firmware/VIM3L/Android/VIM3L_Pie_V200624.7z。
升级版本的原因是我按照https://docs.khadas.com/zh-cn/vim3/BootFromSpiFlash.html介绍更换了UBOOT,然后发现开发板无法进入内核。因此想将版本更新回初始的机顶盒版本。

@Spikerguy 上面的log是你刷机之后的log是么,你可以不要勾选清除flash再试试么,我这边待会也会拿一个机器试一下

是的,请问我如果要升级回之前默认的机顶盒版本 应该用哪个固件?

@Alexjiang2020 你是 什么时间购买的VIM3L,你买的是安卓的版本还是CoreELEC的版本

我是今年4月买的VIM3L。我印象中启动以后是机顶盒的操作界面。我现在也不太确定是不是安卓还是CoreELEC。我在你们的固件包里没找到CoreELEC 适用于VIM3L的固件包。能否给我一个下载链接 我试试?

@Alexjiang2020 是红色的界面么,你买的应该是CoreELEC的系统.固件链接,我稍后发给你

是的 是红色界面。也给我发下链接 。我升级试试

@Alexjiang2020 你这边上得了外网么?

@Frank 可以 有VPN 就是速度慢点 。

@Alexjiang2020 我这边烧录成功了,我看用什么方式给你固件

@Alexjiang2020 发私信给你了

这个img 也是使用PC端的USB升级工具升级吧? 需要勾选擦除FLASH吗

MMC: aml_priv->desc_buf = 0x0000000013e3be50
aml_priv->desc_buf = 0x0000000013e3e190
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=0x3bf2800
emmc/sd response timeout, cmd55, status=0x3bf2800
co-phase 0x2, tx-dly 0, clock 400000
co-phase 0x2, tx-dly 0, clock 40000000
aml_sd_retry_refix[983]:delay = 0x0,gadjust =0x162000
[mmc_startup] mmc refix success
init_part() 297: PART_TYPE_AML
[mmc_init] mmc init success
start dts,buffer=0000000013e40a00,dt_addr=0000000013e40a00
get_partition_from_dts() 91: ret 0
parts: 6
00:bootloader 0000000000400000 1
01: dtbo 0000000000800000 1
02: env 0000000000800000 1
03: logo 0000000000800000 1
04: coreelec 0000000020000000 1
05: storage 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 ef503f19, store ef503f19
_verify_dtb_checksum()-3477: calc ef503f19, store ef503f19
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 1 as UFP
fusb302 detect chip.port_num = 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: failed to get lcd_cpu_gpio_names
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: [KM]Error:f[keymanage_dts_get_key_device]L105:eth_exphy_para key name is not exist
[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 4
[KM]Error:f[keymanage_dts_get_key_device]L105:eth_exphy_para key name is not exist
[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_setprop(): FDT_ERR_NOSPACE
dwmac.ff3f0000
amlkey_init() enter!
amlkey_init() 71: already init!
[EFUSE_MSG]keynum is 1

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:70:4d:f1
[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]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 out
** Bad device mmc 0 **
Failed to mount ext2 filesystem…
** Unrecognized filesystem type **
reading /usr/share/fenix/logo/logo.bmp
** Unable to read file /usr/share/fenix/logo/logo.bmp **
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@47.6Hz
lcd: tablet driver init(ver 20180718): mipi
lcd: lcd_pll_wait_lock_g12a: path=1, 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:70:4d:f1
[KM]Error:f[key_manage_query_size]L515:key[deviceid] not programed yet
gpio: pin GPIOAO_7 (gpio 7) value is 1
saradc: 0x28a, hw_ver: 0x32 (VIM3.V12)
Product checking: pass! Hardware version: VIM3.V12
normal power on
boot wol: disable
port mode is usb3.0
Hit Enter or space or Ctrl+C key to stop autoboot – : 0
card out
(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… 2 USB Device(s) found
scanning usb for storage devices… 0 Storage Device(s) found
** Bad device usb 0 **
** Bad device usb 0 **
** Unrecognized filesystem type **
** Unrecognized filesystem type **
** Unrecognized filesystem type **
** Unrecognized filesystem type **
reading cfgload
1777 bytes read in 2 ms (867.2 KiB/s)

Executing script at 01080000

Using device mmc, number 1, partition 5, coreelec on eMMC: yes
reading config.ini
5811 bytes read in 3 ms (1.8 MiB/s)
reading kernel.img
15656960 bytes read in 432 ms (34.6 MiB/s)
CONFIG_AVB2:
avb2: 0

Booting Android Image at 0x01080000 …

reloc_addr =13ec0b10
copy done
load dtb from 0x1000000 …
Uncompressing Kernel Image … OK
kernel loaded at 0x01080000, end = 0x02ac1200
Loading Ramdisk to 1399e000, end 13e38800 … OK
Loading Device Tree to 0000000013985000, end 000000001399d062 … OK

Starting kernel …

uboot time: 10194480 us

你好 我更新完新的img 还是无法启动 请帮忙看看 LOG

@Alexjiang2020 卡在启动内核了最后?

@Frank 是的,往后就没有任何打印了

@Alexjiang2020 你用什么供电?板子做过修改么,我这边刚测试过是可以的

@Frank 只是把板子的BT 和WIFI天线拆了。我用的PC USB供电 和AC USB供电 都是一样的情况