20145239 20144303 "The foundation of Information security system Design" experimental two firmware design

Source: Internet
Author: User

Configuration of the experimental process development environment

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

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 waiting, enter the Ifconfig command, and record the IP of the arm machine.

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. 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, enter the user name BC, password 123456 and then make sure you can access the virtual machine files. Then extract the required files to the shared folder BC.

Enter the virtual machine, enter the./install.sh on the command line, and the setup script will automatically establish the directory and configure the compilation environment.

6, configure the environment variables in the virtual machine using VI modify the PATH variable in the/root/.bashprofile file to path= $PATH: $HOME/bin:/opt/host/armv4l/bin/(because the file is a hidden system file, So using the LS command is not visible), after disk execution: Source/root/.bashprofile, then ARMV4L-UNKNOWN-LINUX-GCC will automatically search, you can enter on the terminal.

Import Experiment Code

Copy the required code from the lab to the BC shared folder
The experiment code is in the 02_pthread and 03_tty folder provided by the teacher.

Compiling code in a virtual machine

For multithreaded-related code, you need to add a-lpthread library at compile time.

    • Compiling PTHREAD.C
    • Compiling TERM.C

Problems encountered and their solutions
    • The following error occurred while executing the./term:

/dev/ttys0:no such file or directory

    • Workaround:

In Linux under the serial port file is located in/dev, generally in the old version of the kernel serial port one for
/DEV/TTYS0, serial port Two for/DEV/TTYS1, in our Development Board serial device is located in
/dev/tts/, because there is no ttyS0 this device in the Development Board, we have to establish a connection.
First, enter the/dev folder in HyperTerminal.
Input command: "ln–sf/dev/tts/0/dev/ttys0"

20145239 20144303 "The foundation of Information security system Design" experimental two firmware design

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.