Lab Report: Peripheral Drive Design team members: 20145306 Zhangwenjin, 20145334 Zhao, 20145331 Wei.
Lab Instrument: Windows Xp,arm Development Board.
Experiment contents, steps and experience
1.
Enter/arm2410cl/exp/drivers/01_demo and use the VI Editor to read the source code.
2.
There are two methods of compiling in Makefile, you can use GCC on this computer, or you can use the cross compiler to compile.
If there is a problem at compile time, it is necessary to build a Linux connection under/USR/SRC, you can use the following command:[[email protected] 01_demo]# cd /usr/src/
[[email protected] src]# ln -sf linux-2.4.20-8 linux[[email protected] src]# lsdebug linux linux-2.4 linux-2.4.20-8 redhat
实验中遇到的问题
failed to compile with makefile file, prompting for function error in header file. According to the error explanation, should be in the makefile path not found in the header file of the library function, so in the Redhat system to find the path of the kernel header file, replace it with the original in the makefile file path, in the execution make command compile, successful.
When compiling test file test_demo.c, using GCC compilation is unsuccessful, and compiling with ARMV4L-UNKNOWN-LINUX-GCC is unsuccessful. The device node was not established when using GCC compilation, and the build succeeded after the node was established.
The fourth experimental report on the design of information security system