imx8M plus build fail. Both Yocto and Docker

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

imx8M plus build fail. Both Yocto and Docker

ソリューションへジャンプ
2,218件の閲覧回数
Sho_1
Contributor I

Hi, 

according to i.MX Yocto Project User's Guide  (IMXLXYOCTOUG-Rev. LF6.1.1_1.0.0 — 24 April 2023).

I try to build demo image from user guide. But got some errors, seems files missing in both cases. 

 

Yocto 

First, I install packages but got an error (3.2 Host packages) .

packages errors were :

nxp_error_pac.png 

 

 

From NXP community, found this. Unfortunately doesn't help. Fix the missing package using alternative recommended packages, after google it. 

$ mkdir ~/BSP_imx8

$ repo init -u https://github.com/nxp-imx/imx-manifest -b imx-linux-langdale -m imx-6.1.1-1.0.0.xml

$ repo sync

$ DISTRO=fsl-imx-xwayland MACHINE=imx8mpevk source imx-setup-release.sh -b imx-yocto-bsp

all above run without errors. 

 

when run: 

$ bitbake imx-image-full

got following errors 

bitbake_errors.png

 

 

 

 

 

Sstate summary: Wanted 4704 Local 0 Mirrors 0 Missed 4704 Current 0 (0% match, 0% complete)
NOTE: Executing Tasks
WARNING: docbook-xsl-stylesheets-native-1.79.1-r0 do_fetch: Failed to fetch URL https://downloads.sourceforge.net/docbook/docbook-xsl-1.79.1.tar.bz2, attempting MIRRORS if available
WARNING: tcl-native-8.6.11-r0 do_fetch: Failed to fetch URL https://downloads.sourceforge.net/tcl/tcl-core8.6.11-src.tar.gz, attempting MIRRORS if available
WARNING: swig-native-4.0.2-r0 do_fetch: Failed to fetch URL https://downloads.sourceforge.net/swig/swig-4.0.2.tar.gz, attempting MIRRORS if available
WARNING: giflib-5.2.1-r0 do_fetch: Failed to fetch URL https://downloads.sourceforge.net/giflib/giflib-5.2.1.tar.gz, attempting MIRRORS if available
WARNING: spirv-headers-1_1.3.216.0-r0 do_fetch: Failed to fetch URL git://github.com/KhronosGroup/SPIRV-Headers;protocol=https;branch=master, attempting MIRRORS if available
WARNING: valgrind-3.19.0-r0 do_fetch: Failed to fetch URL https://sourceware.org/pub/valgrind/valgrind-3.19.0.tar.bz2, attempting MIRRORS if available
WARNING: lcms-2.13.1-r0 do_fetch: Failed to fetch URL https://downloads.sourceforge.net/lcms/lcms2-2.13.1.tar.gz, attempting MIRRORS if available
WARNING: strace-5.19-r0 do_fetch: Failed to fetch URL https://strace.io/files/5.19/strace-5.19.tar.xz, attempting MIRRORS if available
WARNING: libgphoto2-2.5.30-r0 do_fetch: Failed to fetch URL https://downloads.sourceforge.net/gphoto/libgphoto2-2.5.30.tar.bz2;name=libgphoto2, attempting MIRRORS if available
WARNING: lame-3.100-r0 do_fetch: Failed to fetch URL https://downloads.sourceforge.net/lame/lame-3.100.tar.gz, attempting MIRRORS if available
WARNING: quota-4.06-r0 do_fetch: Failed to fetch URL https://downloads.sourceforge.net/project/linuxquota/quota-tools/4.06/quota-4.06.tar.gz, attempting MIRRORS if available
WARNING: devil-1.8.0-r0 do_fetch: Failed to fetch URL http://sourceforge.net/projects/openil/files/DevIL/1.8.0/DevIL-1.8.0.zip, attempting MIRRORS if available
WARNING: spirv-tools-1_1.3.216.0-r0 do_fetch: Failed to fetch URL git://github.com/KhronosGroup/SPIRV-Tools.git;branch=master;protocol=https, attempting MIRRORS if available
WARNING: half-2.1.0-r0 do_fetch: Failed to fetch URL https://sourceforge.net/projects/half/files/half/2.1.0/half-2.1.0.zip, attempting MIRRORS if available
ERROR: half-2.1.0-r0 do_fetch: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus,guid=a85158cb69e77752dd0bfffe644fb0fe"; export SSH_AGENT_PID="3998"; export SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"; export PATH="/home/user/BSP_18.04/imx-yocto-bsp/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/user/BSP_18.04/sources/poky/scripts:/home/user/BSP_18.04/imx-yocto-bsp/tmp/work/armv8a-poky-linux/half/2.1.0-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux:/home/user/BSP_18.04/imx-yocto-bsp/tmp/work/armv8a-poky-linux/half/2.1.0-r0/recipe-sysroot/usr/bin/crossscripts:/home/user/BSP_18.04/imx-yocto-bsp/tmp/work/armv8a-poky-linux/half/2.1.0-r0/recipe-sysroot-native/usr/sbin:/home/user/BSP_18.04/imx-yocto-bsp/tmp/work/armv8a-poky-linux/half/2.1.0-r0/recipe-sysroot-native/usr/bin:/home/user/BSP_18.04/imx-yocto-bsp/tmp/work/armv8a-poky-linux/half/2.1.0-r0/recipe-sysroot-native/sbin:/home/user/BSP_18.04/imx-yocto-bsp/tmp/work/armv8a-poky-linux/half/2.1.0-r0/recipe-sysroot-native/bin:/home/user/BSP_18.04/sources/poky/bitbake/bin:/home/user/BSP_18.04/imx-yocto-bsp/tmp/hosttools"; export HOME="/home/user"; /usr/bin/env wget -t 2 -T 30 --passive-ftp -O /home/user/BSP_18.04/downloads/half-2.1.0.zip.tmp -P /home/user/BSP_18.04/downloads/ 'https://sourceforge.net/projects/half/files/half/2.1.0/half-2.1.0.zip' --progress=dot -v failed with exit code 5, no output
ERROR: half-2.1.0-r0 do_fetch: Bitbake Fetcher Error: FetchError('Unable to fetch URL from any source.', 'https://sourceforge.net/projects/half/files/half/2.1.0/half-2.1.0.zip')
ERROR: Logfile of failure stored in: /home/user/BSP_18.04/imx-yocto-bsp/tmp/work/armv8a-poky-linux/half/2.1.0-r0/temp/log.do_fetch.22742
ERROR: Task (/home/user/BSP_18.04/sources/meta-freescale-distro/recipes-devtools/half/half_2.1.0.bb:do_fetch) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2274 tasks of which 0 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
/home/user/BSP_18.04/sources/meta-freescale-distro/recipes-devtools/half/half_2.1.0.bb:do_fetch
Summary: There were 14 WARNING messages.
Summary: There were 2 ERROR messages, returning a non-zero exit code.

 

