Personal tools

Log in

Changes

From IGEP - ISEE Wiki

Jump to: navigation, search

How to set up UART2 in J990

130 bytes added, 09:45, 13 February 2012
no edit summary
=== Configure IGEP ===
If you use a IGEPv2 Expansion Board, don't use modem for this tutorial<br>
'''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>
Set sdmmc2_dat5 to gpio137 (mode 4):
<pre>echo 0x004 &gt; sdmmc2_dat5 </pre>
Revise that:
<pre>root@localhost:/sys/kernel/debug/omap_mux# cat sdmmc2_dat5
name: sdmmc2_dat5.gpio_137 (0x48002166/0x136 = 0x0004), b ah3, t NA
Set gpio137 to low value to disable bluetooth:
<pre>echo 0 &gt; /sys/class/gpio/gpio137/value</pre>
Revise that:
<pre>root@localhost:/sys/class/gpio# cat /sys/class/gpio/gpio137/value
0
echo 0x007 &gt; uart2_rx
echo 0x007 &gt; uart2_tx </pre>
Revise that:
<pre>root@localhost:/sys/kernel/debug/omap_mux# cat uart2_cts
name: uart2_cts.safe_mode (0x48002174/0x144 = 0x0007), b ab26, t NA
echo 0x101 &gt; mcbsp3_fsx
echo 0x101 &gt; mcbsp3_dr </pre>
Revise that:
<pre>root@localhost:/sys/kernel/debug/omap_mux# cat mcbsp3_dx
name: mcbsp3_dx.uart2_cts (0x4800216c/0x13c = 0x0101), b af6, t NA
4,199
edits