EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: mrfioc2 Linux driver
From: Steve Kinder - UKRI STFC <[email protected]>
To: Michael Davidsaver <[email protected]>
Cc: "[email protected]" <[email protected]>
Date: Thu, 9 Aug 2018 15:21:05 +0000
Hi Michael


Thanks for your response.


Yes we require the PSI version for the VME-EVR/M-300s we also use.


I have moved on from my original problem. Of course you have to do a make in the mrmShared/linux directory before doing the command documented to install the driver.


I got compilation errors when trying to make the 3-0-0 driver. Since it should work with my IOC and a PCIe-EVR-300DC, and the driver with 2-2-0 builds, I have gone over to mrfioc2 2-2-0 for this. I still get the original STACKPOINTER message on installation but the driver is copied to /lib/modules/`uname -r`/extra so I think that's all ok?


I executed 'depmod -a', 'modprobe mrf' and rebooted.


My current problem (I think) is:


'grep mrf /proc/devices' returns nothing


'dmesg | grep mrf' produces:


[    5.296883] mrf-pci 0000:81:00.0: Attaching MRF device w/o PLX bridge (00007011)
[    5.296898] mrf-pci 0000:81:00.0: no match for version 0x04020017 against 18

Neither of these seem right?


'lsmod | grep mrf' produces:


mrf                    18124  0
uio                    19259  1 mrf
parport                42348  1 mrf

My attempts to use mrmEvrSetupPCI from the IOC have so far failed. Preumambly in part down to the abover 'error' reported via dmesg? I'm also not sure what to use for the major number in mknod. I've tried 254 in the absence of anything from /proc/devices with no great confidence that is correct, I think this should be specific to my actual hardware?

Hope that all makes sense.

Thanks

Steve

________________________________
From: Michael Davidsaver <[email protected]>
Sent: 07 August 2018 17:15:15
To: Kinder, Steve (STFC,DL,TECH)
Cc: [email protected]
Subject: Re: mrfioc2 Linux driver

> mrfioc2 3-0-0

The latest version of the mrfioc2 modules is 2.2.0 released in October 2017.  Are you my chance using the PSI forked version?

http://epics.sourceforge.net/mrfioc2/

Please note the Supported Hardware section.  This includes the PCIe-EVR-300dc

Section 4 of my manual covers the setup you're trying to do.

http://epics.sourceforge.net/mrfioc2/evr-usage.pdf

There is also a example UDEV rule in mrmShared/linux/README

If you're able to try 2.2.0, and still have difficulty getting the kernel module loaded,
please reply with the output of:

> lsmod |grep mrf

> dmesg|grep mrf


On 08/07/2018 08:40 AM, Steve Kinder - UKRI STFC wrote:
> Hello all
>
>
> I am trying to get an MRF PCIe-EVR-300DC configured and working on Linux using mrfioc2. I think I have an IOC built. I think I have some understanding of the parameters to mrmEvrSetupPCI(EVR-01, 1, 0, 0, 0). I could well be wrong on those but that isn't the source of my immediate problem. Executing the previous call gives:
>
>
> Can't open /sys/module/mrf/parameters/interfaceversion in order to read kernel module interface version. Is kernel module loaded?
>
>
> I found some documentation that indicates an MRF kernel driver is also required:
>
>
> $ make -C /location/of/mrmShared/linux \
>
> KERNELDIR=/lib/modules/`uname -r`/build modules_install
>
> $ sudo depmod -a
>
> $ sudo modprobe mrf
>
>
> I seem to need to execute the first line as root or I get permissions problems. However then I get:
>
>
> # make -C /home/controls/work/R3.14.12.5/support/mrfioc2/3-0-0/mrmShared/linux KERNELDIR=/lib/modules/`uname -r`/build modules_install
> make: Entering directory `/home/controls/work/R3.14.12.5/support/mrfioc2/3-0-0/mrmShared/linux'
> make -C /lib/modules/3.10.0-514.6.1.el7.x86_64/build M=/home/controls/work/R3.14.12.5/support/mrfioc2/3-0-0/mrmShared/linux modules_install
> make[1]: Entering directory `/usr/src/kernels/3.10.0-514.6.1.el7.x86_64'
> Makefile:641: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong not supported by compiler
>   DEPMOD  3.10.0-514.6.1.el7.x86_64
> make[1]: Leaving directory `/usr/src/kernels/3.10.0-514.6.1.el7.x86_64'
> make: Leaving directory `/home/controls/work/R3.14.12.5/support/mrfioc2/3-0-0/mrmShared/linux'
>
>
> The documentation dates back to 2015, Rev 7, so may be out of date?
>
>
> Any advice/help would be much appreciated. Further documentation?
>
>
> My kernel is 3.10.0-514.6.1.el7.x86_64, mrfioc2 3-0-0
>
>
> Thanks
>
>
> Steve
>
>
> d
> o
> m
> o
> d
> p
> r
> o
> b
> e
> m
> r
> f
>


Replies:
Re: mrfioc2 Linux driver Jeong Han Lee
Re: mrfioc2 Linux driver Jörn Dreyer
Re: mrfioc2 Linux driver Michael Davidsaver
References:
mrfioc2 Linux driver Steve Kinder - UKRI STFC
Re: mrfioc2 Linux driver Michael Davidsaver

Navigate by Date:
Prev: Re: Inverting control inputs on SIS3280? Mark Rivers
Next: Re: IOC Crash with No Exception Generated Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: mrfioc2 Linux driver Jeong Han Lee
Next: Re: mrfioc2 Linux driver Jeong Han Lee
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  2020  2021  2022  2023  2024 
ANJ, 10 Aug 2018 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·