Set Up Build Environment; Setenv.sh - Advantech UBC-220 User Manual

Risc iot box computer powered by freescale i.mx6 dual lite processor arm cortex a9 architecture
Table of Contents

Advertisement

- mm
- net
- security
- sound
- virt
There are plenty of documentations or materials available on Internet and also could
be obtained from books and magazines, you can easily find the answers for both
Linux-specific and general UNIX questions.
There are also various README files in ./source/linux-3.0.35/Documentation, you
can find the kernel-specified installations and notes for drivers. You can refer to ./
source/linux-3.0.35/Documentation/00-INDEX for a list of the purpose of each
README/note.
3.3

Set up Build Environment

All instructions in this guide are based on Ubuntu 10.04 LTS developing environment.
Please install the Ubuntu 10.04 LTS at your PC/NB in advance.
When you obtain the UBC-220 Linux source code package, please refer to following
instructions to extract to your developing environment:
1.
Copy "U220LBV2660" package to your desktop.
2.
Start your "Terminal" on Ubuntu 10.04 LTS.
3.
$sudo su (Change to "root" authority)
4.
Input user password
5.
#cd Desktop/
6.
#tar xvf U220LBV2660.tgz (Unzip file)
Advantech offer you a script to setup the developing environment quickly. You can
refer following steps to setup your developing environment:
1.
Open "Terminal" on Ubuntu 10.04 LTS.
2.
$sudo su (Change to "root" authority).
3.
Input user password.
4.
Change directory to BSP's scripts folder.
5.
#. setenv.sh (To configure the developing environment automatically)
6.
Then you can start to code the source code, build images, or compile applica-
tions.
3.3.1

setenv.sh

This script is used to configure the developing environment quickly. It will configure
the folder paths for system, and you can also add/modify the setenv.sh by yourself if
you have added/changed the folders and paths.
The major part of setenv.sh is shown as following:
export SRCROOT=${PWD}/..
export CC_PATH=${SRCROOT}/cross_compiler/fsl-linaro-toolchain
export CROSS_COMPILE=${CC_PATH}/bin/arm-none-linux-gnueabi-
export CC=${CROSS_COMPILE}gcc
export STRIP=${CROSS_COMPILE}strip
export ARCH=$rm
export KROOT=${SRCROOT}/source/linux-3.0.35
export UBOOT_SOURCE=${SRCROOT}/source/u-boot-2009.08
-->The data related the memory.
--> The data related the network.
-->The security setting.
-->The module related audio.
-->The data related the virtual machine.
33
UBC-220 User Manual

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ubc-220dl-mda1e

Table of Contents