Cyanogen Serial Port Image

I've rebuilt Cyanogen's kernel with serial I/O support for HTC 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

  1. Download my custom serial boot.img for Cyanogen:
  2. 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!

Print

Posted by Eric Hokanson on Sat, 05 Dec 2009 23:28:32 -0600
Modified on Thu, 19 Aug 2010 21:36:21 -0500
Tags: Android, Cyanogen, kernel, serial port

Syndicate

Amazon

MP3 Daily Deal

Today's special: Enrique Iglesias' latest album Euphoria, featuring the hit "I Like It."

Today's price: $3.99