Bitcoin Forum
April 24, 2024, 04:25:35 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 [2] 3 »  All
  Print  
Author Topic: Building Armory on Raspberry Pi  (Read 9972 times)
RogueLeader
Newbie
*
Offline Offline

Activity: 38
Merit: 0


View Profile
May 12, 2013, 04:42:59 AM
 #21

Cool stuff.  I keep seeing things that make me want to finally order a Raspberry Pi, this might be the tipping point...
1713932735
Hero Member
*
Offline Offline

Posts: 1713932735

View Profile Personal Message (Offline)

Ignore
1713932735
Reply with quote  #2

1713932735
Report to moderator
1713932735
Hero Member
*
Offline Offline

Posts: 1713932735

View Profile Personal Message (Offline)

Ignore
1713932735
Reply with quote  #2

1713932735
Report to moderator
The trust scores you see are subjective; they will change depending on who you have in your trust list.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1713932735
Hero Member
*
Offline Offline

Posts: 1713932735

View Profile Personal Message (Offline)

Ignore
1713932735
Reply with quote  #2

1713932735
Report to moderator
1713932735
Hero Member
*
Offline Offline

Posts: 1713932735

View Profile Personal Message (Offline)

Ignore
1713932735
Reply with quote  #2

1713932735
Report to moderator
1713932735
Hero Member
*
Offline Offline

Posts: 1713932735

View Profile Personal Message (Offline)

Ignore
1713932735
Reply with quote  #2

1713932735
Report to moderator
bektar (OP)
Newbie
*
Offline Offline

Activity: 37
Merit: 0


View Profile
May 12, 2013, 06:47:40 AM
 #22

   
## Copy libraries from Pi
Quote
   scp -r pi@[IP_OF_PI_GOES_HERE]:/usr/include/python2.7 ~/src/Crosstool/RaspberryPi/include
   scp -r pi@[IP_OF_PI_GOES_HERE]:/usr/lib/libpython2.7.so ~/src/Crosstool/RaspberryPi/lib


I'm stuck on this one.  Can an example of IP_of_PI be given?  Thanks for any help provided.

IP_of_PI is the ip number of your Raspberry Pi, I use the command ifconfig to find it.
bektar (OP)
Newbie
*
Offline Offline

Activity: 37
Merit: 0


View Profile
May 12, 2013, 06:50:06 AM
 #23

@runeks:
good stuff!
I'm sorry for not responding quicker, I forgot all about this thread Smiley I haven't tried your advice yet since everything is working well for me atm. I'm sure I will have to set up another Pi sometime in the future though so will give it a try then Smiley
whiskers75
Hero Member
*****
Offline Offline

Activity: 658
Merit: 502


Doesn't use these forums that often.


View Profile
May 12, 2013, 08:16:53 AM
 #24

   
## Copy libraries from Pi
Quote
   scp -r pi@[IP_OF_PI_GOES_HERE]:/usr/include/python2.7 ~/src/Crosstool/RaspberryPi/include
   scp -r pi@[IP_OF_PI_GOES_HERE]:/usr/lib/libpython2.7.so ~/src/Crosstool/RaspberryPi/lib


I'm stuck on this one.  Can an example of IP_of_PI be given?  Thanks for any help provided.
IP_of_PI is the Internet Protocol address of your Pi. like 192.168.0.11

Elastic.pw Elastic - The Decentralized Supercomputer
ELASTIC ANNOUNCEMENT THREAD | ELASTIC SLACK | ELASTIC FORUM
hiturew
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
May 12, 2013, 08:42:48 AM
 #25

I assume this is why I'm copying the libpython2.7.so file from the pi? Any idea what I might be doing wrong this time?
wsoei
Newbie
*
Offline Offline

Activity: 46
Merit: 0



View Profile
May 12, 2013, 04:17:35 PM
 #26


IP_of_PI is the ip number of your Raspberry Pi, I use the command ifconfig to find it.


IP_of_PI is the Internet Protocol address of your Pi. like 192.168.0.11

Thanks for responding, bektar & whiskers75.

So, the raspberry pi would be connected to the ubuntu computer, in a closed network?  I'd disconnect the ubuntu computer from the internet and connect to the raspberry pi so that the raspberry pi never touches the actual network?
bektar (OP)
Newbie
*
Offline Offline

