Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Korsgaard <peter@korsgaard.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2 2/3] board/pc: add documentation for testing with qemu
Date: Sun, 22 Oct 2017 17:26:41 +0200	[thread overview]
Message-ID: <87sheb9pam.fsf@dell.be.48ers.dk> (raw)
In-Reply-To: <20171022135426.28901-2-nunes.erico@gmail.com> (Erico Nunes's message of "Sun, 22 Oct 2017 15:54:25 +0200")

>>>>> "Erico" == Erico Nunes <nunes.erico@gmail.com> writes:

 > Add some documentation about running the pc defconfigs in qemu.
 > In particular, document the use of the -bios parameter to use the OVMF
 > firmware to test the UEFI image.

 > Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
 > Cc: Peter Korsgaard <peter@korsgaard.com>

...

 > +Emulation in qemu (UEFI)
 > +========================
 > +
 > +1. Edit grub-efi.cfg
 > +
 > +  Since the driver will show up in the virtual machine as /dev/vda,
 > +  change board/pc/grub-efi.cfg to use root=/dev/vda2 instead of
 > +  root=/dev/sda2. Then rebuild grub2 and the image.
 > +
 > +2. Run the emulation with:
 > +
 > +qemu-system-x86_64 \
 > +	-M pc \
 > +	-bios </path/to/OVMF_CODE.fd> \
 > +	-drive file=output/images/disk.img,if=virtio,format=raw \

Maybe it would be better to not use virtio for the disk image so we can
keep root=/dev/sda? Unless the UEFI firmware doesn't support normal sata
controllers?

-- 
Bye, Peter Korsgaard

  parent reply	other threads:[~2017-10-22 15:26 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-22 13:54 [Buildroot] [PATCH v2 1/3] configs/pc: refactor to use genimage and grub.cfg Erico Nunes
2017-10-22 13:54 ` [Buildroot] [PATCH v2 2/3] board/pc: add documentation for testing with qemu Erico Nunes
2017-10-22 14:36   ` Thomas Petazzoni
2017-10-22 15:26   ` Peter Korsgaard [this message]
2017-10-22 13:54 ` [Buildroot] [PATCH v2 3/3] DEVELOPERS: add maintainer for pc_x86_64_* defconfigs Erico Nunes
2017-10-22 14:36   ` Thomas Petazzoni
2017-10-22 14:36 ` [Buildroot] [PATCH v2 1/3] configs/pc: refactor to use genimage and grub.cfg Thomas Petazzoni

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=87sheb9pam.fsf@dell.be.48ers.dk \
    --to=peter@korsgaard.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox