i.MX8 ULP EVK - core-image-minimal-secure-boot build problem

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

i.MX8 ULP EVK - core-image-minimal-secure-boot build problem

跳至解决方案
1,891 次查看
ddresser
Contributor III

Hello,
I am trying to build a minimal secure boot exmple for an i.MX8 ULP EVK board using these commands


# repo init -uhttps://github.com/nxp-imx/imx-manifest -b imx-linux-scarthgap -m imx-6.6.23-2.0.0_security-reference-design.xml
# DISTRO=fsl-imx-wayland MACHINE=imx8ulp-lpddr4-evk source imx-setup-release.sh -b buil
echo "CST_PATH = \"/my/path/to/cst-3.4.1\"" >> conf/local.conf
# bitbake core-image-minimal-secure-boo


I have generated the certs and keys with CST.


I am seeing this error:


ERROR: cargo-native-1.75.0-r0 do_compile: ExecutionError('/home/ddresser/src/imx-yocto-bsp-secureboot/build/tmp/work/x86_64-linux/cargo-native/1.75.0/temp/run.do_compile.19360', 101, None, None)
ERROR: Logfile of failure stored in: /home/ddresser/src/imx-yocto-bsp-secureboot/build/tmp/work/x86_64-linux/cargo-native/1.75.0/temp/log.do_compile.19360
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: Using rust targets from /home/ddresser/src/imx-yocto-bsp-secureboot/build/tmp/work/x86_64-linux/cargo-native/1.75.0/rust-targets/
| NOTE: cargo = /home/ddresser/src/imx-yocto-bsp-secureboot/build/tmp/work/x86_64-linux/cargo-native/1.75.0/cargo-1.74.0-x86_64-unknown-linux-gnu/bin/cargo
| NOTE: /home/ddresser/src/imx-yocto-bsp-secureboot/build/tmp/work/x86_64-linux/cargo-native/1.75.0/cargo-1.74.0-x86_64-unknown-linux-gnu/bin/cargo build -v --frozen --target x86_64-unknown-linux-gnu --release --manifest-path=/home/ddresser/src/imx-yocto-bsp-secureboot/build/tmp/work/x86_64-linux/cargo-native/1.75.0/rustc-1.75.0-src/src/tools/cargo//Cargo.toml
| error: could not execute process `rustc -vV` (never executed)
|
| Caused by:
|  Exec format error (os error
| WARNING: exit code 101 from a shell command.
ERROR: Task (virtual:native:/home/ddresser/src/imx-yocto-bsp-secureboot/sources/poky/meta/recipes-devtools/rust/cargo_1.75.0.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2232 tasks of which 2231 didn't need to be rerun and 1 failed.Summary: 1 task failed:
 virtual:native:/home/ddresser/src/imx-yocto-bsp-secureboot/sources/poky/meta/recipes-devtools/rust/cargo_1.75.0.bb:do_compile


I have tried cleaning and rebuilding cargo-native and rust with the same results. Any suggestions are appreciated. Thanks.

0 项奖励
回复
1 解答
1,835 次查看
ddresser
Contributor III

I resolved this by updating the repo manifest.  I submitted a pull request with a fix.

https://github.com/nxp-https://github.com/nxp-imx/imx-manifest/pull/8/imx-manifest/pull/8 

在原帖中查看解决方案

5 回复数
1,836 次查看
ddresser
Contributor III

I resolved this by updating the repo manifest.  I submitted a pull request with a fix.

https://github.com/nxp-https://github.com/nxp-imx/imx-manifest/pull/8/imx-manifest/pull/8 

1,824 次查看
Harvey021
NXP TechSupport
NXP TechSupport

Thanks for the note, will inform the owner to have an update.

You can also work with other BSP - like the one for reference - L6.6.36_2.1.0-DOCS 

 

Regards

Harvey

 

Regards

Harvey

 

0 项奖励
回复
1,858 次查看
ddresser
Contributor III

FYI, running the command as it appears in the doc gives this:

ddresser@elmore:~/src/imx-yocto-bsp-secureboot$ repo init -u https://github.com/nxp-imx/imx-manifest -b imx-linux-scarthgap -m imx-6.6.52-2.2.0_security-reference-design.xml

Downloading Repo source from https://gerrit.googlesource.com/git-repo

fatal: manifest 'imx-6.6.52-2.2.0_security-reference-design.xml' not available

fatal: manifest imx-6.6.52-2.2.0_security-reference-design.xml not found

================================================================================

Repo command failed: UpdateManifestError

        Unable to sync manifest imx-6.6.52-2.2.0_security-reference-design.xml

0 项奖励
回复
1,858 次查看
ddresser
Contributor III

Thanks for the response.  Yes, I have tried that.

I am using the process:

10.9.1.3 Yocto setup for secure boot build

from https://www.nxp.com/docs/en/user-guide/IMX_LINUX_USERS_GUIDE.pdf 

I am able to build the non-secure boot process from the same document successfully.

I just noticed that the document specifies the `imx-6.6.52-2.2.0_security-reference-design.xml` on the `imx-linux-scarthgap` branch

repo init -u https://github.com/nxp-imx/imx-manifest -b imx-linux-scarthgap - m imx-6.6.52-2.2.0_security-reference-design.xml

However, that branch has this version of the file:

imx-6.6.23-2.0.0_security-reference-design.xml`

I see references to the 6.6.52 version in the commit notes, but don't see that file.

0 项奖励
回复
1,871 次查看
Harvey021
NXP TechSupport
NXP TechSupport

Hello,

Have you tried to bitbake -c cleanll cargo; bitbake cargo?

And assume that your host to build is version of Ubuntu 22.04 and all packages for host setup not missed.

 

Regards

Harvey

0 项奖励
回复
%3CLINGO-SUB%20id%3D%22lingo-sub-2031862%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Ei.MX8%20ULP%20EVK%20-%20core-image-minimal-secure-boot%20%E6%9E%84%E5%BB%BA%E9%97%AE%E9%A2%98%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2031862%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E4%BD%A0%E5%A5%BD%EF%BC%8C%3CBR%20%2F%3E%E6%88%91%E6%AD%A3%E5%9C%A8%E5%B0%9D%E8%AF%95%E4%BD%BF%E7%94%A8%E8%BF%99%E4%BA%9B%E5%91%BD%E4%BB%A4%E4%B8%BA%20i.MX8%20ULP%20EVK%20%E6%9D%BF%E6%9E%84%E5%BB%BA%E4%B8%80%E4%B8%AA%E6%9C%80%E5%B0%8F%E5%AE%89%E5%85%A8%E5%90%AF%E5%8A%A8%E7%A4%BA%E4%BE%8B%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%23%20repo%20init%20-u%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fnxp-imx%2Fimx-manifest%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20nofollow%22%3Ehttps%3A%2F%2Fgithub.com%2Fnxp-imx%2Fimx-manifest%3C%2FA%3E-b%20imx-linux-scarthgap%20-m%20imx-6.6.23-2.0.0_security-reference-design.xml%3CBR%20%2F%3E%23%E5%8F%91%E8%A1%8C%E7%89%88%3Dfsl-imx-wayland%E6%9C%BA%E5%99%A8%3Dimx8ulp-lpddr4-evk%E6%BA%90imx-setup-release.sh-b%20buil%3CBR%20%2F%3E%20echo%20%22CST_PATH%20%3D%20%5C%22%2Fmy%2Fpath%2Fto%2Fcst-3.4.1%5C%22%22%20%26gt%3B%26gt%3B%20conf%2Flocal.conf%3CBR%20%2F%3E%23%20bitbake%20core-image-minimal-secure-boo%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%E6%88%91%E5%B7%B2%E7%BB%8F%E4%BD%BF%E7%94%A8%20CST%20%E7%94%9F%E6%88%90%E4%BA%86%E8%AF%81%E4%B9%A6%E5%92%8C%E5%AF%86%E9%92%A5%E3%80%82%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%E6%88%91%E7%9C%8B%E5%88%B0%E8%BF%99%E4%B8%AA%E9%94%99%E8%AF%AF%EF%BC%9A%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%3CSTRONG%3E%E9%94%99%E8%AF%AF%3C%2FSTRONG%3E%EF%BC%9Acargo-native-1.75.0-r0%20do_compile%3A%20ExecutionError%EF%BC%88'%2Fhome%2Fddresser%2Fsrc%2Fimx-yocto-bsp-secureboot%2Fbuild%2Ftmp%2Fwork%2Fx86_64-linux%2Fcargo-native%2F1.75.0%2Ftemp%2Frun.do_compile.19360'%EF%BC%8C101%EF%BC%8C%E6%97%A0%EF%BC%8C%E6%97%A0%EF%BC%89%3CBR%20%2F%3E%3CSTRONG%3E%E9%94%99%E8%AF%AF%3C%2FSTRONG%3E%EF%BC%9A%E6%95%85%E9%9A%9C%E6%97%A5%E5%BF%97%E6%96%87%E4%BB%B6%E5%AD%98%E5%82%A8%E5%9C%A8%EF%BC%9A%2Fhome%2Fddresser%2Fsrc%2Fimx-yocto-bsp-secureboot%2Fbuild%2Ftmp%2Fwork%2Fx86_64-linux%2Fcargo-native%2F1.75.0%2Ftemp%2Flog.do_compile.19360%3CBR%20%2F%3E%E6%97%A5%E5%BF%97%E6%95%B0%E6%8D%AE%E5%A6%82%E4%B8%8B%EF%BC%9A%3CBR%20%2F%3E%20%7C%20DEBUG%EF%BC%9A%E6%89%A7%E8%A1%8C%20shell%20%E5%87%BD%E6%95%B0%20do_compile%3CBR%20%2F%3E%20%7C%20%E6%B3%A8%E6%84%8F%EF%BC%9A%E4%BD%BF%E7%94%A8%E6%9D%A5%E8%87%AA%20%2Fhome%2Fddresser%2Fsrc%2Fimx-yocto-bsp-secureboot%2Fbuild%2Ftmp%2Fwork%2Fx86_64-linux%2Fcargo-native%2F1.75.0%2Frust-targets%2F%20%E7%9A%84%20rust%20%E7%9B%AE%E6%A0%87%3CBR%20%2F%3E%7C%20%E6%B3%A8%E6%84%8F%EF%BC%9Acargo%20%3D%20%2Fhome%2Fddresser%2Fsrc%2Fimx-yocto-bsp-secureboot%2Fbuild%2Ftmp%2Fwork%2Fx86_64-linux%2Fcargo-native%2F1.75.0%2Fcargo-1.74.0-x86_64-unknown-linux-gnu%2Fbin%2Fcargo%3CBR%20%2F%3E%20%7C%20%E6%B3%A8%E6%84%8F%EF%BC%9A%2Fhome%2Fddresser%2Fsrc%2Fimx-yocto-bsp-secureboot%2Fbuild%2Ftmp%2Fwork%2Fx86_64-linux%2Fcargo-native%2F1.75.0%2Fcargo-1.74.0-x86_64-unknown-linux-gnu%2Fbin%2Fcargo%20build%20-v%20--frozen%20--target%20x86_64-unknown-linux-gnu%20--release%20--manifest-path%3D%2Fhome%2Fddresser%2Fsrc%2Fimx-yocto-bsp-secureboot%2Fbuild%2Ftmp%2Fwork%2Fx86_64-linux%2Fcargo-native%2F1.75.0%2Frustc-1.75.0-src%2Fsrc%2Ftools%2Fcargo%2F%2FCargo.toml%3CBR%20%2F%3E%7C%20%E9%94%99%E8%AF%AF%EF%BC%9A%E6%97%A0%E6%B3%95%E6%89%A7%E8%A1%8C%E8%BF%9B%E7%A8%8B%E2%80%9Crustc%20-vV%E2%80%9D%EF%BC%88%E4%BB%8E%E6%9C%AA%E6%89%A7%E8%A1%8C%EF%BC%89%3CBR%20%2F%3E%20%7C%3CBR%20%2F%3E%20%7C%20%E5%8E%9F%E5%9B%A0%EF%BC%9A%3CBR%20%2F%3E%20%7C%20%E6%89%A7%E8%A1%8C%E6%A0%BC%E5%BC%8F%E9%94%99%E8%AF%AF%EF%BC%88%E6%93%8D%E4%BD%9C%E7%B3%BB%E7%BB%9F%E9%94%99%E8%AF%AF%20%3CLI-EMOJI%20id%3D%22lia_smiling-face-with-sunglasses%22%20title%3D%22%3Asmiling_face_with_sunglasses%3A%22%3E%3C%2FLI-EMOJI%3E%3CBR%20%2F%3E%7C%20%E8%AD%A6%E5%91%8A%EF%BC%9A%E4%BB%8E%20shell%20%E5%91%BD%E4%BB%A4%E9%80%80%E5%87%BA%E4%BB%A3%E7%A0%81%20101%E3%80%82%3CBR%20%2F%3E%3CSTRONG%3E%E9%94%99%E8%AF%AF%3C%2FSTRONG%3E%EF%BC%9A%E4%BB%BB%E5%8A%A1%EF%BC%88virtual%3Anative%3A%2Fhome%2Fddresser%2Fsrc%2Fimx-yocto-bsp-secureboot%2Fsources%2Fpoky%2Fmeta%2Frecipes-devtools%2Frust%2Fcargo_1.75.0.bb%3Ado_compile%EF%BC%89%E5%A4%B1%E8%B4%A5%EF%BC%8C%E9%80%80%E5%87%BA%E4%BB%A3%E7%A0%81%E4%B8%BA%E2%80%9C1%E2%80%9D%3CBR%20%2F%3E%3CSTRONG%3E%E6%B3%A8%E6%84%8F%3C%2FSTRONG%3E%EF%BC%9A%E4%BB%BB%E5%8A%A1%E6%91%98%E8%A6%81%EF%BC%9A%E5%B0%9D%E8%AF%95%E4%BA%86%202232%20%E9%A1%B9%E4%BB%BB%E5%8A%A1%EF%BC%8C%E5%85%B6%E4%B8%AD%202231%20%E9%A1%B9%E6%97%A0%E9%9C%80%E9%87%8D%E6%96%B0%E8%BF%90%E8%A1%8C%EF%BC%8C1%20%E9%A1%B9%E5%A4%B1%E8%B4%A5%E3%80%82%E6%91%98%E8%A6%81%EF%BC%9A1%20%E9%A1%B9%E4%BB%BB%E5%8A%A1%E5%A4%B1%E8%B4%A5%EF%BC%9A%3CBR%20%2F%3E%E8%99%9A%E6%8B%9F%EF%BC%9A%E6%9C%AC%E6%9C%BA%EF%BC%9A%2Fhome%2Fddresser%2Fsrc%2Fimx-yocto-bsp-secureboot%2Fsources%2Fpoky%2Fmeta%2Frecipes-devtools%2Frust%2Fcargo_1.75.0.bb%3Ado_compile%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%E6%88%91%E5%B0%9D%E8%AF%95%E6%B8%85%E7%90%86%E5%92%8C%E9%87%8D%E5%BB%BA%20cargo-native%20%E5%92%8C%20rust%EF%BC%8C%E7%BB%93%E6%9E%9C%E7%9B%B8%E5%90%8C%E3%80%82%E4%BB%BB%E4%BD%95%E5%BB%BA%E8%AE%AE%E9%83%BD%E5%80%BC%E5%BE%97%E8%B5%9E%E8%B5%8F%E3%80%82%E8%B0%A2%E8%B0%A2%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2032685%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9Ai.MX8%20ULP%20EVK%20-%20core-image-minimal-secure-boot%20%E6%9E%84%E5%BB%BA%E9%97%AE%E9%A2%98%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2032685%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E6%88%91%E9%80%9A%E8%BF%87%E6%9B%B4%E6%96%B0%20repo%20%E6%B8%85%E5%8D%95%E8%A7%A3%E5%86%B3%E4%BA%86%E8%BF%99%E4%B8%AA%E9%97%AE%E9%A2%98%E3%80%82%E6%88%91%E6%8F%90%E4%BA%A4%E4%BA%86%E4%B8%80%E4%B8%AA%E4%BF%AE%E5%A4%8D%E8%AF%B7%E6%B1%82%E3%80%82%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fnxp-imx%2Fimx-manifest%2Fpull%2F8%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Fnxp-https%3A%2F%2Fgithub.com%2Fnxp-imx%2Fimx-manifest%2Fpull%2F8%2Fimx-manifest%2Fpull%2F8%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2032464%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9Ai.MX8%20ULP%20EVK%20-%20core-image-minimal-secure-boot%20%E6%9E%84%E5%BB%BA%E9%97%AE%E9%A2%98%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2032464%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E8%B0%A2%E8%B0%A2%E6%82%A8%E7%9A%84%E5%9B%9E%E5%A4%8D%E3%80%82%E6%98%AF%E7%9A%84%EF%BC%8C%E6%88%91%E5%B0%9D%E8%AF%95%E8%BF%87%E3%80%82%3C%2FP%3E%3CP%3E%E6%88%91%E6%AD%A3%E5%9C%A8%E4%BD%BF%E7%94%A8%E4%BB%A5%E4%B8%8B%E6%B5%81%E7%A8%8B%EF%BC%9A%3C%2FP%3E%3CP%3E10.9.1.3Yocto%20%E8%AE%BE%E7%BD%AE%E7%94%A8%E4%BA%8E%E5%AE%89%E5%85%A8%E5%90%AF%E5%8A%A8%E6%9E%84%E5%BB%BA%3C%2FP%3E%3CP%3E%E6%91%98%E8%87%AA%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fdocs%2Fen%2Fuser-guide%2FIMX_LINUX_USERS_GUIDE.pdf%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.nxp.com%2Fdocs%2Fen%2Fuser-guide%2FIMX_LINUX_USERS_GUIDE.pdf%3C%2FA%3E%3C%2FP%3E%3CP%3E%E6%88%91%E8%83%BD%E5%A4%9F%E4%BB%8E%E5%90%8C%E4%B8%80%E6%96%87%E6%A1%A3%E6%88%90%E5%8A%9F%E6%9E%84%E5%BB%BA%E9%9D%9E%E5%AE%89%E5%85%A8%E5%90%AF%E5%8A%A8%E8%BF%87%E7%A8%8B%E3%80%82%3C%2FP%3E%3CP%3E%E6%88%91%E5%88%9A%E5%88%9A%E6%B3%A8%E6%84%8F%E5%88%B0%E8%AF%A5%E6%96%87%E6%A1%A3%E5%9C%A8%E2%80%9Cimx-linux-scarthgap%E2%80%9D%E5%88%86%E6%94%AF%E4%B8%8A%E6%8C%87%E5%AE%9A%E4%BA%86%E2%80%9Cimx-%20%3CSTRONG%3E6.6.52-2.2.0%3C%2FSTRONG%3E%20_security-reference-design.xml%E2%80%9D%3C%2FP%3E%3CP%3E%E5%9B%9E%E8%B4%AD%E5%88%9D%E5%A7%8B%E5%8C%96%20-u%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fnxp-imx%2Fimx-manifest%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Fnxp-imx%2Fimx-manifest%3C%2FA%3E-b%20imx-linux-scarthgap-m%20imx-6.6.52-2.2.0_security-reference-design.xml%3C%2FP%3E%3CP%3E%E4%BD%86%E6%98%AF%EF%BC%8C%E8%AF%A5%E5%88%86%E6%94%AF%E6%9C%89%E6%AD%A4%E7%89%88%E6%9C%AC%E7%9A%84%E6%96%87%E4%BB%B6%EF%BC%9A%3C%2FP%3E%3CP%3Eimx%20%3CSTRONG%3E-6.6.23-2.0.0%3C%2FSTRONG%3E%20_%E5%AE%89%E5%85%A8%E5%8F%82%E8%80%83%E8%AE%BE%E8%AE%A1.xml%60%3C%2FP%3E%3CP%3E%E6%88%91%E5%9C%A8%E6%8F%90%E4%BA%A4%E8%AF%B4%E6%98%8E%E4%B8%AD%E7%9C%8B%E5%88%B0%E4%BA%86%E5%AF%B9%206.6.52%20%E7%89%88%E6%9C%AC%E7%9A%84%E5%BC%95%E7%94%A8%EF%BC%8C%E4%BD%86%E6%B2%A1%E6%9C%89%E7%9C%8B%E5%88%B0%E8%AF%A5%E6%96%87%E4%BB%B6%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E