Posts by Juanro49
log in
1) Message boards : Number crunching : Android applications on ARM (Message 1901)
Posted 25 Jul 2020 by Juanro49
Yep, I will start to distribute the Android applications as soon as possible. I'm very busy right now (work issues, papers, projects,...) I will do this after July 10th (please remind me the issue again if it happens that I forgot about... ;)


Hi! When Android is officially supported (for official boinc app and non rooted devices)? thanks!!
2) Message boards : Number crunching : Android applications on ARM (Message 1847)
Posted 23 May 2020 by Juanro49
At the moment, it seems that the OpenWrt executables are faster than the ones I compiled for Android arm and arm64

ARM IFive Mini 4S RK3288



ARM64 Huawei Nova MSM8953 (via termux)

3) Message boards : Number crunching : Android applications on ARM (Message 1846)
Posted 18 May 2020 by Juanro49
Doing some tests we noticed that the recently built applications for OpenWrt/Linux should also run on ARM based Android systems. If you have BOINC running on one of the following platforms

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

you could try to configure your BOINC client to use the alt_platform method inside yours cc_config.xml and request to download the proper application

<alt_platform>arm-openwrt-linux-muslgnueabi</alt_platform> (32-bit) <alt_platform>aarch64-openwrt-linux-musl</alt_platform> (64-bit)

After some testing (I need only a few days if there will be enough statistic) I will start to distribute the Androd/ARM applications "the official way"

[edit] we already have vfpv3/vfpv4 applications for ARM 32-bit


Great news!!

I have tried to compile the armv7-a and armv8-a executables for Android, and so far they work well! But I need to complete the tasks to verify that everything is correct and compare the times with the OpenWrt executable and see if it is faster or slower. I published the scripts and makefiles in this thread so anyone can try to compile and optimize it (I'm a developer but I don't have some knowledge of C/C++) http://gene.disi.unitn.it/test/forum_thread.php?id=270&postid=1838#1838
4) Message boards : Number crunching : SSE3 optimization and Android binary (Message 1845)
Posted 18 May 2020 by Juanro49
Hi all!

now, I sucessfully compile a 32 bits armv7-a version



I will try to test if it works well on my Ifive mini 4. http://gene.disi.unitn.it/test/show_host_detail.php?hostid=58688

Definitive build script android32_build.sh https://bin.disroot.org/?8a895f9191fe1cdd#AN1MyMVoqv2t7x9dKQ4z7VHYVCvj4LEe44uggQ1PzZqU
Definitive makefile https://bin.disroot.org/?981945d91a0f2297#4VCRaZHSEQei5DNYjWAccQ97AiGkxbevXed82dxxyeHu (optimiced for cortex a17, with neon-vfpv4, you can change for other -mtune value defined in https://gcc.gnu.org/onlinedocs/gcc-10.1.0/gcc/ARM-Options.html#ARM-Options)

Regarding the 64-bit version, at the moment it works well on my Huawei Nova with boinc in termux http://gene.disi.unitn.it/test/show_host_detail.php?hostid=58688
5) Message boards : Web site : Change avatar error (Message 1843)
Posted 18 May 2020 by Juanro49
I think I have fixed it, please retry


Now it work fine! thanks!
6) Message boards : Web site : Change avatar error (Message 1840)
Posted 17 May 2020 by Juanro49
Hi!

I found a problem. When I try to change the forum avatar, I hsve this error:

Fatal error: Uncaught Error: Call to undefined function gd_info() in /home/boincadm/projects/test/html/inc/image.inc:23 Stack trace: #0 /home/boincadm/projects/test/html/user/edit_forum_preferences_action.php(99): intelligently_scale_image('/tmp/php2HXbwa', 100, 100) #1 {main} thrown in /home/boincadm/projects/test/html/inc/image.inc on line 23
7) Message boards : Wish List : Android app? (Message 1839)
Posted 17 May 2020 by Juanro49
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
8) Message boards : Number crunching : SSE3 optimization and Android binary (Message 1838)
Posted 17 May 2020 by Juanro49
You have to put in the project's director an app_info.xml file with the name of your executable and then restart boinc.
https://boinc.berkeley.edu/wiki/Anonymous_platform
let us know if everything goes fine!

Then, if your procedure worked, you could explain all the passage you've done so that we will be able to compile also for arm32.
Did you compile the app with some extension? (ex. NEON, PIE)


Thanks! I try this and for the moment it works fine!!




Definitive build script android64_build.sh https://bin.disroot.org/?cae7d50e268c2abd#4VXpES87gfvQFgW7QkHnCG5fyCTumuKC3hMYofNGPY2R
Definitive makefile https://bin.disroot.org/?81265057234777a3#9tJmVrkUwAWRc5dVyrFQf49LRj5sWDcwo4nZAV8pYZK8 (optimiced for cortex a53, you can change for other -mtune value defined in https://gcc.gnu.org/onlinedocs/gcc-10.1.0/gcc/AArch64-Options.html#aarch64-feature-modifiers)

I try this steps:

9) Message boards : Number crunching : SSE3 optimization and Android binary (Message 1834)
Posted 17 May 2020 by Juanro49
It looks that bzip2 library was build with -D_FORTIFY_SOURCE, which is not supported by glibc on Android. You need to rebuild bzip2 with this flag disabled. Here is related question on StackOverflow:
https://stackoverflow.com/questions/22977898/android-4-4-undefined-reference-to-printf-chk


Thanks, I build bzip2 and make with compiled lib and work fine!!

/home/juanro/StudioProjects/boinc-android/src/boinc/samples/pc-boinc/bin/pc: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), statically linked, with debug_info, not stripped


Now, how can I test this binary to view that ir work fine?
10) Message boards : Number crunching : SSE3 optimization and Android binary (Message 1831)
Posted 16 May 2020 by Juanro49
Hi!

I'm try to compile an Android binary but I have this error when manually build TN-Grid executable

This is my build script https://bin.disroot.org/?efa76485d88e614e#2uMR2WgifRtYuFyW8vEfHdEU56N5NYDnz87wsk4sQTzd

And my app Makefile https://bin.disroot.org/?7ab51c427cb1f791#BqdC6EUshq1wLLWEKHp3UW4hz6tzsCirxxmP68t3Vt8C

[/url]
11) Message boards : Wish List : Android app? (Message 1828)
Posted 14 May 2020 by Juanro49
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]
12) Message boards : Number crunching : when an android application to run tngrid on smartphone (Message 1826)
Posted 12 May 2020 by Juanro49
Hello to all
i was wondering if is already planned an application for android
when will we be able to run tngrid on smartphones?


For the moment, you can try adding alternative platform to boinc (Linux/OpenWrt work fine in Android) http://gene.disi.unitn.it/test/forum_thread.php?id=171&postid=1825#1825
13) Message boards : Wish List : Android app? (Message 1825)
Posted 12 May 2020 by Juanro49
In Boinc Android app, it also works well (but need root to configure alternative platforms)

14) Message boards : Wish List : Android app? (Message 1824)
Posted 11 May 2020 by Juanro49
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 👏
15) Message boards : Wish List : Android app? (Message 1821)
Posted 11 May 2020 by Juanro49
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.


16) Message boards : Wish List : Android app? (Message 1819)
Posted 10 May 2020 by Juanro49
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]
17) Message boards : Wish List : Android app? (Message 1817)
Posted 9 May 2020 by Juanro49
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




Main page · Your account · Message boards


Copyright © 2024 CNR-TN & UniTN