Hi everydoby !
Which system do you use? Android, Ubuntu, OOWOW or others?
Ubuntu
Which version of system do you use? Please provide the version of the system here:
vim3-ubuntu-24.04-gnome-linux-5.15-fenix-1.7.4-250423-emmc
Please describe your issue below:
I installed Home Assistant and all was working fine until febrary this year, it was impossible to send RF command using the USB RF stick. After somme investigations, it appears that all USB ports are not working, with the stick but also with a simple keyboard. I even tryied to boot on oowow on a SD card but the VIM3 always boot on EMMC (I just realized that the OS on the SD card was Raspbian... with oowow, it works !). Flash using USB burning tool works properly (I installed ubuntu 24.04 by this way). Do somebody already encountered this problem ?
Post a console log of your issue below:
Here the debug trace on uart Tx:
G12B:BL:6e7c85:2a3b91;FEAT:E0F83180:402000;POC:F;RCY:0;EMMC:0;READ:0;0.
bl2_stage_init 0x0b
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: 153623
BL2 Built : 05:42:11, Apr 29 2024. g12b amlogic-dev g1cebc752 - bl.autobuild@walle02-sh
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: 0002a5c7
eMMC boot @ 0
sw8 s
storage init finish
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 : 18:05:07, Oct 31 2020. g12b g2165977 - zhiguang.ouyang@droid07-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 00000026 00000024 00000027 00000025 00000027 00000024 00000026 00000025 00000025 00000025 00000025 00000025 00000025 00000026 00000024 00000023 00000027 00000026 00000027 00000026 00000025 00000026 00000025 00000026 00000026 00000025 00000025 00000026 00000024 00000026 00000024 00000025 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== 403
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: 0x000ee000, part: 0
0.0;M3 CHK:0;cm4_sp_mode 0
OPS=0x10
ring efuse init
chipver efuse init
[Image: g12b_v1.1.3543-1dfebc9a60 2023-11-28 03:18:52 jenkins@walle02-sh]
29 0b 10 00 01 24 20 00 00 14 34 38 37 50 43 50
[0.015752 Inits done]
secure task start!
high task start!
low task start!
run into bl31
NOTICE: BL31: v1.3(release):ca3e01f67
NOTICE: BL31: Built : 12:59:42, May 13 2024. g12b amlogic-dev-1.3 gca3e01f67 - bl.autobuild@walle02-sh
NOTICE: BL31: G12A normal boot!
NOTICE: BL31: BL33 decompress pass
ERROR: Error initializing runtime service opteed_fast
U-Boot 2015.01 (Apr 23 2025 - 10:25:07)
DRAM: 2 GiB
Relocation Offset is: 76dd8000
spi_post_bind(spifc): req_seq = 0
register usb cfg[0][1] = 0000000077f26b88
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 = 0x0000000071dc8a70
aml_priv->desc_buf = 0x0000000071dcadc0
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, cmd->cmdarg=0x1aa, status=0x3ff2800
emmc/sd response timeout, cmd55, cmd->cmdarg=0x0, status=0x3ff2800
co-phase 0x3, tx-dly 0, clock 400000
co-phase 0x1, tx-dly 0, clock 40000000
[set_emmc_calc_fixed_adj][860]find fixed adj_delay=20
init_part() 282: PART_TYPE_DOS
[mmc_init] mmc init success
start dts,buffer=0000000071dce540,dt_addr=0000000071dce540
get_partition_from_dts() 82: ret 0
parts: 1
00: rootfs ffffffffffffffff 4
_check_ptbl_mbr()-878: MBR is OK!
init_part() 282: PART_TYPE_DOS
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
board common misc_init
board_set_boot_source, boot_source: emmc
aml log : internal sys error!
reboot_mode=cold_boot
[store]To run cmd[emmc dtb_read 0x1000000 0x40000]
_verify_dtb_checksum()-3524: calc b0dd2f2c, store b0dd2f2c
_verify_dtb_checksum()-3524: calc b0dd2f2c, store b0dd2f2c
dtb_read()-3739: total valid 2
update_old_dtb()-3720: 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!
calc 5bad892c6c0c, store 5bad892c6c0c
calc 5bad892c6c0c, store 5bad892c6c0c
do nothing
[EFUSE_MSG]keynum is 4
vpu: error: clk_level in dts is out of support, set to default
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..............
hdr_func 4, hdr_process_select 0x20000001
hdr_func 1, hdr_process_select 0x1
hdr_func 2, hdr_process_select 0x1
cvbs: cpuid:0x29
vdac_gsw_init: 0x7
cvbs: find clk_path: 0x0
cvbs: find performance_pal config
LCD_RESET PIN: 0
lcd: lcd_debug_print flag: 0
lcd: detect mode: tablet, key_valid: 0
lcd: detect lcd_clk_path: 1
lcd: load config from dts
lcd_phy_probe
lcd: pinctrl_version: 2
lcd: use panel_type=mipi_0
lcd: config init pixel_clk: 120000000
lcd: TS050, mipi, 8bit, 1080x1920
lcd: bl: pinctrl_version: 2
lcd: bl: name: backlight_pwm, method: 1
lcd: bl: aml_bl_power_ctrl: 0
buff: 50435037383414202401
Net: sysnopsys gmac3.7
dwmac.ff3f0000
amlkey_init() enter!
amlkey_init() 59: already init!
[EFUSE_MSG]keynum is 4
MACADDR:02:00:00:20:24:01(from chipid)
ramdump_init, add:0, size:0
upgrade_step=2
aml log : internal sys error!
reboot_mode:::: cold_boot
s_version: 01.01.250423.102507
U-Boot 2015.01 (Apr 23 2025 - 10:25:07)
amlkey_init() enter!
amlkey_init() 59: already init!
[EFUSE_MSG]keynum is 4
[KM]Error:f[key_manage_query_size]L528:key[usid] not programed yet
mac address: c8:63:14:73:c3:c4
[KM]Error:f[key_manage_query_size]L528:key[deviceid] not programed yet
hpd_state=1
do_hpd_detect: hdmimode=1080p60hz
do_hpd_detect: colorattribute=444,8bit
Dump EDID Rawdata
00ffffffffffff0009d1ce78455400002b1c010380351e782e0ef5a555509e26
105054a56b80d1c081c081008180a9c0b30001010101023a801871382d40582c
4500132b2100001e000000ff0052414a30373937303031390a20000000fd0032
4c1e5311000a202020202020000000fc0042656e5120474c323436300a200017
EDID BlockCount=0
edid blk0 checksum:0 ext_flag:0
not find IEEEOUT
sink is DVI device
check sum valid
read hdmichecksum: 0x00000000, hdmimode: 1080p60hz, colorattribute: 444,8bit
TV has changed, now crc: 0x17000000
ubootenv hdmimode: 1080p60hz, cscd: 444,8bit, dv_type: 0, hdr_priority: 0
ubootenv best_output: 1, framerate_priority: 1
set HDMI to highest edid mode: 1080p60hz
support current mode:[1080p60hz], deep color:[rgb,8bit]
get hdmi color attribute: [rgb,8bit], outputmode is: [1080p60hz]
colorattribute = rgb,8bit
sdr final_displaymode:1080p60hz, final_deepcolor:rgb,8bit
update outputmode: 1080p60hz
update colorattribute: rgb,8bit
update hdmichecksum: 0x17000000
dolby_status 0 1
dolby_vision_process: hpd: dv disabled
osd: hpd_state=1
[OSD]using fb_for_4k2k 0
[OSD]fb_addr: 0x3d800000
[OSD]dtb_mem_addr: 16777216
[OSD]load fb addr from dts:/meson-fb
[OSD]status disabled
[OSD]load fb addr from dts:/fb
[OSD]load fb addr from dts:/drm-vpu
[OSD]set initrd_high: 0x3e800000
[OSD]fb_addr for logo: 0x3e800000
[OSD]fb_addr: 0x3d800000
[OSD]dtb_mem_addr: 16777216
[OSD]load fb addr from dts:/meson-fb
[OSD]status disabled
[OSD]load fb addr from dts:/fb
[OSD]load fb addr from dts:/drm-vpu
[OSD]fb_addr for logo: 0x3e800000
[OSD]fb_width: 1920
[OSD]fb_height: 1080
[OSD]display_bpp: 24
[OSD]display_width: 1920
[OSD]display_height: 1080
[OSD]display_color_fg: 65535
[OSD]display_color_bg: 0
[OSD]display_color_index: 24
[OSD]VPP_OFIFO_SIZE:0xfff01fff
[CANVAS]canvas init
[CANVAS]addr=0x3e800000 width=5760, height=2160
[OSD]osd[0] canvas.idx =0x40
[OSD]osd[0] canvas.addr=0x3e800000
[OSD]osd[0] canvas.width=5760
[OSD]osd[0] canvas.height=2160
1080138 bytes read in 114 ms (9 MiB/s)
[OSD]Display-bmp: 600 x 600 with 16777216 colors
[OSD]fb=0x000000003ec9c53c; bmap=0x000000000002008a, width=600, height= 600, lcd_line_length=5760, bmp_line_bytes=1800, fb_gdev.fb_width=1920, fb_gdev.fb_height=1080
[OSD]video_scale_bitmap src w=1920, h=1080, dst w=1920, dst h=1080
[OSD]osd_hw.free_dst_data: 0,1919,0,1079
[OSD]osd1_update_disp_freescale_enable
[OSD]osd[0] enable: 1
[OSD]video_scale_bitmap src w=1920, h=1080, dst w=1920, dst h=1080
[OSD]osd_hw.free_dst_data: 0,1919,0,1079
[OSD]osd1_update_disp_freescale_enable
[OSD]osd[0] enable: 1
cvbs: outputmode[1080p60hz] is invalid
vpp: vpp_matrix_update: 2
set hdmitx VIC = 16
aml_audio_init
hdmitx sub-clock: 5940000 2 2 2 6 1 1 1 -1
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-DWC addr=0x10004006 rd_data=0x44
Error: HDMITX-DWC exp_data=0xff mask=0x9f
rx version is 1.4 or below div=10
hdmitx phy setting done
hdmtix: set audio
hdmi_tx_set: save mode: 1080p60hz, attr: rgb,8bit, hdmichecksum: 0x17000000
dolby_status 0 1
dolby_status 0 1
hdr_packet
vpp: hdr_policy = 0
vpp: Rx hdr_info.hdr_sup_eotf_smpte_st_2084 = 0
s_version: 01.01.250423.102507
U-Boot 2015.01 (Apr 23 2025 - 10:25:07)
amlkey_init() enter!
amlkey_init() 59: already init!
[EFUSE_MSG]keynum is 4
[KM]Error:f[key_manage_query_size]L528:key[usid] not programed yet
mac address: c8:63:14:73:c3:c4
[KM]Error:f[key_manage_query_size]L528:key[deviceid] not programed yet
gpio: pin GPIOAO_7 (gpio 7) value is 1
saradc: 0x349, hw_ver: 0x34 (VIM3.V14)
Hardware version: VIM3.V14
normal power on
boot wol: disable
port mode is usb3.0
libfdt fdt_path_offset() returned FDT_ERR_NOTFOUND
Hit Enter or space or Ctrl+C key to stop autoboot -- : 0
SARADC channel(2) is 0x3fd.
SARADC closed.
pll tsensor avg: 0x20ed, u_efuse: 0x811f
temp1: 42
ddr tsensor avg: 0x210f, u_efuse: 0x80de
temp2: 44
device cool done
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
init_part() 282: PART_TYPE_DOS
[mmc_init] mmc init success
9921 bytes read in 3 ms (3.2 MiB/s)
cfgload: applying boot.ini...
[#] Script a:71e52780 l:9891 c:0 s:0 - run
saradc: 0x349, hw_ver: 0x34 (VIM3.V14)
[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
580 bytes read in 4 ms (141.6 KiB/s)
[i] rescue loading via fatload mmc 0 ...
[w] detect by maxcpus -6-
t# amlogic/kvim3.dtb amlogic/
t# amlogic/kvim3.dtb ""/
** OOWOW load... by fatload mmc 0 FROM // emmc+ post: // VIM3.V14 // VIM3.V14 **
load env
fatload mmc 0 0x32000000 /rescue/80_user_env.txt
580 bytes read in 4 ms (141.6 KiB/s)
env import -t 0x32000000 244
logo disabled by NO_LOGO: Y
addrs: UIMAGE_ADDR :: UINITRD_ADDR :: DTB_ADDR
addrs: 0x01080000 :: 0x10000000 :: 0x20000000
setenv kernel_addr_r 0x01080000; setenv ramdisk_addr_r 0x10000000; setenv fdt_addr_r 0x20000000;
:::::::::::::::
load dtb
fatload mmc 0 0x20000000 /rescue/fdt.kresq/amlogic/meson-g12b-a311d-khadas-vim3.dtb
51685 bytes read in 7 ms (7 MiB/s)
fdt addr 0x20000000
libfdt fdt_path_offset() returned FDT_ERR_BADPATH
port mode is usb3.0
** port mode is 0 **
load packed initrd
fatload mmc 0 0x10000000 /rescue/uInitrd
9729088 bytes read in 520 ms (17.8 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 kresq_type=sd config_test=sd booted=emmc hwver=VIM3.V14 no_console_suspend consoleblank=0 dtb=/rescue/fdt.kresq/amlogic/meson-g12b-a311d-khadas-vim3.dtb osd12
[i] bootcmd: setenv usb_need_init; for target in ${boot_targets}; do run bootcmd_${target}; done
load packed kernel
bootm 0x01080000 0x10000000 0x20000000
fatload mmc 0 0x01080000 /rescue/uImage
6606860 bytes read in 357 ms (17.6 MiB/s)
avb2: 0
ee_gate_off ...
avb2: 0
## Booting kernel from Legacy Image at 01080000 ...
Image Name: kernel
Image Type: AArch64 Linux Kernel Image (gzip compressed)
Data Size: 6606796 Bytes = 6.3 MiB
Load Address: 0d080000
Entry Point: 0d080000
Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 10000000 ...
Image Name: uInitrd
Image Type: AArch64 Linux RAMDisk Image (uncompressed)
Data Size: 9729024 Bytes = 9.3 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
[store]Is good fdt check header, no need decrypt!
load dtb from 0x1000000 ......
## Flattened Device Tree blob at 20000000
Booting using the fdt blob at 0x20000000
Uncompressing Kernel Image ... OK
kernel loaded at 0x0d080000, end = 0x0e0ae200
libfdt fdt_path_offset() returned FDT_ERR_NOTFOUND
[rsvmem] fdt get prop fail.
Can't find bootargs property in chosen
Loading Ramdisk to 3deb8000, end 3e7ff400 ... OK
Loading Device Tree to 000000001fff0000, end 000000001ffff9e4 ... OK
fdt_fixup_memory_banks, reg:000000001fffb3e0
DTS already have 'reg' property
Can't find kaslr-seed property in chosen
Starting kernel ...
uboot time: 4734226 us
Tue Nov 12 00:00:00 UTC 2024
Tue Nov 12 00:00:48 UTC 2024
[i] INITRD INIT :: UPTIME: 1.86 9.50 Linux (none) 5.15.160 #1 SMP PREEMPT Wed Jun 19 19:35:36 CST 2024 aarch64 GNU/Linux
#MANUAL
link/ether 02:00:00:20:24:01 brd ff:ff:ff:ff:ff:ff
[ 2.038228] rc_core: IR keymap rc-khadas not found
wait usb 1
wait usb 2
wait usb 3
[d] try LOAD from /dev/mmcblk0p1 -> /tmp/configs.mnt
[d] LOADed from /dev/mmcblk0p1
[i] HOST_NAME vim3-02401
Failed to connect to ubus
BusyBox v1.30.1 () built-in shell (ash)
OOWOW system ## hyphop ## Khadas
build 241112.000 from Tue Nov 12 00:00:00 2024
[i] Device: VIM3 Amlogic:G12B ver:0003 6 cores 2GB ram 16GB eMMC
[w] root password undefined
[i] just type > system < to start gui menu
root@vim3-02401:/#