Where do I purchace an unlock code to build a custom kernel?

Ian Lepore freebsd at damnhippie.dyndns.org
Sun Nov 25 18:49:10 UTC 2012

On Sun, 2012-11-25 at 00:29 +0100, Andreas Nilsson wrote:
> [big discussion snipped, including advice to include GENERIC] 
> I full-heartedly agree that include-statement is good, but still
> $ wc -l /usr/src/sys/amd64/conf/MINI
>      174 /usr/src/sys/amd64/conf/MINI
> And this is just after removing network cards ( (usb)ethernet,
> (usb)wlan,
> raid drivers and firewire) for my pretty standard lenovo t510. There
> is so
> much in GENERIC today that seems to work just as well as modules. I
> guess
> one thread on a mailing list this summer tried to achieve a more
> modular
> config, which would make the include statement even more useful.
> Best regards
> Andreas
I think including GENERIC and then trying to customize by disabling what
you don't need is horrible advice, and results in just as big and
unmaintainable a mess as writing a custom config file from scratch.
Either way you do it, you are absolutely required on each OS release to
carefully comb through every line of the new GENERIC and compare it to
your customizations to make sure you're still turning on and off the
right things to get the kernel you want.  Where's the benefits?

The problem, as I see it, is that GENERIC is not intended to be a
baseline config to which various little extras can be added and maybe
one or two things might be trimmed away.  It's an ever-changing vision
of a config that can be almost everything that almost everyone needs.
The ever-changingness of that vision is the big problem.  Things that
had to be in GENERIC 10 years ago are all but meaningless now (NDIS
drivers, anyone?  device EISA?).

It would be nice if kernel configs were truly modularized and designed
to be used in a mix-ins sort of way.  There should be an I386-BASE and
AMD64-BASE and so on that contains just things that are truly required
to get that hardware working.  There should be useful mix-ins like
FIREWALL and ROUTER and DESKTOP.  I should be able to write a config
file that looks like

  ident MYBEAST
  include AMD64-BASE
  include DESKTOP

  device frannistan # The cheap-o multi-io card I bought
  device uftdi      # My favorite usb->serial adapters

-- Ian


More information about the freebsd-stable mailing list