Giter VIP home page Giter VIP logo

e3-mrfioc2's Introduction

Deprecation notice

2020-08-21: This remote has been deprecated. Moved to https://gitlab.esss.lu.se/e3/timing/e3-mrfioc2

e3-mrfioc2

Prerequisites

In addition to EPICS_BASE and E3 Require, it is required to install the devlib2 library prior to installing mrfioc2 E3 module.

Check the PCI Address of MRF HW

One can find the correct PCI Address by lspci command, and e3 also provide a wrapper script for this.

$ bash tools/get_pciaddr.bash 
Usage: get_pciaddr.bash possible_devices [cpcievr220|cpcievr230|cpcievr300|pcieevr300
                                          |mtcaevr300|cpcievg220|cpcievg230|
										  cpcievg300|mtcaevm300] 

For example, if one has one MRF PCIE EVR 300DC, one can find

$ bash tools/get_pciaddr.bash pcieevr300
1 : Input pcieevr300 ---- PCI ID    03:00.0

Kernel module (mrf.ko) can be installed via DKMS

$ make init
$ make dkms_add
$ make dkms_build
$ make dkms_install

In order to remove them

$ make dkms_uninstall
$ make dkms_remove

Kernel modules configuration

  • Create and load udev rule in /etc/udev/rules.d/99-mrfioc2.rules
  • Create and load the autoload configuration in /etc/modules-load.d/mrf.conf
  • Remove and load the kernel module with modprobe
$ make setup

In order to clean the configuration,

$ make setup_clean

Notice

If one has already the running dkms.service in systemd, the next reboot with new kernl image will make the kernel module be ready. However, if one doesn't have one, please run bash dkms/dkms_setup.bash in order to enable dkms.service.

