All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] New BIOS for Mac PPC target.
@ 2004-06-27 16:27 J. Mayer
  2004-06-27 19:33 ` Jean-Michel POURE
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: J. Mayer @ 2004-06-27 16:27 UTC (permalink / raw)
  To: Qemu-devel

Hello all,

I just put a new BIOS version available for Mac PPC target.

http://site.voila.fr/jmayer/OpenHackWare/index.htm

Current status: 
* NetBSD booter loads but fails: some 
   needed OF methods are missing. 
* OpenBSD booter cannot run because it's a 
   gzipped ELF file. 
* Darwin 7.01 doesn't run: unknown or 
   miss-loaded file format. 
* Darwin 6.02 and OpenDarwin 6.6.1 seem
   not to like the OF tree as it's shown. 
* Darwin 1.41 & MacOS X 10.2 boot but fail
   to read the CDROM. 
* Linux debian woody, debian 3.0-r1, gentoo
   live CDROM, gentoo install CDROM, knopix
   and Mandrake 9.1 start: yaboot is loaded
   but fails to go on. 
* MacOS 9 and log restauration CDROMs
   claim they want Apple Copyright. 
* MacOS hw check CDROM won't boot for
   now. 

Still a lot of work to do, but this version may allow MacOS X boot
process debug. I just checked that OS X 10.2 starts and stops,
complaining it can't access the CDROM.

Waiting for reports, comments, suggestions...

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

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

* Re: [Qemu-devel] New BIOS for Mac PPC target.
  2004-06-27 16:27 [Qemu-devel] New BIOS for Mac PPC target J. Mayer
@ 2004-06-27 19:33 ` Jean-Michel POURE
  2004-06-27 21:52   ` J. Mayer
  2004-06-27 23:30 ` Martin
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 7+ messages in thread
From: Jean-Michel POURE @ 2004-06-27 19:33 UTC (permalink / raw)
  To: qemu-devel

> I just put a new BIOS version available for Mac PPC target.
> http://site.voila.fr/jmayer/OpenHackWare/index.htm

Dear Jocelyn,

Thanks for the update. I downloaded and installed the updated BIOS using the 
binaries available on your site.

Apparently, the BIOS displays version 0.1 and build time 2004-06-12. 
Screenshot: http://www.poure.com/screenshots/qemu_temp_16.png

The same message is displayed for MacOsX10.2, Darwin 6.02 and Darwin 7.01. 
According to your previous mail, it should be normal at this stage.

Kindest regards,
Jean-Michel

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

* Re: [Qemu-devel] New BIOS for Mac PPC target.
  2004-06-27 19:33 ` Jean-Michel POURE
@ 2004-06-27 21:52   ` J. Mayer
  0 siblings, 0 replies; 7+ messages in thread
From: J. Mayer @ 2004-06-27 21:52 UTC (permalink / raw)
  To: qemu-devel

On Sun, 2004-06-27 at 21:33, Jean-Michel POURE wrote:
> > I just put a new BIOS version available for Mac PPC target.
> > http://site.voila.fr/jmayer/OpenHackWare/index.htm
> 
> Dear Jocelyn,
> 
> Thanks for the update. I downloaded and installed the updated BIOS using the 
> binaries available on your site.
> 
> Apparently, the BIOS displays version 0.1 and build time 2004-06-12. 
> Screenshot: http://www.poure.com/screenshots/qemu_temp_16.png
> 
Ooops... I'm sorry.
Once again, I did a mistake:
I'm running qemu on an Athlon64 and I cross-compile for PPC in a 32 bits
chrooted environment.... I choosed the wrong files to upload (from the
64 bits env...).

I just replaced the files. Should be the right version, now.

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

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

* Re: [Qemu-devel] New BIOS for Mac PPC target.
  2004-06-27 16:27 [Qemu-devel] New BIOS for Mac PPC target J. Mayer
  2004-06-27 19:33 ` Jean-Michel POURE
@ 2004-06-27 23:30 ` Martin
  2004-06-28  8:02 ` Jean-Michel POURE
  2004-06-28 18:11 ` Hetz Ben Hamo
  3 siblings, 0 replies; 7+ messages in thread
