Bitcoin Forum
November 20, 2017, 07:08:50 PM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1] 2 »  All
  Print  
Author Topic: bitcoind for synology nas (ARM)  (Read 20554 times)
ziomik
Legendary
*
Offline Offline

Activity: 1946


https://blog.comprarebitcoin.info


View Profile WWW
October 21, 2012, 03:50:12 PM
 #1

Hi, has anyone tried to compile with success bitcoind for nas synology DS211j (arm)?
I'm going crazy!

"Se domani senti due massaie che parlano di bitcoin tra di loro dal macellaio, forse e' il momento di vendere.. se pero' le sentirai fra 10 anni forse staranno solo pagando il conto" GBianchi
---- +++ ----
https://www.comprarebitcoin.info | https://blog.comprarebitcoin.info | https://www.bitcoinitalia.com
1511204930
Hero Member
*
Offline Offline

Posts: 1511204930

View Profile Personal Message (Offline)

Ignore
1511204930
Reply with quote  #2

1511204930
Report to moderator
1511204930
Hero Member
*
Offline Offline

Posts: 1511204930

View Profile Personal Message (Offline)

Ignore
1511204930
Reply with quote  #2

1511204930
Report to moderator
Join ICO Now Coinlancer is Disrupting the Freelance marketplace!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1511204930
Hero Member
*
Offline Offline

Posts: 1511204930

View Profile Personal Message (Offline)

Ignore
1511204930
Reply with quote  #2

1511204930
Report to moderator
Panoramix
Newbie
*
Offline Offline

Activity: 27



View Profile
October 22, 2012, 03:12:44 PM
 #2

Hi, has anyone tried to compile with success bitcoind for nas synology DS211j (arm)?
I'm going crazy!
I've been thinking about doing this as well. I'd be very interested in your experiences.
P_Shep
Legendary
*
Offline Offline

Activity: 1106


View Profile WWW
October 22, 2012, 04:59:42 PM
 #3

Been trying for DD-WRT (MIPS).

Not gone well.
ziomik
Legendary
*
Offline Offline

Activity: 1946


https://blog.comprarebitcoin.info


View Profile WWW
October 22, 2012, 05:34:06 PM
 #4

I'm very stubborn and I did;)
You can download the compiled file , here (v0.7.1-64-g2ef1569-beta): http://www.sendspace.com/file/rnr45y

If you want to compile your own (with some variations may be fine for other ARM platforms)
I worked on clean Debian platform for a Cross-Compiled.

Download the correct toolchain for your ARM. For Synology NAS: http://download.synology.com/download/ds/userguide/Synology_DiskStation_Manager_3rd_Party_Apps_Developer_Guide.pdf
Download db http://pkgs.fedoraproject.org/repo/pkgs/openldap/db-4.8.26.tar.gz
Download openssl http://www.openssl.org/source/openssl-1.0.1c.tar.gz
Download boost http://sourceforge.net/projects/boost/files/boost/1.49.0/boost_1_49_0.tar.bz2

Code:
apt-get install git build-essential libncurses5-dev bison flex gettext texinfo libgmp3-dev libmpfr-dev
git clone https://github.com/bitcoin/bitcoin.git

Put all the downloaded files in a folder and start a sh file with the following code:
Code:
export CC=/usr/local/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc
export CXX=/usr/local/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++
export LD=/usr/local/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-ld
export CFLAGS=-I/usr/local/arm-none-linux-gnueabi/include
export LDFLAGS=-L/usr/local/arm-none-linux-gnueabi/lib
export PATH=$PATH:/usr/local/arm-none-linux-gnueabi/bin
export CROSS_PREFIX=arm-none-linux-gnueabi
 
 
tar -xvzf db-4.8.26.tar.gz
cd db-4.8.26/build_unix
../dist/configure --enable-cxx --host=${CROSS_PREFIX} --prefix=/root/arm-libs &&
make &&
make install &&
cd ../..
 
tar -xvzf openssl-1.0.1c.tar.gz
cd openssl-1.0.1c/
./Configure --prefix=/root/arm-libs dist &&
make &&
make install &&
cd ..
 
tar -xvjf boost_1_49_0.tar.bz2
cd boost_1_49_0/
echo "using gcc : arm : /usr/local/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++ ;" >> tools/build/v2/user-config.jam
./bootstrap.sh
./bjam toolset=gcc-arm link=static
./bjam toolset=gcc-arm link=static --prefix=/root/arm-libs install
cd ..
 
export BOOST_INCLUDE_PATH=/root/arm-libs/include
export BDB_INCLUDE_PATH=/root/arm-libs/include
export OPENSSL_INCLUDE_PATH=/root/arm-libs/include
export BOOST_LIB_PATH=/root/arm-libs/lib
export BDB_LIB_PATH=/root/arm-libs/lib
export OPENSSL_LIB_PATH=/root/arm-libs/lib
 
