yuhuo1989 发表于 2015-7-14 17:24:09

rk3288怎么支持GPS

现在用AP6476将firefly的AP6335替换掉了,请问firefly支不支持AP6476的GPS功能,要支持的怎么支持?

oasisnow 发表于 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软件进行测试;



chenzhenzhen 发表于 2016-6-4 10:33:25

:)

Physicist 发表于 2016-7-20 12:19:43

GPS怎么和wifi模块扯上关系了。小白不懂啊

sdtiantai 发表于 2024-7-15 18:18:12

感谢
页: [1]
查看完整版本: rk3288怎么支持GPS