Bug#857634: qemu-debootstrap: Needs to set QEMU_CPU=e500v2 when bootstrapping powerpcspe
Source: qemu
Version: 1:2.8+dfsg-3
Severity: normal
Tags: patch
User: debian-powerpc@lists.debian.org
Usertags: powerpcspe
Hi!
qemu-debootstrap fails to bootstrap powerpcspe because the script
does not set the QEMU_CPU environment variable when calling the
qemu-ppc-static binary.
This can be easily reproduced by trying to create a powerpcspe
chroot with:
qemu-debootstrap --no-check-gpg --include=apt,fakeroot,debian-ports-archive-keyring \
--variant=buildd --arch=powerpcspe --no-merged-usr sid \
/srv/sid-powerpcspe-sbuild/ http://ftp.de.debian.org/debian-ports \
/usr/share/debootstrap/scripts/sid
This will bail out with an illegal instruction signal (SIGILL). The
attached patch modifies qemu-debootstrap to set QEMU_EMU to e500v2
before trying to chroot into a powerpcspe chroot. This fixes the
problem for me.
Thanks,
Adrian
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer - glaubitz@debian.org
`. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
>From ac3f45ca1e8c1d884f1cd5c72d5db27637eafddf Mon Sep 17 00:00:00 2001
From: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Date: Mon, 13 Mar 2017 15:58:19 +0100
Subject: [PATCH] qemu-debootstrap: Set QEMU_CPU=e500v2 for powerpcspe
---
debian/qemu-debootstrap | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/debian/qemu-debootstrap b/debian/qemu-debootstrap
index 72d41b7fed..566772aedc 100755
--- a/debian/qemu-debootstrap
+++ b/debian/qemu-debootstrap
@@ -149,9 +149,13 @@ case "$deb_arch" in
lpia)
qemu_arch="i386"
;;
- powerpc|powerpcspe)
+ powerpc)
qemu_arch="ppc"
;;
+ powerpcspe)
+ qemu_arch="ppc"
+ QEMU_CPU=e500v2
+ ;;
ppc64el)
qemu_arch="ppc64le"
;;
--
2.11.0
Reply to: