[Olsr-dev] OLSRv1 telnet plugin on Android

Ferry Huberts (spam-protected)
Tue Jan 28 11:27:40 CET 2014



On 27/01/14 23:25, Karoly Szabo wrote:
> Sorry probably I wasn't clear in my first message.
> Situation in linux (yep:my native system) :
> *Olsrd is working fine,
> *Telnet plug-in is ok,
> *My Telnet plug-in foreign commands are working.
>
> Situation in Android with my builds (freshly flashed Android device and
> formatted sdcard to avoid any risk of old compiled stuff):
> *Olsrd is working fine,
> *Telnet plug-in is ok,
> *My Telnet plug-in foreign commands are gone.
>
> All other plug in that I tried are working on both systems with no
> problems.
>
> I tried also the builds you suggested and they are working too, but I
> can't find the Telnet library in your repository.
>

That indicates that the telnet plugin is not 'by default' supported on 
Android.

> Il giorno 27/gen/2014 20:38, "Ferry Huberts" <(spam-protected)
> <mailto:(spam-protected)>> ha scritto:
>
>     As a shortcut to diagnosing,
>     if you try with the artefacts from my build server
>     (https://hupie.dyndns.org:__15051/jenkins/view/OLSRd%20v1/__job/olsrd%20-%20master%20-%__20android/
>     <https://hupie.dyndns.org:15051/jenkins/view/OLSRd%20v1/job/olsrd%20-%20master%20-%20android/>),
>     then does it work?
>
>     If so, then your build setup is wrong.
>
>     Android != Linux
>
>     We've been using the Android build of olsrd v1 successfully for
>     quite some time now.
>     You do need a rooted device.
>
>     On 27/01/14 20:33, Henning Rogge wrote:
>
>         If you remove the txtinfo libraries and restart, can you still
>         access
>         the telnet port?
>
>         If yes there are still there... if not your are uploading the wrong
>         libraries. I assume you tested them on your native system?
>
>         Henning Rogge
>
>         On Mon, Jan 27, 2014 at 7:49 PM, Karoly Szabo
>         <(spam-protected) <mailto:(spam-protected)>> wrote:
>
>             I tried to remove all the olsr-related libraries from that
>             devices and
>             upload new ones but the problem is still there.
>             It may be the result of some preprocessing conditions
>             that..in the
>             end..inhibit foreing commands by compiling on something
>             different than
>             Linux?
>
>
>
>             2014-01-21 Henning Rogge <(spam-protected)
>             <mailto:(spam-protected)>>
>
>                 If the help command of the telnet plugin does not show
>                 the text you
>                 added to it, then you cannot be running the new code.
>
>                 Compiling doesn't help if the wrong plugin library is
>                 loaded, maybe
>                 you should look for a second (older) library on your
>                 smartphone you
>                 installed earlier.
>
>                 Henning
>
>                 On Tue, Jan 21, 2014 at 8:28 PM, Karoly Szabo
>                 <(spam-protected) <mailto:(spam-protected)>>
>                 wrote:
>
>                     Unfortunately no.
>                     I just recompiled both of them (with make OS=ANDROID
>                     and ndk path).
>
>                     Karoly
>
>                     Il giorno 21/gen/2014 20:20, "Henning Rogge"
>                     <(spam-protected) <mailto:(spam-protected)>> ha
>                     scritto:
>
>
>                         I would guess you still run a copy of the old
>                         executable and plugin
>                         library.
>
>
>                         Henning Rogge
>
>                         On Tue, Jan 21, 2014 at 8:16 PM, Karoly Szabo
>                         <(spam-protected)
>                         <mailto:(spam-protected)>>
>                         wrote:
>
>                             Hi all,
>                             I'm having some troubles with telnet plugin
>                             when I try to use some
>                             foreign
>                             commands.
>                             If I compile my commands (I put them in
>                             main.c to make it easier) and
>                             run on
>                             Linux everything is working fine, my foreign
>                             commands are listed when
>                             I
>                             type
>                             help in telnet and they do their job.
>
>                             When I compile for Android all the default
>                             commands are running but I
>                             can't
>                             make work the foreign commands, and neither
>                             see them with the help
>                             command
>                             in telnet.
>                             (I double checked on the configuration file
>                             and they should be
>                             active,
>                             also
>                             because the configuration is imported from
>                             the same machine where
>                             they
>                             are
>                             working)
>
>                             I found only this difference just for Linux
>                             in telnet library
>                             #ifdef __linux__
>                             #include <fcntl.h>
>                             #endif /* __linux__ */
>
>                             And I tried to workaround that just by adding:
>                             #ifdef __ANDROID__
>                             #include <fcntl.h>
>                             #endif /*__ANDROID__ */
>
>                             But the result seems to be unchanged at all.
>
>                             Does anyone have an idea how to solve it?
>                             Thanks for your help.
>                             Karoly
>
>                             --
>                             Olsr-dev mailing list
>                             (spam-protected)
>                             <mailto:(spam-protected)>
>                             https://lists.olsr.org/__mailman/listinfo/olsr-dev
>                             <https://lists.olsr.org/mailman/listinfo/olsr-dev>
>
>
>
>
>
>     --
>     Ferry Huberts
>

-- 
Ferry Huberts




More information about the Olsr-dev mailing list