From: Martin @ 2004-06-27 23:30 UTC (permalink / raw)
  To: qemu-devel

Because the current ppc bios does not run the cdrom I tried if it would 
run my previously installed OSX 10.3 harddisk image (installed with pearpc)

os10.img 2642411520 bytes (2.5 GB)
stops with:
quarkdeb:/pub/projects/emulators/hardfiles/ppc# qemu-system-ppc 
-nographic -m 128 -hda os10.img
Connected to host network interface: tun0
PPC Open Hack'Ware BIOS for qemu version 0.2
Build 2004-06-27 15:58:29
Copyright 2003-2004 Jocelyn Mayer

Memory size: 128 MB.
Booting from device c
Probing PCI devices
Found new host bridge 'pci' 'AAPL,UniNorth' 'uni-north'...
OF_pci_device_new: register 'pci@f2000000' 'pci' 'uni-north' 'AAPL,UniNorth'
Done 0581b67c 0581d31c
Check PCI bridges
Check PCI devices
Found PCI device 1234:1111 0-96 3 0
=> 'Qemu VGA' 'display' 'Qemu VGA' 'VGA' (058087d0)
OF_pci_device_new: register 'Qemu VGA@c' 'display' 'VGA' 'Qemu VGA'
Done 0581d31c 0581d8fc
Map PCI device 0:96 0 to 80000008 00400000 (memory)
Set VGA to 80000000
Found PCI device 1014:ffff 0-104 8 128
=> 'MPIC2' 'open-pic' '<null>' 'chrp,open-pic' (00000000)
OF_pci_device_new: register 'MPIC2@d' 'open-pic' 'chrp,open-pic' '<null>'
Done 0581d31c 0581df6c
Map PCI device 0:104 0 to 80400000 00040000 (memory)
Found PCI device 10ec:8029 0-112 2 0
=> 'NE2000' 'network' 'NE2000 PCI' '<null>' (00000000)
OF_pci_device_new: register 'NE2000@e' 'network' '<null>' 'NE2000 PCI'
Done 0581d31c 0581e35c
MAP PCI device 0:112 to IRQ 10
Map PCI device 0:112 0 to 00001001 00000100 (I/O)
Found PCI device 106b:22 0-120 255 0
=> 'mac-io' 'mac-io' 'AAPL,Keylargo' 'Keylargo' (05808888)
OF_pci_device_new: register 'mac-io@f' 'mac-io' 'Keylargo' 'AAPL,Keylargo'
Done 0581d31c 0581e70c
MAP PCI device 0:120 to IRQ 11
Map PCI device 0:120 0 to 80480000 00080000 (memory)
PCI probe done (0581d2bc)
ide0: drive 0: Hard Disk
Found Apple partition map...
1 sectors in one part bloc (512 512)
Not a bootable partition
HFSplus volume
ERROR in hfs_get_boot_file: Didn't find boot file
ERROR: bloc: 190316768 part size: 5160896 0582294c
ERROR in hfs_treat_boot_file: Not an Apple CHRP boot file !
Partition: 0582294c Mac_OS_X st 00000040 size 004ebfc0ide0: drive 1: none
ide1: drive 0: CD-ROM
ERROR: ATAPI TEST_UNIT_READY : status 00000041 != 0x40
ide1: drive 1: none
ERROR: bloc: 5622065 part size: 5160896 0582294c
ERROR: Can't seek at end of file
Unable to load boot file



when I run without -disablegraphic I get the following on the vga screen:
PPC Open Hack'Ware BIOS for qemu version 0.2
Build 2004-06-27 15:58:29
Copyright 2003-2004 Jocelyn Mayer

