Using Gentoo PPC 1.4 pre 2 During the initial install (Stage 1-2), the devices for audio did not get created properly. When I try to run the MAKEDEV script the following errors occur: crayzee root # cd /dev/ crayzee dev # ./MAKEDEV crayzee dev # ./MAKEDEV audio mv: cannot move `mixer-' to `mixer': Operation not permitted mv: cannot move `sequencer-' to `sequencer': Operation not permitted mv: cannot move `midi00-' to `midi00': Operation not permitted mv: cannot move `dsp-' to `dsp': Operation not permitted mv: cannot move `audio-' to `audio': Operation not permitted mv: cannot move `sndstat-' to `sndstat': Operation not permitted mv: cannot move `mixer1-' to `mixer1': Operation not permitted mv: cannot move `midi01-' to `midi01': Operation not permitted mv: cannot move `dsp1-' to `dsp1': Operation not permitted mv: cannot move `audio1-' to `audio1': Operation not permitted mv: cannot move `midi02-' to `midi02': Operation not permitted mv: cannot move `midi03-' to `midi03': Operation not permitted mv: cannot move `mpu401data-' to `mpu401data': Operation not permitted mv: cannot move `mpu401stat-' to `mpu401stat': Operation not permitted mv: cannot move `midi0-' to `midi0': Operation not permitted mv: cannot move `rmidi0-' to `rmidi0': Operation not permitted mv: cannot move `smtpe0-' to `smtpe0': Operation not permitted mv: cannot move `midi1-' to `midi1': Operation not permitted mv: cannot move `rmidi1-' to `rmidi1': Operation not permitted mv: cannot move `smtpe1-' to `smtpe1': Operation not permitted mv: cannot move `midi2-' to `midi2': Operation not permitted mv: cannot move `rmidi2-' to `rmidi2': Operation not permitted mv: cannot move `smtpe2-' to `smtpe2': Operation not permitted mv: cannot move `midi3-' to `midi3': Operation not permitted mv: cannot move `rmidi3-' to `rmidi3': Operation not permitted mv: cannot move `smtpe3-' to `smtpe3': Operation not permitted crayzee dev #
this happens on x86 too ;)
It seems to me that this may be somehow related to devfs. If devfs is already mounted it does not allow you to manually replace existing devfs entries. If you have to audio entries you musht make sure you have the appropriate options selected in your kernel. See the PPC FAQ for more details
thats really not the best solution ... people who want to add their own devices via MAKEDEV are unable to (i personally needed to add some for my raid devices ...) gerk: since this isnt a ppc prob i dont know if you wish to tackle it ...
it's not 'tackleable' in that sense If you want/need to add entries it has to be done thru the devfsd.conf setup and not with MAKEDEV, this is the issue here. You can't create nodes inside devfs manually afaik
i really think we should have a doc or FAQ or something on this ... give it to docs-team to investigate ? (i for one have no idea how to utilize devfs ... its a new thing for many ppl sine by default most distro's dont utilize it)
Yep docs-team may be able tow riteup sometihng I guess, I don't know devfs super well either, but there are some good hotwto's out there for it afaik also if you had to make custom /dev entries things may not have been setup right somehow, from my experiience devfs 'just works' for all your devs, if they show up they get an entry (then again I don't use raids so hehe )
well i needed to create /dev/mdX nodes so that the filesystem could group the hd[e,f,g,h] together into 1 device for mounting ...
Seo: Please look into this and write up a guide if needed. Thanks, //ZhEN
This must be handed to someone who knows this matter well in the docs-team, and i am reassigning this bug to docs-team.. i agree that we need a devfs guide. J.
Chiguire - Do you know anything about this? If not, please investigate, as this really needs done. Thanks, //ZhEN
see also bug 11693. that is why the initial problem reported happened (unable to MAKEDEV). the install guide has been fixed. but we still need a devfs guide.
Sure we do ... i'm afraid i'll have to pass on this one as i'm not familiar with devfs.
However ... there is a good howto at http://www.atnf.csiro.au/people/rgooch/linux/docs/devfs.html
This one has been sitting here for too long. I'll hack up a guide.
Intermediate document can be found at http://dev.gentoo.org/~swift/devfs-guide.html, comments are always welcome.
Created attachment 16716 [details] Devfs Guide, XML code
Congratulations! Looks quite comprehensive. Could I suggest you please mention that devfs is deprecated in the new 2.6 series kernels in favour of sysfs and udev. Gentoo seems to be one of the few distributions that actually use devfs, so it would be interesting to hear any policy thoughts on this matter ... search for sysfs on http://bugs.gentoo.org/ shows two bugs only: 25457 and 25655 and udev reports zarro. Once again, thanks for this guide!
Created attachment 16721 [details] paper describing new sysfs+udev (for reference)
I won't add a note about devfs being deprecated and using udev -- I'll start a new udev guide which will include a devfs-to-udev transistion (or, if possible, side-by-side cooperation for dualbooters: 2.4 and 2.6). When 2.6 is in ~ARCH (gentoo-sources or other -sources), this udev guide should be ready (I'm sure I still have a few weeks to get used to udev :) When 2.6 makes it in ARCH, the devfs guide is "deprecated" but will ofcourse remain on the documentation page since several ppl will probably wait with 2.6. I'd rather not mix the two together.
I'm not suggesting by any means that these two guides should be mixed. I just thought a short note about devfs deprecation and what the future held in this respect was being duly informative.
Perhaps when the udev guide is available we could add a note, but as long as we cannot instruct our users how to use udev I find it "embarassing" to say that devfs is deprecated in 2.6 and they should use udev, while we don't provide information for it yet.
Committed. I'm starting with a udev guide now.