cd /bitcoin/src/
 
make STATIC=1 -f makefile.unix bitcoind USE_UPNP=-
arm-none-linux-gnueabi-strip bitcoind

Finally, you will find the file in bitcoind in bitcoin/src/
It's not all my work, but I have a little changed from an old post on the forum synology of a user named "PK"

"Se domani senti due massaie che parlano di bitcoin tra di loro dal macellaio, forse e' il momento di vendere.. se pero' le sentirai fra 10 anni forse staranno solo pagando il conto" GBianchi
---- +++ ----
https://www.comprarebitcoin.info | https://blog.comprarebitcoin.info | https://www.bitcoinitalia.com
hamdi
Hero Member
*****
Offline Offline

Activity: 714



View Profile
October 22, 2012, 05:39:27 PM
 #5

doesnt i slow down the nas?

ziomik
Legendary
*
Offline Offline

Activity: 1946


https://blog.comprarebitcoin.info


View Profile WWW
October 22, 2012, 05:44:52 PM
 #6

Now is downloading blockchain and the CPU is used 100%  Roll Eyes Shocked
I want to see, when it will end, if it changes the workload

Code:
Mem: 102484K used, 16000K free, 0K shrd, 600K buff, 9312K cached
CPU:  0.0% usr  0.0% sys  9.0% nic  0.0% idle 81.8% io  0.0% irq  9.0% sirq

"Se domani senti due massaie che parlano di bitcoin tra di loro dal macellaio, forse e' il momento di vendere.. se pero' le sentirai fra 10 anni forse staranno solo pagando il conto" GBianchi
---- +++ ----
https://www.comprarebitcoin.info | https://blog.comprarebitcoin.info | https://www.bitcoinitalia.com
runeks
Legendary
*
Offline Offline

Activity: 952



View Profile WWW
October 23, 2012, 06:14:47 PM
 #7

Cool! Might be an idea to copy over a block chain from another computer you have though. I imagine verifying the block chain on a device like that will take weeks.
ziomik
Legendary
*
Offline Offline

Activity: 1946


https://blog.comprarebitcoin.info


View Profile WWW
October 23, 2012, 06:20:06 PM
 #8

Maybe you're right ...  Cheesy Cheesy

Code:
userDiskManager> ls -l
total 973812
-rw------- 1 user user 134217728 Oct 22 18:57 blk00000.dat
-rw------- 1 user user 134217728 Oct 22 20:58 blk00001.dat
-rw------- 1 user user 134217728 Oct 23 09:56 blk00002.dat
-rw------- 1 user user 134217728 Oct 23 13:24 blk00003.dat
-rw------- 1 user user 134217728 Oct 23 15:36 blk00004.dat
-rw------- 1 user user 134217728 Oct 23 19:00 blk00005.dat
-rw------- 1 user user  83886080 Oct 23 20:21 blk00006.dat
-rw------- 1 user user  15728640 Oct 22 18:57 rev00000.dat
-rw------- 1 user user  15728640 Oct 22 20:58 rev00001.dat
-rw------- 1 user user  15728640 Oct 23 09:56 rev00002.dat
-rw------- 1 user user  15728640 Oct 23 13:24 rev00003.dat
-rw------- 1 user user  15728640 Oct 23 15:36 rev00004.dat
-rw------- 1 user user  16777216 Oct 23 19:00 rev00005.dat
-rw------- 1 user user  11534336 Oct 23 20:21 rev00006.dat
userDiskManager>

"Se domani senti due massaie che parlano di bitcoin tra di loro dal macellaio, forse e' il momento di vendere.. se pero' le sentirai fra 10 anni forse staranno solo pagando il conto" GBianchi
---- +++ ----
https://www.comprarebitcoin.info | https://blog.comprarebitcoin.info | https://www.bitcoinitalia.com
runeks
Legendary
*
Offline Offline

Activity: 952



View Profile WWW
October 23, 2012, 06:53:23 PM
 #9

Looks like it downloaded 640 MB in 24 hours. But I don't think it verifies any transactions until block 190,000 (the latest check point). After that it will probably slow down significantly.

Also, note that you seem to be running the ultra-prune version (which you should, since it has been merged to main), which has been known to corrupt wallets. Just a heads up.
ziomik
Legendary
*
Offline Offline

Activity: 1946


https://blog.comprarebitcoin.info


View Profile WWW
October 23, 2012, 07:32:45 PM
 #10

Isn't the  ultra-prune in action. I downloaded the sources from the official github..
Code:
git clone https://github.com/bitcoin/bitcoin.git
Maybe I misunderstood, what you want to tell me?   Undecided

