Bitcoin Forum

Other => CPU/GPU Bitcoin mining hardware => Topic started by: kaerf on October 18, 2012, 01:19:32 AM



Title: Mining on an Android phone (galaxy nexus) CPU and BFL single
Post by: kaerf on October 18, 2012, 01:19:32 AM
I managed to get cgminer running on Cyanogenmod 9.1.0

http://youtu.be/c9hBRljvZPI


I think the phone uses about ~3 watts.




Title: Re: Mining on an Android phone (galaxy nexus) CPU and BFL single
Post by: paraipan on October 18, 2012, 01:32:48 AM
I managed to get cgminer running on Cyanogenmod 9.1.0

http://youtu.be/c9hBRljvZPI


I think the phone uses about ~3 watts.




That is way too awesome  :) I need to change my phone asap


Title: Re: Mining on an Android phone (galaxy nexus) CPU and BFL single
Post by: crazyates on October 18, 2012, 03:33:45 AM
I've seen a lot of people spaming their videos for the BFL contest, but that's the only one I've legit been impressed by. Good Job!


Title: Re: Mining on an Android phone (galaxy nexus) CPU and BFL single
Post by: Valalvax on October 18, 2012, 03:39:49 AM
I'd change the subject to a much more accurate "using Android phone as BFL host"
Has the benefit of not sounding like one of those "I can use phone as miner cause they use like no power I don't care how efficient they are" noobs


Title: Re: Mining on an Android phone (galaxy nexus) CPU and BFL single
Post by: yrtrnc on October 18, 2012, 07:07:22 AM
Hey, good job... ;D

Did you post it on the butterfly labs forum, you could win a BFL single SC.


https://forums.butterflylabs.com/showthread.php/37-Article-Contest-Post-a-video-Win-a-BFL-Single-SC!?highlight=android


Title: Re: Mining on an Android phone (galaxy nexus) CPU and BFL single
Post by: Zeek_W on October 18, 2012, 10:05:02 AM
awesome work!


Title: Re: Mining on an Android phone (galaxy nexus) CPU and BFL single
Post by: kaerf on October 18, 2012, 05:13:40 PM
Hey, good job... ;D

Did you post it on the butterfly labs forum, you could win a BFL single SC.


https://forums.butterflylabs.com/showthread.php/37-Article-Contest-Post-a-video-Win-a-BFL-Single-SC!?highlight=android

yup, I submitted it to their contest.



Title: Re: Mining on an Android phone (galaxy nexus) CPU and BFL single
Post by: Frequency on October 18, 2012, 07:23:40 PM
I managed to get cgminer running on Cyanogenmod 9.1.0

http://youtu.be/c9hBRljvZPI


I think the phone uses about ~3 watts.




Very nice vid, .. ;)


Title: Re: Mining on an Android phone (galaxy nexus) CPU and BFL single
Post by: P_Shep on October 18, 2012, 08:46:11 PM
Nice :)


Title: Re: Mining on an Android phone (galaxy nexus) CPU and BFL single
Post by: dlasher on October 19, 2012, 11:07:37 PM
I managed to get cgminer running on Cyanogenmod 9.1.0

http://youtu.be/c9hBRljvZPI

I think the phone uses about ~3 watts.



Requires :
-- Cyanogen source, compile custom kernel
-- libcurl
-- build files for cgminer
-- tweak cgminer pthread behavior (pthread_cancel)
-- compile ftdi kernel module
-- usb host mode working

Miss anything?


Title: Re: Mining on an Android phone (galaxy nexus) CPU and BFL single
Post by: kaerf on October 20, 2012, 05:11:28 AM
Requires :
-- Cyanogen source, compile custom kernel
-- libcurl
-- build files for cgminer
-- tweak cgminer pthread behavior (pthread_cancel)
-- compile ftdi kernel module
-- usb host mode working

Miss anything?


had to tweak some function names in cgminer
e.g.
Code:
#if defined(__BIONIC__)
        d64 = betoh64(*data64);
#else
        d64 = be64toh(*data64);
#endif

also removed the pthread check in the cgminer configure script

when I say i modified the pthread_cancel behavior, I basically turned the cancel call into a SIGTERM...i didn't rewrite the code to do the "right" thing (though, i initially tried and failed).

regarding the android build files for cgminer, i had to create the main Android.mk and ones for ccan and jansson.

