Fourth Experimental report

Source: Internet
Author: User

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

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.