Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Jun 2001 13:09:04 +0200
From:      "Patrick O'Reilly" <patrick@mip.co.za>
To:        "Christopher Bush" <bushroot3@home.com>, <freebsd-questions@FreeBSD.ORG>
Subject:   RE: I'm having some trouble with kernel configuration
Message-ID:  <NDBBIMKICMDGDMNOOCAIMEMDCMAA.patrick@mip.co.za>
In-Reply-To: <3B307D7B.6040104@home.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Christopher,

I have built kernels only a few times (maybe 5  or 6 times), and my
experience has been that there are some dependencies which are not
documented in the GENERIC file, but which have caught me more than once.

For example, I built a kernel for an old Pentium 200Mhz system which I am
sure was built before PCMCIA existed, and which certainly does not have an
PCMCIA device installed, yet the kernel would not build with the following
lines exactly as you have them:
---
# PCCARD (PCMCIA) support
#device		card
#device		pcic0	at isa? irq 0 port 0x3e0 iomem 0xd0000
#device		pcic1	at isa? irq 0 port 0x3e2 iomem 0xd4000 disable
---
I tried to un-comment the "card" device, still no joy.  Then uncommented all
three lines and make was fine.

I have no idea why - but that was my experience.  Andy also replied saying
you should include the line:
---
# PCI Ethernet NICs that use the common MII bus controller code.
# NOTE: Be sure to keep the 'device miibus' line in order to use these NICs!
device		miibus		# MII bus support
---
I have also found that miibus is referred by other devices, so now I always
include it.  At least the GENERIC kernel file comments hint that you should
probably include it.

I seem to recall also having difficulties when excluding some of the "ata"
set of devices.  Your config has:
---
# ATA and ATAPI devices
#device		ata0	at isa? port IO_WD1 irq 14
#device		ata1	at isa? port IO_WD2 irq 15
device		ata
device		atadisk			# ATA disk drives
device		atapicd			# ATAPI CDROM drives
---
You might want to try uncommenting the "ata0" and "ata1" lines.

These comments are purely based on personal experience - I don't wish to
pretend to understand exactly why some of these inter-dependencies exist.

I hope you have more success.  FreeBSD is my personal choice - give it some
more time. :)

Patrick.

-----Original Message-----
From:Christopher Bush
Sent: 20 June 2001 12:40
To: freebsd-questions@FreeBSD.ORG
Subject: I'm having some trouble with kernel configuration

I seem to be doing something wrong while configuring my kernel.  I've
tried a few IRC rooms, but they keep telling me I should read the
handbook.  While the handbook seems to be a good source of information,
either I must be illiterate, or what I'm looking for isn't there.  I can
configure the kernel.  I don't get any error messages when I do.
However, when I do a make depend, it gives me an error.  I'm including
my kernel configuration in hopes that maybe you'll be able to explain to
me what I'm doing wrong.  This is the first time I've tried to do
configure and compile a kernel under FreeBSD.  I've done so under Linux
several times.  I thought I'd try your OS, but from what I've seen in
IRC, I'm supposed to be born with an understanding of it.  Anyway,
thanks in advance for any help.  I appreciate it.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?NDBBIMKICMDGDMNOOCAIMEMDCMAA.patrick>