Versions Compared

Key

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

...

su laci -c /afs/slac/g/lcls/epics/iocCommon/ioc-b34-bd32/startup-laci-rt.cmd

More on startup-laci-rt.cmd under Question (13).

Under linuxRT,  a few real time processes that need real time scheduler and kernel memory locking features, can be specifically run as such.

...

Kukhee provides some information about this to find out which processes are running with real-time priorities:

More on startup-laci-rt.cmd under Question (13).Command to look up thread priorities


9. How do I monitor the server remotely as it boots up - after a power-cycle or after a 'reboot' command?

...

To see the PCI devices in your system type the following command:

# lspci

 

 

 

 

10. What are kernel modules and how are they loaded in linuxRT?

...

2. If only one EVR (either PMC EVR230 or PCI EVR300) is installed in your system, then the above restriction does not apply and soft links are not needed.

Take a look at the following script:
/afs/slac/g/lcls/package/linuxKernel_Modules/pci_mrfev300_linuxRT/buildroot-2014.08/module_load

Notice how kernel modules are loaded as device drivers under the /dev/ in linuxRT much like linux.

3. The Broadcom Ethernet NIC driver used to be a separate kernel module and its dirver was loaded dynamically via ;modprobe tg3' in this script.
With the latest linuxRT version 3.14.12-rt9, this step has become unnecessary as the driver has become part of this linuxRT boot image.

4. The SIS digitizers for uTCA, loads their device drivers in 'kernel-modules.cmd':
SIS8300_DRIVER=$KERNEL_DRIVER_HOME/sis8300drv/MAIN_TRUNK

modprobe uio
insmod $SIS8300_DRIVER/sis8300drv.ko

Please note that as of date, SIS8300 has NOT been rebuilt for the latest linuxRT 3.14.12-rt9.
It is currently unsupported on COTS Linux servers.

For convinience, you can setup a soft link to your ioc's home directory in kernel-modules.cmd as below:

ln -s /afs/slac/g/lcls/epics/iocCommon/ioc-b34-pm32              /home/laci/ioc-b34-pm32

11. How do I create a startup script for my ioc?

The third and final script is specifically to setup and start your EPICS ioc.

The 'startupConsole-laci-rt.cmd' lets you start your EPICS-based 'virtual' ioc as a foreground process in your host.

When the ioc is started as a foreground process, you can observe the boot process and catch errors.

This is useful during development for debugging. Once the ioc has been tested fully, you can start the process in background.

Your EPICS ioc must run as a real-time process. It must lock the kernel in memory under linuxRT.

The following command in your 'startupConsole-laci-rt.cmd' does that:

...