v2.1.47: depmod and lpr/parport confusion

Meino Christian Cramer (mccramer@solfire.ludwigsburg.netsurf.de)
Sun, 27 Jul 1997 18:00:01 -0000 (???)


Hi kernelistics! ;-)
====================

--- THIS IS ONLY A WORKAROUND! ---
--- THIS IS ONLY A WORKAROUND! ---
--- THIS IS ONLY A WORKAROUND! ---

After some kind help from this list, I have got my lpr
running und v2.1.47, but this doesn't not work
"automatically" and needs some handwork:

First of all the symbol pnp_parprobe_init
has to be changed into parprobe_init
in /usr/src/linux/drivers/block/genhd.c
(two occurences).

If you want to build all this parport stuff
into the kernel directly, the task is done
and you can start to compile the kernel and
start it..

If you want to build all that as modules,
you have to fiddle /lib/modules/2.1.47/modules.dep:

After compiling the kernel,
boot the new kernel and kill lpd.
cd into /lib/modules/2.1.47
make a depmode -a and you will got
these lines in modules.dep:

/lib/modules/2.1.47/misc/parport_probe.o: /lib/modules/2.1.47/misc/parport.o
/lib/modules/2.1.47/misc/parport_pc.o: /lib/modules/2.1.47/misc/parport.o
/lib/modules/2.1.47/misc/parport.o:
/lib/modules/2.1.47/misc/lp.o: /lib/modules/2.1.47/misc/parport.o

(and other lines...)

This is wrong, because touching lp will only load parport.o --
the port remains uninitialized.

Change the lines into:

/lib/modules/2.1.47/misc/parport_probe.o: /lib/modules/2.1.47/misc/parport_pc.o
/lib/modules/2.1.47/misc/parport_pc.o: /lib/modules/2.1.47/misc/parport.o
/lib/modules/2.1.47/misc/parport.o:
/lib/modules/2.1.47/misc/lp.o: /lib/modules/2.1.47/misc/parport_probe.o

by hand.

Now all modules are loaded in the right sequence.

Reboot and all lpr-things should work.

I don't know whether this is correct in all cases, but for me it is working.

The only drawback: I got a
Jul 27 18:17:12 solfire kernel: kfree_s: Bad obj 00000000
in the syslog file and at the commandline every time I use
"lpr <file>". But nothing else happens.

Could one give me a hint to make this workaround more "clean"?

I think, there are some things to change for the next
release v2.1.48... ;-)

KEEP HACKING!
meino

----------------------------------
E-Mail: Meino Christian Cramer <mccramer@solfire.ludwigsburg.netsurf.de>
Date: 27-Jul-97
Time: 18:00:01

This message was sent by XFMail
----------------------------------