qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Issues on Mac OS X (host) with qemu-system-ppc (guest)
@ 2005-03-26 22:34 U n d e r a c h i e v e r
  2005-03-26 23:20 ` J. Mayer
  0 siblings, 1 reply; 5+ messages in thread
From: U n d e r a c h i e v e r @ 2005-03-26 22:34 UTC (permalink / raw)
  To: qemu-devel

Hi all

I've been trying to get a recent (CVS from yesterday) build of qmeu on 
Mac OS X to run a recent-ish linux distro or bsd release for powerpc.

The configure/make/make install goes well, but the binary created won't
boot debian sarge network installer iso CD image nor ubuntu nor openbsd. 
An example of the problem is shown at the end of this message.

Anyway, I noticed some patches here
http://perso.magic.fr/l_indien/qemu-ppc/tests/ppc_fixes.diff
which it is claimed will get Debian Sarge booting on qemu-system-ppc. So 
tried them on yesterday's CVS download of the source. Unfortunately, the 
patch for op_helper.c fails completely, although the others seem to 
apply OK. If you ignore this and plough on with a build, the compile fails.

I then tried the patch against the 0.6.1 tarball of the source. All the 
patches in the diff failed *except* the ob_helper.c.

So I copied the patched ob_helper.c from the tarball to the CVS sources. 
configure went OK but make failed.

It was asking too much, really, with my extremely sketchy knowledge of C 
to get that working. Hence, my problem remains, I can't seem to boot any 
ppc cdrom from qemu-system-ppc.  here's the error. Any ideas on how/if I 
can fix this?:-

$ /usr/local/bin/qemu-system-ppc -hda ./Documents/Qemu\ PC\
List/1.5Ghdd.img -cdrom ./Desktop/sarge-powerpc-netinst.iso -boot d
-nographic -user-net
(qemu) PPC Open Hack'Ware BIOS for qemu version 0.3.2
Build 2005-03-04 08:04:35
Copyright 2003-2004 Jocelyn Mayer

Memory size: 144 MB.
Booting from device d
Probing PCI devices
Found new host bridge 'pci' 'AAPL,UniNorth' 'uni-north'...
register 'pci' 'pci' 'uni-north' 'AAPL,UniNorth' 0xf2000000 in
'device-tree' 0xffffffff
Done 0581dd24 0581f7c4
Check PCI bridges
Check PCI devices
Found PCI device 1234:1111 0-96 3 0
=> 'Qemu VGA' 'display' 'Qemu VGA' 'VGA' (05809558)
register 'Qemu VGA' 'display' 'VGA' 'Qemu VGA' 0x0000000c in 'pci'
0xf2000000
Done 0581f7c4 0581fdb4
Map PCI device 0:96 0 to 80000008 00400000 (memory)
Set VGA to 80000000
Set display 'Qemu VGA' path to '/pci@f2000000/Qemu VGA@80000000'
Found PCI device 10ec:8029 0-104 2 0
=> 'NE2000' 'network' 'NE2000 PCI' '<null>' (00000000)
register 'NE2000' 'network' '<null>' 'NE2000 PCI' 0x0000000d in 'pci'
0xf2000000
Done 0581f7c4 05820404
MAP PCI device 0:104 to IRQ 9
Map PCI device 0:104 0 to 00001001 00000100 (I/O)
Found PCI device 106b:22 0-112 255 0
=> 'mac-io' 'mac-io' 'AAPL,Keylargo' 'Keylargo' (05809610)
register 'mac-io' 'mac-io' 'Keylargo' 'AAPL,Keylargo' 0x0000000e in
'pci' 0xf2000000
Done 0581f7c4 058207d4
MAP PCI device 0:112 to IRQ 10
Map PCI device 0:112 0 to 80400000 00080000 (memory)
PCI probe done (0581f764)
ide0: drive 0: Hard Disk
ide0: drive 1: none
ide1: drive 0: CD-ROM
Found Apple partition map...
Not a bootable partition
HFS volume
HFS ERROR in hfs_treat_boot_file: XML error: unknown Forth script: 633e4c9c

" screen" output
load-base release-load-area
boot cd:,\install\yaboot

Partition: 2 Debian testing ppc Bin-1 st 00000010 size 00060fc8
ide1: drive 1: none
Load raw file into memory at 05900000 4096

Now boot it... (05902aa0)

stack: 05ffff70 malloc_base: 05902aa0 0x05800000 0x06000000
invalid/unsupported opcode: 13 - 05 - 18 (4f543e0a) 0x05900008 1

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] Issues on Mac OS X (host) with qemu-system-ppc (guest)
  2005-03-26 22:34 [Qemu-devel] Issues on Mac OS X (host) with qemu-system-ppc (guest) U n d e r a c h i e v e r
@ 2005-03-26 23:20 ` J. Mayer
  2005-03-27 17:02   ` [Qemu-devel] " U n d e r a c h i e v e r
  0 siblings, 1 reply; 5+ messages in thread
From: J. Mayer @ 2005-03-26 23:20 UTC (permalink / raw)
  To: qemu-devel

On Sat, 2005-03-26 at 22:34 +0000, U n d e r a c h i e v e r wrote:
> Hi all
> 
> I've been trying to get a recent (CVS from yesterday) build of qmeu on 
> Mac OS X to run a recent-ish linux distro or bsd release for powerpc.
> 
> The configure/make/make install goes well, but the binary created won't
> boot debian sarge network installer iso CD image nor ubuntu nor openbsd. 
> An example of the problem is shown at the end of this message.
> 
> Anyway, I noticed some patches here
> http://perso.magic.fr/l_indien/qemu-ppc/tests/ppc_fixes.diff
> which it is claimed will get Debian Sarge booting on qemu-system-ppc. So 
> tried them on yesterday's CVS download of the source. Unfortunately, the 
> patch for op_helper.c fails completely, although the others seem to 
> apply OK. If you ignore this and plough on with a build, the compile fails.

You didn't fully read the page. It says:
"This, used with latest OpenHack'Ware preview, allow one to install
Debian Sarge."
Then you have to use the OpenHack'Ware preview from here:
<http://perso.magic.fr/l_indien/OpenHackWare/index.htm#downloading>

Note that the patch was against current CVS (that is CVS at the date of
03 march) and have been integrated in current CVS now.
OK, then I should remove it, now...
Please do a checkout from qemu CVS, use Open Hack'Ware 0.4, then you'll
be OK to start testing.

Please report if this you still have problems when doing this way. As I
never tested it on a Mac OS X host, there may be some ugly issues (but I
hope not...).

Regards.

[...]

-- 
J. Mayer <l_indien@magic.fr>
Never organized

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Qemu-devel] Re: Issues on Mac OS X (host) with qemu-system-ppc (guest)
  2005-03-26 23:20 ` J. Mayer
