Messages in this thread | | | Date | Tue, 30 Sep 2003 13:03:46 +0200 | From | Takashi Iwai <> | Subject | Re: Re[2]: PROBLEM: ALSA requests module to early, before / is mounted |
| |
At Mon, 29 Sep 2003 17:14:09 +0200, Nikola Knezevic wrote: > > Hello Takashi, > Monday, September 29, 2003, 12:50:00 PM, you wrote: > >> >> Hi, I'm really annoyed to see 'No soundcards found.' in logs:) > >> TI> you didn't build in emu10k1 driver. so, at that stage, there is > >> TI> really no available card :) > >> > >> But I build one. modprobe snd-emu10k1 loads it. > > TI> did you put this module into initrd? > TI> otherwise there is NO way to load the MODULE at that time (before > TI> mounting the root). > > No I haven't. How can I do that?
RTFM :) you can find it in Documentation directory. if you're using mkinitrd, it's even easier.
> >> TI> yep, this should be avoided before root is mounted. > >> But for the time being, it isn't... > TI> right. but it's harmless anyway. just annoying. > > Yes, really annoying.
i thought you're annoyed by the message "no soundcards found". it cannot be solved until you build the emu10k1 into kernel.
> >> >> There is no call for modprobe snd-emu10k1 in > >> >> rc.modules, so after booting I have to call it manually. Yes, I could > >> >> put that call in rc.modules, but isn't it supposed to be called by ALSA? > >> TI> yes, but only if you set up /etc/modprobe.conf correctly to load the > >> TI> modules automatically. > >> TI> at least, you have to specify which card is the first one > >> TI> (snd-card-0). > >> Did that long time ago, problem remains. Also, I'm using devfs. > TI> perhaps that's the problem. > > I can't see why it should be. If I type: > modprobe snd-card-0 > it works OK. > There are some issues about devfs using old modprobe format, and new > kernel requires module-init-tools 0.9.xx, which have a lighter > modprobe.conf. As it seems to me, problem is about calling modules > before / is mounted.
no.
> And I haven't put it in initrd, so it can't be > loaded. I suppose that call couldn't be done sometime later?
of course, the module could be requested later. the ALSA core routine calls request_module("snd-card-0"), if the entry is not present.
basically, you can safely ignore the message "no soundcards found" at the boot time, because it shows only the built-in drivers. the modules can be loaded dynamically if you set up the configuration correctly.
i've never used devfs by myself, so i cannot tell exactly whether it's a devfs problem. but the fact that you can load snd-card-0 module manually implies that the problem lies on auto-loading mechanism.
-- Takashi Iwai <tiwai dot suse.de> ALSA Developer - www.alsa-project.org - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |