Running Driver And Application - Orange Pi PC2 User Manual

Table of Contents

Advertisement

Orange Pi Manual
Compile the application with cross compiler
$ arm-linux-gnueabihf-gcc app.c –o aq
There will be an ap application generated in the directory, copy it to the
development board file system(on the rootfs directory of
/home/orangepi/)
$ cp aq /media/*/home/orangepi/

4. Running driver and application

Running Applications on Development Board
Removed the SD card and inserted it into the development board and
power on.
You need to switch to root users and load module driver module to
the development board first.
$ insmod /lib/modules/orangepi.ko
$ lsmod
$ ll /dev/orangepimisc( Miscellaneous equipment automatically generated
device files, the specific look at the driver code)
Executive application (note the use of the application, the specific check
at the code)
$ ./aq /dev/orangepimisc
www.orangepi.org
To check whether it is loaded
Copy right by Shenzhen Xunlong Software Co., Ltd
55
www.xunlong.tv

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents