您的位置:首页 > 其它

按韦东山视频做触摸屏驱动程序出现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,也可以用的。有一个可能为内核没有把原来的驱动卸载干净,重新编译内核,再试!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: