mkfs.ext4 hangs on trying to format a file system in an encrypted partition

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

mkfs.ext4 hangs on trying to format a file system in an encrypted partition

3,087件の閲覧回数
srinidhih
Contributor I

Hello,
I'm trying to format a file system in an encrypted partition and my mkfs.ext4 command is stuck forever now.
I came across one of the old posts which suggested to reset the "CONFIG_CRYPTO_DEV_FSL_CAAM_CRYPTO_API" config, (https://community.nxp.com/t5/i-MX-Processors/Hardware-accelerated-disk-encryption/m-p/281945) I did so and it did not help resolve my issue.

As the system gets hung on the above mentioned command I'll have to reset the board to recover it. Any suggestion in this regard is appreciated.


Output after executing the command:

root@aa:~# mkfs.ext4 /dev/mapper/00000000-0000-0000-0000-000000000000-etc
mke2fs 1.45.4 (23-Sep-2019)
Creating filesystem with 65536 1k blocks and 16384 inodes
Filesystem UUID: 1e81c1cc-6f86-4a34-ad45-e3bb1cd1dd3c
Superblock backups stored on blocks:
8193, 24577, 40961, 57345

Allocating group tables: done

Details:
Yocto branch- dunfell
Board - colibri-imx6ull

Thanks
Srinidhi

ラベル(2)
0 件の賞賛
返信
4 返答(返信)

3,038件の閲覧回数
srinidhih
Contributor I

Hello Yuri,
I followed the documentation and enabled the necessary kernel configs and installed the suggested tools. I am  still  facing the same problem.

Some of the outputs from my system are below. 


root@trustx-cml:~# dmsetup targets
integrity v1.3.0
verity v1.5.0
multipath v1.13.0
crypt v1.19.0
striped v1.6.0
linear v1.4.0
error v1.5.0

dmsetup table --showkey 00000000-0000-0000-0000-000000000000-etc
0 2097152 crypt capi:authenc(hmac(sha256),xts(aes))-random 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 0 254:0 0 1 int
egrity:32:aead
0 件の賞賛
返信

3,022件の閲覧回数
Yuri
NXP Employee
NXP Employee

@srinidhih 
Hello,

  I've sent You considerations (using e-mail) regarding software approach
for cryptofs -without CAAM support.

Regards,
Yuri.

0 件の賞賛
返信

3,074件の閲覧回数
Yuri
NXP Employee
NXP Employee

@srinidhih 
Hello,

   You mentioned about colibri-imx6ull board. IMX 6ULL does not have CAAM;
hardware acceleration is not supported.

Regards,
Yuri.

0 件の賞賛
返信

3,078件の閲覧回数
Yuri
NXP Employee
NXP Employee

@srinidhih 
Hello,

   please use section  10.5 (Disk encryption acceleration) of "i.MX_Linux_Users_Guide.pdf".

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

 

Regards,
Yuri.

0 件の賞賛
返信