[Android Stick & Console AMLogic based Computers] SupeChicken666:
Hi, thanks for the information! Now I have managed to access the serial console through the HDMI port with a baud rate of 921600, however I cannot interrupt U-Boot (neither pressing space nor enter) and the serial console is stuck after `do_factorydata_read` (the RX light of TTL adapter keeps on but no new output shows).

Also, I have no luck getting into ADNL (stuck at "waiting for Amlogic DNL device")

Here is the boot log:

SC2:BL:635f8f;ID:0096100EC3A10616;FEAT:3FF0F0F:9FFE0000:8002F:1;POC:FF;RCY:0;OVD:0;DFU:0;eMMC:0;RD-0:0;CHK:0;RVK-N:8000;RVK-C:8000;RVK-A:800;RVK-C:8800;RVK-A:800;RVK-C:8800;RVK-N:8000;RVK-C:8800;SCS:0;RVK-N:00004000;RVK-C:0000c800;RVK-N:00002000;RVK-C:0000e800;
build in ddr magic:ddr4
OTP_LIC00 : 0f0fff030000fe9f2f00080000000000
OTP_LIC10 : 00820700aa01fe00ff00001f00400300
OTP_LIC20 : ffffffbf00000000c080000000000001
OTP_LIC30 : 000000f201000000ff0200f207000000

TE: 232658

BL2 Built : 13:58:18, Mar 15 2022. sc2 gSynamedia_v1.0-3-gf3c6aed - jenkins@walle02-sh

Board ID = 0
Set sys clock to 24Mhz
gp1pll is 1200Mhz. Locked
syspll is 1512Mhz. Locked
Set sys clock to 167Mhz
hifipll is 1800Mhz. Locked
bl2_platform_setup
boot area list:
1STBLOB 00000200 00040000
BL2E 00040200 00013000
BL2X 00053200 00011000
DDRFIP 00064200 00040000
DEVFIP 000a4200 00300000
s_setup from rom:00010081
dma mode
derive RSPK OK
derive PCPK OK
derive PFPK OK
DDR driver_vesion: LPDDR4_PHY_SC2_0_1_26 build time: Mar 15 2022 13:58:13
ddr clk to 912MHz
ddr fw flag:1
fw_type:1, cfg max:6, mask:003f
DDR4 probe
ddr clk to 1320MHz
Check phy result
dram_init
read enable training
fine write leveling
Training has failed!
1D training failed
fw_type:1, cfg max:6, mask:003d
DDR4 probe
ddr clk to 1320MHz
Check phy result
dram_init
read enable training
fine write leveling
read dq deskew
mpr read training
Write leveling coarse
1d write dqs
1d read dqs
read latency training
Training successfully!
1D training succeed
Check phy result
dram_init
2d read
2d write
Training successfully!

soc_vref_reg_value 0x 0000002d 0000002a 0000002f 0000002a 0000002c 0000002c 00000029 0000002c 0000002b 0000002b 0000002b 0000002b 0000002c 00000029 0000002c 0000002a 0000002a 0000002d 0000002c 0000002d 0000002b 0000002b 0000002e 0000002a 00000028 0000002a 00000027 0000002e 0000002d 0000002b 0000002c 0000002d dram_vref_reg_value 0x 0000001b
2D training succeed
auto size-- 65535DDR cs0 size: 2048MB
DDR cs1 size: 0MB
DMC_DDR_CTRL: 00500054DDR size: 2048MB
cs0 DataBus test pass
cs0 AddrBus test pass

non-sec scramble use random key
sec scramble use random key
ddr scramble enabled

