Versions Compared

Key

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

...

Almost done.. epics-release crashed with eco_tools/R2.35/epics-release.py complaining not all args converted during string formatting....  Bypassed the epics-release issue and booting the IOC from my dev area - IOC crashes with a DMA API version issue - is that a clash with the o/s build for daq-mec-cam01??

Michael: Default driver loaded seems to be v5.15.2.  I'm pretty sure you need v5.16.0. Well, a host usually tries to run /reg/d/iocCommon/hosts/$HOSTNAME/startup.cmd to load drivers... but if that doesn't exist, it runs /reg/d/iocCommon/rhel7-x86_64/common/startup.cmd, which defines versions in kernel-module-dirs.cmd and loads them in kernel-modules.cmd.  So looking at the latter, it runs:

lspci_SLAC_pgp=`lspci -d 1a4a:2020 -n`
if [ "$lspci_SLAC_pgp" != "" ]; then
    if [ -n "$SLAC_AES_DRIVER" -a -f $SLAC_AES_DRIVER/pgpcard.ko ]; then
        echo Installing SLAC pgpcard driver: $SLAC_AES_DRIVER
        rmmod pgpcard
        rmmod p

where from the former:

# Select default SLAC_AES_DRIVER if not overridden
if [ "$SLAC_AES_DRIVER" == "" ];
then
	if [ "$SLAC_AES_VER" == "" ];
	then
		#SLAC_AES_VER=latest
		SLAC_AES_VER=v5.15.2
	fi
	SLAC_AES_DRIVER=$PACKAGE_SITE_TOP/slaclab/aes-stream-drivers/$SLAC_AES_VER/install/`uname -r`/
fi
export SLAC_AES_DRIVER

...


So... you don't necessarily want to

...

 change everyone... but you can create a host-specific startup file, and define SLAC_AES_VERSION to v5.16.0, and then

...

 s
ource the standard rhel7 file.gpcardG3

Then either reboot, or manually install the new driver.  To manually start... stop all of the PGP IOCs, and then as root run:

# rmmod pgpcard
# rmmod pgpcardG3
# insmod /reg/g/pcds/package/slaclab/aes-stream-drivers/v5.16.0/install/`uname -r`/pgpcard.ko cfgRxCount=256 cfgTxCount=64
# chmod 666 /dev/pgpcard*

  5 hours ago

(I've just filled out all of the paths from the kernel*cmd files there. Image Added) (edited) 

        insmod $SLAC_AES_DRIVER/pgpcard.ko cfgRxCount=256 cfgTxCount=64
        chmod 666 /dev/pgpcard*
    else
        echo SLAC pgpcard driver not found: $SLAC_AES_DRIVER/pgpcard.ko
    fi
else
    echo SLAC pgpcard device not found.
fi

Then either reboot, or manually install the new driver.  To manually start... stop all of the PGP IOCs, and then as root run:

# rmmod pgpcard
# rmmod pgpcardG3
# insmod /reg/g/pcds/package/slaclab/aes-stream-drivers/v5.16.0/install/`uname -r`/pgpcard.ko cfgRxCount=256 cfgTxCount=64
# chmod 666 /dev/pgpcard*


(I've just filled out all of the paths from the kernel*cmd files there.