From owner-freebsd-bugs Sat Jul 21 15:15:26 2001 Delivered-To: freebsd-bugs@freebsd.org Received: from adsl-63-198-35-122.dsl.snfc21.pacbell.net (adsl-63-198-35-122.dsl.snfc21.pacbell.net [63.198.35.122]) by hub.freebsd.org (Postfix) with ESMTP id BCBC037B405; Sat, 21 Jul 2001 15:15:22 -0700 (PDT) (envelope-from j_guojun@lbl.gov) Received: from lbl.gov (localhost [127.0.0.1]) by adsl-63-198-35-122.dsl.snfc21.pacbell.net (8.11.3/8.11.3) with ESMTP id f6LMHCL01210; Sat, 21 Jul 2001 15:17:13 -0700 (PDT) (envelope-from j_guojun@lbl.gov) Message-ID: <3B59FF68.B58EB81F@lbl.gov> Date: Sat, 21 Jul 2001 15:17:12 -0700 From: Jin Guojun X-Mailer: Mozilla 4.76 [en] (X11; U; FreeBSD 4.3-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: mike@FreeBSD.org Cc: freebsd-bugs@FreeBSD.org Subject: Re: i386/14135: lpt1 nolonger exists after 3.2-RELEASE References: <200107210201.f6L21HV62100@freefall.freebsd.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org mike@FreeBSD.org wrote: > Synopsis: lpt1 nolonger exists after 3.2-RELEASE > > State-Changed-From-To: feedback->closed > State-Changed-By: mike > State-Changed-When: Fri Jul 20 19:00:54 PDT 2001 > State-Changed-Why: > > Timeout; no response from originator. > > http://www.FreeBSD.org/cgi/query-pr.cgi?pr=14135 I think you have missed the replied message -- ------------------ Response Message ------------------ > In message <200106101944.f5AJiN905505@portnoy.lbl.gov>, Jin Guojun writes: > >. > >If another ISA parallel board is installed, this new board becomes port0 at > >0x3BC, and the onboard becomes port-1 at 0x378. > > Ok, then I can partially understand why it might fail, because the > IRQ will almost certainly be wrong. The default line in the config > file says to use IRQ 7 for lpt0, but normally IRQ 7 is used by the > 0x378 port. > > To start with, make sure that the two ports are using different IRQs; > I'd suggest IRQ 7 for the 0x378 one, and IRQ 5 for 0x3bc. Then comment > out the existing 'ppc0' line in the kernel config, and add these two: > > device ppc0 at isa? port IO_LPT3 irq 5 > device ppc1 at isa? port IO_LPT1 irq 7 This works. > > > In FreeBSD, the names IO_LPT1, IO_LPT2, IO_LPT3 correspond to the > addresses 0x378, 0x278, 0x3bc respectively. The BIOS will choose > the port names according to which of 0x3bc, 0x378, 0x278 are present, > in that order, so there is some room for confusion! > > It does seem that FreeBSD's probe code is less than ideal in this > case, but the BIOS does not provide any IRQ hints so it may be > difficult to fix. Add above configuration information with explaination into ppc(4) manpage will help users to build custom kernel for this case. The irq 5 may vary from case to case for IO_LPT3 line. Thanks, To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message