skyeye testsuite中arm_hello运行

来源:互联网 发布:linux bashrc 编辑:程序博客网 时间:2024/06/10 07:56

在上一篇中没有改写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)。

原创粉丝点击