mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-16 14:08:45 +00:00
tools: zynqmpimage: show info on partition 0
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 <brandon.maier@collins.com> Link: https://lore.kernel.org/r/20240104185258.39465-1-brandon.maier@collins.com Signed-off-by: Michal Simek <michal.simek@amd.com>
This commit is contained in:
parent
b121dc80c3
commit
85acf83a09
1 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue