Request for Documentation on Encrypting SquashFS RootFS with Yocto for i.MX93

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

Request for Documentation on Encrypting SquashFS RootFS with Yocto for i.MX93

跳至解决方案
708 次查看
udayMouli
Contributor I

I am trying to encrypt my squashfs rootfs for imx93 during build time. I am using yocto
i tried fetching below document but i am unable to
https://community.nxp.com/docs/DOC-342300
can you please help me to point to proper documentation related to encrypting squashfs of rootfs

标签 (1)
0 项奖励
回复
1 解答
625 次查看
AldoG
NXP TechSupport
NXP TechSupport

Hello,

We do not have documentation available for this, but you may use as a reference one of our partners implementation for this kind of use case:
https://github.com/toradex/meta-toradex-security/blob/kirkstone-6.x.y/docs/README-encryption.md

You may create the layer the same way they are using it, so it is indeed possible
https://github.com/toradex/meta-toradex-security/tree/kirkstone-6.x.y

Best regards/Saludos,
Aldo.

在原帖中查看解决方案

0 项奖励
回复
4 回复数
659 次查看
udayMouli
Contributor I

I have reviewed section 10.5.5 and would like to implement a similar encryption approach. Our requirement is to encrypt the production-ready SquashFS image during build time in Yocto. However, using /dev/mapper is not feasible since it requires root privileges.
Is there any method or documentation available for integrating dm-crypt-based encryption directly into a Yocto recipe?

0 项奖励
回复
626 次查看
AldoG
NXP TechSupport
NXP TechSupport

Hello,

We do not have documentation available for this, but you may use as a reference one of our partners implementation for this kind of use case:
https://github.com/toradex/meta-toradex-security/blob/kirkstone-6.x.y/docs/README-encryption.md

You may create the layer the same way they are using it, so it is indeed possible
https://github.com/toradex/meta-toradex-security/tree/kirkstone-6.x.y

Best regards/Saludos,
Aldo.

0 项奖励
回复
682 次查看
AldoG
NXP TechSupport
NXP TechSupport

Hi,

I forgot to mention that you may also check our Linux documentation, i.MX Linux User's Guide Chapter 10 Security & 10.5.5 DM-Crypt usage on i.MX Platforms without CAAM hardware IP

Since i.MX93 does not have have CAAM hardware IP enabled.

Best regards/Saludos,
Aldo.

