# Facing error when trying to add libmodbus feature in .bbappend file

**URL:** <https://forums.digi.com/t/facing-error-when-trying-to-add-libmodbus-feature-in-bbappend-file/30361>\
**Category:** Linux\
**Created:** [March 27, 2024, 7:42am UTC](https://forums.digi.com/t/facing-error-when-trying-to-add-libmodbus-feature-in-bbappend-file/30361 "2024-03-27T07:42:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anushka\_prajose](https://avatars.discourse-cdn.com/v4/letter/a/d9b06d/32.png) [@anushka\_prajose](https://forums.digi.com/u/anushka_prajose)\
**Post date:** [March 27, 2024, 7:42am UTC](https://forums.digi.com/t/facing-error-when-trying-to-add-libmodbus-feature-in-bbappend-file/30361/1 "2024-03-27T07:42:32Z")

</div>

I am using Digi ConnectCore 8M Nano Development kit. It has yocto 4.0(Kirkstone). I am trying to add libmodbus in the rootfs.

For that I added the line : IMAGE\_INSTALL:append = " libmodbus" in the core-image-base.bbappenf file.

Now when I run “bitbake dey-image-qt”. I am getting following error :  
DEBUG: Python function extend\_recipe\_sysroot finished  
| DEBUG: Executing python function set\_image\_size  
| DEBUG: 648814.400000 = 499088 \* 1.300000  
| DEBUG: 648814.400000 = max(648814.400000, 8192)[648814.400000] + 0  
| DEBUG: 648815.000000 = int(648814.400000)  
| DEBUG: 651264 = aligned(648815)  
| DEBUG: returning 651264  
| DEBUG: Python function set\_image\_size finished  
| DEBUG: Executing shell function do\_image\_boot\_vfat  
| WARNING: exit code 1 from a shell command.  
ERROR: Task (/media/teq/6b282e2f-57e9-4bf5-976e-aa23855e9e47/dey-4.0/sources/meta-digi/meta-digi-dey/recipes-core/images/dey-image-qt.bb:do\_image\_boot\_vfat) failed with exit code ‘1’

I am not able to understand what is causing this error.

---

<div class="post-metadata">

**Author:** ![LeonidM](https://avatars.discourse-cdn.com/v4/letter/l/d26b3c/32.png) [@LeonidM](https://forums.digi.com/u/LeonidM)\
**Post date:** [March 30, 2024, 7:30pm UTC](https://forums.digi.com/t/facing-error-when-trying-to-add-libmodbus-feature-in-bbappend-file/30361/2 "2024-03-30T19:30:08Z")

</div>

is there a log file after the build fails? does it have more info? Perhaps the image size exceeds the maximum?

---

<div class="post-metadata">

**Author:** ![anushka\_prajose](https://avatars.discourse-cdn.com/v4/letter/a/d9b06d/32.png) [@anushka\_prajose](https://forums.digi.com/u/anushka_prajose)\
**Post date:** [April 9, 2024, 6:13am UTC](https://forums.digi.com/t/facing-error-when-trying-to-add-libmodbus-feature-in-bbappend-file/30361/3 "2024-04-09T06:13:32Z")

</div>

I had made multiple changes in the different files when I was trying to add libmodbus to the rootfs.

I assume that one of the changes I may not have reverted back to the original, hence this problem arose.

I created an image from scratch after resyncing the repository and now the problem has been resolved.
