VIM3 Pro使用SD卡安装Ubuntu20.04,鼠标键盘无法使用

WIM 3 Pro 在SD卡安装Ubuntu20.04,启动之后鼠标键盘无法使用

系统使用的是VIM3_Ubuntu-gnome-focal_Linux-5.16-rc2_arm64_SD-USB_V1.0.10-220108.img
下载地址:dl.khadas.com - Index of /products/vim3/firmware/Ubuntu/SD_USB/

串口log

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: 100781

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: 0001d18b
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
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
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

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==87 ps 9
TxDqDly_Margin_A1==97 ps 10
TrainedVREFDQ_A0==26
TrainedVREFDQ_A1==27
VrefDac_Margin_A0==29
DeviceVref_Margin_A0==26
VrefDac_Margin_A1==29
DeviceVref_Margin_A1==27

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

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

soc_vref_reg_value 0x 00000029 00000028 00000026 00000027 00000027 00000028 00000028 00000025 00000027 00000026 00000026 00000026 00000026 00000027 00000026 00000026 00000027 00000026 00000026 00000025 00000026 00000025 00000024 00000025 00000026 00000026 00000024 00000026 00000028 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

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: 0x000dc000, 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 14 0a 00 00 09 33 32 4e 31 53 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-g4752efb (Mar 19 2020 - 11:49:51)

DRAM: 3.8 GiB
Relocation Offset is: d6e22000
spi_post_bind(spifc): req_seq = 0
register usb cfg[0][1] = 00000000d7f28538
aml_i2c_init_port init regs for 0
NAND: get_sys_clk_rate_mtd() 290, clock setting 200!
NAND device id: 0 9f ff ff ff ff
No NAND device found!!!
nand init failed: -6
get_sys_clk_rate_mtd() 290, clock setting 200!
NAND device id: 0 9f ff ff ff ff
No NAND device found!!!
nand init failed: -6
MMC: aml_priv->desc_buf = 0x00000000d3e12a70
aml_priv->desc_buf = 0x00000000d3e14db0
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=00000000d3e17620,dt_addr=00000000d3e17620
get_partition_from_dts() 91: ret 0
parts: 17
00: logo 0000000000800000 1
01: recovery 0000000001800000 1
02: misc 0000000000800000 1
03: dtbo 0000000000800000 1
04: cri_data 0000000000800000 2
05: param 0000000001000000 2
06: boot 0000000001000000 1
set has_boot_slot = 0
07: rsv 0000000001000000 1
08: metadata 0000000001000000 1
09: vbmeta 0000000000200000 1
10: tee 0000000002000000 1
11: vendor 0000000014000000 1
12: odm 0000000008000000 1
13: system 0000000050000000 1
14: product 0000000008000000 1
15: cache 0000000046000000 2
16: data ffffffffffffffff 4
init_part() 297: PART_TYPE_AML
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: 0x4d400000
In: serial
Out: serial
Err: serial
reboot_mode=cold_boot
[store]To run cmd[emmc dtb_read 0x1000000 0x40000]
_verify_dtb_checksum()-3477: calc 4499e5a5, store 4499e5a5
_verify_dtb_checksum()-3477: calc 4499e5a5, store 4499e5a5
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
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: failed to get lcd_cpu_gpio_names
lcd: load config from dts
lcd: pinctrl_version: 2
lcd: use panel_type=lcd_1
lcd: bl: pinctrl_version: 2
lcd: bl: name: backlight_pwm, method: 1
lcd: bl: pwm_reg=0x00800002
lcd: error: gpio: wrong name invalid
lcd: bl: aml_bl_power_ctrl: 0
Net: dwmac.ff3f0000amlkey_init() enter!
amlkey_init() 71: already init!
[EFUSE_MSG]keynum is 1
MACADDR:02:00:00:0a:14:01(from chipid)

CONFIG_AVB2: null
Start read misc partition datas!
info->magic =
info->version_major = 1
info->version_minor = 0
info->slots[0].priority = 15
info->slots[0].tries_remaining = 7
info->slots[0].successful_boot = 0
info->slots[1].priority = 14
info->slots[1].tries_remaining = 7
info->slots[1].successful_boot = 0
info->crc32 = -1075449479
active slot = 0

wipe_data=successful
wipe_cache=successful
upgrade_step=2
reboot_mode:::: cold_boot

