cryptodev driver for t2080

cancel
Showing results for 
Search instead for 
Did you mean: 

cryptodev driver for t2080

Jump to solution
693 Views
sameerarvikar
Contributor III

I want to generate cryptodev.ko standalone and not with kernel,

so i tried following from sdk document page number --> 1260 (QorIQ SDK v2.0=1703 doc)

• Build cryptodev

$ cd <sdk-dir>/sources/cryptodev
$ make
$ sudo make modules_install
$ sudo install -D crypto/cryptodev.h /usr/include/crypto/cryptodev.h

But there is no makefile at the above place

How to do it for t2080

Labels (1)
Tags (2)
0 Kudos
1 Solution
123 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello sameerarvikar,

I assume that you have installed SDK 2.0 Toolchain in /opt/fsl-qoriq/2.0/.

$ source /opt/fsl-qoriq/2.0/environment-setup-ppce6500-fsl-linux

$ unset LDFLAGS
$ make -C /home/b25805/QorIQ-SDK-V2.0-20160527-yocto/build_t2080rdb/tmp/work/t2080rdb-fsl-linux/linux-qoriq/4.1-r0/build/ M=/home/b25805/QorIQ-SDK-V2.0-20160527-yocto/build_t2080rdb/tmp/work/t2080rdb-fsl-linux/cryptodev-qoriq-module/1.8-r0/cryptodev-linux-1.8 ARCH=powerpc CROSS_COMPILE=powerpc-fsl-linux- modules

The build command

$ make -C <Kernel build directory> M=<cryptodev module source> ARCH=powerpc CROSS_COMPILE=powerpc-fsl-linux- modules


Have a great day,
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
3 Replies
124 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello sameerarvikar,

I assume that you have installed SDK 2.0 Toolchain in /opt/fsl-qoriq/2.0/.

$ source /opt/fsl-qoriq/2.0/environment-setup-ppce6500-fsl-linux

$ unset LDFLAGS
$ make -C /home/b25805/QorIQ-SDK-V2.0-20160527-yocto/build_t2080rdb/tmp/work/t2080rdb-fsl-linux/linux-qoriq/4.1-r0/build/ M=/home/b25805/QorIQ-SDK-V2.0-20160527-yocto/build_t2080rdb/tmp/work/t2080rdb-fsl-linux/cryptodev-qoriq-module/1.8-r0/cryptodev-linux-1.8 ARCH=powerpc CROSS_COMPILE=powerpc-fsl-linux- modules

The build command

$ make -C <Kernel build directory> M=<cryptodev module source> ARCH=powerpc CROSS_COMPILE=powerpc-fsl-linux- modules


Have a great day,
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
123 Views
sameerarvikar
Contributor III

Not able to attach image

Following error is coming :

cryptodev: disagrees about version of symbol crypto_ahash_setkey

cryptodev: Unknown symbol crypto_ahash_setkey (err -22)

like this errors are for follwing symbols

crypto_aead_setauthsize

crypto_alloc_aead

crypto_destroy_tfm

crypto_alloc_ablkcipher

crypto_alloc_ahash

crypto_alloc_base

crypto_ahash_digest

insmod: ERROR: could not insert module cryptodev.ko:invalid parameters

0 Kudos
123 Views
sameerarvikar
Contributor III

Thanks Yiping,

Its working in t2080RDB

Now i got only kernel-source directory for a custom t2080 board

so it doesn't have a build directory as given in the path in above answer

If  i use the cryptodev.ko driver generated for t2080 RDB , i got the errors(please find attachment)

How can i generate it with the kernel-source directory

Regards

0 Kudos