Dear Community members ,
I am using S32G3-RDB3 Hardware.
Can someone please tell how to create GPT partitions for my eMMC device and where shall i change in my Yocto build for S32G3-RDB3 hardware.
Currently the issue is, that it cerates DOS partition Table, which the eMMC device drivers is not able to recognize(eMMC device drivers only recognizes GPT partitions Table).
----------------------------------------------------------------------------------------
Hardware logs
----------------------------------------------------------------------------------------root@s32g3:~# fdisk -l /dev/mmcblk0
Disk /dev/mmcblk0: 232.97 GiB, 250148290560 bytes, 488570880 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xef5a771f
Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 * 2048 63931 61884 30.2M c W95 FAT32 (LBA)
/dev/mmcblk0p2 65536 3211263 3145728 1.5G 83 Linux
/dev/mmcblk0p3 3211264 3416063 204800 100M 83 Linux
/dev/mmcblk0p4 3416064 488570879 485154816 231.3G 83 Linux
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
And i want the existing data to be as it is, as it was for DOS partition table , is should be same for GPT partition.
Note:(I tried doing it during the runtime , using fdisk on the hardware it self , but i am loosing all partition table data and configuration).
Regards,
Vishal G
Hello, @vishalg
Thanks for your post.
GPT is usually used for the situation that with very large size or more partitions needed, not sure why your eMMC drivers could not access the MBR partition table.
I have tested on the RDB3 with BSP42. Currently, from BSP perspective, for example, the uboot load kernel image from the corresponding partition with fatload command, which seems only recognize the MBR format. I ever tested the SD card with GPT, the loading operation would fail.
From my experience, it is possible to add GPT support on u-boot, but it is not included in the formal BSP release, there would be several settings/some codes need to be modified in order to load images correctly with GPT support.
BR
Chenyin