At this point, we can generate an SD card image that is composed of an EFI system partition, a SquashFS root partition (a), a blank root partition (b), and a data partition. On the EFI system partition are the Raspberry Pi firmware and device trees, U-Boot and GRUB. The SquashFS filesystem contains the kernel and the whole filesystem tree. A Raspberry Pi can successfully boot from an SD card containing this image. It's not quite usable yet, because there's no writable storage available, or indeed any way to log in.
42 lines
568 B
INI
42 lines
568 B
INI
# vim: set sw=4 ts=4 sts=4 :
|
|
|
|
image firmware.img {
|
|
vfat {
|
|
}
|
|
|
|
srcpath = "efi-part"
|
|
size = 64M
|
|
}
|
|
|
|
image sdcard.img {
|
|
hdimage {
|
|
partition-table-type = hybrid
|
|
align = 1M
|
|
}
|
|
|
|
partition "EFI System Partition" {
|
|
partition-type = 0xC
|
|
partition-type-uuid = "U"
|
|
bootable = true
|
|
image = "firmware.img"
|
|
}
|
|
|
|
partition rootfs-a {
|
|
partition-type-uuid = "L"
|
|
image = "rootfs.squashfs"
|
|
size = 512M
|
|
}
|
|
|
|
partition rootfs-b {
|
|
partition-type-uuid = "L"
|
|
size = 512M
|
|
}
|
|
|
|
partition aimeeos-data {
|
|
partition-type-uuid = "L"
|
|
autoresize = true
|
|
}
|
|
|
|
size = 4G
|
|
}
|