How to Release GPS Occupancy to UART4 of iMX6 UART4
Here we will take OKMX6Q-C for demonstration
1. Delete the definition in init.rc
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. Disable GPS related compiling operation
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. Clear former compiled information
make clean
Recompile it(it may take some time, please be patient).