文件名称:exp4_hello-driver
介绍说明--下载内容均来自于网络,请自行研究使用
此程序代码是基于达芬奇系列DM6446嵌入式开发之驱动程序开发示例程序,该程序包中包含C语言源程序demo.c,test_demo.c和Makefile文件。该程序简洁明了,旨在说明驱动程序的框架结构,以及嵌入式驱动程序开发的步骤,对嵌入式驱动程序开发入门的同志非常有帮助。该程序经过反复的调试运行,没有错误,可直接运行。
调试步骤
1、仔细读目录中的代码:demo.c,demo.h,test_demo.c。
分析各部分代码的功能,以及应用程序和驱动程序的调用,数据读写的方法和流程。
2、仔细读目录中的Makefile文件,理解文件中各个语句的功能。
在宿主机上进入存放实验文件的目录,输入:make 生成需要的驱动程序。
输入:make app 生成需要的应用程序。
3、进入minicom或超级终端,将实验目录挂载到目标机上(具体过程见先前实验)。
4、进入实验目录,运行:./ install_demo_driver将驱动和相应的支持文件(mod文件)装载到系统中。
5、运行:./test_demo执行应用程序,查看输出结果。-This code is based on a series of leonardo Da Vinci DM6446 driver development of embedded development sample program, the program package contains C language source program demo. C, test_demo. C and Makefile.The program simple, showing that the fr a me structure, the driver and the embedded driver development steps, introduction to the embedded driver development comrades are very helpful.After repeated the test and operation of the program, there are no errors, can be directly run.
Commissioning procedures
1, carefully read the catalog code: demo. C, demo. J h, test_demo. C.
Analysis of the function of each part of the code, as well as the applications and drivers call, the method and flow of data reading and writing.
2 Makefile, carefully read the directory, understand the function of file each statement.
Enter the directory where the files on the host, input: make generated need driver.
Input: make app generated need application.
3, enter the minicom or super terminal, will tes
调试步骤
1、仔细读目录中的代码:demo.c,demo.h,test_demo.c。
分析各部分代码的功能,以及应用程序和驱动程序的调用,数据读写的方法和流程。
2、仔细读目录中的Makefile文件,理解文件中各个语句的功能。
在宿主机上进入存放实验文件的目录,输入:make 生成需要的驱动程序。
输入:make app 生成需要的应用程序。
3、进入minicom或超级终端,将实验目录挂载到目标机上(具体过程见先前实验)。
4、进入实验目录,运行:./ install_demo_driver将驱动和相应的支持文件(mod文件)装载到系统中。
5、运行:./test_demo执行应用程序,查看输出结果。-This code is based on a series of leonardo Da Vinci DM6446 driver development of embedded development sample program, the program package contains C language source program demo. C, test_demo. C and Makefile.The program simple, showing that the fr a me structure, the driver and the embedded driver development steps, introduction to the embedded driver development comrades are very helpful.After repeated the test and operation of the program, there are no errors, can be directly run.
Commissioning procedures
1, carefully read the catalog code: demo. C, demo. J h, test_demo. C.
Analysis of the function of each part of the code, as well as the applications and drivers call, the method and flow of data reading and writing.
2 Makefile, carefully read the directory, understand the function of file each statement.
Enter the directory where the files on the host, input: make generated need driver.
Input: make app generated need application.
3, enter the minicom or super terminal, will tes
(系统自动生成,下载前可以参看下载内容)
下载文件列表
exp4_hello-driver
.................\exp04
.................\.....\demo_driver
.................\.....\...........\.demo.ko.cmd
.................\.....\...........\.demo.mod.o.cmd
.................\.....\...........\.demo.o.cmd
.................\.....\...........\.tmp_versions
.................\.....\...........\.............\demo.mod
.................\.....\...........\Makefile
.................\.....\...........\Makefile~
.................\.....\...........\demo.c
.................\.....\...........\demo.c~
.................\.....\...........\demo.h
.................\.....\...........\demo.h~
.................\.....\...........\demo.ko
.................\.....\...........\demo.mod.c
.................\.....\...........\demo.mod.o
.................\.....\...........\demo.o
.................\.....\...........\install_demo_driver
.................\.....\...........\test_demo
.................\.....\...........\test_demo.c
.................\.....\...........\test_demo.c~
.................\.....\~$四 LINUX驱动实验.docx
.................\.....\实验四 LINUX驱动实验.docx
.................\.....\说明.txt