RSB-4221 User Manual
44
6.
Then you can start to code the source code, build images, or compile applica-
tions.
4.3.1
setenv.sh
This script is used to configure the development 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.
4.4
Build Instructions
This section will guide you how to build the u-boot & Linux kernel.
4.4.1
Build u-boot Image
Advantech has written a script to build the u-boot quickly. You can build u-boot image
by follow below steps:
1.
Open "Terminal" on Ubuntu 12.04 LTS..
2.
$sudo su
(Change to “root” authority)
3.
Input user password.
4.
#cd /root/335XLBVxxxx_yyyy-mm-dd/scripts/
5.
#. setenv.sh
(To configure the development environment automatically)
6.
#./cfg_uboot am335x_rsb4221
(To set the u-boot configuration automatically)
7.
#./mk_uboot.sh
(Start to build the u-boot)
8.
Then you can see u-boot.imgis being built and located in ../image.
4.4.2
Build Linux Kernel Image
Advantech offer you a script to build the “uImage” quickly. You can build uImage by
follow below steps:
1.
Open "Terminal" on Ubuntu 12.04 LTS.
2.
$sudo su
(Change to “root” authority)
3.
Input user password.
4.
#cd /root/335XLBVxxxx_yyyy-mm-dd/scripts/
5.
#. setenv.sh
(To configure the development environment automatically)
6.
#./cfg_kernel.sh am335x_rsb4221_defconfig
(To set the uImage configu-
ration automatically)
7.
#./mk_kernel.sh
(Start to build the uImage)
8.
Then you can see uImage is being built and located in ../image.
4.4.3
Build Log
You can find the build log from folder “./335XLBVxxxx_yyyy-mm-dd/”. If you got any
error message when building Linux kernel, it is suggested to look into the log file to
learn more.
Note!
You have to run “#source setenv.sh” every time once you open a new
"Terminal" utility.
It is suggested to change to “root” authority to use the source code.
Summary of Contents for RSB-4221
Page 6: ...RSB 4221 User Manual vi...
Page 10: ...RSB 4221 User Manual x...
Page 14: ...RSB 4221 User Manual 4...
Page 33: ...23 RSB 4221 User Manual Chapter 2 H W Installation 2 3 2 Board Dimension...
Page 48: ...RSB 4221 User Manual 38...