On 01.04.2011, at 21:20, Anthony Liguori wrote: > On 04/01/2011 01:01 PM, Alexander Graf wrote: >> On 01.04.2011, at 19:28, Anthony Liguori wrote: >> >>> On 03/31/2011 11:15 PM, David Gibson wrote: >>>> This patch series adds a "pseries" machine to qemu, allowing it to >>>> emulate IBM pSeries logical partitions. More specifically it >>>> implements the interface defined by the "PowerPC Architecture Platform >>>> Requirements" document (PAPR, or sPAPR for short). >>>> >>>> Along the way we add a bunch of support for more modern ppc CPUs than >>>> are currently supported. It also makes some significant cleanups to >>>> the translation code for hash page table based ppc MMUs. >>>> >>>> Please apply. >>> So what's a typical invocation for this? Is: >>> >>> qemu-system-ppc64 -m pseries foo.img -nographics >> If you run an image that requires firmare, you also need to pass in -m with >> at least 512MB, otherwise yes, that's how it works :). > > FYI, trying to do a Debian install results in: > > Trying to write invalid spr 536 218 at 00000000014034d4 > > Followed by a tight loop of writing empty characters to the serial port. > > My command is: > > ppc64-softmmu/qemu-system-ppc64 -cdrom ~/isos/debian-6.0.1a-powerpc-DVD-1.iso > -boot d -m 512 -serial vc -monitor stdio -M pseries
Weird. SLES11SP1 works pretty well: agraf@toonie:~/git/qemu> ./ppc64-softmmu/qemu-system-ppc64 -M pseries -nographic -m 1G -cdrom /mounts/dist/install/SLES-11-SP1-GM/SLES-11-SP1-DVD-ppc64-GM-DVD1.iso SLOF ********************************************************************** QEMU Starting Build Date = Mar 23 2011 15:55:48 FW Version = dgibson@(private build) Press "s" to enter Open Firmware. Populating /vdevice methods Populating /vdevice/vty@0 Populating /vdevice/l-lan@1000 Populating /vdevice/v-scsi@2000 VSCSI: Initializing VSCSI: Looking for disks SCSI ID 2 CD-ROM : "QEMU QEMU CD-ROM 0.14" No NVRAM common partition, re-initializing... Welcome to Open Firmware Copyright (c) 2004, 2011 IBM Corporation All rights reserved. This program and the accompanying materials are made available under the terms of the BSD License available at http://www.opensource.org/licenses/bsd-license.php Trying to load: from: disk ... E3405: No such device Trying to load: from: cdrom ... Successfully loaded yaboot starting: loaded at 00040000 000657a8 (0/0/0e1004c4; sp: 0e149ff0) Config file 'yaboot.cnf' read, 285 bytes Welcome to SuSE Linux Enterprise 11! Type "install" to start the YaST installer on this CD/DVD Type "slp" to start the YaST install via network Type "rescue" to start the rescue system on this CD/DVD Welcome to yaboot version r22.8-r1190.SuSE booted from '/vdevice/v-scsi@2000/cdrom@2,0:\suseboot\yaboot.ibm' running with firmware 'SLOF,HEAD' on model 'QEMU' Enter "help" to get some basic usage information boot: Please wait, loading kernel... Allocated 01800000 bytes for executable @ 00d00000 Elf32 kernel loaded... SuSE Linux zImage starting: loaded at 00d00000-0239cd30 (4000000/0/0e1004c4; sp: 0e149d70) uncompressing ELF header done. (00000100 bytes) Allocated 0164c090 bytes for kernel @ 02500000 Allocated 0122a5ba bytes for initrd @ 03b4d000 uncompressing kernel done. (00f5a920 bytes) entering kernel at 02510000(3b4d000/122a5ba/0e1004c4) OF stdout device is: /vdevice/vty@0 Preparing to boot Linux version 2.6.32.12-0.7-ppc64 (geeko@buildhost) (gcc version 4.3.4 [gcc-4_3-branch revision 152973] (SUSE Linux) ) #1 SMP 2010-05-20 11:14:20 +0200 Max number of cores passed to firmware: 0x0000000000000400 Calling ibm,client-architecture-support... not implemented couldn't open /packages/elf-loader command line: quiet sysrq=1 insmod=sym53c8xx insmod=ipr memory layout at init: memory_limit : 0000000000000000 (16 MB aligned) alloc_bottom : 0000000004d80000 alloc_top : 0000000030000000 alloc_top_hi : 0000000040000000 rmo_top : 0000000030000000 ram_top : 0000000040000000 instantiating rtas at 0x000000002fff0000... done boot cpu hw idx 0000000000000000 copying OF device tree... Building dt strings... Building dt structure... Device tree strings 0x0000000004d90000 -> 0x0000000004d904e4 Device tree struct 0x0000000004da0000 -> 0x0000000004db0000 Calling quiesce... VSCSI: Cleaning up returning from prom_init CF000012 CF000015ch CF000020ne CF000021t SUSE Linux #1 SMP 2010-05-2rtas_flash: no firmware flash support Moving into tmpfs... done. Integrating /parts/00_lib insmod /modules/squashfs.ko mount: /parts/00_lib: we need a loop device mount: using /dev/loop0 Integrating /parts/01_usr mount: /parts/01_usr: we need a loop device mount: using /dev/loop1 >>> SUSE Linux Enterprise Server 11 installation program v3.3.59 (c) 1996-2010 >>> SUSE Linux Products GmbH <<< Starting udev... [...]