From owner-freebsd-hackers Mon Nov 12 15: 0:30 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from InterJet.elischer.org (c421509-a.pinol1.sfba.home.com [24.7.86.9]) by hub.freebsd.org (Postfix) with ESMTP id 6711437B416 for ; Mon, 12 Nov 2001 15:00:21 -0800 (PST) Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id OAA95237; Mon, 12 Nov 2001 14:54:27 -0800 (PST) Date: Mon, 12 Nov 2001 14:54:26 -0800 (PST) From: Julian Elischer To: Ulf Zimmermann Cc: hackers@freebsd.org Subject: Re: Skeleton pseudo device driver for 4.4-STABLE ? In-Reply-To: <20011112141228.G8046@seven.alameda.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG errr try the 'device driver' you are making a real device driver, not a pseudo driver.. (the pseudo driver should go away I think...) On Mon, 12 Nov 2001, Ulf Zimmermann wrote: > On Mon, Nov 12, 2001 at 01:36:16PM -0800, Julian Elischer wrote: > > Try the one from -current.. > > If it works maybe it should be MFC'd > > Nope, more or less same stuff: > > On 4.4-STABLE: > > # \$FreeBSD: src/share/examples/drivers/make_pseudo_driver.sh,v 1.5.2.1 2001/07/25 15:56:09 dd Exp $" > > From a fresh cvsuped -current: > > # \$FreeBSD: src/share/examples/drivers/make_pseudo_driver.sh,v 1.6 2001/05/01 09:14:45 schweikh Exp $" > > Last modification on -current is longer ago then on -STABLE. Both have the same symtons: > > playtoy root examples/drivers # sh make_pseudo_driver.sh els > files.ELS: `device-driver' flag obsolete. > make: don't know how to make depend. Stop > make: don't know how to make els.o. Stop > make: no target to make. > > Files created by the script: > > /usr/src/sys/i386/conf/ELS > /usr/src/sys/i386/conf/files.ELS > > Diff of ELS to GENERIC: > > 1,3d0 > < # Configuration file for kernel type: ELS > < ident ELS > < # $FreeBSD: src/share/examples/drivers/make_pseudo_driver.sh,v 1.6 2001/05/01 09:14:45 schweikh Exp $" > 4a2 > > # GENERIC -- Generic kernel configuration file for FreeBSD/i386 > 19a18 > > # $FreeBSD: src/sys/i386/conf/GENERIC,v 1.246.2.35 2001/09/27 17:43:06 alfred Exp $ > 25a25 > > ident GENERIC > 251,253d250 > < # trust me, you'll need this > < options DDB > < device els 4 # might as well allow 4 of them > > Contents of files.ELS: > > dev/els.c optional els device-driver > > > > > julian > > > > On Mon, 12 Nov 2001, Ulf Zimmermann wrote: > > > > > I looked at /usr/share/examples/drivers/make_pseudo_driver.sh but it > > > seems to be a bit out of date. Running it, it creates a file > > > "files." in /usr/src/sys/i386/conf, where "files" doesn't > > > exists there anymore. It also adds "device-driver" at the end of > > > line which is obsolete as far I can tell. > > > > > > Anyone wanna give me a pointer at what to look at for a skeleton > > > driver ? I got finaly an Digi Etherlite unit and want to see if > > > I can port the linux driver. > > > > > > -- > > > Regards, Ulf. > > > > > > --------------------------------------------------------------------- > > > Ulf Zimmermann, 1525 Pacific Ave., Alameda, CA-94501, #: 510-865-0204 > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > > with "unsubscribe freebsd-hackers" in the body of the message > > > > > > > > > -- > Regards, Ulf. > > --------------------------------------------------------------------- > Ulf Zimmermann, 1525 Pacific Ave., Alameda, CA-94501, #: 510-865-0204 > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message