@ 2005-03-27 17:02   ` U n d e r a c h i e v e r
  2005-03-29 11:51     ` U n d e r a c h i e v e r
  0 siblings, 1 reply; 5+ messages in thread
From: U n d e r a c h i e v e r @ 2005-03-27 17:02 UTC (permalink / raw)
  To: qemu-devel

J. Mayer wrote:
> On Sat, 2005-03-26 at 22:34 +0000, U n d e r a c h i e v e r U n d e r a c h i e v e r wrote:

>>The configure/make/make install goes well, but the binary created won't
>>boot debian sarge network installer iso CD image nor ubuntu nor openbsd. 
>>An example of the problem is shown at the end of this message.

> 
> You didn't fully read the page. It says:
> "This, used with latest OpenHack'Ware preview, allow one to install
> Debian Sarge."
> Then you have to use the OpenHack'Ware preview from here:
> <http://perso.magic.fr/l_indien/OpenHackWare/index.htm#downloading>

doh!

> Please do a checkout from qemu CVS, use Open Hack'Ware 0.4, then you'll
> be OK to start testing.

I'll do that very soon

> Please report if this you still have problems when doing this way. As I
> never tested it on a Mac OS X host, there may be some ugly issues (but I
> hope not...).

will do, thanks very

--
U n d e r a c h i e v e r (and proud)

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Qemu-devel] Re: Issues on Mac OS X (host) with qemu-system-ppc (guest)
  2005-03-27 17:02   ` [Qemu-devel] " U n d e r a c h i e v e r
@ 2005-03-29 11:51     ` U n d e r a c h i e v e r
  2005-03-29 20:53       ` J. Mayer
  0 siblings, 1 reply; 5+ messages in thread
From: U n d e r a c h i e v e r @ 2005-03-29 11:51 UTC (permalink / raw)
  To: qemu-devel

Hi all

U n d e r a c h i e v e r wrote:
> 
>> Please do a checkout from qemu CVS, use Open Hack'Ware 0.4, then you'll
>> be OK to start testing.
> 
> 
> I'll do that very soon

And the results are promising... here's the Sarge net install CD booting 
with "no graphics"... but there's lots of errors and it doesn't progress 
beyond "initialising fake screen".

On a graphical install, I get as far as the language selection screen, 
but cannot select anything or navigate around the list of languages.

thanks very


Last login: Sun Mar 27 21:23:05 on console
Welcome to Darwin!
$ /usr/local/bin/qemu-system-ppc -hda ./Documents/Qemu\ PC\ 
List/1.5Ghdd.img -cdrom ./Desktop/sarge-powerpc-netinst.iso -user-net 
-boot d -nographic
(qemu) register PCI host 'pci' 'pci' 'uni-north' 'AAPL,UniNorth'
register 'pci' 'pci' 'uni-north' 'AAPL,UniNorth' 0xf2000000 in 
'device-tree' 0xffffffff
Done 582b000 582b900
register pci device 'Qemu VGA' 0000000c 'display' 'VGA' 'Qemu VGA'
register 'Qemu VGA' 'display' 'VGA' 'Qemu VGA' 0x0000000c in 'pci' 
0xf2000000
Done 582b900 582ba00
register pci device 'NE2000' 0000000d 'network' '<null>' 'NE2000 PCI'
register 'NE2000' 'network' '<null>' 'NE2000 PCI' 0x0000000d in 'pci' 
0xf2000000
Done 582b900 582bb00
register pci device 'mac-io' 0000000e 'mac-io' 'Keylargo' 'AAPL,Keylargo'
register 'mac-io' 'mac-io' 'Keylargo' 'AAPL,Keylargo' 0x0000000e in 
'pci' 0xf2000000
Done 582b900 582bc00
PPC Open Hack'Ware BIOS for qemu version 0.4-pre2
Build 2005-03-20 13:25:01
Copyright 2003-2005 Jocelyn Mayer

Memory size: 144 MB.
Booting from device d
ide0: drive 0: Hard Disk
ERROR: OF_property_copy cannot get property 'hd' for aliases
ide0: drive 1: none
ide1: drive 0: CD-ROM
ERROR: OF_property_copy cannot get property 'cd' for aliases
ide1: drive 1: none
Probe partitions for device c
New bootfile
Probe partitions for device e
Found Apple partition map...
Not a bootable partition 0 0 (0 5831d80)
Partition: 2 Debian testing ppc Bin-1 st 10 size 60fc8
New bootfile
HFS volume
ERROR: Found boot partition : 5831d80 582e800
ERROR: Not a MACH-O file
Boot: 38000000 3d600000 616b0018 7d7a03a6
Bootinfos at : 300000

Now boot it... (0)

stack: 5bfff70 malloc_base: 0 0x05800000 0x06000000

ERROR: Give range: start 0x300000 0x100000

Config file read, 32768 bytes

Welcome to Debian GNU/Linux sarge!

This is a Debian installation CDROM,
built on 20050322.

The default option is 'install'. For maximum
control, you can use the 'expert' option.

If the system fails to boot at all (the typical
symptom is a white screen which doesn't go away),
use 'install video=ofonly' or 'expert video=ofonly'.

The plain options are for the powerpc family of
processors (from 601 to G4). The *-power3 options
are for IBM Power3 boxes, and the *-power4 options
are for IBM Power4 and Apple G5 boxes. Press the tab
key for a list of options, or type 'help' for help.

************************************
If in doubt, just choose 'install', and if that
doesn't work, try 'install video=ofonly'.
************************************
Welcome to yaboot version 1.3.13
Enter "help" to get some basic usage information

WARNING: Bootstrap partition type is wrong: "Apple_HFS"
          type should be: "Apple_Bootstrap"

boot: intall
Please wait, loading kernel...
ERROR in fs_get_inode: Inode 'intall' not found in 'install'
ERROR: File not found 'intall'
cd:2,\\intall: Unknown or corrupt filesystem
boot: install
Please wait, loading kernel...
ERROR: Give range: start 0x1400000 0x400000
    Elf32 kernel loaded...
Loading ramdisk...
ERROR: Give range: start 0x1800000 0x400000
ERROR: Give range: start 0x1c00000 0x400000
HFS ERROR in hfs_get_bloc: Block 8192 not found
ERROR: bloc: -1 part size: 397256 5831d80
ramdisk loaded at 01800000, size: 4095 Kbytes
instantiating rtas at 00600000 ... done
ERROR: OF_property_copy cannot get property 'device_type' for aliases
ERROR: OF_property_copy cannot get property 'device_type' for chosen
ERROR: OF_property_copy cannot get property 'device_type' for packages
ERROR: OF_property_copy cannot get property 'device_type' for cpus
ERROR: OF_property_copy cannot get property 'device_type' for options
ERROR: OF_property_copy cannot get property 'device_type' for rom
ERROR: OF_property_copy cannot get property 'device_type' for boot-rom
ERROR: OF_property_copy cannot get property 'device_type' for pseudo-hid
ERROR: OF_property_copy cannot get property 'device_type' for mmu
ERROR: OF_property_copy cannot get property 'device_type' for isa
ERROR: OF_property_copy cannot get property 'device_type' for rtas
ERROR: OF_property_copy cannot get property 'device_type' for nomore
opening display /pci@f2000000/Qemu VGA@80000000... ok
copying OF device tree...done
ERROR: OF_property_copy cannot get property 'device_type' for aliases
ERROR: OF_property_copy cannot get property 'device_type' for chosen
ERROR: OF_property_copy cannot get property 'device_type' for packages
ERROR: OF_property_copy cannot get property 'device_type' for cpus
ERROR: OF_property_copy cannot get property 'device_type' for options
ERROR: OF_property_copy cannot get property 'device_type' for rom
ERROR: OF_property_copy cannot get property 'device_type' for boot-rom
ERROR: OF_property_copy cannot get property 'device_type' for pseudo-hid
ERROR: OF_property_copy cannot get property 'device_type' for mmu
ERROR: OF_property_copy cannot get property 'device_type' for isa
ERROR: OF_property_copy cannot get property 'device_type' for rtas
ERROR: OF_property_copy cannot get property 'device_type' for nomore
Initializing fake screen: Qemu VGA
Calling quiesce ...
returning 0x01400000 from prom_init

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] Re: Issues on Mac OS X (host) with qemu-system-ppc (guest)
  2005-03-29 11:51     ` U n d e r a c h i e v e r
