Changes

How to set up UART2 in J990

228 bytes added, 13:40, 1 July 2015
no edit summary
= First way<br> =
First way: this mode has a an issue, when your system reboot or shutdown you will need to configure again. Using user space to configure mux and disable bluetooth. <br>
=== Configure IGEP ===
'''Disable Bluetooth:'''
Logging with root user via SSH or Serial cable.<br> '''NOTE: '''Poky distribution does not have debug filesystem enabled. Mount it:
<pre>mount -t debugfs none /sys/kernel/debug</pre>
Go to /sys/kernel/debug/omap_mux/<br>
root@localhost:/sys/kernel/debug/omap_mux#
</pre>
Mode will be 1 (uart mode)
= Second way<br> =
'''Disable TWL4030 PCM voice interface:'''
Default kernel&nbsp; has disabled TWL4030 PCM voice interface output pins to high impedance, otherwise this module forces the level of mcbsp3_fsx (uart2_rx) and mcbsp3_clkx (uart2_tx) pins. To make sure, go to [http://git.igepisee.esbiz/?p=pub/scm/linux-omap-2.6.git;a=blob_plain;f=sound/soc/codecs/twl4030.c;hb=linux-2.6.35.y $(kernel path)/sound/soc/codecs/twl4030.c] file already read: <br>
<pre> 0x04, /* REG_VOICE_IF (0xF) */
</pre>
=== Compile kernel source code ===
Use this [[Linux Kernel 2.6.35.y|tutorial]] (Kernel) and this [http://labs.igep.es/index.php/The_IGEP_X-loader other] (IGEPxloader) to install Linaro Headless with your custom kernel in SD card.&nbsp; You can compile the IGEPxloader, but is not necessary.<br> '''NOTE:''' for [[Linux_Kernel_2.6.37.y|Kernel 2.6.37.y]] you can use [[How_to_create_a_SD-card_with_the_latest_software_image|this tutorial]] removing default kernel for your new one<br>
= Test UART2 in J990<br> =
Connect UART2_TX with UART2_RX. Use minicom to prove UART2 (/dev/ttyS1)&nbsp;:<br>
<pre>minicom -D /dev/ttyS1</pre> or<pre>microcom /dev/ttyS1 </pre>
If you write characters and see the echo on the screen, you configure correctly UART.
0
edits