docker

using nxp-imx-github build IMX, but when try to run: 

$ ./docker-run.sh ${IMX_RELEASE}/yocto-build.sh

i.e IMX_RELEASE=imx-5.15.52-2.1.0

also got errors:

Screenshot from 2023-05-04 15-36-17.png

 

 

 

 

when run direct from container.

$ sudo ./docker-run.sh

user@91bbcbb01332:/opt/yocto$ imx-5.15.52-2.1.0/yocto-build.sh

also got an errors  

docker.png

 

 

 

~/imx-docker$ sudo ./docker-run.sh
(base) user@91bbcbb01332:/opt/yocto$ imx-5.15.52-2.1.0/yocto-build.sh
Traceback (most recent call last):
File "/opt/yocto/imx-5.15.52-2.1.0-build/.repo/repo/main.py", line 705, in <module>
_Main(sys.argv[1:])
File "/opt/yocto/imx-5.15.52-2.1.0-build/.repo/repo/main.py", line 681, in _Main
result = repo._Run(name, gopts, argv) or 0
File "/opt/yocto/imx-5.15.52-2.1.0-build/.repo/repo/main.py", line 220, in _Run
with Trace('starting new command: %s', ', '.join([name] + argv),
File "/opt/yocto/imx-5.15.52-2.1.0-build/.repo/repo/repo_trace.py", line 104, in __enter__
with open(_TRACE_FILE, 'a') as f:
PermissionError: [Errno 13] Permission denied: '/opt/yocto/imx-5.15.52-2.1.0-build/.repo/TRACE_FILE'
Traceback (most recent call last):
File "/opt/yocto/imx-5.15.52-2.1.0-build/.repo/repo/main.py", line 705, in <module>
_Main(sys.argv[1:])
File "/opt/yocto/imx-5.15.52-2.1.0-build/.repo/repo/main.py", line 681, in _Main
result = repo._Run(name, gopts, argv) or 0
File "/opt/yocto/imx-5.15.52-2.1.0-build/.repo/repo/main.py", line 220, in _Run
with Trace('starting new command: %s', ', '.join([name] + argv),
File "/opt/yocto/imx-5.15.52-2.1.0-build/.repo/repo/repo_trace.py", line 104, in __enter__
with open(_TRACE_FILE, 'a') as f:
PermissionError: [Errno 13] Permission denied: '/opt/yocto/imx-5.15.52-2.1.0-build/.repo/TRACE_FILE'
imx-5.15.52-2.1.0/yocto-build.sh: line 24: imx-setup-release.sh: No such file or directory
imx-5.15.52-2.1.0/yocto-build.sh: line 28: bitbake: command not found
(base) user@91bbcbb01332:/opt/yocto$ sudo imx-5.15.52-2.1.0/yocto-build.sh

manifests:
fatal: unable to access 'https://source.codeaurora.org/external/imx/imx-manifest/': Could not resolve host: source.codeaurora.org
manifests: sleeping 4.0 seconds before retrying

manifests:
fatal: unable to access 'https://source.codeaurora.org/external/imx/imx-manifest/': Could not resolve host: source.codeaurora.org
fatal: cannot obtain manifest https://source.codeaurora.org/external/imx/imx-manifest
fatal: error parsing manifest /opt/yocto/imx-5.15.52-2.1.0-build/.repo/manifest.xml: [Errno 2] No such file or directory: '/opt/yocto/imx-5.15.52-2.1.0-build/.repo/manifest.xml'
imx-5.15.52-2.1.0/yocto-build.sh: line 24: imx-setup-release.sh: No such file or directory
imx-5.15.52-2.1.0/yocto-build.sh: line 28: bitbake: command not found

Appreciate any help  

 

IMX8MPLUS  

0 件の賞賛
返信
1 解決策
2,171件の閲覧回数
Harvey021
NXP TechSupport
NXP TechSupport

Hi @Sho_1 

To Yocto: Have you tried to fetch those source files from sourceforge on your host, like wget https://sourceforge.net/projects/half/files/half/2.1.0/half-2.1.0.zip. Mostly like your local network limitation.

 

To Docker: upstream imx-manifest should be already migrated to github.com instead of https://source.codeaurora.org/external/imx/imx-manifest/

 

Best regards

Harvey

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
2,156件の閲覧回数
Sho_1
Contributor I

Hi @Harvey021 

Thank you for your response. 

That was some network issue. 

 

 

 

0 件の賞賛
返信
2,172件の閲覧回数
Harvey021
NXP TechSupport
NXP TechSupport

Hi @Sho_1 

To Yocto: Have you tried to fetch those source files from sourceforge on your host, like wget https://sourceforge.net/projects/half/files/half/2.1.0/half-2.1.0.zip. Mostly like your local network limitation.

 

To Docker: upstream imx-manifest should be already migrated to github.com instead of https://source.codeaurora.org/external/imx/imx-manifest/

 

Best regards

Harvey

0 件の賞賛
返信