*BSD News Article 27594


Return to BSD News archive

Newsgroups: comp.os.386bsd.questions
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!elroy.jpl.nasa.gov!swrinde!emory!cs.utk.edu!martha.utcc.utk.edu!martha.utcc.utk.edu!frank
From: frank@martha.utcc.utk.edu (frank segner)
Subject: Re: Can't compile kernal for AST 4 port
Message-ID: <1994Feb20.202956.3842@martha.utcc.utk.edu>
Sender: usenet@martha.utcc.utk.edu (USENET News System)
Organization: ifan (inst. for appl. nonsense)
X-Newsreader: Tin 1.1 PL3
References: <1994Feb20.083806.29690@nodecg.ncc.telecomwa.oz.au>
Date: Sun, 20 Feb 1994 20:29:56 GMT
Lines: 56

tdwyer@nodecg.ncc.telecomwa.oz.au (Terry Dwyer 4915161) writes:
: Nate Williams (nate@bsd.coe.montana.edu) wrote:
: : In article <2jqhr1$psq@itu1.sun.ac.za>,
: : Ernst J du Toit <ernstjdt@itu.sun.ac.za> wrote:
: : >I'm having a problem compiling the AST 4 port card into the kernal
: : >for FreeBSD 1.02.
: : >
: : >The compile goes OK, but when I reboot, only the first port is
: : >found and then the scan for the other three is skipped because
: : >the scan routine reports an interrupt clash for the shared INT.
: 
: : Is your kernel compiled with the options COM_MULTIPORT & COM_BIDIR in
: : it?
: 
: 
: You need COM_MULTIPORT at least, COM_BIDIR if you want to be able to
: use the dial-in/dial-out port pair.
: 
: Have you commented out the code that checks for multiple IRQ's in
: the system's config file?  If you have and also specified an IRQ on
: each of the sio port config lines this may be the problem.  You only 
: need the IRQ specified once, on the first port for the card.
: 

you have to disable the irq-conflict check in /sys/i386/isa/isa.c
something like:

#if 0           /*    !!! disabled because it breaks multiport-support !!!  */
                /*
                 * Check for IRQ conflicts.
                 */
                if(tmpdvp->id_irq) {
                        if (tmpdvp->id_irq == dvp->id_irq) {
                                conflict(dvp, tmpdvp, ffs(dvp->id_irq) - 1,
                                        "irq", "%d");
                                status = 1;
                        }
                }
#endif

or as a diff to freebsd release isa.c 

ifan_ttyp3_/sys/i386/isa> diff isa.c.release isa.c
149a150
> #if 0		/*    !!! removed because it breaks multiport-support !!!  */
159a161
> #endif


so long,
           frank


--
frank@martha.utk.edu                  | The only Word is Silence.
frank@ifan.knox.tn.us                 | (aleister crowley, the book of lies, 5)