Customization; Test Tools; Gpio - Advantech UBC-221 User Manual

Table of Contents

Advertisement

3.1.3

Customization

3.1.3.1
Setting up SDK
1.
Please follow the steps below to build a toolchain installer.
2.
Perform the following command in the terminal console:
$ cd ${BSP_HOME}/${BDIR}/tmp/deploy/sdk
$ sudo ./clanton-tiny-uclibc-x86_64-i586-toolchain-${POKY}.sh
3.
Enter directory or press Enter when the following question appears:
4.
Just press Enter when the following question shows up:
5.
When the following message shows up it means the SDK is ready.
3.1.3.2
Setting up a cross compiling environment
1.
SDK has been set up. (ref. 2.2)
2.
Perform the following command in the terminal console
$ source /opt/clanton-tiny/${POKY}/environment-setup-i586-poky-linux-uclibc
3.2

Test tools

All test tools must be verified on UBC-221, please prepare the required test fixtures
before verifying each specified I/O. If you have any problems getting the test fixture,
please contact your Advantech contact window for help.
3.2.1

GPIO

# echo 0 > /sys/class/gpio/export
# echo 1 > /sys/class/gpio/export
# echo 2 > /sys/class/gpio/export
# echo 3 > /sys/class/gpio/export
# echo "out" > /sys/class/gpio/gpio0/direction
# echo "out" > /sys/class/gpio/gpio1/direction
# echo "in" > /sys/class/gpio/gpio2/direction
# echo "in" > /sys/class/gpio/gpio3/direction
# grep "" /sys/class/gpio/gpio{0..3}/direction
19
UBC-221 User Manual

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ubc-221cs-gna1e

Table of Contents