#202879 - 06/02/2004 21:33
Hijack v362 breaks GPSapp. :(
|
carpal tunnel
Registered: 20/12/1999
Posts: 31618
Loc: Seattle, WA
|
Hijack v354: Gpsapp works.
Install Hijack v362: Gpsapp says "Failed to set up serial port" when you start it and never detects the GPS.
Reinstall v354: Gpsapp works again.
Note that in both cases, "Apps use serial port" was properly selected in the Hijack menu.
|
Top
|
|
|
|
#202880 - 07/02/2004 08:16
Re: Hijack v362 breaks GPSapp. :(
[Re: tfabris]
|
carpal tunnel
Registered: 29/08/2000
Posts: 14515
Loc: Canada
|
You'll have to narrow it down better. Was it v361 that affected this?
Also, try starting GPSapp "by hand" from kftpd SITE EXEC, and see if that makes any difference.
Cheers
|
Top
|
|
|
|
#202882 - 07/02/2004 22:59
Re: Hijack v362 breaks GPSapp. :(
[Re: mlord]
|
carpal tunnel
Registered: 20/12/1999
Posts: 31618
Loc: Seattle, WA
|
You'll have to narrow it down better. Was it v361 that affected this? Yes.
Install v360: No error message.
Install v361: "Failed to set up serial port" error message.
Haven't tried Site Exec, gonna sign off for the night and maybe mess with it tomorrow.
|
Top
|
|
|
|
#202884 - 08/02/2004 02:25
Re: Hijack v362 breaks GPSapp. :(
[Re: tfabris]
|
carpal tunnel
Registered: 24/01/2002
Posts: 3937
Loc: Providence, RI
|
v363. alpha6. Forced to "DC/Car mode" (I'm in the house). Set to "App's use serial port" (and I still dislike that apostrophe  )
Works fine, I'm looking at the output on the screen. 4 satellites despite the GPS receiver being indoors.
I have
[serial]
car_rate=4800
in my config.ini. Nothing else is special.
So, I think you have some other problem?
|
Top
|
|
|
|
#202885 - 08/02/2004 02:37
Re: Hijack v362 breaks GPSapp. :(
[Re: Daria]
|
carpal tunnel
Registered: 20/12/1999
Posts: 31618
Loc: Seattle, WA
|
I have, AND ALWAYS HAVE HAD...
[serial]
car_rate=115200
because otherwise I always got strange pauses and slowdowns during regular MP3 playback as the player toodles along and writes useless stuff like "seek failed" etc. to the serial port.
For some reason, the GPS works fine even if I do that. I think it's because something else throttles it down to 4800 when it needs to talk to the GPS. I never understood it, it was all FM to me.
Would be interesting to see if you get the same failure modes with that setting.
|
Top
|
|
|
|
#202890 - 08/02/2004 13:47
Fix for Hijack v362 breaks GPSapp. :)
[Re: Daria]
|
carpal tunnel
Registered: 24/01/2002
Posts: 3937
Loc: Providence, RI
|
It does.
http://empeg.dementia.org/v363-hacked-for-tfabris.zImage
Mark: the diff is:
--- arch/arm/special/kexec.c 26 Jan 2004 05:03:50 -0000 1.4
+++ arch/arm/special/kexec.c 8 Feb 2004 19:46:28 -0000
@@ -42,7 +42,10 @@
int i;
current->session = 1;
+#if 0
current->pgrp = 1;
+#endif
+
use_init_filesystem_context();
// Block parent process signals
why the process group matters, I'm honestly not sure.
|
Top
|
|
|
|
#202891 - 08/02/2004 19:53
Re: Fix for Hijack v362 breaks GPSapp. :)
[Re: Daria]
|
carpal tunnel
Registered: 29/08/2000
Posts: 14515
Loc: Canada
|
Mmm.. good find.
Now we need to figure out why GPSapp fails with pgrp pointing at "init". Hijack will not be fixed for this -- other commands work just fine with the existing EXEC stuff, so in this case the app needs fixing.
Meanwhile, I'm off to nuke the apostrophe.
Cheers
|
Top
|
|
|
|
#202893 - 08/02/2004 19:58
Re: Fix for Hijack v362 breaks GPSapp. :)
[Re: Daria]
|
carpal tunnel
Registered: 29/08/2000
Posts: 14515
Loc: Canada
|
Does it OPEN /dev/ttyS0 first? or just rely on stdin/stdout/stderr ??
|
Top
|
|
|
|
#202897 - 08/02/2004 20:08
Re: Fix for Hijack v362 breaks GPSapp. :)
[Re: mlord]
|
carpal tunnel
Registered: 24/01/2002
Posts: 3937
Loc: Providence, RI
|
In fact in this message the strace output shows the port being open()d and ioctl()d, and that's a direct excerpt.
|
Top
|
|
|
|
#202898 - 08/02/2004 20:09
Re: Fix for Hijack v362 breaks GPSapp. :)
[Re: Daria]
|
carpal tunnel
Registered: 29/08/2000
Posts: 14515
Loc: Canada
|
So what happens when it opens the serial port itself, rather than relying on stdin/stdout ? (which I'm now thinking more and more about binding to /dev/null for all EXEC operations..).
Cheers
|
Top
|
|
|
|
#202900 - 08/02/2004 20:11
Re: Fix for Hijack v362 breaks GPSapp. :)
[Re: Daria]
|
carpal tunnel
Registered: 29/08/2000
Posts: 14515
Loc: Canada
|
A thought: the serial code seems to dislike the pgrp of a process not matching that with which a serial port was opened. However, we're getting ttyS1 attached to stdout and stderr when we start.
How about we just remove that check from the serial drivers? Try it and let me know if things work. (and.. patchfile?)
Cheers
|
Top
|
|
|
|
#202902 - 08/02/2004 20:12
Re: Fix for Hijack v362 breaks GPSapp. :)
[Re: Daria]
|
carpal tunnel
Registered: 29/08/2000
Posts: 14515
Loc: Canada
|
Or just close them on program startup.
|
Top
|
|
|
|
|
|