imx6ul, u-boot CAAM blob_encap() fails

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

imx6ul, u-boot CAAM blob_encap() fails

跳至解决方案
1,266 次查看
angelo_dureghel
Contributor III

Hi all,

porting some imx6sx crypto-related code to imx6ul, but the blob encapsulation function (blob_encap(), drivers/crypto/fsl/fsl_blob.c) seems not working.

As function parameters, i am passing the buffer with a key to encapsulate, but the blob output buffer remains untouched, all 0. Like the CAAM module is not performing any action. Hope someone can provide some help on this.

Thanks

Regards,

angelo

标签 (1)
1 解答
1,148 次查看
angelo_dureghel
Contributor III

Hi,

thanks anyway, i solved this, issue was due to some customizations done into the caam driver.

在原帖中查看解决方案

3 回复数
1,148 次查看
angelo_dureghel
Contributor III

Hi Yuri,

thanks for your support,

i am using U-Boot 2016.03-F1-0.9.2.10032 but patched with more recent enc_blob fixes.

I tried to disable dcache, nothing changed.

      /* Encapsulate it
       */
  rval = blob_encap ( caam_keymod, buf1, buf2, keylen, &caam_bloblen );
  if ( rval )
    goto errexit;

blob encap result (buf2: 8df4c800) :
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

0 项奖励
回复
1,149 次查看
angelo_dureghel
Contributor III

Hi,

thanks anyway, i solved this, issue was due to some customizations done into the caam driver.

1,148 次查看
Yuri
NXP Employee
NXP Employee

Hello,

  What is U-boot release, used in the case?

Please try to disable caches.


Have a great day,
Yuri

-------------------------------------------------------------------------------
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 项奖励
回复