dachb0den .
information . history . contributions . links . contact




users .
h1kari . nfiltr8 . CommPort5 . pldn . Daimun



projects .
bsd-airtools . sql++ . screamingcobra . tibook-nix . blackhack . d.amp


archives .
tools . exploits . advisories




tibook-nix .
 tibook-openbsd . tibook-linux

projects . tibook-nix . openbsd
OpenBSD
When I first tried OpenBSD on my laptop back when they first announced support for it in August, the support was extremely bad, as was NetBSD, so I ended up using linux for a while. However, near the beginning of September I ended up switching to NetBSD because they managed to fix their tibook openfirmware problems and such. I'd have to say NetBSD so far has the best support I've seen for the tibook. However, I like openbsd's implementation better, mainly just because I'm an openbsd freak. Anyway, there were a few things that didn't work that I just had to fix.
> only 8-bit color xfree86
> no pcmcia support yet

I managed to fix the X problem and get it to run peachy keen, but it looks like there's still some work to be done on the pcmcia drivers before it'll be ready, mainly porting over the powerpc rbus/cardbus code from netbsd, although it doesn't seem too far away. Anyway, here's a general outline of what I did to get it installed and running smoothly.

Creating the Install CD
> Create a openbsd boot install cd using the bootable iso available on the ftp site [ftp://ftp.openbsd.org/pub/OpenBSD/3.0/macppc/cd30.fs].
> I used Nero Burning Rom to burn the cd, but almost any cd burning application that recognizes iso's should burn it fine.

Install OpenBSD
> Before you install OpenBSD, you need to make sure you at least have one HFS partition on your drive, because you will need it to boot off of. You should do this using the disk utilities in Mac OS 9. Make sure you have empty space on your drive for your openbsd partition.
> Now insert your OpenBSD boot cd and reboot into the openfirmware by holding down Command+Option+"O"+"F" when you're starting up.
> Once you're in the openfirmware, you may want to set it up so it boots you into the openfirmware whenever you start up, by typing:
  > setenv auto-boot? false
  > reset-all
> Now boot off the install cd by typing:
  > boot cd:,ofwboot /3.0/macppc/bsd.rd
> One thing that's kind of nifty is that you can install over your airport card if you want. To do this, simply choose Shell when the system boots up and configure your card before the installation:
  # ifconfig wi0 up
  # wicontrol wi0 -e 1 -k 0x3133731337 # you better be using wep ! :-)
  # wicontrol wi0 # make sure your connected up to the ap
  # install
> In the installer, make sure you choose the HFS partitioning scheme.
> Once you get to fdisk, create a new partition and make sure it's type is "OpenBSD".
> The rest of the installation should continue as if you were installing on any other architecture. However, if you are gonna use my xfree86 method for getting 24-bit color, you might not want to install any of the x packages just to keep things clean.
> Once the install is complete, you'll need to boot into Mac OS 9/X and install the bootloader onto the HFS partition. Just download ftp://ftp.openbsd.org/pub/OpenBSD/3.0/macppc/ofwboot to your HFS partition's /.
> Now boot into the openfirmware again, and start up openbsd !
  > boot hd:,ofwboot

Setting up 24-bit XFree86
The only remaining problem with XFree86 is that if you use my method, when x shuts down it'll totally screw up your screen, so I suggest that you use xdm and shutdown/reboot from x if you use this. Otherwise you'll have to blindly reboot the machine or from the network.
> In order to get 24-bit color with XFree86, you will need to cvsup to the newest version off of anoncvs.xfree86.org:
  # cd /usr/src
  # setenv CVS_RSH /usr/bin/ssh
  # setenv CVSROOT :/cvs
  # cvs co xc
  's password: anoncvs
> Once the checkout is complete, you'll need to build and install it:
  # cd xc
  # make World
  # make install
> Now you'll need to configure the X Server. Here's my config file.
> You'll also need to set your securelevel to -1 by editing your /etc/rc.securelevel so that securelevel=1 -> securelevel=-1. This allows the X server to talk to your pci device directly. You also need to reboot after editing the config file so the proper securelevel is set.
> Once you successfully get X started, you'll want to get your keymappings setup properly. Here's the xmodmaprc file I use. You'll either want to add it to your /usr/X11R6/lib/X11/etc/xmodmap.std or just copy it to ~/.xmodmaprc and run xmodmap ~/.xmodmaprc in your .xinitrc/.xsession. I only have a mapping for the middle mouse button because I use ion. If you run a window manager that requires use of the 3rd mouse button you'll probably want to add another binding for it.

Ending Notes
This should get everything setup on your laptop. To boot into Mac OS from openfirmware just type mac-boot or boot hd:,ofwboot for openbsd.

tibook-nix .
 tibook-openbsd . tibook-linux



copyright © 2001, dachb0den labs - aus der dose. please send any comments, suggestions, questions to the .
all information is property of dachb0den, distribution is permitted as long as credit is given.