Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
module lp not loading
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Greenfuse
n00b
n00b


Joined: 01 Aug 2005
Posts: 60
Location: Australia

PostPosted: Thu Jan 05, 2006 1:40 pm    Post subject: module lp not loading Reply with quote

Hi
Any suggestions on how to deal with a module that won't load? It fails to load on boot or with modprobe
    david # modprobe lp
    FATAL: Error inserting lp (/lib/modules/2.6.13-gentoo/kernel/drivers/char/lp.ko): Input/output error

I am using x86_64 arch on athlon64/Opteron
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54850
Location: 56N 3W

PostPosted: Thu Jan 05, 2006 7:46 pm    Post subject: Reply with quote

Greenfuse,

Look at the end of dmesg as soon as the modprobe has failed, ot may tell you more.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Greenfuse
n00b
n00b


Joined: 01 Aug 2005
Posts: 60
Location: Australia

PostPosted: Fri Jan 06, 2006 1:17 am    Post subject: Reply with quote

Hi Neddy
Dmesg tells us :
    lp: unable to get major 6
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54850
Location: 56N 3W

PostPosted: Fri Jan 06, 2006 4:23 pm    Post subject: Reply with quote

Greenfuse,

You have either got another device driver already controlling major device number 6 (not lp) oe your kernel is broken in a wierd and wonderful way.
Code:
less /usr/src/linux/Documentation/devices.txt
shows that major device 6 is indeed expected to be /dev/lp0 and friends.

Code:
ls -l /dev/
will show your major and minor device numbers on real device files. I Don't have the lp module buily, so I will use /dev/console as my example.
Code:
crw-------  1 root tty     5,   1 Jan  6 15:26 console
shows crw------- which means its a character device that the owner can read and write, noone else has any access.
The device is owned by root and in the tty group.
It has major number 5, minor number 1 and it was created when I started my PC today.

Do you have any /dev/ entries with major number 6 already ?

I suppose you may nave made a kernel with lp built in and not installed a subsequent kernel, then you would be trying to load a driver that was already built in.
Do
Code:
uname -a
This shows the date and time the running kernel was built. Does that correspond to the time and date you actually made the kernel ?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Greenfuse
n00b
n00b


Joined: 01 Aug 2005
Posts: 60
Location: Australia

PostPosted: Sun Jan 08, 2006 6:44 am    Post subject: Reply with quote

Hi Neddy
Sorry about the delay in replying - I was away for most of the weekend. It is strange but the kernel has now loaded the module lp when I booted. I do not know that I have done anything differently today than previously when it did not load. Is there a log file for the boot process that I can look at to try and track down the differences between today and earlier?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54850
Location: 56N 3W

PostPosted: Sun Jan 08, 2006 12:35 pm    Post subject: Reply with quote

Greenfuse,

That depends on your logger. dmesg is not persistent across reboots.
If you have a persistand log it will be in /var/log somewhere
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum