Date: Tue, 5 Sep 2000 18:29:23 +0100 From: Mark Ovens <marko@freebsd.org> To: amg <ursa@cris.com> Cc: questions@freebsd.org Subject: Re: printer prpblems Message-ID: <20000905182923.D254@parish> In-Reply-To: <39B4060F.41C67EA6@cris.com>; from ursa@cris.com on Mon, Sep 04, 2000 at 04:29:03PM -0400 References: <39B3DAA1.794BDF32@cris.com> <20000904182824.C254@parish> <39B4060F.41C67EA6@cris.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Sep 04, 2000 at 04:29:03PM -0400, amg wrote: > Mark: > > Thanks for your prompt reply. > I changed the config file accordingly, > however, there still is not kernel support > for the lpt? device. Any other ideas?? > Not really, sorry. The error you see at boot: ppc0: cannot reserve I/O port range comes from /usr/src/sys/i386/isa/pcf.c:157 /* IO port is mandatory */ pcf->res_ioport = bus_alloc_resource(pcfdev, SYS_RES_IOPORT, &pcf->rid_ioport, 0ul, ~0ul, IO_PCFSIZE, RF_ACTIVE); if (pcf->res_ioport == 0) { device_printf(pcfdev, "cannot reserve I/O port range\n"); goto error; } but as to the cause, especially since it worked in earlier versions of FreeBSD, I've no idea. BTW, I've put -questions back in the Cc:. It's always a good idea not to remove the mailing list from the Cc: in case the person who you replied to is unable to solve your problem, as is the case here. Others will assume that you have fixed the problem if they don't see the messages. Hopefully someone else will jump in and help out here. > > august > ursa@cris.com > > > > > > Mark Ovens wrote: > > > > On Mon, Sep 04, 2000 at 01:23:45PM -0400, amg wrote: > > > Questions: > > > > > > Version: FreeBSD 4.1 CDROM > > > > > > Hardwar: IBM PPro 200MHz 64MB Ram > > > > > > Symptomes: Printer not functioning > > > > > > Attached: dmesg.out - output of dmesg > > > KERNEL_MAX1 - kernel config file > > > dev.files - lpt devices in /dev > > > > > > > > > When I recently switched from 2.2.8 to 4.1, the > > > printer no longer prints. When issuing the > > > following commands, the following output appears: > > > > > > "cat myfile > /dev/lpt0" yields: > > > > > > ksh: cannot create /dev/ltp0: Device not configured > > > > > > "lpr myfile" produces no error msg to the screen > > > but NO printer output either. > > > > > > As far as I know, I have followd the directions in the > > > "handbook". > > > > > > I see no mention of lpt? in the output of dmesg, which > > > leads me to believe that there is not kernel support. > > > However, I have added printer support to the kernel > > > config file and rebuilt the kernel, twice, with the > > > same results, see attached files. > > > > > > Additionally, there was not support for lpt? in the > > > GENERIC kernel. > > > > > > I'd appreciate any wisdom on this, as I need to be > > > able to print any number of files. > > > > > > > > > august > > > ursa@cris.com > > > > [snip] > > > > > > > > # Parallel port > > > device ppc0 at isa? irq 7 > > > device ppbus # Parallel port bus (required) > > > device lpt # Printer > > > device lpt0 at isa? port? tty irq 7 vector lptintr > > > ##device plip # TCP/IP over parallel > > > ##device ppi # Parallel port interface device > > > #device vpo # Requires scbus and da > > > > > > > Try removing the ``device lpt0'' line and uncommenting the ``device > > ppi'' line. Here's what I have in my config file and it works fine (HP > > 610C): > > > > # Parallel port > > device ppc0 at isa? irq 7 > > device ppbus # Parallel port bus (required) > > device lpt # Printer > > device plip # TCP/IP over parallel > > device ppi # Parallel port interface device > > > > -- > > 4.4 - The number of the Beastie > > ________________________________________________________________ > > 51.44°N FreeBSD - The Power To Serve http://www.freebsd.org > > 2.057°W My Webpage http://ukug.uk.freebsd.org/~mark > > mailto:marko@freebsd.org http://www.radan.com > > -- > -August - [ursa@cris.com] > "I have the heart of a child; I keep it in a jar on my desk." -- 4.4 - The number of the Beastie ________________________________________________________________ 51.44°N FreeBSD - The Power To Serve http://www.freebsd.org 2.057°W My Webpage http://ukug.uk.freebsd.org/~mark mailto:marko@freebsd.org http://www.radan.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000905182923.D254>