From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <3e1162e60807170919h309b4137t305a1aea89531f8b@mail.gmail.com> Date: Thu, 17 Jul 2008 09:19:58 -0700 From: "David Leimbach" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@9fans.net> In-Reply-To: <20080717093212.GA3905@dinah> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_3502_4054017.1216311598802" References: <20080717093212.GA3905@dinah> Subject: Re: [9fans] Plan 9 on MacBook? Topicbox-Message-UUID: eac17c96-ead3-11e9-9d60-3106f5b1d025 ------=_Part_3502_4054017.1216311598802 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Thu, Jul 17, 2008 at 2:32 AM, Anthony Martin wrote: > > I now have a more-or-less unused MacBook. I'm > > considering spending some time trying to get Plan 9 > > working on it. Has anyone gotten beyond confirming > > that it won't work out of the box? > > I have Plan 9 booting on an Intel Macbook. When I was > first testing it out, there were problems with the > SATA driver but Erik fixed those and it works fine > now. The only change that you'll have to make is in > the keyboard initialization for both the kernel and > 9load. > Using boot camp I presume? So you have a BIOS. That or someone did EFI support under the radar (which might still be cool even though it sucks). > > Add the following at the beginning of these functions: > /sys/src/9/pc/kbd.c:/^kbdinit > /sys/src/boot/pc/kbd.c:/^i8042init > > + c = inb(Status); > + if(c & Rtimeout){ > + print("no keyboard present\n"); > + return; > + } > > Oh, and you're going to need to supply a plan9.ini > with sufficient parameters since you don't have > keyboard input until you can run usb/kb. > > If I get some time on Saturday, I'll post a write- > up on how to bootstrap the system using a spare > partition on the Mac. > > Also, I started an ethernet driver for the Yukon 2 > chip that's in the Macbook. I had to put it aside > for a while but I'm slowly getting back into it. > > Anthony > > ------=_Part_3502_4054017.1216311598802 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline


On Thu, Jul 17, 2008 at 2:32 AM, Anthony Martin <ality@pbrane.org> wrote:
> I now have a more-or-less unused MacBook. I'm
> considering spending some time trying to get Plan 9
> working on it. Has anyone gotten beyond confirming
> that it won't work out of the box?

I have Plan 9 booting on an Intel Macbook. When I was
first testing it out, there were problems with the
SATA driver but Erik fixed those and it works fine
now. The only change that you'll have to make is in
the keyboard initialization for both the kernel and
9load.

Using boot camp I presume?  So you have a BIOS.  That or someone did EFI support under the radar (which might still be cool even though it sucks).
 

Add the following at the beginning of these functions:
       /sys/src/9/pc/kbd.c:/^kbdinit
       /sys/src/boot/pc/kbd.c:/^i8042init

+        c = inb(Status);
+        if(c & Rtimeout){
+                print("no keyboard present\n");
+                return;
+        }

Oh, and you're going to need to supply a plan9.ini
with sufficient parameters since you don't have
keyboard input until you can run usb/kb.

If I get some time on Saturday, I'll post a write-
up on how to bootstrap the system using a spare
partition on the Mac.

Also, I started an ethernet driver for the Yukon 2
chip that's in the Macbook. I had to put it aside
for a while but I'm slowly getting back into it.

Anthony


------=_Part_3502_4054017.1216311598802--