0 项奖励
回复
%3CLINGO-SUB%20id%3D%22lingo-sub-2154554%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%85%B3%E4%BA%8E%E4%BD%BF%E7%94%A8%20Yocto%20%E4%B8%BA%20i.MX93%20%E7%9A%84%20SquashFS%20RootFS%20%E5%8A%A0%E5%AF%86%E7%9A%84%E6%96%87%E6%A1%A3%E8%AF%B7%E6%B1%82%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2154554%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSPAN%3E%E6%88%91%E6%AD%A3%E5%9C%A8%E5%B0%9D%E8%AF%95%E5%9C%A8%E7%89%88%E6%9C%AC%E6%9C%9F%E9%97%B4%E4%B8%BA%20imx93%20%E5%8A%A0%E5%AF%86%E6%88%91%E7%9A%84%20squashfs%20rootfs%E3%80%82%20%E6%88%91%E6%AD%A3%E5%9C%A8%E4%BD%BF%E7%94%A8%20yocto%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%20%E6%88%91%E8%AF%95%E8%BF%87%E8%8E%B7%E5%8F%96%E4%B8%8B%E9%9D%A2%E7%9A%84%E6%96%87%E6%A1%A3%E4%BD%86%E6%88%91%E6%97%A0%E6%B3%95%20%E8%8E%B7%E5%8F%96%3C%2FSPAN%3E%3CBR%20%2F%3E%3CA%20title%3D%22%22%20href%3D%22vscode-file%3A%2F%2Fvscode-app%2Fc%3A%2FProgram%2520Files%2FMicrosoft%2520VS%2520Code%2Fresources%2Fapp%2Fout%2Fvs%2Fcode%2Felectron-browser%2Fworkbench%2Fworkbench.html%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3E%20https%3A%2F%2Fcommunity.nxp.com%2Fdocs%2FDOC-342300%3C%2FA%3E%3CBR%20%2F%3E%3CSPAN%3E%E8%83%BD%E5%90%A6%E5%B8%AE%E6%88%91%E6%89%BE%E5%88%B0%E4%B8%8E%E5%8A%A0%E5%AF%86%20rootfs%20%E7%9A%84%20squashfs%20%E7%9B%B8%E5%85%B3%E7%9A%84%E6%AD%A3%E7%A1%AE%E6%96%87%E6%A1%A3%EF%BC%9F%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2154554%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EYocto%20Project%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2156293%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Request%20for%20Documentation%20on%20Encrypting%20SquashFS%20RootFS%20with%20Yocto%20for%20i.MX93%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2156293%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E4%BD%A0%E5%A5%BD%EF%BC%8C%3CBR%20%2F%3E%3CBR%20%2F%3E%E6%88%91%E4%BB%AC%E6%B2%A1%E6%9C%89%E8%BF%99%E6%96%B9%E9%9D%A2%E7%9A%84%E6%96%87%E6%A1%A3%EF%BC%8C%E4%BD%86%E4%BD%A0%E5%8F%AF%E4%BB%A5%E4%BD%BF%E7%94%A8%E6%88%91%E4%BB%AC%E7%9A%84%E5%90%88%E4%BD%9C%E4%BC%99%E4%BC%B4%E9%92%88%E5%AF%B9%E6%AD%A4%E7%B1%BB%E7%94%A8%E4%BE%8B%E7%9A%84%E5%AE%9E%E7%8E%B0%E4%BD%9C%E4%B8%BA%E5%8F%82%E8%80%83%EF%BC%9A%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Ftoradex%2Fmeta-toradex-security%2Fblob%2Fkirkstone-6.x.y%2Fdocs%2FREADME-encryption.md%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Ftoradex%2Fmeta-toradex-security%2Fblob%2Fkirkstone-6.x.y%2Fdocs%2FREADME-encryption.md%3C%2FA%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%E4%BD%A0%E5%8F%AF%E4%BB%A5%E6%8C%89%E7%85%A7%E4%BB%96%E4%BB%AC%E4%BD%BF%E7%94%A8%E7%9A%84%E6%96%B9%E5%BC%8F%E5%88%9B%E5%BB%BA%E5%B1%82%EF%BC%8C%E6%89%80%E4%BB%A5%E7%A1%AE%E5%AE%9E%E6%9C%89%E5%8F%AF%E8%83%BD%20%3CBR%20%2F%3E%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Ftoradex%2Fmeta-toradex-security%2Ftree%2Fkirkstone-6.x.y%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Ftoradex%2Fmeta-toradex-security%2Ftree%2Fkirkstone-6.x.y%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%E6%AD%A4%E8%87%B4%2FSaludos%EF%BC%8CAldo%E3%80%82%3CBR%20%2F%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2154823%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Request%20for%20Documentation%20on%20Encrypting%20SquashFS%20RootFS%20with%20Yocto%20for%20i.MX93%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2154823%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSPAN%3E%E6%88%91%E5%B7%B2%E7%BB%8F%E6%9F%A5%E7%9C%8B%E4%BA%86%E7%AC%AC%2010.5.5%20%E8%8A%82%EF%BC%8C%E6%83%B3%E5%AE%9E%E6%96%BD%E7%B1%BB%E4%BC%BC%E7%9A%84%E5%8A%A0%E5%AF%86%E6%96%B9%E6%B3%95%E3%80%82%E6%88%91%E4%BB%AC%E7%9A%84%E8%A6%81%E6%B1%82%E6%98%AF%E5%9C%A8%E7%89%88%E6%9C%AC%E6%9C%9F%E9%97%B4%E5%9C%A8%20Yocto%20%E4%B8%AD%E5%8A%A0%E5%AF%86%E7%94%9F%E4%BA%A7%E5%B0%B1%E7%BB%AA%E7%9A%84%20SquashFS%20%E9%95%9C%E5%83%8F%E3%80%82%E4%BD%86%E6%98%AF%EF%BC%8C%E4%BD%BF%E7%94%A8%3C%2FSPAN%3E%20%2Fdev%2Fmapper%20%3CSPAN%3E%E6%98%AF%E4%B8%8D%E5%8F%AF%E8%A1%8C%E7%9A%84%EF%BC%8C%E5%9B%A0%E4%B8%BA%E5%AE%83%E9%9C%80%E8%A6%81%E6%A0%B9%E6%9D%83%E9%99%90%3C%2FSPAN%3E%E3%80%82%3CBR%20%2F%3E%3CSPAN%3E%E6%98%AF%E5%90%A6%E6%9C%89%E4%BB%BB%E4%BD%95%E6%96%B9%E6%B3%95%E6%88%96%E6%96%87%E6%A1%A3%E5%8F%AF%E4%BB%A5%E5%B0%86%E5%9F%BA%E4%BA%8E%20dm-crypt%20%E7%9A%84%E5%8A%A0%E5%AF%86%E7%9B%B4%E6%8E%A5%E5%86%85%E7%BD%AE%E5%88%B0%20Yocto%20%E9%85%8D%E6%96%B9%E4%B8%AD%EF%BC%9F%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2154710%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Request%20for%20Documentation%20on%20Encrypting%20SquashFS%20RootFS%20with%20Yocto%20for%20i.MX93%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2154710%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E4%BD%A0%E5%A5%BD%EF%BC%8C%3CBR%20%2F%3E%3CBR%20%2F%3E%20%E6%88%91%E5%BF%98%E8%AE%B0%E6%8F%90%E8%BF%87%E4%BD%A0%E4%B9%9F%E5%8F%AF%E4%BB%A5%E6%9F%A5%E7%9C%8B%E6%88%91%E4%BB%AC%E7%9A%84%20Linux%20%E6%96%87%E6%A1%A3%EF%BC%8C%20%E5%8D%B3%3CSPAN%3E%20i.MX%20Linux%20%E7%94%A8%E6%88%B7%E6%8C%87%E5%8D%97%E7%AC%AC%2010%20%E7%AB%A0%E7%BD%91%E7%BB%9C%E5%AE%89%E5%85%A8%20%26amp%3B%2010.5.5%20%E5%9C%A8%E6%B2%A1%E6%9C%89%20CAAM%20%E7%A1%AC%E4%BB%B6%20IP%20%E7%9A%84%20i.MX%20%E5%B9%B3%E5%8F%B0%E4%B8%8A%E4%BD%BF%E7%94%A8%20DM-Crypt%3CBR%20%2F%3E%3CBR%20%2F%3E%20%E7%94%B1%E4%BA%8E%20i.MX93%20%E6%B2%A1%E6%9C%89%E5%90%AF%E7%94%A8%20CAAM%20%E7%A1%AC%E4%BB%B6%20IP%E3%80%82%3CBR%20%2F%3E%3CBR%20%2F%3E%20%E6%9C%80%E8%AF%9A%E6%8C%9A%E7%9A%84%E9%97%AE%E5%80%99%2F%E8%87%B4%E6%95%AC%EF%BC%8CAld%3CBR%20%2F%3E%20o%E3%80%82%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2154708%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Request%20for%20Documentation%20on%20Encrypting%20SquashFS%20RootFS%20with%20Yocto%20for%20i.MX93%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2154708%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E6%82%A8%E5%A5%BD%EF%BC%8C%3CBR%20%2F%3E%3CBR%20%2F%3E%E5%AF%B9%E6%AD%A4%EF%BC%8C%E6%82%A8%E5%8F%AF%E4%BB%A5%E5%8F%82%E8%80%83%20Linux%20%E5%86%85%E6%A0%B8%E6%96%87%E6%A1%A3%EF%BC%9A%3CBR%20%2F%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fnxp-imx%2Flinux-imx%2Ftree%2Flf-6.12.y%2FDocumentation%2Fsecurity%2Fkeys%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Fnxp-imx%2Flinux-imx%2Ftree%2Flf-6.12.y%2FDocumentation%2Fsecurity%2Fkeys%3C%2FA%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fnxp-imx%2Flinux-imx%2Fblob%2Flf-6.12.y%2FDocumentation%2Fsecurity%2Fkeys%2Ftrusted-encrypted.rst%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Fnxp-imx%2Flinux-imx%2Fblob%2Flf-6.12.y%2FDocumentation%2Fsecurity%2Fkeys%2Ftrusted-encrypted.rst%3C%2FA%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fnxp-imx%2Flinux-imx%2Fblob%2Flf-6.12.y%2FDocumentation%2Fsecurity%2Fkeys%2Fecryptfs.rst%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Fnxp-imx%2Flinux-imx%2Fblob%2Flf-6.12.y%2FDocumentation%2Fsecurity%2Fkeys%2Fecryptfs.rst%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%E8%87%B4%E4%BB%A5%E6%9C%80%E5%B4%87%E9%AB%98%E7%9A%84%E6%95%AC%E6%84%8F%2F%E9%97%AE%E5%80%99%EF%BC%8C%3CBR%20%2F%3EAldo%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E