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
Содержание RSB-4680
Страница 1: ...User Manual RSB 4680 RISC Based 3 5 SBC with ROCKCHIP ARM Cortex A17 RK3288 Quad Core processer...
Страница 6: ...RSB 4680 User Manual vi...
Страница 12: ...RSB 4680 User Manual 4...
Страница 35: ...27 RSB 4680 User Manual Chapter 2 H W Installation...
Страница 38: ...RSB 4680 User Manual 30 HyperTerminal Settings for Terminal Setup...
Страница 39: ...Chapter 3 3 Software Functionality This chapter details the software programs on the RSB 4680 plat form...
Страница 47: ...39 RSB 4680 User Manual Chapter 3 Software Functionality 3 7 USB DISK 3 7 1 USB Disk Status...
Страница 48: ...RSB 4680 User Manual 40...
Страница 55: ...47 RSB 4680 User Manual Chapter 3 Software Functionality...
Страница 56: ...RSB 4680 User Manual 48...