GPT : Some of the partitions on the eMMC device is not listed out

Hi,

Working on Jetson k1 board, with L4T software.

Could you please let me know, why all the partitions on the eMMC device is not listed out in u-boot cmd prompt and Linux command prompt?

Using the following gnu_linux_fastboot_emmc_full.cfg file, which is modified

Linux_for_Tegra/bootloader/ardbeg/cfg/gnu_linux_fastboot_emmc_full.cfg

[device]
type=sdmmc
instance=3

[partition]
name=BCT
id=2
type=boot_config_table
allocation_policy=sequential
filesystem_type=basic
size=2097152 #BCTSIZE
file_system_attribute=0
partition_attribute=0
allocation_attribute=8
percent_reserved=0

[partition]
name=PPT
id=3
type=data
allocation_policy=sequential
filesystem_type=basic
size=8388608 #PPTSIZE
file_system_attribute=0
partition_attribute=0
allocation_attribute=8
percent_reserved=0
#filename=ppt.img

[partition]
name=PT
id=4
type=partition_table
allocation_policy=sequential
filesystem_type=basic
size=2097152
file_system_attribute=0
partition_attribute=0
allocation_attribute=8
percent_reserved=0

[partition]
name=EBT
id=5
type=bootloader
allocation_policy=sequential
filesystem_type=basic
size=4194304
file_system_attribute=0
partition_attribute=0
allocation_attribute=8
percent_reserved=0
filename=fastboot.bin

[partition]
name=GP1
id=6
type=GP1
allocation_policy=sequential
filesystem_type=basic
size=2097152
file_system_attribute=0
partition_attribute=0
allocation_attribute=8
percent_reserved=0

[partition]
name=APP
id=7
type=data
allocation_policy=sequential
filesystem_type=basic
size=1073741824
file_system_attribute=0
partition_attribute=0
allocation_attribute=8
percent_reserved=0
filename=system.img

[partition]
name=EFI
id=8
type=data
allocation_policy=sequential
filesystem_type=basic
size=67108864 #EFISIZE
file_system_attribute=0
partition_attribute=0
allocation_attribute=8
percent_reserved=0
#filename=efi.img

[partition]
name=USP
id=9
type=data
allocation_policy=sequential
filesystem_type=basic
size=4194304
file_system_attribute=0
partition_attribute=0
allocation_attribute=8
percent_reserved=0

[partition]
name=GPT
id=10
type=GPT
allocation_policy=sequential
filesystem_type=basic
size=0xFFFFFFFFFFFFFFFF
file_system_attribute=0
partition_attribute=0
allocation_attribute=8
percent_reserved=0
#filename=spt.img

Listing the partitions on the MMC device in U-boot command prompt:

U-Boot

Tegra124 (Jetson TK1) # mmc part

Partition Map for MMC device 0 – Partition Type: EFI

Part Start LBA End LBA Name
Attributes
Type GUID
Partition GUID
1 0x00005000 0x01c04fff “APP”
attrs: 0x0001000000000001
type: ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
guid: 7369c667-ff51-ec4a-29cd-baabf2fbe346
2 0x01c05000 0x01c24fff “EFI”
attrs: 0x0002000000000001
type: ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
guid: f854c27c-e81b-8de7-765a-2e63339fc99a
3 0x01c25000 0x01c26fff “USP”
attrs: 0x0003000000000001
type: ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
guid: b70d3266-5831-5aa3-255d-051758e95ed4
Tegra124 (Jetson TK1) #

Linux command prompt
test case 1:

root@tegra-ubuntu:/home/ubuntu#parted -l /dev/mmcblk0
Error: /dev/mmcblk0rpmb: unrecognised disk label

Warning: Not all of the space available to /dev/mmcblk0 appears to be used, you
can fix the GPT to use all of the space (an extra 1257439 blocks) or continue
with the current setting?
Fix/Ignore? I
Model: MMC SEM16G (sd/mmc)
Disk /dev/mmcblk0: 15.8GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number Start End Size File system Name Flags
1 10.5MB 15.0GB 15.0GB ext4 APP hidden, msftdata
2 15.0GB 15.1GB 67.1MB EFI hidden, msftdata
3 15.1GB 15.1GB 4194kB USP hidden, msftdata

test case 2:

root@tegra-ubuntu:/home/ubuntu# fdisk /dev/mmcblk0

WARNING: GPT (GUID Partition Table) detected on ‘/dev/mmcblk0’! The util fdisk doesn’t support GPT. Use GNU Parted.

Command (m for help): p

Disk /dev/mmcblk0: 15.8 GB, 15758000128 bytes
256 heads, 63 sectors/track, 1908 cylinders, total 30777344 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
Disk identifier: 0x00000000

    Device Boot      Start         End      Blocks   Id  System

/dev/mmcblk0p1 1 4294967295 2147483647+ ee GPT

Command (m for help): q

Check this out

https://devtalk.nvidia.com/default/topic/802197/?comment=4425615

Read the 2nd/last post by RickDL

I don’t know why one partition item or another does or doesn’t appear, but the method for being certain to list all partitions is to clone the partition table. Here’s the clone article:
http://elinux.org/Jetson/Cloning

Here’s the partition table clone section:
http://elinux.org/Jetson/Cloning#Reading_partition_table

FYI, unlike cloning rootfs or the entire Jetson, cloning the table is quite fast. Just remember that each time you clone you must reboot Jetson to recovery mode again…you can’t clone the table and then rootfs without reboot between clones.

Thank you very much.

It helped me to solve the issue list the partitions on eMMC
https://devtalk.nvidia.com/default/topic/802197/?comment=4425615