按韦东山视频做触摸屏驱动程序出现Segmentation fault
2016-05-03 17:40
666 查看
按韦东山视频做触摸屏驱动程序出现Segmentation fault,尝试了好久,今天终于解决了!
insmod cfbcopyarea.ko
insmod cfbfillrect.ko
insmod cfbimgblt.ko
insmod lcd.ko
如果出现Segmentation fault,执行
cd /work/video_example/mini2440_board/linux-2.6.22.6
make menuconfig 配置内核去掉原来的lcd驱动程序
查看lcd驱动和触摸屏驱动是否已配置好。
重新编译内核和模块,即:
make uImage
cp arch/arm/boot/uImage /work/nfs_root/uImage_nots
make modules
cp drivers/video/cfb*.ko /work/nfs_root/first_fs
然后使用新内核启动,再装载
nfs 30000000 192.168.1.104:/work/nfs_root/uImage_nots
bootm 30000000
mount -t nfs -o nolock,vers=2192.168.1.104:/work/nfs_root/first_fs /mnt
cd /mnt/
insmod cfbcopyarea.ko
insmod cfbfillrect.ko
insmod cfbimgblt.ko
insmod lcd.ko
如果ls /dev/ev*出现两个event0 和 event1,也可以用的。有一个可能为内核没有把原来的驱动卸载干净,重新编译内核,再试!
insmod cfbcopyarea.ko
insmod cfbfillrect.ko
insmod cfbimgblt.ko
insmod lcd.ko
如果出现Segmentation fault,执行
cd /work/video_example/mini2440_board/linux-2.6.22.6
make menuconfig 配置内核去掉原来的lcd驱动程序
查看lcd驱动和触摸屏驱动是否已配置好。
重新编译内核和模块,即:
make uImage
cp arch/arm/boot/uImage /work/nfs_root/uImage_nots
make modules
cp drivers/video/cfb*.ko /work/nfs_root/first_fs
然后使用新内核启动,再装载
nfs 30000000 192.168.1.104:/work/nfs_root/uImage_nots
bootm 30000000
mount -t nfs -o nolock,vers=2192.168.1.104:/work/nfs_root/first_fs /mnt
cd /mnt/
insmod cfbcopyarea.ko
insmod cfbfillrect.ko
insmod cfbimgblt.ko
insmod lcd.ko
如果ls /dev/ev*出现两个event0 和 event1,也可以用的。有一个可能为内核没有把原来的驱动卸载干净,重新编译内核,再试!
相关文章推荐
- PRML 01 绪论:引言与引例
- 第十八章 B树
- python连mysql
- c++中explicit关键字
- systemtap-与 oracle 转
- 1.6-03:计算书费
- git向远程库推送文件的问题
- MessagePack, Protocol Buffers和Thrift序列化框架原理和比较说明
- appium初入门android
- 跨域相关知识
- hibernate中的三种状态:瞬时态(Transient),持久态(Persistent),脱管态(Detached)
- Android Studio真机看不到logcat
- makeflie与shell结合@
- java socket报文通信(二)报文的封装
- 【技术干货】前端开发之jQuery单页面开发
- 无法打开包括文件:“windows.h”: No such file or directory
- fl2440hello world模块驱动编写
- Unix tar.gz文件下载地址
- Spring RPC 入门学习(2)-获取Map对象
- 自动应用模板