[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gpsd-users] Compiling GPSD to ARM chipset, any tips

From: sduclos
Subject: Re: [gpsd-users] Compiling GPSD to ARM chipset, any tips
Date: Thu, 22 Dec 2011 11:44:19 -0500


I got GPSD (AIS only) running on android native (Motorola xoom - arm5/arm7).

If you are starting from scratch you might find this hack a bit involving.

Here the step I did on Ubuntu 11.10 amd64:

- install android NDK and install toolchain 9
- get gpsd-2.96
- edit where it check for libusb-1.0 and modified it
version to 10.0.0 so that
  the script will no find my local libusd
- ./configure --disable-ashtech --disable-earthmate --disable-evermore
--disable-fv18 --disable-garmin --disable-garmintxt --disable-geostar
--disable-gpsclock --disable-ipv6 --disable-itrax --disable-libQgpsmm
--disable-mtk3301 --disable-navcom --disable-ntrip
--disable-oceanserver --disable-oncore --disable-rtcm104v2
--disable-rtcm104v3 --disable-superstar2 --disable-tnt
--disable-tripmate --disable-tsip --disable-ubx --disable-dbus
--host=arm-linux-androideabi --with-pic --disable-oldstyle
--disable-ntpshm --disable-libgpsmm --enable-shared=no --disable-sirf
- gpsd code need tweaking:
    - in_port_t is a uint16_t
    - tcdrain() is a ioctl(fd, TCSBRK, 1); (I made a static tcdrain()
in gpsd.c, gpsctl.c, serial.c)
- in PATH add your toolchain-9
- run make (the build will fail past gpsd:)

On the device I end up with this dependency:

sh-4.1# ./ --list ./gpsd => /system/lib/ (0x40181000) => /system/lib/ (0x40015000) => /system/lib/ (0x400e5000)

Note that the ioctl() hack is not thread safe.

I use GPSD to read AIS (nmea) from an internet feed to test other code
with live data.

Also my GPSD is not facing internet directly.



On Wed, Dec 21, 2011 at 2:51 PM, Bas van Duijnhoven
<address@hidden> wrote:
> Hello,
> My first question here (so please be patient):
> My QNAP TS-419P NAS is currently running GPSD 2.37 (downloaded from an IPKG
> repository).
> I would like to migrate to the most recent version 3.3 ,but cant find any
> IPKG for ARMv5TE instructionset.
> So i guess i must revert to compiling my own version.
> I was wondering if someone could give me any tips/pointers/howtos on how to
> do this.
> Merry christmas and a happy new year (yes i know im early)
> greetings
> Bas van Duijnhoven
> The Netherlands

reply via email to

[Prev in Thread] Current Thread [Next in Thread]