Layout Configuration Examples

Minimal MMC Layout

api-version: 1
disklabel: msdos

raw:
  - input-offset: 0
    output-offset: 33kiB
    input:
      filename: u-boot.bin

partitions:
  - type: primary
    filesystem: fat32
    size: 128MiB
    offset: 4MiB
    input:
      - filename: Image
      - filename: oftree
      - filename: bootenv.txt

  - type: primary
    filesystem: ext4
    expand: true
    input:
      - filename: rootfs.tar.gz

eMMC Layout With Raw WIC Image As Input

api-version: 1

mmc:
  boot-partitions:
    enable: 1
    binaries:
      - input-offset: 0
        output-offset: 32kiB
        input:
          filename: u-boot.bin
          sha256sum: a4d0b0802fc30fbdc987def1975f665190aa35af64fcd9dae26fc1b121c71966

raw:
  - input-offset: 0
    output-offset: 0
    input:
      filename: phytec-headless-image.wic
      sha256sum: d623a50cd9db0863174d21b640f39f066c2c55ea6b7926d7b5e2f49544b51167