Can I install Parallel Port Drivers in a later kernel?
-
- Posts: 48
- Joined: Thu 26 Jan 2006, 05:36
- Location: Auckland, New Zealand
Can I install Parallel Port Drivers in a later kernel?
I have an old HP 4Plus parallel port printer of which I am fond. One of my computers does not have a parallel port and so I have used a cheap PCI parallel port card and with the addition of a file in /etc/modprobe.d this works well with the 2.6.32 kernel.
I tried the same thing on this computer with a later Puppy (Saluki) using the 3.2.8 kernel and it does not work because there are no kernel parport drivers . Also explains why it works in Linux Mint 10 but not 11.
My question is, can they be added using insmod? Bit out of my depth about here.
Only other option is to get a network adaptor for the printer.
Thanks.
I tried the same thing on this computer with a later Puppy (Saluki) using the 3.2.8 kernel and it does not work because there are no kernel parport drivers . Also explains why it works in Linux Mint 10 but not 11.
My question is, can they be added using insmod? Bit out of my depth about here.
Only other option is to get a network adaptor for the printer.
Thanks.
I tested this in Saluki 023 on a machine with a parallel port. Running "lsmod" confirmed that both the parport and parport-pc modules had been loaded automatically.
I then ran "modprobe lp" and it loaded. However, with CUPS 1.3.11, you don't need this step - CUPS will load it for you if you ask to install a parallel port printer.
I then ran "modprobe lp" and it loaded. However, with CUPS 1.3.11, you don't need this step - CUPS will load it for you if you ask to install a parallel port printer.
-
- Posts: 48
- Joined: Thu 26 Jan 2006, 05:36
- Location: Auckland, New Zealand
Solved
Thank you so much!
Have just printed a test page.
The 4 Plus dates from an era when printers were made to last. Mine got it's fuser jammed recently with a broken gear tooth and when I pulled it apart found how well it was made. Found a local printer guy that had cut his teeth on these and he replaced the fuser and the nylon gear that had got damaged by the jammed fuser and put in new exit rollers for 120 nzd.
So great to know it is not obsolete.
Have just printed a test page.
The 4 Plus dates from an era when printers were made to last. Mine got it's fuser jammed recently with a broken gear tooth and when I pulled it apart found how well it was made. Found a local printer guy that had cut his teeth on these and he replaced the fuser and the nylon gear that had got damaged by the jammed fuser and put in new exit rollers for 120 nzd.
So great to know it is not obsolete.
-
- Posts: 48
- Joined: Thu 26 Jan 2006, 05:36
- Location: Auckland, New Zealand
Unfortunately my joy was misplaced! I have two computers both with Saluki but one with an original parallel port and the other with a parallel port card.
What you suggested worked fine on the machine with a parallel port. Cups 1.3.11 brought up the LPT option and it worked but it was working anyway. On the machine with the ide parallel port card, lsmod gave:
parport_pc used by 0
parport used by 2 parport_pc,lp
lp used by 0
I used modprobe lp and it brought up a warning about the file I had inserted in /etc/ modprobe.d called parport_pc.conf with the contents
options parport_pc=0xb800 and said it was ignoring this line.
When I went to install the printer it did not bring up the LPT option.
What you suggested worked fine on the machine with a parallel port. Cups 1.3.11 brought up the LPT option and it worked but it was working anyway. On the machine with the ide parallel port card, lsmod gave:
parport_pc used by 0
parport used by 2 parport_pc,lp
lp used by 0
I used modprobe lp and it brought up a warning about the file I had inserted in /etc/ modprobe.d called parport_pc.conf with the contents
options parport_pc=0xb800 and said it was ignoring this line.
When I went to install the printer it did not bring up the LPT option.
Do you need this options file at all? I believe that the standard parallel port setup is
Remove the options file, reboot and run "dmesg | grep par". What info do you get about the card?
Code: Select all
io=0x387 irq=7
-
- Posts: 48
- Joined: Thu 26 Jan 2006, 05:36
- Location: Auckland, New Zealand
The file in modprobe.d was suggested in
http://ubuntuforums.org/archive/index.p ... 29616.html
and this worked with Mint or Wary ie with earlier 2.6.32 or 2.6.35 kernels with parallel port drivers.
I deleted this and the result of dmesg | grep par is:
0.103187]: 3 comparators, 32 bit 25.000000MHz counter.
http://ubuntuforums.org/archive/index.p ... 29616.html
and this worked with Mint or Wary ie with earlier 2.6.32 or 2.6.35 kernels with parallel port drivers.
I deleted this and the result of dmesg | grep par is:
0.103187]: 3 comparators, 32 bit 25.000000MHz counter.
Run "lspci -nn". What are the [vendor:product] ID codes for the card?
Run "lspci -v" and confirm that the address 0xb800 is still valid for the card.
Try the following set of commands
Run "lspci -v" and confirm that the address 0xb800 is still valid for the card.
Try the following set of commands
Code: Select all
rmmod lp
rmmod parport_pc
modprobe parport_pc io=0xb800
dmesg | tail
modprobe lp
dmesg | tail
Last edited by rcrsn51 on Sun 07 Oct 2012, 21:49, edited 1 time in total.
-
- Posts: 48
- Joined: Thu 26 Jan 2006, 05:36
- Location: Auckland, New Zealand
-
- Posts: 48
- Joined: Thu 26 Jan 2006, 05:36
- Location: Auckland, New Zealand
Ok I have assumed parport_pc as before and the outputs from the two dmsg | tail entries were as follows:
dmesg | tail
[ 129.830844] IT8726 SuperIO detected.
[ 129.832621] lp: driver loaded but no devices found
[ 130.355438] vattery-acpitoo[4518]: segfault at 0 ip b6d4e41c sp bfbb650c error 4 in libc-2.10.1.so[b6d20000+13a000]
[ 236.009724] forcedeth 0000:00:07.0: eth0: link up
[ 369.846030] lp: driver loaded but no devices found
[ 440.642949] parport0: PC-style at 0xb800, irq 646 [PCSPP,TRISTATE]
[ 440.642957] parport0: irq 646 in use, resorting to polled operation
[ 440.723387] lp0: using parport0 (polling).
[ 440.723391] lp0: console ready
[ 459.846531] lp0 off-line
and the second one:
# modprobe lp
# dmesg | tail
[ 129.830844] IT8726 SuperIO detected.
[ 129.832621] lp: driver loaded but no devices found
[ 130.355438] vattery-acpitoo[4518]: segfault at 0 ip b6d4e41c sp bfbb650c error 4 in libc-2.10.1.so[b6d20000+13a000]
[ 236.009724] forcedeth 0000:00:07.0: eth0: link up
[ 369.846030] lp: driver loaded but no devices found
[ 440.642949] parport0: PC-style at 0xb800, irq 646 [PCSPP,TRISTATE]
[ 440.642957] parport0: irq 646 in use, resorting to polled operation
[ 440.723387] lp0: using parport0 (polling).
[ 440.723391] lp0: console ready
[ 459.846531] lp0 off-line
dmesg | tail
[ 129.830844] IT8726 SuperIO detected.
[ 129.832621] lp: driver loaded but no devices found
[ 130.355438] vattery-acpitoo[4518]: segfault at 0 ip b6d4e41c sp bfbb650c error 4 in libc-2.10.1.so[b6d20000+13a000]
[ 236.009724] forcedeth 0000:00:07.0: eth0: link up
[ 369.846030] lp: driver loaded but no devices found
[ 440.642949] parport0: PC-style at 0xb800, irq 646 [PCSPP,TRISTATE]
[ 440.642957] parport0: irq 646 in use, resorting to polled operation
[ 440.723387] lp0: using parport0 (polling).
[ 440.723391] lp0: console ready
[ 459.846531] lp0 off-line
and the second one:
# modprobe lp
# dmesg | tail
[ 129.830844] IT8726 SuperIO detected.
[ 129.832621] lp: driver loaded but no devices found
[ 130.355438] vattery-acpitoo[4518]: segfault at 0 ip b6d4e41c sp bfbb650c error 4 in libc-2.10.1.so[b6d20000+13a000]
[ 236.009724] forcedeth 0000:00:07.0: eth0: link up
[ 369.846030] lp: driver loaded but no devices found
[ 440.642949] parport0: PC-style at 0xb800, irq 646 [PCSPP,TRISTATE]
[ 440.642957] parport0: irq 646 in use, resorting to polled operation
[ 440.723387] lp0: using parport0 (polling).
[ 440.723391] lp0: console ready
[ 459.846531] lp0 off-line
Code: Select all
[ 459.846531] lp0 off-line
If you run the same set of commands on a kernel 2.x Puppy, do you get something different?
-
- Posts: 48
- Joined: Thu 26 Jan 2006, 05:36
- Location: Auckland, New Zealand
I could not get the Wary terminal to copy the output. So frustrating. I believe there may be a way but could not find it.
I have done a screen copy using mtpaint and it is attached.
On /lib/modules/2.6.xx/kernel/drivers/parport there are three drivers listed:
parport_cs.ko, parport_pc.ko, and parport_serial.ko whereas 3.2.8 kernel is missing that parport entry.
I have done a screen copy using mtpaint and it is attached.
On /lib/modules/2.6.xx/kernel/drivers/parport there are three drivers listed:
parport_cs.ko, parport_pc.ko, and parport_serial.ko whereas 3.2.8 kernel is missing that parport entry.
- Attachments
-
- terminal.png
- (66.84 KiB) Downloaded 634 times
-
- Posts: 48
- Joined: Thu 26 Jan 2006, 05:36
- Location: Auckland, New Zealand
-
- Posts: 48
- Joined: Thu 26 Jan 2006, 05:36
- Location: Auckland, New Zealand