Pages:
Author

Topic: Anyone use raspberry pi with armory? NT (Read 3824 times)

legendary
Activity: 3766
Merit: 1364
Armory Developer
October 02, 2013, 06:33:16 PM
#32
Looking at the pin list, it has 11 data connections and 2 for power/gnd.

That suggests it could be interfaced, since the pi has lots of GPIOs.  There are 2 headers at either side, so maybe not very convenient.

I am not sure about drivers.  However, it is probably possible to "bit-bash" the GPIO pins and do the SPI writes.

Writing an ASM driver for a single $12 piece of hardware? Ouch...
newbie
Activity: 17
Merit: 0
October 01, 2013, 10:37:52 AM
#31

FYI:  some kind soul has donated a RPi to me!  It should be arriving soon, and I will be figuring out how to compile on it.  I hope to make offline-bundle releases for it, eventually. 

Any update on an offline-bundle for the RPi?
I've added a watch on this thread in the hope there will be one available, I don't have the technical know-how to build this from scratch but I'd really like to try out armory.
newbie
Activity: 43
Merit: 0
I might just want to do something like this Cheesy
newbie
Activity: 13
Merit: 0
 Shocked i'll be monitoring this thread closely and wait for any updates from etotheipi. RPi+Armory would be a great leap in this realm..  
full member
Activity: 175
Merit: 100

Assuming the pull request is accepted, these are the compile steps.  They also work if you pull from the PR instead of the main repo.  You can see the files that were changed by clicking of the PR link.


Nice write-up, thanks for your efforts.    Cool

I had difficulty compiling this with my rev A. It kept on running out of memory with 204800 so I bumped the swap file size up to 307200 and it did the next compile without any trouble. I haven't tried signing any tx yet but it loads up Armory fine. It's a bit slow starting up but way quicker than trying to boot a cold wallet usb drive and then back online on the same pc.
legendary
Activity: 1232
Merit: 1094
April 29, 2013, 02:42:03 PM
#27
Oh yeah! Nice find!
Can anyone confirm this would easily mate with the RPi?

Looking at the pin list, it has 11 data connections and 2 for power/gnd.

That suggests it could be interfaced, since the pi has lots of GPIOs.  There are 2 headers at either side, so maybe not very convenient.

I am not sure about drivers.  However, it is probably possible to "bit-bash" the GPIO pins and do the SPI writes.
legendary
Activity: 2126
Merit: 1001
April 29, 2013, 02:11:36 PM
#26
Was doing some Googling and found this.  It is $12 but includes a touch screen.

Oh yeah! Nice find!
Can anyone confirm this would easily mate with the RPi?

Ente
legendary
Activity: 1232
Merit: 1094
April 29, 2013, 11:43:06 AM
#25
Was doing some Googling and found this.  It is $12 but includes a touch screen.
legendary
Activity: 2126
Merit: 1001
April 28, 2013, 02:08:08 PM
#24
Here we go:

Cool.

Armory will definitely have to be modified to get it usable on such a small screen, but I bet I could do it.

Initial setup could be via a monitor and keyboard. 

Once done, transaction signing would need less info to be displayed.

If it could be setup to auto-start armory on powerup, then you could operate it with a single button and change the choice every second.

That's what I had in mind too. The screen to only show the address, sum, and maybe fees and a graphical representation of the address. And "Accept / Dismiss" with the buttons.
My priority was to find a screen the size or smaller than the R-Pi itself. There will be larger ones than the one I found. And, I found the 12€ pricetag.. noteworthy :-)
This (or other) displays leave the regular monitor connector unused. So we can connect both a "real" display and leave the tiny display connected. Which means there is a way to have different views on the different displays too. Like, a full debian shell or desktop on the big display, and the armory gui only on the small display.

Ente
legendary
Activity: 1232
Merit: 1094
April 28, 2013, 01:16:57 PM
#23
Here we go:

Cool.

