Basic experiment of information Security system design: Configuration and use of Linux development environment (20135234,20135229)

Source: Internet
Author: User

Class: 1352

Name: 20135234 Ma Qiyang 20135229 Lu Songhon

Experimental Date: 2015.11.10 15:30-17:30

Experiment Name: Configuration and use of the Linux development environment

Experimental purposes and requirements:
1. Familiar with Linux development environment;
2. Learn the configuration and use of Linux development environment based on s3c2410;
3. compile with Linux ARMV4L-UNKNOWN-LINUX-GCC;
4. Use NFS-based download debugging to understand the basic process of embedded development;
5. Correct use of the cable and other experimental equipment, and pay attention to the protection of the Experimental chamber.

Experimental instrument:

Embedded development Platform UP-NETARM2410-CL;PC Machine

Experimental process:

1. Connecting Arm Development Board
Connect the ARM Development Board power Cord to keep the board switch closed.

And then the serial line, the line and the network cable and the PC connection is good.

2. Build HyperTerminal

Create a new communication terminal, named Arm.

3. Start the experimental platform
Open the HyperTerminal and turn on the arm machine power switch. Wait a minute, the arm machine information will be displayed in the
HyperTerminal in the window.

Continue waiting until the 6 interface is displayed. Enter the Ifconfig command to record the IP of the arm machine
is: 192.168.0.121.

4, modify the XP system and the IP of the Redhat virtual machine, make them all with the arm machine IP in the same network segment.

In the XP system in the PC, set the step 7-9,redhat in the virtual machine
Set the IP of the PC to 192.168.0.55,redhat virtual machine IP to 192.168.0.234.

After modifying the IP, restart the virtual machine, IP to start the role. Use ifconfig on the command line after reboot to confirm correct modification.


5, install the arm compiler.
In the PC "Start", "Run", enter the virtual machine's IP. \\192.168.0.234, input
Username BC, password 123456 then OK

You can access the files for the virtual machine. Then extract the required files to the shared folder BC.

Enter the./install.sh on the command line, and the installation script will be created automatically when you enter the virtual machine.
Directory, configure the compilation environment.

6. Configure Environment variables

Use VI in the virtual machine to modify the PATH variable in the/root/.bash_profile file to
Path= $PATH: $HOME/bin:/opt/host/armv4l/bin/

After disk execution: Source/root/.bash_profile, the
After the armv4l-unknown-linux-gcc will be automatically searched, can be entered on the terminal.

After you save the exit, restart the virtual machine or enter the following command in the virtual machine shell.

7. Build hello.c file and compile
Enter the folder/ROOT/BC in the virtual machine and write the hello.c file in this directory.

Compile the hello.c with the command ARMV4L-UNKNOWN-LINUX-GCC and generate a hello executable file.

8. Download and debug
Mount the shared folder in HyperTerminal to establish communication between the Development Board and the virtual machine.

Enter command "Mount-t nfs-o nolock 192.168.0.234:/home/bc/host"

Basic experiment of information Security system design: Configuration and use of Linux development environment (20135234,20135229)

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.