[meta-intel] [PATCH] rmc: enable serial console when running under QEMU
Minchev, Todor
todor.minchev at intel.com
Tue Mar 21 16:02:39 PDT 2017
QEMU inserts its default machine type into the processor information
field (SMBIOS type 2 structure) which results in different fingerprints.
QEMU 2.6
Finger 2 value : pc-i440fx-2.6
QEMU 2.8
Finger 2 value : pc-i440fx-2.8
The 'pc' machine type is an alias to the default machine.
pc -> pc-i440fx-2.6 (qemu 2.6)
pc -> pc-i440fx-2.8 (qemu 2.8)
Using the pc machine alias should result in identical fingerprints for
all versions of qemu (provided that the same OVMF is used).
runqemu ovmf qemuparams="-machine pc"
refkit-image-common wic intel-corei7-64 slirp serial nographic
Thanks,
Todor
On Tue, 2017-03-21 at 14:37 +0200, Dmitry Rozhkov wrote:
> Since we can run ordinary intel-corei7-64 wic images under QEMU
> it makes sense to add QEMU quirks enabling serial console
> to the RMC DB.
>
> This patch appends "console=ttyS0,115200" to kernel command
> line in case the image is used to run a QEMU VM e.g. with the
> command:
>
> $ runqemu ovmf refkit-image-common wic intel-corei7-64 slirp serial nographic
>
> Unfortunately different major versions of QEMU produce different
> RMC fingerprints, so the QEMU versions 2.6.x and 2.8.x should be
> treated as different boards.
>
> Signed-off-by: Dmitry Rozhkov <dmitry.rozhkov at linux.intel.com>
> ---
> common/recipes-bsp/rmc/boards/qemu-2.6/KBOOTPARAM | 1 +
> common/recipes-bsp/rmc/boards/qemu-2.6/qemu-2.6.fp | Bin 0 -> 113 bytes
> common/recipes-bsp/rmc/boards/qemu-2.8/KBOOTPARAM | 1 +
> common/recipes-bsp/rmc/boards/qemu-2.8/qemu-2.8.fp | Bin 0 -> 113 bytes
> 4 files changed, 2 insertions(+)
> create mode 100644 common/recipes-bsp/rmc/boards/qemu-2.6/KBOOTPARAM
> create mode 100644 common/recipes-bsp/rmc/boards/qemu-2.6/qemu-2.6.fp
> create mode 100644 common/recipes-bsp/rmc/boards/qemu-2.8/KBOOTPARAM
> create mode 100644 common/recipes-bsp/rmc/boards/qemu-2.8/qemu-2.8.fp
>
> diff --git a/common/recipes-bsp/rmc/boards/qemu-2.6/KBOOTPARAM b/common/recipes-bsp/rmc/boards/qemu-2.6/KBOOTPARAM
> new file mode 100644
> index 0000000..476b1fb
> --- /dev/null
> +++ b/common/recipes-bsp/rmc/boards/qemu-2.6/KBOOTPARAM
> @@ -0,0 +1 @@
> +console=ttyS0,115200
> diff --git a/common/recipes-bsp/rmc/boards/qemu-2.6/qemu-2.6.fp b/common/recipes-bsp/rmc/boards/qemu-2.6/qemu-2.6.fp
> new file mode 100644
> index 0000000000000000000000000000000000000000..e4c41657f2e98b6c1b836e088b56d477941de5fd
> GIT binary patch
> literal 113
> zcmZQ%Ehx%QDNQbk&r8frWe6 at w%u7iuN>K=KR?x^aF)?t9P|#Kg at brw(Q82W$G}B~Y
> rLe;>)B2boERGgWg$54>03(}ERp=+dP#!$~tlv<oxRF;~;fWig<a~B~<
>
> literal 0
> HcmV?d00001
>
> diff --git a/common/recipes-bsp/rmc/boards/qemu-2.8/KBOOTPARAM b/common/recipes-bsp/rmc/boards/qemu-2.8/KBOOTPARAM
> new file mode 100644
> index 0000000..476b1fb
> --- /dev/null
> +++ b/common/recipes-bsp/rmc/boards/qemu-2.8/KBOOTPARAM
> @@ -0,0 +1 @@
> +console=ttyS0,115200
> diff --git a/common/recipes-bsp/rmc/boards/qemu-2.8/qemu-2.8.fp b/common/recipes-bsp/rmc/boards/qemu-2.8/qemu-2.8.fp
> new file mode 100644
> index 0000000000000000000000000000000000000000..7f28f37c33e01186c0f87cea9611b58ef11edcc1
> GIT binary patch
> literal 113
> zcmZQ%Ehx%QDNQbk&r8frWe6 at w%u7iuN>K=KR?x^aF)?t9P|#Kg at brw(Q82W$G}B~Y
> rLe;>)B2boERGgWg$54>03(}ERp=+dP!BEdolv<oxRF;~;fWig<b4wvg
>
> literal 0
> HcmV?d00001
>
> --
> 2.7.4
>
More information about the meta-intel
mailing list