[vox-tech] Slack 10 print problem solved
Ken Bloom
kabloom at ucdavis.edu
Wed Dec 1 22:44:42 PST 2004
On Wed, 1 Dec 2004 20:59:29 -0800
Bill Wells <hammer29 at sbcglobal.net> wrote:
> On Wednesday 01 December 2004 10:42 am, Shwaine wrote:
> > On Tue, 30 Nov 2004, Bill Wells wrote:
> > > On Monday 29 November 2004 11:32 am, Shwaine wrote:
> > >> #### Parallel printer support ###
> > >> if cat /proc/ksyms | grep "\[lp\]" 1> /dev/null 2> /dev/null ; then
> > >> echo "lp support built-in, not loading module" > /dev/null
> > >> else
> > >> if [ -r /lib/modules/$RELEASE/misc/lp.o \
> > >> -o -r /lib/modules/$RELEASE/misc/lp.o.gz \
> > >> -o -r /lib/modules/$RELEASE/kernel/drivers/char/lp.o \
> > >> -o -r /lib/modules/$RELEASE/kernel/drivers/char/lp.o.gz ];
> > >> then /sbin/modprobe lp
> > >> fi
> > >> fi
> > >>
> > >> Note the line /sbin/modprobe lp. If it is not working on your system,
> > >> then the if statement to fine the module is failing for some reason.
> > >> RELEASE is set to uname -r. I am still using the default kernel and
> > >> kernel modules that came with Slackware and it works fine. The module
> > >> is found in /lib/modules/2.4.26/kernel/drivers/char/lp.o.gz.
> > >
> > > I am running the 2.6.7 kernel
> >
> > Well, that answers the questions. I have one box with the 2.6.7 kernel,
> > using the kernel modules package including on disk 2 of the Slackware
> > 10.0 set. Assuming that is what you have, the problem is with the if
> > statement in /etc/rc.d/rc.modules. The filename for the module is lp.ko,
> > not lp.o. You need to modify it to thusly to keep compatability with the
> > 2.4.x kernel series:
> >
> > #### Parallel printer support ###
> > if cat /proc/ksyms | grep "\[lp\]" 1> /dev/null 2> /dev/null ; then
> > echo "lp support built-in, not loading module" > /dev/null
> > else
> > if [ -r /lib/modules/$RELEASE/misc/lp.o \
> > -o -r /lib/modules/$RELEASE/misc/lp.o.gz \
> > -o -r /lib/modules/$RELEASE/kernel/drivers/char/lp.o \
> > -o -r /lib/modules/$RELEASE/kernel/drivers/char/lp.o.gz \
> > -o -r /lib/modules/$RELEASE/kernel/drivers/char/lp.ko \
> > -o -r /lib/modules/$RELEASE/kernel/drivers/char/lp.ko.gz]; then
> > /sbin/modprobe lp
> > fi
> > fi
> >
> > Actually, I'm not even sure if the lp.ko.gz line is required. I haven't
> > much kept up on the ins and outs of modules in the 2.6 series. But
> > definately the lp.ko line will be needed or the if statement will fail
> > and it won't even try to modprobe lp.
>
> sorry . . . don't work for me. Here is the applicable section of my
> rc.modules file. notice that I also changed the parallel port support
> section to reflect the same file name difference in the 2.6.7 kernel.
>
> if there is a typo, I haven't been able to see it. ergo, I have cut and
> pasted it directly from the file. if I send print jobs to the printer, I
> get no output, then when I modprobe lp and or parport_pc, all jobs in the
> queue begin to print.
>
> tis perplexing. I can live with the modprobe calls in rc.local, I guess it
> is just not elegant.
>
> #### PC parallel port support ###
> tupport ###
> if cat /proc/ksyms | grep "\[parport_pc\]" 1> /dev/null 2> /dev/null ; then
> echo "parport0 is built-in, not loading module" > /dev/null
> else
> if [ -r /lib/modules/$RELEASE/misc/parport_pc.o \
> -o -r /lib/modules/$RELEASE/misc/parport_pc.o.gz \
> -o -r /lib/modules/$RELEASE/kernel/drivers/parport/parport_pc.o \
> -o -r /lib/modules/$RELEASE/kernel/drivers/parport/parport_pc.o.gz
missing a backslash at the end of the line here.
> -o -r /lib/modules/$RELEASE/kernel/drivers/parport/parport_pc.ko\
> -o
> -r /lib/modules/$RELEASE/kernel/drivers/parport/parport_pc.k0.gz ]; then
better not let this line wrap. otherwise, you need a backslash after the -o
> # Generic setup example:
> /sbin/modprobe parport_pc
> # Hardware specific setup example (required for PLIP and better
> # performance in general):
> /sbin/modprobe parport_pc io=0x378 irq=7
> fi
> fi
>
>
> #### Parallel printer support ###
> if cat /proc/ksyms | grep "\[lp\]" 1> /dev/null 2> /dev/null ; then
> echo "lp support built-in, not loading module" > /dev/null
> else
> if [ -r /lib/modules/$RELEASE/misc/lp.o \
> -o -r /lib/modules/$RELEASE/misc/lp.o.gz \
> -o -r /lib/modules/$RELEASE/kernel/drivers/char/lp.o \
> -o -r /lib/modules/$RELEASE/kernel/drivers/char/lp.o.gz \
> -o -r /lib/modules/$RELEASE/kernel/drivers/char/lp.ko \
> -o -r /lib/modules/$RELEASE/kernel/drivers/char/lp.ko.gz ]; then
> /sbin/modprobe lp
> fi
> fi
>
> ### Parallel port IP ###
> #/sbin/modprobe plip
>
> ### Filesystem Quota support ###
>
> > _______________________________________________
> > vox-tech mailing list
> > vox-tech at lists.lugod.org
> > http://lists.lugod.org/mailman/listinfo/vox-tech
> _______________________________________________
> vox-tech mailing list
> vox-tech at lists.lugod.org
--
I usually have a GPG digital signature included as an attachment.
See http://www.gnupg.org/ for info about these digital signatures.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://ns1.livepenguin.com/pipermail/vox-tech/attachments/20041201/224a5e7e/attachment.bin
More information about the vox-tech
mailing list