Denis 'GNUtoo' Carikli | 12 Oct 2011 23:36
Favicon

Patches to fix om-gta02's GPS

hi,
here are some patch that tries to fix the GPS problem reported here:
http://www.shr-project.org/trac/ticket/1501

since it's late and that I cannot open the windows that late( else there
are some moskitoes) I couldn't test a lot(I only got the time from the
GPS, and nothing at all before).

patches will follow.

Note that some people already dislike theses patches, but the situation
is not that good on GPS side:
On one side we have frameworkd with UBX support that is exported in
GYPSY and gpsd compatible formats and on the other side we have fsotdld.
Last time I checked(loong time ago) fsotdld only supported NMEA and the
export API was not decided yet.

Denis.
Denis 'GNUtoo' Carikli | 12 Oct 2011 23:41
Favicon

[PATCH] fsodeviced: conf: om-gta02: let ogpsd(from the old python framework handle GPS resource)

Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo <at> no-log.org>
---
 fsodeviced/conf/openmoko_gta/fsodeviced.conf |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/fsodeviced/conf/openmoko_gta/fsodeviced.conf b/fsodeviced/conf/openmoko_gta/fsodeviced.conf
index 471b310..8e1aadb 100644
--- a/fsodeviced/conf/openmoko_gta/fsodeviced.conf
+++ b/fsodeviced/conf/openmoko_gta/fsodeviced.conf
 <at>  <at>  -65,4 +65,5  <at>  <at>  router_type = alsa
 [fsodevice.openmoko_powercontrol]
 ignore_wifi = true
 ignore_bluetooth = true
+ignore_gps = true
 ignore_usbhost = false
--

-- 
1.7.4.1
Denis 'GNUtoo' Carikli | 12 Oct 2011 23:37
Favicon

[PATCH] ogpsd: add support for 2.6.39 kernel paths

Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo <at> no-log.org>
---
 framework/subsystems/ogpsd/om.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/framework/subsystems/ogpsd/om.py b/framework/subsystems/ogpsd/om.py
index bb2093f..7ef43b6 100644
--- a/framework/subsystems/ogpsd/om.py
+++ b/framework/subsystems/ogpsd/om.py
 <at>  <at>  -36,7 +36,10  <at>  <at>  class GTA02Device( UBXDevice ):
         # Kernel specific paths
         global DEVICE_POWER_PATH_NEW
         kernel_release = os.uname()[2]
-        if kernel_release >= "2.6.32":
+        if kernel_release >= "2.6.39":
+           DEVICE_POWER_PATH_NEW = "/sys/bus/platform/drivers/gta02-pm-gps/gta02-pm-gps.0/power_on"
+           logger.info( "Kernel >= 2.6.39, gps sysfs updated" )
+        elif kernel_release >= "2.6.32":
            DEVICE_POWER_PATH_NEW = "/sys/bus/platform/devices/gta02-pm-gps.0/power_on"
            logger.info( "Kernel >= 2.6.32, gps sysfs updated" )

--

-- 
1.7.4.1
Dr. Michael Lauer | 13 Oct 2011 11:40
Picon
Gravatar

Re: Patches to fix om-gta02's GPS

> Note that some people already dislike theses patches, but the situation
> is not that good on GPS side:
> On one side we have frameworkd with UBX support that is exported in
> GYPSY and gpsd compatible formats and on the other side we have fsotdld.
> Last time I checked(loong time ago) fsotdld only supported NMEA and the
> export API was not decided yet.

fsotdld has a gpsd plugin, hence can use everything gpsd supports.

Cheers,

:M:
Denis 'GNUtoo' Carikli | 13 Oct 2011 11:56
Favicon

Re: Patches to fix om-gta02's GPS

>I only got the time from the GPS, and nothing at all before.
I've tested and indeed it works, I get a fix.

Denis.
Denis 'GNUtoo' Carikli | 13 Oct 2011 12:03
Favicon

Re: Patches to fix om-gta02's GPS

>fsotdld has a gpsd plugin, hence can use everything gpsd supports.
ok, nice,I'll try it out.

PS: can I still push the ogpsd part? and then disable it in frameworkd.conf ? 
(so it fixes it for other distros not using cornucopia).

Denis.
Denis 'GNUtoo' Carikli | 13 Oct 2011 13:50
Favicon

Re: Patches to fix om-gta02's GPS

>fsotdld has a gpsd plugin, hence can use everything gpsd supports.
it fails to compile:
arm-oe-linux-gnueabi-libtool: compile:  arm-oe-linux-gnueabi-gcc [...] -c 
plugin.c   .libs/provider_location_gpsd_la-plugin.o
plugin.c: In function 'location_gpsd_real_start':
plugin.c:266:2: error: too many arguments to function 'gps_open'

I'll try to fix later when I'm at home.

Denis.
Dr. Michael Lauer | 13 Oct 2011 14:10
Picon
Gravatar

Re: Patches to fix om-gta02's GPS


Am 13.10.2011 um 12:03 schrieb Denis 'GNUtoo' Carikli:

>> fsotdld has a gpsd plugin, hence can use everything gpsd supports.
> ok, nice,I'll try it out.
> 
> PS: can I still push the ogpsd part? and then disable it in frameworkd.conf ? 
> (so it fixes it for other distros not using cornucopia).

Sure.
Timo Juhani Lindfors | 14 Oct 2011 01:32
Picon
Picon
Favicon
Gravatar

Re: [PATCH] ogpsd: add support for 2.6.39 kernel paths

"Denis 'GNUtoo' Carikli" <GNUtoo <at> no-log.org> writes:
> +           DEVICE_POWER_PATH_NEW =
> "/sys/bus/platform/drivers/gta02-pm-gps/gta02-pm-gps.0/power_on"

Interesting. Is this new path something I should add to omhacks too?

If you have omhacks, can you try if what you get from the following
commands under 2.6.39?

om --version
om gps power
om gps power 1
om gps power
om gps power 0
om gps power

I have not managed to get SD card work with 2.6.39 so I have not tested
it :-(

-Timo
Denis 'GNUtoo' Carikli | 14 Oct 2011 20:24
Favicon

Re: [PATCH] ogpsd: add support for 2.6.39 kernel paths

>If you have omhacks, can you try if what you get from the following
>commands under 2.6.39?
unfortunately omhacks don't compile, it errors because of -Werror.

I'll have to fix that before trying.

>I have not managed to get SD card work with 2.6.39 so I have not tested
>it :-(
That's really bad, we need SD working again, but I'm not sure I could succeed 
on that if larsc failed...

Currently I use ubifs....but I would need a somewhat working microsd for my 
music when I would have ported mplayer to shr-core.

Denis.

Gmane