Toggle navigation
首页
问答
文章
积分商城
专家
专区
更多专区...
文档中心
返回主站
搜索
提问
会员
中心
登录
注册
rt-smart
博流_BL61x_BL808
BL808 rt-smart 运行hello.elf报错
发布于 2024-01-07 13:49:33 浏览:428
订阅该版
在BL808 D0核上运行rt-smart,加载hello.elf 运行包错,信息如下: ``` msh />cd /sdcard msh /sdcard>hello.e msh /sdcard>hello.elf lwp_execve!!! filename:hello.elf [D/lwp] lwp malloc : 0x00000000501cd038, size: 6232! _override_map rt_hw_mmu_attr_add_perm [D/load.elf] elf_check_ehdr : e_entry : 0x0 [D/load.elf] elf_check_phdr : phdr p_vaddr : 0x10000 [D/load.elf] elf_file_mmap : p_vaddr : 0x10000, load_addr : 0x0 [D/load.elf] file_mmap : map va = 0x0000000200000000 load_addr : 0x00000002004 [D/load.elf] elf_file_mmap elf_load_addr : 0x0000000200000000, vAddr : 0x0000000 [D/load.elf] elf_check_phdr : phdr p_vaddr : 0x17ff0 [D/load.elf] elf_file_mmap : p_vaddr : 0x17ff0, load_addr : 0x0 [D/load.elf] file_mmap : map va = 0x0000000200000000 load_addr : 0x00000002008 _override_map rt_hw_mmu_attr_add_perm [D/load.elf] elf_load_segment : lwp->text_entry : 0x0000000000000000 loadaddr :0 _override_map rt_hw_mmu_attr_add_perm [D/lwp] lwp kernel => (0x5020c0b0, 0x502340b0) msh /sdcard>[I/mm.fault] rt_aspace_fault_try_fix: varea not found at 0x0 Unhandled Exception 12:Instruction Page Fault scause:0x0x000000000000000c,stval:0x0x0000000000cbc5b2,sepc:0x0x0000000000cbc5b2 --------------Dump Registers----------------- Function Registers: ra(x1) = 0x0x0000000000cbc5b3 user_sp = 0x0x0000000050188eb8 gp(x3) = 0x0x00000000501857f8 tp(x4) = 0x0x00000000deadbeef Temporary Registers: t0(x5) = 0x0x000000000000000c t1(x6) = 0x0x0000000000000008 t2(x7) = 0x0x00000000deadbeef t3(x28) = 0x0x00000000deadbeef t4(x29) = 0x0x00000000deadbeef t5(x30) = 0x0x00000000deadbeef t6(x31) = 0x0x00000000deadbeef Saved Registers: s0/fp(x8) = 0x0x0000000000000000 s1(x9) = 0x0x00000000deadbeef s2(x18) = 0x0x00000000deadbeef s3(x19) = 0x0x00000000deadbeef s4(x20) = 0x0x00000000deadbeef s5(x21) = 0x0x00000000deadbeef s6(x22) = 0x0x00000000deadbeef s7(x23) = 0x0x00000000deadbeef s8(x24) = 0x0x00000000deadbeef s9(x25) = 0x0x00000000deadbeef s10(x26) = 0x0x00000000deadbeef s11(x27) = 0x0x00000000deadbeef Function Arguments Registers: a0(x10) = 0x0x0000000000000000 a1(x11) = 0x0x0000000200040022 a2(x12) = 0x0x0000000000000005 a3(x13) = 0x0x0000000000000005 a4(x14) = 0x0x0000000000000000 a5(x15) = 0x0x0000000000000000 a6(x16) = 0x0xffffffffffffffff a7(x17) = 0x0x0000000000000000 sstatus = 0x0x0000000200040120 Supervisor Interrupt Disabled Last Time Supervisor Interrupt Enabled Last Privilege is Supervisor Mode Permit to Access User Page Not Permit to Read Executable-only Page satp = 0x0x8000000000053f2f Current Page Table(Physical) = 0x0x0000000053f2f000 Current ASID = 0x0x0000000000000000 Mode = Page-based 39-bit Virtual Addressing Mode -----------------Dump OK--------------------- --------------Thread list-------------- current thread: hello.elf --------------Backtrace-------------- riscv64-unknown-linux-musl-addr2line -e rtthread.elf -a -f 0x0000000000cbc5ae 06 ``` 希望帮忙解答,谢谢。
查看更多
2
个回答
默认排序
按发布时间排序
张世争
2024-01-07
学以致用
- 首先需要确认 这个平台的交叉编译工具链,链接脚本设置 - 可以使用 elf 工具查看 hello.elf 的入口地址、基地址等,确认是否正常
梦非梦
2024-01-08
这家伙很懒,什么也没写!
改了链接地址,不报地址范围超限了,但运行还是有问题 ``` msh /sdcard>1.elf lwp_execve!!! filename:1.elf [D/lwp] lwp malloc : 0x00000000501ce038, size: 6232! [D/mm.aspace] search op_start=0x0000000370000000,op_size=0x90000000 [D/mm.aspace] search op_start=0x0000000400000000,op_size=0x1000 _override_map rt_hw_mmu_attr_add_perm [D/mm.aspace] search op_start=0x0000000400000000,op_size=0x1000 [D/load.elf] elf_check_ehdr : e_entry : 0x0 [D/load.elf] elf_check_phdr : phdr p_vaddr : 0x0 [D/load.elf] elf_file_mmap : p_vaddr : 0x0, load_addr : 0x0 [D/mm.aspace] search op_start=0x0000000200000000,op_size=0x11000 [D/load.elf] file_mmap : map va = 0x0000000200000000 load_addr : 0x00000002004 _override_map rt_hw_mmu_attr_add_perm [D/mm.aspace] search op_start=0x0000000200010000,op_size=0x1000 [D/load.elf] elf_file_mmap elf_load_addr : 0x0000000200000000, vAddr : 0x0000000 [D/load.elf] elf_load_segment : lwp->text_entry : 0x0000000200000000 loadaddr :0 [D/mm.aspace] search op_start=0xffffffffffffd000,op_size=0x1000 _override_map rt_hw_mmu_attr_add_perm [D/mm.aspace] search op_start=0xffffffffffffd000,op_size=0x1000 [D/lwp] lwp kernel => (0x5020d0b0, 0x502350b0) msh /sdcard>[D/mm.aspace] _do_named_map: va 0x0000000200000000 length 0x00000000 Unhandled Exception 12:Instruction Page Fault scause:0x0x000000000000000c,stval:0x0x0000000000b8669c,sepc:0x0x0000000000b8669c --------------Dump Registers----------------- Function Registers: ra(x1) = 0x0x0000000000b8669d user_sp = 0x0x0000000050189bf8 gp(x3) = 0x0x0000000050186548 tp(x4) = 0x0x00000000deadbeef Temporary Registers: t0(x5) = 0x0x000000000000000c t1(x6) = 0x0x0000000000000008 t2(x7) = 0x0x00000000deadbeef t3(x28) = 0x0x00000000deadbeef t4(x29) = 0x0x00000000deadbeef t5(x30) = 0x0x00000000deadbeef t6(x31) = 0x0x00000000deadbeef Saved Registers: s0/fp(x8) = 0x0x0000000000000000 s1(x9) = 0x0x00000000deadbeef s2(x18) = 0x0x00000000deadbeef s3(x19) = 0x0x00000000deadbeef s4(x20) = 0x0x00000000deadbeef s5(x21) = 0x0x00000000deadbeef s6(x22) = 0x0x00000000deadbeef s7(x23) = 0x0x00000000deadbeef s8(x24) = 0x0x00000000deadbeef s9(x25) = 0x0x00000000deadbeef s10(x26) = 0x0x00000000deadbeef s11(x27) = 0x0x00000000deadbeef Function Arguments Registers: a0(x10) = 0x0x0000000000000001 a1(x11) = 0x0x0000000200040022 a2(x12) = 0x0x0000000050189aa4 a3(x13) = 0x0x0000000200000000 a4(x14) = 0x0x0000000000000000 a5(x15) = 0x0x0000000000000001 a6(x16) = 0x0xffffffffffffffff a7(x17) = 0x0x0000000000000021 sstatus = 0x0x0000000200040120 Supervisor Interrupt Disabled Last Time Supervisor Interrupt Enabled Last Privilege is Supervisor Mode Permit to Access User Page Not Permit to Read Executable-only Page satp = 0x0x8000000000053f2e Current Page Table(Physical) = 0x0x0000000053f2e000 Current ASID = 0x0x0000000000000000 Mode = Page-based 39-bit Virtual Addressing Mode -----------------Dump OK--------------------- --------------Thread list-------------- current thread: 1.elf --------------Backtrace-------------- riscv64-unknown-linux-musl-addr2line -e rtthread.elf -a -f 0x0000000000b86698 02 ```
撰写答案
登录
注册新账号
关注者
0
被浏览
428
关于作者
梦非梦
这家伙很懒,什么也没写!
提问
1
回答
1
被采纳
0
关注TA
发私信
相关问题
1
rt-smart发布时间
2
rt-smart qemu-vexpress-a9 编译报错
3
rt-smart分支编译rasp4-32bsp报错
4
rt-smart qemu-vexpress-a9 win10编译脚本问题
5
rt-smart qemu-vexpress-a9 linux 下crtl+c
6
rt-smart + pthread 编译报错
7
rt-smart的rt_channel实现问题
8
关于rt-smart的musl-libc
9
RT-Smart Windows 编译 qemu-vexpress-a9 出错
10
用户程序在RT-Smart存在的方式
推荐文章
1
RT-Thread应用项目汇总
2
玩转RT-Thread系列教程
3
国产MCU移植系列教程汇总,欢迎查看!
4
机器人操作系统 (ROS2) 和 RT-Thread 通信
5
五分钟玩转RT-Thread新社区
6
【技术三千问】之《玩转ART-Pi》,看这篇就够了!干货汇总
7
关于STM32H7开发板上使用SDIO接口驱动SD卡挂载文件系统的问题总结
8
STM32的“GPU”——DMA2D实例详解
9
RT-Thread隐藏的宝藏之completion
10
【ART-PI】RT-Thread 开启RTC 与 Alarm组件
最新文章
1
简单两步配置RTT源码阅读环境 vsc+clangd
2
恩智浦[FRDM-MCXN947]初探 之 ADC与DAC
3
LVGL使用字库IC芯片显示中文
4
基于STM32H750和Rt-Thread的CANFD通信实现的记录(一)
5
freemodbus主机在freertos的适配,参考rtthread例程
热门标签
RT-Thread Studio
串口
Env
LWIP
SPI
AT
Bootloader
Hardfault
CAN总线
FinSH
ART-Pi
USB
DMA
文件系统
RT-Thread
SCons
RT-Thread Nano
线程
MQTT
STM32
RTC
FAL
rt-smart
ESP8266
I2C_IIC
UART
WIZnet_W5500
ota在线升级
PWM
cubemx
freemodbus
flash
packages_软件包
BSP
潘多拉开发板_Pandora
定时器
ADC
GD32
flashDB
socket
中断
编译报错
Debug
SFUD
msh
rt_mq_消息队列_msg_queue
keil_MDK
ulog
MicroPython
C++_cpp
本月问答贡献
出出啊
1517
个答案
342
次被采纳
小小李sunny
1443
个答案
289
次被采纳
张世争
805
个答案
174
次被采纳
crystal266
547
个答案
161
次被采纳
whj467467222
1222
个答案
148
次被采纳
本月文章贡献
出出啊
1
篇文章
4
次点赞
小小李sunny
1
篇文章
1
次点赞
张世争
1
篇文章
1
次点赞
crystal266
2
篇文章
2
次点赞
whj467467222
2
篇文章
1
次点赞
回到
顶部
发布
问题
分享
好友
手机
浏览
扫码手机浏览
投诉
建议
回到
底部