# How to apply patch manually?

**URL:** <https://hub.mender.io/t/how-to-apply-patch-manually/3751>\
**Category:** Yocto Project\
**Tags:** zeus\
**Created:** [June 16, 2021, 3:46am UTC](https://hub.mender.io/t/how-to-apply-patch-manually/3751 "2021-06-16T03:46:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![marizonne.villafranc](https://avatars.discourse-cdn.com/v4/letter/m/ad7895/32.png) [@marizonne.villafranc](https://hub.mender.io/u/marizonne.villafranc)\
**Post date:** [June 16, 2021, 3:46am UTC](https://hub.mender.io/t/how-to-apply-patch-manually/3751/1 "2021-06-16T03:46:59Z")

</div>

Hi,

I got the following error when integrating mender in Yocto Zues release.  
How to perform patch manually?

ERROR: u-boot-variscite-1.0-r0 do\_patch: Command Error: ‘quilt --quiltrc /home/herodev/mender-variscite-zeus/build/tmp/work/imx6ul\_var\_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/recipe-sysroot-native/etc/quiltrc push’ exited with 0 Output:  
Applying patch 0001-Switch-to-CONFIG\_DISTRO\_DEFAULTS-for-bootcmd.patch  
patching file configs/mx6ul\_var\_dart\_mmc\_defconfig  
patching file include/configs/mx6ul\_var\_dart.h  
Hunk #3 FAILED at 123.  
1 out of 4 hunks FAILED – rejects in file include/configs/mx6ul\_var\_dart.h  
Patch 0001-Switch-to-CONFIG\_DISTRO\_DEFAULTS-for-bootcmd.patch does not apply (enforce with -f)  
ERROR: Logfile of failure stored in: /home/herodev/mender-variscite-zeus/build/tmp/work/imx6ul\_var\_dart-fslc-linux-gnueabi/u-boot-variscite/1.0-r0/temp/log.do\_patch.6553  
ERROR: Task (/home/herodev/mender-variscite-zeus/sources/meta-variscite-imx/recipes-bsp/u-boot/u-boot-variscite.bb:do\_patch) failed with exit code ‘1’

---

<div class="post-metadata">

**Author:** ![marizonne.villafranc](https://avatars.discourse-cdn.com/v4/letter/m/ad7895/32.png) [@marizonne.villafranc](https://hub.mender.io/u/marizonne.villafranc)\
**Post date:** [June 16, 2021, 5:37am UTC](https://hub.mender.io/t/how-to-apply-patch-manually/3751/2 "2021-06-16T05:37:04Z")

</div>

I tried to path manually by following the procedure defined in [Manual U-Boot integration | Mender documentation](https://docs.mender.io/system-updates-yocto-project/board-integration/bootloader-support/u-boot/manual-u-boot-integration) but I still encounter same error above.

---

<div class="post-metadata">

**Author:** ![oleorhagen](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/oleorhagen/32/297_2.png) [@oleorhagen](https://hub.mender.io/u/oleorhagen)\
**Post date:** [June 16, 2021, 7:46am UTC](https://hub.mender.io/t/how-to-apply-patch-manually/3751/3 "2021-06-16T07:46:13Z")

</div>

Gi @marizonne.villafranc

If your patch does not apply cleanly, you will have to resolve the conflicts yourself, manually, and generate a new patch. There is no magic involved here, just manual work, just like you would apply and fix a regular git patch.

---

<div class="post-metadata">

**Author:** ![marizonne.villafranc](https://avatars.discourse-cdn.com/v4/letter/m/ad7895/32.png) [@marizonne.villafranc](https://hub.mender.io/u/marizonne.villafranc)\
**Post date:** [June 17, 2021, 3:12am UTC](https://hub.mender.io/t/how-to-apply-patch-manually/3751/4 "2021-06-17T03:12:45Z")

</div>

Yes. I already did manually. Thanks!
