我正在用yocto覆盆子制作食谱。我想从git的服务器获取一些文件。这是我的食谱:
DESCRIPTION = "test"
SECTION = "abc"
LICENSE = "CLOSED"
PR = "r0"
SRC_URI =
"git://gerrit.g1.abc.corp:29418/cardlog;protocol=ssh;rev=master"
"
PACKAGE_ARCH = "${MACHINE_ARCH}"
S = "${WORKDIR}/git"
inherit pkgconfig cmake
do_install() {
install -d ${D}${base_bindir}
install -m 0755 cardlog ${D}${base_bindir}
}
运行bitbake时收到此错误消息:
ERROR: abc-cardlog-1.0-r0 do_fetch:
Fetcher failure:
Fetch command export DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/dbus-j365B7zbUr,guid=20e178f2b82d0bb8e57068dc59e83e63";
export SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"; export no_proxy="localhost,127.0.0.0/8,::1";
export NO_PROXY="localhost,127.0.0.0/8,::1";
export PATH="/home/abc-int/Desktop/yocto_r/build-rpi/tmp/sysroots-uninative/x86_64-linux/usr/bin:
/home/abc-int/Desktop/yocto_r/poky/scripts:
/home/abc-int/Desktop/yocto_r/build-rpi/tmp/work/raspberrypi-poky-linux-gnueabi/abc-cardlog/1.0-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi:
/home/abc-int/Desktop/yocto_r/build-rpi/tmp/work/raspberrypi-poky-linux-gnueabi/abc-cardlog/1.0-r0/recipe-sysroot/usr/bin/crossscripts:
/home/abc-int/Desktop/yocto_r/build-rpi/tmp/work/raspberrypi-poky-linux-gnueabi/abc-cardlog/1.0-r0/recipe-sysroot-native/usr/sbin:
/home/abc-int/Desktop/yocto_r/build-rpi/tmp/work/raspberrypi-poky-linux-gnueabi/abc-cardlog/1.0-r0/recipe-sysroot-native/usr/bin:
/home/abc-int/Desktop/yocto_r/build-rpi/tmp/work/raspberrypi-poky-linux-gnueabi/abc-cardlog/1.0-r0/recipe-sysroot-native/sbin:
/home/abc-int/Desktop/yocto_r/build-rpi/tmp/work/raspberrypi-poky-linux-gnueabi/abc-cardlog/1.0-r0/recipe-sysroot-native/bin:
/home/abc-int/Desktop/yocto_r/poky/bitbake/bin:/home/abc-int/Desktop/yocto_r/build-rpi/tmp/hosttools";
export HOME="/home/abc-int"; git -c core.fsyncobjectfiles=0 ls-remote ssh://gerrit.g1.abc.corp:29418/cardlog failed with exit code 128, output:
error: cannot run ssh: No such file or directory
fatal: unable to fork
ERROR: abc-cardlog-1.0-r0 do_fetch: Function failed: base_do_fetch
ERROR: Logfile of failure stored in: /home/abc-int/Desktop/yocto_r/build-rpi/tmp/work/raspberrypi-poky-linux-gnueabi/abc-cardlog/1.0-r0/temp/log.do_fetch.16941
ERROR: Task (/home/abc-int/Desktop/yocto_r/build-rpi/../poky/meta-abc/recipes-abc-cardlog/abc-cardlog/abc-cardlog.bb:do_fetch) failed with exit code '1'
我已经在另一个yocto项目上成功运行了这个食谱。我没有问题,我的文件是从git下载的。
我把我的工作搬到了rasbberrypi板上。所以我创建了一个带有覆盆子层的新yocto项目。我添加了自己的图层。我试着用这个食谱复制一些文件,一切都运行正常。
有什么建议吗?
答案 0 :(得分:1)
我假设你正在使用摇滚乐。什么可能解决您的问题是将rocko分支的最新上游版本合并到您的poky目录中,例如通过执行git pull
。
我今天处理同样的问题,bitbake无法找到ssh的原因是,自Rocko开始,OpenEmbedded开发人员决定通过将包含符号链接的目录替换为“已批准”的本机二进制文件来清理构建环境。此批准的二进制文件列表由在meta / conf / bitbake.conf中定义的HOSTTOOLS变量确定。有人意外地将ssh从该列表中删除,该列表已被修复。