Hi Team,
I'm using dm-verity in yocto Linux 5.15 on the imx6dl board. On boot
when device mapper creates I'm getting a data block corrupted error,
Can you please help to fix this issue.?
Error log:
# cryptsetup 2.4.3 processing "veritysetup create rootfs
/dev/mmcblk3p3 /dev/mmcblk3p2
11757d96406b3407f8ab9109908c451a061c2fd1e66a38f830bb31ebc4cb5b51
--debug"
device-mapper: verity: 179:3: data block 13040 is corrupted
Buffer I/O error on dev dm-0, logical block 13040, async page read
device-mapper: verity: 179:3: data block 13040 is corrupted
Buffer I/O error on dev dm-0, logical block 13040, async page read
[ 6.115793] Buffer I/O error on dev dm-0, logical block 13040,
async page read
[ 6.130642] Buffer I/O error on dev dm-0, logical block 13040,
async page read
[ 6.348502] device-mapper: verity: 179:3: reached maximum errors
[ 7.966201] EXT4-fs (dm-0): unable to read superblock
mount: /new_root: can't read superblock on /dev/mapper/rootfs.
#Yocto #dm-verity #linux5.15 #initramfs #dm-verity-initramfs #veritysetup
Regards,
Aravinthkumar.
@Aravinthkumar
Could you share the resolution to this block corruption?
Hi
It seems hash mismatch between data and hash partition block when create mapper device, "/dev/mmcblk3p3 /dev/mmcblk3p2 11757d96406b3407f8ab9109908c451a061c2fd1e66a38f830bb31ebc4cb5b51".
Can you share your full log and whole running steps, we can help analyze dm-verity procedure.
Best regards
Harvey
Thanks for your response. We have not done any changes on disk.
Below are partitions command executed for partitioning in MFG tool
sfdisk --force ${node} << EOF
${BOOT_ROM_SIZE}M,500M,0c
700M,800M,83
1600M,,83
EOF
Below command executed for Hash flash and Rootfs flash in MFG tool ucl file
Regards,
Aravinth
Make sure that the disk has not been changed after the HASH tree is made. For example, such as mount, umount. Then pay attention, after making the hash tree, do not change the content in it.
Would you like to share your processing steps? If there is still a problem.
Best regards
Harvey