Activity: 37
Merit: 0


View Profile
May 13, 2013, 01:01:33 PM
 #27


IP_of_PI is the ip number of your Raspberry Pi, I use the command ifconfig to find it.


IP_of_PI is the Internet Protocol address of your Pi. like 192.168.0.11

Thanks for responding, bektar & whiskers75.

So, the raspberry pi would be connected to the ubuntu computer, in a closed network?  I'd disconnect the ubuntu computer from the internet and connect to the raspberry pi so that the raspberry pi never touches the actual network?

Yes that would work. Or you could use a usb stick. As long as you get the files from the Pi to the Ubuntu computer any way is fine.
bektar (OP)
Newbie
*
Offline Offline

Activity: 37
Merit: 0


View Profile
July 28, 2013, 06:35:15 AM
 #28

Just to make sure, you are replacing [user] with your username? If not start by doing that Smiley

In general, to change permissions in *nix you need to use the command "chmod". Perhaps in combination with "sudo" (depending on if you are the owner of the file). What you do is write

Code:
chmod 777 [filename goes here]

and thats it.

Please note that 777 gives read/write permissions to everyone. I believe its ok in this particular case since i expect you are going to be using this offline with no user except for yourself. In general though you should read the man pages for chmod and tailor the permissions as required.
_mr_e
Legendary
*
Offline Offline

Activity: 817
Merit: 1000



View Profile
July 28, 2013, 10:58:22 PM
 #29

I have got up to this part...
scp -r pi@[IP_OF_PI_GOES_HERE]:/usr/lib/libpython2.7.so ~/src/Crosstool/RaspberryPi/lib

except my pi does not have a libpython2.7.so directory... Have I done something wrong?

This line worked though so I'm confused:
scp -r pi@[IP_OF_PI_GOES_HERE]:/usr/include/python2.7 ~/src/Crosstool/RaspberryPi/include
_mr_e
Legendary
*
Offline Offline

Activity: 817
Merit: 1000



View Profile
July 28, 2013, 11:23:14 PM
 #30

I also tried going ahead and creating the patch file but I am receiving an error there too:

(Patch is indented 3 spaces.)
patching file cppForSwig/cryptopp/Makefile
(Patch is indented 3 spaces.)
patching file cppForSwig/Makefile
Hunk #1 FAILED at 1.
Hunk #2 FAILED at 37.
2 out of 2 hunks FAILED -- saving rejects to file cppForSwig/Makefile.rej