lcd: error: outputmode[1080p60hz] is not support
hpd_state=1
edid preferred_mode is 576p50hz[18]
hdr mode is 0
dv mode is ver:0 len: 0
hdr10+ mode is 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=3840, height=2160
[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[1245]
rx version is 1.4 or below div=10
vpp: Rx hdr_info.hdr_sup_eotf_smpte_st_2084 = 0
normal power off
boot wol: disable
saradc: 0x28d, hw_ver: 0x32 (VIM3.V12)

gpio: pin GPIOAO_7 (gpio 7) value is 1
port mode is usb3.0
Command: bcb uboot-command
Start read misc partition datas!
BCB hasn’t any datas,exit!

Hit Enter or space or Ctrl+C key to stop autoboot – : 1 0
cfgload: start …
cfgload: reading /boot.ini from mmc 0:1 …
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 =0x12000
[mmc_startup] mmc refix success
init_part() 282: PART_TYPE_DOS
[mmc_init] mmc init success
reading /boot.ini
10134 bytes read in 5 ms (1.9 MiB/s)
cfgload: applying boot.ini…
[#] Script a:d3e1eec0 l:10114 c:0 s:0 - run
Starting boot.ini…

saradc: 0x28d, hw_ver: 0x32 (VIM3.V12)
uboot type: vendor
Scanning mmc 0:1…
reading uInitrd
11999244 bytes read in 665 ms (17.2 MiB/s)
reading zImage
23066632 bytes read in 1303 ms (16.9 MiB/s)
reading dtb.img
77933 bytes read in 8 ms (9.3 MiB/s)
reading /boot/env.txt
** Unable to read file /boot/env.txt **
reading env.txt
4561 bytes read in 4 ms (1.1 MiB/s)
Import env.txt
Booting mainline kernel…
libfdt fdt_path_offset() returned FDT_ERR_NOTFOUND

port mode is usb3.0
Apply dtbo uart3
reading /dtb/amlogic/overlays/kvim3/uart3.dtbo
** Unable to read file /dtb/amlogic/overlays/kvim3/uart3.dtbo **
Apply dtbo pwm_f
reading /dtb/amlogic/overlays/kvim3/pwm_f.dtbo
** Unable to read file /dtb/amlogic/overlays/kvim3/pwm_f.dtbo **
Apply dtbo i2c3
reading /dtb/amlogic/overlays/kvim3/i2c3.dtbo
** Unable to read file /dtb/amlogic/overlays/kvim3/i2c3.dtbo **
Apply dtbo i2s
reading /dtb/amlogic/overlays/kvim3/i2s.dtbo
** Unable to read file /dtb/amlogic/overlays/kvim3/i2s.dtbo **
Apply dtbo os08a10
reading /dtb/amlogic/overlays/kvim3/os08a10.dtbo
** Unable to read file /dtb/amlogic/overlays/kvim3/os08a10.dtbo **
Apply dtbo watchdog
reading /dtb/amlogic/overlays/kvim3/watchdog.dtbo
** Unable to read file /dtb/amlogic/overlays/kvim3/watchdog.dtbo **
HDMI: Autodetect: 1080p60hz
libfdt fdt_path_offset() returned FDT_ERR_NOTFOUND
[rsvmem] fdt get prop fail.

Loading init Ramdisk from Legacy Image at 13000000 …

Image Name: uInitrd
Image Type: AArch64 Linux RAMDisk Image (uncompressed)
Data Size: 11999180 Bytes = 11.4 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum … OK
Start read misc partition datas!
info->magic =
info->version_major = 1
info->version_minor = 0
info->slots[0].priority = 15
info->slots[0].tries_remaining = 7
info->slots[0].successful_boot = 0
info->slots[1].priority = 14
info->slots[1].tries_remaining = 7
info->slots[1].successful_boot = 0
info->crc32 = -1075449479
active slot = 0
active_slot is normal
load dtb from 0x1000000 …

Flattened Device Tree blob at 04080000

Booting using the fdt blob at 0x4080000
find 1 dtbos
No androidboot.dtbo_idx configured
And no dtbos will be applied
libfdt fdt_path_offset() returned FDT_ERR_NOTFOUND
[rsvmem] fdt get prop fail.
reserving fdt memory region: addr=4080000 size=14000
Loading Ramdisk to 7ec8e000, end 7f7ff7cc … OK
Loading Device Tree to 000000001ffe9000, end 000000001fffffff … OK

Starting kernel …

uboot time: 6213496 us
[ 0.000000] BUG: Bad page state in process swapper pfn:8274d
[ 0.053104] OF: /soc/usb@ffe09000: could not find phandle 1207959552
[ 0.201989] OF: /soc/usb@ffe09000: could not find phandle 1207959552
[ 0.202762] OF: /soc/usb@ffe09000: could not find phandle 1207959552
[ 0.209036] OF: /soc/usb@ffe09000: could not find phandle 1207959552
[ 0.915837] rtc-hym8563 4-0051: hctosys: unable to read the hardware clock
[ 3.366046] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac4359-sdio for chip BCM4359/9
[ 3.898502] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac4359-sdio for chip BCM4359/9
[ 3.901483] brcmfmac: brcmf_c_process_clm_blob: no clm_blob available (err=-2), device may have limited channels available
[ 3.918672] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4359/9 wl0: Sep 20 2019 20:22:36 version 9.87.51.11.34 (edb7293@shgit) (r711217) FWID 01-c7feb1ee
[ 4.098552] panfrost ffe40000.gpu: dev_pm_opp_set_regulators: no regulator (mali) found: -19
[ 5.584671] Bluetooth: hci1: Failed to read codec capabilities (-56)
[ 5.585924] Bluetooth: hci1: Failed to read codec capabilities (-56)
[ 5.592187] Bluetooth: hci1: Failed to read codec capabilities (-56)
[ 5.598961] Bluetooth: hci1: Failed to read codec capabilities (-56)
[ 5.606225] Bluetooth: hci1: Failed to read codec capabilities (-56)
[ 5.611448] Bluetooth: hci1: Failed to read codec capabilities (-56)
[ 10.470970] Bluetooth: hci1: Failed to read codec capabilities (-56)
[ 10.474801] Bluetooth: hci1: Failed to read codec capabilities (-56)
[ 10.478762] Bluetooth: hci1: Failed to read codec capabilities (-56)
[ 10.485356] Bluetooth: hci1: Failed to read codec capabilities (-56)
[ 10.491068] Bluetooth: hci1: Failed to read codec capabilities (-56)
[ 10.497320] Bluetooth: hci1: Failed to read codec capabilities (-56)
[ 11.698376] ieee80211 phy0: brcmf_dongle_roam: WLC_SET_ROAM_TRIGGER error (-52)
[ 18.921832] hdmi-audio-codec hdmi-audio-codec.2.auto: Not able to map channels to speakers (-22)
[ 18.924998] hdmi-audio-codec hdmi-audio-codec.2.auto: ASoC: error at snd_soc_dai_hw_params on i2s-hifi: -22
[ 18.934651] axg-sound-card sound: ASoC: PRE_PMU: be.dai-link-7-playback event failed: -22

Ubuntu 20.04.3 LTS Khadas ttyAML0

Khadas login:

@mylove2693 你eMMC上的固件版本是什么版本的

eMMC上的固件是板子买来就带的Android TV,没动过。

@Frank 大佬帮一下,试了EMMC里的Android TV鼠标键盘正常。
SD卡重新刷了最新的vim3-ubuntu-20.04-gnome-linux-5.17-fenix-1.0.11-220429.img,还是一样的现象。

@mylove2693 这个可能是uboot不匹配导致的,我这边明天会测试。
你板子里的固件是安卓还是Android TV?是我么官方渠道买的板子么

根据界面看像是Android TV. 你的意思是EMMC里的uboot和ubuntu不匹配吗?



@mylove2693 你可以清除eMMC上的固件,或者在eMMC上刷一个最新版本固件,这个问题就会解决了。

@Frank 方便推荐一个emmc上好用的Android或者Android TV固件吗?另外请教一下刷入方法。
我下载了几个Android的固件,发现有的里面只有一个update.img,有的有好几个img。不太清除刷入的方法。

@mylove2693
固件:
http://dl.khadas.com/firmware/VIM3/Android/VIM3_Pie_V211220.7z
烧录方法:
https://docs.khadas.com/android/vim3/UpgradeViaUSBCable.html

@Frank 已经好啦,感谢大佬支持。 :heart: