# Error in Section "sysfs\_volume" during Yocto build WP76xx

**URL:** <https://forum.legato.io/t/error-in-section-sysfs-volume-during-yocto-build-wp76xx/6552>\
**Category:** Legato Linux distribution (Yocto project)\
**Created:** [July 14, 2023, 7:18am UTC](https://forum.legato.io/t/error-in-section-sysfs-volume-during-yocto-build-wp76xx/6552 "2023-07-14T07:18:52Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![sharath\_n](https://avatars.discourse-cdn.com/v4/letter/s/ee7513/32.png) [@sharath\_n](https://forum.legato.io/u/sharath_n)\
**Post date:** [July 14, 2023, 7:18am UTC](https://forum.legato.io/t/error-in-section-sysfs-volume-during-yocto-build-wp76xx/6552/1 "2023-07-14T07:18:52Z")

</div>

Hi, I am trying to build Linux Kernel 4.14.253 based on the Release R17 for the WP76xx module. In the process, we are adding some custom recipes and files to the OS. But during the build, I’m getting the following error related to the size of rootfs.4k.ubifs.

 ![image](https://us1.discourse-cdn.com/flex019/uploads/legato1/original/2X/7/75cc7b5eaff9fd8033c642e4e4022485a58558de.png)

To resolve this, I changed **UBI\_ROOTFS\_SIZE ?= “48MiB”** in the file yocto/meta-swi/meta-swi-mdm9x28/conf/machine/swi-mdm9x28.conf which was **42MiB** before. The image was built successfully, but there are some issues related to “Space running out” and it reboots due to this space issue.

 ![image](https://us1.discourse-cdn.com/flex019/uploads/legato1/original/2X/5/5a70247c28658f612da986480ab316dc41c9e629.png)

I am looking for a way to reduce the size of this rootfs.4k.ubifs by at least 300Kb to successfully build the image.

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [July 14, 2023, 7:25am UTC](https://forum.legato.io/t/error-in-section-sysfs-volume-during-yocto-build-wp76xx/6552/2 "2023-07-14T07:25:36Z")

</div>

will you consider to put some libraries in RAM?

> [@Example on running additional python library in RAM](https://forum.legato.io/t/example-on-running-additional-python-library-in-ram/4946):
>
> As there are plenty of python libraries which are large to be integrated in yocto image, this document will show you how to run additional library to RAM so that python can run more library in the py script. Enjoy!

Or you can consider to put some libraries in userapp partition like /home/root:

> [@Example on running python3 with boto3 library in WP76 modules](https://forum.legato.io/t/example-on-running-python3-with-boto3-library-in-wp76-modules/6539):
>
> Boto3 is a software development kit (SDK) designed to improve the use of the Python programming language in Amazon Web Services. Here is an example on how to import Boto3 library in python3 with WP76 module R17 firmware:

Or you can check if there is some driver you don’t need in ./kernel/arch/arm/configs/mdm9607\_defconfig

---

<div class="post-metadata">

**Author:** ![sharath\_n](https://avatars.discourse-cdn.com/v4/letter/s/ee7513/32.png) [@sharath\_n](https://forum.legato.io/u/sharath_n)\
**Post date:** [July 14, 2023, 7:37am UTC](https://forum.legato.io/t/error-in-section-sysfs-volume-during-yocto-build-wp76xx/6552/3 "2023-07-14T07:37:19Z")

</div>

Thank you @jyijyi . I will try these.

---

<div class="post-metadata">

**Author:** ![sharath\_n](https://avatars.discourse-cdn.com/v4/letter/s/ee7513/32.png) [@sharath\_n](https://forum.legato.io/u/sharath_n)\
**Post date:** [July 17, 2023, 10:22am UTC](https://forum.legato.io/t/error-in-section-sysfs-volume-during-yocto-build-wp76xx/6552/4 "2023-07-17T10:22:07Z")

</div>

Hi @jyijyi . This is my config file. I am not sure which all drivers I can remove from here. It looks like a minimal configuration file.  
[mdm9607\_defconfig](https://forum.legato.io/uploads/short-url/orUjpkpayh0jo0y3zNXr6TrL2CT) (10.6 KB)

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [July 17, 2023, 10:35am UTC](https://forum.legato.io/t/error-in-section-sysfs-volume-during-yocto-build-wp76xx/6552/5 "2023-07-17T10:35:21Z")

</div>

you can also use menuconfig to know which driver you need:

> **[WP76xx Release 16 compilation error](https://forum.sierrawireless.com/t/wp76xx-release-16-compilation-error/24054/3)**
>
> Hi Jyijyi, Now I have compiled full source with make command. Please provide commands to compile only Linux kernel. Where is linux kernel configuration file(.config file) stored?. Thanks, Raghavan.

Probably it will rewrite the mdm9607\_defconfig for you

---

<div class="post-metadata">

**Author:** ![sharath\_n](https://avatars.discourse-cdn.com/v4/letter/s/ee7513/32.png) [@sharath\_n](https://forum.legato.io/u/sharath_n)\
**Post date:** [July 20, 2023, 8:26am UTC](https://forum.legato.io/t/error-in-section-sysfs-volume-during-yocto-build-wp76xx/6552/6 "2023-07-20T08:26:56Z")

</div>

I ran **bitbake -c menuconfig virtual/kernel** and removed sound card support.

 ![image](https://us1.discourse-cdn.com/flex019/uploads/legato1/original/2X/1/13d608b19462382147a586360ea6684282fbfa78.png)

And then ran **bitbake mdm9x28-image-minimal** and ended up with another error.

 ![image](https://us1.discourse-cdn.com/flex019/uploads/legato1/original/2X/3/3f88d8ac083c85abc9805ae0bf5a021ddc40faa9.png)

What is the correct way to remove certain packages ? for instance I wanted to remove alsa from kernel.

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [July 20, 2023, 8:29am UTC](https://forum.legato.io/t/error-in-section-sysfs-volume-during-yocto-build-wp76xx/6552/7 "2023-07-20T08:29:12Z")

</div>

will you consider to put some libraries in RAM?

> [@Example on running additional python library in RAM](https://forum.legato.io/t/example-on-running-additional-python-library-in-ram/4946):
>
> As there are plenty of python libraries which are large to be integrated in yocto image, this document will show you how to run additional library to RAM so that python can run more library in the py script. Enjoy!

Or you can consider to put some libraries in userapp partition like /home/root:

> [@Example on running python3 with boto3 library in WP76 modules](https://forum.legato.io/t/example-on-running-python3-with-boto3-library-in-wp76-modules/6539):
>
> Boto3 is a software development kit (SDK) designed to improve the use of the Python programming language in Amazon Web Services. Here is an example on how to import Boto3 library in python3 with WP76 module R17 firmware:

---

<div class="post-metadata">

**Author:** ![sharath\_n](https://avatars.discourse-cdn.com/v4/letter/s/ee7513/32.png) [@sharath\_n](https://forum.legato.io/u/sharath_n)\
**Post date:** [July 20, 2023, 8:35am UTC](https://forum.legato.io/t/error-in-section-sysfs-volume-during-yocto-build-wp76xx/6552/8 "2023-07-20T08:35:59Z")

</div>

I don’t want to do too many modifications. As I can see that there is hardly a 300KB difference between the volume and the actual image. I just wanted to remove a few components from the image, so that the image size reduces. Alsa is audio related and in my application, there is no need for any audio functions. So can you please give some guidance on how to remove these components from the image during yocto build?

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [July 20, 2023, 8:48am UTC](https://forum.legato.io/t/error-in-section-sysfs-volume-during-yocto-build-wp76xx/6552/9 "2023-07-20T08:48:40Z")

</div>

if you are not using bluetooth or wifi, you might see if there is anything that can be removed

./meta-swi/meta-swi-mdm9x28/recipes-core/images/mdm9x28-image.inc  
OR  
./kernel/arch/arm/configs/mdm9607\_defconfig  
OR  
menuconfig

---

<div class="post-metadata">

**Author:** ![sharath\_n](https://avatars.discourse-cdn.com/v4/letter/s/ee7513/32.png) [@sharath\_n](https://forum.legato.io/u/sharath_n)\
**Post date:** [July 20, 2023, 11:29am UTC](https://forum.legato.io/t/error-in-section-sysfs-volume-during-yocto-build-wp76xx/6552/10 "2023-07-20T11:29:17Z")

</div>

I tried, but no luck. Wifi is already disabled.  
[mdm9x28-image.inc](https://forum.legato.io/uploads/short-url/1DNznfpFIHDkQl7hXquluT1wsxm.inc) (7.2 KB)

---

<div class="post-metadata">

**Author:** ![sharath\_n](https://avatars.discourse-cdn.com/v4/letter/s/ee7513/32.png) [@sharath\_n](https://forum.legato.io/u/sharath_n)\
**Post date:** [July 20, 2023, 11:33am UTC](https://forum.legato.io/t/error-in-section-sysfs-volume-during-yocto-build-wp76xx/6552/11 "2023-07-20T11:33:25Z")

</div>

What is the standard process to list and remove components from the Linux kernel while building the image in Yocto?

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [July 20, 2023, 12:15pm UTC](https://forum.legato.io/t/error-in-section-sysfs-volume-during-yocto-build-wp76xx/6552/12 "2023-07-20T12:15:56Z")

</div>

How about disable bluetooth or wifi in menuconfig

---

<div class="post-metadata">

**Author:** ![sharath\_n](https://avatars.discourse-cdn.com/v4/letter/s/ee7513/32.png) [@sharath\_n](https://forum.legato.io/u/sharath_n)\
**Post date:** [July 21, 2023, 6:51am UTC](https://forum.legato.io/t/error-in-section-sysfs-volume-during-yocto-build-wp76xx/6552/13 "2023-07-21T06:51:13Z")

</div>

It is already disabled.

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [July 21, 2023, 6:52am UTC](https://forum.legato.io/t/error-in-section-sysfs-volume-during-yocto-build-wp76xx/6552/14 "2023-07-21T06:52:35Z")

</div>

any drive you don’t need in menuconfig?  
I think you need to do some trial experiment

---

<div class="post-metadata">

**Author:** ![sharath\_n](https://avatars.discourse-cdn.com/v4/letter/s/ee7513/32.png) [@sharath\_n](https://forum.legato.io/u/sharath_n)\
**Post date:** [July 21, 2023, 7:03am UTC](https://forum.legato.io/t/error-in-section-sysfs-volume-during-yocto-build-wp76xx/6552/15 "2023-07-21T07:03:54Z")

</div>

In the menuconfig, I disabled the following options

**Verbose BUG() reporting (adds 70K)**  
**Enable stack unwinding support (EXPERIMENTAL)**  
**PowerPC BCJ filter decoder**  
**Remote Controller support**

And then I rebuilt the image just now, however, I don’t see any changes in the total image size.

 ![image](https://us1.discourse-cdn.com/flex019/uploads/legato1/original/2X/0/01d5c7223d8e367121eaf2d66fe829ec3c91b938.png)

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [July 21, 2023, 7:06am UTC](https://forum.legato.io/t/error-in-section-sysfs-volume-during-yocto-build-wp76xx/6552/16 "2023-07-21T07:06:51Z")

</div>

is it the same for clean build?

```auto
make clean
make

```

---

<div class="post-metadata">

**Author:** ![sharath\_n](https://avatars.discourse-cdn.com/v4/letter/s/ee7513/32.png) [@sharath\_n](https://forum.legato.io/u/sharath_n)\
**Post date:** [July 21, 2023, 8:16am UTC](https://forum.legato.io/t/error-in-section-sysfs-volume-during-yocto-build-wp76xx/6552/17 "2023-07-21T08:16:20Z")

</div>

Hey @jyijyi, I found the solution.

1. First list all the packages/recipes using **bitbake-layers show-recipes**

You’ll see something like this

 ![image](https://us1.discourse-cdn.com/flex019/uploads/legato1/original/2X/4/4430f4dcac05e2cfd1df1098c6654956bbd80ad2.png)

1. You can use the package’s name in the conf/local.conf to remove them from the build  
using **IMAGE\_INSTALL\_remove**

![image](https://us1.discourse-cdn.com/flex019/uploads/legato1/original/2X/9/9ba31416a17bd5f96aa8cce9945ba42b73f0a82a.png)

With these changes, I was able to build the image without the “sysfs\_volume” error.

Thank you @jyijyi for all the suggestions. 🙂
