# Device tree overlays for PocketBeagle

**URL:** <https://forums.balena.io/t/device-tree-overlays-for-pocketbeagle/350553>\
**Category:** Product support\
**Tags:** beaglebone\
**Created:** [December 15, 2021, 4:47am UTC](https://forums.balena.io/t/device-tree-overlays-for-pocketbeagle/350553 "2021-12-15T04:47:11Z")\
**Posts on this page:** 7\
**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:** [December 15, 2021, 4:47am UTC](https://forums.balena.io/t/device-tree-overlays-for-pocketbeagle/350553/1 "2021-12-15T04:47:11Z")

</div>

Editing /mnt/boot/uEnv.txt\_internal nor /mnt/sysroot/active/balena/overlay2/3662906acfca36b25c9f6e9fdb41a06e502e84266af4ae2c26fb93e27ff65fd3/diff/resin-boot/uEnv.txt\_internal, so what file do I actually edit in a running file system?

---

<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:** [December 15, 2021, 4:56am UTC](https://forums.balena.io/t/device-tree-overlays-for-pocketbeagle/350553/2 "2021-12-15T04:56:28Z")

</div>

Answering my own question…

`/mnt/boot/resinOS_uEnv.txt` is read by uboot, so you can set variables.  
`/mnt/sysroot/active/current/boot/overlays` is accessible at boot time.

---

<div class="post-metadata">

**Author:** ![Lizzieepton](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/lizzieepton/32/5393_2.png) [@Lizzieepton](https://forums.balena.io/u/Lizzieepton)\
**Post date:** [December 15, 2021, 4:14pm UTC](https://forums.balena.io/t/device-tree-overlays-for-pocketbeagle/350553/4 "2021-12-15T16:14:58Z")

</div>

Hi @jkridner just checking you are all ok with this issue now? 😊

---

<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:** [December 15, 2021, 9:31pm UTC](https://forums.balena.io/t/device-tree-overlays-for-pocketbeagle/350553/5 "2021-12-15T21:31:56Z")

</div>

Yep, but it would be nice to see some documentation on this.

---

<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:** [December 15, 2021, 11:11pm UTC](https://forums.balena.io/t/device-tree-overlays-for-pocketbeagle/350553/6 "2021-12-15T23:11:35Z")

</div>

Further, it isn’t obvious how I should be loading these files, including the overlays.

---

<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:** [December 22, 2021, 1:39pm UTC](https://forums.balena.io/t/device-tree-overlays-for-pocketbeagle/350553/11 "2021-12-22T13:39:01Z")

</div>

Hey Jason, I took a look at our docs and API and it seems that we don’t expose the advanced boot configurations for PocketBeagle the way we do for Raspberry Pi but it would look something like this:  
[https://www.balena.io/docs/reference/OS/advanced/#setting-device-tree-overlays-dtoverlay-and-parameters-dtparam](https://www.balena.io/docs/reference/OS/advanced/#setting-device-tree-overlays-dtoverlay-and-parameters-dtparam)

Have you tried manually setting `BALENA_HOST_CONFIG_dtoverlay` in the Configuration panel to see if you can load different overlays via the dashboard? I don’t have the device to test with myself but this is how it works for RPi and config.txt.

If `BALENA_HOST_CONFIG_dtoverlay` doesn’t work as suggested then we would probably add that functionality rather than update our documentation with the workaround you found.

If you need a custom overlay that isn’t present in balenaOS at all, we usually recommend you test with the method you are currently using then PR it on [GitHub - balena-os/balena-beaglebone: Balena support for Beaglebone boards](https://github.com/balena-os/balena-beaglebone) so we can add it to future releases!

---

<div class="post-metadata">

**Author:** ![john\_gronska](https://avatars.discourse-cdn.com/v4/letter/j/7bcc69/32.png) [@john\_gronska](https://forums.balena.io/u/john_gronska)\
**Post date:** [December 22, 2022, 10:40am UTC](https://forums.balena.io/t/device-tree-overlays-for-pocketbeagle/350553/19 "2022-12-22T10:40:27Z")

</div>

> [@klutchell](#):
>
> Have you tried manually setting `BALENA_HOST_CONFIG_dtoverlay` in the Configuration panel to see if you can load different overlays via the dashboard?

`BALENA_HOST_CONFIG_dtoverlay` doesn’t work. Tried on balenaCloud v16.2.3 + BeagleBone Black running balenaOS 2.107.35.

FWIW, I tried setting overlays in three places:

1. `BALENA_HOST_CONFIG_dtoverlay`
2. `/boot/uEnv.txt`
3. `/mnt/boot/uEnv.txt`

Only #3 seems to work. Other sources online refer to #2. Confusingly both `/boot` and `/mnt/boot` exist on balenaOS, but **only `/mnt/boot/uEnv.txt` works**.

> [@klutchell](#):
>
> If BALENA\_HOST\_CONFIG\_dtoverlay doesn’t work as suggested then we would probably add that functionality rather than update our documentation with the workaround you found.

@klutchell This would be really useful. How could we request this?
