在PC上开发RTEMS

下载预编译的工具

http://www.rtems.org/ftp/pub/rtems/linux/4.10/fedora/15/i386/

我的系统是Ubuntu,但是工具目前不支持Debian系的系统

所以需要工具转换

* Download the rpms from here by selecting the relevant RTEMS version, the preferred rpm distro, the distro version and finally the appropriate architecture.
      o You will need to download all those files that pertain to the architecture you want to build RTEMS for. For instance, if you are building RTEMS for sparc then download all the files that contain the word sparc in the filename.
      o Also download all the common files - these are the rpms of the tools needed to build RTEMS. These are apt-conf, autoconf, automake, binutils, gcc, gdb, newlib

* Now that the files have been downloaded we need to convert the rpms to debs.
      o Run `sudo apt-get install alien` to install alien. Alien is a program to convert rpms to debs (to convert from one packaging form to another to be precise).
      o cd into the directory containing the rpm files and run `alien -d *.rpm` - the -d option specifies that the output file must be .deb. That must convert all rpms to debs
      o Now to install the debs, we run `dpkg -i *.deb`.

之后工具会安装在/opt/rtems-4.10

root@cjia-laptop:/home/cjia/下载# ls /opt/rtems-4.10
bin  i386-rtems4.10  lib  libexec  lm32-rtems4.10  share

之后执行

./bootstrap

mkdir build

cd build

../configure --taregt=i386-rtems4.10 --enable-posix --disable-itron --enable-networking --enable-rtemsbsp="pc686"

make RTEMS_BSP="pc686"

之后编译成功

转载于:https://www.cnblogs.com/lurker0/archive/2011/07/16/2108361.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值