linuxµÄ´¥ÃþÆÁÖ®Èý£º½âÎöandroidƽ̨ÉϵÄtslib¹ý³Ì
£¨1£©ÔÚtslibĿ¼ÏÂÓÐÉèÖû·¾³±äÁ¿µÄÎı¾Îļþ£ºsettsenv.sh£¬ÄÚÈÝ£º
export T_ROOT=/system
export LD_LIBRARY_PATH=$T_ROOT/lib
export TSLIB_CONSOLEDEVICE=
export TSLIB_FBDEVICE=/dev/graphics/fb0
export TSLIB_TSDEVICE=/dev/input/event1
export TSLIB_PLUGINDIR=$T_ROOT/lib/ts
export TSLIB_CONFFILE=$T_ROOT/etc/tslib/ts.conf
export TSLIB_CALIBFILE=/data/data/pointercal
É趨µÄTSLIBµÄTSÉ豸£¬FBÉ豸£¬ÅäÖÃÎļþ£¬¶¯Ì¬¿âÎļþµÄ·¾¶¡£µ±È»£¬¾ßÌåµÄÒªÓõĿÉÒÔÔÚ³ÌÐò´úÂëÖÐÖØÐÂÉ趨¡£
£¨2£©tslibĿ¼ÏµÄetcĿ¼ts.confÊÇÅäÖÃÎļþ£¬ÄÚÈÝ£º
# Uncomment if you wish to use the linux input layer event interface
module_raw input1
# Uncomment if you're using a Sharp Zaurus SL-5500/SL-5000d
# module_raw collie
# Uncomment if you're using a Sharp Zaurus SL-C700/C750/C760/C860
# module_raw corgi
# Uncomment if you're using a device with a UCB1200/1300/1400 TS interface
# module_raw ucb1x00
# Uncomment if you're using an HP iPaq h3600 or similar
# module_raw h3600
# Uncomment if you're using a Hitachi Webpad
# module_raw mk712
# Uncomment if you're using an IBM Arctic II
# module_raw arctic2
module pthres pmin=1
module variance delta=30
module dejitter delta=100
module linear
¿É¼û£¬ÉÏÃæÓкܶàÄ£¿é¿ÉÒÔµ÷Óã¬×îÖÕÊÇÑ¡ÔñÁËinput1£¬Ò²¼´ÊÇlinuxµÄinput»ñÈ¡·½Ê½¡£ÕâЩģ¿éµÄÔ´´úÂëÔÚpluginsĿ¼Ï¶¼Óж¨Òå¡£
£¨3£©·ÖÎöÁ÷³Ì£¬½Ó´¥ÃþÆÁ·ÖÎöÖ®Ò»£¬ÔÚts_mainÖУº
void get_sample (struct tsdev *ts, calibration *cal, int index, int x, int y, char *name)
{
put_cross(x, y, 2 | XORMODE); //»Ê®×Ö×ù±ê
getxy (ts, &cal->x [index], &cal->y [index]); //È¡µÃx,yµÄLCD×ø±êÖµ
put_cross(x, y, 2 | XORMODE);
last_x = cal->xfb [index] = x;
last_y = cal->yfb [index] = y; //¸³ÖµcalµÄ´¥ÃþÆÁ×ø±ê
}
£¨4£©½âÎögetxy
struct ts_sample {
Ïà¹ØÎĵµ£º
ÐźÅÊÇLinux±à³ÌÖзdz£ÖØÒªµÄ²¿·Ö£¬±¾ÎĽ«Ïêϸ½éÉÜÐźŻúÖƵĻù±¾¸ÅÄî¡¢Linux¶ÔÐźŻúÖƵĴóÖÂʵÏÖ·½·¨¡¢ÈçºÎʹÓÃÐźţ¬ÒÔ¼°ÓйØÐźŵļ¸¸öϵͳ
µ÷Óá£
ÐźŻúÖÆÊǽø³ÌÖ®¼äÏ໥´«µÝÏûÏ¢µÄÒ»ÖÖ·½·¨£¬ÐźÅÈ«³ÆΪÈíÖжÏÐźţ¬Ò²ÓÐÈ˳Æ×÷ÈíÖжϡ£´ÓËüµÄÃüÃû¿ÉÒÔ¿´³ö£¬ËüµÄʵÖʺ ......
Ç°ÃæÁ½½ÚÒѾ½éÉÜÁËÓйØÐźŵĴ󲿷ÖÖª
ʶ¡£ÕâÒ»½ÚÎÒÃÇÀ´Á˽âÒ»ÏÂÕâЩϵͳµ÷Óá£ÆäÖУ¬ÏµÍ³µ÷ÓÃsignalÊǽø³ÌÓÃÀ´É趨ij¸öÐźŵĴ¦Àí·½·¨£¬ÏµÍ³µ÷ÓÃkillÊÇÓÃÀ´·¢ËÍÐźŸøÖ¸¶¨½ø³ÌµÄ¡£Õâ
Á½¸öµ÷ÓÿÉÒÔÐγÉÐźŵĻù±¾²Ù×÷¡£ºóÁ½¸öµ÷ÓÃpauseºÍalarmÊÇͨ¹ýÐźÅʵÏֵĽø³ÌÔÝÍ£ºÍ¶¨Ê±Æ÷£¬µ÷ÓÃalarmÊÇͨ¹ýÐźÅ֪ͨ½ø³Ì¶¨Ê±Æ÷µ ......
Linux°²×°JDK²½Öè1. ÏÈ´ÓÍøÉÏÏÂÔØjdk(jdk-1_5_0_02-linux-i586.rpm) £¬ÍƼöSUNµÄ¹Ù·½ÍøÕ¾www.sun.com£¬ÏÂÔغó·ÅÔÚ/homeĿ¼ÖУ¬µ±È»ÆäËüµØ·½Ò²ÐС£
½øÈ밲װĿ¼
#cd /home
#cp jdk-1_5_0_02-linux-i586.rpm /usr/local
#cd /usr/local
¸øËùÓÐÓû§Ìí¼Ó¿ÉÖ´ÐеÄȨÏÞ
#chmod +x jdk-1_5_0_02-linux-i586.rpm.bin
#./jd ......
[root@localhost root]# ls -l
»áÏÔʾĿ¼»òÎļþÐÅÏ¢£ºdrwxr-xr-x 2 root root 4096 06-29 14:30 Test
-rwxr--r-- 2 root roo ......
Linux³£ÓÃÃüÁî²Î¿¼
1. diff
ÓÃÓÚÎļþ±È½Ï¡£Ò»°ãfile1ÊÇÔÎļþ£¬file2ÊÇУ¨Ð޸Ĺý£©µÄÎļþ¡£
½ô´Õģʽ£ºdiff -u file1 file2
diff -u file1 file2
--- file1 2010-03-06 02:11:43.000000000 +0000
+++ file2 2010-04-14 10:06:45.000000000 +0000
@@ -21,11 +21,9 @@
eeeeee
ffffff
2222 ......