@ -82,11 +82,11 @@ static int validate_gpt_header(gpt_header *gpt_h, lbaint_t lba,
uint32_t calc_crc32 ;
uint32_t calc_crc32 ;
/* Check the GPT header signature */
/* Check the GPT header signature */
if ( le64_to_cpu ( gpt_h - > signature ) ! = GPT_HEADER_SIGNATURE ) {
if ( le64_to_cpu ( gpt_h - > signature ) ! = GPT_HEADER_SIGNATURE_UBOOT ) {
printf ( " %s signature is wrong: 0x%llX != 0x%llX \n " ,
printf ( " %s signature is wrong: 0x%llX != 0x%llX \n " ,
" GUID Partition Table Header " ,
" GUID Partition Table Header " ,
le64_to_cpu ( gpt_h - > signature ) ,
le64_to_cpu ( gpt_h - > signature ) ,
GPT_HEADER_SIGNATURE ) ;
GPT_HEADER_SIGNATURE_UBOOT ) ;
return - 1 ;
return - 1 ;
}
}
@ -603,7 +603,7 @@ static uint32_t partition_entries_offset(struct blk_desc *dev_desc)
int gpt_fill_header ( struct blk_desc * dev_desc , gpt_header * gpt_h ,
int gpt_fill_header ( struct blk_desc * dev_desc , gpt_header * gpt_h ,
char * str_guid , int parts_count )
char * str_guid , int parts_count )
{
{
gpt_h - > signature = cpu_to_le64 ( GPT_HEADER_SIGNATURE ) ;
gpt_h - > signature = cpu_to_le64 ( GPT_HEADER_SIGNATURE_UBOOT ) ;
gpt_h - > revision = cpu_to_le32 ( GPT_HEADER_REVISION_V1 ) ;
gpt_h - > revision = cpu_to_le32 ( GPT_HEADER_REVISION_V1 ) ;
gpt_h - > header_size = cpu_to_le32 ( sizeof ( gpt_header ) ) ;
gpt_h - > header_size = cpu_to_le32 ( sizeof ( gpt_header ) ) ;
gpt_h - > my_lba = cpu_to_le64 ( 1 ) ;
gpt_h - > my_lba = cpu_to_le64 ( 1 ) ;