LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 08-10-2003, 02:22 PM   #1
kzito
LQ Newbie
 
Registered: Jun 2003
Location: Preston, UK
Distribution: Red Hat and Linx From Scratch
Posts: 1

Rep: Reputation: 0
Question Trouble getting a printer to work through a PCI parallel port card


Hello freinds,

I am trying to get my printer to work through a newly added PCI parallel port card.
I have read the parport. documentation that came wtih the kernel, the man pages for setpci and lspci, and trawled the net, but seem to have hit a barrier now. The details of my efforts follow:

#
# The distribution is LinuxFromScratch version 3.1/4.0 with
# kernel 2.4.20.
#
# The printer is an Epson Stylus C82 and it works with usb.
# The parallel port does do something because the printer
# make noises and its light blinks when the machine is about to
# shutdown.
#
#
# After physically installng the card, running lspci -vv gave:

00:0b.0 Parallel controller: AFAVLAB Technology Inc TK9902 (prog-if 02 [ECP])
Subsystem: AFAVLAB Technology Inc TK9902
Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Interrupt: pin A routed to IRQ 5
Region 0: I/O ports at c000 [size=8]
Region 1: I/O ports at c400 [size=4]
Capabilities: [a0] Power Management version 1
Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-

#
# The manufacturers instructions said:

1. Load addreses in kernel. Define them as LPT0, 1, and 2 (use default addresses)
Default addresses:
LPT0 - 03BC-03BE
LPT1 - 0378-037A
LPT2 - 0278-027A

2. RedHat 6.0 use version 2.2 kernel or higher
a. Load PCIUTILS using the SETUPPCI command
b. ADD lines:
SETPCI -V -D 14db:2120 0X10.L=0x278
SETPCI -V -D 14db:2120 0X14.L=0x678
#
#
# However I don't know how you do number 1 and for number 2,
# there is no SETUPPCI and instead of SETPCI there is setpci,
# which does not like the above syntax. I understand that 14db
# represents AFAVLAB and 2120 represents TK9902, from the
# fact that lspci -n -vv contains:

00:0b.0 Class 0701: 14db:2120 (prog-if 02)
Subsystem: 14db:2120

#
# Following other instructions from the 'net I edited
# /etc/modules.conf to include:

options parport_pc io=0x378,0xc000 irq=auto,auto

#
# I ran depmod and restarted the machine. The output of dmesg
# contained:

parport0: PC-style at 0x378 [PCSPP,TRISTATE]
parport1: PC-style at 0xc000 (0xc400) [PCSPP,TRISTATE]
lp0: using parport0 (polling).
lp1: using parport1 (polling).

#
# This line is added to the dmesg output after an attempt to print
# with the printer
# connected by the parallel card.

lp1 off-line


I will be so grateful for your help.

Kizito
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Printer and Parallel port dancar Linux - Hardware 4 04-30-2006 10:43 AM
Parallel port printer dtcamargo Linux - Hardware 4 10-31-2004 11:11 PM
I/O parallel port PCI Card (12886 chipset) bobbens Linux - Hardware 0 10-29-2004 01:57 PM
PCI Parallel Port Card Nerox Linux - Hardware 1 08-25-2004 08:48 AM
Zip Drive Help, PCI parallel port dalton9267 Linux - Hardware 0 03-14-2003 01:38 PM


All times are GMT -5. The time now is 12:44 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration