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
# 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)
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)
# 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
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.
I will be so grateful for your help.