Beijing Institute of Electronic Technology (besti)
Lab Report
Course: Information Security system Design Basic class:1353
Name: Wang Jianqiao, Li Sheli No.:201353,20135309
Score: Instructor: Lou Jia Peng Experimental Date:. 12.01
Experiment level: Preview degree: Experiment time:15:30~18:00
Instrument Group: Compulsory / elective: experiment Number:4
Experiment Name: Peripheral Driver Program Design
Experimental purposes and requirements:
1. Mastering real-time system application and driver programming
2. Select an interface circuit
Experimental instrument:
Name |
Model |
Number |
Embedded development Platform |
Up-netarm2410-cl |
1 |
PC Machine |
DELL |
1 |
experiment contents, steps and Experience:
First, the contents and steps of the experiment
1,pre-preparation, development environment configuration with the experiment one, run ./install.sh.
Read and understand the source code, go to /bc/01_demo, use vi Editor or other editor to read and understand the source code.
2. Compile driver module and test program
There are two methods of compiling in Makefile , which can also be compiled using gcc on this machine or cross-compiler , where we use the cross compiler to compile the results.
Because manual compilation of code is too cumbersome, we have chosen to use make method, the Makefile will be slightly modified to use. Makefile after modification.
If there is a problem at compile time, it is possible that a Linux connection is not established 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]# ls
If you compile with gcc , you need to build the device node by using the following command, if you use the cross compiler
, you do not need to establish a device node.
#mknod/dev/demo C 254 0
The first step is to insert the driver module demo.o, then you can use the lsmod command to see if the module has been inserted,
You can also use the rmmod command to unload a module when you are not using the module .
Second, the problems encountered and solutions
Fourth Experimental report