Part Number: AM5728
Hi,
I am trying to check crypto accelerators using cryptodev on TI-AM5728 SDK 6.03 linux referring the link:
As per the documentation link above, I performed the following steps:
Enabled CRYPTO_DEV_SA2UL using make menuconfig and its dependencies
root@am57xx-evm:~# lsmod | grep sa2ul sa2ul 36864 1 omap_rng
root@am57xx-evm:~# lsmod | grep cryptodev cryptodev 49152 0
root@am57xx-evm:~# openssl speed -evp aes-128-cbc -engine cryptodev invalid engine "cryptodev" 3069685776:error:25066067:DSO support routines:dlfcn_load:could not load the shared library:../openssl-1.1.1b/crypto/dso/dso_dlfcn.c:119:filename(/usr/lib/engines-1.1/cryptodev.so): /usr/lib/engines-1.1/cryptodev.so: cannot open shared object file: No such file or directory 3069685776:error:25070067:DSO support routines:DSO_load:could not load the shared library:../openssl-1.1.1b/crypto/dso/dso_lib.c:162: 3069685776:error:260B6084:engine routines:dynamic_load:dso not found:../openssl-1.1.1b/crypto/engine/eng_dyn.c:414: 3069685776:error:2606A074:engine routines:ENGINE_by_id:no such engine:../openssl-1.1.1b/crypto/engine/eng_list.c:334:id=cryptodev 3069685776:error:25066067:DSO support routines:dlfcn_load:could not load the shared library:../openssl-1.1.1b/crypto/dso/dso_dlfcn.c:119:filename(libcryptodev.so): libcryptodev.so: cannot open shared object file: No such file or directory 3069685776:error:25070067:DSO support routines:DSO_load:could not load the shared library:../openssl-1.1.1b/crypto/dso/dso_lib.c:162: 3069685776:error:260B6084:engine routines:dynamic_load:dso not found:../openssl-1.1.1b/crypto/engine/eng_dyn.c:414: Doing aes-128-cbc for 3s on 16 size blocks: 9679889 aes-128-cbc's in 2.98s Doing aes-128-cbc for 3s on 64 size blocks: 3005713 aes-128-cbc's in 2.99s Doing aes-128-cbc for 3s on 256 size blocks: 815663 aes-128-cbc's in 2.99s Doing aes-128-cbc for 3s on 1024 size blocks: 208577 aes-128-cbc's in 2.99s Doing aes-128-cbc for 3s on 8192 size blocks: 26295 aes-128-cbc's in 3.00s Doing aes-128-cbc for 3s on 16384 size blocks: 13150 aes-128-cbc's in 2.99s OpenSSL 1.1.1b 26 Feb 2019 built on: Sun Apr 19 02:06:32 2020 UTC options:bn(64,32) rc4(char) des(long) aes(partial) idea(int) blowfish(ptr) compiler: arm-linux-gnueabihf-gcc -march=armv7-a -mthumb -mfpu=neon -mfloat-abi=hard --sysroot=recipe-sysroot -isystem/home/gtbldadm/tools/gcc-arm-2019.03/arm-linux-gnueabihf/include -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map= -fdebug-prefix-map= -fdebug-prefix-map= -DOPENSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSL_CPUID_OBJ -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DKECCAK1600_ASM -DAES_ASM -DBSAES_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -DPOLY1305_ASM -DNDEBUG -isystem/home/gtbldadm/tools/gcc-arm-2019.03/arm-linux-gnueabihf/include The 'numbers' are in 1000s of bytes per second processed. type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes 16384 bytes aes-128-cbc 51972.56k 64336.33k 69836.03k 71432.39k 71802.88k 72056.72k
* It seems cryptodev.so in not present in my SDK
Moreover,
On running command:
root@am57xx-evm:~# openssl engine -t -c (dynamic) Dynamic engine loading support [ unavailable ]
Query - As per lsmod command, cryptodev driver is included. But there is no cryptodev engine present in my SDK. Is openssl with cryptodev engine is not supported on AM5728 EVM?
Regards
Sahil Kalra