构建Yocto镜像IMX8



我正试图从这里学习关于Yocto图像的SolidRun教程(https://github.com/SolidRun/meta-solidrun-arm-imx8)。

我的命令顺序如下:

首先,我安装必需品:

sudo apt update
sudo apt upgrade
sudo apt install -y bc build-essential chrpath cpio diffstat gawk git texinfo wget gdisk 
python3 python3-pip
sudo apt install python-is-python3
sudo apt install python2

我在yocto目录(我想在那里构建映像)上手动安装repo,并使用repo:

mkdir yocto
cd yocto    
mkdir -p ~/.bin
PATH="${HOME}/.bin:${PATH}"
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/.bin/repo
chmod a+rx ~/.bin/repo
repo init -u https://source.codeaurora.org/external/imx/imx-manifest -b imx-linux-zeus -m 
imx-5.4.70-2.3.0.xml
repo sync

然后我像他们在教程中那样下载,并进行其他步骤:

cd sources
git clone https://github.com/SolidRun/meta-solidrun-arm-imx8.git --branch zeus-imx8mp
cd ..
DISTRO=fsl-imx-xwayland MACHINE=imx8mpsolidrun source imx-setup-release.sh -b build-xwayland-imx8mpsolidrun

我加上这行BBLAYERS+="${BSPDIR}/sources/meta-solidrun-arm-imx8">进入conf/blayers.conf.

然后:

bitbake core-image-minimal

但我收到了很多这样的错误:

错误:rpm-native-14.14.2.1-r0 do_fetch:获取程序失败:获取命令导出PSEUDO_DISABLED=1;unset _PYTHON_SYSCONFIGDATA_NAME;出口PATH="/home/holoh/yocto/sources/poky/scripts/native intercept:/home/holoh/yocto/build-xwayland-imx8mpsolidrun/tmp/work/x86_64-linux/rpm native/1.14.2.1-r0/recipe sysroot native/usr/bin/python3 native:/home/hoolh/yocto/sources/poky/scripts:/home/hooho/yocto/build-xwayland-imx8mpsolidrun/tmp/wwork/x86_64-4-linux/rpm native/14.14.2.1-r0/recipe sysroot native/usr/bin/x86_64-linux:/home/holo h/yocto/build xwayland-imx8mpsolidrun/tmp/work/x86_64-linux/rpm native/1.14.2.1-r0/recipe sysroot native/usr/bin:/home/holoh/yocto/build-xwayland-imx8mpsolidrun/tmp/wwork/x86_63-linux/rpm netive/1.14.2.1-r0/recipment sysroot native/usr/sbin:/home/hoolh/yocto/build-xwayland-i mx8mpsoidrun/tmp/work/x86_64-linux/rpm local/1.14.2.1-r 0/recipulation sysroot netive/usr/bin://home/holoh/yocto/uild-xwayland-imx8mpsolidrun/tmp/work/x86_64-linux/rpm native/1.14.2.1-r0/recipe sysroot native/sbin:/home/holoh/yocto/build-xwayland-imx8mpsolidrun/tmp/work/x86_664-linux/rpm netive/1.14.2.1-r0/recipment sysroot native/bin:/home/hoolh/yocto/sources/poky/bitbake/bin:/home/holoh/yocto/build-xwayland-imx8mpsolidrun/tmp/hosttools";;export HOME="/home/hooh";;LANG=C git-C core.fsyncojectfiles=0克隆--裸--镜像git://github.com/rpm-software-management/rpm/home/holoh/yocto/downloads/git2/github.com.rpm软件管理.rpm--进度失败,退出代码为128,输出:克隆到裸存储库"/home/holoh/yocto/downloads/git2/github.com.rpm软件管理.rpm"。。。致命:无法连接到github.com:github.com[0:140.822.121.4]:errno=连接超时

错误:rpm-native-14.14.2.1-r0 do_fetch:URL的获取程序失败:'git://github.com/rpm-software-management/rpm;分支=rpm-4.14.x’。无法从任何源获取URL。错误:存储了故障日志文件在:/home/holoh/yocto/build-xwayland-imx8mpsolidrun/tmp/work/x86_64-linux/rpm native/1.14.2.1-r0/temp/log.do_fetch.2200错误:任务(虚拟:本机:/home/holoh/yocto/sources/poky/meta/precipes devtools/rpm/rpm4.14.2.1.bb:do_fetch)失败,退出代码为"1"错误:监狱-0.12-r0 do_fetch:Fetcher失败:Fetch命令导出PSEUDO_DISABLED=1;取消设置_PYTHON_SYSCONFIGDATA_NAME;export PATH="/home/holoh/yocto/build-xwayland-imx8mpsolidrun/tmp/work/imx8mpsolidrun poky linux/jailhouse/0.12-r0/recipe sysroot native/usr/bin/python3 native:/home/holoh/yocto/sources/poky/scripts:/home/holoh/yocto/builder-xwayland-imx8psolidrun/tmp/work/Imx8mpssolidrun poky linux/jailhouse/0.12-r0/recipe sysroot native/usr/bin/aarch64 poky linux:/home/hoolo/yocto/uild-xwayland-i mx8mpsoridrun/tmp/work/imx8mpsolidrun poky linux/jailhouse/0.12-r0/recipe sysroot/usr/bin/crosscripts:/home/holoh/yocto/build-xwayland-imx8mpsolidrun/tmp/work/imx8mpsolidrun poky linux/jailhousy/0.12-r0/recipe systemroot native/usr/sbin:/home/holoh/yocto/build-xwayland-imx8mpsolidrun/tmp/wwork/imx8mpsolidrun poky linux/jailhouse/0.12-r0/recipment sysroot native/usr/bin:/home/hoolh/yocto/build-xwayland-i mx8mpsoridrun/tmp/work/imx8mpsolidrun poky linux/jailhouse/0.12-r0/recipe sysroot native/sbin:/home/holoh/yocto/build-xwayland-imx8mpsolidrun/tmp/work/imx8mpsolidrun poky linux/jailhouser/0.12-r0/recipe systemroot native/bin:/home/hoolh/yocto/sources/poky/bitbake/bin:/home/holoh/yocto/builder-xwayland-i mx8mpsoidrun/tmp/hosttools";;export HOME="/home/hooh";;LANG=C git-C core.fsyncojectfiles=0克隆--裸--镜像ssh://source.codeaurora.org/external/imx/imx-jailhouse.git/home/holoh/yocto/downloads/git2/source.codeaurora.org.external.imx.imx-jailhouse.git--进度失败,退出代码为128,输出:克隆到裸存储库"/home/holoh/yocto/downloads/git2/source.codorora.org.external.imx.imx-jailhouse.git"。。。ssh:连接到主机source.codeaurora.org端口22:连接超时out致命:无法从远程存储库中读取。

请确保您拥有正确的访问权限和存储库存在。

错误:监狱-0.12-r0 do_fetch:URL的获取程序失败:'git://source.codeaurora.org/external/imx/imx-jailhouse.git;protocol=ssh;分支=imx_5.4.70_2.3.0'。无法从任何源获取URL。错误:存储了故障日志文件在:/home/holoh/yocto/build-xwayland-imx8mpsolidrun/tmp/work/imx8mpsolidrun poky-linux/jailhouse/0.12-r0/temp/log.do_fetch.27149错误:任务(/home/holoh/yocto/sources/meta imx/meta sdk/recipes extended/监狱/监狱_0.12.bb:do_fetch)失败,退出代码为"1"错误:systemd-1_243.2-r0 do_fetch:Fetcher失败:Fetch命令导出PSEUDO_DISABLED=1;取消设置_PYTHON_SYSCONFIGDATA_NAME;export PATH="/home/holoh/yocto/build-xwayland-imx8mpsolidrun/tmp/work/arch64 poky linux/systemd/1_243.2-r0/recipe sysroot native/usr/bin/ppython3 native:/home/holoh/yocto/builder-xwayland-i mx8mpsoidrun/tmp-work/arch64-poky linux/systemsd/1_243.2-r0/recipe-sysroot nativeusr/bin/perl native:/home/holoh/yocto/sources/poky/scripts:/home/holoh/yocto/uild-xwayland_imx8mpsoldrun/tmp/work/aarch64 poky linux/systemd/1_2 43.2-r0/recipe sysroot native/usr/bin/arch64 poky linux:/home/holoh/yocto/build-xwayland-imx8mpsolidrun/tmp/work/arch64 poky linux/systemd/1_243.2-r0/recommipe sysroot/usr/bin/crosscripts:/home/holoh/yocto/build-xwayland-imx8mpsolidrun/tmp/wwork/arch64 popy-linux/systemd:1_243.2-r 0/recomment sysroot native/usr/sbin:/home/hoolh/yocto/build-xwayland-imx8mpslidrun/tmp/work/aarch64 poky linux/系统d/1_243.2-r0/recipe sysroot native/usr/bin:/home/holoh/yocto/build-xwayland-imx8mpsolidrun/tmp/work/arch64 poky linux/systemd/1_2432-r0/recipment sysroot native/sbin:/home-holoh/yocto/build-xwayland-i mx8mpsoridrun/tmp-work/arch64-poky linuxs/systemd/1_243.2-r0/recipe sysroot native/bin:/home/hoolh/yocto/sources/poky/bitbake/bin:/home/holoh/yocto/builder-xwayland-I mx8mpsolidrun/tmp/hosttools";;export HOME="/home/hooh";;LANG=C git-C core.fsyncojectfiles=0克隆--裸--镜像git://github.com/systemd/systemd-stable.git/home/holoh/yocto/downloads/git2/github.com.systemd.systemd-stable.git--进度失败,退出代码为128,输出:克隆到裸存储库'/home/holoh/yocto/downloads/git2/github.com.systemd.systemd-stable.git'。。。致命:无法连接到github.com:github.com[0:140.822.121.4]:errno=连接超时

错误:systemd-1_243.2-r0 do_fetch:URL的获取程序失败:'git://github.com/systemd/systemd-stable.git;protocol=git;branch=v243稳定'。无法从任何源获取URL。错误:存储了故障日志文件在:/home/holoh/yocto/build-xwayland-imx8mpsolidrun/tmp/work/arch64 poky linux/systemd/1_243.2-r0/temp/log.do_fetch.22584错误:任务(/home/holoh/yocto/sources/poky/meta/precipes-core/systemd/systemd_243.2.bb:do_fetch)失败,退出代码为"1">

这似乎会有一些存储库问题,但我已经尝试用以下方法更改回购:

repo init -u https://source.codeaurora.org/external/imx/imx-manifest -b imx-linux-zeus -m 
imx-5.4.70-2.3.8.xml

但它是一样的。本教程没有提供有关构建的更多信息。问题出在哪里?

我在Windows上使用WSL,Ubuntu 20.04。

编辑:我之所以使用内核版本,是因为我遵循了solidrungithub教程的教程。现在我正在Ubuntu 22.04中尝试这个内核和层版本:

repo init -u source.codeaurora.org/external/imx/imx-manifest -b imx-linux-hardknott -m imx-5.10.72-2.2.0.xml 

但现在,我得到了一个新的错误:

错误:m4-nactive-1.4.18-r0 do_compile:oe_runmakefailed错误:m4-Nactive-1.4.18-r0 do-compile:执行'/home/holoh/yocto/build-xwayland-imx8mpsolidrun/tmp/work/x86_64-linux/m4 native/1.4.18-r0/temp/run.do_compile.1018'失败,退出代码1

Yocto正在尝试向下克隆git存储库,但这不起作用。问题是为什么会失败。

Connection timed out

但您的配方实际上是试图从git://source.codeaurora.org/external/imx/imx-jailhouse.git克隆(通过ssh)

有人和你有完全相同的问题

https://community.nxp.com/t5/i-MX-Processors/report-bsp-imx-4-19-35-1-1-0-bug-fetch-jailhouse-failed/m-p/1002652

git diff
diff --git a/imx/meta-sdk/recipes-extended/jailhouse/jailhouse_0.10.bb b/imx/meta-sdk/recipes-extended/jailhouse/jailhouse_0.10.bb
index 2079718dc..fb4e376ec 100644
--- a/imx/meta-sdk/recipes-extended/jailhouse/jailhouse_0.10.bb
+++ b/imx/meta-sdk/recipes-extended/jailhouse/jailhouse_0.10.bb
@@ -1,7 +1,7 @@
require jailhouse.inc

-SRCBRANCH = "imx_v0.10_y"
-IMX_JAILHOUSE_SRC ?= "git://source.codeaurora.org/external/imx/imx-jailhouse.git;protocol=ssh"
+SRCBRANCH = "imx_4.19.35_1.1.0"
+IMX_JAILHOUSE_SRC ?= "git://source.codeaurora.org/external/imx/imx-jailhouse.git;protocol=https"

因此,显而易见的解决方案是将protocol=ssh更改为protocol=https,但这只是问题的开始。你应该问两个真正的问题。

  • 问题一,这个问题在2019年解决了(据称),为什么你没有这个层/配方的持续版本。

  • 问题二,您正在2022年构建一个4.19 Linux内核。4.19于2018年10月发布,所以没关系。但我建议所有新工作都使用5内核。

相关内容

  • 没有找到相关文章

最新更新