Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MXXvg-0002vc-4y for qemu-devel@nongnu.org; Sun, 02 Aug 2009 06:04:36 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MXXvf-0002vA-Cy for qemu-devel@nongnu.org; Sun, 02 Aug 2009 06:04:35 -0400 Received: from [199.232.76.173] (port=57131 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MXXvf-0002v7-8i for qemu-devel@nongnu.org; Sun, 02 Aug 2009 06:04:35 -0400 Received: from hall.aurel32.net ([88.191.82.174]:52242) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MXXve-00026c-Bp for qemu-devel@nongnu.org; Sun, 02 Aug 2009 06:04:34 -0400 Date: Sun, 2 Aug 2009 12:04:29 +0200 From: Aurelien Jarno Subject: Re: [Qemu-devel] Powerpc regressions? Message-ID: <20090802100429.GO3732@hall.aurel32.net> References: <200907071748.03623.rob@landley.net> <200907122224.25591.rob@landley.net> <20090713122545.GB27081@hall.aurel32.net> <200908020040.54644.rob@landley.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <200908020040.54644.rob@landley.net> Sender: Aurelien Jarno List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Rob Landley Cc: qemu-devel@nongnu.org On Sun, Aug 02, 2009 at 12:40:53AM -0500, Rob Landley wrote: > On Monday 13 July 2009 07:25:45 Aurelien Jarno wrote: > > > If changing my kernel .config so I build a new kernel that works with the > > > new qemu is my only alternative, I'm happy to do that. But I don't > > > currently have a working kernel .config, and don't understand why the old > > > one broke or how to avoid being hit by similar changes in future. > > > > I am using the Debian kernel and it works fine, please find attached the > > .config attached. > > Finally got back in a position to spend some more time on this. Sorry for the > delay. > > Ok, I'm trying just to boot to a command prompt with a serial console and IDE > /dev/hda. (Or funky scsi IDE /dev/sda in a pinch.) > > Your .config is for a 2.6.26 kernel and I'm building 2.6.30, so I have to run > make oldconfig against it (and just hit enter on everything to take the > defaults). Also, I'm not using an initramfs at the moment, so presumably > anything that's in a module can go because it won't get loaded before I get a > shell prompt anyway, so I can yank anything config =m, and the module > infrastructure itself, to simplify things a bit. > > That gave me the (much smaller) attached .config, which _should_ work the same > as yours, I hope? Note that CONFIG_SERIAL_8250_CONSOLE is on, so I should be > able to get a serial console, which is my first target: get boot messages from > this kernel. > > I built a kernel using the attached .config and my existing powerpc toolchain > (which built a kernel that booted under older qemu), and attempted to boot the > result under current git (28e738dcb81d): > > qemu-system-ppc -M g3beige -nographic -no-reboot -kernel zImage-powerpc > -hda image-powerpc.sqf -append "root=/dev/hda rw init=/usr/sbin/init.sh > panic=1 PATH=/usr/bin console=ttyS0 " > > >> ============================================================= > >> OpenBIOS 1.0 [Jul 5 2009 17:36] > >> Configuration device id QEMU version 1 machine id 2 > >> CPUs: 1 > >> Memory: 128M > >> UUID: 00000000-0000-0000-0000-000000000000 > >> CPU type PowerPC,750 > Welcome to OpenBIOS v1.0 built on Jul 5 2009 17:36 > > >> [ppc] Kernel already loaded (0x01000000 + 0x0039bef0) (initrd 0x00000000 + > 0x00000000) > >> [ppc] Kernel command line: root=/dev/hda rw init=/usr/sbin/init.sh panic=1 > PATH=/usr/bin console=ttyS0 > OF stdout device is: /pci@80000000/mac-io@4/escc@13000/ch-b@13000 > Preparing to boot Linux version 2.6.30 (landley@driftwood) (gcc version 4.2.1) > #1 Sat Aug 1 17:35:12 CDT 2009 > command line: root=/dev/hda rw init=/usr/sbin/init.sh panic=1 PATH=/usr/bin > console=ttyS0 > memory layout at init: > alloc_bottom : 013a0000 > alloc_top : 08000000 > alloc_top_hi : 08000000 > rmo_top : 08000000 > ram_top : 08000000 > found display : /pci@80000000/QEMU,VGA@1, opening... done > copying OF device tree... > Building dt strings... > Building dt structure... > Device tree strings 0x013a1000 -> 0x013a1383 > Device tree struct 0x013a2000 -> 0x013a4000 > Calling quiesce... > returning from prom_init > > At which point it exits and I get the prompt back. > I think using console=ttyPZ0 which is the serial port name on PowerPC will give you more details. -- Aurelien Jarno GPG: 1024D/F1BCDB73 aurelien@aurel32.net http://www.aurel32.net