# additional partition

**URL:** <https://forums.digi.com/t/additional-partition/20392>\
**Category:** Linux\
**Tags:** embedded-linux, ccimx6ulsbc, yocto\
**Created:** [April 4, 2019, 12:51pm UTC](https://forums.digi.com/t/additional-partition/20392 "2019-04-04T12:51:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mruetti](https://avatars.discourse-cdn.com/v4/letter/m/7bcc69/32.png) [@mruetti](https://forums.digi.com/u/mruetti)\
**Post date:** [April 4, 2019, 12:51pm UTC](https://forums.digi.com/t/additional-partition/20392/1 "2019-04-04T12:51:34Z")

</div>

Hi

I would like to change the partition table and add a new ‘data’ partition. I used the chapter ‘Change the default NAND partition table (build-time)’ as a blueprint and adjusted the following parts:

- MKUBIFS\_ARGS
- mtdparts “40m(data),”
- bootargs “ubi.mtd=…”

After booting linux I can see the partition:

# cat /proc/mtd

…  
mtd6: 02800000 00020000 “data”  
…

The last step is to mount the partition in fstab. But how do I ubiformat/ubiattach/ubimkvol using yocto? Is there a default recipe available? My guess is to write my own multiubi\_mkfs routine but as this looks like a standard problem I’m hesitating…

Thanks  
Mario

---

<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:** [April 5, 2019, 3:23pm UTC](https://forums.digi.com/t/additional-partition/20392/2 "2019-04-05T15:23:27Z")

</div>

you should be able to create an empty ubifs volume on host and flash it via u-boot. it should be enough.
