$ pmbootstrap bootimg_analyze boot.img #lOS
[16:05:14] NOTE: You will be prompted for your sudo/doas password, so we can set up a chroot to extract and analyze your boot.img file
[16:05:49] (native) install file unpackbootimg
doas (swee@candycorn) password: 
[16:06:03] Put these variables in the deviceinfo file of your device:

deviceinfo_kernel_cmdline="loop.max_part=7 androidboot.boot_devices=13520000.ufs"
deviceinfo_generate_bootimg="true"
deviceinfo_flash_pagesize="2048"
deviceinfo_dtb_second="true"
deviceinfo_header_version="1"
deviceinfo_flash_offset_base="0x10000000"
deviceinfo_flash_offset_kernel="0x00008000"
deviceinfo_flash_offset_ramdisk="0x00000000"
deviceinfo_flash_offset_second="0x00000000"
deviceinfo_flash_offset_tags="0x00000000"

[16:06:03] NOTE: chroot is still active (use 'pmbootstrap shutdown' as necessary)
[16:06:03] DONE!

$ pmbootstrap bootimg_analyze boot2.img #pmOS
[16:04:06] NOTE: You will be prompted for your sudo/doas password, so we can set up a chroot to extract and analyze your boot.img file
[16:04:40] (native) install file unpackbootimg
doas (swee@candycorn) password: 
[16:04:52] Put these variables in the deviceinfo file of your device:

deviceinfo_kernel_cmdline="loop.max_part=7 androidboot.boot_devices=13520000.ufs  pmos_boot_uuid=71193664-1a10-4e0c-b844-8fb6f2702c59 pmos_root_uuid=76f2fa46-1760-4cfc-9cc9-3abd05b6e6c5 pmos_rootfsopts=defaults"
deviceinfo_generate_bootimg="true"
deviceinfo_flash_pagesize="2048"
deviceinfo_header_version="0"
deviceinfo_flash_offset_base="0x10000000"
deviceinfo_flash_offset_kernel="0x00008000"
deviceinfo_flash_offset_ramdisk="0x00000000"
deviceinfo_flash_offset_second="0x00000000"
deviceinfo_flash_offset_tags="0x00000000"

[16:04:52] NOTE: chroot is still active (use 'pmbootstrap shutdown' as necessary)
[16:04:52] DONE!