Setenv.sh; Build Instructions; Build Linux Kernel Image "Uimage - Advantech RSB-4210 Evaluation Kit User Manual

Evaluation kit, freescale i.mx53 processor -arm cortex a8 architecture
Table of Contents

Advertisement

3. Type user password
4. Type #cd Desktop/RSB-4210_Linux_source_code/scripts/
5. Type #. setenv.sh (To configure the developing environment automatically)
6. Then you can start to code the source code, build images, or compile applications
...etc.
3.2.1

setenv.sh

This script is used to configure the developing environment quickly. It will
configure the important folder paths for system. And you also can add/modify the
setenv.sh by yourself if you have added/changed the folder paths.
The default code of setenv.sh is shown as following.
#!/bin/bash
export SRCROOT=${PWD}/..
export CC_PATH=${SRCROOT}/cross_compiler/arm-fsl-linux-gnueabi
export CROSS_COMPILE=$CC_PATH/bin/arm-none-linux-gnueabi-
export ARCH=arm
export KROOT=${SRCROOT}/source/linux-2.6.35.3
export ROOTFS=${SRCROOT}/rootfs
export LOG=${SRCROOT}/Build.log
rm -rf ${LOG}
Note! You have to run this "setenv.sh" once you open a new "Terminal" utility every
time.
Note! Suggest change to "root" authority to use the source code.
3.3

Build instructions

This section will guide you how to build the Linux kernel - "uImage".
3.3.1

Build Linux Kernel image "uImage"

Advantech has written a script to build the "uImage" quickly. You can refer below
steps to do it.
1. Open "Terminal" utility
2. Type #sudo su (Change to "root" authority)
3. Type user password
4. Type #cd Desktop/RSB-4210_Linux_source_code/scripts/
5. Type #. setenv.sh (To configure the developing environment automatically)
6. Type #. cfg_kernel.sh (To set the uImage configuration automatically)
7. Type #. mk_kernel.sh (Start to build the uImage)
8. Then you can see "uImage" under folder "image"
9. Finish
59
RSB-4210 Evaluation Kit User Manual

Advertisement

Table of Contents
loading

Table of Contents