From 0c1370b5f1b3e8abc934ea913a4377f05f32e4a9 Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Mon, 7 Aug 2017 22:05:24 +0300 Subject: Initial static build --- docs/wiki/Serial-debugging/index.html | 72 +++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 docs/wiki/Serial-debugging/index.html (limited to 'docs/wiki/Serial-debugging/index.html') diff --git a/docs/wiki/Serial-debugging/index.html b/docs/wiki/Serial-debugging/index.html new file mode 100644 index 0000000..8762c08 --- /dev/null +++ b/docs/wiki/Serial-debugging/index.html @@ -0,0 +1,72 @@ + + +
+ + +
+ postmarketOS
+ 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.
+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:
+It should work fine with:
+The Nexus 7 grouper might also work but that one has another pinout for the headset connection, it has the sleeve as mic and ring 2 as ground (This is the difference between the OMTP and the CTIA pinout). It might work with the sleeve and ring 2 reversed but this has not been tested by us, so do it under your own responsibility.
+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:
+The Flame has open UART pads that are accessible underneath the outer and inner covers.
+Pull-ups/downs are unneccesary, hook straight up to any FTDI/USB-to-serial.
+