hide
You are viewing an archived web page, collected at the request of Ethereum Foundation using Archive-It. This page was captured on 02:29:55 Jun 06, 2021
, and is part of the Community collection.
The information on this web page may be out of date. See All versions of this archived page.
Loading media informationEnable QAView Missing URLs
I tried compiling cpp-ethereum on the current Raspian jessie on the Raspberry Pi but I got a compiler error (asking me to submit a bug report to the compiler writers...).
Does anyone have a script or advice for successful compilation?
Installed libboost as 1.49 in the hope that might still work.
Could find libleveldb-dev and wondered in my ignorance that libdb++-dev would cover for that.
Then I got stuck getting QT5.2 and didn't really want to pursue compiling that from source. If there's a simple way to get qt, then I might try from there later.
I have been successfully building cpp-ethereum on Raspi for a while now. I can confirm up to poc7.8 I am currently writing more formal steps to post but simple steps are:
2. You will need a USB drive to set up a temporary swap partition (needed for both Cryptopp and ethereum builds) as, surprise 512MB ram is not sufficient for the install. Swap, however, is not needed to run eth or alethzero.
4. Make sure you run cmake and make around dinner time, this way when you wake up in the morning the cpp-ethereum build MIGHT be complete. If not, before beginning, make sure the Pi is being powered from your laptop so you can, utilizing your laptops battery, complete your morning commute with a Pi hanging from your laptop until you get to your office and plug in again.(remember to ignore stares from co-workers). This is no joke, the build has taken up to 12 hours to complete (poc7).
@awrell, at a recent ethereum workshop I was told that we'll need at least 4Gb of RAM to mine, which would rule out your normal raspberry pi. Unless someone can suggest otherwise?
I thought that swap on SD cards isn't a good idea?
Traditionally this has been the case because of the amount of R/W over time... however I am in an industry where we utilize mSD to record HD video, daily, 24/7 and I rarely see a card fail(although it has happened).
Poor, Lol... the intention for the Pi is less about mining, and more about running a full node to enable projects revolving around the IoT and the GPIO (Input/Output) that the Pi has available!
I have been running several Pi for days and can not sync. Has anyone been able to run a light node on Pi? What are the disadvantages of not being a full node?
currently, there is no light client. The current stress testing brings the RPi to its limit. You could download the chain on you laptop and copy the .ethereum folder. The RPi is able to keep up with the network, but it takes very long to sync...
I followed the instructions here: https://github.com/ethereum/wiki/wiki/Raspberry-Pi-instructions and successfully installed the image on Raspberry Pi 2. When I started geth, it successfully downloaded the blockchain. When I try to run it with --mine option in order to mine, it exits with the following error: "panic: ethash_full_new IO or memory error". I have set a 4GB swap file on the SD card, but it still gives the same error. Is there a way to successfully start mining on Raspberry Pi 2?
Comments
I've still got Wheezy but thought I'd battle as far as I could.
Installed g++-4.8 using detail at http://somewideopenspace.wordpress.com/2014/02/28/gcc-4-8-on-raspberry-pi-wheezy/ and then removing the changes to sources and preferences.
Installed libboost as 1.49 in the hope that might still work.
Could find libleveldb-dev and wondered in my ignorance that libdb++-dev would cover for that.
Then I got stuck getting QT5.2 and didn't really want to pursue compiling that from source. If there's a simple way to get qt, then I might try from there later.
Brain over for now.
1. I use ua-netinst to install Raspbian jessie - https://github.com/debian-pi/raspbian-ua-netinst
2. You will need a USB drive to set up a temporary swap partition (needed for both Cryptopp and ethereum builds) as, surprise 512MB ram is not sufficient for the install. Swap, however, is not needed to run eth or alethzero.
3. Follow install instructions for cpp-ethereum - Ubuntu Trusty14.04 https://github.com/ethereum/cpp-ethereum/wiki/Building-on-Ubuntu#user-content-trusty-1404
4. Make sure you run cmake and make around dinner time, this way when you wake up in the morning the cpp-ethereum build MIGHT be complete. If not, before beginning, make sure the Pi is being powered from your laptop so you can, utilizing your laptops battery, complete your morning commute with a Pi hanging from your laptop until you get to your office and plug in again.(remember to ignore stares from co-workers). This is no joke, the build has taken up to 12 hours to complete (poc7).
Cheers,
John
You can mine by with at least 1.5 GB of swap.