Tightening kernel for Mac Mini G4

Alexey Dokuchaev danfe at FreeBSD.org
Thu Jan 23 04:49:22 UTC 2014


On Wed, Jan 22, 2014 at 08:25:42AM -0800, Justin Hibbits wrote:
> ata_macio and ata_kauai aren't available as modules.  It's probably
> trivial to make them such, but currently they're not.  Just keep the
> devices in kernel config.

OK, I can live with "device ATA" for a while; but ultimately I do think
that ata_macio and ata_kauai should be factored out as modules (similar
with our existing x86 ata stuff).  Ideally, all hardware-dependent stuff
should be modular.

> Neither of these are necessary for you.  I should probably eventually
> modularize windtunnel driver (and give it a better name).  SMU is for
> G5 systems, PMU is for G4 and G3 systems.

Great, I've removed entire "Misc" section of the config.  I'm wondering
if I can do the same for ADB support?  There are no ADB connectors for
peripherals on Mac Mini; is ADB still required (used internally)?  All
three devices (adb, cuda, pmu) or something can be dropped out?

> Can you drop the output of 'ofwdump -ap' somewhere (freefall?) and I
> can take a look at it.  Internal sound on most PowerPC Apple hardware
> is supported, I'm curious why yours isn't.

Sure, have a look: ~danfe/macmini-g4-ofw.dump.

./danfe

P.S.  "make -j2 buildworld" on tmpfs-backed OBJDIR took 12 hours (default
-CURRENT, i.e. reduced performance) and used 1,2G of tmpfs (and 76% of 1G
swap).  Replacing default 256M of RAM with 1G module was definitely a good
idea.  Alas, "make buildkernel" (without cleaning after buildworld) caused
it to run out of memory. :(


More information about the freebsd-ppc mailing list