OESF Portables Forum
Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Angstrom & OpenZaurus => Topic started by: ant on July 26, 2006, 01:16:20 pm
-
Hi,
I'd like to share my findings about GPSDrive in the 3.5.4.1 feed...
Hardware: Zaurus SLC-860 + Socket Bluetooth CF Rev K + GPS Globalsat BT + Nokia 6310i phone (* Both BT devices paired *)
Part 1
*****
The program depends from gpsd daemon but something is wrong: gpsdrive cannot stop and start gpsd properly. Need root permission? Missing groups?
Well, after a while I realized the installed gpsd init file looks for /dev/ttyS3 but should instead listen to /dev/rfcomm0 in my case, as I specified in the gpsdrive settings.
So after the small correction, from root console just did
/etc/init.d/gpsd stop
/etc/init.d/gpsd start
This way gpsdrive found a NMEA GPS and was magically working!
Part 2
*****
After some readings I discovered that since some releases gpsdrive supports a direct serial connection and does not need gpsd.
So I force-removed gpsd and tried to start gpsdrive in direct mode...no way...
cat /dev/rfcomm0
produced no output!
Again a permission problem: chmod 666 /dev/rfcomm0 and finally the GPS was seen and recognized as "direct serial connection".
Part 3
*****
At this point I was eagerly needing an internet connection to download the maps...
I did install gkdial (I found only one ppp dialer for oz...) and after some reconfiguration the ppp connection was working.
Now, I realized /var/run/resolv.conf was missing and created this by hand
Later I found a better way: putting defaultroute noipdefault usepeerdns in the ppp-connection file resolved the issue!
Part 4
*****
To have voice output you need festival / festival lite so
ipkg install flite
EDIT: forgot you need to modify /usr/share/applications/gpsdrive.desktop and insert the option -e to enable flite... and -l english for the language
flite_time 23:55 reads however correctly the time in english...
[superfluous] just to be sure chmod 666 /dev/audio chmod 666 /dev/dsp
Still, at the moment, for unknown reasons the voice message are missing...
Probably the new version from cvs fixed the issue...
Other issues:
***********
Using gpsdrive together with gkdial had some flaws:
some spontaneous gpe restarts
screen blanked out twice and needed GPE restart
device froze a couple of times
Conclusions:
**********
The gpsd thing is probably a bug
EDIT: I see now there are settings for gpds in gpe-setserial app: probably the right settings must be inserted here.
The issue of rfcomm permissions remains after reboot: it is the same in other distros. I would create an udev rule for these BT serial interfaces...
The ppp-dialer needs rework.
Just my 2 (euro)cents
Ant
P.S.
There is a newer 2.10_pre3 floating around...
-
By mistake I opened the gpe-su shell and run
ipkg install gpsdrive-add
The execution was stopped by errors: missing "ldconfig"
**********************************************
Well, I reentered with "su - root" and ipkg worked flawlessy!
Soo, why not patch gpe-su.c and force the execution of "/bin/su - root" ?
Ant
-
By mistake I opened the gpe-su shell and run
ipkg install gpsdrive-add
The execution was stopped by errors: missing "ldconfig"
**********************************************
Well, I reentered with "su - root" and ipkg worked flawlessy!
Soo, why not patch gpe-su.c and force the execution of "/bin/su - root" ?
Ant
[div align=\"right\"][a href=\"index.php?act=findpost&pid=136581\"][{POST_SNAPBACK}][/a][/div]
file a bug
-
The program depends from gpsd daemon but something is wrong: gpsdrive cannot stop and start gpsd properly. Need root permission? Missing groups?
Well, after a while I realized the installed gpsd init file looks for /dev/ttyS3 but should instead listen to /dev/rfcomm0 in my case, as I specified in the gpsdrive settings.
So after the small correction, from root console just did
/etc/init.d/gpsd stop
/etc/init.d/gpsd start
This way gpsdrive found a NMEA GPS and was magically working!
There is another bug in gpsdrive + gpsd which I am trying to track down... If you have gpsd and gpsdrive on separate machines, and the network connection gets interrupted, gpsdrive goes into an infinite loop and never reconnects.
I've submitted a patch to gpsdrive, GPSDrive Bug 90 (http://bugzilla.gpsdrive.cc/show_bug.cgi?id=90) and I've been trying to compile gpsdrive-cvs with my patch...
But the newest CVS depends on gdal. I am new to bitbake, and I can't seem to get gdal to build...
it fails with
| automake (GNU automake) 1.9.3
| Written by Tom Tromey .
|
| Copyright 2004 Free Software Foundation, Inc.
| This is free software; see the source for copying conditions. There is NO
| warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
| AUTOV is 1.9
| NOTE: Executing autoreconf --verbose --install --force --exclude=autopoint -I /home/nfs/yan/oz/tmp/staging/arm-linux/share/aclocal-1.9 -I /home/nfs/yan/oz/tmp/staging/arm-linux/share/aclocal
| autoreconf: Entering directory `.'
| autoreconf: configure.in: not using Gettext
| autoreconf: running: aclocal -I /home/nfs/yan/oz/tmp/staging/arm-linux/share/aclocal-1.9 -I /home/nfs/yan/oz/tmp/staging/arm-linux/share/aclocal --force
| aclocal:configure.in:1940: warning: macro `AM_INIT_PYEXEC_MOD' not found in library
| aclocal:configure.in:1941: warning: macro `AM_CHECK_NUMPY' not found in library
| autoreconf: configure.in: tracing
| autoreconf: running: libtoolize --copy --force
| aclocal:configure.in:1940: warning: macro `AM_INIT_PYEXEC_MOD' not found in library
| aclocal:configure.in:1941: warning: macro `AM_CHECK_NUMPY' not found in library
| autoreconf: running: /home/nfs/yan/oz/tmp/staging/x86_64-linux/bin/autoconf --include=/home/nfs/yan/oz/tmp/staging/arm-linux/share/aclocal-1.9 --include=/home/nfs/yan/oz/tmp/staging/arm-linux/share/aclocal --force --warnings=cross
| configure.in:56: error: possibly undefined macro: AC_COMPILER_PIC
| If this token and others are legitimate, please use m4_pattern_allow.
| See the Autoconf documentation.
| configure.in:57: error: possibly undefined macro: AC_LD_SHARED
| configure.in:85: error: possibly undefined macro: AC_HAVE_LONG_LONG
| configure.in:86: error: possibly undefined macro: AC_UNIX_STDIO_64
| configure.in:130: error: possibly undefined macro: AC_CHECK_FUNC_CUSTOM
| configure.in:1819: error: possibly undefined macro: AC_COMPILER_WFLAGS
| configure.in:1940: error: possibly undefined macro: AM_INIT_PYEXEC_MOD
| configure.in:1941: error: possibly undefined macro: AM_CHECK_NUMPY
| configure.in:1942: error: possibly undefined macro: AC_COMPILER_LOCALHACK
| autoreconf: /home/nfs/yan/oz/tmp/staging/x86_64-linux/bin/autoconf failed with exit status: 1
| FATAL: autoreconf execution failed.
Is anyone working on GPSDrive? Could someone please share some bitbake knowledge?
Thanks,
--Yan