首页
学习
活动
专区
圈层
工具
发布

4.移植驱动到3.4内核-移植总结

1.常用函数改动 1)device_create() 作用: 创建设备节点 头文件: #include linux/device.h> 替代了2.6内核里的class_device_create()...函数 2)device_destroy() 作用:卸载设备节点 头文件:#include linux/device.h> 替代了2.6内核里的class_device_destroy()函数 3)usb_alloc_coherent...www.cnblogs.com/lifexy/p/7515488.html) 4.以移植LED为例 4.1首先直接修改Makefile 将以前的内核位置改为KERN_DIR = /work/system/linux.../device.h> 5)然后再次编译测试程序,移植到板子上测试即可 5.移植LCD 1)编译驱动 2)去掉内核自带的lcd驱动 进入Device Drivers -> Graphics support.../libc/usr/include/linux/input.h:32:#define EV_VERSION 0x010000 所以接下来修改编译器的EV_VERSION,将: #define

2.3K10
  • 您找到你想要的搜索结果了吗?
    是的
    没有找到
    领券