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  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Access to IO registers from user-space in recent Linux versions
From: John Sinclair <[email protected]>
To: Mark Rivers <[email protected]>
Cc: tech-talk <[email protected]>
Date: Thu, 09 Jul 2009 16:30:24 -0400
Might be an selinux issue.

Mark Rivers wrote:
Folks,

I have an EPICS application that directly accesses the parallel port (EPP) registers from user space on Linux. This is to communicate with an XIA Saturn spectroscopy module.

In order versions of Linux this worked fine if I ran the application as root, or by calling iopl(3) as root before exec-ing the EPICS application.

I am now trying to run this under a recent Linux (Redhat Fedora) version

baja:~>more /proc/version

Linux version 2.6.26.8-57.fc8 ([email protected])

(gcc version 4.1.2 20070925 (Red Hat 4.1.2-33))

#1 SMP Thu Dec 18 18:59:49 EST 2008

The EPICS IOC now crashes with a segmentation fault when trying to access the EPP port, even when running as root, and the following entry appears in /var/log/messages

Jul 9 11:43:44 baja kernel: dxpApp[27837] general protection ip:80a90a6 sp:ff8ea8ac error:0 in dxpApp[8048000+1f7000]

Does anyone know what one needs to do in recent Linux versions to get access to the IO registers from user-space?

Thanks,

Mark



References:
Access to IO registers from user-space in recent Linux versions Mark Rivers

Navigate by Date:
Prev: Re: Access to IO registers from user-space in recent Linux versions David Kline
Next: RE: Access to IO registers from user-space in recent Linux versions Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: [APS Beamline_controls] Access to IO registers from user-spacein recent Linux versions Till Straumann
Next: Re: Access to IO registers from user-space in recent Linux versions J. Lewis Muir
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 31 Jan 2014 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·