Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Nov 2001 14:54:26 -0800 (PST)
From:      Julian Elischer <julian@elischer.org>
To:        Ulf Zimmermann <ulf@Alameda.net>
Cc:        hackers@freebsd.org
Subject:   Re: Skeleton pseudo device driver for 4.4-STABLE ?
Message-ID:  <Pine.BSF.4.21.0111121453300.94926-100000@InterJet.elischer.org>
In-Reply-To: <20011112141228.G8046@seven.alameda.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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.<devicename>" 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0111121453300.94926-100000>