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
Fully Featured eMMC A/B Layout
api-version: 1
disklabel: msdos
mmc:
boot-partitions:
enable: 1
binaries:
- input-offset: 0
output-offset: 0
input:
filename: barebox.bin
md5sum: 46b1db79bc81e7af11b29436fb7a2515
sha256sum: a4d0b0802fc30fbdc987def1975f665190aa35af64fcd9dae26fc1b121c71966
clean:
- offset: 3840KiB
size: 64KiB
- offset: 3960KiB
size: 64KiB
raw:
- input-offset: 1kiB
output-offset: 1kiB
input:
filename: barebox.bin
md5sum: 46b1db79bc81e7af11b29436fb7a2515
sha256sum: a4d0b0802fc30fbdc987def1975f665190aa35af64fcd9dae26fc1b121c71966
partitions:
- label: BOOT0
type: primary
filesystem: fat32
size: 64MiB
offset: 4MiB
input:
- filename: zImage
md5sum: 03d010a6850653344b7120da813ef282
sha256sum: 545420a94b3e7d92e61d87523fc263f5abe7820b144e5e444f59f345adb87762
- filename: oftree
md5sum: a48a06a5c3fbbfb89f0591710ca120c0
sha256sum: c40b7c2f6e669aea45385eaec60a0af4a7f7a328c0bef6ab2a173bf6143da61e
- label: BOOT1
type: primary
filesystem: fat32
size: 64MiB
input:
- filename: zImage
md5sum: 03d010a6850653344b7120da813ef282
sha256sum: 545420a94b3e7d92e61d87523fc263f5abe7820b144e5e444f59f345adb87762
- filename: oftree
md5sum: a48a06a5c3fbbfb89f0591710ca120c0
sha256sum: c40b7c2f6e669aea45385eaec60a0af4a7f7a328c0bef6ab2a173bf6143da61e
- label: CONFIG
type: primary
filesystem: ext4
size: 192MiB
input:
- filename: config-partition.tar.gz
- label: ROOT0
type: logical
filesystem: null
expand: true
block-size: 4kiB
input:
- filename: rootfs.ext4
- label: ROOT1
type: logical
filesystem: null
expand: true
block-size: 4kiB
input:
- filename: rootfs.ext4
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