# Driver install issue

**URL:** <https://community.blokas.io/t/driver-install-issue/29>\
**Category:** Support\
**Created:** [October 10, 2016, 10:07pm UTC](https://community.blokas.io/t/driver-install-issue/29 "2016-10-10T22:07:12Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![danielpowell](https://community.blokas.io/user_avatar/community.blokas.io/danielpowell/32/30_2.png) [@danielpowell](https://community.blokas.io/u/danielpowell)\
**Post date:** [October 10, 2016, 10:07pm UTC](https://community.blokas.io/t/driver-install-issue/29/1 "2016-10-10T22:07:12Z")

</div>

I’ve found a power supply (a cheap Maplins own brand multi adapter 🙂 - works a treat). Really easy to put together and seems pretty sturdy.

Pd was already installed so tried to install the drivers using

```
wget http://blokas.io/pisound/install-pisound.sh
chmod +x install-pisound.sh
./install-pisound.sh

```

But I get a TLS issue:

```
pi@raspberrypi:~ $ ./install-pisound.sh
Cloning into 'pisound'...
remote: Counting objects: 24, done.
remote: Total 24 (delta 0), reused 0 (delta 0), pack-reused 24
Unpacking objects: 100% (24/24), done.
Checking connectivity... done.
--2016-10-10 21:00:39-- https://raw.githubusercontent.com/notro/rpi-source/master/rpi-source
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 62.252.172.241
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|62.252.172.241|:443... connected.
GnuTLS: A TLS fatal alert has been received.
GnuTLS: received alert [0]: Close notify
Unable to establish SSL connection.
make -C pisound-module 
make[1]: Entering directory '/home/pi/pisound/pisound-module'
make -C /lib/modules/`uname -r`/build M=/home/pi/pisound/pisound-module modules
make[2]: Entering directory '/home/pi/pisound/pisound-module'
make[2]: *** /lib/modules/4.4.13-v7+/build: No such file or directory. Stop.
make[2]: Leaving directory '/home/pi/pisound/pisound-module'
Makefile:39: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/pi/pisound/pisound-module'
Makefile:28: recipe for target 'pisound-module' failed
make: *** [pisound-module] Error 2
make -C pisound-module install
make[1]: Entering directory '/home/pi/pisound/pisound-module'
make -C /lib/modules/`uname -r`/build M=/home/pi/pisound/pisound-module modules_install
make[2]: Entering directory '/home/pi/pisound/pisound-module'
make[2]: *** /lib/modules/4.4.13-v7+/build: No such file or directory. Stop.
make[2]: Leaving directory '/home/pi/pisound/pisound-module'
Makefile:42: recipe for target 'install' failed
make[1]: *** [install] Error 2
make[1]: Leaving directory '/home/pi/pisound/pisound-module'
Makefile:28: recipe for target 'pisound-module' failed
make: *** [pisound-module] Error 2
sudo: ./enable-pisound.sh: command not found
pi@raspberrypi:~ $ 

```

So some searching on the RPF forums, and I try using `curl -L` instead of `wget`

Still an error, but slightly different:

```
fatal: destination path 'pisound' already exists and is not an empty directory.
--2016-10-10 22:40:02-- https://raw.githubusercontent.com/notro/rpi-source/master/rpi-source
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 62.252.172.241
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|62.252.172.241|:443... connected.
GnuTLS: A TLS fatal alert has been received.
GnuTLS: received alert [0]: Close notify
Unable to establish SSL connection.
make -C pisound-module 
make[1]: Entering directory '/home/pi/pisound/pisound-module'
make -C /lib/modules/`uname -r`/build M=/home/pi/pisound/pisound-module modules
make[2]: Entering directory '/home/pi/pisound/pisound-module'
make[2]: *** /lib/modules/4.4.21-v7+/build: No such file or directory. Stop.
make[2]: Leaving directory '/home/pi/pisound/pisound-module'
Makefile:39: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/pi/pisound/pisound-module'
Makefile:28: recipe for target 'pisound-module' failed
make: *** [pisound-module] Error 2
make -C pisound-module install
make[1]: Entering directory '/home/pi/pisound/pisound-module'
make -C /lib/modules/`uname -r`/build M=/home/pi/pisound/pisound-module modules_install
make[2]: Entering directory '/home/pi/pisound/pisound-module'
make[2]: *** /lib/modules/4.4.21-v7+/build: No such file or directory. Stop.
make[2]: Leaving directory '/home/pi/pisound/pisound-module'
Makefile:42: recipe for target 'install' failed
make[1]: *** [install] Error 2
make[1]: Leaving directory '/home/pi/pisound/pisound-module'
Makefile:28: recipe for target 'pisound-module' failed
make: *** [pisound-module] Error 2
sudo: ./enable-pisound.sh: command not found

```

And that’s where I’m at!

Any advice gratefully received 🙂

Cheers

Dan

---

<div class="post-metadata">

**Author:** ![Giedrius](https://community.blokas.io/letter_avatar_proxy/v4/letter/g/6a8cbe/32.png) [@Giedrius](https://community.blokas.io/u/Giedrius)\
**Post date:** [October 10, 2016, 10:34pm UTC](https://community.blokas.io/t/driver-install-issue/29/2 "2016-10-10T22:34:10Z")

</div>

Hey,

Thank you for your report, I will try and see how I can improve the install-pisound.sh script.

Please try executing each step as described here: [http://wiki.blokas.io/index.php/Step-by-Step\_pisound\_Installation\_Instructions](http://wiki.blokas.io/index.php/Step-by-Step_pisound_Installation_Instructions)

Let us know how that works out 🙂

---

<div class="post-metadata">

**Author:** ![Giedrius](https://community.blokas.io/letter_avatar_proxy/v4/letter/g/6a8cbe/32.png) [@Giedrius](https://community.blokas.io/u/Giedrius)\
**Post date:** [October 10, 2016, 11:13pm UTC](https://community.blokas.io/t/driver-install-issue/29/3 "2016-10-10T23:13:13Z")

</div>

Btw, it looks like you’re hitting the same network issue, downloading a file from GitHub.

You may try using some options for wget / curl to ignore the certificate errors (however, I just tried it myself, I didn’t get any certificate issues for GitHub…)

–2016-10-10 22:40:02-- [https://raw.githubusercontent.com/notro/rpi-source/master/rpi-source](https://raw.githubusercontent.com/notro/rpi-source/master/rpi-source)  
Resolving [raw.githubusercontent.com](http://raw.githubusercontent.com) ([raw.githubusercontent.com](http://raw.githubusercontent.com))… 62.252.172.241  
Connecting to [raw.githubusercontent.com](http://raw.githubusercontent.com) ([raw.githubusercontent.com](http://raw.githubusercontent.com))|62.252.172.241|:443… connected.  
GnuTLS: A TLS fatal alert has been received.  
GnuTLS: received alert [0]: Close notify  
Unable to establish SSL connection.

---

<div class="post-metadata">

**Author:** ![danielpowell](https://community.blokas.io/user_avatar/community.blokas.io/danielpowell/32/30_2.png) [@danielpowell](https://community.blokas.io/u/danielpowell)\
**Post date:** [October 11, 2016, 8:37am UTC](https://community.blokas.io/t/driver-install-issue/29/4 "2016-10-11T08:37:07Z")

</div>

Hiya - thanks for getting back to me 🙂

So:

```
pi@raspberrypi:~ $ git clone https://github.com/BlokasLabs/pisound.git
fatal: destination path 'pisound' already exists and is not an empty directory.
pi@raspberrypi:~ $ sudo wget https://raw.githubusercontent.com/notro/rpi-source/master/rpi-source -o /usr/bin/rpi-source
pi@raspberrypi:~ $ rpi-source -q --tag-update
/usr/bin/rpi-source: line 1: --2016-10-11: command not found
/usr/bin/rpi-source: line 2: syntax error near unexpected token `('
/usr/bin/rpi-source: line 2: `Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 62.252.172.241'

```

I had a folder in /home/pi called pisound so I’m guessing I’d cloned the repo? I deleted that folder and followed the instructions at [http://wiki.blokas.io/index.php/Step-by-Step\_pisound\_Installation\_Instructions](http://wiki.blokas.io/index.php/Step-by-Step_pisound_Installation_Instructions)

Still having problems, here’s the output:

```
pi@raspberrypi:~ $ sudo wget https://raw.githubusercontent.com/notro/rpi-source/master/rpi-source -O /usr/bin/rpi-source
--2016-10-11 09:32:08-- https://raw.githubusercontent.com/notro/rpi-source/master/rpi-source
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 62.252.172.241
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|62.252.172.241|:443... connected.
GnuTLS: A TLS fatal alert has been received.
GnuTLS: received alert [0]: Close notify
Unable to establish SSL connection.
pi@raspberrypi:~ $ sudo curl -L https://raw.githubusercontent.com/notro/rpi-source/master/rpi-source -O /usr/bin/rpi-source
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
100 12670 100 12670 0 0 31855 0 --:--:-- --:--:-- --:--:-- 31914
curl: (3) <url> malformed
pi@raspberrypi:~ $ sudo chmod +x /usr/bin/rpi-source
pi@raspberrypi:~ $ rpi-source -q --tag-update
pi@raspberrypi:~ $ rpi-source
pi@raspberrypi:~ $ cd pisound
pi@raspberrypi:~/pisound $ make
make -C pisound-module 
make[1]: Entering directory '/home/pi/pisound/pisound-module'
make -C /lib/modules/`uname -r`/build M=/home/pi/pisound/pisound-module modules
make[2]: Entering directory '/home/pi/pisound/pisound-module'
make[2]: *** /lib/modules/4.4.21-v7+/build: No such file or directory. Stop.
make[2]: Leaving directory '/home/pi/pisound/pisound-module'
Makefile:39: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/pi/pisound/pisound-module'
Makefile:28: recipe for target 'pisound-module' failed
make: *** [pisound-module] Error 2
pi@raspberrypi:~/pisound $ sudo make install
make -C pisound-module install
make[1]: Entering directory '/home/pi/pisound/pisound-module'
make -C /lib/modules/`uname -r`/build M=/home/pi/pisound/pisound-module modules_install
make[2]: Entering directory '/home/pi/pisound/pisound-module'
make[2]: *** /lib/modules/4.4.21-v7+/build: No such file or directory. Stop.
make[2]: Leaving directory '/home/pi/pisound/pisound-module'
Makefile:42: recipe for target 'install' failed
make[1]: *** [install] Error 2
make[1]: Leaving directory '/home/pi/pisound/pisound-module'
Makefile:28: recipe for target 'pisound-module' failed
make: *** [pisound-module] Error 2
pi@raspberrypi:~/pisound $ sudo ./enable-pisound.sh
sudo: ./enable-pisound.sh: command not found

```

Replaced wget with curl -L

Cheers

Dan

---

<div class="post-metadata">

**Author:** ![Giedrius](https://community.blokas.io/letter_avatar_proxy/v4/letter/g/6a8cbe/32.png) [@Giedrius](https://community.blokas.io/u/Giedrius)\
**Post date:** [October 11, 2016, 8:57am UTC](https://community.blokas.io/t/driver-install-issue/29/5 "2016-10-11T08:57:25Z")

</div>

> [@danielpowell](#):
>
> curl: (3) \<url\> malformed  
> pi@raspberrypi:~ $ sudo chmod +x /usr/bin/rpi-source  
> pi@raspberrypi:~ $ rpi-source -q --tag-update  
> pi@raspberrypi:~ $ rpi-source

I don’t like the ‘url malformed’ error 🙂

Based on the errors below, looks like rpi-source didn’t do much… It is the one that’s supposed to get the /lib/modules/version/build folder created.

Did ~/linux folder appear? (also should be done by rpi-source)

Also you can try and look through the rpi-source wiki here: [Home · notro/rpi-source Wiki · GitHub](https://github.com/notro/rpi-source/wiki)

The result of running rpi-source is to have ~/linux and /lib/modules/4.4.21-v7+/build folders, once those are in place, yo ucan continue with next steps. These folders are required to successfully build the pisound’s linux kernel module on your system.

---

<div class="post-metadata">

**Author:** ![Mattia\_Bonafini](https://community.blokas.io/user_avatar/community.blokas.io/mattia_bonafini/32/19_2.png) [@Mattia\_Bonafini](https://community.blokas.io/u/Mattia_Bonafini)\
**Post date:** [October 11, 2016, 10:07am UTC](https://community.blokas.io/t/driver-install-issue/29/6 "2016-10-11T10:07:47Z")

</div>

Hi there … I am having other problems …  
this is what I get from the terminal … it seems that the last command is not reaching the enable-pisound.sh

pi@raspberrypi:~ $ sudo wget [https://raw.githubusercontent.com/notro/rpi-source/master/rpi-source](https://raw.githubusercontent.com/notro/rpi-source/master/rpi-source) -O /usr/bin/rpi-source  
–2016-10-11 11:51:57-- [https://raw.githubusercontent.com/notro/rpi-source/master/rpi-source](https://raw.githubusercontent.com/notro/rpi-source/master/rpi-source)  
Resolving [raw.githubusercontent.com](http://raw.githubusercontent.com) ([raw.githubusercontent.com](http://raw.githubusercontent.com))… 151.101.12.133  
Connecting to [raw.githubusercontent.com](http://raw.githubusercontent.com) ([raw.githubusercontent.com](http://raw.githubusercontent.com))|151.101.12.133|:443… connected.  
HTTP request sent, awaiting response… 200 OK  
Length: 12670 (12K) [text/plain]  
Saving to: ‘/usr/bin/rpi-source’

/usr/bin/rpi-source 100%[=====================\>] 12.37K --.-KB/s in 0.001s

2016-10-11 11:51:57 (10.1 MB/s) - ‘/usr/bin/rpi-source’ saved [12670/12670]

pi@raspberrypi:~ $ sudo chmod +x /usr/bin/rpi-source  
pi@raspberrypi:~ $ rpi-source -q --tag-update  
pi@raspberrypi:~ $ rpi-source

\*\*\* gcc version check: OK

\*\*\* Using: /usr/share/doc/raspberrypi-bootloader/changelog.Debian.gz

\*\*\* Latest firmware revision: ad8608c08b122b2c228dba0ff5070d6e9519faf5

\*\*\* Linux source commit: 2d31cd571e6f2ac61a3eda273d973058e1bb1f58

\*\*\* Kernel source already installed: /home/pi/linux-2d31cd571e6f2ac61a3eda273d973058e1bb1f58

pi@raspberrypi:~ $ cd pisound  
pi@raspberrypi:~/pisound $ make  
make -C pisound-module  
make[1]: Entering directory ‘/home/pi/pisound/pisound-module’  
make -C /lib/modules/`uname -r`/build M=/home/pi/pisound/pisound-module modules  
make[2]: Entering directory ‘/home/pi/linux-2d31cd571e6f2ac61a3eda273d973058e1bb1f58’  
Building modules, stage 2.  
MODPOST 1 modules  
make[2]: Leaving directory ‘/home/pi/linux-2d31cd571e6f2ac61a3eda273d973058e1bb1f58’  
make[1]: Leaving directory ‘/home/pi/pisound/pisound-module’  
make -C pisound-btn  
make[1]: Entering directory ‘/home/pi/pisound/pisound-btn’  
make[1]: Nothing to be done for ‘all’.  
make[1]: Leaving directory ‘/home/pi/pisound/pisound-btn’  
pi@raspberrypi:~/pisound $ sudo make install  
make -C pisound-module install  
make[1]: Entering directory ‘/home/pi/pisound/pisound-module’  
make -C /lib/modules/`uname -r`/build M=/home/pi/pisound/pisound-module modules\_install  
make[2]: Entering directory ‘/home/pi/linux-2d31cd571e6f2ac61a3eda273d973058e1bb1f58’  
INSTALL /home/pi/pisound/pisound-module/pisound.ko  
DEPMOD 4.4.21-v7+  
make[2]: Leaving directory ‘/home/pi/linux-2d31cd571e6f2ac61a3eda273d973058e1bb1f58’  
‘pisound.dtbo’ -\> ‘/boot/overlays/pisound.dtbo’  
make[1]: Leaving directory ‘/home/pi/pisound/pisound-module’  
make -C pisound-btn install  
make[1]: Entering directory ‘/home/pi/pisound/pisound-btn’  
Backing up scripts in /usr/local/etc/pisound to /usr/local/etc/pisound/backups/2016-10-11.11:53:06  
make[1]: Leaving directory ‘/home/pi/pisound/pisound-btn’  
pi@raspberrypi:~/pisound $ sudo enable-pisound.sh  
sudo: enable-pisound.sh: command not found  
pi@raspberrypi:~/pisound $ sudo ./enable-pisound.sh  
sudo: ./enable-pisound.sh: command not found  
pi@raspberrypi:~/pisound $

do you have any idea  
Ciao Mat

---

<div class="post-metadata">

**Author:** ![Giedrius](https://community.blokas.io/letter_avatar_proxy/v4/letter/g/6a8cbe/32.png) [@Giedrius](https://community.blokas.io/u/Giedrius)\
**Post date:** [October 11, 2016, 10:13am UTC](https://community.blokas.io/t/driver-install-issue/29/7 "2016-10-11T10:13:11Z")

</div>

This should do the trick:

chmod +x enable-pisound.sh  
sudo ./enable-pisound.sh

---

<div class="post-metadata">

**Author:** ![Mattia\_Bonafini](https://community.blokas.io/user_avatar/community.blokas.io/mattia_bonafini/32/19_2.png) [@Mattia\_Bonafini](https://community.blokas.io/u/Mattia_Bonafini)\
**Post date:** [October 12, 2016, 8:22am UTC](https://community.blokas.io/t/driver-install-issue/29/8 "2016-10-12T08:22:06Z")

</div>

Just to let everybody know:

Last two commands that Giedrius postet DID work for me …  
no my little beauty is working correctly …  
test starting !!  
Ciao Mattia

---

<div class="post-metadata">

**Author:** ![danielpowell](https://community.blokas.io/user_avatar/community.blokas.io/danielpowell/32/30_2.png) [@danielpowell](https://community.blokas.io/u/danielpowell)\
**Post date:** [October 15, 2016, 1:24pm UTC](https://community.blokas.io/t/driver-install-issue/29/9 "2016-10-15T13:24:55Z")

</div>

[SOLVED]

OK so there are two things that seemed to solve this one.

First thing is I used a different network to my home wifi, which gave this error:

```
ERROR:
bc is NOT installed. Needed by 'make modules_prepare'. On Raspbian, run 'sudo apt-get install bc' to install it.

```

So I installed bc

Then:

`pi@raspberrypi:~ $ chmod +x install-pisound.sh`

Then:

```
pi@raspberrypi:~ $ cd pisound
pi@raspberrypi:~/pisound $ chmod +x enable-pisound.sh
pi@raspberrypi:~/pisound $ sudo ./enable-pisound.sh
pi@raspberrypi:~/pisound $

```

Which worked for me 🙂

---

<div class="post-metadata">

**Author:** ![Giedrius](https://community.blokas.io/letter_avatar_proxy/v4/letter/g/6a8cbe/32.png) [@Giedrius](https://community.blokas.io/u/Giedrius)\
**Post date:** [October 22, 2016, 1:06pm UTC](https://community.blokas.io/t/driver-install-issue/29/10 "2016-10-22T13:06:41Z")

</div>

Split this topic on October 22, 2016, 1:06pm UTC

4 posts were split to a new topic: [Troubles installing pisound / verifying power supply](https://community.blokas.io/t/troubles-installing-pisound-verifying-power-supply/35)
