Difference between revisions of "Serial debugging:Cable schematics"

From postmarketOS
Jump to navigation Jump to search
(Added table with detailed settings)
Line 36: Line 36:
* Samsung i897 (Captivate)
* Samsung i897 (Captivate)
=== Galaxy Nexus (Samsung i9250) ===
{| class="wikitable sortable"
Changes to the above schematic:
  ! rowspan="2" | Device
* Use 619K ohm resistor
  ! rowspan="2" | Codename
* Do not connect the Vcc
  ! colspan="2" | Connection
  ! colspan="5" | Settings
  !  Resistor !! Connected VCC !!  Speed  !!  Data bits  !!  Stop bits  !!  Parity  !!  Flow control
  | style="white-space: nowrap;" | [[Google Galaxy Nexus GSM (samsung-maguro)|Google Galaxy Nexus (GSM)]]
  | style="white-space: nowrap;" | samsung-maguro
  | 619K ohm || No
  |  ||  ||  ||  ||
  | style="white-space: nowrap;" | [[Samsung Galaxy Mini 2 (samsung-s6500d)|Samsung Galaxy Mini 2]]
  | style="white-space: nowrap;" | samsung-s6500d
  | 530K ohm || No
  | 115200 || 8 || 1 || No || None
== Mozilla Flame ==
== Mozilla Flame ==

Revision as of 19:08, 30 December 2017

Some phones have a serial port accessible from the outside, this makes debugging boot problems way easier since you can see the boot messages from the bootloader and the early kernel stuff. For example the whole nexus range has serial debugging through the headphone jack.

Nexus debug cable

The nexus phones multiplexed the serial debug lines with the headphone audio lines. To switch it into serial mode you have to supply -3V to the mic port. The uart lines themselves are 1.8V. If you use a 3.3V usb-to-uart adapter the signal from the phone will probably work, for the TX side you have to add a resistor divider to lover the voltage for the phone. Here's the schematic for a nexus debug cable:


This cable has been tested with:

  • Nexus 5 hammerhead
  • Nexus 5x bullhead

It should work fine with:

  • Nexus 7 2013 (flo)

The Nexus 7 2012 (grouper) does not work with this setup and likely does not have any serial UART capabilities at all.

Google open sourced their own debug cable design in the AOSP repository.

Nexus USB debug cable

The nexus S and galaxy nexus have the serial port multiplexed with the USB connector instead of the headphone connector. This is the schematic for those devices, For this cable too it's important to have a 3.3V usb-to-uart adapter.


It should work with:

  • Nexus S
  • Galaxy Nexus
  • Samsung GT-I8190 (Galaxy S3 mini)
  • Samsung GT-I5800 (Galaxy 3)
  • Samsung GT-P1000 (Galaxy Tab P1000)
  • Samsung GT-S8500 (Wave)
  • Samsung i897 (Captivate)
Device Codename Connection Settings
Resistor Connected VCC Speed Data bits Stop bits Parity Flow control
Google Galaxy Nexus (GSM) samsung-maguro 619K ohm No
Samsung Galaxy Mini 2 samsung-s6500d 530K ohm No 115200 8 1 No None

Mozilla Flame

The Flame has open UART pads that are accessible underneath the outer and inner covers.

  • TX - red
  • GND - green

Pull-ups/downs are unneccesary, hook straight up to any FTDI/USB-to-serial.


Nokia N900

See the following links:


Motorola Droid 4

A off-the-shelf USB-TTL Adapter with 3.3V signal level can be used together with a MicroUSB connector to access the phone's UART. By using a standard MicroUSB <-> USB A cable and just combine a USB jack with a cheap chinese USB-TTL adapter is space-saving and allows you to use the same MicroUSB cable to access the device in USB mode

See http://elektranox.org/2017/02/0009-droid-4-root/