# Require a balenaos kernel update to use camera

**URL:** <https://forums.balena.io/t/require-a-balenaos-kernel-update-to-use-camera/353525>\
**Category:** balenaOS\
**Created:** [March 3, 2022, 3:01pm UTC](https://forums.balena.io/t/require-a-balenaos-kernel-update-to-use-camera/353525 "2022-03-03T15:01:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![guido](https://avatars.discourse-cdn.com/v4/letter/g/b77776/32.png) [@guido](https://forums.balena.io/u/guido)\
**Post date:** [March 3, 2022, 3:01pm UTC](https://forums.balena.io/t/require-a-balenaos-kernel-update-to-use-camera/353525/1 "2022-03-03T15:01:04Z")

</div>

Hi,  
i’m using a balenafin v1.1.1 and bought an Arducam Pivariety IMX298 16MP, installing the drivers following these steps [link](https://www.arducam.com/docs/cameras-for-raspberry-pi/pivariety/how-to-install-kernel-driver-for-pivariety-camera/) fails when modprobing the arducam kernel module with the following error

> modprobe: ERROR: could not insert ‘arducam’: Exec format error

the error seems to be related to version mismatch between the kernel and the module, these drivers were built for the following versions [link](https://github.com/ArduCAM/Arducam-Pivariety-V4L2-Driver/tree/master/Release/bin), i tried using the last two balenaos releases and both of them use a kernel version not supported by those drivers, is there a way for me to update the balenaos linux kernel?

---

<div class="post-metadata">

**Author:** ![alexgg](https://avatars.discourse-cdn.com/v4/letter/a/7ab992/32.png) [@alexgg](https://forums.balena.io/u/alexgg)\
**Post date:** [April 18, 2022, 9:35am UTC](https://forums.balena.io/t/require-a-balenaos-kernel-update-to-use-camera/353525/2 "2022-04-18T09:35:33Z")

</div>

Hi, using precompiled kernel drivers for RaspberryPi OS will not work in balenaOS. I would suggest you build the kernel driver as part of your application, copy it to the container image ,and load it as part of the application’s entry script.  
You have an example that shows how to build an external kernel module in [GitHub - balena-os/kernel-module-build: Example project for building an OOT kernel module in balena](https://github.com/balena-os/kernel-module-build)
