How to create an encrypted rootfs for iMX8MQ using yocto

cancel
Showing results for 
Search instead for 
Did you mean: 

How to create an encrypted rootfs for iMX8MQ using yocto

113 Views
ranjitsinh_rathod
Contributor I

Hi there,

I am using iMX8MQ based custom board and I want to encrypt rootfs. Is there any guide//document for this to implement in yocto to create sdcard image with encrypted rootfs?

I am using 5.4-zeus version.

Many thanks in advance.

Regards,

Ranjitsinh Rathod

Tags (1)
0 Kudos
3 Replies

108 Views
Yuri
NXP TechSupport
NXP TechSupport

@ranjitsinh_rathod 
Hello,

 Only the following documents are available now.

“i.MX Encrypted Storage Using CAAM Secure Keys” 

https://www.nxp.com/docs/en/application-note/AN12714.pdf

 Section 10.5 (Disk encryption acceleration) in “i.MX_Linux_Users_Guide.pdf”

https://www.nxp.com/docs/en/user-guide/IMX_LINUX_USERS_GUIDE.pdf

 

Regards,
Yuri.

0 Kudos

95 Views
ranjitsinh_rathod
Contributor I

Thanks, Yuri for sharing the details.

I have tried to follow the steps and facing an issue during the step where keys are not able to generate using the caam-keygen utility.

When I'm trying to send the command below which is giving an error.

root@mymachine:~# ./caam-keygen create fromTextkey ecb -t 0123456789abcdef
Unable to open device /dev/caam-keygen

My kernel version is 5.4.3-lts-lf-5.4.y+gf8118585ee3c.

Can you please suggest what could be the issue?

Many Thanks,

Ranjitsinh

0 Kudos

83 Views
Yuri
NXP TechSupport
NXP TechSupport
0 Kudos