Project

General

Profile

UART » History » Version 60

Denis 'GNUtoo' Carikli, 03/08/2020 02:37 AM

1 40 Denis 'GNUtoo' Carikli
h1. UART
2 1 Denis 'GNUtoo' Carikli
3 12 Denis 'GNUtoo' Carikli
There is an in-depth article covering several Samsung devices in the [[SamsungSerial]] page
4 11 Denis 'GNUtoo' Carikli
5 1 Denis 'GNUtoo' Carikli
h2. Settings
6 12 Denis 'GNUtoo' Carikli
7 31 Denis 'GNUtoo' Carikli
|_. Device and documentation |_. I/O voltage |_. ID<->GND |_. SOC TX |_. SOC RX |_. switch |_. stock bootloader settings |_. Comments |
8 58 Denis 'GNUtoo' Carikli
| GT-I9100 | | 510k | | | "MAX8997":https://git.replicant.us/replicant/kernel_samsung_smdk4412/tree/arch/arm/configs/lineageos_i9100_defconfig#n1294 | *UART settings*: ttySAC2 115200 8N1 
9
 To get the UART enabled at boot with the stock bootloader:
10 57 Denis 'GNUtoo' Carikli
* Power the phone off and remove the battery
11
* Put a battery in
12
* Press the select button
13
* Plug the UART
14 58 Denis 'GNUtoo' Carikli
* Stop pressing the select button | At some point the boot procedure switches to the modem UART, it's probably some linux driver doing that |
15 59 Denis 'GNUtoo' Carikli
| GT-I9100G_CHN_CHN | 1.8V[8] ? | 619k[9] | D- | D+ | ? | *UART settings*: 115200 8N1 | Very few prints from Xloader, the next bootloader used by Android 2.6.3 doesn't seem to print much |
16
| GT-I9300 |/2. 1.8V[1] |/4. 619 kOhms[3] |/4. D- |/4. D+ |/4. MAX77693[5] |/4. *UART settings*: 115200
17 32 Denis 'GNUtoo' Carikli
* pressing the volume-down button during boot increase verbosity |/2. It gives a shell once Replicant 6 has booted |
18 48 Denis 'GNUtoo' Carikli
| GT-I9305 |
19
| GT-N7100 | ? | |
20
| GT-N7105 | ? | |
21
| [[GalaxyNexusI9250SerialConsole|Galaxy Nexus (GT-I9250)]] | | 619 kOhms[4] | D+ | D- | FSA9480[7] |  * By default: ttyFIQ0, 115200 8N1
22 43 Denis 'GNUtoo' Carikli
* With patching: ttyO2, 115200 8N1
23
See [[GalaxyNexusI9250SerialConsole]] for more details. | |
24 45 Denis 'GNUtoo' Carikli
| [[NexusSI902xSerial|Nexus S]] | | 150 kOhm | | | FSA9480 | | |
25 48 Denis 'GNUtoo' Carikli
| [[OptimusBlackSerial|Optimus Black (P970)]] | 1.8V[6] | N/A[2] | | | DP3T | | |
26 60 Denis 'GNUtoo' Carikli
| ODROID-U3, console UART | 1.8V |\4. "connector":https://wiki.odroid.com/accessory/development/usb_uart_kit#odroid_port_description_of_uart_connector | *UART settings*: ttySAC1, 115200 8N1 | |
27
| ODROID-U3, IO pins UART | 1.8V |\4. "connector":https://wiki.odroid.com/old_product/odroid-x_u_q/odroid_u3/u3_ioport_uart | *UART settings*: ttySAC0, 115200 8N1 | |
28 17 Denis 'GNUtoo' Carikli
29 1 Denis 'GNUtoo' Carikli
fn1. Measured between USB GND and USB VCC
30
31
fn2. Code is required to use the switch as you need to configure both the MUIC and DP3T switch
32
33
fn3. See "The related driver source code":https://git.replicant.us/replicant/kernel_samsung_smdk4412/tree/drivers/misc/max77693-muic.c#n102
34
35
fn4. See the "postmarketOS wiki page on Serial debugging":https://wiki.postmarketos.org/wiki/Serial_debugging
36 30 Denis 'GNUtoo' Carikli
37 1 Denis 'GNUtoo' Carikli
fn5. See the "driver":https://git.replicant.us/replicant/kernel_samsung_smdk4412/tree/drivers/misc/max77693-muic.c and the "ifixit teardown":https://www.ifixit.com/Teardown/Samsung+Galaxy+S+III+Teardown/9391
38
39
fn6. Reference: [[OptimusBlackSerial]]
40 44 Denis 'GNUtoo' Carikli
41
fn7. See "board-tuna-connector.c":https://git.replicant.us/replicant/kernel_samsung_tuna/tree/arch/arm/mach-omap2/board-tuna-connector.c "fsa9480.c":https://git.replicant.us/replicant/kernel_samsung_tuna/tree/drivers/misc/fsa9480.c in "kernel_samsung_tuna":https://git.replicant.us/replicant/kernel_samsung_tuna
42 50 Denis 'GNUtoo' Carikli
43
fn8. Works, as it was tested on the device. TODO: measure the voltage, as lower UART voltages often works with higher voltage levels.
44
45
fn9. Works, as it was tested on the device. TODO: look the official reference in the driver for it.
46 23 Denis 'GNUtoo' Carikli
47 47 Denis 'GNUtoo' Carikli
h2. Datasheets
48
49
* "FSA9480.pdf":https://media.digikey.com/pdf/Data%20Sheets/Fairchild%20PDFs/FSA9480.pdf
50
51 23 Denis 'GNUtoo' Carikli
h2. Interesting links
52
53 34 Denis 'GNUtoo' Carikli
* There is a "page on Serial debugging":https://wiki.postmarketos.org/wiki/Serial_debugging on the postmarketOS wiki that contains information for using the serial port for many smartphones models.
54
* "mv-uart":https://osmocom.org/projects/mv-uart/wiki A serial port adapter with configurable voltages (and GPIOs)
55 53 Denis 'GNUtoo' Carikli
* "DHylands_SGS2_SerialAdapter":https://wiki.mozilla.org/DHylands_SGS2_SerialAdapter : A very compact setup but with fixed resistor value.