Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
2.6.4 Strange Modules Problem
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
jamesm
n00b
n00b


Joined: 13 Jun 2003
Posts: 22

PostPosted: Fri Mar 19, 2004 12:09 am    Post subject: 2.6.4 Strange Modules Problem Reply with quote

Hi,

I've upgraded to kernel 2.6.4 (from 2.6.3), both 'plain' sources from kernel.org and I'm having strange problems with my modules.

When the machine boots, all the modules load okay. But some of the devices that are created by those modules arent appearing in the /dev (udev controlled) until I rmmod <module>, modprobe <module>.

Code:

jamesm@gauntlet jamesm $ lsmod
Module                  Size  Used by
intel_agp              16412  1
agpgart                27052  2 intel_agp
evdev                   9088  0
nvidia               2072520  14
ide_cd                 37380  0
cdrom                  35740  1 ide_cd
cryptoloop              4096  0
loop                   13448  1 cryptoloop
rtc                    12616  0
i2o_core               43632  0
b44                    20868  0
hid                    34312  0
uhci_hcd               31376  0
ehci_hcd               24708  0
jamesm@gauntlet jamesm $


Initially it was the nvidia driver doing this. I modified /etc/init.d/xdm script so that it would remove and reload the nvidia module when the xdm_setup function was called, and it worked well.

Now though, it is the ide-cd module that isn't working properly; when the machine has fully booted, there is no /dev/hdc entry.

Code:

cdrecord dev=ATAPI -scanbus


returns no devices found.

If I,

Code:

rmmod cdrom
rmmod ide-cd

insmod ide-cd
insmod cdrom


Everything starts to work!

My grub.conf has the kernel line as:

Code:

kernel (hd0,1)/boot/bzImage-2.6.4 root=/dev/hda9 hdc=ide-cd gentoo=nodevfs vga=794 vesa:ywrap,mtrr


and dmesg does find the DVD+RW:

Code:

hda: FUJITSU MHS2060AT, ATA DISK drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
hdc: PHILIPS DVD+RW SDVD6004, ATAPI CD/DVD-ROM drive
ide1 at 0x170-0x177,0x376 on irq 15


Later into the boot sequence, the following appears:

Code:

hdc: ATAPI 24X DVD-ROM CD-R/RW drive, 8192kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.20


So... anyone have any suggestions?
Back to top
View user's profile Send private message
foton2
Guru
Guru


Joined: 23 Feb 2004
Posts: 347
Location: Prague, Czech Republick

PostPosted: Fri Mar 19, 2004 1:32 am    Post subject: Reply with quote

Why don't you use devfs ? Do you use udev ? Dou you have it configured ?
Back to top
View user's profile Send private message
jamesm
n00b
n00b


Joined: 13 Jun 2003
Posts: 22

PostPosted: Fri Mar 19, 2004 12:26 pm    Post subject: Reply with quote

foton2 wrote:
Why don't you use devfs ? Do you use udev ? Dou you have it configured ?


Oops, think I forgot to mention that ;)

Yep, I'm using udev, and it is working well for all of my other devices (USB mice, mass storage) etc.

And it has been working in the past for the DVD+RW. With the new kernel its stopped working. (But the nvidia module is now working fine..)

Strange :)
Back to top
View user's profile Send private message
dhunt
n00b
n00b


Joined: 11 Oct 2003
Posts: 46
Location: New Zealand

PostPosted: Mon Mar 22, 2004 3:34 am    Post subject: Reply with quote

Yeah I've got the same problem with the nvidia driver using 2.6.4 with udev. Having to unload it then reload it to get the devices created.

Let me know if you find any answers

David
Back to top
View user's profile Send private message
jamesm
n00b
n00b


Joined: 13 Jun 2003
Posts: 22

PostPosted: Mon Mar 22, 2004 3:58 am    Post subject: Reply with quote

dhunt wrote:
Yeah I've got the same problem with the nvidia driver using 2.6.4 with udev. Having to unload it then reload it to get the devices created.

Let me know if you find any answers

David


Well.. after some fiddling, I've found that doing a

Code:

modules-update


at seemingly random times makes things work. Its not really random I guess, everytime I notice this problem occuring, I log in and do a modules-update, reboot and almost like magic things are happy again.

Very Strange!
Back to top
View user's profile Send private message
greml!n
Apprentice
Apprentice


Joined: 29 Mar 2003
Posts: 159

PostPosted: Thu Mar 25, 2004 1:18 am    Post subject: Reply with quote

I'm seeing the exact same problems for my printer and cdrw via scsi. It seems like there is a disconnect between when udev is operating and when the modules are loaded. Anyone? Anyone? Bueller?
Back to top
View user's profile Send private message
abergou
Tux's lil' helper
Tux's lil' helper


Joined: 12 Jun 2002
Posts: 85
Location: Ithaca, NY

PostPosted: Fri Mar 26, 2004 5:16 pm    Post subject: Reply with quote

I am having the same problem. Does anyone have any ideas? Previously it used to work if I at least added the modules to autoload. I read in another thread that several people were having this problem does anyone have any ideas? Thanks!
Back to top
View user's profile Send private message
kongit
n00b
n00b


Joined: 26 Mar 2004
Posts: 35

PostPosted: Fri Mar 26, 2004 8:42 pm    Post subject: Reply with quote

do you get any errors when doing make modules_install ?

I am new to gentoo and I remember having to install a new set of module utils in order to get modules with 2.6 to work right. But maybe gentoo already has the newer ones.

you could of course trick your system by doing the rmmod then insmod in some very late occuring init script.
Back to top
View user's profile Send private message
abergou
Tux's lil' helper
Tux's lil' helper


Joined: 12 Jun 2002
Posts: 85
Location: Ithaca, NY

PostPosted: Fri Mar 26, 2004 8:45 pm    Post subject: Reply with quote

Yep I have the new set of module init scripts. Screwed up a bit there too initially since I had both installed for a while (one should really block the other!) and when I unmerged the old it borked the new one. In either case that's the not problem. Yeah that's a nice hack to insmod in a late init script, but it is a hack -- I thought that udev was supposed to take care of this.
Back to top
View user's profile Send private message
kongit
n00b
n00b


Joined: 26 Mar 2004
Posts: 35

PostPosted: Fri Mar 26, 2004 8:52 pm    Post subject: Reply with quote

I finally gave up on using usb modules and just compiled them into the kernel. I haven't been able to get my printer to work. but that is because lexmark is crazy and I am going to have to do some hardcore editting of their "close-sourced" driver. Alien is a wonderful tool :twisted:
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