Armory will definitely have to be modified to get it usable on such a small screen, but I bet I could do it.

Initial setup could be via a monitor and keyboard. 

Once done, transaction signing would need less info to be displayed.

If it could be setup to auto-start armory on powerup, then you could operate it with a single button and change the choice every second.
legendary
Activity: 1428
Merit: 1093
Core Armory Developer
April 28, 2013, 11:46:39 AM
#22
Armory will definitely have to be modified to get it usable on such a small screen, but I bet I could do it.
legendary
Activity: 2126
Merit: 1001
April 28, 2013, 11:22:36 AM
#21
I submitted a pull request to help with this.
[..]

Wow, that's great info!
Thank you for all the details and work! :-)

Seems I need to get a rasp-pi now, after all :-)
(and will look for a minimalistic tiny display and keypad now)

Ente

Here we go:

http://harizanov.com/product/1-8-tft-display-for-raspberry-pi/

12€ for a 1.8" tft!

Buttons?
https://projects.drogon.net/raspberry-pi/gpio-examples/tux-crossing/3-more-leds-and-a-button/
For free!

Thats all we need!
Raspberry Pi, a trustworthy debian image with offline-armory preinstalled (Alan?), display and buttons, add a nice case and here we go! I would both buy one and add to a bounty!

Ente
legendary
Activity: 1232
Merit: 1094
April 28, 2013, 05:18:01 AM
#20
I tweaked the PR slightly.  It now checks that "python" returns a version of 2.x before using that instead of "python2".
hero member
Activity: 991
Merit: 1011
April 27, 2013, 06:53:13 PM
#19
I submitted a pull request to help with this.

yay! awesome! pull!  Smiley

i already got a raspberry. but i intended to write a blog post for german users about how to use it and i couldnt possibly expect them to cross-compile armory.
so its basically collecting dust and waiting - possibly for this! cant wait to test it!
legendary
Activity: 2126
Merit: 1001
April 27, 2013, 05:15:42 PM
#18
I submitted a pull request to help with this.
[..]

Wow, that's great info!
Thank you for all the details and work! :-)

Seems I need to get a rasp-pi now, after all :-)
(and will look for a minimalistic tiny display and keypad now)

Ente
legendary
Activity: 1232
Merit: 1094
April 27, 2013, 02:52:20 PM
#17
I submitted a pull request to help with this.

Assuming the pull request is accepted, these are the compile steps.  They also work if you pull from the PR instead of the main repo.  You can see the files that were changed by clicking of the PR link.


Initial Setup

Get image for Raspbian “wheezy” and write to sd card
http://www.raspberrypi.org/downloads

After imaging, for HDMI/DVI graphics, you should edit the config.txt file on the sdcard

Uncomment: hdmi_force_hotplug=1


Power up the pi, using sd card

You are given a few options.  You can expand the OS to the full SD card capacity and then reboot.

Login

username: pi
password: raspberry


Distro update and Dependencies

You need an internet connection for this.  This downloads and installs all the dependencies.  This takes around 45 mins

Code:
sudo apt-get update

sudo apt-get upgrade

sudo apt-get -y install git libcrypto++-dev swig python-twisted libqtcore4 libqt4-dev python-qt4 python-dev pyqt4-dev-tools python-psutil


QTReactor

Code:
git clone git://github.com/ghtdak/qtreactor.git

Armoury
If the PR is not included, you need to use the PR version instead.

Code:
git clone git://github.com/TierNolan/BitcoinArmory.git
cd BitcoinArmory
git checkout pi_makefile
cd ..

Otherwise, clone from the main repo

Code:
git clone git://github.com/etotheipi/BitcoinArmory.git

Network

The network link can be disconnected now and doesn't need to be connected again.


Build QTReactor

Code:
cd qtreactor

sudo python setup.py build
sudo python setup.py install

cd ..


Build Armory

You might need to add a swap file for the 256MB version

