aboutsummaryrefslogtreecommitdiff
path: root/board/pc
diff options
context:
space:
mode:
authorGravatar Florian La Roche <florian.laroche@googlemail.com>2020-10-22 12:15:12 +0200
committerGravatar Peter Korsgaard <peter@korsgaard.com>2020-11-03 22:44:02 +0100
commit4e89862706dd355dcba499a7e47b30737ce28a42 (patch)
tree11c3a2a75508ae72109b9e7c66bc8172dca74be9 /board/pc
parentdf17721f885d5433b1ea6c3afd75d33d781f1426 (diff)
downloadbuildroot-4e89862706dd355dcba499a7e47b30737ce28a42.tar.gz
buildroot-4e89862706dd355dcba499a7e47b30737ce28a42.tar.bz2
board/pc/genimage-efi.cfg: align the rootfs to start at 16MB offset from start of the image
For grub-efi we can align the rootfs to start at exactly 16MB from the beginning of the disk. This can be done by reducing the vfat partition to be 32 KB smaller than its 16MB size, just like the offset of the vfat partition. Signed-off-by: Florian La Roche <Florian.LaRoche@gmail.com> [Peter: drop redundant offset/size settings, add comment] Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'board/pc')
-rw-r--r--board/pc/genimage-efi.cfg5
1 files changed, 2 insertions, 3 deletions
diff --git a/board/pc/genimage-efi.cfg b/board/pc/genimage-efi.cfg
index ea15ae5cfb..ec7e85b06c 100644
--- a/board/pc/genimage-efi.cfg
+++ b/board/pc/genimage-efi.cfg
@@ -10,7 +10,8 @@ image efi-part.vfat {
image = "bzImage"
}
}
- size = 16777216
+ # 16MB - 32KB
+ size = 16744448
}
image disk.img {
@@ -22,7 +23,6 @@ image disk.img {
image = "efi-part.vfat"
partition-type-uuid = c12a7328-f81f-11d2-ba4b-00a0c93ec93b
offset = 32768
- size = 16777216
bootable = true
}
@@ -30,6 +30,5 @@ image disk.img {
partition-type-uuid = 44479540-f297-41b2-9af7-d131d5f0458a
partition-uuid = UUID_TMP
image = "rootfs.ext2"
- offset = 16809984
}
}