Using generic-uio with PS GPIO

I'm trying to access the Zynq PS GPIO from user space via the UIO driver.  Using Xilinx 2014.4, 3.17 kernel.
Changed the device tree gpio entry from:
    compatible = "xlnx,zynq-gpio-1.0"; 
to:
    compatible = "generic-uio";
After booting, all looks OK, there is no longer a "chip" entry under /sys/class/gpio and now there is a /sys/class/uio/uio0 entry with address and size matching the device tree entries (0xe000a000, 0x1000).
My user space app (based on http://svenand.blogdrive.com/files/gpio-uio-test.c but with the register offsets changed for the Zynq PS GPIO values), reports no errors from opening /dev/uio0 or the mmap of the device memory, but my reads/writes to the GPIO registers are having no effect (I have some LEDs on the outputs).  I think my app code is OK, as if I instead set compatible = "generic-uio"; for a custom register block in the PL, the same user code can access those registers fine.
Wondering if something else is grabbing the PS GPIO address range and locking it, even though there is nothing else in the device tree with that address (wouldn't the mmap fail in that case anyway?).  Or maybe there is some other setup required to access the PS GPIO registers, which I need to do myself now that the zynq-gpio-1.0 driver is not getting referenced?
Any ideas?

OK, I sorted it, thanks to this previous solution http://forums.xilinx.com/t5/Embedded-Linux/Zynq-mmap-GPIO/td-p/368601
My problem was that because the gpio driver wan't getting initialised, the clock to the PS gpio hardware wasn't getting enabled, hence why my reads and writes were failing to do anything sensible.
Setting bit 22 in APER_CLK_CTRL (0XF800012C) by ORing the read value with 0x40000 did the trick.

Similar Messages

  • Networking/connection failure using generic connectivity with paradox databases

    I tried to establish a connection from our Oracle 8i-Server
    (Rel. 8.16 ) to a remote paradox-database via a database-link
    and a data-direct 4.0 paradox-odbc-driver. For testing purposes
    I set up a agent initialization file for a agent called hsodbc
    according to the distributed-database documentation and I also
    used the same parameters as in the documentation. If I try to
    test the Net8-Connection an ORA-03113-Error occurs.
    The entries in the agent-initialization file and in the
    tnsnames/listener.ora are ...
    ...Agent-Initialization File Inithsodbc.ora
    #Agent-Initialization File Inithsodbc.ora
    # This is a sample agent init file that contains the HS
    parameters that are
    # needed for an ODBC Agent.
    # HS init parameters
    HS_FDS_CONNECT_INFO = hsodbc
    HS_FDS_TRACE_LEVEL = ON
    HS_FDS_TRACE_FILE_NAME = HS.Log
    # Environment variables required for the non-Oracle system
    #set <envvar>=<value>
    #DataDirect 4.0 ParadoxFile (*.db);
    ...listener.ora
    # LISTENER.ORA Network Configuration File: C:\Oracle\Ora_Serv_816
    \network\admin\listener.ora
    # Generated by Oracle configuration tools.
    LISTENER =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = pdv0570)(PORT = 1521))
    CONNECT_TIMEOUT_LISTENER = 0
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = hsodbc)
    (ORACLE_HOME = C:\Oracle\Ora_Serv_816)
    (PROGRAM = hsodbc)
    (SID_DESC =
    (GLOBAL_DBNAME = MEDAS.PDV0570.MED.UNI_DUESSELDORF.DE)
    (ORACLE_HOME = C:\Oracle\Ora_Serv_816)
    (SID_NAME = MEDAS)
    # This is a sample listener.ora that contains the NET8
    parameters that are
    # needed to connect to an ODBC Agent - but makes an ORA-03113-
    Error if i check the
    # Net8-Connection
    and in the tnsnames.ora...
    # TNSNAMES.ORA Network Configuration File: C:\Oracle\Ora_Serv_816
    \network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    # This is a sample tnsnames.ora that contains the NET8
    parameters that are
    # needed to connect to an default generic connectivty ODBC Agent
    HSODBC =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = pdv0570)(PORT = 1521))
    (CONNECT_DATA =
    (SID = hsodbc.pdv0570.med.uni_duesseldorf.de)
    (HS = OK)
    #...new service created after setup of new database MEDAS with
    setting db_domain
    #...ATTENTION - use full service name with domain qualifier for
    sqlplus-login
    MEDAS.PDV0570.MED.UNI_DUESSELDORF.DE =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = pdv0570)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = MEDAS.PDV0570.MED.UNI_DUESSELDORF.DE)
    Do you have any suggestions how to fix the problem - and meny
    thanks in advance.
    Andreas

    Please contact Oracle support for this issue.
    Ensure that you are using an ODBC driver that meets the
    requirements listed in the documentation.
    Also double check that the ODBC driver is configured correctly.

  • Disable Epson printer monitor to use generic cartridges

    I have an Epson XP-950 printer connected to a MacBook (via USB) running OS X 10.6.8. I would like to be able to use generic cartridges with the printer -- so my question is: is it possible to disable the Epson printer monitor?
    When I put in a generic cartridge the printer complains and it's unusable. I'm using the latest drivers from the Epson website.

    I have never had an issue using cartridges from Ink4Art.
    I also have an Epson.  My current Epson cartridges are so cheap, Ink4Art do not carry that model cartridges.  They cannot beat Epson's price.

  • Generic datasource with FM

    All;
    We need to do live cache extraction for APO data. How do we set up that in BW? Is this done using generic datasource with a Function module? Can anyone give me some ideas?
    Thanks,
    Manasa.

    Hi,
    In the Extractution structure you need to put the two dates and mark both like selection parameter.
    This is the template for Generic FM Extractors "RSAX_BIW_GET_DATA_SIMPLE" to create the FM.
    Follow the FM Code, in the part of the first execution you need to do two loops (one for every date).
    Regards,
    Dani

  • How Do I Use Generics with Framework Extension Classes?

    Hi Guys and Gals,
    I've been writing alot of duplicate code lately for ViewObjects that are all basically the same. So it occurred to me that perhaps I could put shared code in a Framework Extension Class. My problem lies in the fact that I do quite a bit of class casting as well. I thought perhaps Generics could come to the rescue. But uh ... I don't really know anything about them, which makes asking the right questions or even researching difficult.
    Here's an example of what I would like to accomplish.
    I have many different Master-Detail ViewObjects which are all pretty much the same. For example ...
    PurchaseOrder (1-*) PoRows
    SalesOrder (1-*) SoRows
    Invoice (1-*) InvoiceRows
    etc...
    Here is sample code for the PurchaseOrder / PoRows
      public void cancelDocument()
        RowIterator ri = this.getPoRowsVO();  // access the detail view object
        RowSetIterator rsi = ((RowSet)ri).createRowSetIterator(null);
        while(rsi.hasNext())
          PoRowsVORowImpl next = (PoRowsVORowImpl)rsi.next();
          next.cancelRow();  // call a detail view object method exposed to the client
        rsi.closeRowSetIterator();
      }However, these two lines are cause for ponderance
         1.  RowIterator ri = this.getPoRowsVO();
         2.  PoRowsVORowImpl next = (PoRowsVORowImpl)rsi.next();Which leads me to two questions:
    1) How do I access the Detail part of the relationship in a framwork extension class generically?
    2) If I have to cast, is there a way to read the class type through reflection and cast using a generic method with what I've found?
    I would think writing common methods in a Framework Extension class would really help make maintaining my code easier, and I could see how it would be a powerful tool. But how would one get around these ViewObject specific problems?
    Will

    Hi,
    you are correct, Generics has a different meaning in Java then what you ask for.
    Actually to access a detail row set from a parent row, you can use code like this:
        public void voRowCancel(){
            for (int i = 0; i < this.getAttributeCount(); i++)
                   if(this.getStructureDef().getAttributeDef(i).getAttributeKind() == AttributeDef.ATTR_ASSOCIATED_ROWITERATOR){
                     RowSet rs = (RowSet) this.getAttribute(i);
                    // ... to do ...
        }However, the code you invoke is on a custom implementation class, which makes it difficult to get to this from here.
    Frank

  • Generic Extractors with Fm / Finding out tables used

    Hello Gurus,
    for a requirement, i would like to find out the table used in a generic extractor with function module.
    I can see the structure with the objects used but not the tables where they are from.
    How can i find that out?
    Thank you
    Pat

    Hi Gilo ,
    The best way to find out the tables used in the function module will be to analyze the code . Check all your Select Statements in the code and see the tables being used there .
    Sometimes in the code , we use standard function modules from the ECC. Check those standard FMs also and see what table they are using .
    Hope the above reply was helpful.
    Thanks & Regards,
    Ashutosh Singh

  • Generic Extractor using Function module with Complex Interface

    Hi,
    Has anyone created Generic extractor using Function module with Complex Interface?
    What is the difference between Complex and Simple interface in Function module?
    Pls explain.
    Thanks,
    Gopal

    Hi,
    Go through this link.....
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d3219af2-0c01-0010-71ac-dbb4356cf4bf
    GTR

  • Using generics and J2SE together with JSF

    Hi
    Has anybody experience with using JSF together with J2SE 1.5? Especially generics? I would like to use generics and other improvements from J2SE in the model objects.
    Thnaks in advance ... Rick

    JSF 1.1 is specified for J2SE 5, and the new specification (JSF 1.2 and JSP 2.1) does not include generics.
    If you are talking in terms of ValueBindings or MethodBindings, there really isn't any point since the implementation could only make the cast for you; and it would still not be able to garuantee type safety (the only reason to use generics).
    That's not to say you couldn't use generics in your own development, but I don't think you will see generics incorporated into the specification any time soon.
    Jacob Hookom (JSR-252 EG)

  • Using AJA IO with the FCP Voice Over Tool

    Has anyone used the io with the VO tool? I have gotten it to work in the past, however, there are a number of convoluted settings to go through to get it to work. It seems intermittent. Today it doesnt want to work at all.
    Does anyone have a list of the specific A/V settings, Capture presets, etc, that i need to have set in order for this to work?
    FYI--I have never had a problem capturing from tape--(using log and capture with beta, digibeta, dv, vhs)--only when capturing analog audio using the VO tool.
    gracias.
    dk

    You can do it here, in the Audio/Video settings under the Final Cut Pro menu. Click on the Capture Presets tab, then go to Generic Capture Template, duplicate it, then edit. Give it a name that you can recognize when you need to set up your project.

  • Right way to use generics for cellular automatons?

    Hi,
    i've got a question about using generic types in combination with subclassing (which should be used in a cellular automaton),
    In fact there are only 3 classes that are necessary to understand my problem:
    - Cell (abstract)
    - CellularAutomaton
    - SubclassedCell (extends Cell)
    These classeses work as follows:
    A cellular automaton holds some cell's with respect to the order they were added. The cell itself holds some properties and the most important function in this small "framework". This function is "performCellAction(CellularAutomaton ca)". It retrieves the "neighbor" cells from the given parameter and calculates a new state using these neighbors.
    The way i implemented this using generics is:
    public class CellularAutomaton<T extends Cell>{
      private List<T> cells;
      public T getLeftNeighbor(T cell) { ... } // gets the left neighbor of the given cell
      public T getRightNeighbor(T cell) { ... } // gets the left neighbor of the given cell
    public abstract class Cell [
      public void performCellAction(CellularAutomaton<? extends Cell> ca) {}
    public class SubclassedCell extends Cell {
      private String str;
      public void performCellAction(CellularAutomaton<? extends Cell> ca) {
        Cell left = ca.getLeftNeighbor();
        // PROBLEM:
        // How to call left.getStr() here???
        // How can i be sure that ca contains objects of class subclassedCell (or objects of subclasses of subclassedCell) ... and not objects of class cell or another subclasses cell
      public String getStr() {}
    }In fact i found "something like a solution", which looks like this:
    public class CellularAutomaton<T extends Cell>{
      private List<T> cells;
      public T getLeftNeighbor(T cell) { ... } // gets the left neighbor of the given cell
      public T getRightNeighbor(T cell) { ... } // gets the left neighbor of the given cell
      public void computer() {
        for (T cell: cells) {
          // compiler warning here!!
          cell.performCellAction(this);
    public abstract class Cell<T extends Cell<?>> [
      public void performCellAction(CellularAutomaton<T> ca) {}
    public class SubclassedCell extends Cell<SubclassedCell> {
      private String str;
      performCellAction(CellularAutomaton<SubclassedCell> ca) {
        SubclassedCell left = ca.getLeftNeighbor();
        left.getStr(); // works here
      public String getStr() {}
    }However, even in this "working" solution i get a compiler warning at the method CellularAutomaton->computer():
    The warning is Type safety: The method performCellAction(CellularAutomaton) belongs to the raw type Cell. References to generic type Cell<T> should be parametrized and Cell<T extends Cell<?>> also looks very uncommon to me.
    Is there a betted way to achieve the goal to access left.getStr() in the performCellAction of the subclassed cell??
    Regards,
    Niko

    I thought of that myself, but if i do this, i get the following error:
    The method performCellAction(CellularAutomaton<capture#1-of ?>) in the type Cell<capture#1-of ?> is not applicable for the arguments (CellularAutomaton<T>)

  • Generic delta with function module

    Hi Gurus,
    Is it possible to create a generic DataSource with delta support using function module following the queue delta mechanism (u can get some function moduel in MCEX function group, and check the outbound delta queue before and after update in transaction smq1.
    I can store the delta data using qRFC and collective update mechanism. but I don't know how to create a generic data with delta and how to attach a rfc destination (& logical system) to the data source. The Source system information is stored in the table "ROOSGEN".  Is there any configuration setting required to do the same.
    Regards,
    Jugal

    Jugal,
    What I understand you to be asking is if it is possible to create a generic delta extractor which uses the delta queue. If this indeed is your question the answer is yes.
    First you need to create your data source so it is visible via tx RSA5 and need to make sure that the delta type (ie ABR, AIM)is set appropriately for the datasource.
    The issue however is determining from where you will associate your delta hook (when will you write to the queue)? I have in the past utilized BTE's, Business Transaction Events to write information out to the delta queue, you can see a list of available BTE's in your system via tx FINF.
    Once you find a place to write your deltas from you call the below FM with the appropriate datasource.
    RSC1_TRFC_QUEUE_WRITE.
    Once you have done this the standard BW extractor for deltas will pull the information from the delta queue. But from what I understand you just want to know how to associate the data with the delta and that is the FM listed above.
    Hope this helps,
    Cheers,
    Scott
    > Hi Gurus,
    >
    > Is it possible to create a generic DataSource with
    > delta support using function module following the
    > queue delta mechanism (u can get some function moduel
    > in MCEX function group, and check the outbound delta
    > queue before and after update in transaction smq1.
    > I can store the delta data using qRFC and collective
    > update mechanism. but I don't know how to create a
    > generic data with delta and how to attach a rfc
    > destination (& logical system) to the data source.
    > The Source system information is stored in the table
    > "ROOSGEN".  Is there any configuration setting
    > required to do the same.
    >
    > Regards,
    > Jugal

  • Does voltage output matter when using an adapter with the macbook???????

    i have a generic ac adapter modified with a magsafe plug it works fine on macbook pro i tested it
    it is 18.5 volts output 85watts
    will it work ok on macbook???

    i know that info im trying to find out if using an 18.5 volt universal adapter with a magsafe plug thats 85 watts will it work on a macbook
    will the 18.5 volt be too much.....and the 85 watts be ok
    note: this is not an apple adapter its a generic one with a magsage plug on it
    please dont tell me what is recommended tell me if it will work or not
    recommndations are just money making lies from manufacturers to make money

  • Attach doc from external content server- using Generic Object Service (GOS)

    Dear All,
    i have intergrated an external content server to SAP using SAP archive link. All the scanned document are there in Content server and corresponding entries are done in SAP.I can search and view document using tcode : OAAD
    Please tell me steps for "how to attach a document from external content server using Generic Object Service "
    Scenario is :  For example when we change any Master records or create a new PO, or do some financial transaction then i need to attach the supporting document which is there in my content server connected  to SAP.how do we manual attach a Document in SAP using GOS.
    Do we need to do some special configuration to use GOS .please give the steps from initial.
    Thanks
    sandeep

    Hello,
    Check your configuration of document type assignement to required business document - object type, Archivelink table, content repository in OAC3 transaction.
    Goto respective business document > Click on GOS > Create > Store business document - Here you can see defined document type with desctiption. Double click on this the assign your document to this business document. Save it.
    This will help in attaching the document to your required business document.
    To verify you can check the archivelink table or by transaction OAAD.
    Hope this will help you.
    -Thanks,
    Ajay

  • How to attach document using Generic Object Service

    Hi all,
    How can i create attachment to the parked invoice using Generic Object services? i want function modules which are used to do it.
    Actually I want to do this from the business object method. I am having word document as one of the workitem step. once i get this document I need to attach this document to the parked invoice so that users can see that document by view object list.
    Its urgent.
    thanks.

    Hello,
    Check your configuration of document type assignement to required business document - object type, Archivelink table, content repository in OAC3 transaction.
    Goto respective business document > Click on GOS > Create > Store business document - Here you can see defined document type with desctiption. Double click on this the assign your document to this business document. Save it.
    This will help in attaching the document to your required business document.
    To verify you can check the archivelink table or by transaction OAAD.
    Hope this will help you.
    -Thanks,
    Ajay

  • Attach Documents using Generic Object Services

    With reference to Manual Bassani's SDN Contribution of code examples on how to attach documents using Generic Object Services - we have found that since implementing ECC 6 the following code no longer works (at the end of page 9):
    CALL CREATE ATTACHMENT SERVICE FROM TOOLBAR
    WHEN 'ATTACH'.
    CALL METHOD MANAGER->START_SERVICE_DIRECT
    EXPORTING
    IP_SERVICE = 'CREATE_ATTA'
    IS_OBJECT = OBJ
    EXCEPTIONS
    NO_OBJECT = 1
    OBJECT_INVALID = 2
    EXECUTION_FAILED = 3
    OTHERS = 4.
    It is necessary to use IP_SERVICE = 'PCATTA_CREA' to get this to function correctly.
    The original document can be found at [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/0e6b0d95-0a01-0010-4696-ca0a48de5fb3]

    Check the Naimesh Patel Blog he explain very well
    http://help-abap.blogspot.com/2009/02/generic-object-services-gos-toolbar.html

Maybe you are looking for

  • Error in File content Conversion

    HI All, I am gettng  "Consistency error: field(s) missing - specify 'lastFieldsOptional' parameter to allow this" What this error means?

  • XMLAnonymizer: namespace deleted

    Hi All, I am trying to use the XMLAnonymizer bean with the Receiver File adapter. My problem is that, the namespace prefix is getting substituted correctly, but the namespace itself is getting deleted from the node. i..e.: the XML looks like this: <n

  • Using share point hosted app

    Hi All, I have a requirement like i need to create a share point hosted app that creates a list  with items and that data should be displayed in a grid in office 365 developer site in one of the page.Please send the javascript code for this.thanksin

  • Zenworks 11.3 ThinClient bundles

    Hi all, After upgrading from 11.2.4 to 11.3, our RDP bundles do not work any more. The message is "error running ThinClient action the system cannot find the specified file". These bundles still work on 11.2.4. I have seen this TID 7013051 and have t

  • Equal Number Of Entries For Each Group

    Hi, I have been working on the problem off and on for a couple of weeks. I posted a simplified version of the question earlier and got good answers but the problem was not in the answers but how I asked the question. My issue is this: I have a large