@ 2005-03-29 20:53       ` J. Mayer
  0 siblings, 0 replies; 5+ messages in thread
From: J. Mayer @ 2005-03-29 20:53 UTC (permalink / raw)
  To: qemu-devel

On Tue, 2005-03-29 at 12:51 +0100, U n d e r a c h i e v e r wrote:
> Hi all
> 
> U n d e r a c h i e v e r wrote:
> > 
> >> Please do a checkout from qemu CVS, use Open Hack'Ware 0.4, then you'll
> >> be OK to start testing.
> > 
> > 
> > I'll do that very soon
> 
> And the results are promising... here's the Sarge net install CD booting 
> with "no graphics"... but there's lots of errors and it doesn't progress 
> beyond "initialising fake screen".

That's quite normal, as the standard Mac kernels don't include PC serial
port support and there is no Mac serial port emulation in qemu. Then,
with no graphics, you get no Linux console...

> On a graphical install, I get as far as the language selection screen, 
> but cannot select anything or navigate around the list of languages.

This means, I think, that the Mac/Mac OS keyboard layout for qemu is
broken.
It works well on a PC, so it seems that it's a bug in the qemu MacOS X
port.
I never have used qemu under MacOS X, so I can't really help you on this
point.
I may do those tests someday, but, as many ones, I've got a lack of
spare time...

-- 
J. Mayer <l_indien@magic.fr>
Never organized

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-03-29 21:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-26 22:34 [Qemu-devel] Issues on Mac OS X (host) with qemu-system-ppc (guest) U n d e r a c h i e v e r
2005-03-26 23:20 ` J. Mayer
2005-03-27 17:02   ` [Qemu-devel] " U n d e r a c h i e v e r
2005-03-29 11:51     ` U n d e r a c h i e v e r
2005-03-29 20:53       ` J. Mayer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).