"Se domani senti due massaie che parlano di bitcoin tra di loro dal macellaio, forse e' il momento di vendere.. se pero' le sentirai fra 10 anni forse staranno solo pagando il conto" GBianchi
---- +++ ----
https://www.comprarebitcoin.info | https://blog.comprarebitcoin.info | https://www.bitcoinitalia.com
runeks
Legendary
*
Offline Offline

Activity: 952



View Profile WWW
October 23, 2012, 09:21:56 PM
 #11

Yes, you are running the ultra-prune version.

I was just letting you know that there have been reports of this version corrupting wallets, and that it's a fairly big code change, so it might not be as stable as the official releases. So if you want to run bleeding edge, this is the version to get. If you want stable, it might be better to grab an official release like 0.7.1 and building that.
hardcore-fs
Full Member
***
Offline Offline

Activity: 196


View Profile WWW
October 24, 2012, 02:48:47 AM
 #12

Why bother, all you would do is increase the CPU temp of the synology , causing it to NOT enter the sleep mode, thereby using MORE electricity than you can earn from generating bitcoins.

HC

BTC:1PCTzvkZUFuUF7DA6aMEVjBUUp35wN5JtF
ziomik
Legendary
*
Offline Offline

Activity: 1946


https://blog.comprarebitcoin.info


View Profile WWW
October 24, 2012, 06:02:31 AM
 #13

The purpose is not to generate bitcoin, but having a personal wallet I'll put on the network and will manage through the web wherever I am.

"Se domani senti due massaie che parlano di bitcoin tra di loro dal macellaio, forse e' il momento di vendere.. se pero' le sentirai fra 10 anni forse staranno solo pagando il conto" GBianchi
---- +++ ----
https://www.comprarebitcoin.info | https://blog.comprarebitcoin.info | https://www.bitcoinitalia.com
ziomik
Legendary
*
Offline Offline

Activity: 1946


https://blog.comprarebitcoin.info


View Profile WWW
November 10, 2012, 12:16:53 PM
 #14

I have a strange answer bitcoind running. I have not found solutions. Aid?
Code:
./bitcoind -datadir=/volume1/.bitcoin/
Bitcoin: Failed to connect best block

"Se domani senti due massaie che parlano di bitcoin tra di loro dal macellaio, forse e' il momento di vendere.. se pero' le sentirai fra 10 anni forse staranno solo pagando il conto" GBianchi
---- +++ ----
https://www.comprarebitcoin.info | https://blog.comprarebitcoin.info | https://www.bitcoinitalia.com
ziomik
Legendary
*
Offline Offline

Activity: 1946


https://blog.comprarebitcoin.info


View Profile WWW
December 23, 2012, 01:28:11 PM
 #15

Help.....  Cry

debug.log

Code:
Default data directory /root/.bitcoin                             
Used data directory /volume1/.bitcoin/                             
dbenv.open LogDir=/volume1/.bitcoin/database ErrorFile=/volume1/.bitcoin/db.log
Bound to [::]:8333                                                             
Bound to 0.0.0.0:8333                                                         
Loading block index...                                                         
Opening LevelDB in /volume1/.bitcoin/blktree                                   
Opened LevelDB successfully                                                   
Opening LevelDB in /volume1/.bitcoin/coins                                     
Opened LevelDB successfully                                                   
LoadBlockIndex(): last block file = 18                                         
LoadBlockIndex(): last block file: CBlockFileInfo(blocks=1051, size=90935905, heights=192137..193187, time=2012-08-03..2012-08-10)
LoadBlockIndex(): hashBestChain=000000000019d6689c08  height=0 date=01/03/09 18:15:05                                             
Verifying last 0 blocks at level 1                                                                                               
 block index           35045ms                                                                                                   
Loading wallet...                                                                                                                 
nFileVersion = 79900                                                                                                             
 wallet                16219ms                                                                                                   
