This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Compiling on Tinkerboard
#1
Since Novaspirit has done an excellent job ob running mining programs on the Tinkerboard, i wanted to compile

https://github.com/magi-project/wolf-m7m-cpuminer-V2/

on the tinkerboard just for fun. i have seen working versions for raspberry pi but cannot figure out how in the world to compile this. i constantly get the error

(see attached image)

From what i understand its just a matter of setting correct compiler flags?

Maybe someone can help or has tried this before.

Best regards


Attached Files Thumbnail(s)
   
Reply
#2
You got further than me. I couldn't even get ./configure to complete properly.
Reply
#3
(01-31-2018, 07:00 PM)Annoying Twit Wrote: You got further than me. I couldn't even get ./configure to complete properly.

if it helps, i managed to compile this

https://www.novaspirit.com/2017/04/10/cp...pberry-pi/

on the tinkerboard, just dont forget to put a ./build.sh in the last command not like he has it as command ont he website, that does not work for me.

unfortunately, the cpu miner multi does not run as efficient and i only get hashrates of 6 kH/s instead of 10. it baffeling to me how i cannot seem to freaking compile the raspberry version of magi cpu miner v2 on the tinkerboard.

greetz,

Sig
Reply
#4
(01-31-2018, 02:54 PM)signum71 Wrote: Since Novaspirit has done an excellent job ob running mining programs on the Tinkerboard, i wanted to compile

https://github.com/magi-project/wolf-m7m-cpuminer-V2/

on the tinkerboard just for fun. i have seen working versions for raspberry pi but cannot figure out how in the world to compile this. i constantly get the error

(see attached image)

From what i understand its just a matter of setting correct compiler flags?

Maybe someone can help or has tried this before.

Best regards

Can you provide the related documents of "working versions for Rpi" ? Maybe we can use this as the beginning.
Reply
#5
(02-06-2018, 07:24 AM)jamess Wrote:
(01-31-2018, 02:54 PM)signum71 Wrote: Since Novaspirit has done an excellent job ob running mining programs on the Tinkerboard, i wanted to compile

https://github.com/magi-project/wolf-m7m-cpuminer-V2/

on the tinkerboard just for fun. i have seen working versions for raspberry pi but cannot figure out how in the world to compile this. i constantly get the error

(see attached image)

From what i understand its just a matter of setting correct compiler flags?

Maybe someone can help or has tried this before.

Best regards

Can you provide the related documents of "working versions for Rpi" ? Maybe we can use this as the beginning.

https://github.com/novaspirit/wolf-m7m-cpuminer-V2-RPi

here you go, this is novaspirits version of wolf m7m cpu miner V2 for RPi, i have tried to compile it for tinkerboard, but i dont know enough about it and ran into errors.
Reply
#6
Hi signum71

In my case:
1. ./autogen.sh
2../configure   US_CPPFLAGS="-03"  CFLAGS="-O2 -pipe -march=armv7-a -mtune=cortex-a17 -mfpu=neon -mfloat-abi=hard -pipe -fomit-frame-pointer -fstack-protector-strong" CXXFLAGS="-O2 -pipe -march=armv7-a -mtune=cortex-a17 -mfpu=neon -mfloat-abi=hard -pipe -fomit-frame-pointer -fstack-protector-strong"
3. I need to remove "-flto" from Makefile and m7/Makefile.
4. make

I can build it successfully. But i am not sure it can work or not.
Can you help to try it?
have a nice day.

Reply
#7
you sir, are a genius. is there any method to the way you compiled this. i am trying to learn more about compiling for different architectures and i am wondering if i should just give up and its all voodoo magic or how you go about compiling for tinkerboard.

my next goal would be to follow the example of novaspirits gpu miner for mali. I got it running on tinkerboard too, but i wonder if i could compile other GPU miners for mali, since this one does not support the algorithms i would like to use. 

https://www.novaspirit.com/2017/12/21/gp...nkerboard/

I am thinking something along the lines of cryptonight like here

https://aeon-pool.com/#getting_started
Reply
#8
(02-08-2018, 08:32 AM)signum71 Wrote: you sir, are a genius. is there any method to the way you compiled this. i am trying to learn more about compiling for different architectures and i am wondering if i should just give up and its all voodoo magic or how you go about compiling for tinkerboard.

my next goal would be to follow the example of novaspirits gpu miner for mali. I got it running on tinkerboard too, but i wonder if i could compile other GPU miners for mali, since this one does not support the algorithms i would like to use. 

https://www.novaspirit.com/2017/12/21/gp...nkerboard/

I am thinking something along the lines of cryptonight like here

https://aeon-pool.com/#getting_started

Hi i'm looking the same that you, but i'm a beginner on the Asus Tinker Board world, but not with the cryptocurrencies, so i try to compile the new version of the sgminer with cryptonight algoritm suppot but i can't because i have so much errors, but i leave the link to the github of the sgminer to see if someone here can help us.

https://github.com/genesismining/sgminer-gm


thanks in advance and sorry for my poor english but it's not my native language. Big Grin
Reply
#9
The issue in the first screenshot is that the generated binary does not seem to be linked to a library providing the sph_* symbols.

Those symbols seems to come from a library named sphlib which... seems to be a little difficult to install on Ubuntu/Debian systems.

You might have to compile this library yourself and edit this miner's Makefile to link to this library.
Reply
#10
(01-31-2018, 08:07 PM)signum71 Wrote:
(01-31-2018, 07:00 PM)Annoying Twit Wrote: You got further than me. I couldn't even get ./configure to complete properly.

if it helps, i managed to compile this

https://www.novaspirit.com/2017/04/10/cp...pberry-pi/

on the tinkerboard, just dont forget to put a ./build.sh in the last command not like he has it as command ont he website, that does not work for me.

unfortunately, the cpu miner multi does not run as efficient and i only get hashrates of 6 kH/s instead of 10. it baffeling to me how i cannot seem to freaking compile the raspberry version of magi cpu miner v2 on the tinkerboard.

greetz,

Sig

Hi , I have also tried to install cpuminer-multi as following

sudo apt-get install automake autoconf pkg-config libcurl4-openssl-dev libjansson-dev libssl-dev libgmp-dev make g++ git

git clone https://github.com/tpruvot/cpuminer-multi

cd cpuminer-multi

./autogen.sh

./configure CFLAGS="-O2 -pipe -march=armv7-a -mtune=cortex-a17 -mfpu=neon -mfloat-abi=hard -pipe -fomit-frame-pointer -fstack-protector-strong" CXXFLAGS="-O2 -pipe -march=armv7-a -mtune=cortex-a17 -mfpu=neon -mfloat-abi=hard -pipe -fomit-frame-pointer -fstack-protector-strong" --with-crypto --with-curl

sudo make

it starts compile and error
asm/cpuminer-sha2-arm.o asm/cpuminer-scrypt-arm.o  -lcurl -lz -lssl -lcrypto -ljansson -lpthread  
/usr/bin/ld: cannot find -lz
collect2: error: ld returned 1 exit status

It seems library -lz missing
Do you have same error ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)