100bdlr_step_size ps== 445
load mask:00
Load: DDRFIP From: eMMC - 3.0 src: 00000000, dst: f700ab90, size: 00009600sdemmc src: ;
Load: DDRFIP From: eMMC - 3.0 src: 0000a000, dst: f700ab90, size: 00009600sdemmc src: ;
Load: DDRFIP From: eMMC - 3.0 src: 00014000, dst: f700ab90, size: 00009600sdemmc src: ;
Load: DDRFIP From: eMMC - 3.0 src: 0001e000, dst: f700ab90, size: 00009600sdemmc src: ;
Load: DDRFIP From: eMMC - 3.0 src: 00028000, dst: f700ab90, size: 00009600sdemmc src: ;
Load: DDRFIP From: eMMC - 3.0 src: 00032000, dst: f700ab90, size: 00009600sdemmc src: ;
result report
boot times 0
INFO: bl2_load_bl2ex start!
INFO: load ...
Load: BL2E From: eMMC - 3.0 src: 00002000, dst: 00fffff0, size: 00011000sdemmc src: ;
INFO: check ...
SHA CHK OK!
INFO: load ...
Load: BL2X From: eMMC - 3.0 src: 00000000, dst: 007ffff0, size: 00011000sdemmc src: ;
INFO: check ...
SHA CHK OK!
RVK-A:00000400;RVK-C:0000ec00;RVK-N:00004000;RVK-C:0000ec00;RVK-N:00002000;RVK-C:0000ec00;RVK-A:00000400;RVK-C:0000ec00;run into bl2e
info: get valid params from BL2 !
bl2_gd_init
BL2E: do things as vendor specific ...
Hello world, now in BL2E

TE: 641344

BL2E Built : 14:01:00, Nov 11 2021. sc2 g22f2c67 - jenkins@walle02-sh

Start to do bl2e platform setup !
boot area list:
1STBLOB 00000200 00040000
BL2E 00040200 00013000
BL2X 00053200 00011000
DDRFIP 00064200 00040000
DEVFIP 000a4200 00300000
eMMC boot @ 0
sw-hs2 s
tun-w: s=4, sz=4
sw8 s
aml log : BL2E load BL3X.....

TE: 653279
Load FIP HDR from eMMC, src: 0x00000000, des: 0x00300000, size: 0x00008000, part: 0
Load BL3X from eMMC, src: 0x00008000, des: 0x00308000, size: 0x0026c260, part: 0
bl30 payload size: 0x00010260
bl30 memcpy
info: process payload 0 bl3x_toc: 0x00300020 bl3x_data: 0x00308000 rc=148
bl40 payload size: 0x00018470
info: process payload 1 bl3x_toc: 0x00300048 bl3x_data: 0x00319000 rc=188
bl31 payload size: 0x00040470
info: process payload 2 bl3x_toc: 0x00300070 bl3x_data: 0x00332000 rc=211
bl32 payload size: 0x00080470
info: process payload 3 bl3x_toc: 0x00300098 bl3x_data: 0x00373000 rc=245
bl33 memcpy
bl33 payload size: 0x00180260 offset: 0x000f4000
info: process payload 4 bl3x_toc: 0x003000c0 bl3x_data: 0x003f4000 rc=268
info: process payload 5 bl3x_toc: 0x003000e8 bl3x_data: 0x003001e0 rc=148
info: process payload 6 bl3x_toc: 0x00300110 bl3x_data: 0x00300fe0 rc=188
info: process payload 7 bl3x_toc: 0x00300138 bl3x_data: 0x00301de0 rc=211
info: process payload 8 bl3x_toc: 0x00300160 bl3x_data: 0x00302be0 rc=245
info: process payload 9 bl3x_toc: 0x00300188 bl3x_data: 0x003039e0 rc=268
info: process payload 10 bl3x_toc: 0x003001b0 bl3x_data: 0x003047e0 rc=314
aml log : BL2E loading BL3X is done...!
boot bl2x
params to bl2x, address=0x0100c130

Hello, we are in BL2X world !

TE: 765485

BL2X Built : 14:16:10, Jan 10 2022. sc2 gSynamedia_v1.0-3-g61a1ae4 - jenkins@walle02-sh

