|
发表于 2016-5-9 16:09:14
只看该作者
沙发
本帖最后由 oasisnow 于 2016-5-9 16:10 编辑
1. 硬件部分,参考附件!
1. Kernel Driver部分
Device Drivers->Network Device Support->Wireless LAN->AP6476
2. Android部分(以4.4为例)
2.1
device/rockchip/rk3288/wifi_bt.mk文件中,修改如下:
BOARD_CONNECTIVITY_VENDOR := Broadcom
BOARD_CONNECTIVITY_MODULE := ap6xxx_gps
2.2
device/rockchip/rksdk/BoardConfig.mk文件中,
# product has GPS or not
BOARD_HAS_GPS := true
2.3
device/rockchip/common/gps/rk30_gps.mk文件,修改如下:
CUR_PATH := device/rockchip/common/gps
ifeq ($(strip $(BLUETOOTH_USE_BPLUS)),true)
PRODUCT_COPY_FILES += \
device/rockchip/common/gps/ap6xxx/gps.default.so:system/lib/hw/gps.default.so \
device/rockchip/common/gps/ap6xxx/glgps:system/bin/glgps \
device/rockchip/common/gps/ap6xxx/gpslogd:system/bin/gpslogd \
device/rockchip/common/gps/ap6xxx/gpsconfig.xml:system/etc/gps/gpsconfig.xml
PRODUCT_COPY_FILES += \
device/common/gps/gps.conf_AS_SUPL:system/etc/gps.conf
endif
2.4
device/rockchip/rksdk/init.rk30board.rc文件中,确保如下设置:
# AP6476 GPS permission
chmod 755 /system/bin/glgps
chown root system /system/bin/glgps
chmod 644 /system/lib/hw/gps.default.so
chown root system /system/lib/hw/gps.default.so
mkdir /data/gps
chmod 770 /data/gps
chown system net_bt_stack /data/gps
mkdir /data/gps/log
chmod 0777 /data/gps/log
chown system net_bt_stack /data/gps/log
......
on property:ro.rk.btchip=broadcom.bplus
start gpsd
service gpsd /system/bin/glgps -c /system/etc/gps/gpsconfig.xml
class main
disabled
user root
group system
重新make,用GPS软件进行测试;
|
|