skyeye testsuite中arm_hello运行

在上一篇中没有改写PATH环境变量,可以使用下面的命令:

sudo vim /etc/bash.bashrc

新增加下面语句

if [ -d /opt/skyeye/bin ] ; then

PATH=/opt/skyeye/bin:"${PATH}"

fi

保存

source /etc/profile

最后可以从任意的目录下键入skyeye启动程序。

在shell中键入skyeye命令:

SkyEye is an Open Source project under GPL. All rights of different parts or modules are reserved by their author. Any modification or redistributions of SkyEye should note remove or modify the annoucement of SkyEye copyright. 

Get more information about it, please visit the homepage http://www.skyeye.org.

Type "help" to get command list. 

(skyeye)

在skyeye的安装目录下存在testsuites目录,在该目录下存在arm_hello文件夹,该文件夹下存在文件:

arm_hello,hello.c,hello.lds,Makefile,README,skyeye.conf,start.S

这个测试case是不依赖于操作系统的helloworld

xuqiang@ubuntu:/opt/skyeye/testsuite/arm_hello$ skyeye -e arm_hello 

SkyEye is an Open Source project under GPL. All rights of different parts or modules are reserved by their author. Any modification or redistributions of SkyEye should note remove or modify the annoucement of SkyEye copyright. 

Get more information about it, please visit the homepage http://www.skyeye.org.

Type "help" to get command list. 

 (skyeye)start

arch: arm

cpu info: armv3, arm7tdmi, 41007700, fff8ff00, 0 

In do_mach_option, mach info: name at91, mach_init addr 0x5698e0

uart_mod:3, desc_in:, desc_out:, converter:

In create_uart_console

SKYEYE: use arm7100 mmu ops

exec file "arm_hello"'s format is elf32-i386.

load section .text: addr = 0x01000000  size = 0x00000084.

load section .glue_7: addr = 0x01000084  size = 0x00000000.

load section .glue_7t: addr = 0x01000084  size = 0x00000000.

load section .data: addr = 0x01002000  size = 0x00001000.

not load section .bss: addr = 0x01003000  size = 0x00000000 .

not load section .debug_abbrev: addr = 0x00000000  size = 0x0000004e .

not load section .debug_info: addr = 0x00000000  size = 0x00000187 .

not load section .debug_line: addr = 0x00000000  size = 0x000000a9 .

not load section .debug_pubnames: addr = 0x00000000  size = 0x0000001c .

not load section .debug_aranges: addr = 0x00000000  size = 0x00000020 .

In SIM_start, Set PC to the address 0x1000000

(skyeye)run

(running)stop

运行上面的命令时,在主机上会显示一个xterm的窗口,窗口标题为"uart_instance",在上面显示程序输出。

另外可以输入”info regitsters“ 查看当前的寄存器的数值,对当前PC之后的指令进行,进行反汇编(disassemble 0x100004c)。

posted @   qiang.xu  阅读(771)  评论(0编辑  收藏  举报
编辑推荐:
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
阅读排行:
· 周边上新:园子的第一款马克杯温暖上架
· Open-Sora 2.0 重磅开源!
· 分享 3 个 .NET 开源的文件压缩处理库,助力快速实现文件压缩解压功能!
· Ollama——大语言模型本地部署的极速利器
· DeepSeek如何颠覆传统软件测试?测试工程师会被淘汰吗?
点击右上角即可分享
微信分享提示