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: Michael Davidsaver <[email protected]>
To: Jörn Dreyer <[email protected]>, [email protected]
Date: Thu, 9 Aug 2018 23:07:31 -0700
On 08/09/2018 10:18 PM, Jörn Dreyer wrote:
> Hi Steve,
> 
> Am Donnerstag, 9. August 2018, 17:21:05 CEST schrieb Steve Kinder - UKRI STFC:
> 
>> 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.
> ------------------------------------------------------------^^^^^^^^^^^^
> 
> Here is your problem. The "modprobe mrf" loads the module into the kernel, and 
> the reboot of course removes it again. It will not automatically be loaded 
> after boot. You will have to do the "modprobe mrf" each time the system gets 
> rebooted.

In fact, recent versions export the supported PCI ID table (cf. MODULE_DEVICE_TABLE).
This is what allows linux module autoloading to work.  The "depmod" step is what sets this up.

https://github.com/epics-modules/mrfioc2/blob/master/mrmShared/linux/uio_mrf.c#L762

These are the "alias" lines shown by 'modinfo'.

> $ /sbin/modinfo mrmShared/linux/mrf.ko
> filename:       /home/mdavidsaver/work/timing/mrfioc2/mrmShared/linux/mrf.ko
> author:         Michael Davidsaver <[email protected]>
> version:        1
> license:        GPL v2
> srcversion:     E3290AD048B5B57D2EAA55E
> alias:          pci:v000010EEd00007011sv00001A3Esd0000232Cbc*sc*i*
> alias:          pci:v000010EEd00007011sv00001A3Esd0000132Cbc*sc*i*
> alias:          pci:v00001A3Ed0000152Csv00001A3Esd0000152Cbc*sc*i*
> alias:          pci:v00001A3Ed0000252Csv00001A3Esd0000252Cbc*sc*i*
> alias:          pci:v000010EEd00007011sv00001A3Esd0000172Cbc*sc*i*
> alias:          pci:v00001204d0000EC30sv00001A3Esd0000172Cbc*sc*i*
> alias:          pci:v000010B5d00009056sv00001A3Esd0000192Cbc*sc*i*
> alias:          pci:v000010B5d00009030sv00001A3Esd000011E6bc*sc*i*
> alias:          pci:v000010B5d00009030sv00001A3Esd000020E6bc*sc*i*
> alias:          pci:v000010B5d00009030sv00001A3Esd000020DCbc*sc*i*
> alias:          pci:v000010B5d00009030sv00001A3Esd000010E6bc*sc*i*
> depends:        parport,uio
> retpoline:      Y
> name:           mrf
> vermagic:       4.16.0-0.bpo.2-amd64 SMP mod_unload modversions 
> parm:           cable:Name of JTAG parallel port cable to emulate (charp)
> parm:           interfaceversion:User space interface version (int)
> parm:           use_msi:Use MSI if present (default 1, yes) (uint)


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

Navigate by Date:
Prev: Re: mrfioc2 Linux driver Michael Davidsaver
Next: Re: mrfioc2 Linux driver Steve Kinder - UKRI STFC
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 Jörn Dreyer
Next: Re: mrfioc2 Linux driver Michael Davidsaver
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 ·