# Preload Device Tree Overlays?

**URL:** <https://forums.balena.io/t/preload-device-tree-overlays/5495>\
**Category:** Product support\
**Created:** [February 28, 2019, 9:52pm UTC](https://forums.balena.io/t/preload-device-tree-overlays/5495 "2019-02-28T21:52:15Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![spanceac](https://avatars.discourse-cdn.com/v4/letter/s/cc9497/32.png) [@spanceac](https://forums.balena.io/u/spanceac)\
**Post date:** [March 4, 2019, 9:01am UTC](https://forums.balena.io/t/preload-device-tree-overlays/5495/8 "2019-03-04T09:01:27Z")

</div>

Hi @drewcovi,

I was curious about the device type you use(RPi, Beaglebone etc.).

Assuming you are using a RPi the steps to include the dtbo in your image would be the following:

1. Download an RPi image from the dashboard

2. Extract the image archive

3. Create a loop device from your image  
`sudo losetup -fP balena-name-image.img`

4. Mount the boot partition of your image  
`mkdir tmp-mount`  
`sudo mount /dev/loop0p1 tmp-mount`

5. Copy the dtbo in the boot partition  
`cp hyperpixel4.dtbo tmp-mount/overlays`

6. Edit the `config.txt` file from the `tmp-mount/` folder as you wish

7. Unmount the boot partition  
`sudo umount tmp-mount`

8. Remove the loop device partitions  
`sudo losetup -D`

Now the extracted image contains your modifications on the boot partition. You can flash it.

---

_[View the full topic](https://forums.balena.io/t/preload-device-tree-overlays/5495)._
