Hi, sorry, I was some time away and didn't read all your messages, except the last one. /etc ist not in ram, but in the R/W space of the memory. If you want to do something in ram, use /var.
It's not very comfortable to use /etc/dev when you're building a new fimage. What I wanted to tell you is that you can use /etc/ if you want to create a device on the fly without new building. there is a file somewhere in which are many lines like: mknod_elinux .... search for this file with grep, i think it's in the directory packages. 2006/12/30, Geert Vancompernolle <[EMAIL PROTECTED]>:
--- In [email protected] <foxboard%40yahoogroups.com>, "Ernst Mayerhofer" <[EMAIL PROTECTED]> wrote: > > hi, > > you can create the node in /etc, instead of /dev, dynamically. > > Hi again, Ernst. I have one question left about the /etc directory. From what I understood of your reply, is that /etc is located in RAM. This is correct, right? Well, I have the following issue I can't explain so far: When I build the FB image with the scripts adapted to create an /etc/dev/i2c device node, the node is created the very first time I download the image to the FB. After that, when I restart the FB (even after switching off the power, so not simply a reset), I see that the directory /etc/dev and also the file /etc/dev/i2c are still there. I thought, since this directory was located in RAM, it would have to be recreated every time you reboot your board. But that's apparently not the case. Do you have an explanation for that? Anyhow, I've modified my scripts such that they first check to see if the directory /etc/dev and/or the file /etc/dev/i2c exists and only create them when they do not exist. But still, I'm curious about the "why"... Best rgds, --Geert
