Nexus 7 UART: Why do things the simple way if you can go complicated?

By | June 27, 2014

Alright folks, first off: I’m an idiot.

There, I said it. I finally managed to get the Nexus 7 UART to talk to me via a serial bridge through the headset jack.

Turns out I wired my breadboard the wrong way which ended up in a short over all 4 wires.

So how did I do it?

I got myself a 4 band pigtail 3.5mm headphone cable and soldered it according to according to this guide without any resistors.

Next off, I had to enable the console output via the kernel’s cmdline. For this, I grabbed the abootimg package on my debian machine and downloaded the razor stock image from android.com.

With abootimg, I extracted the boot.img and modified the parameter cmdline in bootimg.cf to this:

cmdline = console=ttyHSL0,115200,n8 androidboot.hardware=flo user_debug=31 msm_rtb.filter=0x3F ehci-hcd.park=3 console=ttyHSL0,115200,n8

The reason for the double entry is that the stock kernel ignores the first 26 characters (Thanks, Tassadar!). After that, you need to reassemble boot.img and flash it to the Nexus with fastboot.

After rebooting, plugging in the 3.3V serial converter first and the headphone plug second, the Nexus’ dmesg showed me, what I’ve been looking for quite some time:

<6>[ 4769.279571] HOOK_GPIO value: 0
<6>[ 4769.281799] insert_headset: debug board

Switching over to the terminal with minicom, I could already see the same line coming in over the serial line. Yeehaw!

A reboot showed the entire bootlog, even giving some more info on what the bootloader does (the actual kernel starts at line 88)

Android Bootloader - UART_DM Initialized!!!

[0] welcome to lk