$ bash dkms/dkms_setup.bash
$ systemctl status dkms
โ— dkms.service - Builds and install new kernel modules through DKMS
   Loaded: loaded (/etc/systemd/system/dkms.service; enabled; vendor preset: ena
   Active: active (exited) since Sun 2018-07-29 01:13:59 CEST; 4s ago
     Docs: man:dkms(8)
  Process: 3271 ExecStart=/bin/sh -c dkms autoinstall --verbose --kernelver $(un
 Main PID: 3271 (code=exited, status=0/SUCCESS)


e3-mrfioc2's People

Contributors

javicereijo avatar jeonghanlee avatar jerzyjamroz avatar simon-ess avatar thomasfayess avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

e3-mrfioc2's Issues

undefined symbol after loading libmrfioc2.so

Loading /epics/modules/mrfioc2/2.2.0/R3.15.4/lib/linux-x86_64/libmrfioc2.so library failed: /epics/modules/mrfioc2/2.2.0/R3.15.4/lib/linux-x86_64/libmrfioc2.so: undefined symbol: _ZTI3EVR

inflating db from template or substitutions

Original EEE db inflating method is follows:

db: dbclean dbexpand

dbclean: 
	
	echo "Cleaning databases"	

	rm -f evgMrmApp/Db/evg-vme-300.db
	rm -f evgMrmApp/Db/evg-vme-230.db
	rm -f evrMrmApp/Db/evr-cpci-230.db
	rm -f evrMrmApp/Db/evr-pcie-300.db
	rm -f evrMrmApp/Db/evr-vme-300.db
	rm -f evrMrmApp/Db/evr-vme-230.db

dbexpand: 
	
	echo "Exapanding EVG database"	

	msi -I evgMrmApp/Db/ -I mrmShared/Db/ -S evgMrmApp/Db/evg-vme-300.substitutions 	-o evgMrmApp/Db/evg-vme-300.db
	msi -I evgMrmApp/Db/ -I mrmShared/Db/ -S evgMrmApp/Db/evg-vme-230.substitutions 	-o evgMrmApp/Db/evg-vme-230.db

	echo "Exapanding EVR database"	
	msi -I evrMrmApp/Db/ -I mrmShared/Db/ -S evrMrmApp/Db/evr-cpci-230.substitutions 	-o evrMrmApp/Db/evr-cpci-230.db
	msi -I evrMrmApp/Db/ -I mrmShared/Db/ -S evrMrmApp/Db/evr-pcie-300.substitutions 	-o evrMrmApp/Db/evr-pcie-300.db
	msi -I evrMrmApp/Db/ -I mrmShared/Db/ -S evrMrmApp/Db/evr-pcie-300DC.substitutions 	-o evrMrmApp/Db/evr-pcie-300DC.db
	msi -I evrMrmApp/Db/ -I mrmShared/Db/ -S evrMrmApp/Db/evr-vme-300.substitutions 	-o evrMrmApp/Db/evr-vme-300.db
	msi -I evrMrmApp/Db/ -I mrmShared/Db/ -S evrMrmApp/Db/evr-vme-230.substitutions 	-o evrMrmApp/Db/evr-vme-230.db

However, the mrfioc2 uses the EPICS generic way to inflate db from substitutions and template.

make[4]: Entering directory '/home/jhlee/e3/e3-mrfioc2/mrfioc2/evgMrmApp/Db/O.linux-x86_64'
/epics/bases/base-3.15.4/bin/linux-x86_64/msi -D  -I../../../mrmShared/Db -I . -I .. -I /epics/bases/base-3.15.4/epics-modules/mrfioc2/db  -I. -I.. -I../O.Common -I/epics/bases/base-3.15.4/epics-modules/mrfioc2/db -I/epics/bases/base-3.15.4/epics-modules/devlib2/db -I/epics/bases/base-3.15.4/db -o ../O.Common/vme-evg230-nsls2.db -S../vme-evg230-nsls2.substitutions  > vme-evg230-nsls2.db.d
/epics/bases/base-3.15.4/bin/linux-x86_64/msi -D  -I../../../mrmShared/Db -I . -I .. -I /epics/bases/base-3.15.4/epics-modules/mrfioc2/db  -I. -I.. -I../O.Common -I/epics/bases/base-3.15.4/epics-modules/mrfioc2/db -I/epics/bases/base-3.15.4/epics-modules/devlib2/db -I/epics/bases/base-3.15.4/db -o ../O.Common/vme-evg230.db -S../vme-evg230.substitutions  > vme-evg230.db.d
/epics/bases/base-3.15.4/bin/linux-x86_64/msi -D  -I../../../mrmShared/Db -I . -I .. -I /epics/bases/base-3.15.4/epics-modules/mrfioc2/db  -I. -I.. -I../O.Common -I/epics/bases/base-3.15.4/epics-modules/mrfioc2/db -I/epics/bases/base-3.15.4/epics-modules/devlib2/db -I/epics/bases/base-3.15.4/db -o ../O.Common/cpci-evg-300.db -S../cpci-evg-300.substitutions  > cpci-evg-300.db.d
/epics/bases/base-3.15.4/bin/linux-x86_64/msi -D  -I../../../mrmShared/Db -I . -I .. -I /epics/bases/base-3.15.4/epics-modules/mrfioc2/db  -I. -I.. -I../O.Common -I/epics/bases/base-3.15.4/epics-modules/mrfioc2/db -I/epics/bases/base-3.15.4/epics-modules/devlib2/db -I/epics/bases/base-3.15.4/db -o ../O.Common/evgSoftSeq.db ../evgSoftSeq.template > evgSoftSeq.db.d
/epics/bases/base-3.15.4/bin/linux-x86_64/msi -D  -I../../../mrmShared/Db -I . -I .. -I /epics/bases/base-3.15.4/epics-modules/mrfioc2/db  -I. -I.. -I../O.Common -I/epics/bases/base-3.15.4/epics-modules/mrfioc2/db -I/epics/bases/base-3.15.4/epics-modules/devlib2/db -I/epics/bases/base-3.15.4/db -o ../O.Common/nsls2-inj-seqs.db -S../nsls2-inj-seqs.substitutions  > nsls2-inj-seqs.db.d
Inflating database from ../nsls2-inj-seqs.substitutions 
/epics/bases/base-3.15.4/bin/linux-x86_64/msi  -I../../../mrmShared/Db -I . -I .. -I /epics/bases/base-3.15.4/epics-modules/mrfioc2/db  -I. -I.. -I../O.Common -I/epics/bases/base-3.15.4/epics-modules/mrfioc2/db -I/epics/bases/base-3.15.4/epics-modules/devlib2/db -I/epics/bases/base-3.15.4/db -o nsls2-inj-seqs.db -S../nsls2-inj-seqs.substitutions 
Inflating database from ../evgSoftSeq.template
/epics/bases/base-3.15.4/bin/linux-x86_64/msi  -I../../../mrmShared/Db -I . -I .. -I /epics/bases/base-3.15.4/epics-modules/mrfioc2/db  -I. -I.. -I../O.Common -I/epics/bases/base-3.15.4/epics-modules/mrfioc2/db -I/epics/bases/base-3.15.4/epics-modules/devlib2/db -I/epics/bases/base-3.15.4/db -o evgSoftSeq.db ../evgSoftSeq.template
Inflating database from ../cpci-evg-300.substitutions 
/epics/bases/base-3.15.4/bin/linux-x86_64/msi  -I../../../mrmShared/Db -I . -I .. -I /epics/bases/base-3.15.4/epics-modules/mrfioc2/db  -I. -I.. -I../O.Common -I/epics/bases/base-3.15.4/epics-modules/mrfioc2/db -I/epics/bases/base-3.15.4/epics-modules/devlib2/db -I/epics/bases/base-3.15.4/db -o cpci-evg-300.db -S../cpci-evg-300.substitutions 
Inflating database from ../vme-evg230.substitutions 
/epics/bases/base-3.15.4/bin/linux-x86_64/msi  -I../../../mrmShared/Db -I . -I .. -I /epics/bases/base-3.15.4/epics-modules/mrfioc2/db  -I. -I.. -I../O.Common -I/epics/bases/base-3.15.4/epics-modules/mrfioc2/db -I/epics/bases/base-3.15.4/epics-modules/devlib2/db -I/epics/bases/base-3.15.4/db -o vme-evg230.db -S../vme-evg230.substitutions 
Inflating database from ../vme-evg230-nsls2.substitutions 
/epics/bases/base-3.15.4/bin/linux-x86_64/msi  -I../../../mrmShared/Db -I . -I .. -I /epics/bases/base-3.15.4/epics-modules/mrfioc2/db  -I. -I.. -I../O.Common -I/epics/bases/base-3.15.4/epics-modules/mrfioc2/db -I/epics/bases/base-3.15.4/epics-modules/devlib2/db -I/epics/bases/base-3.15.4/db -o vme-evg230-nsls2.db -S../vme-evg230-nsls2.substitutions 

Infinite and endless approach to do it alone.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.