[Olsr-dev] OLSRv1 telnet plugin on Android
Karoly Szabo
(spam-protected)
Mon Jan 27 23:25:08 CET 2014
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.
Il giorno 27/gen/2014 20:38, "Ferry Huberts" <(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/), 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)>
>> 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)>
>>>
>>> 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)
>>>> >
>>>> 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)> 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)>
>>>>>> 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)
>>>>>>> https://lists.olsr.org/mailman/listinfo/olsr-dev
>>>>>>>
>>>>>>
>>>
>>>
>>
> --
> Ferry Huberts
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.olsr.org/pipermail/olsr-dev/attachments/20140127/3b189ff5/attachment.html>
More information about the Olsr-dev
mailing list