zoukankan      html  css  js  c++  java
  • tslib编译使用方法

    sudo apt-get install autoconf
    sudo apt-get install automake
    sudo apt-get install libtool

    编译:
    tar xzf tslib-1.4.tar.gz
    cd tslib
    ./autogen.sh

    mkdir tmp
    echo "ac_cv_func_malloc_0_nonnull=yes" >arm-linux.cache
    ./configure --host=arm-linux --cache-file=arm-linux.cache --prefix=$(pwd)/tmp
    make
    make install

    安装:
    cd tmp
    cp * -rf /nfsroot

    使用:

    先安装s3c_ts.ko, lcd.ko

    1.
    修改 /etc/ts.conf第1行(去掉#号和第一个空格):

    module_raw input

    改为:
    module_raw input

    2.
    export TSLIB_TSDEVICE=/dev/event0
    export TSLIB_CALIBFILE=/etc/pointercal
    export TSLIB_CONFFILE=/etc/ts.conf
    export TSLIB_PLUGINDIR=/lib/ts
    export TSLIB_CONSOLEDEVICE=none
    export TSLIB_FBDEVICE=/dev/fb0

    ts_calibrate

    ts_test

    cat /proc/mymsg

    replay_r, replay_w

    0x00075cf7 0x00000003 0x00000018 0

    0x00076617 0x00000003 0x00000018 0
    0x00076617 0x00000003 0x00000018 0
    0x00076617 0x00000003 0x00000018 0
    0x00076617 0x00000003 0x00000018 0
    0x00076617 0x00000003 0x00000018 0
    0x0007661b 0x00000003 0x00000018 0
    0x0007661b 0x00000003 0x00000018 0
    0x0007661b 0x00000003 0x00000018 0
    0x0007661b 0x00000003 0x00000018 0
    0x0007661b 0x00000003 0x00000018 0

    版权声明:本文为博主原创文章,转载请注明文章来源,有需要帮忙可加QQ:871263854
  • 相关阅读:
    人工智能第一次作业
    在uni-app的textarea中输入纯数字或者英文不换行的问题
    uni-app实现选择图片上传并显示进度条
    减肥计划
    前端时间格式2020-02-11T12:24:18.000+0000转化成正常格式
    男孩和女孩
    java 获取当前年份 月份 日期
    深海收破烂
    如何爱一个人
    随手心情
  • 原文地址:https://www.cnblogs.com/Dream998/p/8540759.html
Copyright © 2011-2022 走看看