Manual installing Pi Box (kernel version up to 4.4.x) - STwilight/Pi-Box GitHub Wiki
Installation of Pi-Box contains several steps:
- Kernel version downgrade
- Updating packages
- Installing python
- Installing pip
- Installing wiringpi
- Installing git
- Fetching sources
Kernel version downgrade
The wiringPi-Python library, that's downloading through PIP, can't access GPIO in kernel versions that above 4.4.x, so kernel version must be downgraded.
Kernel version can be checked by using uname -r
command.
For doing that we must install rpi-update tool: sudo apt-get install rpi-update -y
.
After that we can downgrade our kernel version to 4.4.x (the latest version is 4.4.50+) by using command sudo rpi-update 52241088c1da59a359110d39c1875cda56496764
.
When tool will finish its work, the system must be restarted: sudo reboot -h
.
All versions can be found at the rpi-firmware repository.
Updating packages
For fetching info about last packages versions use command sudo apt-get update
.
After that you'll need to run sudo apt-get upgrade -y
command for updating already installed packages.
Installing python
For scripts executing we need Python interpreter and developer's libraries.
They can be installed by running command sudo apt-get install python python-dev -y
.
Installing pip
For ability of Python modules installation we need Python packet manager (PIP).
It can be added to our system with help of next command: sudo apt-get install python-pip -y
.
Installing wiringpi
After all we can install wiringPi library using sudo pip install wiringpi2
command.
Installing git
For fetching project sources we need git to be installed.
It can be done by using command sudo apt-get install git -y
.
Fetching sources
Now project files can be downloaded via git using command sudo git clone https://github.com/STwilight/Pi-Box /home/pi-box
.