Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

VxWorks file systems and devices

707 views
Skip to first unread message

Simon Roberts

unread,
May 25, 1999, 3:00:00 AM5/25/99
to
Can someone help me with the following problem.  I can successfully create a ram drive and dos filesystem in VxWorks, but I can't write a file to it or read what is on it.  When I use the device name (i.e. "/dos") the command abruptly returns with a syntax error.

Has anyone had a problem similar to this before or know of a patch I must install?

Note, I have installed a patch for SPR22610 and I have INCLUDE_DOSFS and INCLUDE_RAMDRV included.  My target is a Motorola PPC (MVME2400).  The example below is taken from the WRS Tornado training course, so it should work!

Thanks,
Simon.
 
 

      /////   /////   /////   /////   /////       |
     /////   /////   /////   /////   /////        |
    /////   /////   /////   /////   /////         |
    /////   /////   /////   /////   /////         |
   //////  //////  //////  //////  //////         |
   //////  //////  //////  //////  //////         |     T  O  R  N  A  D  O
    /////   /////   /////   /////   /////         |
    /////   /////   /////   /////   /////         |
     /////   /////   /////   /////   /////        |    Development  System
      ////    ////    ////    ////    ////        |
       ////    ////    ////    ////    ////       |
        ////    ////    ////    ////    ////      |    Host  Based   Shell
         ////    ////    ////    ////    ////     |
          ////    ////    ////    ////    ////    |
           ///     ///     ///     ///     ///    |    Version  1.0.1
           ///     ///     ///     ///     ///    |
            //      //      //      //      //    |
            //      //      //      //      //    |
            //      //      //      //      //    |
           //      //      //      //      //     |

      Copyright Wind River Systems, Inc., 1995-1997

C++ Constructors/Destructors Strategy is AUTOMATIC

-> pBlkDrv = ramDevCreate (0,1024,0,64,0)
new symbol "pBlkDrv" added to symbol table.
pBlkDrv = 0x5afc18: value = 67105440 = 0x3fff2a0
->
-> dosFsMkfs "/dos", pBlkDrv
value = 62893360 = 0x3bfad30
-> devs
drv name
  0 /null
  1 /tyCo/0
  5 wheelie:
  6 /pty/telnet.S
  7 /pty/telnet.M
  8 /vio
  3 /dos
value = 0 = 0x0
-> fd = creat ("/dos/simon",2)
syntax error
->
-> ls "/dos"
Parameter format not correct - "dos".
value = -1 = 0xffffffff
->

Simon Roberts

unread,
May 26, 1999, 3:00:00 AM5/26/99
to
I've solved my problem (with help from WRS support).  If the session below is conducted in the target shell I can make it work.  I now appreciate the difference between host base shell commands and target based shells (run from the serial port normally) which aren't necessarily the same thing.

e.g. to access a dosfs called '/dos' on the target server with a host based shell you can't use 'ls' - the correct usage would be '@ls' to force the command to executed on the target and not the host.

Now wiser!
Simon.

0 new messages