Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Log into lcls-dev3  (ssh <user_name>@lcls-dev3)

  2. Create an Epics Application ($EPICS_IOC_TOP)

    1. Need to cross-compile for target architecture

    2. Check st.cmd file for all vioc’s - verify that it calls rtPriortiesSetup.cmd, which sets the real-time priority for threads
  3. Set-up Directory Structure for cpu’s/vioc’s  under $IOC_DATA
    1. Generate cpu-##-## directory (In this directory, screenlog.0 is generated automatically)
    2. Generate a vioc-##-## directory for each vioc running on this machine
      1. Under each vioc directory, create an autosave, autosave-req, and iocInfo directory
      2. screenlog.0 is generated automatically

  4.   Set-up Directory Structure for cpu’s/vioc’s under $IOC
    1. Generate cpu-##-## directory
      1. Generate a symbolic link named “startup.cmd” that points to “../skel/startup_cpu.cmd”
      2. Generate a kernel-modules.cmdfile that is specific for your cpu
      3.  Create a symbolic link for each vioc(s) hosted on the cpu (ln -s ../vioc-xx##-xx## vioc-xx##-xx##)

    2.  Generate a vioc-##-## directory for each vioc running on this machine
      1.  Generate a screenrcfile that is name-specific for each vioc
      2. Generate  Generate a symbolic link named “startup.cmd” that points to “../skel/startup_vioc.cmd”
      3.  Generate a symbolic link called “iocSpecificRelease” that follows the CRAM convention for pointing to an Epics application
        How to CRAM your Epics Application:

  5. Update $IOC/All/Dev screeniocs

    1. Update information pertaining to which vioc’s are running on a cpu and currently the application each vioc is running

    2. Commit screeniocs back into CVS

...

  • ctrl a d : detach from the screen session
  • ctrl a { : scroll up through the start-up messages.
  • View all vioc's on host cpu: screen -ls
  • Attach to vioc: screen -r <vioc_name>
  • Attaching to a linuxRT screen session multiple times with  "laci"  concurrently:
    screen  -x <vioc_name>
  • Note: The "screen" program supports multi-display mode. When you attach an existing screen session, you can use "-x". It allow allows an user to attach to "a not detached screen session." like the The -r option allows a user to attach to a "detached screen session".



Common Linux Commands Used

...