raspberry pi driver development
来源:互联网 发布:大连理工大学网络期刊 编辑:程序博客网 时间:2024/06/05 15:50
1.makefile
ifneq ($(KERNELRELEASE),)obj-m := hello.oelseKDIR := /home/hcx/work/boards/RPi/kernel/linux-rpi-3.6.yall:make -C $(KDIR) M=$(PWD) modules ARCH=arm CROSS_COMPILE=/home/hcx/work/boards/RPi/kernel/RpiTools/arm-bcm2708/arm-bcm2708hardfp-linux-gnueabi/bin/arm-bcm2708hardfp-linux-gnueabi-clean:rm -f *.ko *.o *.mod.o *.mod.c *.symvers modul*endif
//----------------------------------------------------------------------
注意:Makefile 第一个字母必须大写
2.scp命令格式
scp /home/rob/pictures/donuts/half-eaten.jpg [user name]@[server ip]:/home/mywebsite.com/public_html/images/
scp [user name]@[server ip]:/home/mywebsite.com/public_html/images/mylogo.png /home/pictures/
3.加载驱动:执行insmod ./hello.ko屏幕上没反应。(因为我是在WINDOWS上用远程终端连上去的嘛)OK,先让时光倒流,回到加载驱动以前,先另开一个窗口,执行:tail -f /var/log/message然后在原来的窗口里执行:insmod ./hello.ko哈哈,/var/log/message文件里面看见了盼望已久的hello world!
4.查看驱动:lsmod 看见 hello这个驱动在其中
5.卸载驱动:rmmod hello 看见/var/log/message里显示了goodbye
0 0
- raspberry pi driver development
- Setting up an RTEMS development environment for the Raspberry Pi
- Raspberry Pi: SSH连接Raspberry Pi
- Use cases about the V4L2 driver for the Dual Raspberry Pi Camera Module
- Raspberry Pi 定制Archlinux
- Raspberry Pi安装OpenELEC
- 使用 Raspberry Pi 远程桌面
- MK808 vs Raspberry Pi
- 开始折腾 Raspberry Pi
- raspberry pi 镜像烧写
- raspberry pi 简单配置
- Raspberry Pi 近期问题
- Raspberry Pi code compile.
- Raspberry Pi + surveillance camera
- Raspberry Pi + WebCam server
- Raspberry pi 替代品
- Raspberry Pi入手篇
- raspberry pi 远程桌面
- Nginx 集群环境搭建
- python学习笔记之正则表达式
- 关于解决在win10无线局域网环境下VMware虚拟机中的CentOS6.5系统连接网络的问题
- centos 7.x安装fastdfs 5.10
- swap分区执行脚本
- raspberry pi driver development
- 第三章 RecyclerView
- Android中使用Bundle页面传值
- linux下安装php扩展mysqli.so
- UE4连接leapmotion
- 模拟按键操作的几种方式
- xStore —— 一款在浏览器本地对 Local Storage 和 Session Storage 进行存取的工具
- Linux常用命令
- JSP-JSTL