【米尔ARM+FPGA架构之作MYD-JX8MMA7开发板】 MYB-JX8MMA7 yocto-build系统镜像
<div class='showpostmsg'> 本帖最后由 mars4zhu 于 2023-3-16 08:46 编辑<h1>2. vmware-ubuntu_yocto-build<a href="http://summerdawn.top:7081/software-notes/vmware-ubuntu_yocto-build.html#vmware-ubuntu-yocto-build" title="Permalink to this heading"></a></h1>
<section id="id1">
<h2>2.1. 配置虚拟机<a href="http://summerdawn.top:7081/software-notes/vmware-ubuntu_yocto-build.html#id1" title="Permalink to this heading"></a></h2>
<dl>
<dt>使用虚拟机的一个好处就是,可以单独分配一个虚拟磁盘文件挂载到Linux系统上,将/home目录、安装的软件、SDK,和自己编写的代码单独保存到这个虚拟磁盘文件,这样不会跟原有的Linux系统、其他软件互相混合,方便管理和迁移。</dt>
<dd>
<p>(后续:从Ubuntu-22.04.1降级到Ubuntu-18.04.6就体会到这种便利之处。)</p>
<img alt="../_images/VMWare-Ubuntu-22.04.1_add-iso.png" src="http://summerdawn.top:7081/_images/VMWare-Ubuntu-22.04.1_add-iso.png" /> <img alt="../_images/VMWare-Ubuntu-22.04.1_add-vmdk.png" src="http://summerdawn.top:7081/_images/VMWare-Ubuntu-22.04.1_add-vmdk.png" /> <img alt="../_images/VMWare-Ubuntu-22.04.1_before-install-sdk.png" src="http://summerdawn.top:7081/_images/VMWare-Ubuntu-22.04.1_before-install-sdk.png" /> <img alt="../_images/VMWare-Ubuntu-22.04.1_fdisk-mkfs-mount-vmdk.png" src="http://summerdawn.top:7081/_images/VMWare-Ubuntu-22.04.1_fdisk-mkfs-mount-vmdk.png" /></dd>
</dl>
<p>按照文档编译流程进行编译,期间出现磁盘空间不够的情形,最后使用VMware的磁盘扩容功能实现。</p>
<blockquote>
<p><img alt="../_images/yocto-bitbake_disk-space-low.png" src="http://summerdawn.top:7081/_images/yocto-bitbake_disk-space-low.png" /> <img alt="../_images/VMWare_disk-expand.png" src="http://summerdawn.top:7081/_images/VMWare_disk-expand.png" /> <img alt="../_images/Ubuntu-disk-partition-resize.png" src="http://summerdawn.top:7081/_images/Ubuntu-disk-partition-resize.png" /></p>
</blockquote>
</section>
<section id="ubuntu-22-04-1yocto">
<h2>2.2. Ubuntu-22.04.1编译yocto<a href="http://summerdawn.top:7081/software-notes/vmware-ubuntu_yocto-build.html#ubuntu-22-04-1yocto" title="Permalink to this heading"></a></h2>
<section id="id2">
<h3>2.2.1. 网络不畅<a href="http://summerdawn.top:7081/software-notes/vmware-ubuntu_yocto-build.html#id2" title="Permalink to this heading"></a></h3>
<pre>
<code>DISTRO=fsl-imx-xwayland MACHINE=myd-jx8mma7 source myir-setup-release.sh -b build-xwayland
bitbake -c populate_sdk myir-image-core
ERROR:OE-core's config sanity checker detected a potential misconfiguration.
Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
Following is the list of potential problems / advisories:
Fetcher failure for URL: '<a href="https://www.example.com" target="_blank">https://www.example.com</a>/'. URL <a href="https://www.example.com" target="_blank">https://www.example.com</a>/ doesn't work.
Please ensure your host's network is configured correctly.
If your ISP or network is blocking the above URL,
try with another domain name, for example by setting:
CONNECTIVITY_CHECK_URIS = "<a href="https://www.yoctoproject.org" target="_blank">https://www.yoctoproject.org</a>/" You could also set BB_NO_NETWORK = "1" to disable network
access if all required sources are on local disk.
</code></pre>
<dl>
<dt>解决方案:</dt>
<dd>
<p>BB_NO_NETWORK=1 DISTRO=fsl-imx-xwayland MACHINE=myd-jx8mma7 source myir-setup-release.sh -b build-xwayland</p>
</dd>
</dl>
</section>
<section id="ubuntu-22-04-1">
<h3>2.2.2. Ubuntu-22.04.1版本过高<a href="http://summerdawn.top:7081/software-notes/vmware-ubuntu_yocto-build.html#ubuntu-22-04-1" title="Permalink to this heading"></a></h3>
<pre>
<code>bitbake -c populate_sdk myir-image-core
NOTE: Your conf/bblayers.conf has been automatically updated.
WARNING: Host distribution "ubuntu-22.04" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
</code></pre>
<p>暂时忽略</p>
</section>
<section id="windows">
<h3>2.2.3. Windows共享文件系统不兼容<a href="http://summerdawn.top:7081/software-notes/vmware-ubuntu_yocto-build.html#windows" title="Permalink to this heading"></a></h3>
<p>downloads目录在windows下解压缩到数据盘(NTFS文件系统格式),然后在Ubuntu系统中,在myd-jx8mma7-yocto/目录下创建一个符号链接”downloads”,指向windows下的downloads目录(通过虚拟机的共享目录机制),结果发现如下错误:</p>
<pre>
<code>fatal: detected dubious ownership in repository at '/mnt/hgfs/Repo0/Downloads/Yocto-download-5.10/downloads/git2/git.savannah.gnu.org.config.git'
To add an exception for this directory, call:
git config --global --add safe.directory /mnt/hgfs/Repo0/Downloads/Yocto-download-5.10/downloads/git2/git.savannah.gnu.org.config.git
</code></pre>
<dl>
<dt>解决方案:</dt>
<dd>
<p>重新解压缩到linux文件系统。</p>
</dd>
</dl>
</section>
<section id="python">
<h3>2.2.4. Python版本不符合导致脚本错误<a href="http://summerdawn.top:7081/software-notes/vmware-ubuntu_yocto-build.html#python" title="Permalink to this heading"></a></h3>
<p>ImportError: cannot import name ‘Mapping’ from ‘collections’ (D:Program FilesPythonlibcollections__init__.py)</p>
<pre>
<code>ImportError: cannot import name ‘Mapping‘ from ‘collections‘
(<a href="https://blog.csdn.net/LSH1628340121/article/details/124140926" target="_blank">https://blog.csdn.net/LSH1628340121/article/details/124140926</a> )
</code></pre>
<dl>
<dt>原因分析:</dt>
<dd>
<p>无法从“集合”导入名称“映射”,因为Python3.10版本以后对requests 库进行调整,collections中不能直接调用方法Mapping,MutableMapping</p>
<dl>
<dt>办法就是:找到引用collections模块的__init__.py文件,调整从abc导入:</dt>
<dd>
<p>影响的文件太多,无法一一修改。 安装Python-3.9</p>
</dd>
</dl>
</dd>
</dl>
<ol>
<li>
<p>安装Python-3.9</p>
<blockquote>
<p>ubuntu20.04安装python3.9并设置为默认的python3 (<a href="https://blog.csdn.net/chencaw/article/details/117551298">https://blog.csdn.net/chencaw/article/details/117551298</a>)</p>
</blockquote>
</li>
<li>
<p>缺失sqlite3</p>
<blockquote>
<p>sudo apt install libsqlite3-dev</p>
<p>然后重新编译安装python3.9</p>
</blockquote>
</li>
<li>
<p>../../m4-1.4.18/lib/c-stack.c:55:26: error: missing binary operator before token “(”</p>
<blockquote>
<dl>
<dt>build failure on Ubuntu22.04 from SIGSTKSZ not being an integer literal</dt>
<dd>
<p><a href="https://github.com/DynamoRIO/dynamorio/issues/5434">https://github.com/DynamoRIO/dynamorio/issues/5434</a></p>
</dd>
<dt>Ubuntu22 tina-linux 编译报错记录</dt>
<dd>
<p>1.c-stack.c:55:26: error: missing binary operator before token <a href="https://blog.csdn.net/huuuerli/article/details/128051710" target="_blank">https://blog.csdn.net/huuuerli/article/details/128051710</a></p>
</dd>
</dl>
<ol>
<li>
<p>Ubuntu版本太高,或者m4应当升级到m4-1.4.19以上</p>
</li>
<li>
<p>修改 build-xwayland/tmp/work/x86_64-linux/m4-native/1.4.18-r0/m4-1.4.18/lib/c-stack.c:55</p>
</li>
</ol>
<pre>
<code>-#elif HAVE_LIBSIGSEGV && SIGSTKSZ < 16384
+#elif HAVE_LIBSIGSEGV // && SIGSTKSZ < 16384
</code></pre>
</blockquote>
</li>
<li>
<p>configure: error: raw selected, but required raw.h header file not available</p>
</li>
</ol>
<pre>
<code>| NOTE: The following config.log files may provide further information.
| NOTE: /MYD-JX8MMA7/yocto/myd-jx8mma7-yocto/build-xwayland/tmp/work/x86_64-linux/util-linux-native/2.36.2-r0/build/config.log
| ERROR: configure failed
| WARNING: exit code 1 from a shell command.
| ERROR: Execution of '/MYD-JX8MMA7/yocto/myd-jx8mma7-yocto/build-xwayland/tmp/work/x86_64-linux/util-linux-native/2.36.2-r0/temp/run.do_configure.565950' failed with exit code 1
</code></pre>
<p>不想再弄Ubuntu-22.04.1了,按照文档的要求,一步一步走吧。</p>
</section>
</section>
<section id="id3">
<h2>2.3. Ubuntu-22.04.1编译yocto<a href="http://summerdawn.top:7081/software-notes/vmware-ubuntu_yocto-build.html#id3" title="Permalink to this heading"></a></h2>
<blockquote>
<p>安装Ubuntu-18.04.6之后,基本一切都顺利平静了。。。。</p>
</blockquote>
<pre>
<code>DISTRO=fsl-imx-xwayland MACHINE=myd-jx8mma7 source myir-setup-release.sh -b build-vdisk1
You can now run 'bitbake <target>'
Common targets are:
core-image-minimal
meta-toolchain
meta-toolchain-sdk
adt-installer
meta-ide-support
</code></pre>
<p>setup之后,build目录下的文件如下:</p>
<pre>
<code> tree.
└── conf
├── bblayers.conf
├── bblayers.conf.org
├── local.conf
├── local.conf.org
├── local.conf.sample
└── templateconf.cfg
1 directory, 6 files
</code></pre>
<section id="bitbake-core-image-minimal">
<h3>2.3.1. bitbake core-image-minimal<a href="http://summerdawn.top:7081/software-notes/vmware-ubuntu_yocto-build.html#bitbake-core-image-minimal" title="Permalink to this heading"></a></h3>
<p>成功</p>
<pre>
<code>NOTE: Your conf/bblayers.conf has been automatically updated.
Loading cache: 100% | | ETA:--:--:--
Loaded 0 entries from dependency cache.
Parsing recipes: 100% |###############################################################################################| Time: 0:01:43
Parsing of 3360 .bb files complete (0 cached, 3360 parsed). 4970 targets, 282 skipped, 3 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION = "1.50.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "ubuntu-18.04"
TARGET_SYS = "aarch64-poky-linux"
MACHINE = "myd-jx8mma7"
DISTRO = "fsl-imx-xwayland"
DISTRO_VERSION = "5.10-hardknott"
TUNE_FEATURES = "aarch64 armv8a crc cortexa53 crypto"
TARGET_FPU = ""
meta
meta-poky
meta-oe
meta-multimedia
meta-python
meta-freescale
meta-freescale-3rdparty
meta-freescale-distro
meta-bsp
meta-sdk
meta-ml
meta-v2x
meta-nxp-demo-experience
meta-chromium
meta-clang
meta-gnome
meta-networking
meta-filesystems
meta-qt5
meta-python2
meta-virtualization= "<unknown>:<unknown>"
Initialising tasks: 100% |############################################################################################| Time: 0:00:05
Sstate summary: Wanted 1284 Local 0 Network 0 Missed 1284 Current 0 (0% match, 0% complete)
NOTE: Executing Tasks
NOTE: Tasks Summary: Attempted 3419 tasks of which 0 didn't need to be rerun and all succeeded.
</code></pre>
</section>
<section id="bitbake-meta-toolchain">
<h3>2.3.2. bitbake meta-toolchain<a href="http://summerdawn.top:7081/software-notes/vmware-ubuntu_yocto-build.html#bitbake-meta-toolchain" title="Permalink to this heading"></a></h3>
<p>成功</p>
<pre>
<code>NOTE: Your conf/bblayers.conf has been automatically updated.
Loading cache: 100% |############################################| Time: 0:00:01
Loaded 4970 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION = "1.50.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "ubuntu-18.04"
TARGET_SYS = "aarch64-poky-linux"
MACHINE = "myd-jx8mma7"
DISTRO = "fsl-imx-xwayland"
DISTRO_VERSION = "5.10-hardknott"
TUNE_FEATURES = "aarch64 armv8a crc cortexa53 crypto"
TARGET_FPU = ""
meta
meta-poky
meta-oe
meta-multimedia
meta-python
meta-freescale
meta-freescale-3rdparty
meta-freescale-distro
meta-bsp
meta-sdk
meta-ml
meta-v2x
meta-nxp-demo-experience
meta-chromium
meta-clang
meta-gnome
meta-networking
meta-filesystems
meta-qt5
meta-python2
meta-virtualization= "<unknown>:<unknown>"
Initialising tasks: 100% |#######################################| Time: 0:00:02
Sstate summary: Wanted 664 Local 0 Network 0 Missed 664 Current 1058 (0% match, 61% complete)
NOTE: Executing Tasks
NOTE: Tasks Summary: Attempted 4286 tasks of which 2865 didn't need to be rerun and all succeeded.
</code></pre>
</section>
<section id="bitbake-meta-go-toolchain">
<h3>2.3.3. bitbake meta-go-toolchain<a href="http://summerdawn.top:7081/software-notes/vmware-ubuntu_yocto-build.html#bitbake-meta-go-toolchain" title="Permalink to this heading"></a></h3>
<p>成功</p>
<pre>
<code>Loading cache: 100% |############################################| Time: 0:00:00
Loaded 4970 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION = "1.50.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "ubuntu-18.04"
TARGET_SYS = "aarch64-poky-linux"
MACHINE = "myd-jx8mma7"
DISTRO = "fsl-imx-xwayland"
DISTRO_VERSION = "5.10-hardknott"
TUNE_FEATURES = "aarch64 armv8a crc cortexa53 crypto"
TARGET_FPU = ""
meta
meta-poky
meta-oe
meta-multimedia
meta-python
meta-freescale
meta-freescale-3rdparty
meta-freescale-distro
meta-bsp
meta-sdk
meta-ml
meta-v2x
meta-nxp-demo-experience
meta-chromium
meta-clang
meta-gnome
meta-networking
meta-filesystems
meta-qt5
meta-python2
meta-virtualization= "<unknown>:<unknown>"
Initialising tasks: 100% |#######################################| Time: 0:00:02
Sstate summary: Wanted 46 Local 0 Network 0 Missed 46 Current 1723 (0% match, 97% complete)
NOTE: Executing Tasks
NOTE: Tasks Summary: Attempted 4391 tasks of which 4297 didn't need to be rerun and all succeeded.
</code></pre>
</section>
<section id="bitbake-meta-toolchain-qt5">
<h3>2.3.4. bitbake meta-toolchain-qt5<a href="http://summerdawn.top:7081/software-notes/vmware-ubuntu_yocto-build.html#bitbake-meta-toolchain-qt5" title="Permalink to this heading"></a></h3>
<p>成功</p>
<pre>
<code>Loading cache: 100% |############################################| Time: 0:00:00
Loaded 4970 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION = "1.50.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "ubuntu-18.04"
TARGET_SYS = "aarch64-poky-linux"
MACHINE = "myd-jx8mma7"
DISTRO = "fsl-imx-xwayland"
DISTRO_VERSION = "5.10-hardknott"
TUNE_FEATURES = "aarch64 armv8a crc cortexa53 crypto"
TARGET_FPU = ""
meta
meta-poky
meta-oe
meta-multimedia
meta-python
meta-freescale
meta-freescale-3rdparty
meta-freescale-distro
meta-bsp
meta-sdk
meta-ml
meta-v2x
meta-nxp-demo-experience
meta-chromium
meta-clang
meta-gnome
meta-networking
meta-filesystems
meta-qt5
meta-python2
meta-virtualization= "<unknown>:<unknown>"
Initialising tasks: 100% |#######################################| Time: 0:00:04
Sstate summary: Wanted 620 Local 0 Network 0 Missed 620 Current 2136 (0% match, 77% complete)
NOTE: Executing Tasks
NOTE: Tasks Summary: Attempted 6826 tasks of which 5518 didn't need to be rerun and all succeeded.
</code></pre>
</section>
<section id="bitbake-meta-toolchain-sdk">
<h3>2.3.5. bitbake meta-toolchain-sdk<a href="http://summerdawn.top:7081/software-notes/vmware-ubuntu_yocto-build.html#bitbake-meta-toolchain-sdk" title="Permalink to this heading"></a></h3>
<p>失败</p>
<pre>
<code>Loading cache: 100% |############################################| Time: 0:00:01
Loaded 4970 entries from dependency cache.
ERROR: Nothing PROVIDES 'meta-toolchain-sdk'. Close matches:
meta-go-toolchain
meta-toolchain
meta-toolchain-qt5
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
</code></pre>
<dl>
<dt>原因:</dt>
<dd>
<p>bitbake中没有meta-toolchain-sdk这一构建目标。</p>
</dd>
</dl>
</section>
<section id="bitbake-myir-image-core">
<h3>2.3.6. bitbake myir-image-core<a href="http://summerdawn.top:7081/software-notes/vmware-ubuntu_yocto-build.html#bitbake-myir-image-core" title="Permalink to this heading"></a></h3>
<p>失败</p>
<pre>
<code>Currently8 running tasks (1447 of 7558)19% |################
Task (/MYD-JX8MMA7/yocto/myd-jx8mma7-yocto/sources/poky/meta/recipes-devtools/binutils/binutils-cross_2.36.bb:do_compile) failed with exit code '1'
| make: Leaving directory '/MYD-JX8MMA7/yocto/myd-jx8mma7-yocto/build-vdisk1/tmp/work/x86_64-linux/binutils-cross-aarch64/2.36.1-r0/git/build.x86_64-linux.aarch64-poky-linux/gold'
| Makefile:1157: recipe for target 'all-recursive' failed
| make: *** Error 1
| make: Leaving directory '/MYD-JX8MMA7/yocto/myd-jx8mma7-yocto/build-vdisk1/tmp/work/x86_64-linux/binutils-cross-aarch64/2.36.1-r0/git/build.x86_64-linux.aarch64-poky-linux/gold'
| Makefile:897: recipe for target 'all' failed
| make: *** Error 2
| make: Leaving directory '/MYD-JX8MMA7/yocto/myd-jx8mma7-yocto/build-vdisk1/tmp/work/x86_64-linux/binutils-cross-aarch64/2.36.1-r0/git/build.x86_64-linux.aarch64-poky-linux/gold'
| Makefile:6121: recipe for target 'all-gold' failed
| make: *** Error 2
| make: *** Waiting for unfinished jobs....
| make: Leaving directory '/MYD-JX8MMA7/yocto/myd-jx8mma7-yocto/build-vdisk1/tmp/work/x86_64-linux/binutils-cross-aarch64/2.36.1-r0/git/build.x86_64-linux.aarch64-poky-linux/ld'
</code></pre>
</section>
<section id="id4">
<h3>2.3.7. bitbake myir-image-coreEEWORLDLINKTK12</h3>
<blockquote>
<p>再次执行bitbake,该错误消失。但是又出现如下错误:</p>
</blockquote>
<pre>
<code>| g++-fno-PIE -c -isystem/MYD-JX8MMA7/yocto/myd-jx8mma7-yocto/build-vdisk1/tmp/work/x86_64-linux/gcc-cross-aarch64/10.2.0-r0/recipe-sysroot-native/usr/include -O2 -pipe -DIN_GCC-DCROSS_DIRECTORY_STRUCTURE -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -I. -I. -I../../../../../../../work-shared/gcc-10.2.0-r0/gcc-10.2.0/gcc -I../../../../../../../work-shared/gcc-10.2.0-r0/gcc-10.2.0/gcc/. -I../../../../../../../work-shared/gcc-10.2.0-r0/gcc-10.2.0/gcc/../include -I../../../../../../../work-shared/gcc-10.2.0-r0/gcc-10.2.0/gcc/../libcpp/include-I../../../../../../../work-shared/gcc-10.2.0-r0/gcc-10.2.0/gcc/../libdecnumber -I../../../../../../../work-shared/gcc-10.2.0-r0/gcc-10.2.0/gcc/../libdecnumber/dpd -I../libdecnumber -I../../../../../../../work-shared/gcc-10.2.0-r0/gcc-10.2.0/gcc/../libbacktrace -o ipa-split.o -MT ipa-split.o -MMD -MP -MF ./.deps/ipa-split.TPo ../../../../../../../work-shared/gcc-10.2.0-r0/gcc-10.2.0/gcc/ipa-split.c
| {standard input}: Assembler messages:
| {standard input}:495187: Warning: end of file not at end of a line; newline inserted
| {standard input}:496713: Error: number of operands mismatch for `mov'
| {standard input}: Error: open CFI at the end of file; missing .cfi_endproc directive
| g++: internal compiler error: Killed (program cc1plus)
| Please submit a full bug report,
| with preprocessed source if appropriate.
| See <file:///usr/share/doc/gcc-7/README.Bugs> for instructions.
| Makefile:1118: recipe for target 'insn-emit.o' failed
| make: *** Error 4
| make: *** Waiting for unfinished jobs....
| ERROR: oe_runmake failed
| rm gcc.pod
| make: Leaving directory '/MYD-JX8MMA7/yocto/myd-jx8mma7-yocto/build-vdisk1/tmp/work/x86_64-linux/gcc-cross-aarch64/10.2.0-r0/gcc-10.2.0/build.x86_64-linux.aarch64-poky-linux/gcc'
| Makefile:4404: recipe for target 'all-gcc' failed
| make: *** Error 2
| WARNING: exit code 1 from a shell command.
| ERROR: Execution of '/MYD-JX8MMA7/yocto/myd-jx8mma7-yocto/build-vdisk1/tmp/work/x86_64-linux/gcc-cross-aarch64/10.2.0-r0/temp/run.do_compile.104857' failed with exit code 1
ERROR: Task (/MYD-JX8MMA7/yocto/myd-jx8mma7-yocto/sources/poky/meta/recipes-devtools/gcc/gcc-cross_10.2.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2805 tasks of which 1492 didn't need to be rerun and 1 failed.
Summary: 1 task failed:
/MYD-JX8MMA7/yocto/myd-jx8mma7-yocto/sources/poky/meta/recipes-devtools/gcc/gcc-cross_10.2.bb:do_compile
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
Currently8 running tasks (4862 of 7558)64%
</code></pre>
</section>
<section id="id5">
<h3>2.3.8. bitbake myir-image-coreEEWORLDLINKTK13</h3>
<p>后续执行后,成功。</p>
<pre>
<code>bitbake myir-image-core
Loading cache: 100% |######################################################################################| Time: 0:00:01
Loaded 4970 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies
NOTE: Multiple providers are available for runtime linux-firmware-bcm4359-pcie (firmware-nxp-wifi, linux-firmware)
Consider defining a PREFERRED_RPROVIDER entry to match linux-firmware-bcm4359-pcie
Build Configuration:
BB_VERSION = "1.50.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "ubuntu-18.04"
TARGET_SYS = "aarch64-poky-linux"
MACHINE = "myd-jx8mma7"
DISTRO = "fsl-imx-xwayland"
DISTRO_VERSION = "5.10-hardknott"
TUNE_FEATURES = "aarch64 armv8a crc cortexa53 crypto"
TARGET_FPU = ""
meta
meta-poky
meta-oe
meta-multimedia
meta-python
meta-freescale
meta-freescale-3rdparty
meta-freescale-distro
meta-bsp
meta-sdk
meta-ml
meta-v2x
meta-nxp-demo-experience
meta-chromium
meta-clang
meta-gnome
meta-networking
meta-filesystems
meta-qt5
meta-python2
meta-virtualization= "<unknown>:<unknown>"
Initialising tasks: 100% |#################################################################################| Time: 0:00:09
Sstate summary: Wanted 1781 Local 0 Network 0 Missed 1781 Current 1293 (0% match, 42% complete)
NOTE: Executing Tasks
NOTE: Tasks Summary: Attempted 7558 tasks of which 3433 didn't need to be rerun and all succeeded.
</code></pre>
</section>
<section id="bitbake-c-populate-sdk-myir-image-core">
<h3>2.3.9. bitbake -c populate_sdk myir-image-coreEEWORLDLINKTK14</h3>
<p>成功</p>
<pre>
<code>bitbake -c populate_sdk myir-image-core
Loading cache: 100% |######################################################################################| Time: 0:00:01
Loaded 4970 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies
NOTE: Multiple providers are available for runtime linux-firmware-bcm4359-pcie (firmware-nxp-wifi, linux-firmware)
Consider defining a PREFERRED_RPROVIDER entry to match linux-firmware-bcm4359-pcie
Build Configuration:
BB_VERSION = "1.50.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "ubuntu-18.04"
TARGET_SYS = "aarch64-poky-linux"
MACHINE = "myd-jx8mma7"
DISTRO = "fsl-imx-xwayland"
DISTRO_VERSION = "5.10-hardknott"
TUNE_FEATURES = "aarch64 armv8a crc cortexa53 crypto"
TARGET_FPU = ""
meta
meta-poky
meta-oe
meta-multimedia
meta-python
meta-freescale
meta-freescale-3rdparty
meta-freescale-distro
meta-bsp
meta-sdk
meta-ml
meta-v2x
meta-nxp-demo-experience
meta-chromium
meta-clang
meta-gnome
meta-networking
meta-filesystems
meta-qt5
meta-python2
meta-virtualization= "<unknown>:<unknown>"
Initialising tasks: 100% |#################################################################################| Time: 0:00:07
Sstate summary: Wanted 0 Local 0 Network 0 Missed 0 Current 2439 (0% match, 100% complete)
NOTE: Executing Tasks
NOTE: Tasks Summary: Attempted 6991 tasks of which 6990 didn't need to be rerun and all succeeded.
</code></pre>
</section>
<section id="bitbake-c-populate-sdk-myir-image-full">
<h3>2.3.10. bitbake -c populate_sdk myir-image-fullEEWORLDLINKTK15</h3>
<p>失败</p>
<pre>
<code>| Resolving deltas: 100% (2496/2496), done.
| Note: checking out 'e6c1b8dc8a8b00ee74e7268aac8b18d7260ab1ce'.
|
| You are in 'detached HEAD' state. You can look around, make experimental
| changes and commit them, and you can discard any commits you make in this
| state without impacting any branches by performing another checkout.
|
| If you want to create a new branch to retain commits you create, you may
| do so (now or later) by using -b with the checkout command again. Example:
|
| git checkout -b <new-branch-name>
|
| HEAD is now at e6c1b8d Fix the bazel build by dropping a xtensa-specific select entry.
| Submodule 'cpuinfo' (https://github.com/pytorch/cpuinfo) registered for path 'third_party/cpuinfo'
| Submodule 'googletest' (https://github.com/google/googletest) registered for path 'third_party/googletest'
| Cloning into '/mnt/MYD-JX8MMA7/yocto/myd-jx8mma7-yocto/build-vdisk2/tmp/work/cortexa53-crypto-poky-linux/tensorflow-lite/2.6.0-r0/build/ruy/third_party/cpuinfo'...
| fatal: unable to access 'https://github.com/pytorch/cpuinfo/': gnutls_handshake() failed: Error in the pull function.
| fatal: clone of 'https://github.com/pytorch/cpuinfo' into submodule path '/mnt/MYD-JX8MMA7/yocto/myd-jx8mma7-yocto/build-vdisk2/tmp/work/cortexa53-crypto-poky-linux/tensorflow-lite/2.6.0-r0/build/ruy/third_party/cpuinfo' failed
| Failed to clone 'third_party/cpuinfo'. Retry scheduled
| Cloning into '/mnt/MYD-JX8MMA7/yocto/myd-jx8mma7-yocto/build-vdisk2/tmp/work/cortexa53-crypto-poky-linux/tensorflow-lite/2.6.0-r0/build/ruy/third_party/googletest'...
| fatal: unable to access 'https://github.com/google/googletest/': Failed to connect to github.com port 443: Connection refused
| fatal: clone of 'https://github.com/google/googletest' into submodule path '/mnt/MYD-JX8MMA7/yocto/myd-jx8mma7-yocto/build-vdisk2/tmp/work/cortexa53-crypto-poky-linux/tensorflow-lite/2.6.0-r0/build/ruy/third_party/googletest' failed
| Failed to clone 'third_party/googletest'. Retry scheduled
| Cloning into '/mnt/MYD-JX8MMA7/yocto/myd-jx8mma7-yocto/build-vdisk2/tmp/work/cortexa53-crypto-poky-linux/tensorflow-lite/2.6.0-r0/build/ruy/third_party/cpuinfo'...
| fatal: unable to access 'https://github.com/pytorch/cpuinfo/': Failed to connect to github.com port 443: Connection refused
| fatal: clone of 'https://github.com/pytorch/cpuinfo' into submodule path '/mnt/MYD-JX8MMA7/yocto/myd-jx8mma7-yocto/build-vdisk2/tmp/work/cortexa53-crypto-poky-linux/tensorflow-lite/2.6.0-r0/build/ruy/third_party/cpuinfo' failed
| Failed to clone 'third_party/cpuinfo' a second time, aborting
| CMake Error at _deps/ruy-subbuild/ruy-populate-prefix/tmp/ruy-populate-gitclone.cmake:52 (message):
| Failed to update submodules in:
| '/mnt/MYD-JX8MMA7/yocto/myd-jx8mma7-yocto/build-vdisk2/tmp/work/cortexa53-crypto-poky-linux/tensorflow-lite/2.6.0-r0/build/ruy'
|
|
| FAILED: ruy-populate-prefix/src/ruy-populate-stamp/ruy-populate-download
| cd /mnt/MYD-JX8MMA7/yocto/myd-jx8mma7-yocto/build-vdisk2/tmp/work/cortexa53-crypto-poky-linux/tensorflow-lite/2.6.0-r0/build && /mnt/MYD-JX8MMA7/yocto/myd-jx8mma7-yocto/build-vdisk2/tmp/work/cortexa53-crypto-poky-linux/tensorflow-lite/2.6.0-r0/recipe-sysroot-native/usr/bin/cmake -P /mnt/MYD-JX8MMA7/yocto/myd-jx8mma7-yocto/build-vdisk2/tmp/work/cortexa53-crypto-poky-linux/tensorflow-lite/2.6.0-r0/build/_deps/ruy-subbuild/ruy-populate-prefix/tmp/ruy-populate-gitclone.cmake && /mnt/MYD-JX8MMA7/yocto/myd-jx8mma7-yocto/build-vdisk2/tmp/work/cortexa53-crypto-poky-linux/tensorflow-lite/2.6.0-r0/recipe-sysroot-native/usr/bin/cmake -E touch /mnt/MYD-JX8MMA7/yocto/myd-jx8mma7-yocto/build-vdisk2/tmp/work/cortexa53-crypto-poky-linux/tensorflow-lite/2.6.0-r0/build/_deps/ruy-subbuild/ruy-populate-prefix/src/ruy-populate-stamp/ruy-populate-download
| ninja: build stopped: subcommand failed.
|
| CMake Error at /mnt/MYD-JX8MMA7/yocto/myd-jx8mma7-yocto/build-vdisk2/tmp/work/cortexa53-crypto-poky-linux/tensorflow-lite/2.6.0-r0/recipe-sysroot-native/usr/share/cmake-3.19/Modules/FetchContent.cmake:989 (message):
| Build step for ruy failed: 1
| Call Stack (most recent call first):
| /mnt/MYD-JX8MMA7/yocto/myd-jx8mma7-yocto/build-vdisk2/tmp/work/cortexa53-crypto-poky-linux/tensorflow-lite/2.6.0-r0/recipe-sysroot-native/usr/share/cmake-3.19/Modules/FetchContent.cmake:1118:EVAL:2 (__FetchContent_directPopulate)
| /mnt/MYD-JX8MMA7/yocto/myd-jx8mma7-yocto/build-vdisk2/tmp/work/cortexa53-crypto-poky-linux/tensorflow-lite/2.6.0-r0/recipe-sysroot-native/usr/share/cmake-3.19/Modules/FetchContent.cmake:1118 (cmake_language)
| tools/cmake/modules/OverridableFetchContent.cmake:531 (FetchContent_Populate)
| tools/cmake/modules/ruy.cmake:32 (OverridableFetchContent_Populate)
| tools/cmake/modules/Findruy.cmake:16 (include)
| CMakeLists.txt:155 (find_package)
|
|
| -- Configuring incomplete, errors occurred!
| See also "/mnt/MYD-JX8MMA7/yocto/myd-jx8mma7-yocto/build-vdisk2/tmp/work/cortexa53-crypto-poky-linux/tensorflow-lite/2.6.0-r0/build/CMakeFiles/CMakeOutput.log".
| See also "/mnt/MYD-JX8MMA7/yocto/myd-jx8mma7-yocto/build-vdisk2/tmp/work/cortexa53-crypto-poky-linux/tensorflow-lite/2.6.0-r0/build/CMakeFiles/CMakeError.log".
| WARNING: exit code 1 from a shell command.
| ERROR: Execution of '/mnt/MYD-JX8MMA7/yocto/myd-jx8mma7-yocto/build-vdisk2/tmp/work/cortexa53-crypto-poky-linux/tensorflow-lite/2.6.0-r0/temp/run.do_configure.6307' failed with exit code 1
ERROR: Task (/mnt/MYD-JX8MMA7/yocto/myd-jx8mma7-yocto/sources/meta-myir/meta-ml/recipes-libraries/tensorflow-lite/tensorflow-lite_2.6.0.bb:do_configure) failed with exit code '1'
NOTE: Tasks Summary: Attempted 6430 tasks of which 0 didn't need to be rerun and 1 failed.
Summary: 1 task failed:
/mnt/MYD-JX8MMA7/yocto/myd-jx8mma7-yocto/sources/meta-myir/meta-ml/recipes-libraries/tensorflow-lite/tensorflow-lite_2.6.0.bb:do_configure
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
</code></pre>
<dl>
<dt>原因分析:</dt>
<dd>
<p>在构建过程中git更新,由于网络问题造成无法git成功。</p>
</dd>
<dt>解决方法:(TODO)</dt>
<dd>
<ol>
<li>
<p>翻墙搭梯子,麻烦。</p>
</li>
<li>
<p>禁用网络更新,只是用本地下载好的代码。</p>
</li>
</ol>
</dd>
</dl>
</section>
<section id="bb-no-network-1-bitbake-c-populate-sdk-myir-image-full">
<h3>2.3.11. BB_NO_NETWORK=1 bitbake -c populate_sdk myir-image-fullEEWORLDLINKTK16</h3>
<p>禁用网络更新,只是用本地下载好的代码。成功。</p>
<blockquote>
<pre>
<code>BB_NO_NETWORK=1 bitbake -c populate_sdk myir-image-full
NOTE: Your conf/bblayers.conf has been automatically updated.
Loading cache: 100% |############################################| Time: 0:00:02
Loaded 4970 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies
NOTE: Multiple providers are available for runtime linux-firmware-bcm4359-pcie (firmware-nxp-wifi, linux-firmware)
Consider defining a PREFERRED_RPROVIDER entry to match linux-firmware-bcm4359-pcie
Build Configuration:
BB_VERSION = "1.50.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "ubuntu-18.04"
TARGET_SYS = "aarch64-poky-linux"
MACHINE = "myd-jx8mma7"
DISTRO = "fsl-imx-xwayland"
DISTRO_VERSION = "5.10-hardknott"
TUNE_FEATURES = "aarch64 armv8a crc cortexa53 crypto"
TARGET_FPU = ""
meta
meta-poky
meta-oe
meta-multimedia
meta-python
meta-freescale
meta-freescale-3rdparty
meta-freescale-distro
meta-bsp
meta-sdk
meta-ml
meta-v2x
meta-nxp-demo-experience
meta-chromium
meta-clang
meta-gnome
meta-networking
meta-filesystems
meta-qt5
meta-python2
meta-virtualization= "<unknown>:<unknown>"
Initialising tasks: 100% |#######################################| Time: 0:00:06
Sstate summary: Wanted 33 Local 14 Network 0 Missed 19 Current 3449 (42% match, 99% complete)
NOTE: Executing Tasks
NOTE: Tasks Summary: Attempted 9825 tasks of which 9786 didn't need to be rerun and all succeeded.
</code></pre>
</blockquote>
</section>
<section id="bb-no-network-1-bitbake-myir-image-full">
<h3>2.3.12. BB_NO_NETWORK=1 bitbake myir-image-fullEEWORLDLINKTK17</h3>
<p>成功</p>
<blockquote>
<pre>
<code>Loading cache: 100% |#################################################################################################| Time: 0:00:01
Loaded 4970 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies
NOTE: Multiple providers are available for runtime linux-firmware-bcm4359-pcie (firmware-nxp-wifi, linux-firmware)
Consider defining a PREFERRED_RPROVIDER entry to match linux-firmware-bcm4359-pcie
Build Configuration:
BB_VERSION = "1.50.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "ubuntu-18.04"
TARGET_SYS = "aarch64-poky-linux"
MACHINE = "myd-jx8mma7"
DISTRO = "fsl-imx-xwayland"
DISTRO_VERSION = "5.10-hardknott"
TUNE_FEATURES = "aarch64 armv8a crc cortexa53 crypto"
TARGET_FPU = ""
meta
meta-poky
meta-oe
meta-multimedia
meta-python
meta-freescale
meta-freescale-3rdparty
meta-freescale-distro
meta-bsp
meta-sdk
meta-ml
meta-v2x
meta-nxp-demo-experience
meta-chromium
meta-clang
meta-gnome
meta-networking
meta-filesystems
meta-qt5
meta-python2
meta-virtualization= "<unknown>:<unknown>"
Initialising tasks: 100% |############################################################################################| Time: 0:00:07
Sstate summary: Wanted 826 Local 29 Network 0 Missed 797 Current 3763 (3% match, 82% complete)
NOTE: Executing Tasks
WARNING: opencv-4.5.2.imx-r0 do_package_qa: QA Issue: opencv: SRC_URI uses unstable GitHub/GitLab archives, convert recipe to use git protocol
NOTE: Tasks Summary: Attempted 10936 tasks of which 9324 didn't need to be rerun and all succeeded.
Summary: There was 1 WARNING message shown.</code></pre>
</blockquote>
</section>
</section>
</div><script> var loginstr = '<div class="locked">查看本帖全部内容,请<a href="javascript:;" style="color:#e60000" class="loginf">登录</a>或者<a href="https://bbs.eeworld.com.cn/member.php?mod=register_eeworld.php&action=wechat" style="color:#e60000" target="_blank">注册</a></div>';
if(parseInt(discuz_uid)==0){
(function($){
var postHeight = getTextHeight(400);
$(".showpostmsg").html($(".showpostmsg").html());
$(".showpostmsg").after(loginstr);
$(".showpostmsg").css({height:postHeight,overflow:"hidden"});
})(jQuery);
} </script><script type="text/javascript">(function(d,c){var a=d.createElement("script"),m=d.getElementsByTagName("script"),eewurl="//counter.eeworld.com.cn/pv/count/";a.src=eewurl+c;m.parentNode.insertBefore(a,m)})(document,523)</script>
页:
[1]