User manual

3.4.2 system complie
3.4.2.1 Preparation
The source code of each part of the system is under the linux/source of CD. Users can copy it to
the system and unzip it before developing. For example:
mkdir /home/embest/work
cd /home/embest/work
tar xvf /media/cdrom/linux/source/ x-loader-03.00.00.04.tar.bz2
tar xvf /media/cdrom/linux/source/ u-boot-03.00.00.04.tar.bz2
tar xvf /media/cdrom/linux/source/ linux-03.00.00.04.tar.bz2
sudo tar xvf /media/cdrom/linux/source/rootfs.tar.bz2
When the above steps are finished, the current directory will generate linux-2.6.22-omap,
u-boot-1.3.3 and x-load-1.41 these three directories.
3.4.2.2 x-loader image generated
DevKit8200 supports MMC/SD boot or NAND boot. The burned x-loader image files are
different with the different boot modes, and the corresponding methods for mapping will differ
too.
We will introduce the generation of x-loader image file under different boot modes.
1. To generate x-loader image file MLO used for SD card start-up
When the above steps are finished, the current directory will generate the file MLO we need.
cd x-load-03.00.00.04
make distclean
make am3517evm_config
make
signGP x-load.bin
mv x-load.bin.ift MLO
2. To generate the x-load.bin.ift_for_NAND start-up
1)To alter the file x-loader-1.4.1/include/configs/am3517evm.h and annotate the following:
vi x-loader-03.00.00.04/include/configs/am3517evm.h
//#define CONFIG_MMC 1
(2)Cross compilation
cd x-load-1.41
make distclean
make am3517evm _config
make
signGP x-load.bin
mv x-load.bin.ift x-load.bin.ift_for_NAND
Users can put it into the barsrc file, and the adding of environment variable can
be finished as the system starts.