Hi,
I’m configuring new partitions on emmc. I need 5 partitions for OTA with RAUC (2xrootfs, 2xbootfs and 1 data).
I saw here I need to configure Toradex Easy Installer to use GPT instead of the old MBR if I want more than 4 partitions.
Changing from MBR to GPT works well, I have my 5 parts on eMMC.
However, I want U-Boot to be able to determine which partition is bootable with the following command:
# part list mmc 0 -bootable devplist
as far as I tried, my devplist variable stayed in “non defined” state:
# printenv devplist
## Error: "devplist" not defined
I expected to see my partition 1 (bootfs1) in that variable as I configured my json image file with the following information: (based on GUID Partition Table - Wikipedia)
"partition_type": "BC13C2FF-59E6-4262-A352-B275FD6F7172",
"active": true,
Do you know how can i correctly place the bootable flag on GPT partition with Toradex Easy Installer?
For debug, the attached image.json result in this mmc configuration:
Colibri iMX7 # mmc part
Partition Map for MMC device 0 -- Partition Type: EFI
Part Start LBA End LBA Name
Attributes
Type GUID
Partition GUID
1 0x00002000 0x00009fff ""
attrs: 0x0000000000000000
type: bc13c2ff-59e6-4262-a352-b275fd6f7172
guid: 643e52a7-1953-4ca5-9206-db12878ef9b2
2 0x0000a000 0x00109fff ""
attrs: 0x0000000000000000
type: 0fc63daf-8483-4772-8e79-3d69d8477de4
guid: 4559a961-9b7f-49da-938f-0d82ff07acab
3 0x0010a000 0x00111fff ""
attrs: 0x0000000000000000
type: 0fc63daf-8483-4772-8e79-3d69d8477de4
guid: 2a96d490-e267-4cdc-866f-daec78b38aa9
4 0x00112000 0x00211fff ""
attrs: 0x0000000000000000
type: 0fc63daf-8483-4772-8e79-3d69d8477de4
guid: 039c0afb-5bb1-4c76-9e1d-cff157e471b5
5 0x00212000 0x00747fdd ""
attrs: 0x0000000000000000
type: 0fc63daf-8483-4772-8e79-3d69d8477de4
guid: 6ec5fe68-1aba-4a92-8c1c-a697c15f091e
Secondary question : How can I set the “Name” parameter of the partition with Toradex Easy Installer ?
My image.json file:
{
"config_format": "2",
"autoinstall": false,
"name": "test Image",
"description": "test image",
"version": "5.0.0-devel-20200921144925+build.0",
"release_date": "2020-09-21",
"u_boot_env": "uEnv.txt",
"prepare_script": "prepare.sh",
"wrapup_script": "wrapup.sh",
"marketing": "marketing.tar",
"icon": "toradexlinux.png",
"supported_product_ids": [
"0039"
],
"blockdevs": [
{
"name": "mmcblk0",
"table_type": "gpt",
"partitions": [
{
"partition_size_nominal": 16,
"want_maximised": false,
"partition_type": "BC13C2FF-59E6-4262-A352-B275FD6F7172",
"active": true,
"content": {
"label": "BOOT-A",
"filesystem_type": "ext4",
"mkfs_options": "",
"filename": "test_image-colibri-imx7-emmc.bootfs.tar.xz",
"uncompressed_size": 5.98828125
}
},
{
"partition_size_nominal": 512,
"want_maximised": false,
"content": {
"label": "ROOTFS-A",
"filesystem_type": "ext4",
"mkfs_options": "-E nodiscard",
"filename": "test_image-colibri-imx7-emmc.tar.xz",
"uncompressed_size": 169.70703125
}
},
{
"partition_size_nominal": 16,
"want_maximised": false,
"content": {
"label": "BOOT-B",
"filesystem_type": "ext4",
"mkfs_options": "",
"filename": "test_image-colibri-imx7-emmc.bootfs.tar.xz",
"uncompressed_size": 5.98828125
}
},
{
"partition_size_nominal": 512,
"want_maximised": false,
"content": {
"label": "'ROOTFS-B",
"filesystem_type": "ext4",
"mkfs_options": "-E nodiscard",
"filename": "test_image-colibri-imx7-emmc.tar.xz",
"uncompressed_size": 169.70703125
}
},
{
"partition_size_nominal": 512,
"want_maximised": true,
"content": {
"label": "DATA",
"filesystem_type": "ext4"
}
}
]
},
{
"name": "mmcblk0boot0",
"erase": true,
"content": {
"filesystem_type": "raw",
"rawfiles": [
{
"filename": "u-boot.imx",
"dd_options": "seek=2"
}
]
}
}
]
}