40-pin HAT I/O header

Options
DOUBREMELLE
DOUBREMELLE New Member Posts: 4
edited March 2017 in UP Squared Linux
Hi,

I install ubuntu 16.04.4 ($ cat /proc/version) patch with linux-upboard (ref : https://up-community.org/wiki/Ubuntu)

and when I try to access I/O (ref : https://up-community.org/wiki/Pinout)

I have error : "bash : echo erreur d'écriture : Argument invalide"

I see https://up-community.org/forum/announcements/866-up-board-4-4-linux-kernel-for-ubuntu-16-04-and-14-04-is-now-available

but for me I have not gpiochip0, only gpiochip267, gpiochip310, gpiochip357, gpiochip434

Somebody I perhaps tips to solve this problem ?

- Scooby

Comments

  • DOUBREMELLE
    DOUBREMELLE New Member Posts: 4
    edited March 2017
    Options
    $ uname -r
    4.4.0-2-upboard

    $ ls /dev/tty
    tty tty17 tty26 tty35 tty44 tty53 tty62
    tty0 tty18 tty27 tty36 tty45 tty54 tty63
    tty1 tty19 tty28 tty37 tty46 tty55 tty7
    tty10 tty2 tty29 tty38 tty47 tty56 tty8
    tty11 tty20 tty3 tty39 tty48 tty57 tty9
    tty12 tty21 tty30 tty4 tty49 tty58 ttyprintk
    tty13 tty22 tty31 tty40 tty5 tty59 ttyS0
    tty14 tty23 tty32 tty41 tty50 tty6 ttyS1
    tty15 tty24 tty33 tty42 tty51 tty60 ttyS2
    tty16 tty25 tty34 tty43 tty52 tty61 ttyS3

    $ ls /sys/class/gpio/
    export gpiochip267 gpiochip310 gpiochip357 gpiochip434 unexport

    # echo 26 > /sys/class/gpio/export
    bash: echo: erreur d'écriture : Argument invalide



    --Scooby
  • WereCatf
    WereCatf New Member Posts: 201
    Options
    The pinout and the instructions on the wiki are for UP1, not UP^2. On the UP^2 the GPIO-numbering is different.
  • DOUBREMELLE
    DOUBREMELLE New Member Posts: 4
    edited March 2017
    Options
    hi

    I had seen the differences, but what is the workaround ... ?

    I would have more information for example
    - where find source code of the package "linux-upboard",
    - How to build and recompile it,
    - What change between up1 and up^2 ?

    I need and should use I / O header :( ,
    so if someone can tell me how to make it functional ... :cheer:

    - Scooby
Privacy Policy