image boot.vfat {
	vfat {
		files = {
			"kernel",
			"rk3399-rock-pi-4b-plus.dtb",
			"extlinux"
		}
	}

	size = 32M
}

image sdcard.img {
	hdimage {
	}

	partition loader1 {
		in-partition-table = "no"
		image = "idbloader.img"
		offset = 32K
	}

	partition loader2 {
		in-partition-table = "no"
		image = "u-boot.itb"
		offset = 8M
	}

	partition boot {
		partition-type = 0xC
		bootable = "true"
		image = "boot.vfat"
		offset = 16M
	}

	partition rootfs {
		partition-type = 0x83
		image = "rootfs.ext"
	}

	partition cfgfs {
		partition-type = 0x88
		image = "cfgfs.img"
	}
}