[Bug]cvitek duo256m smart 异常
维护者通常 2 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 冷清
- 技术栈
- c
调研方向
首先使用 master 版本在 cvitek duo256m 上复现故障,并将其与据报告可以正常工作的 standard build 进行比较。使用显示的 boot log 和 rtthread.elf 配合 addr2line,调查报告中的 instruction 和 load page faults。完成标准是 smart build 能够在没有 nested trap 或因 page fault 关机的情况下启动。
由索引模型根据 Issue 内容生成。
描述
RT-Thread Version
master
Hardware Type/Architectures
duo256m
Develop Toolchain
Other
Describe the bug
duo256m跑smart时候异常,日志如下。跑标准版本没有问题。
C▒S▒▒▒W▒▒%▒▒.▒꒵▒�▒▒▒▒▒▒.B▒iE▒▒*▒S▒ ▒▒▒▒0▒▒E0▒▒▒▒▒Q▒B▒▒▒ ▒▒0▒▒a▒▒▒▒a▒▒/r▒B▒▒▒
FSBL Jb2829:g8e970aa49-dirty:2025-01-09T11:56:29+08:00
st_on_reason=d0000
st_off_reason=0
P2S/0x1000/0xc00a400.
SD/0x9400/0x1000/0x1000/0.P2E.
DPS/0xa400/0x2000.
SD/0xa400/0x2000/0x2000/0.DPE.
cv181x DDR init.
ddr_param[0]=0x78075562.
pkg_type=5
D1_3_2
DDR3-2G-QFN
Data rate=1866.
DDR BIST PASS
PLLS.
PLLE.
C2S/0xc400/0x8fe00000/0x12200.
SD/0xc400/0x12200/0x12200/0.RSC.
C2E.
MS/0x1e600/0x80000000/0x1b000.
SD/0x1e600/0x1b000/0x1b000/0.ME.
L2/0x39600.
SD/0x39600/0x200/0x200/0.L2/0x414d3342/0xcafe16af/0x80200000/0x37400/0x37400
COMP/1.
SD/0x39600/0x37400/0x37400/0.DCP/0x80200020/0x1000000/0x81900020/0x37400/1.
DCP/0x73e33/0.
Loader_2nd loaded.
Use internal 32k
Jump to monitor at 0x80000000.
OPENSBI: next_addr=0x80200020 arg1=0x80080000
OpenSBI v0.9
____ _____ ____ _____
/ __ \ / ____| _ \_ _|
| | | |_ __ ___ _ __ | (___ | |_) || |
| | | | '_ \ / _ \ '_ \ \___ \| _ < | |
| |__| | |_) | __/ | | |____) | |_) || |_
\____/| .__/ \___|_| |_|_____/|____/_____|
| |
|_|
Platform Name : Milk-V DuoS
Platform Features : mfdeleg
Platform HART Count : 1
Platform IPI Device : clint
Platform Timer Device : clint
Platform Console Device : uart8250
Platform HSM Device : ---
Platform SysReset Device : ---
Firmware Base : 0x80000000
Firmware Size : 132 KB
Runtime SBI Version : 0.3
Domain0 Name : root
Domain0 Boot HART : 0
Domain0 HARTs : 0*
Domain0 Region00 : 0x0000000074000000-0x000000007400ffff (I)
Domain0 Region01 : 0x0000000080000000-0x000000008003ffff ()
Domain0 Region02 : 0x0000000000000000-0xffffffffffffffff (R,W,X)
Domain0 Next Address : 0x0000000080200020
Domain0 Next Arg1 : 0x0000000080080000
Domain0 Next Mode : S-mode
Domain0 SysReset : yes
Boot HART ID : 0
Boot HART Domain : root
Boot HART ISA : rv64imafdcvsux
Boot HART Features : scounteren,mcounteren,time
Boot HART PMP Count : 16
Boot HART PMP Granularity : 4096
Boot HART PMP Address Bits: 38
Boot HART MHPM Count : 8
Boot HART MHPM Count : 8
Boot HART MIDELEG : 0x0000000000000222
Boot HART MEDELEG : 0x000000000000b109
U-Boot 2021.10 (Jan 09 2025 - 11:56:19 +0800) cvitek_cv181x
DRAM: 254 MiB
gd->relocaddr=0x8b0c8000. offset=0xaec8000
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:3f:be:50:3f:40
eth0: ethernet@4070000
Hit any key to stop autoboot: 0
Boot from SD ...
switch to partitions #0, OK
mmc0 is current device
259220 bytes read in 15 ms (16.5 MiB/s)
## Loading kernel from FIT Image at 81800000 ...
Using 'config-cv1812cp_milkv_duo256m_sd' configuration
Trying 'kernel-1' kernel subimage
Description: cvitek kernel
Type: Kernel Image
Compression: lzma compressed
Data Start: 0x818000d8
Data Size: 236881 Bytes = 231.3 KiB
Architecture: RISC-V
OS: Linux
Load Address: 0x80200000
Entry Point: 0x80200000
Hash algo: crc32
Hash value: 1ea24afa
Verifying Hash Integrity ... crc32+ OK
## Loading fdt from FIT Image at 81800000 ...
Using 'config-cv1812cp_milkv_duo256m_sd' configuration
Trying 'fdt-cv1812cp_milkv_duo256m_sd' fdt subimage
Description: cvitek device tree - cv1812cp_milkv_duo256m_sd
Type: Flat Device Tree
Compression: uncompressed
Data Start: 0x81839f48
Data Size: 20443 Bytes = 20 KiB
Architecture: RISC-V
Hash algo: sha256
Hash value: d494f8d8d9244d5235147054abbe6ea6282d4fd6922e109fd2c806a800f9a7e7
Verifying Hash Integrity ... sha256+ OK
Booting using the fdt blob at 0x81839f48
Uncompressing Kernel Image
Decompressing 728360 bytes used 91ms
Loading Device Tree to 000000008a778000, end 000000008a77ffda ... OK
Starting kernel ...
Unhandled Exception 12:Instruction Page Fault
scause:0x000000000000000c,stval:(nil),sepc:(nil)
--------------Dump Registers-----------------
Function Registers:
ra(x1) = (nil) user_sp = 0x00000000802b3d40
gp(x3) = 0x00000000802b24a0 tp(x4) = (nil)
Temporary Registers:
t0(x5) = 0x0000000000002000 t1(x6) = (nil)
t2(x7) = (nil)
t3(x28) = (nil) t4(x29) = (nil)
t5(x30) = (nil) t6(x31) = (nil)
Saved Registers:
s0/fp(x8) = 0xffffffff00000000 s1(x9) = (nil)
s2(x18) = (nil) s3(x19) = (nil)
s4(x20) = (nil) s5(x21) = (nil)
s6(x22) = (nil) s7(x23) = (nil)
s8(x24) = (nil) s9(x25) = (nil)
s10(x26) = (nil) s11(x27) = (nil)
Function Arguments Registers:
a0(x10) = 0x0000004080000000 a1(x11) = (nil)
a2(x12) = (nil) a3(x13) = 0x00000000802cc000
a4(x14) = 0x00000000000802cc a5(x15) = 0x80000000000802cc
a6(x16) = (nil) a7(x17) = (nil)
sstatus = 0x8000000201840100
Supervisor Interrupt Disabled
Last Time Supervisor Interrupt Disabled
Last Privilege is Supervisor Mode
Permit to Access User Page
Not Permit to Read Executable-only Page
satp = 0x80000000000802cc
Current Page Table(Physical) = 0x00000000802cc000
Current ASID = (nil)
Mode = Page-based 39-bit Virtual Addressing Mode
-----------------Dump OK---------------------
--------------Thread list--------------
current thread: (null)
--------------Backtrace--------------
please use: addr2line -e rtthread.elf -a -f
0x0Unhandled Exception 13:Load Page Fault
[E/libcpu.trap]
-------- [SEVER ERROR] --------
[E/libcpu.trap] Nested trap detected
[E/libcpu.trap] scause:0x000000000000000d,stval:0x0000000000000110,sepc:0x0000000080264b60
--------------Dump Registers-----------------
Function Registers:
ra(x1) = 0x0000000080286f98 user_sp = 0x00000000802b3a60
gp(x3) = 0x00000000802b24a0 tp(x4) = (nil)
Temporary Registers:
t0(x5) = 0x000000000000000c t1(x6) = (nil)
t2(x7) = (nil)
t3(x28) = (nil) t4(x29) = (nil)
t5(x30) = (nil) t6(x31) = (nil)
Saved Registers:
s0/fp(x8) = 0x00000000802b3aa0 s1(x9) = (nil)
s2(x18) = (nil) s3(x19) = (nil)
s4(x20) = (nil) s5(x21) = (nil)
s6(x22) = (nil) s7(x23) = (nil)
s8(x24) = (nil) s9(x25) = (nil)
s10(x26) = (nil) s11(x27) = (nil)
Function Arguments Registers:
a0(x10) = (nil) a1(x11) = 0x00000000802b3af8
a2(x12) = (nil) a3(x13) = (nil)
a4(x14) = (nil) a5(x15) = (nil)
a6(x16) = (nil) a7(x17) = 0x0000000000000001
sstatus = 0x8000000201844100
Supervisor Interrupt Disabled
Last Time Supervisor Interrupt Disabled
Last Privilege is Supervisor Mode
Permit to Access User Page
Not Permit to Read Executable-only Page
satp = 0x80000000000802cc
Current Page Table(Physical) = 0x00000000802cc000
Current ASID = (nil)
Mode = Page-based 39-bit Virtual Addressing Mode
-----------------Dump OK---------------------
shutdown...
Other additional context
No response
- 主要语言
- C
- 星标
- 12.4k
- 派生
- 5.5k
- 平均合并
- 3 天 7 小时
- 30 天内合并 PR
- 79
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
RT-Thread/rt-thread 的其他 Issue
-
Arch: ARM/AArch64 Doc
难度 1/5 1 小时以内 新手友好度 90/100
RT-Thread/rt-thread#12082 · 1 条评论 ·
维护者通常 2 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 67/100
RT-Thread/rt-thread#11951 · 2 条评论 ·
维护者通常 2 天内回复
-
[Bug] [libc] timer_gettime 拆秒前将总纳秒截断为 uint32_t,剩余时间查询错误可能重新可做 @Yunlk 于 28 天前认领,目前没有进行中的 PR。 未关闭in progress
难度 2/5 1-3 小时 新手友好度 68/100
RT-Thread/rt-thread#11924 · 7 条评论 · 已指派 1 人 ·
维护者通常 2 天内回复
-
[Bug] dfs_v2 tmpfs: ftruncate(fd, 0) frees the file buffer but reports success — use-after-free read/write and double free from a legal POSIX call可能已有人在做 @remukisama 于 33 天前认领。 未关闭in progress
难度 2/5 1-3 小时 新手友好度 78/100
RT-Thread/rt-thread#11902 · 4 条评论 · 已指派 1 人 ·
维护者通常 2 天内回复
-
[bsp][stm32][bluepill] README「快速上手」缺少重新生成 MDK 工程这一步,按文档操作无法编译通过可能重新可做 @moment-NEW 于 50 天前认领,目前没有进行中的 PR。 未关闭in progress
难度 2/5 1-3 小时 新手友好度 75/100
RT-Thread/rt-thread#11818 · 4 条评论 · 已指派 1 人 ·
维护者通常 2 天内回复
查看 RT-Thread/rt-thread 的全部 Issue
相似的 Issue
-
Builder: a structure opened without calculation data shows the Diffraction (fibre) view by default未关闭bug
难度 2/5 1-3 小时 新手友好度 65/100
FriendsofECCE/ECCE#1245 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 72/100
apache/nuttx-apps#4108 · 4 条评论 ·
维护者通常 1 天内回复
-
bug
难度 1/5 1 小时以内 新手友好度 84/100
VirtualBox/virtualbox#996 ·
维护者通常 6 天内回复
-
难度 1/5 1 小时以内 新手友好度 82/100
trezor/trezor-firmware#8357 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复