9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Anthony Martin <ality@pbrane.org>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] Plan 9 on MacBook?
Date: Thu, 17 Jul 2008 02:32:13 -0700	[thread overview]
Message-ID: <20080717093212.GA3905@dinah> (raw)
In-Reply-To: <ffb348a0e8e56178310d7ec56107d85c@9srv.net>

> 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.

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



  parent reply	other threads:[~2008-07-17  9:32 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-17  2:30 a
2008-07-17  2:35 ` Pietro Gagliardi
2008-07-17  2:40   ` a
2008-07-17  2:47     ` Pietro Gagliardi
2008-07-17  9:32 ` Anthony Martin [this message]
2008-07-17 11:31   ` Richard Miller
2008-07-17 16:19   ` David Leimbach
2008-11-23  0:10   ` Tom Lieber

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080717093212.GA3905@dinah \
    --to=ality@pbrane.org \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).