1. check kernel have ACM support

# USB Device Class drivers

CONFIG_USB_ACM=y

 

vim mediatek/config/mt6577/autoconfig/kconfig/platform

add CONFIG_USB_ACM=y

./makeMTK xxx r k

 

2. copy u-blox file to /hardware

./makeMTK xxx mm /hardware/<u-blox release>/supl/asn1c_header

./makeMTK xxx mm /hardware/<u-blox release>

 

3. check file in /system

3.1 check gps.default.so at /system/lib/hw

3.2 check gps.conf at /system/etc

3.3 check u-blox.conf at /system/etc

 

 

4. rebuld bootimage

 

vim out/...../root/ueventd.rc

 

add /dev/ttyACM0 0666 gps gps

 

./makeMTK xxx r bootimage

 

參考

http://clayder.pixnet.net/blog/post/38595705-add-ublox-gps-in-ti-omap-platform

http://blog.sina.com.cn/s/blog_71ed04f70100oz81.html

arrow
arrow

    ooieueioo 發表在 痞客邦 留言(0) 人氣()