From owner-freebsd-hackers Mon Jan 20 16:50:05 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id QAA15735 for hackers-outgoing; Mon, 20 Jan 1997 16:50:05 -0800 (PST) Received: from genesis.atrad.adelaide.edu.au (genesis.atrad.adelaide.edu.au [129.127.96.120]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id QAA15708 for ; Mon, 20 Jan 1997 16:49:59 -0800 (PST) Received: (from msmith@localhost) by genesis.atrad.adelaide.edu.au (8.8.2/8.7.3) id LAA03575 for hackers@freebsd.org; Tue, 21 Jan 1997 11:19:57 +1030 (CST) From: Michael Smith Message-Id: <199701210049.LAA03575@genesis.atrad.adelaide.edu.au> Subject: Kernel driver source installer? To: hackers@freebsd.org Date: Tue, 21 Jan 1997 11:19:56 +1030 (CST) X-Mailer: ELM [version 2.4ME+ PL28 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk One of the things that has always bugged me about installing kernel drivers that aren't part of a 'stock' distribution is working out where to put what, and those trivial edits of files.i386 etc. So I've automated it (about time 8). cain:~/work/misc/kdrv>./KernelDriver add mdsio ./sys cain:~/work/misc/kdrv>./KernelDriver list ./sys mdsio : Multidrop RS-422/485 driver cain:~/work/misc/kdrv>./KernelDriver delete mdsio ./sys cain:~/work/misc/kdrv>./KernelDriver list ./sys cain:~/work/misc/kdrv>cat mdsio/mdsio.drvinfo # Driver Info file for multidrop serial driver driver mdsio description {Multidrop RS-422/485 driver} file i386/isa/ mdsio.c file i386/include mdsio.h linttext # device mdsio0 at isa? port "IO_COM3" irq 10 vector mdsiointr end excerpt from ./sys/i386/conf/files.i386 (while installed): ## driver: mdsio # Multidrop RS-422/485 driver # file: i386/isa/mdsio.c i386/isa/mdsio.c optional mdsio device-driver # file: i386/include/mdsio.h ## enddriver (no, it doesn't sort its entries) Would this be another src/tools/tools candidate? Any suggestions (add stuff to other .i386 files like options, etc?) -- ]] Mike Smith, Software Engineer msmith@gsoft.com.au [[ ]] Genesis Software genesis@gsoft.com.au [[ ]] High-speed data acquisition and (GSM mobile) 0411-222-496 [[ ]] realtime instrument control. (ph) +61-8-8267-3493 [[ ]] Unix hardware collector. "Where are your PEZ?" The Tick [[