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  2018  2019  2020  2021  <20222023  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  2018  2019  2020  2021  <20222023  2024 
<== Date ==> <== Thread ==>

Subject: Re: mrfioc2-PCI device Configuration
From: gjzhai--- via Tech-talk <tech-talk at aps.anl.gov>
To: "Michael Davidsaver" <mdavidsaver at gmail.com>
Cc: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Sun, 23 Jan 2022 17:15:43 +0800 (GMT+08:00)
Hi, I intsall kernel module(as root)

[root@localhost mrmShared]# make -C linux \ KERNELDIR=/lib/modules/3.10.0-1160.42.2.el7.x86_64/build modules_install
make: Entering directory `/hls/mrfioc2-master/mrmShared/linux'
make -C /lib/modules/3.10.0-1160.42.2.el7.x86_64/build DRV_VERSION='1' M=/hls/mrfioc2-master/mrmShared/linux modules_install
make[1]: Entering directory `/usr/src/kernels/3.10.0-1160.42.2.el7.x86_64'
  INSTALL /hls/mrfioc2-master/mrmShared/linux/mrf.ko
Can't read private key
  DEPMOD  3.10.0-1160.42.2.el7.x86_64
make[1]: Leaving directory `/usr/src/kernels/3.10.0-1160.42.2.el7.x86_64'
make: Leaving directory `/hls/mrfioc2-master/mrmShared/linux'

The error message appears: Can't read private key

More information:
[root@localhost mrmShared]# dmesg | grep mrf
[    1.338766] pci_mrfevr: loading out-of-tree module taints kernel.
[    1.339091] pci_mrfevr: module verification failed: signature and/or required key missing - tainting kernel
[    1.340025] mrfevr:BAR0 start df200000 end df23ffff, mmap c3700000
[    1.340296] mrfevr:BAR0 start df000000 end df03ffff, mmap c3780000
[    1.340432] mrfevg:BAR0 start df100000 end df17ffff mmaped c3800000

[root@localhost mrmShared]# lsmod |grep mrf
mrf                    18421  0 
uio                    19338  1 mrf
parport                46395  1 mrf
pci_mrfevg             53731  0 
pci_mrfevr             53731  0 

Thanks

> -----原始邮件-----
> 发件人: "Michael Davidsaver" <mdavidsaver at gmail.com>
> 发送时间: 2022-01-21 04:26:28 (星期五)
> 收件人: "gjzhai at mail.ustc.edu.cn" <gjzhai at mail.ustc.edu.cn>
> 抄送: "GAGET Alexis" <alexis.gaget at cea.fr>, "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>[root@localhost 
> 主题: Re: mrfioc2-PCI device Configuration
> 
> On 1/20/22 7:31 AM, GAGET Alexis via Tech-talk wrote:
> > Hi,
> > 
> > I got this error a lot.
> > 
> > Many points :
> > 
> > - is the kernel module well loaded ? lsmod | grep mrf
> 
> If the kernel module is being loaded, but the /dev/uio* devices
> are not being created, check the kernel log ("dmesg") for lines
> including "uio_mrf" and/or the specific PCI B:D.F.
> 
> > - Depending on the CPU you use, you need to configure your PCIe virtual switch correctly.
> >  for me with NAT COMEx and NAT MCH it's like that (in the MCH webserver) :
> > 
> > 
> > With my configuration that is MTCA EVM300 andMTCA EVR300U I also had this problem because the CPU (NAT COMEX) hosting my EPICS IOC booted after the EVR and EVM. So the PCI configuration was not well done and produced this exact message you write below.
> > 
> > A manual solution is to reboot manually just your CPU to see if it's the problem. If it is, for me in the MCH (NAT MCH PHYS80) I have an argument "upstream slot power delay" that I put to 40 sec, meaning that my COMEx in RTM boot 40sec after the crate boot. (this work only with the latest version of the NAT MCH firmware)
> > 
> > 
> > ps : I prefer to use "lspci -nmmn" to list my PCIe device
> 
> fyi. I keep a collection of lspci output from cards I've encountered.
> These were captured when correctly configured and running.  Maybe
> helpful as a point of comparison.
> 
> https://github.com/epics-modules/mrfioc2/tree/master/documentation/lspci
> 
> 
> > Cheers
> > 
> > 
> > Alexis GAGET
> > 
> > CEA Saclay DRF/IRFU/DIS/LDISC
> > 
> > ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> > *De :* Tech-talk <tech-talk-bounces at aps.anl.gov> de la part de gjzhai--- via Tech-talk <tech-talk at aps.anl.gov>
> > *Envoyé :* jeudi 20 janvier 2022 14:52:33
> > *À :* tech-talk at aps.anl.gov
> > *Objet :* mrfioc2-PCI device Configuration
> >  
> > 
> > Hello all I am trying to get MRF MTCA-EVG-300 and MTCA-EVR-300U configured and working on Linux using mrfioc2. I found geographic address(bus:device.function) in /proc/bus/pci/devices. The information is
> >  as follows:
> > 
> > 0800 10ee7011 10 df100000 0 0 0 0 0 0 80000 0 0 0 0 0 0 pci_mrfevg
> > 
> > 0900 10ee7011 11 df000000 0 0 0 0 0 0 40000 0 0 0 0 0 0 pci_mrfevr
> > 
> > 
> > 
> > According to the above information, my st.cmd in the iocevrmrm folder is defined as follows:
> > 
> > mrmEvrSetupPCI("MTCAEVR","09:00.0")
> > 
> > mrmEvgSetupPCI("EVG",08,00,0)
> > 
> > 
> > 
> > But the following error occurs:
> > 
> > mrmEvrSetupPCI("MTCAEVR","09:00.0")
> > 
> > Notice: devPCIFindSpec() expect B:D.F in hex
> > 
> > Device MTCAEVR 9:0.0 slot=8
> > 
> > Using IRQ 17
> > 
> > Failed to open uio device for PCI device 0000:09:00.0: No such filleor directory
> > 
> > Can neither open resource file nor uio file of PCI device 0000:09:00.0 BAR 0
> > 
> > PCI error: Failed to map BAR 0
> > 
> > mrmEvgSetupPCI("EVG",08,00,0)
> > 
> > Error: invalid spec '08'
> > 
> > PCI Device not found
> > 
> > 
> > I use mrfioc2 2.3.0 . How deal with this problem?
> > 
> > Thank you for your time. I am looking forward to your reply.
> > 
> 

Replies:
Re: mrfioc2-PCI device Configuration Michael Davidsaver via Tech-talk
References:
mrfioc2-PCI device Configuration gjzhai--- via Tech-talk
RE: mrfioc2-PCI device Configuration GAGET Alexis via Tech-talk
Re: mrfioc2-PCI device Configuration Michael Davidsaver via Tech-talk

Navigate by Date:
Prev: New areaDetector releases Mark Rivers via Tech-talk
Next: Re: mrfioc2-PCI device Configuration Michael Davidsaver via Tech-talk
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  2018  2019  2020  2021  <20222023  2024 
Navigate by Thread:
Prev: Re: mrfioc2-PCI device Configuration Michael Davidsaver via Tech-talk
Next: Re: mrfioc2-PCI device Configuration Michael Davidsaver via Tech-talk
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  2018  2019  2020  2021  <20222023  2024 
ANJ, 14 Sep 2022 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·