Skip to content

Commit

Permalink
iso: Start with partition 1
Browse files Browse the repository at this point in the history
The generic partition code treats partition 0 as "whole disk". So
we should start with partition 1 as the first partition in the iso
partition table.

Signed-off-by: Alexander Graf <[email protected]>
  • Loading branch information
agraf authored and trini committed Apr 18, 2016
1 parent ef9e6de commit 2579c67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions disk/part_iso.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ int part_get_info_iso_verb(struct blk_desc *dev_desc, int part_num,
}
#endif
/* the validation entry seems to be ok, now search the "partition" */
entry_num=0;
entry_num=1;
offset=0x20;
strcpy((char *)info->type, "U-Boot");
switch(dev_desc->if_type) {
Expand Down Expand Up @@ -225,7 +225,7 @@ static int part_test_iso(struct blk_desc *dev_desc)
{
disk_partition_t info;

return part_get_info_iso_verb(dev_desc, 0, &info, 0);
return part_get_info_iso_verb(dev_desc, 1, &info, 1);
}

U_BOOT_PART_TYPE(iso) = {
Expand Down

0 comments on commit 2579c67

Please sign in to comment.