SBC-EC9100 User Manual
Embest Technology Co. Ltd
|
http://www.embest-tech.com
22
Chapter 3
System Compilation
3.1
Building Development Environment
Copy the SBC-EC9100-Release-REV01 folder to Linux’s $HOME directory, while the compilation tool
fsl-linaro-toolchain-master.tar.gz locate under path $HOME/S5_Tool. Use the following instructions to extract it:
$tar –xzvf fsl-linaro-toolchain-master.tar.gz
Import the environment variable:
$export CROSS_COMPILE=$HOME/S5_Tool/fsl-linaro-toolchain-master/bin/arm-fsl-linux-gnueabi-
$export ARCH=arm
3.2
Compiling U-Boot
3.2.1
Get the U-Boot Source Code
U-boot source code locates under path $HOME/S4_Sourcecode, extract the u-boot*.tar.gz:
$ cd $HOME/S4_Sourcecode
$ tar -xzvf u-boot*.tar.gz
3.2.2
Compile and Burn the Images to SD Card
$ cd $HOME/S4_Sourcecode/u-boot
$ make distclean
$make embest_fsl_ec9100_sdcard_defconfig
$make
When the compilation finished, it will generate a
u-boot.imx
under path $HOME/S4_Sourcecode/u-boot. Burn
this file to SD Card use dd command:
$ sudo dd if=u-boot.imx of=/dev/sdx bs=512 seek=2 conv=fsync
Note: You need to change sdx to the actual SD card name on your Linux system like sda, sdb, etc.