2009年3月21日

PXA270實驗筆記(六)

[ 關閉LCD power off ]
修改Kernel內核char/vt.c,將blankinterval設為0,如下:
static int blankinterval = 0;
//static int blankinterval = 10*60*HZ;

[ tslib編譯 ]
require package:automake libtool

執行autogen.sh後產生 configure 檔案

#./configure --prefix="path" CC=/usr/local/arm/3.4.1/bin/arm-linux-gcc --host=arm-linux --enable-inputapi=no ac_cv_func_malloc_0_nonnull=yes
#make
#make install

將 /usr/local/arm/3.4.1/arm-linux/lib 底下的libdl-2.3.2.so以及libdl.*等檔案放到"tslib_path"/lib
建立plugins資料夾,將"tslib_path"/lib/ts 中的所有檔案複製到plugins 資料夾

export QWS_MOUSE_PROTO=TPanel:/dev/ts
export TS_ROOT="tslib_path"
export LD_LIBRARY_PATH=$TS_ROOT/lib
export TSLIB_FBDEVICE=/dev/fb0
export TSLIB_TSDEVICE=/dev/ts
export TSLIB_CALIBFILE=$TS_ROOT/etc/pointercal
export TSLIB_CONFFILE=$TS_ROOT/etc/ts.conf
export TSLIB_PLUGINDIR=$TS_ROOT/plugins

在ARM上執行定點程式,將記錄下來的定點pointercal複製到/tmp/cf_card

[ Qtopia-core移植 ]
將qtopia-core-opensource-src-4.3.0.tar.gz放到/tmp/cf_card
#tar zxvf qtopia-core-opensource-src-4.3.0.tar.gz //解壓
#mv qtopia-core-opensource-src-4.3.0 qtopia-core //改名
#cd /tmp/cf_card/qtopia-core
# export QTDIR=$PWD
# export PATH=$QTDIR/bin:$PATH
# export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH

在qmouselinuxtp_qws.h里面添加
#define QT_QWS_IPAQ
#define QT_QWS_IPAQ_RAW
修改qmouselinuxtp_qws.cpp,增加
/dev/h3600_tsraw改为/dev/ts
修改qmouse_qws.cpp
把pointercal位置設為/tmp/cf_card/pointercal

#./configure -prefix /tmp/cf_card/qtopia-core -embedded arm -xplatform qws/linux-arm-g++ -qt3support -qt-zlib -qt-libpng -qt-gif -qt-libtiff -qt-libmng -qt-libjpeg -nocups -no-openssl -no-stl -qt-mouse-linuxtp -depths 4,8,16
#make
#make install
把toolchain的lib(除了libc)複製到qtopia-core/lib
打包qtopia-core為qtopia-core.tar
將qtopia-core.tar移植到板子上的/tmp/cf_card之中解開

修改file system bashrc設定
#nano -w /usr/local/fstest/target/.bashrc
將QPEDIR QTDIR PATH LD_LIBRARY_PATH的設定改為
export QPEDIR="/tmp/cf_card/qte"
export QTDIR="/tmp/cf_card/qte"
export PATH=/usr/Qtopia/demo/bin:$QPEDIR/bin:/tmp/cf_card/jamvm/bin:$PATH
export LD_LIBRARY_PATH=$QTDIR/lib:$QPEDIR/lib:/usr/Qtopia/demo/lib
export QWS_MOUSE_PROTO=linuxtp:/dev/ts

修改/usr/local/fstest/target/usr/qpe.sh
echo "qpe -qws" -> #echo "qpe -qws"
/usr/Qtopia/qtopia-free-1.7.0/bin/qpe -qws -> #/usr/Qtopia/qtopia-free-1.7.0/bin/qpe -qws

#mkcrmfs target root_tmp.cramfs //重新包裝

沒有留言: