[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 2/3] m68k: virt: add a bootstrap ROM
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [PATCH 2/3] m68k: virt: add a bootstrap ROM |
Date: |
Thu, 3 Feb 2022 00:27:36 +0100 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 |
On 2/2/22 23:35, Laurent Vivier wrote:
This ROM will be started by QEMU and will load the firmware.
The firware will be based on Petit Boot, the aim of the bootstrap
"firmware"
is to ask QEMU to load the kernel and initramfs to the RAM.
It also builds the bootinfo structure to pass to the kernel the
same way QEMU does when it loads directly the kernel.
To build the bootstrap:
$ git submodule init roms/m68k-virt
$ git submodule updage roms/m68k-virt
"update"
You can combine as "update --init".
$ make -C roms m68k-virt-bootrom
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
hw/m68k/virt.c | 32 ++++++++++++++++++++++++++++++++
.gitmodules | 3 +++
pc-bios/meson.build | 1 +
roms/Makefile | 7 +++++++
roms/m68k-virt | 1 +
5 files changed, 44 insertions(+)
create mode 160000 roms/m68k-virt
diff --git a/.gitmodules b/.gitmodules
index 84425d87e28a..315d597d057a 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -67,3 +67,6 @@
[submodule "tests/lcitool/libvirt-ci"]
path = tests/lcitool/libvirt-ci
url = http://gitlab.com/libvirt/libvirt-ci
+[submodule "roms/m68k-virt"]
+ path = roms/m68k-virt
+ url = https://github.com/vivier/m68k-virt-bootstrap.git
We'll need to mirror that on gitlab.
Otherwise LGTM.