ARM Knowledge Sharing-How to remove GPS occupation from iMX6 UART4

The iMX6 Android system supports the VK1613 GPS module, which corresponds to the UART4 interface. The serial port is occupied by GPS and cannot be used as a normal serial port. How should iMX6 UART4 be released from GPS?
Platform Introduction:

The hardware platform used for this verification is the Feiling Embedded OKMX6Q-C development board (product details: www.forlinx.com/68.htm), based on the ARM Corte-A9 architecture, i.MX6Q quad-core processor, other platforms are available Reference use. The specific operation steps for unoccupying are as follows:

1. Remove the definition in the init.rc file

diff --git a/device/fsl/sabresd_6dq/init.rc b/device/fsl/sabresd_6dq/init.rc

index 8be2c838c9..ce674ae330 100755

--- a/device/fsl/sabresd_6dq/init.rc

+++ b/device/fsl/sabresd_6dq/init.rc

@@ -23,7 +23,7 @@ on boot

 symlink /dev/mxs_viim /dev/mxc_mem

 # Set GPS serial and reset GPIO pin
  • setprop ro.kernel.android.gps /dev/ttymxc3

  • #setprop ro.kernel.android.gps /dev/ttymxc3

    #setprop ro.kernel.android.gps /dev/athrnmea

    #setprop persist.gps.oacmode @f

    #symlink /dev/ttymxc3 /dev/gpsdevice

2. Prohibit the compilation of GPS related content

mv hardware/imx/libgps-vk/Android.mk hardware/imx/libgps-vk/Android.txt

mv hardware/imx/libgps/Android.mk hardware/imx/libgps/Android.txt

3. Empty the original compiled content

make clean

Just recompile (the recompilation takes a long time, so be patient)

Guess you like

Origin blog.51cto.com/14771125/2486526