[openfirmware] Unable to run OFW on Qemu

aditya siram aditya.siram at gmail.com
Thu Nov 22 14:22:42 CET 2012


Hi all,
I was trying to get OFW running on Qemu to play with it and have been
unsuccessful so far. My OFW is the latest Subversion as of yesterday. When
I follow the instructions for creating a BIOS [1] or a floppy [2] I get a
black non-responsive screen. Running `strace qemu-system-i386 -L
/usr/local/share/qemu -boot a -fda floppy.img` I can see that it's stuck in
some loop [3] but I can't tell what it is or how to fix it. I think that
Qemu itself works because I booted it with one of the linux test images
available for download from their site and it works fine. I'm using a
Thinkpad X200 with Ubuntu 12.04 and kernel version 3.5.0-18-generic and
Qemu version 1.2.1.

Appreciate your help!
-deech

[1] http://www.openfirmware.info/Building_OFW_for_QEMU
[2] http://www.openfirmware.info/Building_OFW_to_Load_from_BIOS
[3]
execve("/usr/local/bin/qemu-system-i386", ["qemu-system-i386", "-L",
"/usr/local/share/qemu", "-boot", "a", "-fda", "floppy.img"], [/* 55 vars
*/]) = 0
brk(0)                                  = 0xb98f3000
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or
directory)
mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0xb7484000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or
directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=60418, ...}) = 0
mmap2(NULL, 60418, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7475000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or
directory)
open("/lib/i386-linux-gnu/librt.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3,
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320\30\0\0004\0\0\0"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=30684, ...}) = 0
mmap2(NULL, 33360, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =
0xb746c000
mmap2(0xb7473000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6) = 0xb7473000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or
directory)
open("/lib/i386-linux-gnu/libglib-2.0.so.0", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 at O\1\0004\0\0\0"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=1026920, ...}) = 0
mmap2(NULL, 1027232, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0)
= 0xb7371000
mmap2(0xb746a000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xf9) = 0xb746a000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or
directory)
open("/lib/i386-linux-gnu/libutil.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0
\n\0\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=9808, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0xb7370000
mmap2(NULL, 12432, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =
0xb736c000
mmap2(0xb736e000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1) = 0xb736e000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or
directory)
open("/lib/i386-linux-gnu/libm.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3,
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0000D\0\0004\0\0\0"..., 512)
= 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=173588, ...}) = 0
mmap2(NULL, 176272, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =
0xb7340000
mmap2(0xb736a000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x29) = 0xb736a000
close(3)                                = 0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openfirmware.info/pipermail/openfirmware/attachments/20121122/0eb44709/attachment.html>


More information about the openfirmware mailing list