LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   SL 10; kernel 2.6: parport_pc not loading (https://www.linuxquestions.org/questions/slackware-14/sl-10%3B-kernel-2-6-parport_pc-not-loading-283458/)

ruidh 01-28-2005 04:06 PM

SL 10; kernel 2.6: parport_pc not loading
 
I'm befuddled. And I'm amazed I can't find anyone with the same problem.

I recently upgraded my Slack 10.0 installation to the 2.6 kernel on the CD and my printer stopped working. I can see that /etc/rc.d/rc.modules runs. I can see that the parport section is uncommented and it looks like it should modprobe parport_pc, but this dosn't seem to happen.

I can manually modprobe parport_pc and it works, but it dosn't happen automatically on a reboot. I noticed a few things. the cat /proc/ksyms | grep in rc.modules dosn't work because I don't have a /proc/ksyms. There's a /proc/kallsyms though.

But that should still fail and drop me through to the part of the if which runs /sbin/modprobe parport_pc. /lib/modules/2.6.7/kernel/drivers/parport/parport_pc.o exists.

Thoughts? What's up with the echo "" > /dev/null stuff? Why echo if no one ever sees it?

A chunk of rc.modules for your reference:
Code:

### PC parallel port support ###
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 ]; then
    # 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


linuxgeekery 01-28-2005 04:14 PM

Well, it looks like the module isn't there. Maybe recompile your kernel modules?

egag 01-28-2005 04:18 PM

i think it wouldn't harm to put " /sbin/modprobe parport_pc " outside the "if" statement.
( so it always tries to load it at boot )

egag

ruidh 01-28-2005 08:49 PM

Quote:

Originally posted by egag
i think it wouldn't harm to put " /sbin/modprobe parport_pc " outside the "if" statement.
( so it always tries to load it at boot )

But that would be cheating!

Seriously, I would like to figure this out because there's something going on I'm not understanding.

[some more looking]

Ah, the test is looking for parport_pc.o and the file is actually called parport_pc.ko. I think that this will fix it
s/parport_pc.o/parport_pc.ko/g

I just can't believe that no one has complained about the package on the CD until now.

egag 01-29-2005 06:15 AM

well...the script is written for a 2.4.x kernel and not 2.6.x .

there might be something about this in the /testing dir. on cd.
but i didn't look, i cheated :)

egag

ruidh 01-29-2005 07:33 AM

Quote:

Originally posted by egag
well...the script is written for a 2.4.x kernel and not 2.6.x .

there might be something about this in the /testing dir. on cd.
but i didn't look, i cheated :)

There is a nice README.initrd which was necessary to an 2.6 upgrade.

I guess 10.0 wasn't quite as "2.6 ready" as I expected. I would have been content to stick with a 2.4 kernel, but I have a PCHDTV HD3000 card which needs a 2.6 kernel for its driver.

Okie 01-29-2005 07:37 AM

i run slack 10 and added this line to /etc/modules.conf so it always loads on boot

alias parport_lowlevel parport_pc

ruidh 01-29-2005 07:48 AM

Quote:

Originally posted by Okie
i run slack 10 and added this line to /etc/modules.conf so it always loads on boot

alias parport_lowlevel parport_pc

Yes, but for that to work with a 2.6 kernel, you need to put it in /etc/modprobe.conf. Correct? Isn't modules.conf obsolete in 2.6?

Okie 01-29-2005 07:52 AM

Quote:

Originally posted by ruidh
Yes, but for that to work with a 2.6 kernel, you need to put it in /etc/modprobe.conf. Correct? Isn't modules.conf obsolete in 2.6?
i am unsure about configuring this with a 2.6 kernel have have yet to use it, and am still using a 2.4.kernel...

good point, i guess i better start brushing up on the 2.6 kernel since most distros are moving to the 2.6 series kernels...


All times are GMT -5. The time now is 04:47 AM.