Skip to contentSkip to conversation

how to use multiubi?

DISCUSSION [email protected] 2 participants 2 messages Aug 16, 2024 – Feb 12

lore
Share & tools
lore
#0 lore raw

hello,
could someone tell me or share some documentation or examples about the multiubi image type?
i want to create an ubi image containes two partitions, first with kernel and dtb, and second with roots. How to do that?

#1 lore raw
Quoted 2 lines

hello,
could someone tell me or share some documentation or examples about the multiubi image type?

This blog has an example of using multiubi: https://www.marcusfolkesson.se/blog/ubi-volumes-in-yocto/.

Quoted 1 line

i want to create an ubi image containes two partitions, first with kernel and dtb, and second with roots. How to do that?

I would like to do something similar but haven't found a good way to do it because image_types.bbclass seems to only support adding the rootfs to ubifs and ubi images, not the kernel and dtb.

I'm considering overriding write_ubi_config() and multiubi_mkfs() in image_types.bbclass with my own .bbclass file so that it creates two ubi files: one containing the kernel and dtb and the other containing the rootfs.

Does anyone have other ideas about how to do this?