mirror of
https://github.com/godotengine/buildroot.git
synced 2026-01-04 06:10:16 +03:00
Actually genimage fails to create final image with:
```
ERROR: hdimage(disk.img): partition [MBR] (offset 0x1b8, size 0x48) overlaps previous partition boot (offset 0x0, size 0x200)
ERROR: hdimage(disk.img): bootloaders, etc. that overlap with the partition table must declare the overlapping area as a hole.
```
This is because genimage 15 is less permissive than before, so let's add
holes = {"(440; 512)"} to leave room to MBR.
The generated image is identical to the image generated by the previous
version of genimage.
Fixes:
https://gitlab.com/buildroot.org/buildroot/-/jobs/1865935249
Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
Tested-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
24 lines
311 B
INI
24 lines
311 B
INI
image disk.img {
|
|
hdimage {
|
|
}
|
|
|
|
partition boot {
|
|
in-partition-table = "no"
|
|
image = "boot.img"
|
|
offset = 0
|
|
size = 512
|
|
holes = {"(440; 512)"}
|
|
}
|
|
|
|
partition grub {
|
|
in-partition-table = "no"
|
|
image = "grub.img"
|
|
offset = 512
|
|
}
|
|
|
|
partition root {
|
|
partition-type = 0x83
|
|
image = "rootfs.ext2"
|
|
}
|
|
}
|