Hello,
We would like to add a new partition for emmc apart from “/boot” and “/” like KERNEL+DTB files (Read Only) | Rootfs (Read Only) | User data (Read/Write).
We are using
1.U-Boot 2020.07-5.2.0-devel+git.2a68bb1926d6 (Apr 01 2021 - 16:56:40 +0000)
2.Linux colibri-imx6 5.4.91-5.2.0-devel+git.6afb048a71e3 #1 SMP Wed Apr 7 08:36:44 UTC 2021 armv7l armv7l armv7l GNU/Linux
3.TDX Wayland with XWayland 5.2.0-devel-20210604052041+build.0 (dunfell) colibri-imx6 ttymxc0
Colibri-iMX6_Reference-Minimal-Image
Kindly Suggest how to add/remove partitions,size and mounting points during bitbake.
we referred Best pratice to Create Partition in the eMMC using Toradex BSP (OpenEmbedded) - Technical Support - Toradex Community
But we thought this is for old version and we have included fs-init.bb, there is no change in partitions.
Early response would help us alot.
Hi @Gowthami
Welcome to Toradex community
The Toradex easy installer makes use of JSON files. So, if you want to create an extra partition, edit the image.json file in the Linux image of Colibri imx6 and add the required partitions under the blockdevs section. Please refer to the Toradex easy installer article for more information. Hereby I’m attaching a sample image.json file. This will create three partitions, 1.FAT partition is for Kernel/Device Trees,2.ext3 partition for the root file system and An additional third partition has been added to create a location for user data.
@ashok.tx
Thank you, this has helped
We were able to create a separate partition using image.json. But unable to mount the partition(/home).
Can you let me know how to mount using image.json ?
We also tried creating a partition using wic .But it is not working for us.
Can you give me more detailed procedure of using wic with respect to Colibri IMX6DL and tdx-reference-minimal-image v5.2 ?
We took below link as the reference.
Hi @Gowthami
Please refer to the /etc/fstab file where you can mount/umount partitions at boot time.
Pardon me for adding to an old thread. I am using similar hardware and BSP version as the original poster, and I am trying to solve the same problem.
I understand how to modify the image.json to add a new partition and mount the partition.
I have scoured the boards, but I cannot find any information on how to generate the image.json file with the extra partition as part of the image bitbake build. From what I can tell, the file is generated in image_type_tezi.bbclass (the rootfs_tezi_emmc
function), and it doesn’t look like the process is easily modified.
Have I missed something? Adding additional partitions to a TEZI image seems to be a request that comes up periodically over several years, so I am assuming this is a task that can be handled as part of the build.
Thanks.
Hi @dougreese
Can you please open a new thread with this issue? It would help in keeping our community content more organized and easier to search.
Sure. I didn’t because it’s the same issue.