Mark, using your hints I was able to establish that <meta http-equiv="content-type" content="text/html; charset=utf-8"><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">the ELF header is not present.</span><div>
<font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;">I will try (I'm not so expert in C) to take a look at the files you suggest me.</span></font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;">Thanks, Ciao<br></span></font><br><div class="gmail_quote">2010/9/15 Mark Cave-Ayland <span dir="ltr"><<a href="mailto:mark.cave-ayland@siriusit.co.uk">mark.cave-ayland@siriusit.co.uk</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div></div><div class="h5">Andreas Färber wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
qemu-system-ppc64 w/ either stock QEMU OpenBIOS or r862 with OSX host and ppc MMU patches:<br>
<br>
C>> annot manage 'OHCI USB controller' PCI device type 'usb':<br>
 >>  106b 3f (c 3 10)<br>
<br>
 >> =============================================================<br>
 >> OpenBIOS 1.0 [Aug 17 2010 14:41]<br>
 >> Configuration device id QEMU version 1 machine id 3<br>
 >> CPUs: 1<br>
 >> Memory: 128M<br>
 >> UUID: 00000000-0000-0000-0000-000000000000<br>
 >> CPU type PowerPC,970FX<br>
Welcome to OpenBIOS v1.0 built on Aug 17 2010 14:41<br>
<br>
0 > load cd:,\ppc\chrp\bootfile.exe  ok<br>
0 > go No valid state has been set by load or init-program<br>
 ok<br>
0 > boot cd:,\ppc\chrp\bootfile.exe No valid state has been set by load or init-program<br>
 ok<br>
0 > dir cd:,\ppc\chrp<br>
      2048 2007-07-03 17:39:44 .\<br>
      2048 2007-07-03 17:32:05 ..\<br>
  12487680 2007-07-03 17:39:24 bootfile.exe<br>
 ok<br>
0 ><br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Also, what format is the AIX bootloader - is it an ELF executable?<br>
</blockquote>
<br>
$ file /Volumes/CDROM/ppc/chrp/bootfile.exe<br>
/Volumes/CDROM/ppc/chrp/bootfile.exe: ELF 32-bit MSB executable, PowerPC or cisco 4500, version 1 (SYSV), statically linked, corrupted section header size<br>
<br>
Andreas<br>
</blockquote>
<br></div></div>
Right. So in the case that you see the message "No valid state has been set by load or init-program", this means that either the load failed or init-program failed to detect a valid ELF header for the current architecture.<br>

<br>
First thing to check is that the executable is being loaded from disk, e.g.<div class="im"><br>
<br>
load cd:,\ppc\chrp\bootfile.exe<br>
<br></div>
then dump the first 200 bytes of memory to make sure an ELF header is present (i.e. the load from disk was successful):<br>
<br>
load-base 200 dump<br>
<br>
If the ELF header is present then it must be init-program which is failing. If the ELF header is not present, you'll need to take a look in either libopenbios/load.c and/or libopenbios/elf_load.c at elf_load() and elf_init_program().<br>

<br>
The one thing that I did notice is that you are attempting to launch a PPC32 ELF file under a PPC64 Qemu, so perhaps it is the checks in is_elf() which are failing? Try taking a look at the relevant constants in include/arch/ppc/elf.h.<br>

<br>
<br>
HTH,<div class="im"><br>
<br>
Mark.<br>
<br>
-- <br>
Mark Cave-Ayland - Senior Technical Architect<br>
PostgreSQL - PostGIS<br>
Sirius Corporation plc - control through freedom<br>
<a href="http://www.siriusit.co.uk" target="_blank">http://www.siriusit.co.uk</a><br>
t: +44 870 608 0063<br>
<br>
Sirius Labs: <a href="http://www.siriusit.co.uk/labs" target="_blank">http://www.siriusit.co.uk/labs</a><br>
<br>
-- <br></div><div><div></div><div class="h5">
OpenBIOS                 <a href="http://openbios.org/" target="_blank">http://openbios.org/</a><br>
Mailinglist:  <a href="http://lists.openbios.org/mailman/listinfo" target="_blank">http://lists.openbios.org/mailman/listinfo</a><br>
Free your System - May the Forth be with you<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Cordiali Saluti/Best Regards<br><br>Massimo Montecchi<br>Modena - Italy<br>
</div>