MIPs 1004k processor build cross tool chain in CentOS-5.2 (RedHat performanise5.1) cross compile toolchains

Source: Internet
Author: User

We have recently established a cross-tool chain for the MIPs K processor:

HOST: PC (32-bit)

Virtual Machine: virtualbox

Linux: CentOS-5.2

Target machine: Development Board with mips k Processor

Linux version and package: linux-mti-2.6.35.9-2.tar.gz

Cross tool chain: Mips-4.4-303-mips-linux-gnu-i686-pc-linux-gnu.tar.bz2

1. decompress the linux package:

Linux-mti-2.6.35.9-2.tar.gz in/path directory

CD/path/kernel

Tar-xjvf ../linux-mti-2.6.35.9-2.tar.gz

2. decompress and install toolchains

Gzmips-4.4-303-mips-linux-gnu-i686-pc-linux-gnu.tar.bz2 located in/temp/tools

Tar-xjvf/temp/tools/mips-4.4-303-mips-linux-gnu-i686-pc-linux-gnu.tar.bz2

Export Path =/temp/tools/toolschains/mips-4.4/bin: $ path

 

3. Set Environment Variables

View the directory starting with/temp/tools/toolschains/mips-4.4/bin similar to MIPS-Linux-GNU-

Open the/etc/profile file, add a line by referring to pathmunge in it, save and exit.

Pathmunge/temp/tools/toolschains/mips-4.4/bin

Run source/etc/profile to replace MIPS-Linux-GNU-with make.

4. Modify related configurations and compile the kernel.

Go to the linux-mti-2.6.35.9-2 top-level directory and modify the MAKEFILE file.

Set arch and cross_compile to following:

Arch? = MIPS

Cross_compile? = MIPS-Linux-GNU-

Run the following command to enable it when you start the system:

Source/etc/profile

Related Article

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.