# Modifying u-boot env variables in mender-convert

**URL:** <https://hub.mender.io/t/modifying-u-boot-env-variables-in-mender-convert/6470>\
**Category:** General Discussions\
**Created:** [January 13, 2024, 7:57am UTC](https://hub.mender.io/t/modifying-u-boot-env-variables-in-mender-convert/6470 "2024-01-13T07:57:25Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jjsteele](https://avatars.discourse-cdn.com/v4/letter/j/dfb087/32.png) [@jjsteele](https://hub.mender.io/u/jjsteele)\
**Post date:** [January 13, 2024, 7:57am UTC](https://hub.mender.io/t/modifying-u-boot-env-variables-in-mender-convert/6470/1 "2024-01-13T07:57:25Z")

</div>

Is there a way to modify env variables? I need to change bootdelay to -2 but can’t find a way.

John

---

<div class="post-metadata">

**Author:** ![jjsteele](https://avatars.discourse-cdn.com/v4/letter/j/dfb087/32.png) [@jjsteele](https://hub.mender.io/u/jjsteele)\
**Post date:** [January 22, 2024, 12:07pm UTC](https://hub.mender.io/t/modifying-u-boot-env-variables-in-mender-convert/6470/2 "2024-01-22T12:07:46Z")

</div>

@TheYoctoJester Do you have any idea how I can do this? This is the final step needed to get the SD-Card ready for duplication. At present, I’m having to modify the image manually.

Many thanks for all your help in this!

John

---

<div class="post-metadata">

**Author:** ![TheYoctoJester](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/theyoctojester/32/1444_2.png) [@TheYoctoJester](https://hub.mender.io/u/TheYoctoJester)\
**Post date:** [January 23, 2024, 4:30pm UTC](https://hub.mender.io/t/modifying-u-boot-env-variables-in-mender-convert/6470/3 "2024-01-23T16:30:45Z")

</div>

Hi @jjsteele,

At the moment there is no way to modify the `u-boot` environment dynamically. If this is a requirement for your use case, then you have to drop in a custom built binary `u-boot`.

Greets,  
Josef

---

<div class="post-metadata">

**Author:** ![jjsteele](https://avatars.discourse-cdn.com/v4/letter/j/dfb087/32.png) [@jjsteele](https://hub.mender.io/u/jjsteele)\
**Post date:** [January 23, 2024, 4:44pm UTC](https://hub.mender.io/t/modifying-u-boot-env-variables-in-mender-convert/6470/4 "2024-01-23T16:44:49Z")

</div>

Thanks @TheYoctoJester,

No problem, it is a minor change so I’ll do that.

John

---

<div class="post-metadata">

**Author:** ![jjsteele](https://avatars.discourse-cdn.com/v4/letter/j/dfb087/32.png) [@jjsteele](https://hub.mender.io/u/jjsteele)\
**Post date:** [January 24, 2024, 9:49am UTC](https://hub.mender.io/t/modifying-u-boot-env-variables-in-mender-convert/6470/5 "2024-01-24T09:49:51Z")

</div>

@TheYoctoJester I’msure I’ve seen a way of specifying a custom uboot.bin in mender-convert, but I can’t find the documentation. Can you help?

---

<div class="post-metadata">

**Author:** ![TheYoctoJester](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/theyoctojester/32/1444_2.png) [@TheYoctoJester](https://hub.mender.io/u/TheYoctoJester)\
**Post date:** [January 24, 2024, 5:43pm UTC](https://hub.mender.io/t/modifying-u-boot-env-variables-in-mender-convert/6470/6 "2024-01-24T17:43:07Z")

</div>

Hi @jjsteele,

There is not direct process for it. You would have to base a custom configuration off the generic one for Raspberry Pi (see [mender-convert/configs/raspberrypi\_config at master · mendersoftware/mender-convert · GitHub](https://github.com/mendersoftware/mender-convert/blob/master/configs/raspberrypi_config)), and switch out the lines that drop our prebuilt pieces for your custom ones.

Greets,  
Josef

---

<div class="post-metadata">

**Author:** ![jjsteele](https://avatars.discourse-cdn.com/v4/letter/j/dfb087/32.png) [@jjsteele](https://hub.mender.io/u/jjsteele)\
**Post date:** [January 24, 2024, 5:59pm UTC](https://hub.mender.io/t/modifying-u-boot-env-variables-in-mender-convert/6470/7 "2024-01-24T17:59:17Z")

</div>

@TheYoctoJester Thanks Josef, all working 😀
