Quote:
Originally Posted by arrrghhh
Scripting I can do. Spam away.
|
You asked for it. :-p
For gsm
Code:
modprobe mtdchar
dd if=/dev/mtd/mtd0ro bs=2048 skip=18818 count=1 | od -I | \
awk '/^0001720/ {p3=$4 "," $5} \
/^0001740/ {p1=$2 "," $3; p4=$4 "," $5} \
/^0001760/ {p5=$2 "," $3; p2=$4 "," $5} \
END {print p1 "," p2 "," p3 "," p4 "," p5}' > /sdcard/ts-calibration
rmmod mtdchar
for cdma
Code:
modprobe mtdchar
dd if=/dev/mtd/mtd0ro bs=2048 skip=22850 count=1 | od -I | \
awk '/^0001720/ {p3=$4 "," $5} \
/^0001740/ {p1=$2 "," $3; p4=$4 "," $5} \
/^0001760/ {p5=$2 "," $3; p2=$4 "," $5} \
END {print p1 "," p2 "," p3 "," p4 "," p5}' > /sdcard/ts-calibration
rmmod mtdchar
Easiest thing to do would be to throw this somewhere inside the init on the rootfs. Somewhere before the ts-calibration portion. Should work.
If you want to test, just type that via ADB and you will see the points you have stored from winmo