ERROR: CheckProofOfWork() : nBits below minimum work                                                                             
ERROR: CBlock::ReadFromDisk() : errors in block header                                                                           
ERROR: SetBestBlock() : ReadFromDisk for connect failed                                                                           
Loading addresses...                                                                                                             
Loaded 118 addresses from peers.dat  22ms                                                                                         
mapBlockIndex.size() = 193188                                                                                                     
nBestHeight = 0                                                                                                                   
setKeyPool.size() = 101                                                                                                           
mapWallet.size() = 0                                                                                                             
mapAddressBook.size() = 4                                                                                                         
Done loading                                                                                                                     
Bitcoin: Failed to connect best block                                                                                             
Flush(false)                                                                                                                     
wallet.dat refcount=0                                                                                                             
wallet.dat checkpoint                                                                                                             
ThreadRPCServer started                                                                                                           
send version message: version 60002, blocks=0, us=0.0.0.0:0, them=0.0.0.0:0, peer=127.0.0.1:0                                     
ThreadIRCSeed exited                                                                         
ThreadSocketHandler started                                                                 
ThreadOpenAddedConnections started                                                           
ThreadOpenAddedConnections exited                                                           
ThreadOpenConnections started                                                               
ThreadMessageHandler started                                                                 
ThreadMessageHandler exited                                                                 
ThreadDumpAddress exited                                                                     
ThreadDNSAddressSeed started                                                                 
Loading addresses from DNS seeds (could take a while)                                       
ThreadRPCServer exited                                                                       
wallet.dat detach                                                                           
ThreadSocketHandler exited                                                                   
wallet.dat closed                                                                           
DBFlush(false) ended              77ms                                                       
StopNode()                                                                                   
GetMyExternalIP() received [xxx.xxx.xxx.xxx] xxx.xxx.xxx.xxx:0                                   
GetMyExternalIP() returned xxx.xxx.xxx.xxx                                                     
AddLocal(95.228.138.78:8333,5)                                                               
ThreadOpenConnections exited                                                                 
Added 31 addresses from 178.18.90.41: 0 tried, 149 new                                       
Added 24 addresses from 173.242.112.53: 0 tried, 173 new                                     
120 addresses found from DNS seeds                                                           
ThreadDNSAddressSeed exited                               
Flushed 173 addresses to peers.dat  123ms                 
Committing 0 changed transactions to coin database...     
Flush(true)                                               
DBFlush(true) ended               0ms                     
Bitcoin exited     

"Se domani senti due massaie che parlano di bitcoin tra di loro dal macellaio, forse e' il momento di vendere.. se pero' le sentirai fra 10 anni forse staranno solo pagando il conto" GBianchi
---- +++ ----
https://www.comprarebitcoin.info | https://blog.comprarebitcoin.info | https://www.bitcoinitalia.com
ziomik
Legendary
*
Offline Offline

Activity: 1946


https://blog.comprarebitcoin.info


View Profile WWW
December 23, 2012, 04:52:34 PM
 #16

solution is recompiled new build.  Cheesy

"Se domani senti due massaie che parlano di bitcoin tra di loro dal macellaio, forse e' il momento di vendere.. se pero' le sentirai fra 10 anni forse staranno solo pagando il conto" GBianchi
---- +++ ----
https://www.comprarebitcoin.info | https://blog.comprarebitcoin.info | https://www.bitcoinitalia.com
Raize
Donator
Legendary
*
Offline Offline

Activity: 1409


View Profile
December 24, 2012, 04:49:04 PM
 #17

Holy crap ziomik. That's awesome. How long did it run at 100% CPU before it finished verifying the blockchain? I'm tempted to give this a shot.

OrganofCorti's Neighbourhood Pool Watch - The most informative website on blockchain health
ziomik
Legendary
*
Offline Offline

Activity: 1946


https://blog.comprarebitcoin.info


View Profile WWW
December 24, 2012, 10:41:16 PM
 #18

Hello, I had to stop because, as you can see from the post above, the version I had compiled was the ultra-prune and was clobbered.
Now I have compiled 0.7.2 and began again to download the blockchain. At this time are the block number 15432. At the download has worked 100% cpu but now it is the ram that is consumed much.
My nas use it as a video straming and while doing this work, I just finished looking at the film "The Watch" without a hint of problems ..  Wink

"Se domani senti due massaie che parlano di bitcoin tra di loro dal macellaio, forse e' il momento di vendere.. se pero' le sentirai fra 10 anni forse staranno solo pagando il conto" GBianchi
---- +++ ----
https://www.comprarebitcoin.info | https://blog.comprarebitcoin.info | https://www.bitcoinitalia.com
Raize
Donator
Legendary
*
Offline Offline

Activity: 1409


View Profile
December 25, 2012, 12:39:09 AM
 #19

When you say video streaming do you mean Plex or Video Station? That's too bad about RAM usage, but I'm actually thinking of upgrading my NAS. I can especially justify it if it can host the blockchain for me!

OrganofCorti's Neighbourhood Pool Watch - The most informative website on blockchain health
ziomik
Legendary
*
Offline Offline

Activity: 1946


https://blog.comprarebitcoin.info


View Profile WWW
December 25, 2012, 08:19:36 AM
 #20

use Plex.
I want to see if it will decrease the use, when bitcoind end of download ... we will see ..

"Se domani senti due massaie che parlano di bitcoin tra di loro dal macellaio, forse e' il momento di vendere.. se pero' le sentirai fra 10 anni forse staranno solo pagando il conto" GBianchi
---- +++ ----
https://www.comprarebitcoin.info | https://blog.comprarebitcoin.info | https://www.bitcoinitalia.com
Pages: [1] 2 »  All
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!