Help:(
bektar (OP)
Newbie
*
Offline Offline

Activity: 37
Merit: 0


View Profile
July 30, 2013, 05:34:29 AM
 #31

I'll have a look at it tonight or tomorrow and get back to you… I thought I was pretty thorough when I tested everything, but apparently I messed up somewhere Smiley
FactualOrc
Newbie
*
Offline Offline

Activity: 2
Merit: 0



View Profile
August 11, 2013, 04:33:06 PM
 #32

Any more word on this, Bektar?

I also tried going ahead and creating the patch file but I am receiving an error there too:

(Patch is indented 3 spaces.)
patching file cppForSwig/cryptopp/Makefile
(Patch is indented 3 spaces.)
patching file cppForSwig/Makefile
Hunk #1 FAILED at 1.
Hunk #2 FAILED at 37.
2 out of 2 hunks FAILED -- saving rejects to file cppForSwig/Makefile.rej

Help:(
I'm getting this error too. You can fix the indentation error though by making sure that lines that begin with either a "+", "-" or "@" don't have a space at the beginning and that all the other lines do

I have got up to this part...
scp -r pi@[IP_OF_PI_GOES_HERE]:/usr/lib/libpython2.7.so ~/src/Crosstool/RaspberryPi/lib

except my pi does not have a libpython2.7.so directory... Have I done something wrong?

This line worked though so I'm confused:
scp -r pi@[IP_OF_PI_GOES_HERE]:/usr/include/python2.7 ~/src/Crosstool/RaspberryPi/include

This is also confusing me, I'm pretty sure my Pi has the python libraries but they do not seem to be in that directroy... strange.
cosmarchy
Newbie
*
Offline Offline

Activity: 20
Merit: 0


View Profile
August 26, 2013, 01:41:36 PM
 #33

I'm trying to follow bektars instructions back in post #15 where it gives instructs

Quote
scp -r pi@[IP_OF_PI_GOES_HERE]:/usr/lib/libpython2.7.so ~/src/Crosstool/RaspberryPi/lib

but when I look at my RPI, I cannot find libpython2.7.so only libpython2.7.so.0 and libpython2.7.so.1
I've searched the entire drive high and low and these are the only files vaguely relevant.

Can anyone please advise what I can do?

Thanks
cosmarchy
Newbie
*
Offline Offline

Activity: 20
Merit: 0


View Profile
August 26, 2013, 06:41:01 PM
 #34

Mr bektar, sir....are you there?  Grin
bektar (OP)
Newbie
*
Offline Offline

Activity: 37
Merit: 0


View Profile
September 27, 2013, 08:18:50 AM
 #35

Ugh, i completly forgot all about this thread…

After having a quick look I would guess that the problem is copy pasting from the forum… it adds whitespace. I've created a gist at https://gist.github.com/bektar/6725546.

Use this by creating a file inside the "BitcoinArmory" directory called "BitcoinArmory.patch" and instead of doing:

Quote
cat > BitcoinArmory.patch

paste the raw contents in the gist into this file (please use a text editor, not a word editor).

And then go on with step "Apply the patch".


Please note, I havent tried this myself so please let me know how it goes.
bektar (OP)
Newbie
*
Offline Offline

Activity: 37
Merit: 0


View Profile
September 27, 2013, 08:21:07 AM
 #36

I'll try to take some time this weekend to make a gist or repo of the entire process… not making any promises though Smiley
bektar (OP)
Newbie
*
Offline Offline

Activity: 37
Merit: 0


View Profile
September 27, 2013, 08:24:06 AM
 #37

I'm trying to follow bektars instructions back in post #15 where it gives instructs

Quote
scp -r pi@[IP_OF_PI_GOES_HERE]:/usr/lib/libpython2.7.so ~/src/Crosstool/RaspberryPi/lib

but when I look at my RPI, I cannot find libpython2.7.so only libpython2.7.so.0 and libpython2.7.so.1
I've searched the entire drive high and low and these are the only files vaguely relevant.

Can anyone please advise what I can do?

Thanks

Do you get any error when you do this step? You are doing it from your crosscompiling computer and not your Pi, right?
bektar (OP)
Newbie
*
Offline Offline

Activity: 37
Merit: 0


View Profile
September 27, 2013, 08:27:30 AM
 #38

After reading through the guide now months after i wrote it i realize its note all that clear which parts are run on you pi, and which are run on your crosscompiling computer…

I'll try to make this clearer if while I'm making the repo/gist this weekend (if i get around to it, still not making any promises Tongue )
xabbix
Newbie
*
Offline Offline

Activity: 49
Merit: 0


View Profile
December 29, 2013, 11:07:26 PM
 #39

In case anyone is still interested in compiling the Bitcoin Armory on the RPi, you can download the compiled source code from http://coldpi.com.

That is Bitcoin Armory 0.88, compiled for Raspbian.
abracadabra
Hero Member
*****
Offline Offline

Activity: 956
Merit: 1001



View Profile
March 08, 2014, 06:40:00 PM
 #40

Code:
/opt/cross/x-tools/arm-unknown-linux-gnueabi/lib/gcc/arm-unknown-linux-gnueabi/4.8.2/../../../../arm-unknown-linux-gnueabi/bin/ld: libleveldb.a(db_impl.o): Relocations in generic ELF (EM: 3)
libleveldb.a: could not read symbols: File in wrong format
collect2: error: ld returned 1 exit status
make[1]: *** [../_CppBlockUtils.so] Error 1
make[1]: Leaving directory `/home/user/src/Crosstool/RaspberryPi/staging/BitcoinArmory/cppForSwig'
make: *** [all] Error 2

Trying to cross compile on ubuntu.

Full output is here:

http://pastebin.com/8MKevDbS

Any ideas?

Thanks!
Pages: « 1 [2] 3 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!