[10] platform_init()
[10] PcbValue for Project ID= 1
[10] target_init()
[70] eMMC_Total_Sector = 0x1cd0000 (30212096)
[80] mmc: taac: 40000000, mclk_rate: 49152000, nsac: 100
[80] mmc: Read timeout set: 19760800 clk
[80] hw reset: 1
[90] QUP IN:bl:8, ff:32, OUT:bl:8, ff:32
[90] WR:Wrote 0x22c01aa to out_ff:0x12460110
[90] RD:Wrote 0x40101ab to out_ff:0x12460114
[100] idx:8, rem:1, num:2, mode:0
[100] QUP_IN_NOT_EMPTY:0x10; 0x20
[100] QUP_IN_NOT_EMPTY delay retry : 0
[160] idx:0, rem:1, num:2, mode:0
[160] Error time : 2
[160] emergency_shutdown_by_lowlow_battery = 100
[170] PcbValue for Project ID= 1
[170] PcbValue for Project ID= 1
[170] PcbValue for Lcd ID= 0 (read from gpio)
[180] display_init(), PcbId=1, LcdId=0
[180] Init flo/deb LK display.
[180] display_init(), JDI panel
[190] mipi_JDI_cmd_1080p_init+, HwValue = 0, LcdID_minor = 0
[190] mipi_JDI_cmd_1080p_init-
[190] LCM_XRES config
[200] JDI_IOVCC on
[220] EN_VDD_BL on
[240] LCM_XRES on
[260] mdp_clock_init+
[260] mdp_clock_init-
[260] mmss_clock_init+
[260] mmss_clock_init-
[270] Config MIPI_CMD_PANEL.
[470] mipi_dsi_panel_initialize : num_of_panel_cmds number = 20
[480] Data Lane: 0xf
[480] Turn on MIPI_CMD_PANEL.
[480] mipi_JDI_cmd_1080p_on+
[480] PWM config
[490] mipi_JDI_cmd_1080p_on-
[490] ASUS_charger_mode start
[490] save_reboot_reason = 77665501
[490] Power on reason 1
[500] get_power_on_reason = Reboot
[500] Power on reason 1
[500] get_power_on_reason = Reboot
[510] Power on reason 1
[510] get_power_on_reason = Reboot
[510] WR:Wrote 0x22c01aa to out_ff:0x12460110
[510] RD:Wrote 0x40101ab to out_ff:0x12460114
[520] idx:8, rem:1, num:2, mode:0
[520] low_capacity_check: battery capacity = 100
[530] Battery capacity > low Battery voltage; show bootup logo
[540] Total number of decoded_array elements:285936
[540] PcbValue for Project ID= 1
[550] PcbValue for Lcd ID= 0
[550] Total number of decoded_array elements:20304
[550] PcbValue for Project ID= 1
[560] PcbValue for Lcd ID= 0
[560] PcbValue for Project ID= 1
[570] backlight command (102)
[590] LCD_BL_EN on (after SR2)
[600] OdmData Value:2
[600] PcbValue for Project ID= 1
[600] [BL] Asus_security_flag = 0x55
[600] [BL] ASUS_Get_Fuse_Info - fuse_info=Y
[610] GetDDRID: ddr_id = 0
[610] PcbValue for Project ID= 1
[610] eMMC_Total_Sector = 0x1cd0000
[620] baseband_str:G0023701024
[620] baseband_ver:G00_2.37.0_1024
[620] baseband_ver_with_prefix:DEB-G00_2.37.0_1024
[630] vol_up:0 vol_down:0
[630] Loading boot image (7180288): start
[830] Loading boot image (7180288): done
[830] UART is disabled!
[840] Power on reason 1
[840] Power on reason 1
[840] get_power_on_reason = Reboot
[840] cmdline: androidboot.hardware=flo user_debug=31 msm_rtb.filter=0x3F ehci-hcd.park=3 console=ttyHSL0,115200,n8 androidboot.emmc=true androidboot.serialno=08820XXX bootreason=R0
[870] PcbValue for Project ID= 1
[870] PcbValue for Lcd ID= 0
[870] PcbValue for Project ID= 1
[870] Machine FLO was detected
[ 0.000000] Booting Linux on physical CPU 0
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 3.4.0-gb0eacf3 (android-build@vpbs1.mtv.corp.google.com) (gcc version 4.6.x-google 20120106 (prerelease) (GCC) ) #1 SMP PREEMPT Wed Oct 23 17:41:58 PDT 2013
[ 0.000000] CPU: ARMv7 Processor [511f06f0] revision 0 (ARMv7), cr=10c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[ 0.000000] Machine: QCT APQ8064 FLO
[ 0.000000] Truncating memory at 0x90000000 to fit in 32-bit physical address space
[ 0.000000] memory pool 3 (start fe9ff000 size 1600000) initialized
[ 0.000000] Initialized persistent memory from 88d00000-88dfffff
[ 0.000000] cma: CMA: reserved 16 MiB at af800000
[ 0.000000] Memory policy: ECC disabled, Data cache writealloc
[ 0.000000] socinfo_init: v7, id=172, ver=2.0, raw_id=2289, raw_ver=2289, hw_plat=8, hw_plat_ver=65536
[ 0.000000] accessory_chip=0, hw_plat_subtype=0, pmic_model=18, pmic_die_revision=4
[ 0.000000] allocating 44236800 bytes at c2479000 (82679000 physical) for fb
[ 0.000000] PERCPU: Embedded 7 pages/cpu @c4eac000 s15616 r0 d13056 u32768
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 478211
[ 0.000000] Kernel command line: androidboot.hardware=flo user_debug=31 msm_rtb.filter=0x3F ehci-hcd.park=3 console=ttyHSL0,115200,n8 androidboot.emmc=true androidboot.serialno1
[ 0.000000] HW Revision: ASUSTek input rev_e
[ 0.000000] HW Revision: ASUSTek matched rev_e
[ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Memory: 140MB 58MB 4MB 7MB 254MB 1420MB = 1883MB total
[ 0.000000] Memory: 1831228k/1951036k available, 97984k reserved, 1275900K highmem
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] vmalloc : 0xf0000000 - 0xff000000 ( 240 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xef800000 ( 760 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] .text : 0xc0008000 - 0xc0da2010 (13929 kB)
[ 0.000000] .init : 0xc0e00000 - 0xc0f03d00 (1040 kB)
[ 0.000000] .data : 0xc0f04000 - 0xc1044948 (1283 kB)
[ 0.000000] .bss : 0xc104496c - 0xc13407ec (3056 kB)
[ 0.000000] SLUB: Genslabs=11, HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] NR_IRQS:1177
[ 0.000000] sched_clock: 32 bits at 32kHz, resolution 30517ns, wraps every 131071999ms
[ 0.000000] Console: colour dummy device 80x30
[ 0.150207] Calibrating delay using timer specific routine.. 13.53 BogoMIPS (lpj=67676)
[ 0.150238] pid_max: default: 32768 minimum: 301
[ 0.150512] Security Framework initialized
[ 0.150573] SELinux: Initializing.
[ 0.150756] Mount-cache hash table entries: 512
[ 0.152221] Initializing cgroup subsys debug
[ 0.152221] Initializing cgroup subsys cpuacct
[ 0.152252] Initializing cgroup subsys freezer
[ 0.152282] CPU: Testing write buffer coherency: ok
[ 0.152648] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.152679] hw perfevents: enabled with ARMv7 Krait PMU driver, 5 counters available
[ 0.152770] Setting up static identity map for 0x80b10c80 - 0x80b10d08
[ 0.155242] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[ 0.157043] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[ 0.158905] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[ 0.159057] Brought up 4 CPUs
[ 0.159057] SMP: Total of 4 processors activated (54.14 BogoMIPS).
[ 0.175231] dummy:
[ 0.176757] NET: Registered protocol family 16
[ 0.183563] DMA: preallocated 1792 KiB pool for atomic coherent allocations
[ 0.183990] AXI: msm_bus_fabric_init_driver(): msm_bus_fabric_init_driver
[ 0.188293] MIDR = 0x511f06f0
[ 0.188323] meminfo_init: smem ram ptable found: ver: 0 len: 5
[ 0.188354] Found 1 memory banks grouped into 8 memory regions
[ 0.188720] gpiochip_add: registered GPIOs 0 to 151 on device: msmgpio
[ 0.189880] socinfo_init: v7, id=172, ver=2.0, raw_id=2289, raw_ver=2289, hw_plat=8, hw_plat_ver=65536
[ 0.189880] accessory_chip=0, hw_plat_subtype=0, pmic_model=18, pmic_die_revision=4
[ 0.189941] msm_rpm_init: RPM firmware 3.0.16842936
[ 0.211669] msm_rpm_get_status(): Status id 433 not defined for target
[ 0.211700] msm_rpm_get_status(): Status id 433 not defined for target
[ 0.211700] msm_rpm_get_status(): Status id 433 not defined for target
[ 0.211730] msm_rpm_get_status(): Status id 433 not defined for target
[ 0.211730] msm_rpm_get_status(): Status id 433 not defined for target
[ 0.211730] msm_rpm_get_status(): Status id 433 not defined for target
[ 0.211761] msm_rpm_get_status(): Status id 433 not defined for target
[ 0.211761] msm_rpm_get_status(): Status id 433 not defined for target
[ 0.230224] ASUSTek: Bypassing PCB_ID3
[ 0.230255] ASUSTek: PCBID=043
[ 0.231323] gpio_vreg_probe: id=203, name=ext_mpp8, gpio=203, gpio_label=ext_mpp8_en
[ 0.231567] pm8921_probe: PMIC revision 1: F4
[ 0.231567] pm8921_probe: PMIC revision 2: 06
[ 0.231597] pm8921_probe: PMIC version: PM8921 rev 3.0
[ 0.231597] pm8921_probe: PMIC Restart Reason: Triggered from KPD (power key press)
[ 0.232910] gpiochip_add: registered GPIOs 152 to 195 on device: pm-gpio
[ 0.233428] pm_gpio_probe: OK: base=152, ngpio=44
[ 0.233734] gpiochip_add: registered GPIOs 196 to 207 on device: pm8xxx-mpp
[ 0.233825] pm8xxx_mpp_probe: OK: base=196, ngpio=12
[ 0.235656] pm8821_probe: PMIC revision 1: PM8821 rev F3
[ 0.235656] pm8821_probe: PMIC revision 2: PM8821 rev 0B
[ 0.235687] pm8821_probe: PMIC version: PM8821 ver 2.1
[ 0.236358] gpiochip_add: registered GPIOs 208 to 211 on device: pm8xxx-mpp
[ 0.236389] pm8xxx_mpp_probe: OK: base=208, ngpio=4
[ 0.236694] gpio_vreg_probe: gpio_label required.
[ 0.236724] msm-gpio-regulator: probe of msm-gpio-regulator.174 failed with error -22
[ 0.237945] saw_probe: id=0, name=8921_s5
[ 0.238311] saw_probe: id=1, name=8921_s6
[ 0.238677] saw_probe: id=2, name=8821_s0
[ 0.239044] saw_probe: id=3, name=8821_s1
[ 0.247222] Sensors:DSPS: initial dsps.
[ 0.248291] [ELAN] Touch dirver register
[ 0.248657] persistent_ram: found existing buffer, size 156715, start 156715
[ 0.701354] console [ram-1] enabled
[ 0.701965] apq8064_init_fb: lcd_type=0
[ 0.702209] apq8064_init_fb: register mipi_JDI_panel_device
[ 0.703552] msm_gpiomux_install: write failure: -22
[ 0.703643] msm_gpiomux_install: write failure: -22
[ 0.703796] msm_gpiomux_install: write failure: -22
[ 0.703887] msm_gpiomux_install: write failure: -22
[ 0.704040] msm_gpiomux_install: write failure: -22
[ 0.704132] msm_gpiomux_install: write failure: -22
[ 0.705139] Registering gpio keys
[ 0.705230] Reconfigure VOL_UP(GPIO155) and VOL_DOWN(GPIO189) with PMIC
[ 0.705444] 8921_l17: Failed to create debugfs directory
[ 0.707336] ------------[ cut here ]------------
[ 0.707458] WARNING: at arch/arm/mach-msm/subsystem_restart.c:573 subsys_restart_init+0xd8/0x104()
[ 0.707672] [<c00147d0>] (unwind_backtrace+0x0/0x11c) from [<c0078bf8>] (warn_slowpath_common+0x48/0x60)
[ 0.707824] [<c0078bf8>] (warn_slowpath_common+0x48/0x60) from [<c0078cc8>] (warn_slowpath_null+0x18/0x1c)
[ 0.708007] [<c0078cc8>] (warn_slowpath_null+0x18/0x1c) from [<c0e0c0dc>] (subsys_restart_init+0xd8/0x104)
[ 0.708190] [<c0e0c0dc>] (subsys_restart_init+0xd8/0x104) from [<c0e009ac>] (do_one_initcall+0x90/0x160)
[ 0.708343] [<c0e009ac>] (do_one_initcall+0x90/0x160) from [<c0e00b64>] (kernel_init+0xe8/0x1a4)
[ 0.708465] [<c0e00b64>] (kernel_init+0xe8/0x1a4) from [<c000f3a8>] (kernel_thread_exit+0x0/0x8)
[ 0.708648] ---[ end trace c689c886d32a25bc ]---
[ 0.712951] sps:BAM 0x12244000 enabled: ver:0x5, number of pipes:20
[ 0.713043] sps:BAM 0x12244000 is registered.
[ 0.713623] sps:sps is ready.
[ 0.745941] bio: create slab <bio-0> at 0
[ 0.746673] vgaarb: loaded
[ 0.746948] ION heap vmalloc created
[ 0.747131] ION heap mm created at a0000000 with size 5c00000
[ 0.747253] ION heap mm_fw created at 9fe00000 with size 1e0000
[ 0.747436] ION heap mfc created at a5c00000 with size 2000
[ 0.747528] ION heap iommu created
[ 0.747680] ION heap qsecom created at fea07000 with size 780000
[ 0.747863] ION heap audio created at ff187000 with size 4cf000
[ 0.749176] pm8xxx_pwm_probe: OK
[ 0.749938] SCSI subsystem initialized
[ 0.750366] sps:BAM 0x28084000 enabled: ver:0x12, number of pipes:31
[ 0.750518] sps:BAM 0x28084000 is registered.
[ 0.754302] usbcore: registered new interface driver usbfs
[ 0.754608] usbcore: registered new interface driver hub
[ 0.754852] usbcore: registered new device driver usb
[ 0.755065] Linux media interface: v0.10
[ 0.755340] Linux video capture interface: v2.00
[ 0.756591] apq8064_pm8921_pwm_init+
[ 0.756805] apq8064_pm8921_pwm_init-
[ 0.757659] msm_iommu_dev: device vpe mapped at f0400000, with 2 ctx banks
[ 0.757873] msm_iommu_dev: device mdp0 mapped at f0600000, with 2 ctx banks
[ 0.758148] msm_iommu_dev: device mdp1 mapped at f0800000, with 2 ctx banks
[ 0.758453] msm_iommu_dev: device rot mapped at f0a00000, with 2 ctx banks
[ 0.758636] msm_iommu_dev: device ijpeg mapped at f0c00000, with 2 ctx banks
[ 0.758911] msm_iommu_dev: device vfe mapped at f0e00000, with 2 ctx banks
[ 0.759185] msm_iommu_dev: device vcodec_a mapped at f1000000, with 2 ctx banks
[ 0.759399] msm_iommu_dev: device vcodec_b mapped at f1200000, with 2 ctx banks
[ 0.759704] msm_iommu_dev: device gfx3d mapped at f1400000, with 3 ctx banks
[ 0.759887] msm_iommu_dev: device jpegd mapped at f1600000, with 2 ctx banks
[ 0.760192] msm_iommu_dev: device gfx3d1 mapped at f1800000, with 3 ctx banks
[ 0.760467] msm_iommu_dev: device vcap mapped at f1a00000, with 2 ctx banks
[ 0.760955] msm_iommu_ctx msm_iommu_ctx.2: context vpe_src using bank 0
[ 0.761230] msm_iommu_ctx msm_iommu_ctx.3: context vpe_dst using bank 1
[ 0.761505] msm_iommu_ctx msm_iommu_ctx.4: context mdp_port0_cb0 using bank 0
[ 0.761840] msm_iommu_ctx msm_iommu_ctx.5: context mdp_port0_cb1 using bank 1
[ 0.762145] msm_iommu_ctx msm_iommu_ctx.6: context mdp_port1_cb0 using bank 0
[ 0.762390] msm_iommu_ctx msm_iommu_ctx.7: context mdp_port1_cb1 using bank 1
[ 0.762695] msm_iommu_ctx msm_iommu_ctx.8: context rot_src using bank 0
[ 0.763000] msm_iommu_ctx msm_iommu_ctx.9: context rot_dst using bank 1
[ 0.763214] msm_iommu_ctx msm_iommu_ctx.10: context ijpeg_src using bank 0
[ 0.763519] msm_iommu_ctx msm_iommu_ctx.11: context ijpeg_dst using bank 1
[ 0.763763] msm_iommu_ctx msm_iommu_ctx.12: context vfe_imgwr using bank 0
[ 0.764068] msm_iommu_ctx msm_iommu_ctx.13: context vfe_misc using bank 1
[ 0.764343] msm_iommu_ctx msm_iommu_ctx.14: context vcodec_a_stream using bank 0
[ 0.764617] msm_iommu_ctx msm_iommu_ctx.15: context vcodec_a_mm1 using bank 1
[ 0.764953] msm_iommu_ctx msm_iommu_ctx.16: context vcodec_b_mm2 using bank 0
[ 0.765319] msm_iommu_ctx msm_iommu_ctx.17: context gfx3d_user using bank 0
[ 0.765625] msm_iommu_ctx msm_iommu_ctx.18: context gfx3d_priv using bank 1
[ 0.765930] msm_iommu_ctx msm_iommu_ctx.0: context jpegd_src using bank 0
[ 0.766204] msm_iommu_ctx msm_iommu_ctx.1: context jpegd_dst using bank 1
[ 0.766784] msm_iommu_ctx msm_iommu_ctx.19: context gfx3d1_user using bank 0
[ 0.767303] msm_iommu_ctx msm_iommu_ctx.20: context gfx3d1_priv using bank 1
[ 0.767639] msm_iommu_ctx msm_iommu_ctx.21: context vcap_vc using bank 0
[ 0.768066] msm_iommu_ctx msm_iommu_ctx.22: context vcap_vp using bank 1
[ 0.768341] Advanced Linux Sound Architecture Driver Version 1.0.25.
[ 0.769531] Bluetooth: Core ver 2.16
[ 0.769775] NET: Registered protocol family 31
[ 0.770019] Bluetooth: HCI device and connection manager initialized
[ 0.770172] Bluetooth: HCI socket layer initialized
[ 0.770416] Bluetooth: L2CAP socket layer initialized
[ 0.770812] Bluetooth: SCO socket layer initialized
[ 0.771484] cfg80211: Calling CRDA to update world regulatory domain
[ 0.771667] cfg80211: World regulatory domain updated:
[ 0.771911] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[ 0.772064] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 0.772308] cfg80211: (2457000 KHz - 2482000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 0.772552] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[ 0.772674] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 0.772918] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 0.774749] Switching to clocksource gp_timer
[ 0.829284] NET: Registered protocol family 2
[ 0.829833] IP route cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.830993] TCP established hash table entries: 131072 (order: 8, 1048576 bytes)
[ 0.833251] TCP bind hash table entries: 65536 (order: 7, 524288 bytes)
[ 0.834503] TCP: Hash tables configured (established 131072 bind 65536)
[ 0.834747] TCP: reno registered
[ 0.834899] UDP hash table entries: 512 (order: 2, 16384 bytes)
[ 0.835235] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[ 0.835968] NET: Registered protocol family 1
[ 0.836791] RPC: Registered named UNIX socket transport module.
[ 0.836914] RPC: Registered udp transport module.
[ 0.837158] RPC: Registered tcp transport module.
[ 0.837280] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.837982] Trying to unpack rootfs image as initramfs...
[ 0.886932] Freeing initrd memory: 480K
[ 0.889434] Detected 9 counters on the L2CC PMU.
[ 0.891418] pil_qdsp6v4 pil_qdsp6v4.0: using secure boot
[ 0.893127] pil_riva pil_riva: using secure boot
[ 0.896057] pil_dsps pil_dsps: using secure boot
[ 0.897430] pil_gss pil_gss: using secure boot
[ 0.899902] smd_channel_probe_worker: allocation table not initialized
[ 0.906097] msm_dsps driver version 4.03.
[ 0.907714] NET: Registered protocol family 27
[ 0.910644] dma_test_init, minor number 97
[ 0.910919] lpass_fatal_init: lpass SSR driver init'ed.
[ 0.911193] wcnss_8960: module initialized
[ 0.911560] gss_8064_init: gss fatal driver init'ed.
[ 0.912200] acpuclk-8064 acpuclk-8064: SPEED BIN: 14
[ 0.912353] acpuclk-8064 acpuclk-8064: ACPU PVS: 4
[ 0.915008] acpuclk-8064 acpuclk-8064: CPU0: 12 frequencies supported
[ 0.915222] acpuclk-8064 acpuclk-8064: CPU1: 12 frequencies supported
[ 0.915313] acpuclk-8064 acpuclk-8064: CPU2: 12 frequencies supported
[ 0.915496] acpuclk-8064 acpuclk-8064: CPU3: 12 frequencies supported
[ 0.918182] msm_rpm_log_probe: OK
[ 0.921417] usbcore: registered new interface driver hsic_sysmon
[ 0.921875] audit: initializing netlink socket (disabled)
[ 0.922119] type=2000 audit(0.910:1): initialized
[ 0.923736] highmem bounce pool size: 64 pages
[ 0.941589] NFS: Registering the id_resolver key type
[ 0.944091] fuse init (API version 7.18)
[ 0.944854] msgmni has been set to 1117
[ 0.949890] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[ 0.950073] io scheduler noop registered
[ 0.950408] io scheduler deadline registered
[ 0.950958] io scheduler cfq registered (default)
[ 0.951293] io scheduler test-iosched registered
[ 0.955993] mipi_dsi base phy_addr = 0x4700000 virt = 0xf1c00000
[ 0.956359] mmss_sfpb base phy_addr = 0x5700000,virt = 0xf00fc000
[ 0.956848] mipi_JDI_1080P_pt_init+
[ 0.957336] mipi_JDI_lcd_probe+
[ 0.957672] mipi_JDI_lcd_probe, hw_revision=0
[ 0.957855] mipi_JDI_lcd_probe, lcd_pwm_type=0
[ 0.958587] mipi_JDI_lcd_probe+
[ 0.958892] mipi_JDI_lcd_probe, hw_revision=0
[ 0.959106] mipi_JDI_lcd_probe, lcd_pwm_type=0
[ 0.959289] setting pdata->panel_info.fb_num to 3. type: 9
[ 0.973907] FrameBuffer[0] 1200x1920 size=28016640 bytes is registered successfully!
[ 0.974731] mipi_JDI_lcd_probe-
[ 0.974822] mipi_JDI_1080P_pt_init-
[ 0.976287] setting pdata->panel_info.fb_num to 1. type: 7
[ 0.979370] FrameBuffer[1] 1920x1080 size=0 bytes is registered successfully!
[ 0.979858] mdp4_dtv_vsync_init: ndx=0
[ 0.980194] hdmi_msm hdmi_msm.1: external_common_state_create: sysfs group ede86a08
[ 0.980316] hdmi_msm hdmi_msm.1: hdmi_msm_config_hdcp_feature: HDCP Feature: Enabled
[ 0.981842]
[ 0.981842] msm_vidc_enc: Inside vid_enc_init()
[ 0.982330]
[ 0.982330] msm_vidc_enc: Inside vid_enc_vcd_init()
[ 0.983978] msm_serial_hs module loaded
[ 0.984405] msm_serial_hsl: detected port #1
[ 0.984741] msm_serial_hsl.1: ttyHSL1 at MMIO 0x12450000 (irq = 225) is a MSM
[ 0.985076] msm_serial_hsl: detected port #0
[ 0.985443] msm_serial_hsl.0: ttyHSL0 at MMIO 0x16640000 (irq = 190) is a MSM
[ 0.985626] msm_serial_hsl: console setup on port #0
[ 2.535247] console [ttyHSL0] enabled
[ 2.539154] msm_serial_hsl: driver initialized
[ 2.544952] msm_rotator_probe: rotator_hw_revision=2
[ 2.552490] diagchar initialized now
[ 2.560668] kgsl kgsl-3d0: |kgsl_iommu_init| MMU type set for device is IOMMU
[ 2.578399] brd: module loaded
[ 2.584564] loop: module loaded
[ 2.588653] anx7808 init gpio
[ 2.665618] sp_tx_hardware_poweron: anx7808 power on
[ 2.670379] ANX7808 is found.
[ 2.673889] 3.3V output disabled
[ 2.735961] sp_tx_hardware_powerdown: anx7808 power down
[ 2.740325] SP_TX To System State:
[ 2.743713] STATE_CABLE_PLUG
[ 2.746978] tabla-slim tabla-slim: Platform data from board file
[ 2.916259] wcd9xxx_slim_probe: failed to get slimbus tabla-slim logical address: -6
[ 2.926177] tabla2x-slim tabla2x-slim: Platform data from board file
[ 2.992645] wcd9xxx_check_codec_type: codec is tabla_codec
[ 2.997222] wcd9xxx_check_codec_type: Read codec idbytes & version
[ 2.997222] byte_0[00000002] byte_1[00000000] byte_2[00000000]
[ 2.997253] byte_3[00000001] version = 2
[ 3.014709] i2c-core: driver [tabla-i2c-core] using legacy suspend method
[ 3.020690] i2c-core: driver [tabla-i2c-core] using legacy resume method
[ 3.028747] bcm2079x-i2c 0-0077: bcm2079x_probe, probing bcm2079x driver flags = 0
[ 3.035797] bcm2079x-i2c 0-0077: requesting IRQ 320
[ 3.040618] bcm2079x-i2c 0-0077: bcm2079x_probe, probing bcm2079x driver exited successfully
[ 3.049835] SCSI Media Changer driver v0.25
[ 3.054138] spi_qsd spi_qsd.0: master is unqueued, this is deprecated
[ 3.062408] tun: Universal TUN/TAP device driver, 1.6
[ 3.066680] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[ 3.072967] rmnet_init: BAM devices[8]
[ 3.101959] PPP generic driver version 2.4.2
[ 3.105651] PPP BSD Compression module registered
[ 3.110198] PPP Deflate Compression module registered
[ 3.115753] PPP MPPE Compression module registered
[ 3.119873] NET: Registered protocol family 24
[ 3.124511] SLIP: version 0.8.4-NET3.019-NEWTTY (dynamic channels, max=256) (6 bit encapsulation enabled).
[ 3.134124] CSLIP: code copyright 1989 Regents of the University of California.
[ 3.141448] wcnss_wlan probed in built-in mode
[ 3.147186] usbcore: registered new interface driver asix
[ 3.151824] usbcore: registered new interface driver cdc_ether
[ 3.157836] usbcore: registered new interface driver net1080
[ 3.163269] usbcore: registered new interface driver cdc_subset
[ 3.169372] usbcore: registered new interface driver zaurus
[ 3.174957] usbcore: registered new interface driver cdc_ncm
[ 3.180572] smb345_probe+
[ 3.186248] smb345_charger: [smb345_inok_irq] GPIO pin irq 311 requested ok, smb345_INOK = L
[ 3.193908] smb345_charger: [smb345_wireless_irq] GPIO pin irq 322 requested ok, wpc_pok = H
[ 3.202209] smb345_charger: [smb345_wireless_en_config] GPIO pin 179, 183 requested ok, wpc_en1 = L, wpc_en2 = L
[ 3.212341] smb345_probe-
[ 3.215026] i2c-core: driver [smb345] using legacy suspend method
[ 3.221008] i2c-core: driver [smb345] using legacy resume method
[ 3.227142] bq27541_probe + client->addr= 55
[ 3.232269] bq27541_get_psp status: Not charging ret= 0x0200
[ 3.237976] bq27541_get_psp voltage_now= 4276000 uV
[ 3.242767] bq27541_get_capacity = 100% ret= 100
[ 3.247406] bq27541_get_psp temperature= 228 (0.1?XC)
[ 3.253356] bq27541_get_psp current = -47 mA
[ 3.257751] bq27541_get_psp status: Not charging ret= 0x0200
[ 3.263427] bq27541_get_psp status: Not charging ret= 0x0200
[ 3.268768] setup_low_battery_irq irq=317, LL_BAT_T30=1
[ 3.269073] bq27541_get_psp voltage_now= 4276000 uV
[ 3.269958] bq27541_get_capacity = 100% ret= 100
[ 3.270843] bq27541_get_psp temperature= 228 (0.1?XC)
[ 3.272583] bq27541_get_psp current = -47 mA
[ 3.292236] bq27541_probe - bq27541-battery driver registered
[ 3.298187] i2c-core: driver [bq27541-battery] using legacy suspend method
[ 3.304779] i2c-core: driver [bq27541-battery] using legacy resume method
[ 3.311920] msm_otg msm_otg: msm_otg probe
[ 3.315734] msm_otg msm_otg: failed to get phy_clk
[ 3.320617] msm_otg msm_otg: OTG regs = f0308000
[ 3.327758] msm_otg msm_otg: PMIC IRQ for ID notifications doesn't exist
[ 3.333770] gpio 23 request failed
[ 3.337066] msm_otg_acok_init: GPIO pin irq 311 requested ok, msm_otg_ACOK = L
[ 3.344390] gpio 77 request failed
[ 3.347808] msm_otg_id_pin_init: GPIO pin irq 365 requested ok, msm_otg_id_pin = H
[ 3.355743] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 3.362823] usbcore: registered new interface driver cdc_acm
[ 3.367614] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[ 3.375610] Initializing USB Mass Storage driver...
[ 3.380401] usbcore: registered new interface driver usb-storage
[ 3.386474] USB Mass Storage support registered.
[ 3.390991] usbcore: registered new interface driver ums-alauda
[ 3.396942] usbcore: registered new interface driver ums-cypress
[ 3.402954] usbcore: registered new interface driver ums-datafab
[ 3.408996] usbcore: registered new interface driver ums-freecom
[ 3.414886] usbcore: registered new interface driver ums-isd200
[ 3.420867] usbcore: registered new interface driver ums-jumpshot
[ 3.426879] usbcore: registered new interface driver ums-karma
[ 3.432739] usbcore: registered new interface driver ums-onetouch
[ 3.438781] usbcore: registered new interface driver ums-sddr09
[ 3.444702] usbcore: registered new interface driver ums-sddr55
[ 3.450592] usbcore: registered new interface driver ums-usbat
[ 3.456542] usbcore: registered new interface driver usbserial
[ 3.462127] usbserial: USB Serial Driver core
[ 3.466613] usbcore: registered new interface driver qc_csvt
[ 3.472167] USB Serial support registered for qc_csvt
[ 3.477325] usbcore: registered new interface driver usb_ehset_test
[ 3.483459] usbcore: registered new interface driver diag_bridge
[ 3.489746] usbcore: registered new interface driver mdm_bridge
[ 3.496154] usbcore: registered new interface driver ks_bridge
[ 3.501190] ksb_init: init done
[ 3.504547] msm_otg msm_otg: phy_reset: success
[ 3.509582] msm_hsusb msm_hsusb: [ci13xxx_start] hw_ep_max = 32
[ 3.514923] mbim_init: initialize 1 instances
[ 3.519165] mbim_init: Initialized 1 ports
[ 3.526458] rndis_qc_init: initialize rndis QC instance
[ 3.531433] android_usb gadget: Mass Storage Function, version: 2009/09/11
[ 3.537872] android_usb gadget: Number of LUNs=1
[ 3.542266] lun0: LUN: removable file: (no medium)
[ 3.547943] android_usb gadget: android_usb ready
[ 3.553100] mousedev: PS/2 mouse device common for all mice
[ 3.558898] usbcore: registered new interface driver xpad
[ 3.563598] [ektf3k]:[elan] elan_ktf3k_ts_init
[ 3.568176] [ektf3k]:[ELAN] Start HW reset!
[ 3.615661] [usb_otg] switch to peripheral mode by default (boot)
[ 3.825683] [ektf3k]:[elan]detect intr=>Old FW
[ 3.829437] [ektf3k]:The boot code is old!
[ 3.855957] [ektf3k]:[elan] __hello_packet_handler: hello packet 55:55:55:55
[ 3.862121] [ektf3k]:[elan] hello packet's rc = 0
[ 3.866851] notifying plugin
[ 3.995758] msm_otg msm_otg: chg_type = USB_SDP_CHARGER
[ 4.000091] smb345_charger: [usb_cable_type_detect] INOK=L
[ 4.005493] smb345_charger: [usb_cable_type_detect] Cable: SDP
[ 4.011932] smb345_charger: [smb345_vflt_setting] Bypass set Float Volt=e8
[ 4.018493] ========================================================
[ 4.024566] bq27541_battery_callback usb_cable_state = 1
[ 4.029907] ========================================================
[ 4.036315] battery_callback cable_wake_lock 5 sec...
[ 4.036346]
[ 4.042724] The USB cable status = CHARGER_SDP
[ 4.050994] msm_hsusb msm_hsusb: CI13XXX_CONTROLLER_RESET_EVENT received
[ 4.077575] [ektf3k]:[elan] __fw_packet_handler: firmware version: 0xa044
[ 4.097442] [ektf3k]:[elan] __fw_packet_handler: X resolution: 0x007e
[ 4.104919] [ektf3k]:[elan] __fw_packet_handler: Y resolution: 0x00d2
[ 4.112335] [ektf3k]:[elan] __fw_packet_handler: firmware id: 0x3029
[ 4.119750] [ektf3k]:[elan] __fw_packet_handler: boot code id: 0x6047
[ 4.125244] [ektf3k]:[Elan] Max X=2239, Max Y=1343
[ 4.130340] input: elan-touchscreen as /devices/virtual/input/input0
[ 4.136627] [ektf3k]:The firmware was version 0xA044 and id:0x3029
[ 4.142608] [ektf3k]: /proc/ektf_dbg created
[ 4.147155] [ektf3k]:[elan] Start touchscreen elan-touchscreen in interrupt mode
[ 4.154296] [ektf3k]:[ELAN]misc_register finished!!
[ 4.158874] elan-ktf3k 3-0010: Update power source to 1
[ 4.164764] lis3dh_acc accelerometer driver: init
[ 4.168975] i2c-core: driver [lis3dh_acc] using legacy suspend method
[ 4.175384] i2c-core: driver [lis3dh_acc] using legacy resume method
[ 4.181976] ASUSTek: lid_driver_probe
[ 4.185363] input: lid_input as /devices/virtual/input/input1
[ 4.192596] using rtc device, pm8xxx_rtc, for alarms
[ 4.196563] rtc-pm8xxx rtc-pm8xxx: rtc core: registered pm8xxx_rtc as rtc0
[ 4.203857] i2c /dev entries driver
[ 4.210662] ov5693_init_module:105
[ 4.213409] ov5693_init_module:110 rc -19
[ 4.251678] gpio 25 VCM_PD(1)
[ 4.253753] gpio 31 XSHUTDN(1)
[ 4.320556] mi1040_init_module:323
[ 4.323333] mi1040_init_module:329 rc -19
[ 4.505676] gpio 43 CAM_RST(1)
[ 4.565643] mi1040_sensor_match_id +++
[ 4.569061] Sensor id: 0x2481
[ 4.571411] PMIC gpio 11 CAM_VENDOR_1(1)
[ 4.575378] PMIC gpio 10 CAM_VENDOR_0(0)
[ 4.579254] PMIC gpio 24 CAM_LENS(1)
[ 4.582763] Vendor is A
[ 4.585174] mi1040_sensor_match_id ---
[ 4.827667] lirc_dev: IR Remote Control driver registered, major 237
[ 4.833160] IR NEC protocol handler initialized
[ 4.837799] IR RC5(x) protocol handler initialized
[ 4.842437] IR RC6 protocol handler initialized
[ 4.847045] IR JVC protocol handler initialized
[ 4.851470] IR Sony protocol handler initialized
[ 4.856109] IR RC5 (streamzap) protocol handler initialized
[ 4.861694] IR SANYO protocol handler initialized
[ 4.866333] IR MCE Keyboard/mouse protocol handler initialized
[ 4.872192] IR LIRC bridge handler initialized
[ 4.877136] gspca_main: v2.14.0 registered
[ 4.881072] usbcore: registered new interface driver uvcvideo
[ 4.886383] USB Video Class driver (1.1.1)
[ 4.892150] pm8xxx_adc_probe: failed to request pa_therm vreg with error -517
[ 4.899414] CAP1106: [cap1106_init]
[ 4.902069] i2c-core: driver [cap1106] using legacy suspend method
[ 4.908294] i2c-core: driver [cap1106] using legacy resume method
[ 4.937683] pm8xxx_tm_probe: OK
[ 4.940917] pm8xxx_tm_probe: OK
[ 4.944915] device-mapper: ioctl: 4.22.0-ioctl (2011-10-19) initialised: dm-devel@redhat.com
[ 4.953063] Bluetooth: HCI UART driver ver 2.2
[ 4.956970] Bluetooth: HCI H4 protocol initialized
[ 4.961822] Bluetooth: HCIATH3K protocol initialized
[ 4.967254] Bluetooth: HCI_IBS protocol initialized
[ 4.973144] cpuidle: using governor ladder
[ 4.976623] cpuidle: using governor menu
[ 4.980987] mmc0: SDCC Version: 0x06000018
[ 4.986114] mmc0: bam physical base=0x12402000
[ 4.989685] mmc0: bam virtual base=0xf0334000
[ 4.993957] sps:BAM 0x12402000 is registered.
[ 4.998229] mmc0: BAM device registered. bam_handle=0xed94d600
[ 5.005737] sps:BAM 0x12402000 enabled: ver:0x5, number of pipes:6
[ 5.012603] mmc0: Qualcomm MSM SDCC-BAM at 0x0000000012402000 irq 130
[ 5.018341] mmc0: Qualcomm MSM SDCC-DML at 0x0000000012400800
[ 5.024139] mmc0: No card detect facilities available
[ 5.030883] mmc0: Qualcomm MSM SDCC-core at 0x0000000012400000 irq 136,0 dma -1 dmacrcri -1
[ 5.038391] mmc0: Controller capabilities: 0x0000039a
[ 5.043334] mmc0: 8 bit data mode enabled
[ 5.047546] mmc0: 4 bit data mode disabled
[ 5.051422] mmc0: polling status mode disabled
[ 5.055877] mmc0: MMC clock 400000 -> 96000000 Hz, PCLK 0 Hz
[ 5.061492] mmc0: Slot eject status = 0
[ 5.065277] mmc0: Power save feature enable = 1
[ 5.069885] mmc0: SPS-BAM data transfer mode available
[ 5.077667] usbcore: registered new interface driver usbhid
[ 5.082366] usbhid: USB HID core driver
[ 5.097106] ashmem: initialized
[ 5.099426] logger: created 256K log 'log_main'
[ 5.109039] logger: created 256K log 'log_events'
[ 5.117980] logger: created 256K log 'log_radio'
[ 5.126861] logger: created 256K log 'log_system'
[ 5.146575] usbcore: registered new interface driver snd-usb-audio
[ 5.168762] tabla_probe
[ 5.172119] msm_pcm_probe: dev name msm-voip-dsp
[ 5.176177] msm-dai-q6-mi2s msm-dai-q6-mi2s: msm_dai_q6_mi2s_platform_data_validation: playback sdline 0 capture sdline 8
[ 5.186828] msm-dai-q6-mi2s msm-dai-q6-mi2s: msm_dai_q6_mi2s_platform_data_validation: playback ch_max 0 capture ch_mx 8
[ 5.199005] msm_pcm_probe: dev name msm-pcm-dsp
[ 5.203002] msm_pcm_probe: dev name msm-multi-ch-pcm-dsp
[ 5.208343] msm_pcm_probe: dev name msm-lowlatency-pcm-dsp
[ 5.213348] adding pm_qos request in low latency driver
[ 5.218750] done adding pm_qos request in low latency driver
[ 5.225311] msm_compr_probe: dev name msm-compr-dsp
[ 5.230102] msm-pcm-lpa msm-pcm-lpa: msm_pcm_probe: dev name msm-pcm-lpa
[ 5.237121] msm8930_audio_init: Not the right machine type
[ 5.241790] msm_audio_init: Not the right machine type
[ 5.246856] msm_audio_init: Not APQ8064 in I2S mode
[ 5.253540] mmc0: new HS200 MMC card at address 0001
[ 5.258361] mmcblk0: mmc0:0001 MMC16G 14.4 GiB
[ 5.269165] mmcblk0: p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 p16 p17 p18 p19 p20 p21 p22 p23 p24 p25 p26 p27 p28 p29 p30
[ 5.372558] asoc: snd-soc-dummy-dai <-> MultiMedia1 mapping ok
[ 5.378631] asoc: snd-soc-dummy-dai <-> MultiMedia2 mapping ok
[ 5.384674] asoc: snd-soc-dummy-dai <-> CS-VOICE mapping ok
[ 5.390350] asoc: snd-soc-dummy-dai <-> VoIP mapping ok
[ 5.395782] asoc: snd-soc-dummy-dai <-> MultiMedia3 mapping ok
[ 5.401611] asoc: snd-soc-dummy-dai <-> SLIMBUS0_HOSTLESS mapping ok
[ 5.408233] asoc: snd-soc-dummy-dai <-> INT_FM_HOSTLESS mapping ok
[ 5.414337] asoc: msm-stub-rx <-> msm-dai-q6.241 mapping ok
[ 5.420013] asoc: msm-stub-tx <-> msm-dai-q6.240 mapping ok
[ 5.425750] asoc: snd-soc-dummy-dai <-> MultiMedia4 mapping ok
[ 5.431793] asoc: snd-soc-dummy-dai <-> AUXPCM_HOSTLESS mapping ok
[ 5.438171] asoc: snd-soc-dummy-dai <-> HDMI_HOSTLESS mapping ok
[ 5.444427] asoc: snd-soc-dummy-dai <-> VOICE_STUB mapping ok
[ 5.450225] asoc: snd-soc-dummy-dai <-> VoLTE mapping ok
[ 5.455749] asoc: snd-soc-dummy-dai <-> MultiMedia5 mapping ok
[ 5.462677] asoc: tabla_rx1 <-> msm-dai-q6.16384 mapping ok
[ 5.473754] asoc: tabla_tx1 <-> msm-dai-q6.16385 mapping ok
[ 5.479156] asoc: msm-stub-rx <-> msm-dai-q6.12288 mapping ok
[ 5.485076] asoc: msm-stub-tx <-> msm-dai-q6.12289 mapping ok
[ 5.490692] asoc: msm-stub-rx <-> msm-dai-q6.12292 mapping ok
[ 5.496612] asoc: msm-stub-tx <-> msm-dai-q6.12293 mapping ok
[ 5.502166] asoc: msm-stub-rx <-> msm-dai-q6-hdmi.8 mapping ok
[ 5.508209] asoc: msm-stub-rx <-> msm-dai-q6.224 mapping ok
[ 5.513641] asoc: msm-stub-tx <-> msm-dai-q6.225 mapping ok
[ 5.519378] asoc: msm-stub-rx <-> msm-dai-q6.2 mapping ok
[ 5.524597] asoc: msm-stub-tx <-> msm-dai-q6.3 mapping ok
[ 5.530212] asoc: tabla_rx2 <-> msm-dai-stub mapping ok
[ 5.535186] asoc: tabla_tx1 <-> msm-dai-stub mapping ok
[ 5.540771] asoc: msm-stub-rx <-> msm-dai-q6.16386 mapping ok
[ 5.546386] asoc: msm-stub-tx <-> msm-dai-q6.16387 mapping ok
[ 5.552429] asoc: tabla_tx2 <-> msm-dai-q6.16389 mapping ok
[ 5.557952] asoc: tabla_rx3 <-> msm-dai-q6.16388 mapping ok
[ 5.563537] asoc: msm-stub-rx <-> msm-dai-q6.16392 mapping ok
[ 5.569091] asoc: msm-stub-tx <-> msm-dai-q6.16393 mapping ok
[ 5.575012] asoc: tabla_tx3 <-> msm-dai-stub mapping ok
[ 5.580108] asoc: msm-stub-rx <-> msm-dai-q6.16390 mapping ok
[ 5.586059] asoc: msm-stub-tx <-> msm-dai-q6.16391 mapping ok
[ 5.594787] input: apq8064-tabla-snd-card Button Jack as /devices/platform/soc-audio.0/sound/card0/input2
[ 5.604248] input: apq8064-tabla-snd-card Headset Jack as /devices/platform/soc-audio.0/sound/card0/input3
[ 5.619598] headset_init+ #####
[ 5.623291] input: h2w button as /devices/virtual/input/input4
[ 5.628875] HEADSET: Headset detection mode
[ 5.685699] insert_headset: debug board
[ 5.688659] headset_init- #####
[ 5.692138] u32 classifier
[ 5.694488] Actions configured
[ 5.697937] Netfilter messages via NETLINK v0.30.
[ 5.702850] nf_conntrack version 0.5.0 (16384 buckets, 65536 max)
[ 5.710266] ctnetlink v0.93: registering with nfnetlink.
[ 5.714965] NF_TPROXY: Transparent proxy support initialized, version 4.1.0
[ 5.721679] NF_TPROXY: Copyright (c) 2006-2007 BalaBit IT Ltd.
[ 5.728149] xt_time: kernel timezone is -0000
[ 5.732849] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 5.738250] arp_tables: (C) 2002 David S. Miller
[ 5.742187] TCP: cubic registered
[ 5.746734] NET: Registered protocol family 10
[ 5.757598] Mobile IPv6
[ 5.759277] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 5.765136] IPv6 over IPv4 tunneling driver
[ 5.770324] NET: Registered protocol family 17
[ 5.773986] NET: Registered protocol family 15
[ 5.778839] Bluetooth: RFCOMM TTY layer initialized
[ 5.783233] Bluetooth: RFCOMM socket layer initialized
[ 5.788391] Bluetooth: RFCOMM ver 1.11
[ 5.792205] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 5.797393] Bluetooth: BNEP filters: protocol multicast
[ 5.802703] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[ 5.808715] L2TP core driver, V2.0
[ 5.811889] PPPoL2TP kernel driver, V2.0
[ 5.815948] Registering the dns_resolver key type
[ 5.822479] VFP support v0.3: implementor 51 architecture 64 part 6f variant 1 rev 0
[ 5.829437] Registering SWP/SWPB emulation handler
[ 5.834136] clock_late_init: Removing enables held for handed-off clocks
[ 5.848236] MSM Watchdog Initialized
[ 5.862030] input: gpio-keys as /devices/platform/gpio-keys.0/input/input5
[ 5.868286] rtc-pm8xxx rtc-pm8xxx: setting system clock to 2014-06-27 18:08:10 UTC (1403892490)
[ 5.876892] MSM_DCVS: msm_dcvs_register_core: msm_dcvs_register_core: scm register core fail handle = 1 ret = -22
[ 5.886932] Unable to register core for 0
[ 5.890838] msm_dcvs_gov: probe of msm_dcvs_gov failed with error -22
[ 5.897521] ALSA device list:
[ 5.900238] #0: apq8064-tabla-s?[ 5.904968] Freeing init memory: 1036K
[ 6.046661] bq27541_get_psp status: Full ret= 0x0200
[ 6.051239] bq27541_get_psp status: Full ret= 0x0200
[ 6.066040] bq27541_get_psp voltage_now= 4276000 uV
[ 6.070526] bq27541_get_capacity = 100% ret= 100
[ 6.086059] bq27541_get_psp temperature= 228 (0.1?XC)
[ 6.091278] bq27541_get_psp current = -55 mA
[ 6.092987] type=1403 audit(1403892490.710:2): policy loaded auid=4294967295 ses=4294967295
[ 6.093109] SELinux: Loaded policy from /sepolicy
[ 6.095428] type=1404 audit(1403892490.710:3): enforcing=1 old_enforcing=0 auid=4294967295 ses=4294967295
[ 6.179687] smb345_charger: [smb345_config_thermal_limit] Set HRD SFT limit, retval=41 setting=73
[ 6.187988] smb345_charger: [smb345_config_thermal_charging] temp=22, volt=4276000
[ 6.195495] smb345_charger: [smb345_config_thermal_charging] Bypass set Float Volt=e8
[ 6.203277] smb345_charger: [smb345_config_thermal_charging] Bypass charger enable
[ 8.503662] init (1): /proc/1/oom_adj is deprecated, please use /proc/1/oom_score_adj instead.
[ 8.522125] bq27541_get_psp status: Full ret= 0x0200
[ 8.526672] bq27541_get_psp voltage_now= 4275000 uV
[ 8.531524] bq27541_get_capacity = 100% ret= 100
[ 8.536163] bq27541_get_psp temperature= 228 (0.1?XC)
[ 8.541717] bq27541_get_psp current = -69 mA
[ 8.883270] keychord: using input dev gpio-keys for?[ 8.888305] init: cannot open '/initlogo.rle'
[ 9.058044] EXT4-fs (mmcblk0p22): mounted filesystem with ordered data mode. Opts: barrier=1
[ 9.154083] EXT4-fs (mmcblk0p23): mounted filesystem with ordered data mode. Opts: nomblk_io_submit,errors=remount-ro
[ 9.236450] fs_mgr: Running /system/bin/e2fsck on /dev/block/platform/msm_sdcc.1/by-name/cache
[ 9.281280] e2fsck: e2fsck 1.41.14 (22-Dec-2010)
[ 9.284942] e2fsck: /dev/block/platform/msm_sdcc.1/by-name/cache: clean, 16/35840 files, 18141/143360 blocks
[ 9.300354] EXT4-fs (mmcblk0p23): mounted filesystem with ordered data mode. Opts: barrier=1,data=ordered,nomblk_io_submit,errors=panic
[ 9.317321] EXT4-fs (mmcblk0p30): mounted filesystem with ordered data mode. Opts: nomblk_io_submit,errors=remount-ro
[ 9.416473] fs_mgr: Running /system/bin/e2fsck on /dev/block/platform/msm_sdcc.1/by-name/userdata
[ 9.436614] e2fsck: e2fsck 1.41.14 (22-Dec-2010)
[ 9.440246] e2fsck: /dev/block/platform/msm_sdcc.1/by-name/userdata: clean, 1469/798112 files, 254527/3186683 blocks
[ 9.456451] EXT4-fs (mmcblk0p30): mounted filesystem with ordered data mode. Opts: barrier=1,data=ordered,nomblk_io_submit,errors=panic
[ 9.473205] EXT4-fs (mmcblk0p4): mounted filesystem with ordered data mode. Opts: barrier=1,data=ordered,nodelalloc
[ 9.483093] adsp_boot_store:going to call adsp_loader_do
[ 9.818267] pil pil0: q6: Brought out of reset
[ 9.840942] diag: In diag_process_smd_cntl_read_data, Invalid Msg type 12 proc 1
[ 9.863037] apr_tal:Q6 Is Up
[ 9.870513] diag: proc 1, msg mask update fail -12, tried 419
[ 9.926635] adsp_loader_do: Q6/ADSP image is loaded
[ 9.960083] wcnss_8960: Subsystem restart activated for riva.
[ 9.984619] type=1400 audit(1403892494.592:4): avc: denied { entrypoint } for pid=172 comm="init" path="/sbin/healthd" dev="rootfs" ino=6444 scontext=u:r:healthd:s0 tcontext=u:object_r:rootfs:s0 tclass=file
[ 9.988159] init: cannot find '/system/bin/rild', disabling 'ril-daemon'
[ 10.010528] healthd: wakealarm_init: timerfd_create failed
[ 10.016601] binder: 172:172 transaction failed 29189, size 0-0
[ 10.073760] warning: `daemonsu' uses 32-bit capabilities (legacy support in use)
[ 10.081115] init: using deprecated syntax for specifying property 'ro.serialno', use ${name} instead
[ 10.090789] init: using deprecated syntax for specifying property 'ro.product.manufacturer', use ${name} instead
[ 10.100372] init: using deprecated syntax for specifying property 'ro.product.model', use ${name} instead
[ 10.172698] msm_thermal: enabled = 0
[ 10.188781] EXT4-fs (mmcblk0p22): re-mounted. Opts: (null)
[ 10.230010] QSEECOM: qseecom_load_app: App (keymaster) does'nt exist, loading apps for first time
[ 10.247131] QSEECOM: qseecom_load_app: App with id 1 (keymaster) now loaded
[ 10.345458] init: property 'sys.powerctl' doesn't exist while expanding '${sys.powerctl}'
[ 10.355957] init: powerctl: cannot expand '${sys.powerctl}'
[ 10.364288] init: property 'sys.sysctl.extra_free_kbytes' doesn't exist while expanding '${sys.sysctl.extra_free_kbytes}'
[ 10.377349] init: cannot expand '${sys.sysctl.extra_free_kbytes}' while writing to '/proc/sys/vm/extra_free_kbytes'
[ 10.392669] init: cannot find '/system/bin/mm-pp-daemon', disabling 'ppd'
[ 10.407043] enable_store: android_usb: already disabled
[ 10.421112] adb_open
[ 10.422302] mtp_bind_config
[ 10.425109] adb_bind_config
[ 10.479888] EXT4-fs (mmcblk0p22): re-mounted. Opts: (null)
[ 10.503173] EXT4-fs (mmcblk0p22): re-mounted. Opts: (null)
[ 10.530822] msm_otg msm_otg: Failed notifying 1 charger type to PMIC
[ 10.536315] android_work: android_work: did not send uevent (0 0 (null))
[ 10.561523] pil pil3: dsps: Brought out of reset
[ 10.695251] android_work: android_work: sent uevent USB_STATE=CONNECTED
[ 10.705780] android_usb gadget: high-speed config #1: android_usb
[ 10.710968] msm_otg msm_otg: Failed notifying 1 charger type to PMIC
[ 10.717224] msm_otg msm_otg: Avail curr from USB = 500
[ 10.776916] android_work: android_work: sent uevent USB_STATE=CONFIGURED
[ 10.910003] mipi_dsi_panel_power+, on=1
[ 10.986846] mipi_dsi_panel_power-
[ 10.992462] mipi_JDI_lcd_on+
[ 10.992462] mipi_JDI_lcd_on-, booting
[ 11.261444] hdmi_msm hdmi_msm.1: hdmi_msm_hpd_feature: 1
[ 11.273895] wcnss_wlan wcnss_node_write: triggered by userspace
[ 11.537811] pil pil1: wcnss: Brought out of reset
[ 11.959960] wcnss_wlan_ctrl_probe: SMD ctrl channel up
[ 11.966827] wcnss: version 01040102
[ 11.969635] wcnss: schedule dnld work for riva
[ 11.977447] wcnss: NV bin size: 29772, total_fragments: 10
[ 11.982055] wcnss: no space available for smd frame
[ 12.017181] wcnss: no space available for smd frame
[ 12.046875] wcnss: no space available for smd frame
[ 12.076873] wcnss: no space available for smd frame
[ 12.110565] wcnss: received WCNSS_NVBIN_DNLD_RSP from ccpu
[ 12.259643] mdp4_overlay_mdp_perf_upd mdp clk is changed [1] from 0 to 200000000
[ 14.076843] msm_ta_detect_work: USB exit ta detection - frindex
[ 21.966918] wcnss_post_bootup: Cancel APPS vote for Iris & Riva
[ 23.425781] bq27541_get_capacity = 100% ret= 100
[ 23.430145] bq27541_get_psp voltage_now= 4277000 uV
[ 23.435699] bq27541_get_psp current = -20 mA
[ 23.439666] bq27541_get_psp temperature= 228 (0.1?XC)
[ 23.444610] bq27541_get_psp status: Full ret= 0x0201
[ 23.449432] healthd: battery l=100 v=4277 t=22.8 h=2 st=5 c=0 chg=u
[ 23.458312] request_suspend_state: wakeup (3->0) at 23451512724 (2014-06-27 18:08:28.078032357 UTC)
[ 23.554656] lowmem_shrink: convert oom_adj to oom_score_adj:
[ 23.559448] oom_adj 0 => oom_score_adj 0
[ 23.563262] oom_adj 1 => oom_score_adj 58
[ 23.567291] oom_adj 2 => oom_score_adj 117
[ 23.571380] oom_adj 3 => oom_score_adj 176
[ 23.575408] oom_adj 9 => oom_score_adj 529
[ 23.579559] oom_adj 15 => oom_score_adj 1000
[ 24.067291] acc_open
[ 24.068511] acc_release
[ 24.077758] wlan: loading driver v3.2.3.10
[ 24.082763] wlan: [596:E :HDD] hdd_apply_cfg_ini: Reg Parameter gEmptyScanRefreshPeriod < allowed Minimum [0 < 1000]. Enforcing Default= 0
[ 24.102661] wlan: [596:E :VOS] INFO: NV binary file version=1 Driver default NV version=1, continue...
[ 24.102691]
[ 24.112640] DefaultCountry is WS
[ 24.386840] mipi_JDI_set_backlight: pwm enable
[ 24.399597] wlan: WCNSS WLAN version 1.4.1.2
[ 24.402954] wlan: WCNSS software version 201036
[ 24.407470] wlan: WCNSS hardware version WCN v2.0 RadioPhy vIris_TSMC_2.0 with 48MHz XO
[ 24.415771] DefaultCountry is WS
[ 24.422180] wlan: [596:E :HDD] wlan_hdd_tdls_init TDLS Implicit trigger not enabled!
[ 24.436553] wlan: driver loaded
[ 24.656494] wlan: [738:E :SME] PMC: STA not associated with an AP with single active session. BMPS cannot be entered
[ 24.667358] ADDRCONF(NETDEV_UP): p2p0: link is not ready
[ 24.838439] wlan: [738:E :SME] PMC: STA not associated with an AP with single active session. BMPS cannot be entered
[ 24.848632] ADDRCONF(NETDEV_UP): wlan0: link is not ready
…

So there you have it – the serial connection has been established and turned out to be even more useful than I originally expected. Next stop: kernel hacking.

I would like to thank everyone commenting on my previous attempts – your hints and notes are greatly appreciated!

6 thoughts on “Nexus 7 UART: Why do things the simple way if you can go complicated?

  1. atang

    Thanks for this post! I’ve also built a UART cable using the Accuvant blog link and gotten it to work with my Nexus7 (2013) device. One small difference from the N4 device though– 3V at the trigger mic-in sleeve is insufficient. I got the debug board to be detected at ~3.15V, using 47ohms in place of the 100ohms. Time to compile the kernel with KGDB support and setup for live kernel debugging… 🙂

    Reply
    1. dTatham Post author

      Hi Atang,

      Glad to hear it works for others as well 🙂
      I skipped the resistors completely and slapped it directly to the UART adaptor. Tbr mentioned on his blog that he might have busted the switch-circuitry by doing so with his N4, having it stuck to UART permanently but I haven’t checked yet, whether that applies to the N7 as well.
      Keep me posted on your progress!

      Reply
    1. dTatham Post author

      yes, I have a getty sitting on the serial line that opens a normal login prompt

      Reply
  2. rgviva

    I am trying to debug a bricked nexus 7. The device has a locked bootloader so i cannot replace the running kernel or modify parameters. I built this cable (thank you) – but when i open the terminal i see no output. When i use a voltmeter on the RX pin it shows v1.8 that indicates that the device is indeed in UART mode but no outout…

    When in fastboot i do: “fastboot getvar all”

    (bootloader) uart-on: no

    $ fastboot oem uart-on
    (bootloader) uart will be enabled after rebooting…
    OKAY [ 0.102s]
    finished. total time: 0.102s

    Any idea if/how to enable uart an unmodified locked device?

    Reply
    1. dTatham Post author

      Hm… tough one – I immediately unlocked the N7.
      Have you tried playing around with your terminal settings? It’s been a while but I vaguely recall that the bootloader might use different bauds in some configurations.
      Also make sure you turn off flow controls etc.

      Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload the CAPTCHA.

This site uses Akismet to reduce spam. Learn how your comment data is processed.