View previous topic :: View next topic |
Author |
Message |
Greenfuse n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 01 Aug 2005 Posts: 60 Location: Australia
|
Posted: Thu Jan 05, 2006 1:40 pm Post subject: module lp not loading |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
NeddySeagoon Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/3946266373f47d606a2db3.jpg)
Joined: 05 Jul 2003 Posts: 54850 Location: 56N 3W
|
Posted: Thu Jan 05, 2006 7:46 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Greenfuse n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 01 Aug 2005 Posts: 60 Location: Australia
|
Posted: Fri Jan 06, 2006 1:17 am Post subject: |
|
|
Hi Neddy
Dmesg tells us :
lp: unable to get major 6 |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
NeddySeagoon Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/3946266373f47d606a2db3.jpg)
Joined: 05 Jul 2003 Posts: 54850 Location: 56N 3W
|
Posted: Fri Jan 06, 2006 4:23 pm Post subject: |
|
|
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.
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 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 |
|
![](templates/gentoo/images/spacer.gif) |
Greenfuse n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 01 Aug 2005 Posts: 60 Location: Australia
|
Posted: Sun Jan 08, 2006 6:44 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
NeddySeagoon Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/3946266373f47d606a2db3.jpg)
Joined: 05 Jul 2003 Posts: 54850 Location: 56N 3W
|
Posted: Sun Jan 08, 2006 12:35 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|