Add RPi instructions
This commit is contained in:
parent
0432283ad7
commit
65809b6e47
41
README.md
41
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).
|
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
|
### Development tips
|
||||||
|
|
||||||
- you can switch the DB backend with a Nim compiler define:
|
- you can switch the DB backend with a Nim compiler define:
|
||||||
|
|
Loading…
Reference in New Issue