Zhu Hengzhi 20135314 Experiment 1 Experimental report

Source: Internet
Author: User

Beijing Institute of Electronic Technology (BESTI)

Real Inspection report

Course: Cryptographic system design Basic class: 53

Name: Zhu Hengzhi

Study No.: 20135314

Score: Instructor: Lou Jia Peng Experimental Date: 2015.11.10

Experiment level: Preview degree: Experiment time: 15:30~17:30

Instrument Group: 1 Compulsory/elective: Compulsory experiment serial number: 14

Experiment name: Basic experiment of information security system design

Experimental purposes and requirements: be familiar with the Linux development environment and learn the configuration and use of the Linux development environment based on s3c2410. Using Linux's ARMV4L-UNKNOWN-LINUX-GCC compilation, use NFS-based download debugging to understand the basic process of embedded development.

Experimental instrument:

Name

Model

Number

ARM Development Board

1

Lenovo Computer

1

Experimental content, steps and:

(Experiment one)

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

Run Windows XP system start, all programs, accessories, communications,

"HyperTerminal".

Create a new communication terminal, named Arm. In the Properties dialog box, set the baud rate to 115200, the data bit to 8, no parity, stop bit 1, no data flow control. Save As on the desktop.

3. Start the experimental platform

Open the HyperTerminal and turn on the arm machine power switch. Wait a minute and the information from the arm machine is displayed in the HyperTerminal window.

Continue to wait for the input ifconfig command, recording 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 of PC, this experiment will set the IP of PC to 192.168.0.55,redhat virtual machine IP is 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, into

Username BC, password 123456 then OK, you can access the virtual machine's files. 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, configuring 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/(because the file is hidden system files, so using the LS command is not visible), after disk execution: Source/root/.bash_profile, then The armv4l-unknown-linux-gcc is automatically searched and can be entered on the terminal.

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. Using commands

ARMV4L-UNKNOWN-LINUX-GCC compiles the hello.c to generate a hello executable.

8. Download and debug

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

Command "Mount-t nfs-o nolock 192.168.0.234:/home/bc/host" (Note BC

There will be a space behind! )

Run the hello executable that was compiled through the HyperTerminal.

Experiment Experience:

(1) Why cross-compiling is required? How do I install a cross-compilation environment?

A compiler that runs in a computer environment can compile code that runs in another environment, which we call the compiler to support cross-compiling. This compilation process is called cross-compiling. Simply put, the executable code on the other platform is generated on one platform.

The emergence and prevalence of cross-compilation is synchronized with the extensive development of embedded systems. All of the computer software we use is compiled to compile (compile) code written in advanced computer languages (such as C code) into binary code that the computer can recognize and execute. With the cross-compilation tool, we can compile executable programs for other platforms on a host platform (such as a PC) that has strong CPU power and sufficient storage controls.

To cross-compile, we need to install the corresponding cross-compilation toolchain on the host platform (compilation tool chain), then compile our source code with this cross-compilation toolchain and eventually build the code that will run on the target platform. For example: On a Linux PC, using the ARM-LINUX-GCC compiler, you can compile executable code for the Linux arm platform.

(2) What relationship does the IP between the lab box, virtual machine redhat, and WinXP need to meet? How to configure? Why?

IP needs to be configured in the same network segment, in Internet Options.

Problems encountered during the experiment and solutions:

(1) After the arm Development Board is connected, the HyperTerminal still does not respond.

WORKAROUND: First shut down the virtual machine, and then try to connect the arm Development Board, the results of Super Sister Terminal has the correct response.

(2) The execution of armv4l in the command line is considered a armv41

(3) Copy the required exp1 file to B folder C, the result file has been error

Solution: Copy in the file without decompression, directly into the line.

Zhu Hengzhi 20135314 Experiment 1 Experimental report

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.