ZYNQ build a build environment on Ubuntu

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.