Closed Bug 1031751 Opened 10 years ago Closed 10 years ago

Dolphin build (mozilla-b2g30_v1_4) fails to load gps.default.so

Categories

(Core :: DOM: Geolocation, defect)

All
Gonk (Firefox OS)
defect
Not set
blocker

Tracking

()

RESOLVED WORKSFORME
blocking-b2g 1.4+
Tracking Status
b2g-v1.3 --- unaffected
b2g-v1.3T --- unaffected
b2g-v1.4 --- unaffected
b2g-v2.0 --- unaffected
b2g-v2.1 --- unaffected

People

(Reporter: dougt, Assigned: dougt)

References

Details

E/HAL     (  307): load: module=/system/lib/hw/gps.default.so
E/HAL     (  307): dlopen failed: could not load library "libandroid_runtime.so" needed by "gps.default.so"; caused by library "libandroid_runtime.so" not found
probably related to bug 1021559.
Assignee: nobody → dougt
This needs to be figured out or the gps hw will not work.
blocking-b2g: --- → 1.4+
I find that b2g/device/t2m/flame/extract-files.sh doesn't extract libandroid_runtime.so, however, it is included in the base image.

% readelf -d gps.default.so

Dynamic section at offset 0x4e1c contains 31 entries:
  Tag        Type                         Name/Value
 0x00000003 (PLTGOT)                     0x5f60
 0x00000002 (PLTRELSZ)                   296 (bytes)
 0x00000017 (JMPREL)                     0xb68
 0x00000014 (PLTREL)                     REL
 0x00000011 (REL)                        0xa28
 0x00000012 (RELSZ)                      320 (bytes)
 0x00000013 (RELENT)                     8 (bytes)
 0x6ffffffa (RELCOUNT)                   31
 0x00000006 (SYMTAB)                     0x148
 0x0000000b (SYMENT)                     16 (bytes)
 0x00000005 (STRTAB)                     0x4c8
 0x0000000a (STRSZ)                      993 (bytes)
 0x00000004 (HASH)                       0x8ac
 0x00000001 (NEEDED)                     Shared library: [libutils.so]
 0x00000001 (NEEDED)                     Shared library: [libcutils.so]
 0x00000001 (NEEDED)                     Shared library: [liblog.so]
 0x00000001 (NEEDED)                     Shared library: [libloc_eng.so]
 0x00000001 (NEEDED)                     Shared library: [libloc_core.so]
 0x00000001 (NEEDED)                     Shared library: [libgps.utils.so]
 0x00000001 (NEEDED)                     Shared library: [libdl.so]
 0x00000001 (NEEDED)                     Shared library: [libandroid_runtime.so]
 0x00000001 (NEEDED)                     Shared library: [libc.so]
 0x00000001 (NEEDED)                     Shared library: [libstdc++.so]
 0x00000001 (NEEDED)                     Shared library: [libm.so]
 0x0000000e (SONAME)                     Library soname: [gps.default.so]
 0x0000001a (FINI_ARRAY)                 0x5e18
 0x0000001c (FINI_ARRAYSZ)               4 (bytes)
 0x00000010 (SYMBOLIC)                   0x0
 0x0000001e (FLAGS)                      SYMBOLIC BIND_NOW
 0x6ffffffb (FLAGS_1)                    Flags: NOW
 0x00000000 (NULL)                       0x0

We probably need to add libandroid_runtime.so to extract-files.sh or remove the dependency of it from gps.default.so
status-b2g-v2.0: --- → ?
Summary: Dolphin build (mozilla-b2g30_v1_4) fals to load gps.default.so → Dolphin build (mozilla-b2g30_v1_4) fails to load gps.default.so
This bug probably only affects SPRD Dolphin devices. We don't need to uplift this fix to 2.0 if SPRD doesn't plan to ship any devices based on 2.0.
Kan-Ru: are you looking into this bug? Is the Dolphin device's hardware GPS currently working in SPRD's builds?

I know that first Dolphin launch will have hardware GPS disabled, but subsequent Dolphin launches will have hardware GPS enabled.
Blocks: mls-dolphin
Flags: needinfo?(kchen)
(In reply to Chris Peterson (:cpeterson) from comment #5)
> Kan-Ru: are you looking into this bug? Is the Dolphin device's hardware GPS
> currently working in SPRD's builds?
> 
> I know that first Dolphin launch will have hardware GPS disabled, but
> subsequent Dolphin launches will have hardware GPS enabled.

I'm not looking into this bug. This seems more like a porting issue. We have to decide whether to pull in libandroid_runtime.so for Dolphin and Flame and maybe future devices.

Michael, what do think?
Flags: needinfo?(kchen) → needinfo?(mwu)
My gps.default.so loads fine. Not getting a lock, but it does start the GPS HAL module.
Flags: needinfo?(mwu)
Also, fwiw, libandroid_runtime.so is not an acceptable library for extract-files.sh.
You might want to try updating your vendor/sprd/gps to the latest - the v1.4 branch manifest locks it to an older version.
Garvan: are you able to reproduce this error (assuming you can now build and install 1.4 for your Dolphin)? dougt reported this problem with his build, so this might be a local problem for him.
Flags: needinfo?(gkeeley)
reboot device
adb logcat | grep gps

I don't see this. Of course, I don't get gps either, so I wouldn't trust what I am seeing as being useful for this bug report.

I flashed a highly build for this, I can't build: https://bugzilla.mozilla.org/show_bug.cgi?id=1033421
Flags: needinfo?(gkeeley)
Looks like no one else has this issue. Dougt, would you mind trying this again? If this is a local problem in your environment, we may need to close this bug. What do you think? Thanks!
Flags: needinfo?(dougt)
Status: NEW → RESOLVED
Closed: 10 years ago
Flags: needinfo?(dougt)
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.