-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] bsp/cvitek AARCH:启动内核时控制台打印乱码 #10154
Comments
ok,这周末我测一下 |
最新的主线上start kernel之前并没有乱码,我这里出问题的是bootrom的阶段 B▒▒▒▒▒0/▒▒▒D.▒▒▒L.S▒▒/2▒000▒0▒/▒▒▒▒▒▒0.B▒▒SD.P▒.▒D/0▒0/0x▒▒00/0x100▒▒0▒▒E.▒S.▒D▒▒▒▒000▒▒▒▒▒▒▒▒0xc200/▒▒▒E▒J▒
FSBL zIXgg9:gbeb1483:2024-04-20T23:53:12+08:00
st_on_reason=d0000
st_off_reason=0
P2S/0x1000/0x4010e200.
SD/0xd200/0x1000/0x1000/0.P2E.
DPS/0xe200/0x2000.
SD/0xe200/0x2000/0x2000/0.DPE.
DDR init.
ddr_param[0]=0x78075562.
pkg_type=5
D1_3_2
DDR3-2G-QFN
Data rate=1866.
DDR BIST PASS
PLLS.
PLLE.
C2S/0x10200/0x8fe00000/0x12200.
SD/0x10200/0x12200/0x12200/0.RSC.
C2E.
MS/0x22400/0x80000000/0x7200.
SD/0x22400/0x7200/0x7200/0.ME.
L2/0x29600.
SD/0x29600/0x200/0x200/0.L2/0x414d3342/0xcafef5b9/0x80200000/0x2fc00/0x2fc00
COMP/1.
SD/0x29600/0x2fc00/0x2fc00/0.DCP/0x80200020/0x1000000/0x81900020/0x2fc00/1.
DCP/0x79868/0.
Loader_2nd loaded.
Use internal 32k
Jump to monitor at 0x80000000.
J1651545748.ERROR: Error initializing runtime service opteed_fast
U-Boot 2021.10-ga57aa1f29b (Apr 20 2024 - 23:53:08 +0800)cvitek_cv181x
DRAM: 254 MiB
MMC: cv-sd@4310000: 0
Loading Environment from nowhere... OK
In: serial
Out: serial
Err: serial
Net:
Warning: ethernet@4070000 (eth0) using random MAC address - de:67:79:e9:b6:37
eth0: ethernet@4070000
Hit any key to stop autoboot: 0
Boot from SD dev 0 ...
switch to partitions #0, OK
mmc0 is current device
176548 bytes read in 39 ms (4.3 MiB/s)
## Loading kernel from FIT Image at 81800000 ...
Using 'config-sg2002_milkv_duo256m_arm_sd' configuration
Trying 'kernel-1' kernel subimage
Description: cvitek kernel
Type: Kernel Image
Compression: lzma compressed
Data Start: 0x818000d8
Data Size: 154600 Bytes = 151 KiB
Architecture: AArch64
OS: Linux
Load Address: 0x80200000
Entry Point: 0x80200000
Hash algo: crc32
Hash value: 93d93efb
Verifying Hash Integrity ... crc32+ OK
## Loading fdt from FIT Image at 81800000 ...
Using 'config-sg2002_milkv_duo256m_arm_sd' configuration
Trying 'fdt-sg2002_milkv_duo256m_arm_sd' fdt subimage
Description: cvitek device tree - sg2002_milkv_duo256m_arm_sd
Type: Flat Device Tree
Compression: uncompressed
Data Start: 0x81825de0
Data Size: 20046 Bytes = 19.6 KiB
Architecture: AArch64
Hash algo: sha256
Hash value: c9808286cbf8cafd86d219df4eb848db88b181fab6b5a595bcb088889433d69c
Verifying Hash Integrity ... sha256+ OK
Booting using the fdt blob at 0x81825de0
Uncompressing Kernel Image
Decompressing 606928 bytes used 51ms
Loading Device Tree to 000000008d5f1000, end 000000008d5f8e4d ... OK
Starting kernel ...
[I/rtdm.ofw] Booting RT-Thread on physical CPU 0x0
[I/rtdm.ofw] Machine model: SOPHGO ASIC. ARM.
[I/rtdm.ofw] Memory node(1) ranges: 0x0000000080000000 - 0x000000008fe00000
[E/rtdm.ofw] Allocating reserved memory in setup is not yet supported
[E/rtdm.ofw] Allocating reserved memory in setup is not yet supported
[I/mm.memblock] System memory:
[I/mm.memblock] [0x0000000080000000, 0x000000008fe00000]
[I/mm.memblock] Reserved memory:
[I/mm.memblock] [0x0000000080000000, 0x0000000080080000]
[I/mm.memblock] [0x0000000080200000, 0x00000000802df000]
[I/mm.memblock] [0x00000000802df000, 0x00000000842df000]
[I/mm.memblock] [0x00000000842df000, 0x00000000844df000]
[I/mm.memblock] [0x00000000844df000, 0x00000000844e4000]
[I/mm.memblock] physical memory region [0x0000000080080000-0x0000000080200000] installed to system page
[I/mm.memblock] physical memory region [0x00000000844e4000-0x000000008fe00000] installed to system page
[I/mm.memblock] 195 MB memory installed to system page
[I/drv.pinmux] Pin Name = "UART0_RX", Func Type = 281, selected Func [0]
[I/drv.pinmux] Pin Name = "UART0_TX", Func Type = 282, selected Func [0]
[I/drv.pinmux] Pin Name = "IIC0_SDA", Func Type = 285, selected Func [1]
[I/drv.pinmux] Pin Name = "IIC0_SCL", Func Type = 286, selected Func [1]
[I/osi.psci] Using PSCI v1.0 Function IDs
[I/rtdm.ofw] Console: uart0 (<no-node>)
\ | /
- RT - Thread Operating System
/ | \ 5.2.1 build Mar 29 2025 22:02:55
2006 - 2024 Copyright by RT-Thread team
[I/rtdm.mnt] File system initialization done
Hello AARCH64 !
msh />
|
能给出 “最新主线” 对应的 commit ID 么?我再试试。 |
这个commit的arm没什么问题,但riscv核不能启动,终端上都是乱码 |
我这里现象的确和你不一样,我这里基于 master 的 c97c9c6(也就是比 4acef9b 新一个 commit)。看到的现象还是:
我用的是 minicom,FT232R 的 usb转 uart , 下面是 dmesg 的 log:
|
我这里复现了,可能是minicom的问题? U-Boot 2021.10-ga57aa1f29b (Apr 20 2024 - 23:53:08 +0800)cvitek_cv181x
DRAM: 254 MiB
MMC: cv-sd@4310000: 0
Loading Environment from nowhere... OK
In: serial
Out: serial
Err: serial
Net:
Warning: ethernet@4070000 (eth0) using random MAC address - 6e:2f:02:d5:07:ef
eth0: ethernet@4070000
Hit any key to stop autoboot: 0
Boot from SD dev 0 ...
switch to partitions #0, OK
mmc0 is current device
176436 bytes read in 39 ms (4.3 MiB/s)
## Loading kernel from FIT Image at 81800000 ...
Using 'config-sg2002_milkv_duo256m_arm_sd' configuration
Trying 'kernel-1' kernel subimage
Description: cvitek kernel
Type: Kernel Image
Compression: lzma compressed
Data Start: 0x818000d8
Data Size: 154488 Bytes = 150.9 KiB
Architecture: AArch64
OS: Linux
Load Address: 0x80200000
Entry Point: 0x80200000
Hash algo: crc32
Hash value: 089365c9
Verifying Hash Integrity ... crc32+ OK
## Loading fdt from FIT Image at 81800000 ...
Using 'config-sg2002_milkv_duo256m_arm_sd' configuration
Trying 'fdt-sg2002_milkv_duo256m_arm_sd' fdt subimage
Description: cvitek device tree - sg2002_milkv_duo256m_arm_sd
Type: Flat Device Tree
Compression: uncompressed
Data Start: 0x81825d70
Data Size: 20046 Bytes = 19.6 KiB
Architecture: AArch64
Hash algo: sha256
Hash value: c9808286cbf8cafd86d219df4eb848db88b181fab6b5a595bcb088889433d69c
Verifying Hash Integrity ... sha256+ OK
Booting using the fdt blob at 0x81825d70
Uncompressing Kernel Image
Decompressing 604736 bytes used 51ms
Loading Device Tree to 000000008d5f1000, end 000000008d5f8e4d ... OK
Starting kernel ...
���������������������������������������������������������������������������������������������������������������������������������������������������������������)
\ | /
- RT - Thread Operating System
/ | \ 5.2.1 build Mar 31 2025 11:24:33
2006 - 2024 Copyright by RT-Thread team
[I/rtdm.mnt] File system initialization done
Hello AARCH64 !
msh />
msh />
msh /> 我将串口监视器从mobaxterm变成minicom就复现了,连commit的版本都没改 usb转串口用的是ch340g [ 8695.010558] usb 1-1: new full-speed USB device number 2 using vhci_hcd
[ 8695.160494] usb 1-1: SetAddress Request (2) to port 0
[ 8695.204963] usb 1-1: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice= 2.64
[ 8695.204970] usb 1-1: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[ 8695.204972] usb 1-1: Product: USB Serial
[ 8695.244646] usbcore: registered new interface driver ch341
[ 8695.244711] usbserial: USB Serial support registered for ch341-uart
[ 8695.258651] usb 1-1: ch341-uart converter now attached to ttyUSB0 之前在用mobaxterm测试的时候也复现了一次问题,但是我重启mobaxterm问题就消失了,不知道跟这个问题有没有关系 |
目前mobaxterm也复现了这个问题,并且已经定位到 12fded1 这个commit了 |
RT-Thread Version
master
Hardware Type/Architectures
bsp/cvitek
Develop Toolchain
Other
Describe the bug
发现在 AARCH64 大核启动过程中,a77a86d6b2 (tag: GOOD_20250204) 时还是正常的,但是切换到 74f43ed (tag: GOOD_20250211) 时内核启动后会打印乱码,然后 logo 时恢复正常。
这个问题在 RISC-V 大核上没有看到。
出问题的控制台截图, 正常应该没有这行打印:
定位后发现是 “12fded19f5 [DM/FDT] Fixup earlycon loss old messages.” 这笔修改引入的。在这笔修改之前的版本没有乱码。
Other additional context
No response
The text was updated successfully, but these errors were encountered: