20145216 20145330 "Fundamentals of Information Security system design" a familiar experimental report cover for the Experimental development environment
Experimental content
1. Connecting the ARM Development Board
2. Build HyperTerminal
3. Start the experimental platform
4. Modify the IP of the XP system and the Redhat virtual machine so that they are in the same network segment as the IP of the arm machine
5. Installing the ARM compiler
6. Configure Environment variables
7. Build the hello.c file and compile it
8. Download and debug
Experimental steps
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.
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.
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 this experiment, the IP of the PC is set 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. Installing the ARM compiler
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 Environment variables
Use VI in the virtual machine to modifythe PATH variable in the/root/.bash profile to path= $PATH: $HOME/bin:/opt/host/armv4l/bin/(because the file is a hidden system file, use LS command is not visible), after disk execution: Source/root/.bashprofile, the later armv4l-unknown-linux-gcc will be automatically searched, 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. 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 the command "mount-t nfs-o nolock 192.168.0.234:/home/bc/host".
Study Questions
Understanding of the experimental process, the understanding of the knowledge points in the experimental instruction book:
(1) Why cross-compiling is required? How do I install a cross-compilation environment?
Because of the lack of resources of the target platform, storage space and computing power are very limited. The use of cross-compilation is a necessity to get better resources.
Install the arm compiler first, and run the installation on the virtual machine using the./install.sh. Then configure the environment variables. After modifying the environment variable, use Source/etc/profile to make the new environment variable take effect.
(2) What relationship does the IP between the lab box, virtual machine redhat, and WinXP need to meet? How to configure? Why?
In the lab box, the IP of the virtual machine redhat,winxp is on the same network segment.
Use the Ifconfig command to view the lab IP, and then change the IP of the virtual machine and Windows XP to the same network segment (the locally attached attribute) as the lab box.
Otherwise, after the same network segment, the three can share resources in order to achieve the purpose of cross-compiling.
(3) What does each option in the Mount command mean in the experiment?
Mount command format: Mount [-t vfstype] [-O options] Device dir
-T Vfstype specifies the type of file system, which is usually not required. UNIX (LINUX) file network share: NFS
The-O options are primarily used to describe how devices or files are hooked up. -O nolock is the meaning of the file lock
Device to mount (Mount). (192.168.0.234:/HOME/BC)
The DIR device hangs on the system (mount point). (/host)
Experimental Thoughts
This experiment makes us more familiar with the development environment, we follow the instructions given in the experiment to carefully practice the steps, consolidate the previous knowledge, master the method of configuring the environment variables, overall, the experiment is relatively smooth, but in the completion of half the progress of the time, due to computer power, restart the computer led to the experimental content completely zeroed, Again practice again, delay the experimental process, but this makes us grasp more firmly, we will continue to work hard, more careful to complete the future of experimental practice.
Teammate Links
Http://www.cnblogs.com/20145330swx/p/6035537.html
20145216 20145330 "Fundamentals of Information Security system design" a familiar environment for experimental development