Hi, Openbios dev list,
I'm wondering if it is possible to run ppc virtual machine on x86_64.
I execute the following:
qemu-system-ppc64 -vga std -cdrom
/home/marcusmae/Download/OS/Fedora-11-ppc-DVD.iso -hda f11_ppc.qcow2
, and this brings me to coffee-colored openbios room, inviting to boot
from somewhere. I type:
which gives me
cdrom:0,\ppc\chrp\yaboot.conf: Unknown or corrupt filesystem
Welcome to yaboot version 1.3.14 (Red Hat 1.3.14-12.fc11)
What's the problem with it? I'm sure that it's an iso of ppc build of fedora.
This patch implements OF memory manager. I used
arch/ppc/qemu/ofmem.c as a starting point, future plans
in ofmem area would be to migrate common parts from
working implementations (ppc and sparc64) into common
Client interface handler now uses ofmem implementation
instead of walking hardware translation tables. Since setup
code in entry.S does install it's own translations ofmem
initialization routine simply copies entries from hardware.
Properties "available" and "translations" are then populated
This implementation passes boot test with no visible changes
on screen for HelenOS-0.4.0-sparc64.iso
Linux boot does not get any further with this patch due to
conflicts with memory mappings in low memory region.
Igor V. Kovalenko
I built OpenBIOS v1.0 on my Fedora 10 PPC system using gcc 4.3.2.
After changing a couple of assembly instructions from 'ba' to 'b', I
was able to compile openbios into a binary. The problem is, when I
try to run the openbios-unix program with the supplied dict file, I
get the following:
bash-3.2$ ./openbios-unix openbios-unix.dict
Checksum invalid (65a824b7)!
Any idea what corrupted the file?
This small patch improves the output of the dump word by adding a
preceding carriage return to the dump output, and forcing addresses to
be displayed unsigned. Without the unsigned output fix, addresses tend
to be displayed as negative numbers working with openbios-unix.
Mark Cave-Ayland - Senior Technical Architect
PostgreSQL - PostGIS
Sirius Corporation plc - control through freedom
t: +44 870 608 0063
Date: 2009-07-12 22:16:39 +0200 (Sun, 12 Jul 2009)
New Revision: 511
Minor tweaks to dump word output (Mark Cave-Ayland)
--- trunk/openbios-devel/forth/bootstrap/bootstrap.fs 2009-07-12 10:13:39 UTC (rev 510)
+++ trunk/openbios-devel/forth/bootstrap/bootstrap.fs 2009-07-12 20:16:39 UTC (rev 511)
@@ -1310,7 +1310,8 @@
: dump ( addr len -- )
over + swap
- do i . space
+ do i u. space
10 0 do
j i + c@
dup 10 / todigit emit
This patch improves previous proposal and adds:
- save/restore global registers across client interface calls.
Since OS kernel generally has it's own idea of what
the ABI is we have to follow this requirement.
- adjust stack to allow using unoptimized openbios
build with linux kernel. Linux provides only 128 bytes
on stack which is not enough to save arguments by
code generated with gcc -O0
- fix switch_to so it actually could be used to switch
to client image. context pointer must be volatile to
prevent gcc optimizing out stores to it.
Igor V. Kovalenko