20145225 "Fundamentals of Information Security system design" a familiar environment for experimental development

Source: Internet
Author: User

Write in front: Lou teacher Hello, on the Thursday experiment due to machine enough, I behind and 5202 Ma Chao, 5234 Huangfei a group, forget and you said, also trouble you do under registration, sorry.

First, the principle of experiment

Cross-compiling is the creation of executable code on another platform on one platform. The same architecture can run different operating systems, and similarly, the same operating system can run on different architectures. On a Linux PC, the ARM-LINUX-GCC compiler is used to compile executable code for the Linux arm platform.

Second, the contents and steps of the experiment

Experiment One:

      1. Connecting the ARM Development Board
        Connect the ARM Development Board power Cord to keep the board switch closed. The serial line, the line and the network cable are connected with the PC machine separately.
      2. Set up Super Terminal
        Run the Windows XP system under 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, and another desktop.
      3. Start the experimental platform
        Open the HyperTerminal, open the arm machine power switch for a while, enter the Ifconfig command and record the IP of the arm machine.
      4. Modifying the IP of the XP system with the Redhat virtual machine
        Both the XP system and the IP of the Redhat virtual machine are in the same network segment as the IP of the arm machine.
      5. Installing the ARM compiler
        In the PC "Start", "Run", enter the virtual machine's IP, enter the user name BC, password 123456
        Access the virtual machine and extract the required files to the shared folder BC
        Enter the virtual machine, enter the./install.sh on the command line, the setup script will automatically create the directory, configure the compilation environment
      6. Configuring Environment variables
        Using VI to modify/root/.bash_profile in a virtual machine
        The PATH variable in the file is path= $PATH: $HOME/bin:/opt/host/armv4l/bin/
        After disk execution: Source/root/.bash_profile
      7. Build the hello.c file and compile it
        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 Debug
        Mount the shared folder in HyperTerminal to establish communication between the board and the virtual machine
        Enter the command "mount-t nfs-o nolock 192.168.0.234:/home/bc/host" in HyperTerminal to run the compiled hello executable file

Experiment Two:

Purpose and requirements of the experiment

1, the initial grasp of the hardware development platform and hardware development process

2. Be able to compile and run simple program; Master program debugging and test method

3. Master the method of burning and writing the program

4, can achieve bootloader

5. Realize the solidification of common algorithms in cryptography

Experimental steps

1. Continue to use the experimental environment in EXP1

2. Copy the experiment code to a shared folder

3. Compile the code in the virtual machine and compile with the-lpthread library

4. Download and debug

Problems encountered and solutions:

(1) Super terminal problem and solution

issue: After you open HyperTerminal, The information on the arm machine is never displayed in the HyperTerminal window.

solution: Found the reason, is the serial cable connected to the wrong location, should not be connected to 1, after replacing 0 , HyperTerminal will show normal.

(2)IP problems and Solutions

problem: Need to put the lab box, virtual machine the IP of Redhat,WinXP is set to the same network segment.

FIX: First look at the lab box's IP Address, set the other two addresses to be in the same network segment, note that the installation after the restart, and then re-view the IP address, to ensure that the same network segment to continue to do, or the subsequent steps will also be problematic.

(3) environment variable configuration problem and solution

problem: There was a problem compiling with the arm compiler.

Workaround: Find the source of the problem, an error occurred while setting the environment variable, modify Path variable is incorrectly entered, causing the command to be found later with the Compile command, and after the path variable is reset, it can be compiled.

Experience:

Details determine success or failure,

Unity is strength.

20145225 "Information Security system Design Fundamentals" experiment a development environment familiar

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.