Construction of MIPS cross-compiling environment under ubuntu14.04 system

Source: Internet
Author: User
Tags root directory

1. Install the necessary software

2. Download the decompression BuildRoot

3. Configuring the Compilation

4. Setting Environment variables


1. Install the necessary software

sudo apt-get install build-essential Bison Flex


2. Download the decompression BuildRoot

Http://buildroot.uclibc.org/downloads/snapshots Choose the version you need to download

Download after decompression, I was extracted into the KT folder


3. Configuring the Compilation

(1) Go to the BuildRoot folder and execute make Menuconfig

Popup interactive interface, Taget architecture Select MIPS

Toolchain Selecting the required compilation tools

After the configuration is saved, a config file is generated

(2) Execute compile, execute make at BuildRoot root directory

(wait quietly, I spent two hours to compile the completion)

(3) Check the following files exist in the/buildroot/output/host/usr/bin/directory



4. Setting Environment variables

(1) Add environment variable export path= $PATH:/buildroot/output/host/usr/bin

(2) Check echo $PATH

MIPS-LINUX-GCC--version

Complete....

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.