Build a cross-compiling environment for Mini2440 in Ubuntu

Source: Internet
Author: User
Three Versions of arm-linux-gcc are provided on the Mini2440 cross-compiling environment mini2440 In Ubuntu. They are used to compile the kernel 3.3.2: for compiling Qutopia2.9.5: compile vivi1, extract the first CD directory Linux \ arm-linux-gcc-3.3.2.tgz, arm-linux-gcc-2.95.3.t

Build a cross-compilation environment in Mini2440 in Ubuntu

The mini2440 CD provides three versions of arm-linux-gcc. Their functions are as follows:

3.4.1: used to compile the kernel

3.3.2: used to compile Qutopia

2.9.5: Compile vivi

1. Extract

First copy the arm-linux-gcc-3.3.2.tgz, arm-linux-gcc-2.95.3.tgz, and arm-linux-gcc-3.4.1.tgz in the optical disk directory Linux \ to a directory, without tmp, I put ~ /Arm-linux

# Sudo tar xvzf arm-linux-gcc-3.3.2.tgz-C/

# Sudo tar xvzf arm-linux-gcc-2.95.3.tgz-C/

# Sudo tar xvzf arm-linux-gcc-3.4.1.tgz-C/

At last, I am not very familiar with what to do when creating a working directory .. Not done

# Mkdir-p/opt/FriendlyARM/mini2440

2. Set Environment Variables

Add/usr/local/arm/to the environment variable PATH (the version you want to use, such as 3.4.1)/bin"

The method is to add

Export PATH = $ PATH:/usr/local/arm/3.4.1/bin

After you log on again, it will take effect!

Recently released the latest version of arm-linux-gcc 4.3.2, which can be used for compilation at the same time:

* Linux kernel (linux-2.6.29)

* Qtopia-2.2.0 Graphics System

* Busybox

* Vivi (open-source bootloader)

* U-boot (open-source bootloader)

* Many other linux applications (such as web server, boa, and madplay)

Instead of using three versions of arm-linux-gcc. You can download the latest version from the following address:

Http://www.arm123.com.cn/linux/arm-linux-gcc-4.3.2.tgz

Settings are the same as above!

The following files can be used to set environment variables in Ubuntu:

/Etc/profile: The first file used by the operating system to customize the user environment during login. This file sets environment information for each user in the system. When the user logs on for the first time, the file is executed.

/Etc/environment: the second file used by the operating system during logon. Before the System reads your own profile, it sets the environment variable of the environment File.

~ /. Profile: The third file used for logon is. profile file. Each user can use this file to input shell information dedicated to their own use. When a user logs on, this file is only executed once! By default, it sets some environment variables to execute the user's. bashrc file.

/Etc/bashrc: execute this file for every user running bash shell. When bash shell is opened, the file is read.

~ /. Bashrc: This file contains bash information dedicated to your bash shell. This file is read when you log on and every time you open a new shell.

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.