Bug#660823: qemubuilder: Gnu Hurd support
I don't think qemu has support for directly loading HURD kernel... and looks up the manpage and the man page says '-kernel' can be any kernel in multiboot format. Maybe most parts are already ready in qemu / debootstrap side too. Cool. At Wed, 22 Feb 2012 19:06:17 +1100, Dmitry Smirnov wrote: Author: Dmitry Smirnov only...@member.fsf.org Last-Update: 2012-02-22 Forwarded: no Description: partial support for Gnu Hurd hurd-i386 This patch help to set qemu/kvm arch for hurd-i386 architecture to prevent error Your architecture hurd-i386 does not seem to be supported --- a/qemuarch.c +++ b/qemuarch.c @@ -121,8 +121,10 @@ return qemu-system-mips; else if (!strcmp(arch, mipsel)) return qemu-system-mipsel; - else if (!strcmp(arch, i386) || -!strcmp(arch, amd64)) + else if (!strcmp(arch, i386) +|| !strcmp(arch, amd64) +|| !strcmp(arch, hurd-i386) + ) { /* we're leaking this memory, but don't care too much */ char* host_arch = get_host_dpkg_arch(); @@ -143,6 +145,8 @@ else return qemu-system-x86_64; } + else if (!strcmp(arch, hurd-i386)) +return qemu; else if (!strcmp(arch, powerpc)) return qemu-system-ppc; else if (!strcmp(arch, sparc)) @@ -160,7 +164,8 @@ !strcmp(arch, armel)) return versatilepb; else if (!strcmp(arch, i386) || -!strcmp(arch, amd64)) +!strcmp(arch, hurd-i386) || + !strcmp(arch, amd64)) return pc; else if (!strcmp(arch, mips)|| !strcmp(arch, mipsel)) -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#660823: qemubuilder: Gnu Hurd support
Package: qemubuilder Severity: wishlist Tags: patch Hi, I tried to use qemubuilder with hurd-i386 but it failed to pass proper architecture to kvm/qemu after bootstrapping: Your architecture hurd-i386 does not seem to be supported Although I couldn't quite make it work yet, the above error can be dealt with attached patch. Patched qemubuilder correctly forking qemu after bootstrap stage if run with ARCHITECTURE=hurd-i386 Perhaps more work will be necessary to support Gnu Hurd but at least this is a small step forward. Thank you. Regards, Dmitry. Author: Dmitry Smirnov only...@member.fsf.org Last-Update: 2012-02-22 Forwarded: no Description: partial support for Gnu Hurd hurd-i386 This patch help to set qemu/kvm arch for hurd-i386 architecture to prevent error Your architecture hurd-i386 does not seem to be supported --- a/qemuarch.c +++ b/qemuarch.c @@ -121,8 +121,10 @@ return qemu-system-mips; else if (!strcmp(arch, mipsel)) return qemu-system-mipsel; - else if (!strcmp(arch, i386) || - !strcmp(arch, amd64)) + else if (!strcmp(arch, i386) +|| !strcmp(arch, amd64) +|| !strcmp(arch, hurd-i386) + ) { /* we're leaking this memory, but don't care too much */ char* host_arch = get_host_dpkg_arch(); @@ -143,6 +145,8 @@ else return qemu-system-x86_64; } + else if (!strcmp(arch, hurd-i386)) +return qemu; else if (!strcmp(arch, powerpc)) return qemu-system-ppc; else if (!strcmp(arch, sparc)) @@ -160,7 +164,8 @@ !strcmp(arch, armel)) return versatilepb; else if (!strcmp(arch, i386) || - !strcmp(arch, amd64)) + !strcmp(arch, hurd-i386) || + !strcmp(arch, amd64)) return pc; else if (!strcmp(arch, mips)|| !strcmp(arch, mipsel)) signature.asc Description: This is a digitally signed message part.