Hi Richard, On 10/16/19, Richard Weinberger <richard.weinberger@xxxxxxxxx> wrote: > On Mon, Oct 14, 2019 at 6:57 AM JH <jupiter.hce@xxxxxxxxx> wrote: >> >> Hi, >> >> Sorry, if it is not right the mailing list to ask helps for multiple >> volumes in a single ubi0 instance, any advice please? > > I'm a little lost in your questions. > > If you have more than one volume on UBI, you get an /dev/ubiX_Y for each > volume. Where X is the UBI number, usually 0 and Y the volume number. > You can have an UBIFS on both volumes. Sorry for not being clear about the question, I double checked the document, it is better not to set kernel in MTD partition, but to UBI volume partition, let me rephrase it. Let's say I have following MTD partitions: MFG_NAND_PARTITION "mtdparts=gpmi-nand:4m(boot),2m(ubootenv),2m(dtb),-(ubi)" So the volume partitions will be in mtd3 and ubi0. /dev/ubi0_0 kernel /dev/ubi0_1 rootfs /dev/ubi0_2 data It seems to me there are two ways to create UBI volumes, one is to directly use MTD tools (correct me if it is wrong): ubimkvol /dev/ubi0_0 -s 10MiB -N kernel_data ubimkvol /dev/ubi0_1 -s 130MiB -N rootfs_data ubimkvol /dev/ubi0_2 -s 10MiB -N storage_data Another way as many document also suggested to use volume configure file and ubinize to create and to read volume configure file, which I don't know how to do it. Appreciate if anyone used kernel in UBI volume partition and show the tips of how to use ubinize to create and to read the volume configure file. If the kernel is in one MTD partition and a single volume in rootfs of another MTD partition, I can define following boot command to boot the rootfs from the NAND. bootargs "root=ubi0:rootfs_data rw ubi.mtd=5,2048 noinitrd rootfstype=ubifs mem=256M rootwait=1" For multiple UBIFS volume partitions in ubi0, especially when one ubi volume is for kernel, how can I boot the kernel volume partition first, then to rootfs volume partition? I am sure the following setup boot args is wrong,could anyone correct it please? bootargs "kernel=ubi0:kernel_data root=ubi0:rootfs_data rw ubi.mtd=5,2048 noinitrd rootfstype=ubifs mem=256M rootwait=1" Thank you. Kind regards, - jh ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/