How to boot into a luks encrypted rootfs partition from initramfs on i.MX6ULZ?

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

How to boot into a luks encrypted rootfs partition from initramfs on i.MX6ULZ?

13,642 次查看
skwang6272
Contributor II

Hi everyone, 

I am trying to do disk encryption on i.MX6UL. The device is USB armory II. It has DCP and no CAAM.

This is my plan:

1、Two partitions. One for /boot, one for rootfs. Bootloader and kernel are stored in /boot and they are in plain text. The rootfs is encrypted by LUKS(DM-crpty).

2、Configure initramfs in the kernel. During the boot process, decrypt the encrypted rootfs and mount the root directory automatically.

3、LUKS uses file as key. At the same time this key file is encrypted with DCP.

Here is my question:

1、How to install the system on an already partitioned SD card?How to configure the encrypted file system?

2、How to configure initramfs to encrypt and load rootfs automatically?

I am just new to embedded development. Any suggestions, documentation and tutorials are welcome.

I have searched for similar issues

How to boot into a luks encrypted rootfs partition from initramfs on imx6 quad?

The document "Root filesystem encryption using DM-Crypt"  looks useful but I don't have permission to access it.

Thanks!

标签 (1)
28 回复数

1,511 次查看
beestarbush
Contributor I
Hello,

I have the AN12714 and IMX Linux User Guide (IMXLUG_6.6.23_2.0.0) but would like to have a look into "Root filesystem encryption using DM-Crypt". Could you provide me this?
0 项奖励
回复

8,158 次查看
r1cebank
Contributor II

I am having the same question, is it possible to send me the same documents?

0 项奖励
回复

8,092 次查看
Yuri
NXP Employee
NXP Employee

@r1cebank 

Done!

~Yuri.

0 项奖励
回复

810 次查看
jheaffey
Contributor II

@Yuri 

I would like to encrypt the root filesystem on an I.MX8MP, could I please also have access to the document "Root filesystem encryption using DM-Crypt"?

 

Many thanks in advance

0 项奖励
回复

3,182 次查看
gulsrb
Contributor I
Dear Mr. Yuri
It would be very much appreciated if you could also provide me with a copy of the "Root filesystem encryption using DM-Crypt" document.
Best regards,
Aleksandar
0 项奖励
回复

5,299 次查看
d1ken
Contributor I

Hi

I am working on rootfs encryption for i.MX7D.

Could you give me access to the "Root filesystem encryption using DM-Crypt" document?

Thanks.

 
 

 

 

2,943 次查看
Yuri
NXP Employee
NXP Employee

@d1ken 
Hello,

    In addition to AN12714 (i.MX Encrypted Storage Using CAAM Secure Keys) use
section 10.5 (Disk encryption acceleration) of i.MX Linux User's Guide.


https://www.nxp.com/webapp/Download?colCode=AN12714

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

 For specific customer's cases (OS releases) NXP Pro Support may be involved.

Regards,
Yuri.

0 项奖励
回复

3,430 次查看
skwang6272
Contributor II

Hi,

   I have received it. Thank you very much!