Infinite reboot loop

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

OOWOW

Which version of system do you use? Please provide the version of the system here:

Ubuntu 24.04 lts

Please describe your issue below:

my VIM3 stuck on infinite loop reboot, even with the latest image (vim3-oowow-240725.000-sd.img.gz) burn onto the inserted SD. Ubuntu 24.04 was correctly installed on emmc and has working until now…

Post a console log of your issue below:

Here is the serial console log (this same block repeated continuously) :

U-Boot 2021.04 (Jun 05 2024 - 10:17:53 +0800) khadas-vim3

Model: Khadas VIM3
SoC:   Amlogic Meson G12B (A311D) Revision 29:b (10:2)
DRAM:  2 GiB
MMC:   sd@ffe03000: 0, sd@ffe05000: 1, mmc@ffe07000: 2
In:    serial
Out:   serial
Err:   serial
fusb302_init: Device ID: 0x91
CC connected in 1 as UFP
charge ic max_vol = 12000mv max_cur = 6000ma
chip->pos_power = 2, chip->pd_output_vol=9000  chip->pd_output_cur=3000
fusb302 detect chip.port_num = 0
Net:   eth0: ethernet@ff3f0000
Card did not respond to voltage select! : -110
Can't set block device
Failed to load 'splash.bmp'
Card did not respond to voltage select! : -110
Can't set block device
1080138 bytes read in 26 ms (39.6 MiB/s)
DISPLAY: setup failsave FullHD mode
starting USB...
Bus usb@ff500000: Register 3000140 NbrPorts 3
Starting the controller
USB XHCI 1.10
scanning bus usb@ff500000 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
Setting bus to 0
.G12B:BL:6e7c85:2a3b91;FEAT:E0F83180:402000;POC:B;RCY:0;SPINOR:0;CHK:1F;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: 157800

BL2 Built : 13:12:17, Sep 21 2023. g12b amlogic-dev g34b3d81e-dirty - bichao.zheng@rd02-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: 0002b6c8
eMMC boot @ 0
sw8 s
storage init finish
board id: 8
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
00000000
emmc switch 2 ok
 NO find ddr boot_info from eMMC
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 : 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 00000026 00000026 00000027 00000027 00000029 00000027 00000027 00000027 00000028 00000027 00000025 00000026 00000026 00000028 00000029 00000024 00000028 00000023 00000024 00000025 00000025 00000027 00000025 00000025 00000025 00000025 00000028 00000026 00000025 00000026 00000026 dwc_ddrphy_apb_wr((0<<20)|(2<<16)|(0<<12)|(0xb0):0004
 dram_vref_reg_value 0x 00000013
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: 0x000a8400, 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 1b 25 00 00 17 37 34 43 59 53 50

[0.018960 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

Hello @strato3003

You mean ubuntu in emmc works but oowow in sd card has an infinite loop reboot? How you supply the power?

Not exactly…the board definitly can’t boot at all, not on emmc with ubuntu previously operational , nor on the SD oowoo in place…vim3 is powered from usb-c, serial console is wired only with rx/tx/gnd.
A hdmi display and keyboard/mouse is also attached, but nothing is display after a brief khadas logo…

Could you provide the full serial console boot log?

Hello,
The full serial console boot log was already posted on my first post. It was those exactly all lines which are repeated continuously.
BR

Hello @strato3003

Please try to flash the latest 5.15 kernel image to check.

Image: https://dl.khadas.com/products/vim3/firmware/ubuntu/emmc/ubuntu-24.04/vim3-ubuntu-24.04-gnome-linux-5.15-fenix-1.7-240926-emmc.img.xz
Guide: VIM3/3L Install OS into eMMC via USB Flash Tool [Khadas Docs]