summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rootdir/init.target.rc18
1 files changed, 15 insertions, 3 deletions
diff --git a/rootdir/init.target.rc b/rootdir/init.target.rc
index a5b5b19..f75fdb6 100644
--- a/rootdir/init.target.rc
+++ b/rootdir/init.target.rc
@@ -13,6 +13,10 @@ on post-fs-data
chmod 0644 /dev/icdr
chown system system /dev/tzic
+# GPS
+ mkdir /data/gps
+ chown gps system /data/gps
+ chmod 770 /data/gps
# make param block device link for SysScope
symlink /dev/block/mmcblk0p4 /dev/block/param
@@ -25,15 +29,23 @@ on fs
swapon_all /fstab.smdk4x12
on boot
-
# cbd
service cpboot-daemon /sbin/cbd -d
class main
user root
group radio cache inet misc audio sdcard_rw log
-# GPS
-service gpsd /system/bin/gpsd -c /system/etc/gps.xml
+# GPS init
+ write /sys/class/sec/gps/GPS_PWR_EN/export 162
+ write /sys/class/sec/gps/GPS_PWR_EN/value 0
+ write /sys/class/sec/gps/GPS_PWR_EN/direction out
+ chown gps system /sys/class/sec/gps/GPS_PWR_EN/value
+ chmod 0664 /sys/class/sec/gps/GPS_PWR_EN/value
+ chown gps system /dev/ttySAC1
+ chmod 0660 /dev/ttySAC1
+
+# Start GPS daemon
+service gps-daemon /system/bin/glgps -c /system/etc/gps.xml
class main
socket gps seqpacket 0660 gps system
user gps