20135326. Experimental report of 20135303-linux experiment

Source: Internet
Author: User

Beijing Institute of Electronic Technology (BESTI)

Real Inspection report

Course: Information Security system Design Basic class: 1353 Name: Wang Also, Wei Hao Qingxu: 20135326, 20135303

Score: Instructor: Lou Jia Peng Experimental Date: 2015.11.10

Experiment level: Preview degree: Experiment time: 15:30-18:00

Instrument Group: Compulsory/Elective: Compulsory experiment serial number: a

Experiment Name: familiar with Linux development environment /c4>

Experimental purposes and requirements:

    familiar with linux development environment, learned based on s3c2410 linux configuration and use of the development environment. Use linux ARMV4L-UNKNOWN-LINUX-GCC compile, using the nfs          

Experimental instrument:

Name

Model

Number

Computer

1

Embedded development Platform

Up-netarm2410-cl

1

Experiment contents, steps and experiences (attached paper):

First, the contents of the experiment

1. Use VIM programming under the Linux system and compile and run the files

2. Install Arm-linux's development library and compiler using Redhat Linux 9.0 operating system environment. Create a new directory and write the hello.c file in it. Learn the programming and compilation process under Linux, as well as the use of the arm Development Board and settings for the development environment. Download the compiled file to run on the target Development Board.

Second, the experimental steps

Start the experimental platform

1. Hardware connection: Connecting the power supply, connect the 12v power cord to the UP-NETARM2410-CL power connector, connect the serial line, a serial port connected to the PC, the other end is connected to the UP-NETARM2410-CL serial port (rs232-0), connect the network cable, Connect the up-netarm2410-cl adjacent to the power port and the PC's network port by connecting the randomly attached crossover cable.

2. Set up Super Terminal

Start → All programs → accessories → communication → HyperTerminal

3. Create a new communication terminal. Named arm for the new HyperTerminal. 2-1.

Figure 2-1

Figure 2-2

4. In the dialog box, select the actual connected PC serial port of the arm development platform, and set the communication Format and protocol. Baud rate is 115200, data bit 8, no parity, stop bit 1, no data flow control. 2-2.

5. After setting up the new HyperTerminal, you can choose Save as in the HyperTerminal File menu and save the set up HyperTerminal on your desktop for later use. Using serial cable to connect PC serial port and platform UART0 correctly, you can see the program output information on HyperTerminal.

6. Continue waiting until the interface appears as shown in 2-4. Enter the Ifconfig command to record the ip:192.168.0.121 of arm

Figure 2-3 Vivi Control Platform

Figure 2-4

Modify the IP addresses of the XP system and virtual machines so that both their IP and arm are in the same network segment. In the PC's XP system, the IP configured as 192.168.0.55,readhat virtual machine is 192.168.0.234.

Third, the development of software installation and configuration

1. Click "Run" in "Start" to enter \\192.168.0.234 (note IP is the IP of the virtual machine). Enter the IP and the carriage return will appear. Enter the username BC, password 123456 and then make sure that the return will be available to access the virtual machine's files.

Figure 3-1

Figure 3-2

2. Copy the Armv4l-tools to the shared folder that you built, and go to the folder to execute it./install instruction installation environment, 3-4.

Figure 3-3

Use VI 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, then ARMV4L-UNKNOWN-LINUX-GCC will automatically search, you can enter on the terminal.

3. In the command line of the virtual machine, enter

* CD/HOME/BC

* ls

* VI hello.c

* Write the program:

#include <stdio.h>

int main ()

{

printf ("20135326 20135303");

return 0;

}

*esc into command mode. Input: Wq hello.c save and exit.

Figure 3-4

*ls

*ARMV4L-UNKNOWN-LINUX-GCC hello.c–o Hello compilation program

*ls

*mount-t nfs-o nolock 192.168.0.234:/root/bc/host//Super Terminal execution

*cd/host

*./hello

Running Results 20135326 20135303

Figure 3-5

Iv. Experience of Experiment

This experiment is really bumpy, until the IP of the input virtual machine opens the BC folder is smooth, but always shows that Windows cannot find the path. We looked for a long time, before the change was not saved, but this is not the reason, and later found that we entered the Windows7 system, not XP, so immediately changed the system, but still not, but also asked a lot of classmates, later found that the command line entered in \ \, we lost into//, It was very careless, and two people together.

Then, originally thought can be done smoothly, but in the decompression of the file, there is a problem, always show can not open the directory, and then asked some of the related problems of the classmate, the previous folder was deleted, copied again, or not. Later, a big God classmate told us, should be logged on the user there is a problem, should not be BC but root, otherwise there is no permission can not operate, changed a bit sure enough on the line.

The experiment exposed many problems, such as lack of detail. In fact, the experiment guidance is really meticulous writing, step by step can be finished quickly, and we went to meet a lot of problems, the more wrong mentality more irritable, especially to see the students are gone.

20135326. Experimental report of 20135303-linux experiment

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.