Hello,
I am building the i.MX 8MP AI Robot system based on this document [https://www.nxp.com.cn/docs/en/application-note/AN14240.pdf], but I encountered some issues.
WARNING: cracklib-2.9.8-r0 do_fetch: Failed to fetch URL git://github.com/cracklib/cracklib;protocol=https;branch=master, attempting MIRRORS if available
ERROR: openssl-3.1.0.imx-r0 do_patch: Applying patch '0001-Enhance-cryptodev-s-engine-by-CAAM-public-key-crypto.patch' on target directory '/mnt/data/zheng/nxp/imx8mp/imx-yocto/imx8mpevk-robot-foxy/tmp/work/armv8a-poky-linux/openssl/3.1.0.imx-r0/openssl-3.1.0.imx'
CmdError('quilt --quiltrc /mnt/data/zheng/nxp/imx8mp/imx-yocto/imx8mpevk-robot-foxy/tmp/work/armv8a-poky-linux/openssl/3.1.0.imx-r0/recipe-sysroot-native/etc/quiltrc push', 0, 'stdout: Applying patch 0001-Enhance-cryptodev-s-engine-by-CAAM-public-key-crypto.patch
patching file apps/speed.c
patching file crypto/ec/ec_curve.c
patching file crypto/ec/ec_key.c
patching file crypto/ec/ec_local.h
patching file crypto/sm2/sm2_crypt.c
patching file crypto/sm2/sm2_sign.c
patching file engines/e_devcrypto.c
Hunk #10 FAILED at 747.
Hunk #11 FAILED at 774.
Hunk #12 succeeded at 808 (offset -14 lines).
Hunk #13 succeeded at 984 (offset -14 lines).
Hunk #14 succeeded at 1061 (offset -14 lines).
Hunk #15 succeeded at 1499 (offset -14 lines).
2 out of 15 hunks FAILED -- rejects in file engines/e_devcrypto.c
patching file test/dsatest.c
patching file test/ecdsatest.c
patching file test/rsa_test.c
Patch 0001-Enhance-cryptodev-s-engine-by-CAAM-public-key-crypto.patch does not apply (enforce with -f)
stderr: ')
ERROR: Logfile of failure stored in: /mnt/data/zheng/nxp/imx8mp/imx-yocto/imx8mpevk-robot-foxy/tmp/work/armv8a-poky-linux/openssl/3.1.0.imx-r0/temp/log.do_patch.23509
ERROR: Task (/mnt/data/zheng/nxp/imx8mp/imx-yocto/sources/meta-robot-platform/imx/meta-robot/recipes-security/openssl/openssl_3.1.0.imx.bb:do_patch) failed with exit code '1'
ERROR: cracklib-2.9.8-r0 do_fetch: Fetcher failure: Unable to find revision d9e8f9f47718539aeba80f90f4e072549926dc9c in branch master even from upstream
ERROR: cracklib-2.9.8-r0 do_fetch: Bitbake Fetcher Error: FetchError('Unable to fetch URL from any source.', 'git://github.com/cracklib/cracklib;protocol=https;branch=master')
ERROR: Logfile of failure stored in: /mnt/data/zheng/nxp/imx8mp/imx-yocto/imx8mpevk-robot-foxy/tmp/work/armv8a-poky-linux/cracklib/2.9.8-r0/temp/log.do_fetch.12656
ERROR: Task (/mnt/data/zheng/nxp/imx8mp/imx-yocto/sources/poky/meta/recipes-extended/cracklib/cracklib_2.9.8.bb:do_fetch) failed with exit code '1'
WARNING: cracklib-native-2.9.8-r0 do_fetch: Failed to fetch URL git://github.com/cracklib/cracklib;protocol=https;branch=master, attempting MIRRORS if available
ERROR: cracklib-native-2.9.8-r0 do_fetch: Fetcher failure: Unable to find revision d9e8f9f47718539aeba80f90f4e072549926dc9c in branch master even from upstream
ERROR: cracklib-native-2.9.8-r0 do_fetch: Bitbake Fetcher Error: FetchError('Unable to fetch URL from any source.', 'git://github.com/cracklib/cracklib;protocol=https;branch=master')
ERROR: Logfile of failure stored in: /mnt/data/zheng/nxp/imx8mp/imx-yocto/imx8mpevk-robot-foxy/tmp/work/x86_64-linux/cracklib-native/2.9.8-r0/temp/log.do_fetch.12783
ERROR: Task (virtual:native:/mnt/data/zheng/nxp/imx8mp/imx-yocto/sources/poky/meta/recipes-extended/cracklib/cracklib_2.9.8.bb:do_fetch) failed with exit code '1'
NOTE: Tasks Summary: Attempted 1432 tasks of which 0 didn't need to be rerun and 3 failed.
Summary: 3 tasks failed:
/mnt/data/zheng/nxp/imx8mp/imx-yocto/sources/meta-robot-platform/imx/meta-robot/recipes-security/openssl/openssl_3.1.0.imx.bb:do_patch
/mnt/data/zheng/nxp/imx8mp/imx-yocto/sources/poky/meta/recipes-extended/cracklib/cracklib_2.9.8.bb:do_fetch
virtual:native:/mnt/data/zheng/nxp/imx8mp/imx-yocto/sources/poky/meta/recipes-extended/cracklib/cracklib_2.9.8.bb:do_fetch
Summary: There were 36 WARNING messages.
Summary: There were 5 ERROR messages, returning a non-zero exit code.
I referred to this page [https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/i-MX-%E6%9C%BA%E5%99%A8%E4%BA%BA%E5%B9%B...] for guidance, but I still couldn't compile successfully. Here are the issues I am facing, and I hope to receive some support.
the 'imx-yocto/imx8mpevk-robot-foxy/tmp/work/armv8a-poky-linux/openssl/3.1.0.imx-r0/temp/log.do_patch.23509 '
part eror log:
568 CmdError('quilt --quiltrc /mnt/data/zheng/nxp/imx8mp/imx-yocto/imx8mpevk-robot-foxy/tmp/work/armv8a-poky-linux/openssl/3.1.0.imx-r0/recipe-sysroot-native/etc/quiltrc push', 0, 'stdout: Applying patch 0001-Enhance-cryptodev-s-engine-by-CAAM-public-key-crypto.patch
569 patching file apps/speed.c
570 patching file crypto/ec/ec_curve.c
571 patching file crypto/ec/ec_key.c
572 patching file crypto/ec/ec_local.h
573 patching file crypto/sm2/sm2_crypt.c
574 patching file crypto/sm2/sm2_sign.c
575 patching file engines/e_devcrypto.c
576 Hunk #10 FAILED at 747.
577 Hunk #11 FAILED at 774.
578 Hunk #12 succeeded at 808 (offset -14 lines).
579 Hunk #13 succeeded at 984 (offset -14 lines).
580 Hunk #14 succeeded at 1061 (offset -14 lines).
581 Hunk #15 succeeded at 1499 (offset -14 lines).
582 2 out of 15 hunks FAILED -- rejects in file engines/e_devcrypto.c
583 patching file test/dsatest.c
584 patching file test/ecdsatest.c
585 patching file test/rsa_test.c
586 Patch 0001-Enhance-cryptodev-s-engine-by-CAAM-public-key-crypto.patch does not apply (enforce with -f)
587
588 stderr: ')
589 DEBUG: Python function patch_do_patch finished
use 'imx-5.15.71-2.2.0.xml'.
Thank you in advance!
Hello,
Some discrepancies are there in your building, you said that are on 5.15.71 BSP, the note document is for 5.15.71 that is ok but you mentioned the appnote that is for 5.4.47 BSP, I guess all you issues will be fixed in 6.1 BSP without adding a patch, but if you will continues with the note just use the 5.15.71.
Regards