Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

2.6.4 Strange Modules Problem

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
10 posts • Page 1 of 1
Author
Message
jamesm
n00b
n00b
Posts: 22
Joined: Fri Jun 13, 2003 10:37 am

2.6.4 Strange Modules Problem

  • Quote

Post by jamesm » Fri Mar 19, 2004 12:09 am

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: Select all

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: Select all

cdrecord dev=ATAPI -scanbus
returns no devices found.

If I,

Code: Select all

rmmod cdrom
rmmod ide-cd

insmod ide-cd
insmod cdrom
Everything starts to work!

My grub.conf has the kernel line as:

Code: Select all

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: Select all

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: Select all

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?
Top
foton2
Guru
Guru
User avatar
Posts: 347
Joined: Mon Feb 23, 2004 10:17 pm
Location: Prague, Czech Republick

  • Quote

Post by foton2 » Fri Mar 19, 2004 1:32 am

Why don't you use devfs ? Do you use udev ? Dou you have it configured ?
Top
jamesm
n00b
n00b
Posts: 22
Joined: Fri Jun 13, 2003 10:37 am

  • Quote

Post by jamesm » Fri Mar 19, 2004 12:26 pm

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 :)
Top
dhunt
n00b
n00b
User avatar
Posts: 46
Joined: Sat Oct 11, 2003 4:45 am
Location: New Zealand

  • Quote

Post by dhunt » Mon Mar 22, 2004 3:34 am

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
Top
jamesm
n00b
n00b
Posts: 22
Joined: Fri Jun 13, 2003 10:37 am

  • Quote

Post by jamesm » Mon Mar 22, 2004 3:58 am

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: Select all

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!
Top
greml!n
Apprentice
Apprentice
Posts: 159
Joined: Sat Mar 29, 2003 10:25 pm

  • Quote

Post by greml!n » Thu Mar 25, 2004 1:18 am

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?
Top
abergou
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 85
Joined: Wed Jun 12, 2002 11:53 pm
Location: Ithaca, NY

  • Quote

Post by abergou » Fri Mar 26, 2004 5:16 pm

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!
Top
kongit
n00b
n00b
Posts: 35
Joined: Fri Mar 26, 2004 8:17 pm

  • Quote

Post by kongit » Fri Mar 26, 2004 8:42 pm

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.
Top
abergou
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 85
Joined: Wed Jun 12, 2002 11:53 pm
Location: Ithaca, NY

  • Quote

Post by abergou » Fri Mar 26, 2004 8:45 pm

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.
Top
kongit
n00b
n00b
Posts: 35
Joined: Fri Mar 26, 2004 8:17 pm

  • Quote

Post by kongit » Fri Mar 26, 2004 8:52 pm

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:
Top
Post Reply

10 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic