Commit 2579c67478b9606ae7ff1370165e9f222fe19950

Authored by Alexander Graf
Committed by Tom Rini
1 parent ef9e6de540

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>

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

... ... @@ -115,7 +115,7 @@
115 115 }
116 116 #endif
117 117 /* the validation entry seems to be ok, now search the "partition" */
118   - entry_num=0;
  118 + entry_num=1;
119 119 offset=0x20;
120 120 strcpy((char *)info->type, "U-Boot");
121 121 switch(dev_desc->if_type) {
... ... @@ -225,7 +225,7 @@
225 225 {
226 226 disk_partition_t info;
227 227  
228   - return part_get_info_iso_verb(dev_desc, 0, &info, 0);
  228 + return part_get_info_iso_verb(dev_desc, 1, &info, 1);
229 229 }
230 230  
231 231 U_BOOT_PART_TYPE(iso) = {