qemu-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-discuss] Sparc/PPC


From: rudi
Subject: [Qemu-discuss] Sparc/PPC
Date: Wed, 29 May 2013 14:53:00 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130514 Thunderbird/17.0.6

Hello,
I tried to emulate sparc architecture on a Debian Wheezy host. The guest system is also a Debian system (tried Squeeze and Wheezy). First I tried it with the version, that comes with Debian Wheezy. After failing to boot, I compiled the newest snapshot (1.5) and a version from git. Always the same Problem. Also I wanted to boot a Debian guest for PPC, either no go. I would be very thankful if you could give me a hint...

SPARC:

###Input
qemu-system-sparc -hda ~/sparcq -cdrom ~/Downloads/debian-7.0.0-sparc-netinst.iso -boot d -nographic


##########################################################################

###Output

Configuration device id QEMU version 1 machine id 32
CPUs: 1 x FMI,MB86904
UUID: 00000000-0000-0000-0000-000000000000
Welcome to OpenBIOS v1.0 built on Jun 9 2012 12:18
  Type 'help' for detailed information
Trying cdrom:d...
Not a bootable ELF image
Loading a.out image...
Loaded 7680 bytes
entry point is 0x4000
bootpath: /iommu/sbus/espdma/esp/address@hidden,0:d

Jumping to entry point 00004000 for type 00000005...
switching to new context:
Unhandled Exception 0x00000002
PC = 0x00005064 NPC = 0x00005068
Stopping execution


###Input
qemu-img create -f qcow sparc2.img 3G

qemu-system-sparc -hda ~/sparcq2.img -cdrom ~/Downloads/debian-7.0.0-sparc-netinst.iso -boot d -nographic

##########################################################################
###Output

Configuration device id QEMU version 1 machine id 32
Configuration device id QEMU version 1 machine id 32
CPUs: 1 x FMI,MB86904
UUID: 00000000-0000-0000-0000-000000000000
Welcome to OpenBIOS v1.0 built on Jun 9 2012 12:18
  Type 'help' for detailed information
Trying cdrom:d...
Not a bootable ELF image
Loading a.out image...
Loaded 7680 bytes
entry point is 0x4000
bootpath: /iommu/sbus/espdma/esp/address@hidden,0:d

Jumping to entry point 00004000 for type 00000005...
switching to new context:
Unhandled Exception 0x00000002
PC = 0x00005064 NPC = 0x00005068
Stopping execution





I also tried to compile a new version of openbios from svn :

###Input
qemu-system-sparc -hda ~/sparcq -cdrom ~/Downloads/debian-7.0.0-sparc-netinst.iso -boot d -bios emuofw.rom

###Output

qemu: could not load prom 'emuofw.rom'



PPC:

###Input
qemu-img create -f qcow ppc.img 3G

qemu-system-ppc -hda ~/ppc.img -cdrom ~/Downloads/debian-7.0.0-powerpc-netinst.iso -boot d -nographic

########################################################################

###Output

>> =============================================================
>> OpenBIOS 1.0 [Jun 9 2012 12:19]
>> 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 Jun 9 2012 12:19
Trying cd:,\\:tbxi...

call-method color!: exception -21
call-method color!: exception -21
call-method color!: exception -21
call-method color!: exception -21
call-method color!: exception -21
call-method color!: exception -21
call-method color!: exception -21
call-method color!: exception -21
call-method color!: exception -21
call-method color!: exception -21
call-method color!: exception -21
call-method color!: exception -21
call-method color!: exception -21
call-method color!: exception -21
call-method color!: exception -21
call-method color!: exception -21

Config file read, 726 bytes

Welcome to Debian GNU/Linux wheezy!

This is a Debian installation CDROM,
built on 20130504-15:53.


Press ENTER to continue, or press TAB for a
full list of options.


If the system fails to boot with a white screen
which doesn't go away, try:

install video=ofonly

The following desktop environments are available:
gnome, kde, xfce and lxde.  The default on this CDROM
is gnome.
If you prefer a different desktop, append
    "desktop=<your choice>"
e.g. to do an expert install with the xfce desktop
environment, type
    "expert desktop=xfce"
at the "boot:" prompt.
Welcome to yaboot version 1.3.16
Enter "help" to get some basic usage information
boot: help

Press the tab key for a list of defined images.
The label marked with a "*" is is the default image, press <return> to boot it.

To boot any other label simply type its name and press <return>.

To boot a kernel image which is not defined in the yaboot configuration
file, enter the kernel image name as [[device:][partno],]/path, where
"device:" is the OpenFirmware device path to the disk the image
resides on, and "partno" is the partition number the image resides on.
Note that the comma (,) is only required if you specify an OpenFirmware
device, if you only specify a filename you should not start it with a ","

To boot a alternative initrd file rather than specified in the yaboot
configuration file, use the "initrd" command on Yaboot's prompt:
"initrd=[name.img]". This will load the "name.img" file after the default
kernel image. You can, also, specify a different initrd file to any other
label of the yaboot configuration file. Just type "label initrd=[name.img]"
and the specified initrd file will be loaded.

To load an alternative config file rather than /etc/yaboot.conf, enter
its device, partno and path, on Open Firmware Prompt:
boot conf=device:partno,/path/to/configfile
.To reload the config file or load a new one, use the "conf" command
on Yaboot's prompt:
conf [device=device] [partition=partno] [file=/path/to/configfile]

If you omit "device" and "partno", Yaboot will use their current
values. You can check them by entering "conf" on Yaboot's prompt.
boot:
* install                    expert rescue
  auto
boot: rescue
Please wait, loading kernel...
   Elf32 kernel loaded...
Loading ramdisk...
ramdisk loaded at 01400000, size: 4537 Kbytes
OF stdout device is: 
/address@hidden/address@hidden/address@hidden/address@hidden
Preparing to boot Linux version 3.2.0-4-powerpc (address@hidden) (gcc version 4.6.3 (Debian 4.6.3-12) ) #1 Debian 3.2.41-2
Detected machine type: 00000400
command line: console=ttyS0,9600 console=tty0
memory layout at init:
  memory_limit : 00000000 (16 MB aligned)
  alloc_bottom : 0186f000
  alloc_top    : 08000000
  alloc_top_hi : 08000000
  rmo_top      : 08000000
  ram_top      : 08000000
found display   : /address@hidden/QEMU,address@hidden, opening... done
copying OF device tree...
Building dt strings...
Building dt structure...
Device tree strings 0x01970000 -> 0x0197051e
Device tree struct  0x01971000 -> 0x01973000
Calling quiesce...
returning from prom_init


Greetz and thanks



reply via email to

[Prev in Thread] Current Thread [Next in Thread]