From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2] configs/pc: add a configuration to build a UEFI+GPT image
Date: Wed, 6 Feb 2019 17:43:52 +0100 [thread overview]
Message-ID: <20190206174352.7165ec29@windsurf> (raw)
In-Reply-To: <20180929031609.8939-1-casantos@datacom.com.br>
Hello,
On Sat, 29 Sep 2018 00:16:09 -0300
Carlos Santos <casantos@datacom.com.br> wrote:
> This is an example of how to craft a disk image with GPT partitioning
> instead of MBR. This is achieved by means of a post-image script which
> uses mkdosfs+mcopy+sfdisk, since genimage is unable to deal with GPT.
>
> The script was kept as simple as possible to make it easy to understand
> and adapt for other purposes.
>
> The root filesystem location is passed to the kernel by a partition
> UUID, so it is possible to boot on QEMU, directly from the disk image,
> or dump the image to a physical device.
>
> Signed-off-by: Carlos Santos <casantos@datacom.com.br>
> Acked-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
> ---
> Changes v1->v2:
> Fix commit message ("ane", spurious "the").
> ---
> board/pc/post-image-efi-gpt.sh | 62 ++++++++++++++++++++++++++++
> board/pc/readme.txt | 6 ++-
> configs/pc_x86_64_efi_gpt_defconfig | 64 +++++++++++++++++++++++++++++
> 3 files changed, 131 insertions(+), 1 deletion(-)
> create mode 100755 board/pc/post-image-efi-gpt.sh
> create mode 100644 configs/pc_x86_64_efi_gpt_defconfig
After discussing with Arnout, we decided that there was not much point
in having an EFI configuration on one side and an EFI+GPT configuration
on the other side. Indeed, all EFI systems support GPT partition
tables. So I just took your configuration, and used it to replace the
existing pc_x86_64_efi_defconfig. I did the related adjustements as
well (hopefully correctly), such as dropping from
board/pc/post-build.sh the bits that are no longer needed.
Feel free to give it a test!
Long term of course, having support for GPT in genimage would be nice.
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
prev parent reply other threads:[~2019-02-06 16:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-29 3:16 [Buildroot] [PATCH v2] configs/pc: add a configuration to build a UEFI+GPT image Carlos Santos
2019-02-06 16:43 ` Thomas Petazzoni [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190206174352.7165ec29@windsurf \
--to=thomas.petazzoni@bootlin.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.