RSB-4710 User Manual
40
To build a system image
Perform the following command in the terminal console.
All Android images will be generated in the rockdev/Image- rk3399_rsb4710/ folder.
The common image files are listed below.
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:
gpio_bit : A0
?
A7 0-7 B0
?
B7 8-15 C0
?
C7 16-23 D0
?
D7 24-31
E.g. GPIO2_B0 becomes 72
Export GPIO in order to use control GPIO from the user space through sysfs.
Export GPIO1.
Set GPIO direction to in/out.
$ source build/envsetup.sh
$ lunch rk3399_rsb4710-userdebug
$ make -j4 2>&1 | tee build-log.txt
$./mkimage.sh
# boot.img : Android's initramfs, to initialize and mount system partition.
# kernel.img : Kernel image.
# misc.img : Misc partition image, to switch boot mode and pass parameter in recovery
mode.
# recovery.img : Recovery mode image.
# resource.img : Resource image, containing boot logo and kernel's device tree info.
# system.img : System partition image with ext4 filesystem format.
# uboot.img :uboot
#trust.img : trust zome image
# MiniLoaderAll.bin :Loader
32 x (gpio_bank) + gpio_bit
GPIO Number
GPIO formed
Numeric Representation
GPIO1
GPIO2_B0
72
GPIO2
GPIO1_C2
50
GPIO4
GPIO3_D4
124
GPIO5
GPIO4_A4
132
GPIO6
GPIO0_B0
8
$ echo 72 > /sys/class/gpio/export
$ echo "out" > /sys/class/gpio/gpio72/direction
Summary of Contents for RSB-4710
Page 1: ...User Manual RSB 4710 3 5 Single Board Computer with Rockchip Arm Cortex A72 Processor ...
Page 6: ...RSB 4710 User Manual vi ...
Page 15: ...7 RSB 4710 User Manual Chapter 2 Hardware Installation 2 2 Board Dimensions ...
Page 44: ...RSB 4710 User Manual 36 ...
Page 45: ...Chapter 3 3 Software Functionality This chapter details software functions on RSB 4710 ...
Page 56: ...RSB 4710 User Manual 48 4 Input the password 5 Wi Fi connected ...
Page 69: ...61 RSB 4710 User Manual Chapter 4 Advantech Services ...