the tricky part in all this was passing/setting the right build environment variables to "configure" for libcurl and cgminer (there are several blogs and forums describing this stuff, but it's still tricky. the Android.mk file in curl is a pretty good reference).




Title: Re: Mining on an Android phone (galaxy nexus) CPU and BFL single
Post by: Sitarow on October 20, 2012, 05:32:06 AM
Requires :
-- Cyanogen source, compile custom kernel
-- libcurl
-- build files for cgminer
-- tweak cgminer pthread behavior (pthread_cancel)
-- compile ftdi kernel module
-- usb host mode working

Miss anything?


had to tweak some function names in cgminer
e.g.
Code:
#if defined(__BIONIC__)
        d64 = betoh64(*data64);
#else
        d64 = be64toh(*data64);
#endif
Nice work.
also removed the pthread check in the cgminer configure script

when I say i modified the pthread_cancel behavior, I basically turned the cancel call into a SIGTERM...i didn't rewrite the code to do the "right" thing (though, i initially tried and failed).

regarding the android build files for cgminer, i had to create the main Android.mk and ones for ccan and jansson.

the tricky part in all this was passing/setting the right build environment variables to "configure" for libcurl and cgminer (there are several blogs and forums describing this stuff, but it's still tricky. the Android.mk file in curl is a pretty good reference).





Title: Re: Mining on an Android phone (galaxy nexus) CPU and BFL single
Post by: kuusj98 on October 20, 2012, 09:21:44 PM
Is really nice what people can do...
What speed does it get?
and can you mine on the Gpu of it or is it only Cpu?


Title: Re: Mining on an Android phone (galaxy nexus) CPU and BFL single
Post by: Zeek_W on October 21, 2012, 05:53:52 AM
Is really nice what people can do...
What speed does it get?
and can you mine on the Gpu of it or is it only Cpu?

http://zipmeme.com/uploads/generated/g13371304382124686.jpg


Title: Re: Mining on an Android phone (galaxy nexus) CPU and BFL single
Post by: nick0016 on October 21, 2012, 06:01:10 AM

lol, nice work though!


Title: Re: Mining on an Android phone (galaxy nexus) CPU and BFL single
Post by: kuusj98 on October 21, 2012, 10:49:38 AM
Is really nice what people can do...
What speed does it get?
and can you mine on the Gpu of it or is it only Cpu?

http://zipmeme.com/uploads/generated/g13371304382124686.jpg

trolololo is it strange I asked that or something? (Im still a noob in mining, so I may ask stupid questions... :P)


Title: Re: Mining on an Android phone (galaxy nexus) CPU and BFL single
Post by: paraipan on October 21, 2012, 10:59:49 AM
Is really nice what people can do...
What speed does it get?
and can you mine on the Gpu of it or is it only Cpu?

http://zipmeme.com/uploads/generated/g13371304382124686.jpg

trolololo is it strange I asked that or something? (Im still a noob in mining, so I may ask stupid questions... :P)


Lol, both questions were kind of stupid yeah :)

What speed does it get?
It gets to the maximum of BFL Single, +800 Mh/s, as the phone only acts as a controlling device, where the actual miner is functioning.

and can you mine on the Gpu of it or is it only Cpu?
None actually, is the BFL's FPGA that is mining away. You could say some mining is made on the Android phone CPU because the miner that handles all the operation is working on it, but no actual hash calculations are carried on the phone.

Hope it helps.


Title: Re: Mining on an Android phone (galaxy nexus) CPU and BFL single
Post by: kuusj98 on October 21, 2012, 08:27:51 PM
Is really nice what people can do...
What speed does it get?
and can you mine on the Gpu of it or is it only Cpu?

http://zipmeme.com/uploads/generated/g13371304382124686.jpg

trolololo is it strange I asked that or something? (Im still a noob in mining, so I may ask stupid questions... :P)


Lol, both questions were kind of stupid yeah :)

What speed does it get?
It gets to the maximum of BFL Single, +800 Mh/s, as the phone only acts as a controlling device, where the actual miner is functioning.

and can you mine on the Gpu of it or is it only Cpu?
None actually, is the BFL's FPGA that is mining away. You could say some mining is made on the Android phone CPU because the miner that handles all the operation is working on it, but no actual hash calculations are carried on the phone.

Hope it helps.

Oh ok, now its clear to me :D
So the device doesnt mine but controlls the mining devices?


Title: Re: Mining on an Android phone (galaxy nexus) CPU and BFL single
Post by: crazyates on October 21, 2012, 08:30:40 PM
Is really nice what people can do...
What speed does it get?
and can you mine on the Gpu of it or is it only Cpu?
http://zipmeme.com/uploads/generated/g13371304382124686.jpg
trolololo is it strange I asked that or something? (Im still a noob in mining, so I may ask stupid questions... :P)
Lol, both questions were kind of stupid yeah :)

What speed does it get?
It gets to the maximum of BFL Single, +800 Mh/s, as the phone only acts as a controlling device, where the actual miner is functioning.

and can you mine on the Gpu of it or is it only Cpu?
None actually, is the BFL's FPGA that is mining away. You could say some mining is made on the Android phone CPU because the miner that handles all the operation is working on it, but no actual hash calculations are carried on the phone.

Hope it helps.
Oh ok, now its clear to me :D
So the device doesnt mine but controlls the mining devices?
To be fair, he does actually mine on the CPU on the phone. Then he uses the phone to control the BFL Single, which does the mining. Big difference.


Title: Re: Mining on an Android phone (galaxy nexus) CPU and BFL single
Post by: kaerf on October 23, 2012, 11:25:57 PM
the phone itself gets around 500 KH/s via CPU mining...not something you'd want to run.