【问题标题】:Yocto build for preempt_rtYocto 为 preempt_rt 构建
【发布时间】:2016-09-13 15:17:44
【问题描述】:

我正在为 beaglebone black 构建一个自定义内核。按照本指南 (http://android.serverbox.ch/?p=1273),我可以使用基本映像成功启动到控制台。

当我尝试使用命令构建实时内核补丁时:

bitbake core-image-rt

我收到以下错误消息:

Loading cache: 100% |###############################| ETA:  00:00:00
Loaded 1222 entries from dependency cache.
Parsing recipes: 100% |#############################| Time: 00:00:00
Parsing of 862 .bb files complete (861 cached, 1 parsed). 1221 targets, 61 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
NOTE: multiple providers are available for virtual/kernel (linux-yocto, linux-dummy)
NOTE: consider defining a PREFERRED_PROVIDER entry to match virtual/kernel
ERROR: Nothing PROVIDES 'linux-yocto-rt' (but /home/ste/yocto/poky/meta/recipes-rt/images/core-image-rt.bb DEPENDS on or otherwise requires it)
ERROR: linux-yocto-rt was skipped: incompatible with machine beaglebone (not in COMPATIBLE_MACHINE)
ERROR: linux-yocto-rt was skipped: incompatible with machine beaglebone (not in COMPATIBLE_MACHINE)
ERROR: linux-yocto-rt was skipped: incompatible with machine beaglebone (not in COMPATIBLE_MACHINE)
ERROR: Required build target 'core-image-rt' has no buildable providers.
Missing or unbuildable dependency chain was: ['core-image-rt', 'linux-yocto-rt']
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

我应用了 README 文件中的建议(或者我认为我做了......):

The recipes-rt recipes provide package and image recipes for using and testing
the PREEMPT_RT kernel. The core-image-rt*.bb images are minimal images with
a couple extra packages, including rt-tests. In order to build the image with
the linux-yocto-rt kernel, be sure to include the following line in your
local.conf, bblayers.conf, or your $MACHINE.conf.

PREFERRED_PROVIDER_virtual/kernel = "linux-yocto-rt"

If you are creating a new BSP which should use linux-yocto-rt by default,
use the line above in the $MACHINE.conf in your BSP layer, and specify the
following in a linux-yocto-rt bbappend recipe:

COMPATIBLE_MACHINE_$MACHINE = $MACHINE

但仍会收到相同的错误消息。
有没有人在使用 Yocto 构建实时内核方面取得任何成功? 无法在任何地方为此找到明确的程序。

【问题讨论】:

    标签: linux beagleboneblack yocto bitbake preempt-rt


    【解决方案1】:

    我能够通过将以下内容添加到 build/conf/local.conf 来构建 core-image-rt

    PREFERRED_PROVIDER_virtual/kernel = "linux-yocto-rt"
    COMPATIBLE_MACHINE_beaglebone = "beaglebone"
    COMPATIBLE_MACHINE_quilt-native = "beaglebone"
    

    【讨论】:

    • 我可以使用它使构建成功,但图像无法启动:-(
    • 您连接到串行控制台了吗? u-boot 运行内核后,你得到任何内核输出还是什么都没有?
    • 不,未连接,我需要一根电缆
    • 我的/boot文件夹好像是空的,里面应该有一个uImage文件
    • 内核配置看起来不错...如果有机会我明天会尝试运行它。一定要买一根电缆,尽管即使你把它整理好,你也一定会再次需要它(即使使用不同的电路板)。
    猜你喜欢
    • 2016-06-16
    • 2019-08-05
    • 2018-01-02
    • 2017-06-02
    • 2017-06-04
    • 2017-10-11
    • 2020-07-28
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多