I have two yocto recipes.

base image and advanced image.

base image have support for dm-verity. i just have to include one line in 
local.conf to enable dm-verity with initramfs support.

*DISTRO_FEATURES_append += "dm-verity" (creating wic image only)*

*
* and image gets loaded successfully as follows.

[    1.366192] Run /init as init process

Starting version 246

realpath: /dev/disk/by-partuuid//dev: No such file or directory

[    2.971331] random: veritysetup: uninitialized urandom read (2 bytes read)

[    2.973479] device-mapper: verity: sha256 using implementation 
"sha256-generic"

[    3.106633] EXT4-fs (dm-0): mounting ext3 file system using the ext4 
subsystem

[    3.113899] EXT4-fs (dm-0): mounted filesystem with ordered data mode. Opts: 
(null). Quota mode: disabled.

[    3.449425] systemd[1]: System time before build time, advancing clock.

[    3.481321] systemd[1]: systemd 246 running in system mode. (+PAM -AUDIT 
-SELINUX +IMA -APPARMOR -SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP -GCRYPT -GNUTLS 
+ACL +XZ -LZ4 -ZSTD -SECCOMP +BLKID -ELFUTILS +KMOD -IDN2 -IDN -PCRE2 
default-hierarchy=hybrid)

[    3.481828] systemd[1]: Detected architecture arm64.

But when i am trying to replicate it for advanced image, i am getting kernel 
panic error as follows.

Starting version 246

realpath: /dev/disk/by-partuuid//dev: No such file or directory

Device /dev/mmcblk0p2 is not a valid VERITY device.

mount: /rootfs: special device /dev/mapper/rootfs[    2.935967] Kernel panic - 
not syncing:

[    2.935983] Attempted to kill init! exitcode=0x00000200

does not exist.

[    3.043274] SMP: stopping secondary CPUs

[    3.046769] Kernel Offset: disabled

[    3.050233] CPU features: 0x90002001,20000842

[    3.054573] Memory Limit: none

[    3.057616] ---[ end Kernel panic - not syncing: Attempted to kill init! 
exitcode=0x00000200 ]---

What could be the issue??

*How to resolve it?*
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#60971): https://lists.yoctoproject.org/g/yocto/message/60971
Mute This Topic: https://lists.yoctoproject.org/mt/101289822/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to