bl2_platform_setup
INFO: get valid list_blobinfo, 0x0100c130
Info: get valid bl31 payload info, address= 0x00332000 size= 0x00040470
Info: bl31 image is now ready !
Info: get valid bl40 payload info, address= 0x00319000 size= 0x00018470
RVK-A:00000200;RVK-C:0000ee00;RVK-A:00000200;RVK-C:0000ee00;
FEAT_DISABLE_SECURE_ENCLAVE: 1
szmin_default_areas: 0
bl2e_2 entry: 010000c0
run into bl31
NOTICE: BL31: v1.3(release):0da1128eb
NOTICE: BL31: Built : 12:15:05, Oct 8 2022
BL31:tsensor calibration: pll tsensor: 0xfa00806a, ddr tsensor: 0xfa008048
[mhu]: mhu_init-v1
[mhu]: 0xfe007080, 0x12120210
[mhu]: 0xfe007084, 0x12121002
[mhu]: 0xfe00708c, 0xa0a0802
[mhu]: 0xfe007010, 0x2
[mhu]: 0xfe007018, 0x10
[mhu]: 0xfe007014, 0x8
[mhu]: 0xfe007020, 0x89
[mhu]: 0xfe007024, 0x440
[mhu]: 0xfe007028, 0x6
[mhu]: mhu_init-v1 done
DEVICE_MVN=0x0
NOTICE: BL31: SC2 normal boot!
E/TC:0 00 INFO: BL3-2: ATOS-V3.8.0-6a69cec91 (gcc version 8.3.0 (GNU Toolchain for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36))) #1 Mon Apr 11 05:40:21 UTC 2022 arm
E/TC:0 00 INFO: BL3-2: secure time TEE
E/TC:0 00 INFO: BL3-2: Chip: SC2 Rev: D (32:D - 0:B)
Hello world again, bl2e meet you guys!
valid entry info for bl33, pc = 0x00000000
======== smc start aocpu ========

Starting AOCPU FreeRTOS...
AOCPU image version='(HEAD b90a8b88a182a3a6dfd2b274774f797045220586 17:19:16 2023-08-15'
AOCPU_IRQ_SEL=0x0
AOCPU_IRQ_SEL=0x0
AOCPU_IRQ_SEL=0x0
AOCPU_IRQ_SEL=0x0
[AOCPU]: mailbox init start
reg idx=0 cmd=6 handler=f702a786
reg idx=1 cmd=7 handler=f702a770
[AOCPU]: mailbox init end
Starting timer ...
reg idx=2 cmd=b4 handler=f702bef6
reg idx=3 cmd=b5 handler=f702be92
reg idx=4 cmd=b6 handler=f702ba1e
reg idx=5 cmd=bb handler=f702b9de
reg idx=6 cmd=bc handler=f702b9fe
reg idx=7 cmd=11 handler=f702acfe
reg idx=8 cmd=12 handler=f702ad3a
reg idx=9 cmd=4 handler=f702dbee
reg idx=10 cmd=30 handler=f702dbda
reg idx=11 cmd=31 handler=f702dbea
Starting task scheduler ...
boot bl33 !
env_init: Environment STORAGE init done (ret=-2)

U-Boot 2019.01 jaws-user (Aug 15 2023 - 17:19:10 +0800), Build: jenkins-uboot_Jaws-45

