Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Jul 2001 15:17:12 -0700
From:      Jin Guojun <j_guojun@lbl.gov>
To:        mike@FreeBSD.org
Cc:        freebsd-bugs@FreeBSD.org
Subject:   Re: i386/14135: lpt1 nolonger exists after 3.2-RELEASE
Message-ID:  <3B59FF68.B58EB81F@lbl.gov>
References:  <200107210201.f6L21HV62100@freefall.freebsd.org>

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3B59FF68.B58EB81F>