I've rebuilt Cyanogen's kernel with serial I/O support for the HTC G1 & MyTouch compatible phones. This allows you to talk to micro-controllers (e.g. Arduino) or whatnot using Android. See this Instructables post for info on building a cable for your HTC phone. Please note that this uses the same pins that are normally used for headset controls. After loading this image the headset will no longer work and Android shows the headset icon in the bar at all times (not sure how to fix that). If you're looking for Nexus One support, take a look at
- Download my custom serial boot.img for Cyanogen:
- Rename it to boot.img or substitute the long name below.
You can install it one of two ways:
$ fastboot flash:raw boot boot.img
$ fastboot reboot
or start your favorite terminal app on your phone and do:
$ su
# cat /dev/zero > /dev/mtd/mtd2
write: No space left on device [this is ok, you can ignore]
# flash_image boot /sdcard/boot.img
After rebooting the serial device will now be accessible via /dev/ttyMSM2. Enjoy!