Create an ArmLinux Development Environment on Ubuntu

Source: Internet
Author: User
Create a development environment for ArmLinux on Ubuntu-general Linux technology-Linux programming and kernel information. The following is a detailed description. I used a friendly 2410 board. I used to use Fedora. Now my computer at home is converted to Linux and installed with Ubuntu. However, embedded systems still need to be used, and there are also some minor problems during the loading process. Here we record that we are relatively forgetful, and hope to give some people who have never done so some inspiration.

Purpose:

Install and configure the cross-development environment, kernel, filesystem, and bootloder of ARM linux so that it can compile bootloder, kernel, and nfs to update the file system;

Resource:

Code:

Arm-linux-toolchains.tgz

Matrix5-kernel-v5.5.tgz

Vivi.tar.gz

Jflash. tgz

Root-for-nfs-v5.5.tgz


Planning:

Cross-compiler installation:/usr/local/

Kernel, bootloder put in:/home/volans/arm/

The nfs file system used to start is stored in:/home/armnfs/


Preparations:

Code:

Sudo mkdir/home/armnfs

Sudo chmod 777/home/armnfs

Mkdir ~ /Arm

The preceding two sentences aim to create an armnfs directory under/home. For the convenience of Development, set this directory to rwx for all users.

Then copy all the resources mentioned above ~ /Arm.


Installation Configuration:

Code:

Install the Standard C development environment. Because Ubuntu is not installed by default, you need to install it first:

Sudo apt-get install gcc g ++ libgpc3 libg ++ make gdb


Code:

Install the Cross Compiler

Cd/

Sudo tar zxvf/home/volans/arm/arm-linux-toolchains.tgz

Check whether the/usr/local/arm folder exists after execution.

Add the PATH of the cross compiler to the PATH for ease of use:

Sudo vi/etc/bash_bashrc

Add the following code:

If [-d/usr/local/arm]; then

PATH =/usr/local/arm/2.95.3/bin: "$ {PATH }"

Fi


Code:

Decompress bootloader, kernel, and flash burning tool Jflash.

Cd ~ /Arm

Tar zxvf matrix5-kernel-v5.5.tgz

Tar zxvf vivi.tar.gz

Tar zxvf Jflash. tgz


Code:

Decompress the NFS file system for startup

Cd/home/armnfs

Tar zxvf/home/volans/root-for-nfs-v5.5.tgz


Code:

Start NFS service

Refer to my previous articles about how to start an NFS server.

Add the following content to/etc/exports:

/Home/armnfs/root 192.168.0.69 (rw)


Code:

Install ncurse

Basically, the above configuration can basically meet the development requirements, but when we compile the kernel or vivi, running make menuconfig will prompt that ncurses cannot be found, because menuconfig uses the ncurses library. The solution is as follows:

Sudo apt-get install ncurses-dev


Code:

Install minicom serial port Tool

Sudo atp-get install minicom

Then configure:

Sudo minicom-s

Configuration and friendly documents are the same, so I don't talk nonsense.


There is nothing else. There are two points to note: the nfs shared directory is/home/armnfs/root, so replace the shared directory with this when starting the target version with NFS.
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.