[OpenBIOS] [PATCH] ppc: force target CPU

Programmingkid programmingkidx at gmail.com
Mon Jan 25 19:58:47 CET 2016

On Jan 25, 2016, at 12:48 PM, BALATON Zoltan wrote:

> On Mon, 25 Jan 2016, Programmingkid wrote:
>> The forthstrap command is what is producing the error message. I assume it is 64 bit, but that assumption could be wrong. Could you report the output of this command: file ./config/scripts/obj-ppc/forthstrap
> Well, another idea, maybe we should compile this always as 32 bit in case it has problems with being 64 bit, although that seems to work on x86_64 at least.

I suppose we could add code that detects ppc64 and print a message that says "64 bit PowerPC is not supported. Please use 32 bit instead". But I think correcting the problem might be better. The 64 bit code would have full access to the 64 bit CPU and might be faster.

My forthstrap is 64 bits. Here is the 'file' output on the file (no pun intended):
Mach-O 64-bit executable x86_64

What does the file command say about your forthstrap file? 
file ./config/scripts/obj-ppc/forthstrap

Are you using a 32 bit or 64 bit kernel? 
"uname -a" will tell.

More information about the OpenBIOS mailing list