# Installing a driver on balenaOS

**URL:** <https://forums.balena.io/t/installing-a-driver-on-balenaos/350160>\
**Category:** Product support\
**Tags:** raspberrypi4\
**Created:** [November 17, 2021, 10:13pm UTC](https://forums.balena.io/t/installing-a-driver-on-balenaos/350160 "2021-11-17T22:13:55Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![TJvV](https://avatars.discourse-cdn.com/v4/letter/t/858c86/32.png) [@TJvV](https://forums.balena.io/u/TJvV)\
**Post date:** [November 23, 2021, 8:18am UTC](https://forums.balena.io/t/installing-a-driver-on-balenaos/350160/3 "2021-11-23T08:18:13Z")

</div>

Hi,

I haven’t tried it yet myself, but there is [this post](https://forums.balena.io/t/custom-kernel-modules-firmware-best-practices/166994/6) from a while back that suggests adding it from your own container.

I would expect your fix would look something like:

1. Add module (ex. `/usr/src/rtl8188eu.ko`) and labels to your container;
2. On start up:  
2.a. Unload the old driver: `modprobe --remove rtl8188eu`;  
2.b. Load the new driver: `insmod /usr/src/rtl8188eu.ko`;
3. Enjoy your wifi.

If this works, you can roll it out to the existing devices simply by updating them normally.  
Of course, this assumes you have some connection other than your broken wifi.

I’m not sure how this would work with HostOS updates, you might need specific builds of your module for the different versions.

If you’re building your own OS image, you might be able to patch it with a `.bbappend` file, but updating custom OS images isn’t really supported at the moment I think.

---

_[View the full topic](https://forums.balena.io/t/installing-a-driver-on-balenaos/350160)._
