example driver module:
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/gpio.h>
#include <linux/fs.h>
Copy kernel module <module> to the drivers directory. | |
$ sudo cp <module>.ko /lib/modules/$(uname -r)/kernel/drivers/ | |
Add the simple name of my module to the file /etc/modules. You can edit the file or just append to it as shown here. | |
$ echo '<module>' | sudo tee -a /etc/modules | |
Update the list of module dependencies. | |
$ sudo depmod | |
Reboot the computer and voila, it worked. |
change: | |
1. pci_find_device -> pci_get_device | |
2. ioctl: XPCIe_Ioctl -> unlocked_ioctl: XPCIe_Ioctl, | |
3. int XPCIe_Ioctl(struct inode *inode, -> int XPCIe_Ioctl(/*struct inode *inode, */ |
In CooCox IDE Repository add to project: | |
C Library: Implement the minimal functionality... |
${GMOCK_ROOT}
:cd ${GMOCK_ROOT}
mkdir build
cd build
g++ -I../gtest/include -I../gtest -I../include -I.. -c ../gtest/src/gtest-all.cc
g++ -I../gtest/include -I../gtest -I../include -I.. -c ../gmock/src/gmock-all.cc
ar -rv libgmock.a gtest-all.o gmock-all.o
If you got error:
Could not load the Host USB Proxy Service
#!/bin/bash | |
if [[ $#>0 ]] | |
then | |
INPUT_FILE_NAME=$1 | |
else | |
exit | |
fi | |
FILE_NAME=`sed 's/\.y4m$//' <<< ${INPUT_FILE_NAME}` |
fswebcam -q -d /dev/video1 -r 800x600 /path/to/webcam.jpg
avconv
может быть ffmpeg
):avconv -i <file_name>.y4m -pix_fmt yuv420p <file_name>.yuv
avconv -i <file_name>.y4m -pix_fmt yuv422p <file_name>.yuv
avconv -i <file_name>.y4m -pix_fmt yuv444p <file_name>.yuv
wget https://launchpad.net/gcc-arm-embedded/4.9/4.9-2014-q4-major/+download/gcc-arm-none-eabi-4_9-2014q4-20141203-linux.tar.bz2
Скачать Ecplipse Kepler: http://www.eclipse.org/downloads/packages/release/Kepler
Установить из репозитория Kepler пакет "Programming Languages->C/C++ Developer Tools"