Skip to content

Commit

Permalink
SKA-503: SKA GLIO (GPIO mode) readme is misleading (#25)
Browse files Browse the repository at this point in the history
- fixed readme
  • Loading branch information
VSvenMorgenthaler authored and GitHub Enterprise committed May 16, 2024
1 parent 816f52e commit 4355a85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gpio/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ For this demo some GPIO chips have to be simulated. There are multiple ways to d
- [gpio-mockup](https://docs.kernel.org/admin-guide/gpio/gpio-mockup.html): it needs to be built with the Linux kernel, that is the reason why we don't provide further information for this module.
- [gpio-sim](https://docs.kernel.org/admin-guide/gpio/gpio-sim.html): **requires Linux kernel version v5.17-rc1 or higher**. This is the module used to simulate GPIO chips in this demo.

To create two GPIO chips like in the following diagram you can run ``sudo ./gpio/demos/create_gpio_sim.sh``. This script sets up the GPIO chips using the gpio-sim module and creates the two character devices which appear on the system as ``/dev/gpiochip0`` and ``/dev/gpiochip1``.
To create two GPIO chips like in the following diagram you can run ``sudo ./gpio/demos/create_gpio_sim.sh``. This script sets up the GPIO chips using the gpio-sim module and creates the two instances which appear on the file system as ``/dev/gpiochip0`` and ``/dev/gpiochip1``.

The following diagram illustrates the data flow going through each component involved.

Expand Down Expand Up @@ -34,7 +34,7 @@ The following diagram illustrates the data flow going through each component inv
+-------------------+
```

**Note 1:** In order to avoid running the GLIO adapter as sudo, you should change the owner of the two character devices to you instead of root. This can be done by the following command:
**Note 1:** In order to avoid running the GLIO adapter as sudo, you should change the owner of the two GPIO chips to you instead of root. This can be done by the following command:
```
sudo chown <new_owner> /dev/gpiochip*
```
Expand Down

0 comments on commit 4355a85

Please sign in to comment.