手把手教你北邮操作系统小学期实验三——Linux 系统内核/系统配置小型化3

接2

手把手教你北邮操作系统小学期实验三——Linux 系统内核/系统配置小型化3

编译安装skyeye

  • 安装skyeye

  • 下载skyeye

  • skyeye-1.2.9_rc1//我试过很多版本这个能用

  • tar xvf skyeye-1.2.9_rc1.tar.gz

  • cd skyeye-1.2.9_rc1
    这里写图片描述

  • ./configure//预处理
    这里写图片描述

  • make lib
    这里写图片描述

  • make//遇到了问题

utils/uart_console/uart_console.c:58: 错误:expected identifier or ‘(’ before numeric constant
utils/uart_console/uart_console.c:59: 错误:expected identifier or ‘(’ before numeric constant
utils/uart_console/uart_console.c:62: 错误:expected identifier or ‘(’ before numeric constant
utils/uart_console/uart_console.c:63: 错误:expected identifier or ‘(’ before numeric constant
错误:expected identifier or ‘(’ before numeric constant
是因为在其它头文件中已将POLLRDNORM那些定义,此处是已被define
解决方法,将5863行注释
//const uint32_t POLLRDNORM = 0x040;
//const uint32_t POLLRDBAND = 0x080;
//const uint32_t POLLPRI = 0x002;
//const uint32_t POLLOUT = 0x004;
//const uint32_t POLLWRNORM = 0x100;
//const uint32_t POLLWRBAND = 0x200; 
然后就好了;

这里写图片描述

  • make install_lib
    这里写图片描述

  • make install
    这里写图片描述

  • 测试HelloWorld文件

  • skyeye的控制命令
    这里写图片描述

 输入:cd /opt/skyeye/testsuite/arm_hello //先进入HelloWorld的目录
 输入:skyeye -e arm_hello  

这里写图片描述

输入:start

这里写图片描述

输入:run

这里写图片描述

输入:stop

这里写图片描述

  • 还有一种方式就是直接用 :
sudo apt-get install skyeye//这个是1.2.5
安装完成直接输入skyeye

这里写图片描述

待续未完(接4)

猜你喜欢

转载自blog.csdn.net/XiaoyYidiaodiao/article/details/81316103