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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

3,085 Views
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

Labels (2)
0 Kudos
Reply
4 Replies

3,036 Views
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 Kudos
Reply

3,020 Views
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 Kudos
Reply

3,072 Views
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 Kudos
Reply

3,076 Views
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 Kudos
Reply