LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-28-2005, 04:06 PM   #1
ruidh
LQ Newbie
 
Registered: Jan 2005
Posts: 24

Rep: Reputation: 15
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
 
Old 01-28-2005, 04:14 PM   #2
linuxgeekery
Member
 
Registered: Jul 2004
Location: Austin, Texas!
Distribution: Gentoo
Posts: 121

Rep: Reputation: 15
Well, it looks like the module isn't there. Maybe recompile your kernel modules?
 
Old 01-28-2005, 04:18 PM   #3
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
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
 
Old 01-28-2005, 08:49 PM   #4
ruidh
LQ Newbie
 
Registered: Jan 2005
Posts: 24

Original Poster
Rep: Reputation: 15
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.
 
Old 01-29-2005, 06:15 AM   #5
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
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
 
Old 01-29-2005, 07:33 AM   #6
ruidh
LQ Newbie
 
Registered: Jan 2005
Posts: 24

Original Poster
Rep: Reputation: 15
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.
 
Old 01-29-2005, 07:37 AM   #7
Okie
Senior Member
 
Registered: Mar 2002
Location: Oklahoma
Posts: 1,154

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

alias parport_lowlevel parport_pc
 
Old 01-29-2005, 07:48 AM   #8
ruidh
LQ Newbie
 
Registered: Jan 2005
Posts: 24

Original Poster
Rep: Reputation: 15
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?
 
Old 01-29-2005, 07:52 AM   #9
Okie
Senior Member
 
Registered: Mar 2002
Location: Oklahoma
Posts: 1,154

Rep: Reputation: 187Reputation: 187
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...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Parport_pc driver not correct for the IT8874 serial port card. jimeotis Linux - Hardware 0 04-19-2005 03:39 PM
Modprobe parport_pc vernman Linux - Hardware 1 08-04-2004 04:54 PM
Loading modules error after loading compiled kernel td0l2 Linux - Newbie 12 07-28-2004 11:10 AM
parport, parport_pc, parport_lowlevel modules loaded, now what?! RAYman2k1 Linux - Newbie 1 12-18-2003 09:13 PM
parport_pc not loaded? mr_smidge Linux - Newbie 4 09-21-2003 01:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration