Set Up Build Environment; Setenv.sh - Advantech ROM-5420 User Manual

Risc-based smarc module with freescale i.mx6 arm cortex a9 processor
Table of Contents

Advertisement

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 ROM-5420 Linux source code package, please refer to follow-
ing instructions to extract to your developing environment:
1.
Copy "5420LBVxxxx.tar.bz2" package to your desktop. "xxxx" is the version of
the BSP source code.
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 5420LBVxxxx.tar.bz2 (Unzip file)
7.
Then you can see folder "7420LBVxxxx" on desktop.
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 follows:
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=arm
export KROOT=${SRCROOT}/source/linux-3.0.35
export ADVBOOT_SOURCE=${SRCROOT}/source/u-boot-2009.08
export UBOOT_SOURCE=${SRCROOT}/source/u-boot-2009.08
export ROOTFS=${SRCROOT}/image/rootfs
export LOG=${SRCROOT}/Build.log
export PATH=${CC_PATH}/bin:${UBOOT_SOURCE}/tools:$PATH
25
ROM-5420 User Manual

Advertisement

Table of Contents
loading

This manual is also suitable for:

Rom-5420cd-mda1e

Table of Contents