Installation¶
The source code is hosted on GitHub. mipea uses autotools (autoconf,
automake, libtool) to build and install the library. The git repository
does not include the configure
script and Makefile.in
which
means that you have two options for installing the library.
Download the configure script¶
On GitHub, when you look under the tab releases you will find some release with a name like for example “v2.0.0”. Then you can download the corresponding file named “mipea_x.x.x” which includes the configure script and Makefile.in. After downloading just run these commands from inside the downloaded directory:
$ ./configure
$ make
$ sudo make install
Building the configure script¶
When you have the GNU autotools installed you can simply clone this repository
and build the configure
script and Makefile.in
yourself:
$ git clone https://github.com/jasLogic/mipea.git
$ cd mipea
$ autoreconf --install
$ ./configure
$ make
$ sudo make install
Troubleshooting¶
Configure script can not find /proc/cpuinfo¶
If the configure
script prints this warning:
configure: WARNING: cannot find file /proc/cpuinfo
than the script was unable to find the cpuinfo
file which is needed
to determine the SoC (BCM2835 or BCM2836/7) and the revision. Pis with a
revision number where the last four digits are less than 0004
use I2C bus 0 instead of 1, like the new ones.
This error can be fixed by editing the config.h
file ensuring that it
contains these lines (depending on your Pi):
#define BCM2835 1
#define BCM2836_7 1
#define USE_I2C_BUS_0 1
Wifi stops working when using the library¶
In versions 2.1.0 and below the GPIO map and unmap functions cleared all pullup / -downs on all pins. This could lead to the wifi not working until a reboot. This issue should be fixed with version 2.1.1.