/tmp link to /dev/shmem directory problem

bridged with qdn.public.devtools
Post Reply
James

/tmp link to /dev/shmem directory problem

Post by James » Tue Sep 23, 2003 2:12 pm

Hi -

I am trying to debug with QNX 6.2.1A PE on a remote target and wish to
create a /tmp link to /dev/shmem on the target. I assume I require the /tmp
target in order to do facilitate remote debugging. I am using the Momentics
IDE to generate the mkif file.

After booting the image for the target the top directories on the target
are:
dev
proc
testdisk
usr
The testdisk is the existing Neutrino partition on the target that has been
mounted to /testdisk. The other directories are evidently in memory.

My question is how do I link the /dev/shmem to a /tmp directory? If I try
to create it after bootup by using
ln /dev/shmem /tmp

the response is

ln: /dev/shmem and /tmp are on different file systems -

Can't create hard link. Use ln -s or make a copy.



If I use

ln -s /dev/shmem /tmp

the response is

ln: unable to link. (/dev/shmem or /tmp): Function not implemented


The ln binary is in the boot image on the target.

regards,
james

regards,
james jenkins

Chris McKillop

Re: /tmp link to /dev/shmem directory problem

Post by Chris McKillop » Tue Sep 23, 2003 4:43 pm

James <james.nospam@plexoninc.com> wrote:
Hi -

I am trying to debug with QNX 6.2.1A PE on a remote target and wish to
create a /tmp link to /dev/shmem on the target. I assume I require the /tmp
target in order to do facilitate remote debugging. I am using the Momentics
IDE to generate the mkif file.
In your system builder project add a new symlink from the toolbar and have
it point to /dev/shmem. Once the system is running you don't have any
read-write filesystem to play with. You can setup a prefix at runtime
however..

ln -sP /dev/shmem /tmp

Both ways will work.

chris

--
Chris McKillop <cdm@qnx.com> "The faster I go, the behinder I get."
Software Engineer, QSSL -- Lewis Carroll --
http://qnx.wox.org/

Post Reply

Return to “qdn.public.devtools”