本文介绍了在rtems(VB)上找不到构建集文件4.11/rtems-sparc的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

. ~/rtems-4.11-work/setenv
cd /home/rtems/rtems-source-builder/rtems
../source-builder/sb-set-builder \
--log=1-sparc.txt \
--prefix=${HOME}/rtems-4.11-work/tools 4.11/rtems-sparc

我的所有步骤都做得很好.最后我正在尝试安装sparc工具,但是当我尝试执行此推荐行时,它会返回给我

I did all steps well.Lastly I am trying to install sparc tools ,but when I try to do this commend line, it return to me

"Rtems Source Builder - Set Builder, 5 (35c533f545c8)
Build set: 4.11/rtems-sparc
error: no build set file found: 4.11/rtems-sparc.bset
Build FAILED"

我在VirtualBox上使用RTEMS有人帮我吗?因为这将是我的毕业设计

I am vorking RTEMS on VirtualBoxDoes anyone help me? Because this will be my graduation Project

推荐答案

我注意到多个可能的原因:

I note multiple possible reasons:

  • 第一行中有一个=标志.是不是. ~/rtems-4.11-work/setenv?
  • 我不确定您要使用哪个指南作为参考.但是,如果您检出了rtems-source-builder git存储库的头部,则您的版本不正确. RTEMS已经是版本5.对于4.11,您必须使用4.11分支.
  • There is a = sign in your first line. Shouldn't it be . ~/rtems-4.11-work/setenv?
  • I'm not sure which guide you are using for reference. But if you checked out the head of the rtems-source-builder git repository, your version is incorrect. RTEMS is already at version 5. For 4.11 you have to use the 4.11 branch.

要获取更多详细信息,您可以尝试以下命令:

To get some more details, you could try the following command:

../source-builder/sb-set-builder --list-bsets

这将为您提供有效构建集的列表.

This will give you a list of valid build sets.

如果您要为现有项目进行构建,请向您的同事询问您应使用的RTEMS的确切版本.否则,我建议使用版本5的开发HEAD.

If you are trying to build for an existing project, please ask your colleagues for the exact version of RTEMS you should use. Otherwise I would recommend to use the development HEAD which is version 5.

利用您在评论中提供的新信息,我将尝试使该答案更有用:

With the new information that you gave in your comments I'll try to make that answer a little more useful:

如果您确实要使用该旧VM:只需用以下命令替换您的最后一条命令即可:

If you really want to use that old VM: It should be enough to replace your last command by the following:

../source-builder/sb-set-builder \
    --log=1-sparc.txt \
    --prefix=${HOME}/rtems-4.11-work/tools 5/rtems-sparc

请注意,这将为您提供RTEMS 5,而许多路径中仍包含4.11.

Note that this will give you a RTEMS 5 while a lot of the paths still have an 4.11 in it.

我推荐的方法是在VM(例如带有开发包的CentOS 7)中建立一些最新的Linux,并遵循最近几年GSoC博客中的指南.我认为大多数学生都写了一些关于他们第一步的东西.

My recommended way would be to set up some up to date Linux in an VM (for example an CentOS 7 with development packets) and follow the guides in some of the last years GSoC blogs. I think most of the students wrote something about their first steps.

基本上,它应该与以下步骤有关.请注意,这通常是我的方法.您也可以使用RSB直接构建BSP.我在下面的一个额外步骤中进行了此操作.另请注意,我从头写下这些内容.所以我可能会错过某些步骤或其中有错别字.

Basically it should be about the following steps. Note that this is normally my approach. You can also use RSB to build the BSP directly. I do it in an extra step in the following. Please also note that I wrote these down from my head. So I might miss some step or have some typo in it.

  • 创建您的工作目录

  • create your working directory

mkdir -p $HOME/rtems-install/rtems/5/bin

  • 克隆当前的RTEMS和源构建器:

  • Clone current RTEMS and source builder:

    cd $HOME
    git clone git://git.rtems.org/rtems.git
    git clone git://git.rtems.org/rtems-source-builder.git
    

  • 设置PATH,以便它包含您的rtems开发环境.我建议在某些环境文件或bashrc中执行此操作.但是您也可以在每次启动控制台时这样做:

  • Set PATH so it contains your rtems devel environment. I would recommend to do that in some environment file or the bashrc. But you can also do it every time you start a console:

    export PATH="$HOME/rtems-install/rtems/5/bin:$PATH"
    

  • 构建您的工具(这需要很多时间;在一台核心计算机上需要数小时;如果将多个核心提供给您的VM,它将大大提高速度)

  • Build your tools (this needs a lot of time; multiple hours on a single core machine; if you give multiple cores to your VM it will speed up a lot)

    cd $HOME/rtems-source-builder/rtems
    ../source-builder/sb-set-builder \
        --log="rsb-sparc.log" \
        --prefix="$HOME/rtems-install/rtems/5/" \
        --without-rtems \
        "5/rtems-sparc"
    

  • 构建并安装RTEMS BSP(在此示例中为sparc模拟器为erc32):

  • Build and install RTEMS BSP (erc32 for the sparc simulator in this example):

    cd $HOME/rtems
    ./bootstrap
    mkdir $HOME/rtems-build
    cd $HOME/rtems-build
    "${HOME}/rtems/configure" \
        "--target=sparc" \
        "--prefix=$HOME/rtems-install/rtems/5/" \
        "--enable-rtemsbsp=erc32" \
        "--enable-tests=samples" \
        "--disable-networking"
    make
    make install
    

  • 您现在应该在$ HOME/rtems-install/rtems/5/中安装了BSP.

  • You now should have a BSP installed in $HOME/rtems-install/rtems/5/.

    对于BBB,我还创建了一个回购仓库,其中包含执行所有必要步骤的脚本.参见 https://gitlab.com/c-mauderer/rtems-bbb .

    For the BBB I also created a repo some time back that contains scripts to do all the necessary steps. See https://gitlab.com/c-mauderer/rtems-bbb.

    这篇关于在rtems(VB)上找不到构建集文件4.11/rtems-sparc的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

  • 09-15 06:17