Andrew Geissler | 1fe918a | 2020-05-15 14:16:47 -0500 | [diff] [blame] | 1 | # SPDX-License-Identifier: MIT |
| 2 | # |
| 3 | # Copyright (C) 2020 BayLibre SAS |
| 4 | # Author: Bartosz Golaszewski <bgolaszewski@baylibre.com> |
| 5 | # |
Patrick Williams | 520786c | 2023-06-25 16:20:36 -0500 | [diff] [blame] | 6 | # short-description: Create a u-SD image for beaglebone-black with dm-verity |
Andrew Geissler | 1fe918a | 2020-05-15 14:16:47 -0500 | [diff] [blame] | 7 | # A dm-verity variant of the regular wks for beaglebone black. We need to fetch |
| 8 | # the partition images from the DEPLOY_DIR_IMAGE as the rootfs source plugin will |
| 9 | # not recreate the exact block device corresponding with the hash tree. We must |
| 10 | # not alter the label or any other setting on the image. |
| 11 | # |
| 12 | # This .wks only works with the dm-verity-img class. |
| 13 | |
Andrew Geissler | 2daf84b | 2023-03-31 09:57:23 -0500 | [diff] [blame] | 14 | part /boot --source bootimg-partition --ondisk mmcblk0 --fstype=vfat --label boot --active --align 4 --fixed-size 32 --sourceparams="loader=u-boot" --use-uuid |
Patrick Williams | 03514f1 | 2024-04-05 07:04:11 -0500 | [diff] [blame] | 15 | part / --source rawcopy --ondisk mmcblk0 --sourceparams="file=${IMGDEPLOYDIR}/${DM_VERITY_IMAGE}-${MACHINE}${IMAGE_NAME_SUFFIX}.${DM_VERITY_IMAGE_TYPE}.verity" |
Andrew Geissler | 1fe918a | 2020-05-15 14:16:47 -0500 | [diff] [blame] | 16 | bootloader --append="console=ttyS0,115200" |