From 0564f314afc45b757a5813e5c6e485dc343a6b2d Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Tue, 17 Jan 2023 10:33:10 +0100 Subject: expand architecture coverage Give an example of how to use it with ports and add a few architecture-specific cases. Note that m68k and sparc64 do not actually work, because they lack PCI. --- bin/debvm-create | 12 ++++++++++++ bin/debvm-run | 10 ++++++++++ 2 files changed, 22 insertions(+) diff --git a/bin/debvm-create b/bin/debvm-create index 95305a9..2e838f2 100755 --- a/bin/debvm-create +++ b/bin/debvm-create @@ -101,6 +101,12 @@ Any positional arguments passed here will be treated as mirror specifications by =back +=head1 EXAMPLES + +In order to create images for Debian ports architectures, you can pass two options to mmdebstrap: + + debvm-create ... -- http://deb.debian.org/debian-ports --keyring=/usr/share/keyrings/debian-ports-archive-keyring.gpg + =head1 SEE ALSO debvm-run(1) mmdebstrap(1) @@ -216,6 +222,9 @@ case "$ARCHITECTURE" in armhf) KERNEL_ARCH=armmp ;; + hppa) + KERNEL_ARCH=parisc + ;; i386) KERNEL_ARCH=686-pae ;; @@ -225,6 +234,9 @@ case "$ARCHITECTURE" in mipsel) KERNEL_ARCH=4kc-malta ;; + ppc64) + KERNEL_ARCH=powerpc64 + ;; ppc64el) KERNEL_ARCH=powerpc64le ;; diff --git a/bin/debvm-run b/bin/debvm-run index e36ea60..3c3e528 100755 --- a/bin/debvm-run +++ b/bin/debvm-run @@ -241,9 +241,16 @@ else QEMU=qemu-system-arm set -- -machine virt -cpu max "$@" ;; + powerpc) + QEMU=qemu-system-ppc + MAX_SMP=1 + ;; ppc64el) QEMU=qemu-system-ppc64 ;; + m68k) + MAX_SMP=1 + ;; mips64el) MAX_SMP=1 set -- -cpu 5KEc "$@" @@ -254,6 +261,9 @@ else riscv64) set -- -machine virt "$@" ;; + sparc64) + MAX_SMP=1 + ;; esac fi if test -z "$MAX_SMP" || test "$MAX_SMP" -gt 1; then -- cgit v1.2.3