http://www.roberteklund.org/projects/raspberry-pi#TOC-Installation1
https://bitcointalksearch.org/topic/m.1906666

Building armory takes around 1 hour 30.

Code:
cd BitcoinArmory/

make all

sudo make install

cd ..

Start GUI

Code:
startx

Starting Armory

Double click on LXTerminal to open a terminal.

Code:
cd BitcoinArmory

python ArmoryQt.py

It takes a while to start.  You can see CPU load in the bottom RHS, and the graph will go to max.  This happens when doing stuff related to encryption.


USB Drive access

The usb drive is located at /media/ when using the terminal in the GUI.

If you connect a usb stick directly into the PI, then it can cause a reboot due to current surge.

If possible you should use a hub.  

Failing that, you may need to shutdown the pi before inserting the usb and then restart.


SAFE SHUTDOWN

Open a terminal and enter

Code:
sudo shutdown -h -t 10 now
legendary
Activity: 1428
Merit: 1093
Core Armory Developer
March 31, 2013, 03:11:35 PM
#16
I just got a request to cross-link some discussion in the newbie's thread:

https://bitcointalksearch.org/topic/m.1674928

Looks like good information!

Great thread, I'm wondering the same thing.

Also Can you point me to some document to show how making transaction of offline wallet technically works? I understand what it does, but i'm curious of how it does it. Especially the whole "sign" the transaction then relay it with the online watch-only wallet.

is it possible to run Amory offline on an Android device soon?


There's an Offline wallet tutorial which will soon be replaced with a illustrated tutorial (with screenshots).  You can think of it as:  your "watching-only wallet" is identical to a regular, the only difference is there's an "extra step" that has to be completed when you hit the "Send" button (it doesn't send right away, it will save a file to your USB key which you get signed by the offline computer and then bring it back and hit "Broadcast").

I'd love to support Android devices, but I don't have a secure file transfer mechanism for them.  The only way to really transfer data to it is through plugging it in via USB, but then it's filesystem becomes accessible to the online computer, which kind of defeats the purpose.  However, I will implement multi-sig, allowing you to link computer and phone -- then the computer simply emails/texts/QR-codes a half-signed transaction to the phone, the phone signs and broadcasts (after verification).  

Seriously, I would love to support Android offline signing devices, I just don't have a good way to it.  This is what this thread was about and one reason I really liked the audio-transfer solution ... it's just that it's too slow, and likely to destroy some hardware Sad
sr. member
Activity: 462
Merit: 250
March 31, 2013, 02:56:54 PM
#15
I just got a request to cross-link some discussion in the newbie's thread:

https://bitcointalksearch.org/topic/m.1674928

Looks like good information!

Great thread, I'm wondering the same thing.

Also Can you point me to some document to show how making transaction of offline wallet technically works? I understand what it does, but i'm curious of how it does it. Especially the whole "sign" the transaction then relay it with the online watch-only wallet.

is it possible to run Amory offline on an Android device soon?
legendary
Activity: 1428
Merit: 1093
Core Armory Developer
March 25, 2013, 02:18:30 PM
#14
I just got a request to cross-link some discussion in the newbie's thread:

https://bitcointalksearch.org/topic/m.1674928

Looks like good information!
legendary
Activity: 1428
Merit: 1093
Core Armory Developer
March 25, 2013, 12:02:27 PM
#13
i bought a raspberry rev b to excusively use with armory. i ran into the exact same problem using raspian described here:
https://bitcointalksearch.org/topic/building-armory-on-raspberry-pi-156003

is there any confirmed method to get armory running on a raspberry? i am willing install any OS as long as armory works.

FYI:  some kind soul has donated a RPi to me!  It should be arriving soon, and I will be figuring out how to compile on it.  I hope to make offline-bundle releases for it, eventually. 

But this thread isn't useless ... I'll be needing to figure out how to compile it myself!  So... carry on... Smiley
Pages:
Jump to: