Android app?
log in

Advanced search

Message boards : Wish List : Android app?

Author Message
Profile Scalextrix[Gridcoin]
Send message
Joined: 12 Jun 14
Posts: 1
Credit: 4,140,171
RAC: 0
Message 1026 - Posted: 3 Apr 2017, 14:09:29 UTC
Last modified: 3 Apr 2017, 14:09:47 UTC

Hi you already have some ARM applications, possible to port them to Android?

Juanro49
Avatar
Send message
Joined: 27 Apr 20
Posts: 17
Credit: 115,528
RAC: 0
Spain
Message 1817 - Posted: 9 May 2020, 16:26:05 UTC - in response to Message 1026.
Last modified: 9 May 2020, 16:26:42 UTC

Hi you already have some ARM applications, possible to port them to Android?


I'm interested, I tried to run ARM applications on this Android device but it doesn't work. http://gene.disi.unitn.it/test/show_host_detail.php?hostid=58688
____________
Consulta como ver TV y leer noticias desde tu movil en una sola app con FeedTV.
Apoya la investigación desde esta imagen

Juanro49
Avatar
Send message
Joined: 27 Apr 20
Posts: 17
Credit: 115,528
RAC: 0
Spain
Message 1819 - Posted: 10 May 2020, 18:30:07 UTC - in response to Message 1817.

Hi you already have some ARM applications, possible to port them to Android?


I'm interested, I tried to run ARM applications on this Android device but it doesn't work. http://gene.disi.unitn.it/test/show_host_detail.php?hostid=58688


I always have the error
<core_client_version>7.16.6</core_client_version>
<![CDATA[
<message>
process exited with code 2 (0x2, -254)</message>
<stderr_txt>
execv: No such file or directory
Process creation (../../projects/gene.disi.unitn.it_test/gene_pcim_v1.10_armv8-a) failed: Error -1, errno=2

</stderr_txt>
]]>

For example task http://gene.disi.unitn.it/test/result.php?resultid=49791625

The file exists



Other project, arm linux Rosetta@Home tasks works fine in Android termux
[/url]
____________
Consulta como ver TV y leer noticias desde tu movil en una sola app con FeedTV.
Apoya la investigación desde esta imagen

Profile valterc
Project administrator
Project tester
Send message
Joined: 30 Oct 13
Posts: 623
Credit: 34,677,535
RAC: 98
Italy
Message 1820 - Posted: 10 May 2020, 21:47:29 UTC

Not an Android expert at all... But you could try to run the application form the command line and look at the error messages. Did you check the executable bit of the application? If not try: chmod a+x gene_pcim_v1.10_armv8-a

Juanro49
Avatar
Send message
Joined: 27 Apr 20
Posts: 17
Credit: 115,528
RAC: 0
Spain
Message 1821 - Posted: 11 May 2020, 17:56:58 UTC - in response to Message 1820.
Last modified: 11 May 2020, 18:10:22 UTC

Not an Android expert at all... But you could try to run the application form the command line and look at the error messages. Did you check the executable bit of the application? If not try: chmod a+x gene_pcim_v1.10_armv8-a


Permissions are correct. I try to run rosetta linux and work fine, but when I run gene_pcim, it says "No such file or directory"






Edit:

I compared Gene@Home and Rosetta@Home programs and I see these diferences:

Rosetta is compiled with static libs, but Gene is compiled with dynamic libs, I believe thath it is the problem. I think that if you compile Gene@Home arm linux program with static libs, the same executable can work in Android.



____________
Consulta como ver TV y leer noticias desde tu movil en una sola app con FeedTV.
Apoya la investigación desde esta imagen

Profile valterc
Project administrator
Project tester
Send message
Joined: 30 Oct 13
Posts: 623
Credit: 34,677,535
RAC: 98
Italy
Message 1823 - Posted: 11 May 2020, 22:51:13 UTC - in response to Message 1821.
Last modified: 11 May 2020, 23:06:56 UTC

OK, the "No such file or directory" error is a little bit misleading. Anyway, the recently added applications for Linux/OpenWrt on ARM were statically built (OpenWrt doesn't support libc). You may try to use those using the following alt_platforms:

x32: arm-openwrt-linux-muslgnueabi
x64: aarch64-openwrt-linux-musl

another way to see if it works is the anonymous platform method.

Juanro49
Avatar
Send message
Joined: 27 Apr 20
Posts: 17
Credit: 115,528
RAC: 0
Spain
Message 1824 - Posted: 11 May 2020, 23:46:58 UTC - in response to Message 1823.

OK, the "No such file or directory" error is a little bit misleading. Anyway, the recently added applications for Linux/OpenWrt on ARM were statically built (OpenWrt doesn't support libc). You may try to use those using the following alt_platforms:

x32: arm-openwrt-linux-muslgnueabi
x64: aarch64-openwrt-linux-musl

another way to see if it works is the anonymous platform method.


With Linux/OpenWrt works fine, now Gene@Home can run in Android 👏

____________
Consulta como ver TV y leer noticias desde tu movil en una sola app con FeedTV.
Apoya la investigación desde esta imagen

Juanro49
Avatar
Send message
Joined: 27 Apr 20
Posts: 17
Credit: 115,528
RAC: 0
Spain
Message 1825 - Posted: 12 May 2020, 8:42:18 UTC - in response to Message 1824.

In Boinc Android app, it also works well (but need root to configure alternative platforms)


____________
Consulta como ver TV y leer noticias desde tu movil en una sola app con FeedTV.
Apoya la investigación desde esta imagen

manalog
Send message
Joined: 5 Oct 15
Posts: 33
Credit: 1,098,442
RAC: 0
Italy
Message 1827 - Posted: 14 May 2020, 18:49:43 UTC
Last modified: 14 May 2020, 18:50:18 UTC

Good news, so it seems to be working even if the app is not compiled with the android tools and library.
I tried to compile the app in this way (http://gene.disi.unitn.it/test/forum_thread.php?id=270) but it was too difficult for me; I think if someone wants to try it it should be the best way to ensure efficiency and optimization.
By the way, this is a great result.
So let's sum up, which android platforms has been tested by now?
Aarch64?
Arm (32 bit)?
Intel x86?
I do not own a rooted android device, but I think we could ask valterc to set the server to provide a beta android app (with the same binary of OpenWRT) so that we can test it.

Juanro49
Avatar
Send message
Joined: 27 Apr 20
Posts: 17
Credit: 115,528
RAC: 0
Spain
Message 1828 - Posted: 14 May 2020, 21:30:42 UTC - in response to Message 1827.

Good news, so it seems to be working even if the app is not compiled with the android tools and library.
I tried to compile the app in this way (http://gene.disi.unitn.it/test/forum_thread.php?id=270) but it was too difficult for me; I think if someone wants to try it it should be the best way to ensure efficiency and optimization.
By the way, this is a great result.
So let's sum up, which android platforms has been tested by now?
Aarch64?
Arm (32 bit)?
Intel x86?
I do not own a rooted android device, but I think we could ask valterc to set the server to provide a beta android app (with the same binary of OpenWRT) so that we can test it.


I try this on Aarch64 (Snapdragon 625) with termux http://gene.disi.unitn.it/test/show_host_detail.php?hostid=58708 (I use boinc in termux on this device because Boinc app don't work fine in Android 8 or above https://github.com/BOINC/boinc/issues/3495)

And in arm 32 bits Rockchip RK3288 http://gene.disi.unitn.it/test/show_host_detail.php?hostid=58688

If you don't have root on your phone, you can use boinc in termux and configure alrernative platforms https://github.com/truboxl/boinc-termux-client



I also think that asking @Valterc to configure the server to provide a beta application for android with the same OpenWRT binary is a good option at the moment, this way you don't have to configure anything else.[/url]
____________
Consulta como ver TV y leer noticias desde tu movil en una sola app con FeedTV.
Apoya la investigación desde esta imagen

Profile valterc
Project administrator
Project tester
Send message
Joined: 30 Oct 13
Posts: 623
Credit: 34,677,535
RAC: 98
Italy
Message 1829 - Posted: 15 May 2020, 11:22:03 UTC - in response to Message 1828.

I would wait a few days in order to see if the current OpenWrt/ARM applications will produce correctly validated results on Android systems. After that I will provide the applications directly.

What I need is the platform name, can you confirm the following two for Android on ARM ?

arm-android-linux-gnu Android running on ARM armeabi-v7a (32-bit)
aarch64-android-linux-gnu Android running on ARM 64-bit arm64-v8a

manalog
Send message
Joined: 5 Oct 15
Posts: 33
Credit: 1,098,442
RAC: 0
Italy
Message 1830 - Posted: 15 May 2020, 18:03:15 UTC - in response to Message 1829.

Yes Valter, the strings you posted are correct.
Looking forward to crunch some wu. I will put an old phone with the broken screen H24 on this project.
I have seen that the WUs coming from Juanro49's device are validating correctly :)
Perhaps you could put the application in "beta" mode so that few people in the forum can start testing if everything goes well before making the app public.
On the other hand, I think that we will have to compare the running time because we should figure out if this app is optimized or not to work on Android. Also, it misses all SIMD extensions, right?

Juanro49
Avatar
Send message
Joined: 27 Apr 20
Posts: 17
Credit: 115,528
RAC: 0
Spain
Message 1839 - Posted: 17 May 2020, 19:42:11 UTC
Last modified: 17 May 2020, 19:43:18 UTC

Hi all!

In this thread, I try to build an Android aarch64 executable and for the moment, it work fine!! http://gene.disi.unitn.it/test/forum_thread.php?id=270&postid=1838#1838
____________
Consulta como ver TV y leer noticias desde tu movil en una sola app con FeedTV.
Apoya la investigación desde esta imagen


Post to thread

Message boards : Wish List : Android app?


Main page · Your account · Message boards


Copyright © 2024 CNR-TN & UniTN