MYD-Y7Z010/007S Board Linux Development Manual
MYIR Electronics Limited
|
3
/
14
Chapter 2 Build Linux Development Environment
2.1 Establishment Working Directory
Copy the document in MYD-Y7Z010/007S Board DVD disk to the host:
$ mkdir -p <WORKDIR>
$ cp -a <DVDROM>/04-Linux_Source/* <WORKDIR>
2.2 Set Cross Compile Tool
$ cd <WORKDIR>/Toolchain
$ tar xvjf Sourcery_CodeBench_Lite_for_Xilinx_GNU_Linux.tar.bz2
$ export PATH=$PATH:<WORKDIR>/Toolchain/\
CodeSourcery/Sourcery_CodeBench_Lite_for_Xilinx_GNU_Linux/bin
$ export CROSS_COMPILE=arm-xilinx-linux-gnueabi-
After executing the "export" commands, input “arm” and then press the Tab key to check whether
or not the "export" settings has been executed successfully. These settings are only valid for the
current terminal; if it is required to keep them permanently, please add above commands to script
file: “~/.bashrc”
2.3 Install Tool
Install other necessary tools:
$ sudo apt-get install build-essential git-core libncurses5-dev \
flex bison texinfo zip tar zlib1g-dev gettext \
gperf libsdl-dev libesd0-dev libwxgtk2.6-dev \
uboot-mkimage \
g++ xz-utils
Chapter 3 Linux System Compile
3.1 Compile Bootloader
Enter Bootloader director, tar U-boot source code:
$ cd <WORKDIR>/Bootloader