fb fix, ts fix, flash ttfs experemental

This commit is contained in:
Angell Fear
2010-10-16 00:02:07 +06:00
parent 467299d85c
commit d2b8544195
220 changed files with 113734 additions and 460 deletions

View File

@@ -62,7 +62,7 @@ if [ ! -e /sys/block/mmcblk0/mmcblk0p1 ] ; then
fi
echo "Mounting SD card to /sdcard"
/bin/mount -t vfat /dev/block/mmcblk0p1 /sdcard
/bin/mount -t vfat -o rw,umask=0,codepage=866,iocharset=cp1251 /dev/block/mmcblk0p1 /sdcard
[ $? -eq 0 ] || fail "Failed to Mount SD Card"
#echo "Dumping kernel log."
@@ -102,20 +102,33 @@ fi
#/bin/losetup /dev/block/loop2 /sdcard/ANDROID/extram.img
#[ $? -eq 0 ] && /bin/swapon /dev/block/loop2
if [ -e /sdcard/ANDROID/userscript.sh ] ; then
cp /sdcard/ANDROID/userscript.sh /data
/bin/chmod 777 /data/userscript.sh
/data/userscript.sh
#mkdir /cache
#echo "Mapping file 'cache.img' to 'loop' device /dev/loop2"
#/bin/losetup /dev/block/loop2 /sdcard/ANDROID/cache.img
#[ $? -eq 0 ] || fail "Failed to find cache.img on SD Card"
#echo "Mount '/dev/loop2' to /cache"
#/bin/mount -t ext2 /dev/block/loop2 /cache
#[ $? -eq 0 ] || fail "Failed to mount /cache"
if [ -e /sdcard/ANDROID/bootscript.sh ] ; then
cp /sdcard/ANDROID/bootscript.sh /data
/bin/chmod 777 /data/bootscript.sh
/data/bootscript.sh
fi
export LD_PRELOAD=/system/lib/libts.so:/system/lib/ts/pthres.so
dmesg > /sdcard/ANDROID/kernel.log
if [ -f /sdcard/ts ] ; then
echo "EXECUTE CALIBRATE TOUCHSCREEN!!!"
/bin/mkdir -m 0777 /data/system/tslib
/system/bin/ts_calibrate
/bin/rm /sdcard/ts
fi
#export LD_PRELOAD=/system/lib/libts.so:/system/lib/ts/pthres.so
#if [ -f /sdcard/ts ] ; then
# echo "EXECUTE CALIBRATE TOUCHSCREEN!!!"
# /bin/mkdir -m 0777 /data/system/tslib
# /system/bin/ts_calibrate
# /bin/rm /sdcard/ts
#fi
#exec /bin/sh