[Buildroot] [PATCH] board/pc: fix build failure due to new genimage 15

Arnout Vandecappelle arnout at mind.be
Sat Feb 12 22:05:04 UTC 2022



On 04/02/2022 01:56, Giulio Benetti wrote:
> 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.
> 
> Fixes:
> https://gitlab.com/buildroot.org/buildroot/-/jobs/1865935249
> 
> Signed-off-by: Giulio Benetti <giulio.benetti at benettiengineering.com>

  Applied to master, thanks.

  Regards,
  Arnout

> ---
>   board/pc/genimage-bios.cfg | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/board/pc/genimage-bios.cfg b/board/pc/genimage-bios.cfg
> index 26d12d9ab3..54026f6527 100644
> --- a/board/pc/genimage-bios.cfg
> +++ b/board/pc/genimage-bios.cfg
> @@ -7,6 +7,7 @@ image disk.img {
>   		image = "boot.img"
>   		offset = 0
>   		size = 512
> +		holes = {"(440; 512)"}
>   	}
>   
>   	partition grub {



More information about the buildroot mailing list