About CAAM function enabling in i.MX6DQ.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

About CAAM function enabling in i.MX6DQ.

983 Views
keitanagashima
Senior Contributor I

Dear All,

Hello.
My customer confirmed the CAAM function enabling by using unit tests (imx-test package) from SR# 1-4151725484.
And, they got below logs. (BSP: jb4.2.2_1.1.0)

-----------
FSL-UT-CAAM-001.txt
root@android:/system/lib/modules # insmod tcrypt.ko mode=3
insmod: init_module 'tcrypt.ko' failed (Try again)

FSL-UT-CAAM-002.txt
root@android:/system/lib/modules # insmod tcrypt.ko mode=4
insmod: init_module 'tcrypt.ko' failed (Try again)

FSL-UT-CAAM-003.txt
root@android:/system/lib/modules # insmod tcrypt.ko mode=10
[ 4615.247097] alg: skcipher: Failed to load transform for lrw(aes): -2
[ 4615.248847] alg: skcipher: Failed to load transform for lrw(aes): -2
[ 4615.250765] alg: skcipher: Failed to load transform for xts(aes): -2
[ 4615.273415] alg: skcipher: Failed to load transform for xts(aes): -2
[ 4615.282376] alg: skcipher: Failed to load transform for ctr(aes): -2
[ 4615.290472] alg: skcipher: Failed to load transform for ctr(aes): -2
[ 4615.298008] alg: skcipher: Failed to load transform for rfc3686(ctr(aes)): -2
[ 4615.306512] alg: skcipher: Failed to load transform for rfc3686(ctr(aes)): -2
[ 4615.306521] tcrypt: one or more tests failed!
insmod: init_module 'tcrypt.ko' failed (Exec format error)
-----------

[Questions]
Is the CAAM working right from above logs?

The FSL-UT-CAAM-001.txt and FSL-UT-CAAM-002.txt looks right operation.
But, "FSL-UT-CAAM-003.txt" looks wrong operation...
If "FSL-UT-CAAM-003.txt" was wrong operation, please tell me the this cause.

Best Regards,
Keita

Labels (4)
0 Kudos
4 Replies

615 Views
igorpadykov
NXP Employee
NXP Employee

Hi Keita

Android jb4.2.2_1.1.0 is based on L3.0.35_4.0.0 GA release, it is very old release.
For upgraded L3.0.35_4.1.0 please refer to suggestions on link :
https://community.nxp.com/thread/319374         

post 12.02.2014 22:05
-"Q&A: Why is CAAM Driver Not Functioning in Linux for iMX6?"
-for fixes for CAAM driver and black keys test application, the
patches are not part of the formal BSP and are online in our git repository

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

0 Kudos

615 Views
keitanagashima
Senior Contributor I

Hi Igor,

Hello. Thank you for your reply.

Sorry. I couldn't understand well...

Please confirm again

[Questions]

>Q1: Is the CAAM working right from above logs?

>The FSL-UT-CAAM-001.txt and FSL-UT-CAAM-002.txt looks right operation.
>But, "FSL-UT-CAAM-003.txt" looks wrong operation...

Please confirm again. I think that FSL-UT-CAAM-003.txt is error.

Is my understanding right?

>Q2: If "FSL-UT-CAAM-003.txt" was wrong operation, please tell me the this cause.

Should we apply the below patches?

Patches related to CAAM changes are:
ENGR00290444: Need to update CAAM driver with SM patches from STC
ENGR00290448: Double instantiation of RNG in CAAM Driver
ENGR00290449: Cannot build CAAM as a loadable module
ENGR00291081 CAAM: Fix the Copyright issue introduced by commit: 2b94a4b

Best Regards,

Keita

0 Kudos

615 Views
igorpadykov
NXP Employee
NXP Employee

Hi Keita

Q1.> right

Q2.> you should:

a) upgrade to L3.0.35_4.1.0 

b) apply these patches.

>please tell me the this cause

such error "alg: skcipher: Failed to load transform for.."  was reported

on other forums for other processors like on:

https://bugzilla.redhat.com/show_bug.cgi?format=multiple&id=721002

it means some race between the security module and the linux crypto manager
framework.

As I already answered before Android has not formal support for CAAM

(not described in Release Notes) and this functionality was not tested.

Best regards
igor

0 Kudos

615 Views
keitanagashima
Senior Contributor I

Dear Igor,

Thank you for you clearly answer.

OK. I got it.

Thank you very much.

Best Regards,

Keita

0 Kudos