*BSD News Article 31763


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!bunyip.cc.uq.oz.au!munnari.oz.au!spool.mu.edu!howland.reston.ans.net!EU.net!Germany.EU.net!gomel.knirsch.de!knobel.knirsch.de!knobel.knirsch.de!andreas
From: andreas@knobel.knirsch.de (Andreas Klemm)
Newsgroups: comp.os.386bsd.questions
Subject: Re: Configuration
Date: 17 Jun 1994 23:38:11 GMT
Organization: $HOME, D-41469 Neuss
Lines: 32
Message-ID: <2ttc5l$bu@knobel.knirsch.de>
References: <2trd5e$jo9@panix3.panix.com>
NNTP-Posting-Host: knobel.knirsch.de
X-Newsreader: TIN [version 1.2 PL2]

Boris Pitel (scibp6p@panix.com) wrote:
:          Hi!
:    Can anybody explain me first:
:    a) How one can find out which devices are configured in the system,
: to which IRQs and addresses?

There is a utility named dmesg(8). It prints the contens of the kernels
message buffer. It shows you, which devices the kernel found during
startup. Another good way is to look in your kernels config file.

If you have installed the kernel sources, then look into the files
/sys/i386/conf/GENERIC...

Then you see, whats enabled at which address or irq ...

:    b) How one can add a new device to the kernel, if he has the source for
: the device driver?

It has to be added to the list of files in /sys/i386/conf/files.i386
and it has to be added in /sys/i386/i386/conf.c.

: now I have only bits, like mknode, MAKEDEV, IRQ's, some sources, but I don't
: know how to put all these bits together.

A task for a kernel guru :) Sorry, can't help on this topic ...


	Andreas ///

--
Andreas Klemm                 /\/\____ Wiechers & Partner Datentechnik GmbH 
andreas@knobel.knirsch.de ___/\/\/     andreas@wupmon.wup.de (Unix Support)