Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GPS doesn't work #3

Open
TBM13 opened this issue Apr 16, 2023 · 3 comments
Open

GPS doesn't work #3

TBM13 opened this issue Apr 16, 2023 · 3 comments
Labels
ALE Reproduced on an ALE (P8 Lite 2015) device CAM Reproduced on a CAM (Y6II) device

Comments

@TBM13
Copy link
Member

TBM13 commented Apr 16, 2023

Build: lineage-17.1-20230413-UNOFFICIAL-alice
Device: CAM-L03

GPS doesn't work. Tested using the GPS Test app.

Log highlights:

  • During boot
    • E/GnssHAL_GnssInterface( 2907): gnss flp hw_get_module failed: -2
      E/GnssHAL_GnssInterface( 2907): getExtensionGnssBatching: GnssBatching interface is not implemented by HAL
      E/libgps ( 2907): mkfifo(/data/gps/.gps.interface.pipe.to_gpsd, 432) returned error, errno = 2(No such file or directory), 2
      E/libgps ( 2907): mkfifo(/data/gps/.gps.interface.pipe.to_jni, 432) returned error, errno = 2(No such file or directory), 2
      E/libgps ( 2907): Can not open IPC communication channel.
      D/libgps ( 2907): configuration_update: Waiting for IPC connection - timeout
      E/libgps ( 2907): LIBGPS: Cannot communicate (write) with a GPSD

  • While using GPS Test:
    • D/libgps ( 2907): proxy_gps_set_position_mode: mode = 0, recurrence = 0, min_interval = 1000, preferred_accuracy = 0, preferred_time = 0
      D/libgps ( 2907): gps_set_position_mode: Waiting for IPC connection...
      D/libgps ( 2907): gps_set_position_mode: Waiting for IPC connection - timeout
      E/libgps ( 2907): LIBGPS: Cannot communicate (write) with a GPSD
      E/libgps ( 2907): IPC Communication Error, ../../../../tmp/14477502_250069/proprietary/deliverables/android/gps_interface/gpsi_client/GpsiClient.cpp:1399 gps_set_position_mode
      E/GnssLocationProvider( 2907): set_position_mode failed in startNavigating()

Logs:

@TBM13 TBM13 added the CAM Reproduced on a CAM (Y6II) device label Apr 16, 2023
@TBM13
Copy link
Member Author

TBM13 commented Apr 16, 2023

Additional information, from dmesg:

[ 19.015016] [pid:1,cpu2,init]init: Command 'mkdir /data/gps 0771 gps system' action=post-fs (/vendor/etc/init/hw/init.hi6210sft.rc:178) took 0ms and failed: mkdir() failed: Read-only file system
[ 21.000213] [pid:1,cpu1,init]init: Command 'chmod 770 /system/bin/gpsdaemon' action=boot (/vendor/etc/init/hw/init.connectivity.rc:53) took 0ms and failed: fchmodat() failed: Read-only file system

@TBM13
Copy link
Member Author

TBM13 commented Apr 16, 2023

After fixing the previous error by creating the /data/gps directory on post-fs-data instead of post-fs, the error has changed:

D/libgps ( 2908): configuration_update: Waiting for IPC connection - timeout
E/libgps ( 2908): LIBGPS: Cannot communicate (write) with a GPSD
E/libgps ( 2908): IPC Communication Error 1, ../../../../tmp/14477502_250069/proprietary/deliverables/android/gps_interface/gpsi_client/GpsiClient.cpp:2213 configuration_update
I/libgps ( 2908): proxy_gps_configuration_update: config_data(A_GLONASS_POS_PROTOCOL_SELECT=0
I/libgps ( 2908): ) length(32)
D/libgps ( 2908): configuration_update: Waiting for IPC connection...

@R0rt1z2
Copy link
Contributor

R0rt1z2 commented Apr 17, 2023

Looks like I forgot to add the GPS daemon (gpsdaemon) and the creation of the GPS directories in /data/ that were in the stock init.connectivity.bcm43xx.rc. Addressed with this commit, however looks like GPS isn't working.

@TBM13 TBM13 added the ALE Reproduced on an ALE (P8 Lite 2015) device label Apr 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ALE Reproduced on an ALE (P8 Lite 2015) device CAM Reproduced on a CAM (Y6II) device
Projects
None yet
Development

No branches or pull requests

2 participants