54 lines
1.1 KiB
INI
54 lines
1.1 KiB
INI
/* genimage.cfg - SD card image layout for Raspberry Pi
|
|
*
|
|
* Partition layout:
|
|
* - boot (FAT32, 64MB): kernel, device tree, bootloader files
|
|
* - rootfs (ext4, 256MB): root filesystem
|
|
*
|
|
* The final image is written to sdcard.img.
|
|
*
|
|
* Adjust partition sizes as needed for your project. Projects can
|
|
* override this file by providing their own genimage.cfg and setting
|
|
* GENIMAGE_CFG in their post-image script.
|
|
*/
|
|
|
|
image boot.vfat {
|
|
vfat {
|
|
files = {
|
|
"bcm2710-rpi-3-b.dtb",
|
|
"bcm2711-rpi-4-b.dtb",
|
|
"rpi-firmware/bootcode.bin",
|
|
"rpi-firmware/start.elf",
|
|
"rpi-firmware/fixup.dat",
|
|
"rpi-firmware/config.txt",
|
|
"rpi-firmware/cmdline.txt",
|
|
"Image"
|
|
}
|
|
}
|
|
|
|
size = 64M
|
|
}
|
|
|
|
image rootfs.ext4 {
|
|
ext4 {
|
|
label = "rootfs"
|
|
}
|
|
|
|
size = 256M
|
|
}
|
|
|
|
image sdcard.img {
|
|
hdimage {
|
|
}
|
|
|
|
partition boot {
|
|
partition-type = 0xC
|
|
bootable = "true"
|
|
image = "boot.vfat"
|
|
}
|
|
|
|
partition rootfs {
|
|
partition-type = 0x83
|
|
image = "rootfs.ext4"
|
|
}
|
|
}
|