# How can I implement own U-boot to Mender

**URL:** <https://hub.mender.io/t/how-can-i-implement-own-u-boot-to-mender/1252>\
**Category:** General Discussions\
**Tags:** yocto, sumo, nxp, u-boot, spl\
**Created:** [November 15, 2019, 6:34am UTC](https://hub.mender.io/t/how-can-i-implement-own-u-boot-to-mender/1252 "2019-11-15T06:34:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mEK](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mek/32/377_2.png) [@mEK](https://hub.mender.io/u/mEK)\
**Post date:** [November 15, 2019, 6:34am UTC](https://hub.mender.io/t/how-can-i-implement-own-u-boot-to-mender/1252/1 "2019-11-15T06:34:14Z")

</div>

Hello community.

I have been interested in Mender for a long time and I have implemented the mender to my imx6ul and I have done updates without any problems. But now I want to use my own u-boot code, not Mender’s.

I developed a signed u-boot for secure boot on a separate imx6ul card (without Mender), and I want to run this u-boot with the mender.

As far as I see, Mender basically points to the u-boot-common\_2018.01.inc file in the poky / meta / recipes-bsp / u-boot directory, SRC\_URI = “git: [//git.denx.de/u-boot.git](https://git.denx.de/u-boot.git)” source code. Can I change the URI here and call my own source code? SPL and u-boot are separate images in the source code that I use. But in the mender, SPL and u-boot work as a single image. How should I follow my own SPL and U-boot to run ?

Best regards.

---

<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:** [November 15, 2019, 5:08pm UTC](https://hub.mender.io/t/how-can-i-implement-own-u-boot-to-mender/1252/2 "2019-11-15T17:08:20Z")

</div>

Hi @mEK, we definitely support different versions/branches of U-Boot depending on the platform. Usually we start with whatever the vendor or the platform provides and do the integration there. Unfortunately, this may be more than simply changing the SRC\_URI as each board is implemented differently and the patches required to enable the Mender-specific bits may require modification.  
[See our documentation](https://docs.mender.io/2.2/devices/yocto-project/bootloader-support/u-boot) for a discussion of the steps and considerations needed for this.

Drew

---

<div class="post-metadata">

**Author:** ![mEK](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mek/32/377_2.png) [@mEK](https://hub.mender.io/u/mEK)\
**Post date:** [November 23, 2019, 4:08pm UTC](https://hub.mender.io/t/how-can-i-implement-own-u-boot-to-mender/1252/3 "2019-11-23T16:08:20Z")

</div>

Hello @drewmoseley

I solved my problem, I wanted to inform. I was trying to integrate the u-boot shown in the Mender layer with my own u-boot. I changed the contents of meta-mender-community / meta-mender-variscite / recipes-bsp / u-boot / u-boot-variscite.bbappend.

Instead of the SPL and u-boot binaries in the make\_u\_boot\_spl\_image () method, I gave the path to my bootloader binary. I also changed the contents of the UBOOT\_CONFIG variable in the machine.conf file. My problem was solved.

Thank you for help.
