Hi,

if you type "make" in the devboard directory your fimage will be generated.
and it's possible WITHOUT ANY STARTUP SCRIPT to insert a character device in
the fimage in /dev. I would suggest to use /dev because it's a convention to
use that directory. anyway you know that. instead of putting a character
device there you put a symbolic link there.

What you actually did is a workaround. In my mother tongue i would call it
simply "pfusch". means that something is not designed for this purpose.

I would suggest not to use a dynamic major number. You shoud instead use a
free major number and enter it in the file where all the mknod_elinux
commands are. (packages/devices.../Makefile)

if you continue anyway, i would suggest using /var, because you have to
write it maybe on every startup. the flash memory is not a hard drive, and
you shouldn't change it that often.

but maybe there is some better advise than mine. i am a newcomer, too.


greets,
ernst.


2006/12/30, Geert Vancompernolle <[EMAIL PROTECTED]>:

  --- In [email protected] <foxboard%40yahoogroups.com>, "Ernst
Mayerhofer"
<[EMAIL PROTECTED]> wrote:
>
> 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.
>
>

Ah, Ok Ernst.

Now I understand the picture. I thought /etc was in RAM but it's
really in the flash image. Didn't know this...

I know where all the scripts are located to do the necessary changes
(pls. read my previous replies, you'll see I was successfully able to
create a device on the fly), so that's no problem.
I even added an article describing the whole process on my wiki. If
interested, pls. look here:


http://www.gevawebsolutions.com/wiki/index.php?title=FB_General_Issues#Adding_a_dynamic_MAJOR_number:_the_steps_to_take...

Would you then suggest to use /var to create my device or is /etc/dev
just a perfect place for it (as I have done it now)?

Pls. advice.

Best rgds,

--Geert

Reply via email to