running MOL in OS X

minuo mol-general@lists.maconlinux.org
Wed, 15 Sep 2004 23:43:33 -0600


--Apple-Mail-2-1042096510
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=US-ASCII;
	format=flowed

I've only _barely_ played with that, with not any real sucess.  From 
what I've read in the lists, no.  That doesn't mean that it can't be 
done and from what I gather, Samuel? and others have tried, but some 
parts don't work yet preventing it.  I also have read that this isn't 
necessarily a high priority either....

--minuo

On Sep 15, 2004, at 7:00 AM, James Pattinson wrote:

> That's great - I am going to test this.
>
> Given that OSX doesn't boot - is it possible that Linux would boot?
>
> James
>
> On 15 Sep 2004, at 13:55, minuo wrote:
>
>> In the mol-devel list there is some help from Samuel (quoted below).  
>> >From what I understand, it is possible now to boot 9.1 but not yet a 
>> OSX.  The kext also needs to be loaded manually with a 'make insert' 
>> in src/kmod/Darwin.
>>
>> --minuo
>>
>> As posted:
>>> On Fri, Mar 19, 2004 at 09:35:40AM -0500, Sam Bayer wrote:
>>> You are probably not building from the correct BK tree.
>>>
>>> The OSX stuff is in
>>>
>>> 	bk://mol@mol.bkbits.net/devel
>>>
>>> Note: There is a small one-line 10.3 fix I haven't pushed yet
>>> (I want to fix this differently). You have to apply the patch
>>> below (the patch below is hand crafted so you will have
>>> to apply it manually...)
>>>
>> <bad patch cut>
>>> /Samuel
>>
>> and the updated patch:
>>> On Fri, Mar 19, 2004 at 04:03:11PM +0100, Samuel Rydh wrote:
>>> Oh my... the fix shuld of course be
>>>
>>> --- mol-old/src/kmod/Darwin/alloc.c
>>> +++ mol-new/src/kmod/Darwin/alloc.c
>>> 	if( !phys ) {
>>> 		printk("tophys_mol: VA %08lX translates to 0!\n", (ulong)p );
>>> 	}
>>> +	phys = phys << 12;
>>> 	phys += phys ? (ulong)(p-trunc_page(p)) : 0;
>>> 	return phys;
>>>
>>> /Samuel
>>
>> On Sep 13, 2004, at 6:40 PM, Fred Hope wrote:
>>
>>> Hi all,
>>>
>>> I know that Mac On Linux was intended to be a program that lets PPC 
>>> Linux users run MacOS or another Linux in a separate PPC environment 
>>> on their machine. But I read somewhere that Mac On Linux can 
>>> actually run natively in Mac OS X, so you could use OS X as your 
>>> primary OS and just have a little PPC linux environment in a window 
>>> (so it'd be like Linux On Mac). I'd sort of like to do this. 
>>> However, I know that you have to make some adjustments to the Mac On 
>>> Linux source code in order for it to compile in OS X. Does anyone 
>>> know how to do this (i.e. what changes to make to the source)?  I 
>>> downloaded the source yesterday and tried to compile as-is, but got 
>>> the following errors:
>>>
>>> Compiling zconf-y.o           : cc1: internal compiler error: Bus 
>>> error
>>>
>>> make[2]: *** [.objs-osx/zconf-y.o] Error 1
>>> make[1]: *** [sub-kconfig-all] Error 2
>>> make: *** [bootstrap] Error 1
>>>
>>> If anyone can help me get MOL running on OS X (assuming it's still 
>>> possible), that would be really cool.  I'm running Mac OS X 10.3.5 
>>> on a 1 GHz iMac G4.
>>>
>>> Thanks,
>>> Fred Hope
>>>
>>> _______________________________________________
>>> mol-general mailing list
>>> mol-general@lists.maconlinux.org
>>> http://lists.maconlinux.org/mailman/listinfo/mol-general

--Apple-Mail-2-1042096510
Content-Transfer-Encoding: 7bit
Content-Type: text/enriched;
	charset=US-ASCII

I've only _barely_ played with that, with not any real sucess.  From
what I've read in the lists, no.  That doesn't mean that it can't be
done and from what I gather, Samuel? and others have tried, but some
parts don't work yet preventing it.  I also have read that this isn't
necessarily a high priority either....


--minuo


On Sep 15, 2004, at 7:00 AM, James Pattinson wrote:


<excerpt>That's great - I am going to test this.


Given that OSX doesn't boot - is it possible that Linux would boot?


James


On 15 Sep 2004, at 13:55, minuo wrote:


<excerpt>In the mol-devel list there is some help from Samuel (quoted
below).  >From what I understand, it is possible now to boot 9.1 but
not yet a OSX.  The kext also needs to be loaded manually with a 'make
insert' in src/kmod/Darwin.


--minuo


As posted:

<excerpt>On Fri, Mar 19, 2004 at 09:35:40AM -0500, Sam Bayer wrote:

You are probably not building from the correct BK tree.


The OSX stuff is in


	bk://mol@mol.bkbits.net/devel


Note: There is a small one-line 10.3 fix I haven't pushed yet

(I want to fix this differently). You have to apply the patch

below (the patch below is hand crafted so you will have

to apply it manually...)


</excerpt><<bad patch cut>

<excerpt>/Samuel

</excerpt>

and the updated patch:

<excerpt>On Fri, Mar 19, 2004 at 04:03:11PM +0100, Samuel Rydh wrote:<color><param>0000,6361,1210</param>

</color>Oh my... the fix shuld of course be


--- mol-old/src/kmod/Darwin/alloc.c

+++ mol-new/src/kmod/Darwin/alloc.c

	if( !phys ) {

		printk("tophys_mol: VA %08lX translates to 0!\n", (ulong)p );

	}

+	phys = phys <<<< 12;

	phys += phys ? (ulong)(p-trunc_page(p)) : 0;

	return phys;


/Samuel

</excerpt>

On Sep 13, 2004, at 6:40 PM, Fred Hope wrote:


<excerpt>Hi all,


I know that Mac On Linux was intended to be a program that lets PPC
Linux users run MacOS or another Linux in a separate PPC environment
on their machine. But I read somewhere that Mac On Linux can actually
run natively in Mac OS X, so you could use OS X as your primary OS and
just have a little PPC linux environment in a window (so it'd be like
Linux On Mac). I'd sort of like to do this. However, I know that you
have to make some adjustments to the Mac On Linux source code in order
for it to compile in OS X. Does anyone know how to do this (i.e. what
changes to make to the source)?  I downloaded the source yesterday and
tried to compile as-is, but got the following errors:


Compiling zconf-y.o           : cc1: internal compiler error: Bus error


make[2]: *** [.objs-osx/zconf-y.o] Error 1

make[1]: *** [sub-kconfig-all] Error 2

make: *** [bootstrap] Error 1


If anyone can help me get MOL running on OS X (assuming it's still
possible), that would be really cool.  I'm running Mac OS X 10.3.5 on
a 1 GHz iMac G4.


Thanks,

Fred Hope


_______________________________________________

mol-general mailing list

mol-general@lists.maconlinux.org

http://lists.maconlinux.org/mailman/listinfo/mol-general

</excerpt></excerpt></excerpt>
--Apple-Mail-2-1042096510--