DRAM: 2 GiB
Relocation Offset is: 7f663000
Relocating to 7f663000, new gd at 79652dc8, sp at 79652db0
board init
watchdog disable
No ----gpio-vbus-power
PHY2=00000000fe03a020,PHY3=00000000fe03a080
noSof
sof timeout, reset usb phy tuning
gpio: pin GPIOH_7 (gpio 48) value is 1
gpio: pin GPIOD_11 (gpio 40) value is 1
gpio: pin GPIOX_6 (gpio 56) value is 0
gpio: pin GPIOX_16 (gpio 66) value is 0
ERR: hdmitx: not find /amhdmitx node[meson_mmc_probe]sd: Controller probe success!
[meson_mmc_probe]emmc: Controller probe success!
emmc: resp timeout, cmd8, status=0x1ff2800
emmc: resp timeout, cmd55, status=0x1ff2800
store flag: 0, types: 1
emmc init success!
boot_device:1
boot_seq:0
boot_bakups:3
rebuid_id :0
boot area list:
bl2 200 40000
bl2e 40200 13000
bl2x 53200 11000
ddrfip 64200 40000
devfip a4200 300000
emmc: tuning start:
emmc: best_win_start =4, best_win_size =4
fill_ept_by_gpt: invalid gpt
Amlogic Multi-DTB tool
Single DTB detected
get_partition_from_dts() 232: ret 0
Amlogic Multi-DTB tool
Single DTB detected
parts: 26
00: frp 0000000000200000 1
01: factory 0000000000800000 11
02:vendor_boot_a 0000000001800000 1
enable vendor_boot
03:vendor_boot_b 0000000001800000 1
enable vendor_boot
04: tee 0000000002000000 1
05: logo 0000000000800000 1
06: misc 0000000000200000 1
07: dtbo_a 0000000000200000 1
08: dtbo_b 0000000000200000 1
09: cri_data 0000000000800000 2
10: param 0000000001000000 2
11: odm_ext_a 0000000001000000 1
12: odm_ext_b 0000000001000000 1
13: oem_a 0000000002000000 1
14: oem_b 0000000002000000 1
15: boot_a 0000000004000000 1
set has_boot_slot = 1
16: boot_b 0000000004000000 1
17: rsv 0000000001000000 1
18: metadata 0000000001000000 1
19: vbmeta_a 0000000000200000 1
20: vbmeta_b 0000000000200000 1
21:factorydata 0000000000a00000 11
22:vbmeta_system_a 0000000000200000 1
23:vbmeta_system_b 0000000000200000 1
24: super 0000000083400000 1
enable dynamic_partition
25: userdata ffffffffffffffff 4
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!!!
emmc probe success
Loading Environment from STORAGE... OK
In: serial@a000
Out: serial@a000
Err: serial@a000
board late init
upgrade_step 0
Start read misc partition datas!
active slot = 1
set vendor_boot_mode true
ab mode, read dtb from kernel
[imgread]partname = vendor_boot_b
Amlogic Multi-DTB tool
Single DTB detected
vpu: find AML_VPU_CLK_LEVEL_DFT: 7
vpu: clk_level in dts: 7
vpu: vpu_power_on_new
vpu: set clk: 666667000Hz, readback: 666666667Hz(0x100)
vpu: vpu_module_init_config
vpu: vpu_probe
vpp: vpp_init, chip_id=50
vpp: set_osd1_rgb2yuv rgb2yuv on = 0..............
vpp: set_osd2_rgb2yuv rgb2yuv on = 0..............
vpp: set_osd3_rgb2yuv rgb2yuv on = 0..............
vpp: vpp osd2 matrix rgb2yuv..............
hdr_func: 0x8, hdr_process_select 0x20000001
hdr_func: hdr_process_select = 536870913
hdr_func: 0x1, hdr_process_select 0x1
hdr_func: 0x2, hdr_process_select 0x1
cvbs: cpuid:0x32
vdac_gsw_init: no cali_cvbs data or chip not verify
not find /cvbsout node: FDT_ERR_NOTFOUND
Start read misc partition datas!
rebootmode is cold_boot
forUpgrade_socType=32
forUpgrade_secureBoot=false
forUpgrade_robustOta=true
forUpgrade_flashType=BOOT_EMMC
forUpgrade_bootloaderCopies=3
forUpgrade_bootloaderIndex=0
forUpgrade_1stBootIndex=0
Saving Environment to STORAGE... OK
gpt is invalid
wrn:--read bootloader ok, check valib gpt---
no gpt partition table
rebootstatus is reboot_init, skip check
amlsecurecheck - try bootloader/dtb/recovery secure check

Usage:
amlsecurecheck
buff: 96100ec3a10616
Net: pwr up eth
in-phy
chip num 3
not set tx_amp_src
[KM]Msg:key_num: 20
[KM]Msg:normal key used!
the key partition size is:40000 byte
calc 0, store 0
cpy 1 is not valid
calc 0, store 0
cpy 0 is not valid
[KM]Msg:mark is not found
[EFUSE_MSG]keynum is 4
MACADDR:02:ad:32:01:1d:14(from sec_reg)
eth0: ethernet@ff3f0000
Start read misc partition datas!
active slot = 1
set vendor_boot_mode true
ab mode, read dtb from kernel
recovery_status=
upgrade_step=0
reboot_mode:::: cold_boot
s_version: 01.01.230815.171910
emmc: resp timeout, cmd8, status=0x1ff2800
emmc: resp timeout, cmd55, status=0x1ff2800
emmc: tuning start:
emmc: best_win_start =4, best_win_size =4
switch to partitions #0, OK
mmc1(part 0) is current device

MMC read: dev # 1, block # 1409024, count 1 ... 1 blocks read: OK

MMC read: dev # 1, block # 1409024, count 16 ... 16 blocks read: OK
do_factorydata_read:260 Can't find out region from factorydata.
factorydata - Access the factorydata from Xiaomi Partition

Usage:
factorydata argv:
dump
read keyname
write keyname value
erase keyname

do_factorydata_read:260 Can't find out oemkey from factorydata.
factorydata - Access the factorydata from Xiaomi Partition

Usage:
factorydata argv:
dump
read