From 65809b6e473865ee7daa41cb181ae8bfbe38800a Mon Sep 17 00:00:00 2001 From: Jacek Sieka Date: Thu, 27 Jun 2019 15:29:23 +0200 Subject: [PATCH] Add RPi instructions --- README.md | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/README.md b/README.md index 6d92d59b4..d12b7b287 100644 --- a/README.md +++ b/README.md @@ -120,6 +120,47 @@ This will place the right DLLs for your architecture in the "build/" directory. You can now follow those instructions in the previous section by replacing `make` with `mingw32-make` (regardless of your 32-bit or 64-bit architecture). +### Raspberry PI + +*Experimental* The code can be compiled on a Raspberry PI: + +* Raspberry PI 3b+ +* 64gb SD Card (less might work too, but the default recommended 4-8GB will probably be too small) +* [Rasbian Buster Lite](https://www.raspberrypi.org/downloads/raspbian/) - Lite version is enough to get going and will save some disk space! + +Assuming you're working with a freshly written image: + +```bash + +# Start by increasing swap size to 2gb: +sudo vi /etc/dphys-swapfile +# Set CONF_SWAPSIZE=2048 +# :wq +sudo reboot + +# Install prerequisites +sudo apt-get install git libgflags-dev libsnappy-dev + +mkdir status +cd status + +# Install rocksdb +git clone https://github.com/facebook/rocksdb.git +cd rocksdb +make shared_lib +sudo make install +cd.. + +# Raspberry pi doesn't include /usr/local/lib in library search path - need to add +export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH + +git clone https://github.com/status-im/nimbus.git + +cd nimbus + +# Follow instructions above! +``` + ### Development tips - you can switch the DB backend with a Nim compiler define: