Advantech RSB-4680 handleiding
Handleiding
Je bekijkt pagina 42 van 66

RSB-4680 User Manual 34
Problems and Solutions
1. Compiled kernel
2. Compiled android? Please copy this file before compiling
3.3 GPIO
The RK3288 bank/bit notation for GPIOs must be formed as
"GPIO<GPIO_bank>_<gpio_bit>"
The numeric value of GPIO is calculated as follows:
32 x (gpio_bank) + gpio_bit - 8
Group GPIO0 only 24 gpios, so each GPIO Num subtracts 8.
gpio_bit : A0?A7 0-7 B0?B7 8-15 C0?C7 16-23 D0?D7 24-31
E.g. GPIO2_A4 becomes 60
Export GPIO then you can use control GPIO from user space through sysfs.
Export GPIO0
Set GPIO direction to in/out
Set GPIO value 0/1 if GPIO pin define is output
/bin/sh: 1: /home/zengwei/android_rk3288_androi6.0/kernel/scripts/gcc-wrapper.py: Permis-
sion denied
make[1]: *** [kernel/bounds.s] Error 126
make: *** [prepare0] Error 2
make: *** Waiting for unfinished jobs....
HOSTCC scripts/dtc/dtc-parser.tab.o
HOSTLD scripts/dtc/dtc
make: *** [scripts] Error 2
Solution
$ chmod 555 kernel/scripts/gcc-wrapper.py
$ cp .repo/manifests/default.xml manifest.xml
GPIO Number GPIO formed Numeric Representation
GPIO0 GPIO7_A3 219
GPIO1 GPIO7_A4 220
GPIO2 GPIO7_A5 221
GPIO3 GPIO7_C5 237
GPIO4 GPIO8_A2 250
GPIO5 GPIO8_A3 251
GPIO6 GPIO8_A0 248
GPIO7 GPIO8_A1 249
shell@rsb4680:/ $ echo 219 > /sys/class/gpio/export
shell@rsb4680:/ $ echo "out" > /sys/class/gpio/gpio219/direction
shell@rsb4680:/ $ echo 1 > /sys/class/gpio/gpio219/value
Bekijk gratis de handleiding van Advantech RSB-4680, stel vragen en lees de antwoorden op veelvoorkomende problemen, of gebruik onze assistent om sneller informatie in de handleiding te vinden of uitleg te krijgen over specifieke functies.
Productinformatie
Merk | Advantech |
Model | RSB-4680 |
Categorie | Niet gecategoriseerd |
Taal | Nederlands |
Grootte | 8687 MB |