# Update to custom OS version or kernel (confused by error in cloud dashboard)

**URL:** <https://forums.balena.io/t/update-to-custom-os-version-or-kernel-confused-by-error-in-cloud-dashboard/231503>\
**Category:** Product support\
**Tags:** beaglebone\
**Created:** [January 7, 2021, 5:03pm UTC](https://forums.balena.io/t/update-to-custom-os-version-or-kernel-confused-by-error-in-cloud-dashboard/231503 "2021-01-07T17:03:05Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![jkridner](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/jkridner/32/4982_2.png) [@jkridner](https://forums.balena.io/u/jkridner)\
**Post date:** [January 7, 2021, 5:03pm UTC](https://forums.balena.io/t/update-to-custom-os-version-or-kernel-confused-by-error-in-cloud-dashboard/231503/1 "2021-01-07T17:03:05Z")

</div>

I tried building my required kernel module using [https://github.com/balena-os/kernel-module-build](https://github.com/balena-os/kernel-module-build). When I settled on using beaglebone-black headers, rather than beaglebone-green-wifi, I was able to find a version matching the balenaOS version and get my module built. However, when I loaded it, my iio subsystem stopped reporting a local service.

The module works for me in the latest 5.4.70-ti-r21 kernel from [https://github.com/beagleboard/linux](https://github.com/beagleboard/linux), so I tried simply installing it from the .deb file. It reported

`insmod: ERROR: could not insert module ./hm3301.ko: Invalid module format`

I’ve gone through the hurdles of building my own disk image using the meta-balena sources, so I thought I might be able to figure out how to extract the right bits and update the balenaOS. I was rather confused by this error.

 ![Screenshot_2021-01-05 balena dashboard sensortest-py](https://global.discourse-cdn.com/balena/original/2X/a/add4543d9c3b4317c866c3bbb1af1c63b5ff0ff9.png)

Looking at this forum in making this post, I found [Remote OS upgrade of custom host image possible?](https://forums.balena.io/t/remote-os-upgrade-of-custom-host-image-possible/5636). The original link to the hostapp-update script seems to be broken, but [https://github.com/balena-os/balenahup](https://github.com/balena-os/balenahup) is there and seems to be the new method. I’m still working through it as I have to get my Yocto build setup again, but let me know if I’m making it harder than it needs to be.

---

<div class="post-metadata">

**Author:** ![acostach](https://avatars.discourse-cdn.com/v4/letter/a/bcef8e/32.png) [@acostach](https://forums.balena.io/u/acostach)\
**Post date:** [January 8, 2021, 10:34am UTC](https://forums.balena.io/t/update-to-custom-os-version-or-kernel-confused-by-error-in-cloud-dashboard/231503/4 "2021-01-08T10:34:56Z")

</div>

Hi Jason,

I’m expecting it to be a mismatch in the version magic or similar with the module from the deb, should be visible in dmesg.

Does this module come with the kernel, is there a config for it that you need enabled, maybe we can include it in the hostOS directly. If so, please let us know the details, which config it is and for which board.

---

<div class="post-metadata">

**Author:** ![jkridner](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/jkridner/32/4982_2.png) [@jkridner](https://forums.balena.io/u/jkridner)\
**Post date:** [January 8, 2021, 1:29pm UTC](https://forums.balena.io/t/update-to-custom-os-version-or-kernel-confused-by-error-in-cloud-dashboard/231503/6 "2021-01-08T13:29:08Z")

</div>

It is in the 5.4.70-ti-r21 version of the BeagleBoard kernel. Not sure how often you sync with the Beagle kernel. I typically get anything I need added there.

---

<div class="post-metadata">

**Author:** ![mtoman](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/mtoman/32/3599_2.png) [@mtoman](https://forums.balena.io/u/mtoman)\
**Post date:** [January 8, 2021, 3:16pm UTC](https://forums.balena.io/t/update-to-custom-os-version-or-kernel-confused-by-error-in-cloud-dashboard/231503/9 "2021-01-08T15:16:29Z")

</div>

Hi Jason,

the balenaOS kernel is now based on 5.4.70-ti-r19 and we can look at updating to r21. Could you please confirm that the driver in question is `hm3301` and therefore you need to enable `CONFIG_HM3301` for the beaglebone black?

Thanks

---

<div class="post-metadata">

**Author:** ![jkridner](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/jkridner/32/4982_2.png) [@jkridner](https://forums.balena.io/u/jkridner)\
**Post date:** [January 8, 2021, 4:52pm UTC](https://forums.balena.io/t/update-to-custom-os-version-or-kernel-confused-by-error-in-cloud-dashboard/231503/11 "2021-01-08T16:52:15Z")

</div>

Yes, that is correct.

---

<div class="post-metadata">

**Author:** ![klutchell](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/klutchell/32/861_2.png) [@klutchell](https://forums.balena.io/u/klutchell)\
**Post date:** [January 8, 2021, 6:59pm UTC](https://forums.balena.io/t/update-to-custom-os-version-or-kernel-confused-by-error-in-cloud-dashboard/231503/12 "2021-01-08T18:59:33Z")

</div>

Hey @jkridner, I’ve opened the following GitHub issue to bump the kernel version for Beaglebone to 5.4.70-ti-r21.

> <https://github.com/balena-os/balena-beaglebone/issues/253>
>
> The driver in question is hm3301 and we want to enable CONFIG\_HM3301 for the beaglebone black.

We’ll ping you when we have updates!

---

<div class="post-metadata">

**Author:** ![acostach](https://avatars.discourse-cdn.com/v4/letter/a/bcef8e/32.png) [@acostach](https://forums.balena.io/u/acostach)\
**Post date:** [January 29, 2021, 2:33pm UTC](https://forums.balena.io/t/update-to-custom-os-version-or-kernel-confused-by-error-in-cloud-dashboard/231503/14 "2021-01-29T14:33:10Z")

</div>

Hi @jkridner,

The image v2.67.3+rev1 for Beaglebone Green Gateway is available in production and includes the r21 kernel and the HM3301 module.

---

<div class="post-metadata">

**Author:** ![jkridner](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/jkridner/32/4982_2.png) [@jkridner](https://forums.balena.io/u/jkridner)\
**Post date:** [January 29, 2021, 7:53pm UTC](https://forums.balena.io/t/update-to-custom-os-version-or-kernel-confused-by-error-in-cloud-dashboard/231503/16 "2021-01-29T19:53:12Z")

</div>

thanks
