Return to BSD News archive
Received: by minnie.vk1xwt.ampr.org with NNTP id AA429 ; Sun, 31 Jan 93 14:07:46 EST Path: sserve!manuel.anu.edu.au!munnari.oz.au!spool.mu.edu!olivea!decwrl!csus.edu!netcom.com!alm From: alm@netcom.com (Andrew Moore) Newsgroups: comp.unix.bsd Subject: Re: [386BSD] Parallel port driver? Message-ID: <1993Feb1.182134.12503@netcom.com> Date: 1 Feb 93 18:21:34 GMT References: <1993Feb1.152624.12706@cc.umontreal.ca> Organization: Netcom Online Communications Services (408-241-9760 login: guest) Lines: 31 In article <1993Feb1.152624.12706@cc.umontreal.ca> surprenc@spp2.jsp.umontreal.ca (Surprenant Colin) writes: >Hi, > >I am have some problem configuring the parallel port driver... >I inserted this line in my conf file: > >device lpt1 at isa? port 0x378 irq 7 vector lptintr > >and when making the kernel I get the following: > >locore.o: Undefined symbol _lptintr referenced from text segment >ioconf.o: Undefined symbol _lptdriver referenced from text segment > >hmm? > >There is a lpt.c but no lpt.h that I can include in locore.s >should there be one? if not what should I do so I can link the >kernel...? For starters, an lpt entry is needed in the cdevsw[] table in /sys/i386/i386/conf.c. lpt.c patches and good instructions for installing them are available on agate in ~/unofficial/haug.lpt-driver.patches (I think). If you have other drivers installed, add the cdevsw entry by hand. Don't do like me and add it in the middle: a driver's position in the cdevsw table determines its major device (/dev) number. Finally, once you have Eric Haug's patches installed, you can replace lpt.c with an interruptless driver. This seems to be necessary for printing some binary data. I don't know if it is archived. If not, I will try to send it to agate. -Andrew Moore <alm@netcom.com>