You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+43-118
Original file line number
Diff line number
Diff line change
@@ -11,96 +11,45 @@ Basically we have two different popular CPU architectures. Let's only consider 6
11
11
12
12
## Prerequesites
13
13
14
-
- Raspberry Pi 4 with 8GB RAM (4GB version works only with Swap partition as extra RAM)
15
-
- Ubuntu 20.04 LTS <b>64-bit</b> (Very easy to install with <ahref="https://www.raspberrypi.org/downloads/">Pi Imager</a>. For running Ubuntu on SSD, check below)
14
+
- Raspberry Pi 4 4GB RAM or 8GB RAM (recommended)
15
+
- SSD (at least 20GB)
16
+
- microSD Card
17
+
- Eluteng SATA USB 3.0 Adapter (<a>list of other working adapters</a>)
16
18
17
19
## Getting started
18
20
19
-
## Note
20
-
<b>IOG is currently improving the performance of the Cardano Node on ARM devices. Join this <ahref="https://t.me/joinchat/FeKTCBu-pn5OUZUz4joF2w">group</a> to find out more.
21
-
I wouldn't recommend you building the node with the GHC 8.6.5 compiler for ARM any longer, like in this guide.</b>
21
+
### Upgrading the Bootloader
22
22
23
-
This guide is for the Cardano mainnet!
23
+
If your Pi already boots from SSD, you can skip this section.
24
24
25
-
#### 1. First of all let's update and upgrade our Ubuntu:
25
+
1. Download <ahref="https://www.raspberrypi.org/downloads/">Pi Imager</a> and install it
26
+
2. Insert the microSD Card in a Card Reader and plug it in your PC
27
+
3. Open Pi Imager and click "Choose OS" -> Misc utility images -> Raspberry Pi 4 EEPROM boot recovery
28
+
4. Click on "Choose SD Card" and select the microSD Card
29
+
5. Click "Write" and wait until finished
30
+
6. Now remove the microSD Card from the PC and plug it into the Pi
31
+
7. Connect a monitor to the Pi and turn it on
32
+
8. If you screen shows a <b>green</b> color, the bootloader had been successfully updated!
You can change "ViewMode" from "SimpleView to "LiveView" in mainnet-config.json to get a fancy node monitor.<br>
116
-
Now start the node:
117
64
65
+
### Starting a Cardano-Node:
118
66
```
67
+
cd pi-node
119
68
cardano-node run \
120
69
--topology mainnet-topology.json \
121
70
--database-path db \
@@ -127,51 +76,27 @@ cardano-node run \
127
76
128
77
That's it. Your node is now starting to sync!
129
78
130
-
<b>Note:</b> The syncing process for the mainnet blockchain can take really long. My node also crashed sometimes during the syncing process. Having a backup machine (x86_64) where you sync the node and just copy the db on the Raspberry Pi, makes it much easier and faster. As soon as the Pi is in sync it runs really smooth and just uses about 5% of the CPU.
131
-
132
-
## Update the node
133
-
134
-
If a new version is released, you can update your installed node with the following commands (replace `<version>` with the latest version number):
79
+
### Monitoring
80
+
If you want to monitor your node, you can do this with the command <code>startMonitor</code>.
This will create a Grafana instance at port 5000. A custom dashboard is also already preinstalled. You can find it in the left panel under Dashboard -> Manage. You should find a Dashboard called "Raspberry Pi Node".
145
83
146
-
## Setup a stakepool
84
+
Use <code>stopMonitor</code> to stop the monitoring process.
147
85
148
-
I might create a detailed guide soon, on how to register a stakepool. Anyway there are plenty tutorials out there: <br />
149
-
I can recommend <ahref="https://cardano-community.github.io/guild-operators/Scripts/cntools.html">CNTools</a> (make sure the CNTools version is compatible with the Cardano-Node version).<br />
150
-
Otherwise I would follow the official guide of <ahref="https://cardano-foundation-cardano.readthedocs-hosted.com/en/latest/getting-started/stake-pool-operators/index.html">cardano.org</a>
151
86
152
-
##Run Ubuntu on a SSD
87
+
### Updating the Cardano-Node
153
88
154
-
#### Running Ubuntu from SSD, while booting from SD card:
89
+
Currently there is no auto updater built in the Image. In order to update the version, this needs to be done manually.
90
+
To get the latest Cardano-Node version, join this <ahref="https://t.me/joinchat/FeKTCBu-pn5OUZUz4joF2w">Telgram group</a>.
91
+
If there is one, download it and replace the the new binaries with the current ones under <code>~/.local/bin</code> (cardano-node and cardano-cli)
155
92
156
-
1. Flash the Ubuntu image on your SSD and your SD card.
157
-
2. Now go to to the boot partition of the SD card and change in cmdline.txt the root path to: <code>root=/dev/sda2</code>
158
-
3. Insert the SD card into the Pi and the SSD into one of the USB 3.0 ports.
159
-
This should boot now from the SD card, but the OS will run on the SSD then.
160
93
161
-
#### Running and booting from SSD (no need for SD card):
94
+
##Setup a Stake Pool
162
95
163
-
You can check that out:
164
-
<ahref="https://www.raspberrypi.org/forums/viewtopic.php?t=278791">Directly boot from SSD</a>
165
-
166
-
#### Problems with running Ubuntu from USB 3.0:
167
-
168
-
<ahref="https://jamesachambers.com/raspberry-pi-4-usb-boot-config-guide-for-ssd-flash-drives/">Adding quirks to your chipset, if it's not working</a>
169
-
170
-
## Cross-building
171
-
172
-
If you want to build your own Cabal binary for aarch64 or a different version of Cabal, follow <ahref="/Crossbuilding.md">this</a> guide.
96
+
I can recommend <ahref="https://cardano-community.github.io/guild-operators/#/">CNTools</a> (make sure the CNTools version is compatible with the Cardano-Node version).<br />
97
+
Otherwise I would follow the official guide of <ahref="https://cardano-foundation-cardano.readthedocs-hosted.com/en/latest/getting-started/stake-pool-operators/index.html">cardano.org</a>
173
98
174
99
## Port forwarding
175
100
176
101
Go to your router settings. You can access them via your browser with the IP address of the router (e.g. 192.168.178.1 or if you have a FritzBox with fritz.box).
177
-
Then look for a option Port Forwarding. Choose the IP address of your relay node(s) and open its/their port(s). Allow TCP and UDP. Then save it and that's it.
102
+
Then look for an option "Port Forwarding". Choose the IP address of your node(s) and open its/their port(s). Allow TCP. Then save it and that's it.
Berry is a Cardano Stakepool on Raspberry Pi. Check out my <ahref="https://pipool.online">website</a> to see more about my stakepool. You can support me by just delegating to my pool. <br>
6
+
This repository is a guide to setup a stakepool on a Raspberry Pi by your own.
7
+
8
+
## Why this guide
9
+
10
+
Basically we have two different popular CPU architectures. Let's only consider 64-bit machines. Many of you know Intel and AMD. They primarily build their CPUs on a x86_64 architecture. Then there is ARM, which CPUs are built on the so called aarch64 architecture, and our Raspberry Pi has an aarch64 CPU. I don't want to dive any deeper in that, but the problem is, that the Cardano-Node setup is made for x86_64 machines and currently doesn't support aarch64 out of the box. The goal of this repository is to make it as easy as possible to run a Cardano-Node on Raspberry Pi.
11
+
12
+
## Prerequesites
13
+
14
+
- Raspberry Pi 4 with 8GB RAM (4GB version works only with Swap partition as extra RAM)
15
+
- Ubuntu 20.04 LTS <b>64-bit</b> (Very easy to install with <ahref="https://www.raspberrypi.org/downloads/">Pi Imager</a>. For running Ubuntu on SSD, check below)
16
+
17
+
## Getting started
18
+
19
+
## Note
20
+
<b>IOG is currently improving the performance of the Cardano Node on ARM devices. Join this <ahref="https://t.me/joinchat/FeKTCBu-pn5OUZUz4joF2w">group</a> to find out more.
21
+
I wouldn't recommend you building the node with the GHC 8.6.5 compiler for ARM any longer, like in this guide.</b>
22
+
23
+
This guide is for the Cardano mainnet!
24
+
25
+
#### 1. First of all let's update and upgrade our Ubuntu:
You can change "ViewMode" from "SimpleView to "LiveView" in mainnet-config.json to get a fancy node monitor.<br>
116
+
Now start the node:
117
+
118
+
```
119
+
cardano-node run \
120
+
--topology mainnet-topology.json \
121
+
--database-path db \
122
+
--socket-path db/socket \
123
+
--host-addr 0.0.0.0 \
124
+
--port 3000 \
125
+
--config mainnet-config.json
126
+
```
127
+
128
+
That's it. Your node is now starting to sync!
129
+
130
+
<b>Note:</b> The syncing process for the mainnet blockchain can take really long. My node also crashed sometimes during the syncing process. Having a backup machine (x86_64) where you sync the node and just copy the db on the Raspberry Pi, makes it much easier and faster. As soon as the Pi is in sync it runs really smooth and just uses about 5% of the CPU.
131
+
132
+
## Update the node
133
+
134
+
If a new version is released, you can update your installed node with the following commands (replace `<version>` with the latest version number):
I might create a detailed guide soon, on how to register a stakepool. Anyway there are plenty tutorials out there: <br />
149
+
I can recommend <ahref="https://cardano-community.github.io/guild-operators/Scripts/cntools.html">CNTools</a> (make sure the CNTools version is compatible with the Cardano-Node version).<br />
150
+
Otherwise I would follow the official guide of <ahref="https://cardano-foundation-cardano.readthedocs-hosted.com/en/latest/getting-started/stake-pool-operators/index.html">cardano.org</a>
151
+
152
+
## Run Ubuntu on a SSD
153
+
154
+
#### Running Ubuntu from SSD, while booting from SD card:
155
+
156
+
1. Flash the Ubuntu image on your SSD and your SD card.
157
+
2. Now go to to the boot partition of the SD card and change in cmdline.txt the root path to: <code>root=/dev/sda2</code>
158
+
3. Insert the SD card into the Pi and the SSD into one of the USB 3.0 ports.
159
+
This should boot now from the SD card, but the OS will run on the SSD then.
160
+
161
+
#### Running and booting from SSD (no need for SD card):
162
+
163
+
You can check that out:
164
+
<ahref="https://www.raspberrypi.org/forums/viewtopic.php?t=278791">Directly boot from SSD</a>
165
+
166
+
#### Problems with running Ubuntu from USB 3.0:
167
+
168
+
<ahref="https://jamesachambers.com/raspberry-pi-4-usb-boot-config-guide-for-ssd-flash-drives/">Adding quirks to your chipset, if it's not working</a>
169
+
170
+
## Cross-building
171
+
172
+
If you want to build your own Cabal binary for aarch64 or a different version of Cabal, follow <ahref="/Crossbuilding.md">this</a> guide.
173
+
174
+
## Port forwarding
175
+
176
+
Go to your router settings. You can access them via your browser with the IP address of the router (e.g. 192.168.178.1 or if you have a FritzBox with fritz.box).
177
+
Then look for a option Port Forwarding. Choose the IP address of your relay node(s) and open its/their port(s). Allow TCP and UDP. Then save it and that's it.
0 commit comments