Quote:
Originally Posted by [ACL]
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 
|
Cool. So all GSM RHOD's are the same, and all CDMA RHOD's are the same? For CDMA that wouldn't surprise me...
Also, I'll change where it outputs to, don't always want it at /sdcard... I think there's a $SDCARD var or some such thing.
One last piece - what about detection? I'm guessing that's the part you want me to script?