Hello,
I’m attempting to incorporate a RAM disk in a QNX425 boot image. Here’s
the buildqnx sequence:
Fsys -r 4096
dinit /dev/ram
mount /dev/ram /tmp
The dinit call fails with the message, “(Invalid argument) dinit: no
disk name for ‘/dev/ram’”
It appears that Fsys is NOT creating /dev/ram, as advertised in the
documentation. Is there some way to get around this (besides doing it
in sinit)?
Thanks,
-Jim
<!doctype html public “-//w3c//dtd html 4.0 transitional//en”>
Hi Jim:
Try to put the dinit command in the sysinit.NODE file.
This work find...
Regards.-
Daniel Espósito
Jim Parnell wrote:
Hello,
I'm attempting to incorporate a RAM disk in a QNX425 boot image.
Here's
the buildqnx sequence:
Fsys -r 4096
dinit /dev/ram
mount /dev/ram /tmp
The dinit call fails with the message, "(Invalid argument) dinit: no
disk name for '/dev/ram'"
It appears that Fsys is NOT creating /dev/ram, as advertised in the
documentation. Is there some way to get around this (besides
doing it
in sinit)?
Thanks,
-Jim
Jim Parnell <jparnell@wgate.com> wrote:
Hello,
I’m attempting to incorporate a RAM disk in a QNX425 boot image. Here’s
the buildqnx sequence:
Fsys -r 4096
dinit /dev/ram
mount /dev/ram /tmp
The dinit call fails with the message, “(Invalid argument) dinit: no
disk name for ‘/dev/ram’”
Be careful doing things in the boot image – there is no synchronisation
of processes or start order there. Have you checked this system after
booting, and does /dev/ram exist? I would bet that Fsys has not gotten
far enough through its initialization to have created /dev/ram before
the dinit command tries to access it.
It appears that Fsys is NOT creating /dev/ram, as advertised in the
documentation. Is there some way to get around this (besides doing it
in sinit)?
Doing things in the sysinit is probably the best way – at least move
the dinit there, so you can make sure you don’t issue the dinit before
/dev/ram has been created.
-David