]> Git Repo - u-boot.git/commitdiff
tools: zynqmpimage: show info on partition 0
authorBrandon Maier <[email protected]>
Thu, 4 Jan 2024 18:50:06 +0000 (18:50 +0000)
committerMichal Simek <[email protected]>
Wed, 10 Jan 2024 08:27:12 +0000 (09:27 +0100)
The zynqmpimage_print_header() skips printing the first partition. This
is because the image header can contain duplicate fields as the first
partition. However some fields, like the partition attributes, are only
present in the partition table. It is also possible for the first
partition to not be declared in the image header, if the image is not a
bootloader image.

Signed-off-by: Brandon Maier <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Michal Simek <[email protected]>
tools/zynqmpimage.c

index bb54f41a153d4fd22d085eee99ce9659bff556d6..05af1e81a2451ad5b57543f71fe5c1a740ef0d7f 100644 (file)
@@ -262,9 +262,7 @@ void zynqmpimage_print_header(const void *ptr, struct image_tool_params *params)
                for (i = 0; i < le32_to_cpu(iht->nr_parts); i++) {
                        next = le32_to_cpu(ph->next_partition_offset) * 4;
 
-                       /* Partition 0 is the base image itself */
-                       if (i)
-                               print_partition(ptr, ph);
+                       print_partition(ptr, ph);
 
                        ph = (void *)ptr + next;
                }
This page took 0.030319 seconds and 4 git commands to generate.