Gpio - Advantech RSB-4710 User Manual

3.5” single-board computer with rockchip arm cortex-a72 processor
Table of Contents

Advertisement

To build a system image
Perform the following command in the terminal console.
$ source build/envsetup.sh
$ lunch rk3399_rsb4710-userdebug
$ make -j4 2>&1 | tee build-log.txt
$./mkimage.sh
All Android images will be generated in the rockdev/Image- rk3399_rsb4710/ folder.
The common image files are listed below.
# boot.img
# kernel.img
# misc.img
mode.
# recovery.img
# resource.img
# system.img
# uboot.img
#trust.img
: trust zome image
# MiniLoaderAll.bin :Loader
3.3

GPIO

The RK3399 bank/bit notation for GPIOs must be formed as "GPIO<GPI-
O_bank>_<gpio_bit>".
The numeric value of GPIO is calculated as follows:
32 x (gpio_bank) + gpio_bit
gpio_bit : A0?A7 0-7 B0?B7 8-15 C0?C7 16-23 D0?D7 24-31
E.g. GPIO2_B0 becomes 72
GPIO Number
GPIO1
GPIO2
GPIO4
GPIO5
GPIO6
Export GPIO in order to use control GPIO from the user space through sysfs.
Export GPIO1.
$ echo 72 > /sys/class/gpio/export
Set GPIO direction to in/out.
$ echo "out" > /sys/class/gpio/gpio72/direction
RSB-4710 User Manual
: Android's initramfs, to initialize and mount system partition.
: Kernel image.
: Misc partition image, to switch boot mode and pass parameter in recovery
: Recovery mode image.
: Resource image, containing boot logo and kernel's device tree info.
: System partition image with ext4 filesystem format.
:uboot
GPIO formed
GPIO2_B0
GPIO1_C2
GPIO3_D4
GPIO4_A4
GPIO0_B0
Numeric Representation
72
50
124
132
8
40

Advertisement

Table of Contents
loading

Table of Contents