open( /dev/fsio0 ,..) -> no such device or address

  • Hi at all


    I try to use the fsioX option to access the gpios from the picoCOM1-board.


    Using ugpio works... like in the emlix-docu desripted.


    In the PDF picoCOM1.pdf in 8.12 (General Purpose IO) is an other option to handle IOs.


    Using fsio0 to fsio6 should open a device driver.
    This 6 drivers appear in the /dev directory
    /dev/fsio0
    ...
    /dev/fsio6


    But if I try to open one of them I get the eroor message : "No such device or address"


    What can cause this message?
    What must I do to have access like the docu promise?


    It doesn't matter which number I use, from fsio0 to fsio6 the same messages.


    Thanks for any idea


    greetings
    Günter

  • The FSIO and the GPIO drivers are different implementations. Therefore it might not be possible to us both interfaces simultanioulsy.


    To be able to access the FSIO you must configure the driver using boot arguments. Have you specified a set of configuration values in you environment?
    I am wondering if a wrong configuration could result in an "No such device or address" error, so maybe you could check the major and minor number of the available files?

    Software developer, F&S Elektronik Systeme GmbH
    As this is an international forum, please try to post in English.
    Da dies ein internationales Forum ist, bitten wir darum, Beiträge möglichst in Englisch zu verfassen.

  • Hi


    Thanks for reply


    the major is 60 for fsio0 to fsio6
    the minor is 0 to 6


    I haven't changed anything at the boot parameters.
    What should it be?


    And is this sure that both methodes not working together?


    I need ugpio definitely cause and old application use it.


    greetings
    Günter

  • Quote from "GKollmann"

    I haven't changed anything at the boot parameters.
    What should it be?


    You need to set the fsio boot argument. Please refere to chaper 12.2 of the PicoCOM1 documentation for more details.


    Quote from "GKollmann"

    And is this sure that both methodes not working together?


    I am not sure on this, but as both are separatedt implementation they pin-configuration may interfere with each other.

    Software developer, F&S Elektronik Systeme GmbH
    As this is an international forum, please try to post in English.
    Da dies ein internationales Forum ist, bitten wir darum, Beiträge möglichst in Englisch zu verfassen.