View previous topic :: View next topic |
Author |
Message |
snorkel Apprentice
Joined: 14 May 2002 Posts: 206 Location: Milwaukee, WI
|
Posted: Fri Sep 12, 2003 5:59 am Post subject: /dev/dsp turns into a directory everytime I reboot |
|
|
I delete the damn thing, then do a ln -s /dev/sound/dsp /dev/dsp to create the link. After I create the link everything works, i.e. KDE sound, UT2003 etc etc, after I reboot dsp the link is replaced by dsp the dir.
This all started happening after I installed a new kernel, went from gentoo-sources to the gaming sources.
Anyone have any Ideas?
Thanks,
T |
|
Back to top |
|
|
thunder Retired Dev
Joined: 01 Sep 2003 Posts: 164 Location: Wroclaw, PL
|
Posted: Fri Sep 12, 2003 6:54 am Post subject: |
|
|
after boot kernel is creating compiled devices so you have to add to src script rm -rf /dev/dsp and link it to your dsp _________________ Damian Florczyk
Gentoo/NetBSD development lead |
|
Back to top |
|
|
longshot Tux's lil' helper
Joined: 04 Sep 2003 Posts: 90
|
Posted: Fri Sep 12, 2003 12:11 pm Post subject: |
|
|
I also see this behaviour for /dev/dsp, and I see it for /dev/rtc. I'm using 2.6.0-test4 (now 2.6.0-test5).
I've been deleting and linking manually, looking and wating for a better solution.
thunder's explanation is a bit terse for me. Is there configuration for controlling the kernel creating "compiled devices" - its not a term I've seen. I'm surprised others arent seeing/reporting the problem, and I was thinking it must be something narrow that I've done or set somewhere, rather than being widespread. I've spent quite a while trying to sort it out (including comparing all my rc scripts and conf files with those in cvs).
Is adding
rm /dev/dsp
ln -s /dev/sound/dsp /dev/dsp
rm /dev/rtc
ln -s /dev/misc/rtc /dev/rtc
to one of the startup scripts what others are doing?
Use local.start? |
|
Back to top |
|
|
gilesjuk Guru
Joined: 11 Feb 2003 Posts: 412 Location: Staffordshire, UK
|
Posted: Fri Sep 12, 2003 3:50 pm Post subject: DevFS |
|
|
All of you guys need to look at the DevFS, making entries in /dev is a thing of the past now (for Gentoo anyway). It's all contolled by the devfs config files etc... _________________ ^<^>^<^>^
G. Jones
-=-=-=-=-=- |
|
Back to top |
|
|
snorkel Apprentice
Joined: 14 May 2002 Posts: 206 Location: Milwaukee, WI
|
Posted: Fri Sep 12, 2003 5:19 pm Post subject: |
|
|
I have looked at my devfs config files and there is a entry in there to create the dsp file, I don't think that is the problem.
I updated the kernel on another PC and the link to /dev/sound/dsp is being created fine. |
|
Back to top |
|
|
longshot Tux's lil' helper
Joined: 04 Sep 2003 Posts: 90
|
Posted: Fri Sep 12, 2003 8:52 pm Post subject: |
|
|
I likewise have devfs enabled and alias entries for /dev/dsp and /dev/rtc. But they are still being created as directories rather than symlinks. |
|
Back to top |
|
|
Peaceable Frood Guru
Joined: 06 Apr 2003 Posts: 338 Location: New Jersey, USA
|
Posted: Fri Sep 12, 2003 9:21 pm Post subject: |
|
|
DevFS is marked obsolete in the 2.6 kernel so I believe its on automatically or you don't need it anymore. _________________ "Our enemies are innovative and resourceful, and so are we, they never stop thinking about new ways to harm our country and our people, and neither do we." George W. Bush |
|
Back to top |
|
|
Roguelazer Veteran
Joined: 10 Feb 2003 Posts: 1233 Location: San Francisco, CA
|
Posted: Fri Sep 12, 2003 9:36 pm Post subject: |
|
|
No, there's a new one. udev or something like that. Anyone heard of it? (Not me until I was browsing the help in my mm-sources) _________________ Registered Linux User #263260 |
|
Back to top |
|
|
longshot Tux's lil' helper
Joined: 04 Sep 2003 Posts: 90
|
Posted: Sun Sep 14, 2003 10:18 am Post subject: |
|
|
Have a look in /lib/dev-state. See if there is a dsp directory there. There was in mine, I deleted it, thereafter I get a symlink to /dev/sound/dsp. devfs uses /lib/dev-state for changes to /dev which need to be persisted.
I did likewise for rtc, and it fixed most of my problems there also - except that /proc/sys/dev/rtc/max-user-freq isnt created (for mplayer).
Search the forums for dev-state will turn up previous similar problem and suggested solution. |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Sun Sep 14, 2003 8:09 pm Post subject: |
|
|
Moved from Installing Gentoo. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
snorkel Apprentice
Joined: 14 May 2002 Posts: 206 Location: Milwaukee, WI
|
Posted: Wed Sep 17, 2003 2:23 am Post subject: |
|
|
Thanks,
That was the problem Learn something new everyday.
longshot wrote: | Have a look in /lib/dev-state. See if there is a dsp directory there. There was in mine, I deleted it, thereafter I get a symlink to /dev/sound/dsp. devfs uses /lib/dev-state for changes to /dev which need to be persisted.
I did likewise for rtc, and it fixed most of my problems there also - except that /proc/sys/dev/rtc/max-user-freq isnt created (for mplayer).
Search the forums for dev-state will turn up previous similar problem and suggested solution. |
|
|
Back to top |
|
|
|