Skip to content

Commit

Permalink
Update WiringPi to latest upstream master. Improve installation docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaelnousiainen committed Feb 17, 2021
1 parent aebbdfc commit 6e8000a
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 11 deletions.
17 changes: 13 additions & 4 deletions ertgateway/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ can be configured to cycle through all available data automatically.

The minimum hardware requirements for running `ertgateway` are:

* A Raspberry Pi model A+, B+, Zero, 2B or 3B (any model with 40-pin GPIO connector)
* A Raspberry Pi model A+, B+, Zero, 2B, 3B, 3B+ or 4B (any model with the 40-pin GPIO connector)
** Other single-board computers can be used by implementing support for accessing GPIO pins and
registering GPIO interrupts.
* A Semtech SX127x / HopeRF RFM9xW LoRa transceiver connected to Raspberry Pi SPI port.
Expand All @@ -37,13 +37,17 @@ The minimum hardware requirements for running `ertgateway` are:

== Installation

The installation instructions assume use of Raspberry Pi OS (formerly Raspbian).
The current codebase has been tested on Raspberry Pi OS version 10.8, which is based on Debian 10.8 released
on February 6th, 2021.

=== Installing dependencies

Install library dependencies:

[source,bash]
----
apt-get install ntp gpsd libgps21 libgps-dev libyaml-0-2 libyaml-dev
apt-get install build-essential git cmake ntp gpsd libgps23 libgps-dev libyaml-0-2 libyaml-dev wiringpi
----

=== Configuring Raspberry Pi
Expand All @@ -58,6 +62,9 @@ dtparam=i2c_arm=on
# Enable SPI
dtparam=spi=on
# Enable SPI1 1CS (for the SPI1 bus)
dtoverlay=spi1-1cs
# Enable serial port UART for GPS (only if GPS is used)
enable_uart=1
Expand Down Expand Up @@ -123,7 +130,6 @@ fudge 127.127.28.0 time1 0.0 refid GPS
# GPS PPS reference
server 127.127.28.1 minpoll 4 maxpoll 4 prefer
fudge 127.127.28.1 refid PPS
{{< /sourcecode >}}
----

Enable GPSd and NTP daemon by executing:
Expand All @@ -146,6 +152,9 @@ Check out source code and build it:
[source,bash]
----
git clone https://github.com/mikaelnousiainen/ert.git
cd ert
git submodule update --init --recursive
cd ..
mkdir -p build/ertgateway
cd build/ertgateway
cmake ../../ert/ertgateway
Expand All @@ -154,7 +163,7 @@ make

=== Configuring `ertgateway`

Configure the application by editing `ertgateway.yaml` in the `build/ertnode` directory.
Configure the application by editing `ertgateway.yaml` in the `build/ertgateway` directory.

=== Running `ertgateway`

Expand Down
18 changes: 12 additions & 6 deletions ertnode/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ web UI can be used with `ertnode`, although it is mainly useful for testing and

The minimum hardware requirements for running `ertnode` are:

* A Raspberry Pi model A+, B+, Zero, 2B or 3B (any model with 40-pin GPIO connector)
* A Raspberry Pi model A+, B+, Zero, 2B, 3B, 3B+ or 4B (any model with the 40-pin GPIO connector)
** Other single-board computers can be used by implementing support for accessing GPIO pins and
registering GPIO interrupts.
* A GPS receiver supported by `gpsd` -- any receiver outputting NMEA format data through serial port should work.
Expand All @@ -54,18 +54,18 @@ The minimum hardware requirements for running `ertnode` are:

== Installation

These installation instructions are for Raspberry Pi and Raspbian, but most of it should work on any distribution.
The main difference between distributions is usually just how the dependencies and libraries are installed.
The installation instructions assume use of Raspberry Pi OS (formerly Raspbian).
The current codebase has been tested on Raspberry Pi OS version 10.8, which is based on Debian 10.8 released
on February 6th, 2021.

=== Dependency installation

Install library and tool dependencies:

[source,bash]
----
apt-get install cmake make gcc git
apt-get install ntp gpsd libgps21 libgps-dev libyaml-0-2 libyaml-dev
apt-get install libraspberrypi-bin webp imagemagick jq
apt-get install -y build-essential git cmake ntp gpsd libgps23 libgps-dev libyaml-0-2 libyaml-dev wiringpi
apt-get install -y libraspberrypi-bin webp imagemagick jq
----

=== Raspberry Pi configuration
Expand All @@ -80,6 +80,9 @@ dtparam=i2c_arm=on
# Enable SPI
dtparam=spi=on
# Enable SPI1 1CS (for the SPI1 bus)
dtoverlay=spi1-1cs
# Enable serial port UART for GPS
enable_uart=1
Expand Down Expand Up @@ -170,6 +173,9 @@ Check out source code and build it:
[source,bash]
----
git clone https://github.com/mikaelnousiainen/ert.git
cd ert
git submodule update --init --recursive
cd ..
mkdir -p build/ertnode
cd build/ertnode
cmake ../../ert/ertnode
Expand Down

0 comments on commit 6e8000a

Please sign in to comment.