Build an embedded elementary development environment under Ubuntu10.10

Source: Internet
Author: User
HOST: X86 + Ubuntu10.10, networking 1. download and install the cross compiler. The compiler I use is arm-linux-gcc4.3.2, under the friendly arm of the web site. You only need to unzip the package. Tar-zxvfarm-linux-gcc-4.3.2.tgz to get the folder usr, copy the arm directory inside to: sudomvusr/local/arm/usr/local next as long as you set the environment variables, you can

HOST: X86 + Ubuntu 10.10, networking

1. download and install the cross compiler.

The compiler I use is arm-linux-gcc4.3.2, under the friendly arm of the web site.

You only need to unzip the package.

Tar-zxvf arm-linux-gcc-4.3.2.tgz

Get the usr folder and copy the arm directory to it:

Sudo mv usr/local/arm/usr/local

Next, you only need to set the environment variables. The environment variables can be set to global or available on the current terminal:

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

Run: arm-linux-gcc-v to view the version information.

The use of cross-compiler is the same as that of gcc.

2. Install the serial communication tool: minicom

In any case, minicom is a classic and practical serial communication tool. The installation is as follows:

Sudo apt-get install minicom

Configuration:

Sudo minicom-s

Select Serial port setup and configure the port (the configuration varies with the connection mode of the Development Board and Serial port ).For example:

After configuration, press enter, select Save setup as dfl, and press enter to Save

Use: After the wire is connected, enter minicom on the terminal to open the serial port.

3. Install nfs (Network File System)

To facilitate debugging, you do not need to download the program to the Development Board every time.

Install: sudo apt-get install nfs-kernel-server

Configure hosts. deny: (disallow connection. The permission is less than permitted)

Sudo gedit/etc/hosts. deny

Modify as follows:

Portmap: ALL

Lockd: ALL

Mountd: ALL

Rquotad: ALL

Statd: ALL

Configure hosts. allow: (allow connection)

Sudo gedit/etc/hosts. allow

Modify the settings as follows: (the host with the IP address range 192.168.1 can be accessed)

Portmap: 192.168.1 .*

Lockd: 192.168.1 .*

Rquotad: 192.168.1 .*

Mountd: 192.168.1 .*

Statd: 192.168.1 .*

Note: After configuring hosts. deny and hosts. allow, restart the portmap daemon service: sudo service portmap restart.

Configure NFS mounting permission: sudo gedit/etc/exports

Share as root directory:/192.168.1. * (rw, sync, no_root_squash)

Then restart NFS:

Sudo service nfs-kernel-server restart

In this way, NFS is installed.

Connect the PC to the Development Board with a network cable and set the Host IP Address: ifconfig eth0 192.168.1.26

Set the IP address of the Development Board (first go to linux): ifconfig eth0 192.168.1.11

You can ping to check whether the PC and the Development Board are connected.

If there is no problem, you can mount it.

Start minicom, power on the Development Board, enter linux, and press enter to activate the terminal.

Input: mount-o nolock 192.168.1.26: // mnt

If no error occurs, mount the PC root directory to the/mnt directory of the Development Board.

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.