Debian Bug report logs - #440555
qemubuilder fails for powerpc arch

version graph

Package: qemubuilder; Maintainer for qemubuilder is Junichi Uekawa <dancer@debian.org>; Source for qemubuilder is src:cowdancer.

Reported by: Jean-Baptiste Note <jean-baptiste.note@m4x.org>

Date: Sun, 2 Sep 2007 18:42:01 UTC

Severity: normal

Found in version cowdancer/0.37

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Junichi Uekawa <dancer@debian.org>:
Bug#440555; Package qemubuilder. Full text and rfc822 format available.

Acknowledgement sent to Jean-Baptiste Note <jean-baptiste.note@m4x.org>:
New Bug report received and forwarded. Copy sent to Junichi Uekawa <dancer@debian.org>. Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Jean-Baptiste Note <jean-baptiste.note@m4x.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: qemubuilder fails for powerpc arch
Date: Sun, 02 Sep 2007 20:40:16 +0200
Package: qemubuilder
Version: 0.37
Severity: normal


Hello,

First off, thanks for this wonderfull package. I've tried using it to build ppc packages and it fails for this arch. Patch attached, please review. NULL is printed as (null) with printf's "%s", leading to a fucked up command line in cpbuilder_create.

BTW, is there a git repo for cowdancer ? I could only lay my hands on the sources with apt-get source.

Thanks,
JB

diff --git a/qemubuilder.c b/qemubuilder.c                                     
index b296a1d..71db170 100755                                                  
--- a/qemubuilder.c                                                            
+++ b/qemubuilder.c                                                            
@@ -53,7 +53,7 @@ static const char* qemu_arch_serialdevice(const char* arch)
       return "mknod dev/console c 4 64; ";                                    
     }                                                                         
   else                                                                        
-    return NULL;                                                              
+    return "";                                                                
 }

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.22.1 (PREEMPT)
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash

Versions of packages qemubuilder depends on:
ii  libc6                         2.6.1-1+b1 GNU C Library: Shared libraries
ii  pbuilder                      0.171      personal package builder for Debia
ii  qemu                          0.9.0-2    fast processor emulator

qemubuilder recommends no packages.

-- debconf information:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LANG = "en_US"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory



Information forwarded to debian-bugs-dist@lists.debian.org, Junichi Uekawa <dancer@debian.org>:
Bug#440555; Package qemubuilder. Full text and rfc822 format available.

Acknowledgement sent to Junichi Uekawa <dancer@netfort.gr.jp>:
Extra info received and forwarded to list. Copy sent to Junichi Uekawa <dancer@debian.org>. Full text and rfc822 format available.

Message #10 received at 440555@bugs.debian.org (full text, mbox):

From: Junichi Uekawa <dancer@netfort.gr.jp>
To: Jean-Baptiste Note <jean-baptiste.note@m4x.org>, 440555@bugs.debian.org
Subject: Re: Bug#440555: qemubuilder fails for powerpc arch
Date: Mon, 03 Sep 2007 07:56:10 +0900
Hi,


> First off, thanks for this wonderfull package. I've tried using it
> to build ppc packages and it fails for this arch. Patch attached,
> please review. NULL is printed as (null) with printf's "%s", leading
> to a fucked up command line in cpbuilder_create.

I have never gotten ppc qemu to work, so it will need more work, I
should think. Can you actually go all the way down with ppc ?



> BTW, is there a git repo for cowdancer ? I could only lay my hands on the sources with apt-get source.

Yup

git.debian.org/git/pbuilder/cowbuilder.git



regards,
	junichi
-- 
dancer@{debian.org,netfort.gr.jp}   Debian Project



Information forwarded to debian-bugs-dist@lists.debian.org, Junichi Uekawa <dancer@debian.org>:
Bug#440555; Package qemubuilder. Full text and rfc822 format available.

Acknowledgement sent to jean-baptiste.note@m4x.org:
Extra info received and forwarded to list. Copy sent to Junichi Uekawa <dancer@debian.org>. Full text and rfc822 format available.

Message #15 received at 440555@bugs.debian.org (full text, mbox):

From: "Jean-Baptiste Note" <jbnote@gmail.com>
To: "Junichi Uekawa" <dancer@netfort.gr.jp>
Cc: 440555@bugs.debian.org
Subject: Re: Bug#440555: qemubuilder fails for powerpc arch
Date: Thu, 13 Sep 2007 22:15:34 +0100
[Message part 1 (text/plain, inline)]
Hello,

I finally got qemubuiler --create to work for debian/etch using the
attached kernel.
Long story short: the append command of qemu does not work with the
ppc loader. Therefore, you must embed the kernel command-line into the
kernel image. For 2.4, this is easily done with a tool called
"preptool" and a proper kernel patch:


debian:/media/disk/jb/qemu/debian_sarge_ppc# ./preptool -q vmlinuz-2.4.27.001
vmlinuz-2.4.27.001
------------------
Entry point offset  = 0x00000500
Load image length   = 0x001283d6
Load image Flags    = 0x00
Operating system id = 0x00
Partition name      = []
Command line:
ide0=0x1f0,0x3f6,13 ide1=0x170,0x376,13 netdev=9,0x300,eth0
console=ttyS0 console=tty0 root=/dev/hda init=/pbuilder-run ro

For 2.6, this is more complicated (a kernel rebuild is needed to
change the command-line).

For more detail, please see:
http://www.overselfresearch.com/kb/qemu.html
http://www.olifantasia.com/qemu/

I'm currently building a 2.6 kernel with the proper options, so as to
be able to  -- hopefully -- bootstrap SID (the attached 2.4 won't boot
with SID). Forward porting the preptool patch would be better, but...

Also, I think that the SPARC bootloader has the same restrictions...
and would probably need the same kind of treatment. I'll probably have
a go at it soon.

JB
[vmlinuz-2.4.27.001 (application/octet-stream, attachment)]

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed Apr 16 19:29:53 2014; Machine Name: buxtehude.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.