加入收藏 | 设为首页 | 会员中心 | 我要投稿 常州站长网 (https://www.0519zz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 教程 > 正文

AllWinnerTech A10添加驱动ko模块技巧

发布时间:2021-11-24 20:49:03 所属栏目:教程 来源:互联网
导读:【1】添加Linux触摸屏驱动: 添加驱动代码文件: licheelinux-2.6.36driversinputtouchscreenmg-i2c-ts.c licheelinux-2.6.36driversinputtouchscreenmg-i2c-ts.h kconfig文件licheelinux-2.6.36driversinputtouchscreenKconfig添加: config
【1】添加Linux触摸屏驱动:
添加驱动代码文件:
licheelinux-2.6.36driversinputtouchscreenmg-i2c-ts.c
licheelinux-2.6.36driversinputtouchscreenmg-i2c-ts.h
 
kconfig文件licheelinux-2.6.36driversinputtouchscreenKconfig添加:
config TOUCHSCREEN_MG_I2C
 tristate "Morgan multi-touch device"
 depends on I2C
 help
   Say Y here if you have a Morgan multi-touch device
 
   If unsure, say N.
  
Makefile文件licheelinux-2.6.36driversinputtouchscreenMakefile添加:
obj-$(CONFIG_TOUCHSCREEN_MG_I2C) += mg-i2c-ts.o
 
编译内核:
./build.sh -p sun4i_crane
 
 
【2】Android2.3.4devicesoftwinnercrane-evb-v13mkfs.sh添加
cp $DRV_DIR/mg-i2c-ts.ko $PRODUCT_ROOT/drv/mg-i2c-ts.ko
 
【3】android启动文件init.sun4i.rc注释和添加
 #insmod /drv/ft5x_ts.ko
 insmod /drv/mg-i2c-ts.ko
 
串口输出调试信息
 在文件toolscrane-win-v2wbootbootfslinuxparams添加loglevel=8
 console=ttyS0,115200 root=/dev/nandb rw init=/init mem=448M@0x40000000 fbmem=32M@0x5a000000 loglevel=8;
 
 

(编辑:常州站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    热点阅读