简体   繁体   English

Yocto:没有可用的食谱(完整)

[英]Yocto: No recipes available (tegra)

I'm attempting to create an image with 我正在尝试使用创建图像

bitbake core-image-minimal

For my jetson nano (nvidia tegra). 对于我的Jetson Nano(Nvidia积分)。 I've added the meta-layer for tegra devices from https://github.com/madisongh/meta-tegra and added it to bblayer.conf. 我已经从https://github.com/madisongh/meta-tegra添加了用于集成设备的元层,并将其添加到bblayer.conf中。 I have also added lines 我还添加了行

IMAGE_CLASSES += "image_types_tegra"               
IMAGE_FSTYPES = "tegraflash"

to the local.conf file to be able to flash it later. 到local.conf文件,以便以后可以将其刷新。

When I attempt to run the bitbake command to create the image, I get the error message: 当我尝试运行bitbake命令创建图像时,收到错误消息:

ERROR: No recipes available for:
/home/mci/yocto/jetson-nano/meta-tegra/recipes-graphics/vulkan/vulkan-loader_1.1.%.bbappend
/home/mci/yocto/jetson-nano/meta-tegra/recipes-graphics/vulkan/vulkan-tools_1.1.%.bbappend
/home/mci/yocto/jetson-nano/meta-tegra/recipes-graphics/wayland/weston_7.0.0.bbappend

But aren't the files it says there is no recipes for the same recipes it's looking for? 但是它说的文件不是没有要寻找的相同食谱的食谱吗? Isn't "vulkan-loader_1.1.%.bbappend" a recipe? “ vulkan-loader_1.1。%。bbappend”不是食谱吗?

How do I solve this problem? 我该如何解决这个问题? Is it because it can't find the files or is the bbappend not the recipes but something else? 是因为找不到文件,还是因为bbappend不是食谱而是其他东西?

我删除了所有内容,然后重新开始构建,执行完全相同的过程,并将所有相同的行添加到local.conf和bblayer.conf ...但是这次,bitbake命令运行完全没有错误。

Michael, 迈克尔,

I don't have an answer for the vulkan pieces but I do have a few pointers since we seem to be going down a similar path with the nano. 我对这些俗世的作品没有任何答案,但是我确实有一些建议,因为我们似乎在纳米方面走了相似的道路。

  1. Use the warrior branch of yocto 使用yocto的战士分支
  2. You'll need to download the binary pieces of the nvidia sdk through the SDK manager 您需要通过SDK管理器下载nvidia sdk的二进制文件
  3. Point to these sdk packages in your local.conf with the NVIDIA_DEVNET_MIRROR variable. 使用NVIDIA_DEVNET_MIRROR变量指向local.conf中的这些sdk包。 ex: "file:///home/nvidia/yocto/git/poky/devnet/nano-dev" 例如:“ file:/// home / nvidia / yocto / git / poky / devnet / nano-dev”
  4. Because of the binary pieces in step 2, you need to use an older gcc version which isn't really supported in warrior. 由于第2步中的二进制代码,您需要使用Warrior真正不支持的旧版gcc版本。 I used the linaro-7.2 layer. 我使用了linaro-7.2层。
  5. Since gcc7 is not supported in warrior, yocto / openembedded will attempt to pass flags to gcc which will make the build fail. 由于战士不支持gcc7,因此yocto / openembedded将尝试将标志传递给gcc,这将使构建失败。 Here's a summary, which I hope is complete, to help you through this. 这是一个摘要,希望对您有所帮助。

Add DEBUG_PREFIX_MAP="" to local.conf and apply the following patch. 将DEBUG_PREFIX_MAP =“”添加到local.conf并应用以下补丁。

diff --git a/meta/recipes-core/busybox/busybox.inc b/meta/recipes-core/busybox/busybox.inc
index 174ce5a8c0..e8d651a010 100644
--- a/meta/recipes-core/busybox/busybox.inc
+++ b/meta/recipes-core/busybox/busybox.inc
@@ -128,7 +128,7 @@ do_prepare_config () {
                ${S}/.config.oe-tmp > ${S}/.config
        fi
        sed -i 's/CONFIG_IFUPDOWN_UDHCPC_CMD_OPTIONS="-R -n"/CONFIG_IFUPDOWN_UDHCPC_CMD_OPTIONS="-R -b"/' ${S}/.config
-       sed -i 's|${DEBUG_PREFIX_MAP}||g' ${S}/.config
+       #sed -i 's|${DEBUG_PREFIX_MAP}||g' ${S}/.config
 }

 # returns all the elements from the src uri that are .cfg files
diff --git a/meta/recipes-core/libxcrypt/libxcrypt.bb b/meta/recipes-core/libxcrypt/libxcrypt.bb
index 3b9af6d739..350f7807a7 100644
--- a/meta/recipes-core/libxcrypt/libxcrypt.bb
+++ b/meta/recipes-core/libxcrypt/libxcrypt.bb
@@ -24,7 +24,7 @@ FILES_${PN} = "${libdir}/libcrypt*.so.* ${libdir}/libcrypt-*.so ${libdir}/libowc
 S = "${WORKDIR}/git"

 BUILD_CPPFLAGS = "-I${STAGING_INCDIR_NATIVE} -std=gnu99"
-TARGET_CPPFLAGS = "-I${STAGING_DIR_TARGET}${includedir} -Wno-error=missing-attributes"
-CPPFLAGS_append_class-nativesdk = " -Wno-error=missing-attributes"
+TARGET_CPPFLAGS = "-I${STAGING_DIR_TARGET}${includedir} "
+CPPFLAGS_append_class-nativesdk = " "

 BBCLASSEXTEND = "nativesdk"

Best of luck! 祝你好运! I apologize if this is a bit rough, but I'm just getting through this myself. 如果这有点粗糙,我深表歉意,但我本人只是在解决这个问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM