Сериен порт на Google Nexus 4 (LG E960)

Моделът има интересно решение за мястото на серийния порт -> през изхода за слушалки.

Следната проста схема позволява да се достигне до конзолата на телефона:

jack_sch_nex4

Настройките на COM порта са стандартни -> 115200 8N1

По-долу има примерен изход при стартиране на телефона:

welcome to mako bootloader
[10] Power on reason 1
[20] bpp 24
[70] cable type from shared memory: 12
[110] reboot_mode restart reason = power_on
[110] Loading boot image (6600704): start
[320] Loading boot image (6600704): done
[320] get_display_kcal = 0, 0, 0, x
[330]
Booting Linux
[330] vibe
[390] splash: boot
[390] cmdline: console=ttyHSL0,115200,n8 androidboot.hardware=mako lpj=67677 user_debug=31 uart_console=enable lcd_maker_id=primary lge.hreset=off lge.reset=rst_none gpt=enable lge.kcal=0|0|0|x lge.rev=rev_11 androidboot.emmc=true androidboot.serialno=07b0179a9[420] booting linux @ 0x80208000, ramdisk @ 0x81800000 (579841), tags/device tree @ 0x80200100
[    0.000000] Booting Linux on physical CPU 0
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 3.4.0-perf-gdffc258 (android-build@vpee9.mtv.corp.google.com) (gcc version 4.6.x-google 20120106 (prerelease) (GCC) ) #1 SMP PREEMPT Wed Jul 8 23:25:22 UTC 2015
[    0.000000] CPU: ARMv7 Processor [510f06f2] revision 2 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[    0.000000] Machine: QCT APQ8064 MAKO
[    0.000000] Truncating memory at 0xc0000000 to fit in 32-bit physical address space
[    0.000000] memory pool 3 (start fe9ff000 size 1600000) initialized
[    0.000000] Initialized persistent memory from 88700000-887fffff
[    0.000000] Memory policy: ECC disabled, Data cache writealloc
[    0.000000] smem_find(137, 80): wrong size 72
[    0.000000] socinfo_init: v6, id=109, ver=1.1, raw_id=1817, raw_ver=1817, hw_plat=8,  hw_plat_ver=65536
[    0.000000]  accessory_chip=0 hw_plat_subtype=1
[    0.000000] allocating 21626880 bytes at c228e000 (8248e000 physical) for fb
[    0.000000] PERCPU: Embedded 7 pages/cpu @c3731000 s15680 r0 d12992 u32768
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 479747
[    0.000000] Kernel command line: console=ttyHSL0,115200,n8 androidboot.hardware=mako lpj=67677 user_debug=31 uart_console=enable lcd_maker_id=primary lge.hreset=off lge.reset=rst_none gpt=enable lge.kcal=0|0|0|x lge.rev=rev_11 androidboot.emmc=true androidboot.serialno=07b0179a9ce44c0d androidboot.bootloader=MAKOZ30f androidboot.baseband=mdm bootreason=power_on
[    0.000000] UART CONSOLE : enable
....
[    0.002014] CPU: Testing write buffer coherency: ok
[    0.002289] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002319] hw perfevents: enabled with ARMv7 Krait PMU driver, 5 counters available
[    0.002380] Setting up static identity map for 0x80a27078 - 0x80a27100
[    0.005676] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.008118] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[    0.010590] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[    0.010682] Brought up 4 CPUs 
....

Повече информация има на линковете по-долу.

Източници:

Giving the Nexus 4 a serial port

https://www.optiv.com/blog/building-a-nexus-4-uart-debug-cable

https://www.thanassis.space/android.html

 

Advertisements