# Issue with GL driver on Raspbian Stretch

**URL:** <https://hub.mender.io/t/issue-with-gl-driver-on-raspbian-stretch/906>\
**Category:** General Discussions\
**Created:** [August 5, 2019, 5:11pm UTC](https://hub.mender.io/t/issue-with-gl-driver-on-raspbian-stretch/906 "2019-08-05T17:11:49Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![valtteric](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/valtteric/32/315_2.png) [@valtteric](https://hub.mender.io/u/valtteric)\
**Post date:** [August 5, 2019, 5:11pm UTC](https://hub.mender.io/t/issue-with-gl-driver-on-raspbian-stretch/906/1 "2019-08-05T17:11:49Z")

</div>

Followed this tutorial with Raspbian Stretch 2019-04-08, got the device working and registering to Mender. However, when running raspi-config and trying to enable the GL driver (full KMS) it prompts no driver / kernel installed.

Running apt-get dist-upgrade for the device fixes this, but what is the correct way to enable this straight to the converted image? (I’m assuming doing the dist-upgrade for the golden device does not fix this, the GL drivers should be in place without it anyway.)

Thanks.

---

<div class="post-metadata">

**Author:** ![mirzak](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mirzak/32/2056_2.png) [@mirzak](https://hub.mender.io/u/mirzak)\
**Post date:** [August 5, 2019, 5:25pm UTC](https://hub.mender.io/t/issue-with-gl-driver-on-raspbian-stretch/906/2 "2019-08-05T17:25:38Z")

</div>

> I’m assuming doing the dist-upgrade for the golden device does not fix this

This would seem the correct approach to me. That is,

- boot the golden image
- run the commands you need to install the necessary parts
- shutdown the system
- dump the SD card
- run in trough mender-convert

If the necessary parts are not present in a “stock” image, and you would expect them to be, I would take it up with the Raspberrypi community.

---

<div class="post-metadata">

**Author:** ![valtteric](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/valtteric/32/315_2.png) [@valtteric](https://hub.mender.io/u/valtteric)\
**Post date:** [August 5, 2019, 8:53pm UTC](https://hub.mender.io/t/issue-with-gl-driver-on-raspbian-stretch/906/3 "2019-08-05T20:53:28Z")

</div>

The vanilla raspbian does have a working GL setup with no need for the dist-upgrade, that’s why I was assuming the converted image is using some other kernel or something.

Bul I’ll try it out.

---

<div class="post-metadata">

**Author:** ![mirzak](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mirzak/32/2056_2.png) [@mirzak](https://hub.mender.io/u/mirzak)\
**Post date:** [August 6, 2019, 8:17am UTC](https://hub.mender.io/t/issue-with-gl-driver-on-raspbian-stretch/906/4 "2019-08-06T08:17:53Z")

</div>

> [@Raspberry Pi 3 Model B/B+ Raspbian](https://hub.mender.io/t/raspberry-pi-3-model-b-b-raspbian/140/40):
>
> The vanilla raspbian does have a working GL setup with no need for the dist-upgrade, that’s why I was assuming the converted image is using some other kernel or something.

We try to have very little impact on image content when we convert them and most of it should be intact.

What we do change is mostly around the boot process, as we have to add U-boot which is not there in a stock image but required to be able to integrate Mender to perform robust updates using the A/B approach. But kernel and all user-space components should be as-is.

---

<div class="post-metadata">

**Author:** ![valtteric](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/valtteric/32/315_2.png) [@valtteric](https://hub.mender.io/u/valtteric)\
**Post date:** [August 12, 2019, 12:02pm UTC](https://hub.mender.io/t/issue-with-gl-driver-on-raspbian-stretch/906/5 "2019-08-12T12:02:09Z")

</div>

I created an actual golden image now, verified it’s working properly and can be flashed to another devices with no issues with the GL.

Did a mender-convert for it, I’m now facing 2 issues:

1. The GL is not working. This is unfortunately a showstopper for us. The raspi-config is not very informative, attached screenshots. In any case, it’s quite certain something’s happenin during the mender convert. You can most likely reproduce this by just trying to enable the GL driver with a converted vanilla raspbian.

2. The device is not shown on Mender dashboard even though it’s connected to the internet. We do have a firewall enabled on the system, but if I understood correctly there shouldn’t be a requirement for incoming traffic because of Mender?

I’m happy to continue this conversation privately via email as well.

![dandk](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/1X/717325078a0b0d58a91dadee2ec69cd586af5f15.png) ![dandk2](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/1X/c1e925af8bbde679fb6e80aa5e1e7085b1901e40.png)

---

<div class="post-metadata">

**Author:** ![mirzak](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mirzak/32/2056_2.png) [@mirzak](https://hub.mender.io/u/mirzak)\
**Post date:** [August 12, 2019, 12:17pm UTC](https://hub.mender.io/t/issue-with-gl-driver-on-raspbian-stretch/906/6 "2019-08-12T12:17:22Z")

</div>

Thank you for the update @valtteric. I would prefer if we can continue the discussions here (I have moved this to a separate topic on the forum) .

> The GL is not working. This is unfortunately a showstopper for us. The raspi-config is not very informative, attached screenshots. In any case, it’s quite certain something’s happenin during the mender convert. You can most likely reproduce this by just trying to enable the GL driver with a converted vanilla raspbian.

I will take a closer look on what that `rpi-config` is trying to do and why it would fail on a converted image.

> The device is not shown on Mender dashboard even though it’s connected to the internet. We do have a firewall enabled on the system, but if I understood correctly there shouldn’t be a requirement for incoming traffic because of Mender?

There is no requirement for inbound traffic because of Mender on the device. Can you try running `sudo journalctl -f -a -u mender` and provide the output here.

---

<div class="post-metadata">

**Author:** ![mirzak](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mirzak/32/2056_2.png) [@mirzak](https://hub.mender.io/u/mirzak)\
**Post date:** [August 12, 2019, 12:28pm UTC](https://hub.mender.io/t/issue-with-gl-driver-on-raspbian-stretch/906/7 "2019-08-12T12:28:52Z")

</div>

> The GL is not working. This is unfortunately a showstopper for us. The raspi-config is not very informative, attached screenshots. In any case, it’s quite certain something’s happenin during the mender convert. You can most likely reproduce this by just trying to enable the GL driver with a converted vanilla raspbian.

This is why it is complaining,

```auto
  if [! -e /boot/overlays/vc4-kms-v3d.dtbo]; then
    whiptail --msgbox "Driver and kernel not present on your system. Please update" 20 60 2
    return 1
  fi

```

This is something that is changed on a converted image, as we mount the boot partition on `/uboot` instead of `/boot` which is done on a stock image and it will not able to find `/boot/overlays/vc4-kms-v3d.dtbo`

But looking at what the `raspi-config` tool is trying to do is basically adding a line to `/uboot/config.txt`, so the equivalent command to enable Full KMS using a shell would be:

```auto
echo 'dtoverlay=vc4-kms-v3d' | sudo tee -a /uboot/config.txt 

```

There is actually an [pull-request](https://github.com/mendersoftware/mender-convert/pull/111/commits/45041e02e998539c6e2700e8c2d3cdfb5542426a) open to enable this by default, to solve other problems that are present on Raspbian Buster. More info on this [here](https://tracker.mender.io/browse/MEN-2685)

---

<div class="post-metadata">

**Author:** ![mirzak](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mirzak/32/2056_2.png) [@mirzak](https://hub.mender.io/u/mirzak)\
**Post date:** [August 12, 2019, 12:35pm UTC](https://hub.mender.io/t/issue-with-gl-driver-on-raspbian-stretch/906/8 "2019-08-12T12:35:41Z")

</div>

Also I belive that there is a problem in the `1.x.x` version of `mender-convert` that removes any changes you made to the golden image (at least overlays).

We have fixed this in the `master` branch, and specifically [this commit](https://github.com/mendersoftware/mender-convert/commit/7e7be6443925d1c0c736303225fe547c4eb1d277). If you could try using `master` branch of `mender-convert` and report back that would be great.

---

<div class="post-metadata">

**Author:** ![mirzak](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mirzak/32/2056_2.png) [@mirzak](https://hub.mender.io/u/mirzak)\
**Post date:** [August 12, 2019, 12:41pm UTC](https://hub.mender.io/t/issue-with-gl-driver-on-raspbian-stretch/906/9 "2019-08-12T12:41:37Z")

</div>

Also I would like to highlight this,

> [@New iteration of the mender-convert tool](https://hub.mender.io/t/new-iteration-of-the-mender-convert-tool/824):
>
> Hi, As you might be aware of we have a tool we call mender-convert to enable support for Mender on binary distributions. We are happy that this has worked out, enabling people to securely update their devices on non-Yocto devices. Even though we are happy with the functionality of the current tool, there are a couple drawbacks in the current design of the tool, which we want to improve. We looked hard at the current code and decided, to achieve the desired design we would need to do a re-wri…

The new iteration should also work, if you have enabled Full KMS on your golden image. (though raspi-config will probably show same problem)

---

<div class="post-metadata">

**Author:** ![valtteric](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/valtteric/32/315_2.png) [@valtteric](https://hub.mender.io/u/valtteric)\
**Post date:** [August 12, 2019, 2:10pm UTC](https://hub.mender.io/t/issue-with-gl-driver-on-raspbian-stretch/906/10 "2019-08-12T14:10:20Z")

</div>

Hi, sounds great! Yeah the idea is that everything should be properly configurated within the golden image and no need to tweak raspi-config or anything else in that regard. I’ll try things out tomorrow and report back.

Thanks!

---

<div class="post-metadata">

**Author:** ![valtteric](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/valtteric/32/315_2.png) [@valtteric](https://hub.mender.io/u/valtteric)\
**Post date:** [August 13, 2019, 7:27am UTC](https://hub.mender.io/t/issue-with-gl-driver-on-raspbian-stretch/906/11 "2019-08-13T07:27:37Z")

</div>

> [@mirzak](#):
>
> There is no requirement for inbound traffic because of Mender on the device. Can you try running `sudo journalctl -f -a -u mender` and provide the output here.

There are authorization failed errors returned from Mender, I’m quite sure I just forgot to set up the token after redoing most of the steps with the container.

---

<div class="post-metadata">

**Author:** ![valtteric](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/valtteric/32/315_2.png) [@valtteric](https://hub.mender.io/u/valtteric)\
**Post date:** [August 13, 2019, 12:29pm UTC](https://hub.mender.io/t/issue-with-gl-driver-on-raspbian-stretch/906/12 "2019-08-13T12:29:52Z")

</div>

Got everything working pretty much perfectly using the master branch. Thanks!

---

<div class="post-metadata">

**Author:** ![mirzak](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mirzak/32/2056_2.png) [@mirzak](https://hub.mender.io/u/mirzak)\
**Post date:** [August 13, 2019, 12:57pm UTC](https://hub.mender.io/t/issue-with-gl-driver-on-raspbian-stretch/906/13 "2019-08-13T12:57:06Z")

</div>

Great to hear. Thanks for reporting back.

---

<div class="post-metadata">

**Author:** ![xandrei2772](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/xandrei2772/32/1433_2.png) [@xandrei2772](https://hub.mender.io/u/xandrei2772)\
**Post date:** [November 26, 2021, 1:10pm UTC](https://hub.mender.io/t/issue-with-gl-driver-on-raspbian-stretch/906/14 "2021-11-26T13:10:58Z")

</div>

(post deleted by author)

---

<div class="post-metadata">

**Author:** ![xandrei2772](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/xandrei2772/32/1433_2.png) [@xandrei2772](https://hub.mender.io/u/xandrei2772)\
**Post date:** [November 26, 2021, 2:55pm UTC](https://hub.mender.io/t/issue-with-gl-driver-on-raspbian-stretch/906/15 "2021-11-26T14:55:02Z")

</div>

hey im running into the same issue, i cant seem to understand the solution very clear can you please explain the steps to go about fixing this again