ide0: drive 0: Hard Disk
Found Apple partition map...
1 sectors in one part bloc (512 512)
Not a bootable partition
HFSplus volume
ERROR in hfs_get_boot_file: Didn't find boot file
ERROR: bloc: 190316768 part size: 5160896 0582294c
ERROR in hfs_treat_boot_file: Not an Apple CHRP boot file !
Partition: 0582294c Mac_OS_X st 00000040 size 004ebfc0ide0: drive 1: none
ide1: drive 0: CD-ROM
ERROR: ATAPI TEST_UNIT_READY : status 00000041 != 0x40
ide1: drive 1: none
ERROR: bloc: 5622065 part size: 5160896 0582294c
ERROR: Can't seek at end of file
Unable to load boot file

It seems that it doesn't recognise the bootpartition/bootfile
In pearpc this image runs fine.

I also did another experiment.
In my working debianppc image I installed mol.
I tried to just run mol inside qemu-system-ppc
The mol kernel module seems to load ok but mol dies immediately 
afterwards with Oops: kernel access of bad area, sig: 11.
Before analysing why it goes wrong I would like to ask if you start qemu 
with qemu-system-ppc -prep -kernel vmlinuz-2.4.25  .....
Is it then still possible to load a 2.4.25 kernel module inside the 
guest or is this asking for trouble.

For completeness here is my startmol log.
debianppc:~# startmol --version
Mac-on-Linux 0.9.61
Copyright (C) 1997-2001 Samuel Rydh <samuel@ibrium.se>
debianppc:~#
debianppc:~#
debianppc:~# startmol --test
Loading Mac-on-Linux kernel module:
    /lib/modules/2.4.25/misc/mol.o
MOL 0.9.61 kernel module loaded
Loading SheepNet ethernet kernel module:
    /lib/modules/2.4.25/misc/sheep_net.o

WARNING: The ethernet interface /dev/sheep_net is missing.
Run 'mknod /dev/sheep_net c 10 198' as root to create it

Removing stale lockfile /var/lock/mol-0
Copyright (C) 1997-2001 Samuel Rydh <samuel@ibrium.se>
Version 0.9.61
Configuration file: /etc/molrc
Library directory: /usr/lib/mol
Session 0. Lockfile '/var/lock/mol-0'
/usr/bin/startmol: usleep: command not found
Debugger nub disabled
The session save/restore feature is disabled
Oops: kernel access of bad area, sig: 11
NIP: C9021988 XER: 00000000 LR: C9021968 SP: C7289E80 REGS: c7289dd0 
TRAP: 0300    Not tainted
MSR: 00009032 EE: 1 PR: 0 FP: 0 ME: 1 IR/DR: 11
DAR: 00000008, DSISR: 40000000
TASK = c7288000[249] 'mol' Last syscall: 201
last math 00000000 last altivec 00000000
GPR00: 00000000 C7289E80 C7288000 00000000 00000000 0000003C C7289ED8 
10065FB4
GPR08: 0FD50000 C7289E88 C90215FC 00000000 42000080 1006D628 00000000 
00000000
GPR16: 00000000 00000000 00000000 00000000 00009032 07289F40 00000000 
C0005E88
GPR24: C0005BE0 C7289ED8 10060000 00000000 00000000 C7289ED8 00000000 
00000000
Call backtrace:
C9021968 C9021BC8 C902161C C0005C3C 0FC9CDC4 100045C4 10002E44
0FC3CC30 00000000


Thanks and greetings,
Martin

J. Mayer wrote:
> Hello all,
> 
> I just put a new BIOS version available for Mac PPC target.
> 
> http://site.voila.fr/jmayer/OpenHackWare/index.htm
> 
> Current status: 
> * NetBSD booter loads but fails: some 
>    needed OF methods are missing. 
> * OpenBSD booter cannot run because it's a 
>    gzipped ELF file. 
> * Darwin 7.01 doesn't run: unknown or 
>    miss-loaded file format. 
> * Darwin 6.02 and OpenDarwin 6.6.1 seem
>    not to like the OF tree as it's shown. 
> * Darwin 1.41 & MacOS X 10.2 boot but fail
>    to read the CDROM. 
> * Linux debian woody, debian 3.0-r1, gentoo
>    live CDROM, gentoo install CDROM, knopix
>    and Mandrake 9.1 start: yaboot is loaded
>    but fails to go on. 
> * MacOS 9 and log restauration CDROMs
>    claim they want Apple Copyright. 
> * MacOS hw check CDROM won't boot for
>    now. 
> 
> Still a lot of work to do, but this version may allow MacOS X boot
> process debug. I just checked that OS X 10.2 starts and stops,
> complaining it can't access the CDROM.
> 
> Waiting for reports, comments, suggestions...
> 

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

* Re: [Qemu-devel] New BIOS for Mac PPC target.
  2004-06-28 18:11 ` Hetz Ben Hamo
@ 2004-06-28  6:25   ` Jean-Michel POURE
  0 siblings, 0 replies; 7+ messages in thread
From: Jean-Michel POURE @ 2004-06-28  6:25 UTC (permalink / raw)
  To: qemu-devel

> Pardon my stupid question, but why not to use the work that has been
> done with PearPC? they already boot Mac OS X...

PearPC bios only accepts two discs (one is 3Gb and the other 6Gbs). It seems 
that they hard-coded disc geometries, but this is not a suitable solution.

Kindest regards,
Jean-Michel

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

* Re: [Qemu-devel] New BIOS for Mac PPC target.
  2004-06-27 16:27 [Qemu-devel] New BIOS for Mac PPC target J. Mayer
  2004-06-27 19:33 ` Jean-Michel POURE
  2004-06-27 23:30 ` Martin
@ 2004-06-28  8:02 ` Jean-Michel POURE
  2004-06-28 18:11 ` Hetz Ben Hamo
  3 siblings, 0 replies; 7+ messages in thread
From: Jean-Michel POURE @ 2004-06-28  8:02 UTC (permalink / raw)
  To: qemu-devel; +Cc: Martin

Le dimanche 27 Juin 2004 18:27, J. Mayer a écrit :
> I just put a new BIOS version available for Mac PPC target.

Thank you for your updated build this morning. This time, I was able to boot 
Darwin 6.02 and MacOsX 10.2 to a certain extent:

Darwin 6.02:
http://www.poure.com/screenshots/qemu_temp_17.png

MacOsX 10.2 (notice how similar the messages are):
http://www.poure.com/screenshots/qemu_temp_18.png

Darwin 7.02 (not booting as you explained before):
http://www.poure.com/screenshots/qemu_temp_19.png

The Darwin 7.02 boot problem may be a DMA problem like in the x86 version. It 
is possible that if DMA is not enabled, Darwin 7.02 will refuse to boot.

Kindest regards,
Jean-Michel

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

* Re: [Qemu-devel] New BIOS for Mac PPC target.
  2004-06-27 16:27 [Qemu-devel] New BIOS for Mac PPC target J. Mayer
                   ` (2 preceding siblings ...)
  2004-06-28  8:02 ` Jean-Michel POURE
@ 2004-06-28 18:11 ` Hetz Ben Hamo
  2004-06-28  6:25   ` Jean-Michel POURE
  3 siblings, 1 reply; 7+ messages in thread
From: Hetz Ben Hamo @ 2004-06-28 18:11 UTC (permalink / raw)
  To: qemu-devel

J. Mayer wrote:
> Hello all,
> 
> I just put a new BIOS version available for Mac PPC target.
> 
> http://site.voila.fr/jmayer/OpenHackWare/index.htm

Pardon my stupid question, but why not to use the work that has been 
done with PearPC? they already boot Mac OS X...

Thanks,
Hetz

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

end of thread, other threads:[~2004-06-28  8:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-27 16:27 [Qemu-devel] New BIOS for Mac PPC target J. Mayer
2004-06-27 19:33 ` Jean-Michel POURE
2004-06-27 21:52   ` J. Mayer
2004-06-27 23:30 ` Martin
2004-06-28  8:02 ` Jean-Michel POURE
2004-06-28 18:11 ` Hetz Ben Hamo
2004-06-28  6:25   ` Jean-Michel POURE

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.