Yocto recipe for SE050x

cancel
Showing results for 
Search instead for 
Did you mean: 

Yocto recipe for SE050x

Jump to solution
1,003 Views
antonio_mendes
Contributor III

Hello.

I am trying to create a recipe to add se050x libraries to my yocto image for imx8 but without success...

Can you provide the recipe used in SD Card image for imx6?

Log data follows:
| DEBUG: Executing shell function do_compile
| INFO:__main__:Preprocessing /home/antonio/var-fsl-yocto/build_xwayland/tmp/work/aarch64-poky-linux/se050x/1.0-r0/simw-top/ext/open62541/tools/schema/Opc.Ua.NodeSet2.Minimal.xml
| INFO:__main__:Generating Code for Backend: open62541
| INFO:__main__:NodeSet generation code successfully printed
| -- BUILD_TYPE: Debug
| Found: /home/antonio/var-fsl-yocto/build_xwayland/tmp/work/aarch64-poky-linux/se050x/1.0-r0/recipe-sysroot-native/usr/lib/libssl.so/home/antonio/var-fsl-yocto/build_xwayland/tmp/work/aarch64-poky-linux/se050x/1.0-r0/recipe-sysroot-native/usr/lib/libcrypto.so
| -- CMAKE_CXX_COMPILER_ID = GNU
| -- CMAKE_SYSTEM_NAME = Linux
| -- Configuring done
| -- Generating done
| -- Build files have been written to: /home/antonio/var-fsl-yocto/build_xwayland/tmp/work/aarch64-poky-linux/se050x/1.0-r0/simw-top_build/imx_native_a7x_sci2c
| -- BUILD_TYPE: Debug
| Found: /home/antonio/var-fsl-yocto/build_xwayland/tmp/work/aarch64-poky-linux/se050x/1.0-r0/recipe-sysroot-native/usr/lib/libssl.so/home/antonio/var-fsl-yocto/build_xwayland/tmp/work/aarch64-poky-linux/se050x/1.0-r0/recipe-sysroot-native/usr/lib/libcrypto.so
| -- CMAKE_CXX_COMPILER_ID = GNU
| -- CMAKE_SYSTEM_NAME = Linux
| -- SE05X_Auth - UserID
| -- se05x_Delete_and_test_provision is not built because SE05X_Auth is 'UserID'.
| -- Configuring done
| -- Generating done
| -- Build files have been written to: /home/antonio/var-fsl-yocto/build_xwayland/tmp/work/aarch64-poky-linux/se050x/1.0-r0/simw-top_build/imx_native_se050_t1oi2c
|
|
| ### Native compilation on iMX Linux for A71CH using SCI2C
| #cmake -DSE05X_Auth=None -DSMCOM=SCI2C -DHostCrypto=OPENSSL -DApplet=A71CH -DHost=iMXLinux -DCMAKE_BUILD_TYPE=Debug
|
|
| ### Native compilation on iMX Linux for SE05X using T=1 Over I2C
| #cmake -DSE05X_Auth=UserID -DSMCOM=T1oI2C -DHostCrypto=OPENSSL -DApplet=SE050_C -DHost=iMXLinux -DCMAKE_BUILD_TYPE=Debug
| NOTE: make -j 8
| [ 12%] Built target smCom
| [ 13%] Linking C executable ../../../bin/jrcpv1_server
| [ 17%] Built target unity
| [ 21%] Built target se05x
| [ 26%] Built target a7x_utils
| /home/antonio/var-fsl-yocto/build_xwayland/tmp/work/aarch64-poky-linux/se050x/1.0-r0/recipe-sysroot-native/usr/lib/libssl.so: error adding symbols: File in wrong format
| collect2: error: ld returned 1 exit status
| hostlib/hostLib/rjct/CMakeFiles/jrcpv1_server.dir/build.make:149: recipe for target 'bin/jrcpv1_server' failed
| make[2]: *** [bin/jrcpv1_server] Error 1
| CMakeFiles/Makefile2:294: recipe for target 'hostlib/hostLib/rjct/CMakeFiles/jrcpv1_server.dir/all' failed
| make[1]: *** [hostlib/hostLib/rjct/CMakeFiles/jrcpv1_server.dir/all] Error 2
| make[1]: *** Waiting for unfinished jobs....
| Scanning dependencies of target SSS_APIs
| [ 26%] Building C object sss/CMakeFiles/SSS_APIs.dir/src/fsl_sss_apis.c.o
| [ 27%] Building C object sss/CMakeFiles/SSS_APIs.dir/src/fsl_sss_util_asn1_der.c.o
| [ 28%] Building C object sss/CMakeFiles/SSS_APIs.dir/src/fsl_sss_util_rsa_sign_utils.c.o
| [ 29%] Building C object sss/CMakeFiles/SSS_APIs.dir/src/sscp/fsl_sss_sscp.c.o
| [ 30%] Building C object sss/CMakeFiles/SSS_APIs.dir/src/a71cl/fsl_sscp_a71cl.c.o
| [ 31%] Building C object sss/CMakeFiles/SSS_APIs.dir/src/a71ch/fsl_sscp_a71ch.c.o
| [ 31%] Building C object sss/CMakeFiles/SSS_APIs.dir/src/se05x/fsl_sss_se05x_apis.c.o
| [ 32%] Building C object sss/CMakeFiles/SSS_APIs.dir/src/se05x/fsl_sss_se05x_fastscp.c.o
| [ 33%] Building C object sss/CMakeFiles/SSS_APIs.dir/src/se05x/fsl_sss_se05x_mw.c.o
| [ 34%] Building C object sss/CMakeFiles/SSS_APIs.dir/src/se05x/fsl_sss_se05x_policy.c.o
| [ 35%] Building C object sss/CMakeFiles/SSS_APIs.dir/src/se05x/fsl_sss_se05x_scp03.c.o
| [ 36%] Building C object sss/CMakeFiles/SSS_APIs.dir/src/mbedtls/fsl_sss_mbedtls_apis.c.o
| [ 36%] Building C object sss/CMakeFiles/SSS_APIs.dir/src/openssl/fsl_sss_openssl_apis.c.o
| [ 37%] Building C object sss/CMakeFiles/SSS_APIs.dir/src/keystore/keystore_cmn.c.o
| [ 38%] Building C object sss/CMakeFiles/SSS_APIs.dir/src/keystore/keystore_openssl.c.o
| [ 39%] Building C object sss/CMakeFiles/SSS_APIs.dir/src/keystore/keystore_pc.c.o
| [ 40%] Building C object sss/CMakeFiles/SSS_APIs.dir/src/a71cx_common/fsl_sss_a71cx_cmn.c.o
| [ 41%] Linking C static library libSSS_APIs.a
| [ 41%] Built target SSS_APIs
| Makefile:129: recipe for target 'all' failed
| make: *** [all] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /home/antonio/var-fsl-yocto/build_xwayland/tmp/work/aarch64-poky-linux/se050x/1.0-r0/temp/log.do_compile.28660)
ERROR: Task (/home/antonio/var-fsl-yocto/sources/meta-webserver/recipes-se050x/se050x/se050x.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 788 tasks of which 787 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /home/antonio/var-fsl-yocto/sources/meta-webserver/recipes-se050x/se050x/se050x.bb:do_compile
Summary: There were 8 WARNING messages shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

Thanks

Labels (1)
Tags (2)
0 Kudos
1 Solution
729 Views
antonio_mendes
Contributor III

I figured it out. I will leave the recipe here. Just put the ZIP inside.

I add success using imx8.

DO NOT FORGET TO CHANGE I2C PORT (patch in recipe do this for me)!

Thanks!

View solution in original post

3 Replies
259 Views
tommaso_merciai
Contributor II

Hi,

We develop an updated .bb recipe for Yocto Zeus. Attached to this thread.

Thanks to @ettorechimenti  and @tommaso_merciai from SECO

 

Regards!

 

0 Kudos
730 Views
antonio_mendes
Contributor III

I figured it out. I will leave the recipe here. Just put the ZIP inside.

I add success using imx8.

DO NOT FORGET TO CHANGE I2C PORT (patch in recipe do this for me)!

Thanks!

View solution in original post

729 Views
Kan_Li
NXP TechSupport
NXP TechSupport

Thanks for the sharing! 

Have a great day,
Kan


-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos