Mac-On-Linux
30-Dec-00
Stefan Jeglinski
where to get it
preliminary config of the Mac
- prepare a Mac volume (mac_boot_disk) by installing a suitable version of MacOS (I use 8.6)
- extract Mac OS ROM from the install tome with tomeviewer and put it in the System Folder
- reboot once and confirm that the MacOS boots properly; turn off virtual memory
installing MOL
- rpm -Uhv mol-0.9.xx-x.ppc.rpm
- use -i for a first install
- if upgrading (-U), be sure to propagate your settings from
/etc/molrc.rpmsave to the new /etc/molrc
- strip_nwrom "/mac_boot_disk/System Folder/Mac OS ROM" /usr/lib/mol/rom/rom.nw
- only required after the first install or when the ROM file is changed
patching the kernel (optional)
- Note: for 603 processors, the kernel cannot be run-time patched;
the kernel source must be patched and recompiled.
- applying the patch
- cd /usr/doc/mol-0.9.xx/Kernel_Patches
- there are 2 patches available (the_patch)
- the_patch = mol-kernel-2.2.10.patch
- the_patch = mol-kernel-2.2.15pre4.patch
- test the patch against your kernel source:
patch --dry-run -d /usr/src/linux -p0 < the_patch
- if no problems, apply the patch:
patch -d /usr/src/linux -p0 < the_patch
- the mol-kernel-2.2.15pre4.patch works with 2.2.15pre4 thru 2.2.18 final (as of this writing)
- the patch file does not work with 2.3.x or 2.4.x (as of this writing)
- recompile the kernel and reboot
configuring MOL (all notes refer to /etc/molrc, some options may not be available in earlier versions of mol)
- change ram_size from 32 to a higher number (I use 64)
- change resolution and depth to a suitable value (I use 800/600/75 and 16)
- determine the partition number (N) of mac_boot_disk
- change the mac_boot_disk partition from -ro to -rw
- change other partitions to -rw as needed
- change use_x_cursor to no
- decrease mouse_dpi to speed up the mouse
- add mount_mol_disk: false to keep virtual disk from mounting
- uncomment and change mouse_device to /dev/adbmouse (see input-layer note below)
- change mouse_protocol to adb (see input-layer note below)
- input-layer notes:
- valid only if input layer is compiled into kernel and using mol-0.9.53b-3 or later
- change mouse_device to /dev/input/mice
- change mouse_protocol to usb (even if mouse is adb!!)
running MOL
- before running mol for the first time, run molvconfig and follow directions
- umount any Linux-mounted volumes that will be mounted in MOL
- startmol from a terminal window in X (x-window, lower performance)
- startmol from from a run-level 3 console (full-screen, higher performance)
tips
- read the FAQ: http://www.turbolinux.com/~brad/mol/
- read a good how-to: http://216.22.163.20/Linux_Pages/mol.shtml
- if you don't change the boot partition to read-write, you cannot configure
MacOS and make the changes stick
- if the partition running MacOS is normally mounted while Linux is running,
you should unmount it before running MOL or it will be read-only
even if it is set to be read-write
- any user can run mol from the get-go on a 603 processor because the kernel is not run-time patched (if the kernel is run-time patched, root must first run mol before any user can, because only root can run-time patch the kernel!) Note: this point may not be true with mol-0.9.53b-3
rapierbit