Http://bbs.elecfans.com/jishu_487981_1_1.html
The following actions are done under root user
1, download Cross compiler
Download the Arm-2010.09-62-arm-xilinxa9-linux-gnueabi.bin installation file in Ubuntu, and put it in the <mypath>/tools/
2, sync Xilinx Linux kernel
mkdir <mypath>/kernel
CD <mypath>/kernel
git clone git://git.xilinx.com/linux-2.6-xlnx.git
When the download is complete,
CD <mypath>/kernel/
Ls
There is a new folder Linux-2.6-xlnx, this is ZYNQ Linux kernel code. Note that although there is a 2.6 in the name, the actual kernel is 3.3, because this is the mainline version, the download is xilinxpatch the latest kernel. Maybe you are 3.4/3.5 when you are in sync.
If your network does not support git, you can use the HTTP Proxy service, first create a git-proxy.sh file, write it in:
#!/bin/sh
EXEC corkscrew <name of proxy server> <port> $*
And then export it,
Bash> export git_proxy_command= "/<path>/git-proxy.sh"
3, installing the cross compiler
CD/<mypath>/tools/
chmod 755 Arm-2010.09-62-arm-xilinxa9-linux-gnueabi.bin
./Arm-2010.09-62-arm-xilinxa9-linux-gnueabi.bin
Then appeared the installation interface, choose the folder installed and so on, you can set up, too troublesome to go all the way to enter or "yes" on the line. But remember to install the directory, this time to compile the use of ....
4, setting the cross-compilation environment
Download the Ia32-libs library,
Apt-get Install Ia32-libs
Set up:
Export cross_compile=arm-xilinxa9-linux-gnueabi-
Export Path=/<mypath>/codesourcery/sourcery_g++_lite/bin: $PATH
Note the two commands on the official website are not updated, do not copy-past
5, compile the ZYNQ kernel
Use the ZYNQ7010 board configuration to test the environment:
CD/<MYPATH>/KERNEL/LINUX-2.6-XLNX
Make Arch=arm Xilinx_zynq_defconfig--Configure the kernel
Make Arch=arm--compile
It will take a few minutes, the compilation is complete, check
Cd/mypath/kernel/linux-2.6-xlnx/arch/arm/boot
The zimage inside is the kernel that was just generated.
ZYNQ build a build environment on Ubuntu