summaryrefslogtreecommitdiff
path: root/disk/part_iso.c
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2016-04-11 14:16:15 (GMT)
committerTom Rini <trini@konsulko.com>2016-04-18 21:11:34 (GMT)
commit2579c67478b9606ae7ff1370165e9f222fe19950 (patch)
tree8e6bd2cb376e07c42ffa8a8d1faa2b6c802561a8 /disk/part_iso.c
parentef9e6de5409535bde164f087c31ac865800cbf14 (diff)
downloadu-boot-2579c67478b9606ae7ff1370165e9f222fe19950.tar.xz
iso: Start with partition 1
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 <agraf@suse.de>
Diffstat (limited to 'disk/part_iso.c')
-rw-r--r--disk/part_iso.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/disk/part_iso.c b/disk/part_iso.c
index b7a5381..5adb349 100644
--- a/disk/part_iso.c
+++ b/disk/part_iso.c
@@ -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) {
@@ -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) = {