[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] New BIOS for Mac PPC target.
From: |
Martin |
Subject: |
Re: [Qemu-devel] New BIOS for Mac PPC target. |
Date: |
Mon, 28 Jun 2004 01:30:43 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040413 Debian/1.6-5 |
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 'address@hidden' '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 address@hidden' '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 'address@hidden' '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 'address@hidden' '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 'address@hidden' '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 <address@hidden>
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 <address@hidden>
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...