# How to load kernel images from different location?

**URL:** <https://hub.mender.io/t/how-to-load-kernel-images-from-different-location/571>\
**Category:** General Discussions\
**Tags:** yocto, sumo, nxp\
**Created:** [May 16, 2019, 7:21am UTC](https://hub.mender.io/t/how-to-load-kernel-images-from-different-location/571 "2019-05-16T07:21:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajithpv](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/ajithpv/32/728_2.png) [@ajithpv](https://hub.mender.io/u/ajithpv)\
**Post date:** [May 16, 2019, 7:21am UTC](https://hub.mender.io/t/how-to-load-kernel-images-from-different-location/571/1 "2019-05-16T07:21:59Z")

</div>

Hi,

Mender updates the kernel images as part of the rootfs in block update. Hence, the location of the kernel images are in `/boot` of the file system.

Now, there is a provision for updating the kernel image even if it is in another partition using update module.

Hence, I would like to know the recommended way of changing the partition from `/boot` to another one in U-boot env. Should I use `MENDER_UBOOT_POST_SETUP_COMMANDS` to define this? any other way to change the partition from the deafult?

---

<div class="post-metadata">

**Author:** ![drewmoseley](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/drewmoseley/32/47_2.png) [@drewmoseley](https://hub.mender.io/u/drewmoseley)\
**Post date:** [May 16, 2019, 2:27pm UTC](https://hub.mender.io/t/how-to-load-kernel-images-from-different-location/571/2 "2019-05-16T14:27:43Z")

</div>

At the moment “/boot/” is hardcoded in 0002-Generic-boot-code-for-Mender.patch. You may be able to use MENDER\_UBOOT\_POST\_SETUP\_COMMANDS to modify that but I suspect it will be tricky with the commands that are available at the UBoot prompt. It may be better to use a separate U-Boot variable to specify the location of the kernel/fdt but that would require changes to the patch mentioned above.
