|
|
@ -43,13 +43,12 @@ static int mmc_load_image_raw_sector(struct mmc *mmc, unsigned long sector) |
|
|
|
(void *) spl_image.load_addr); |
|
|
|
(void *) spl_image.load_addr); |
|
|
|
|
|
|
|
|
|
|
|
end: |
|
|
|
end: |
|
|
|
|
|
|
|
if (count == 0) { |
|
|
|
#ifdef CONFIG_SPL_LIBCOMMON_SUPPORT |
|
|
|
#ifdef CONFIG_SPL_LIBCOMMON_SUPPORT |
|
|
|
if (count == 0) |
|
|
|
puts("spl: mmc block read error\n"); |
|
|
|
printf("spl: mmc block read error\n"); |
|
|
|
|
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
if (count == 0) |
|
|
|
|
|
|
|
return -1; |
|
|
|
return -1; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return 0; |
|
|
|
return 0; |
|
|
|
} |
|
|
|
} |
|
|
@ -63,7 +62,7 @@ static int mmc_load_image_raw_partition(struct mmc *mmc, int partition) |
|
|
|
err = get_partition_info(&mmc->block_dev, partition, &info); |
|
|
|
err = get_partition_info(&mmc->block_dev, partition, &info); |
|
|
|
if (err) { |
|
|
|
if (err) { |
|
|
|
#ifdef CONFIG_SPL_LIBCOMMON_SUPPORT |
|
|
|
#ifdef CONFIG_SPL_LIBCOMMON_SUPPORT |
|
|
|
printf("spl: partition error\n"); |
|
|
|
puts("spl: partition error\n"); |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
return -1; |
|
|
|
return -1; |
|
|
|
} |
|
|
|
} |
|
|
@ -83,7 +82,7 @@ static int mmc_load_image_raw_os(struct mmc *mmc) |
|
|
|
(void *) CONFIG_SYS_SPL_ARGS_ADDR); |
|
|
|
(void *) CONFIG_SYS_SPL_ARGS_ADDR); |
|
|
|
if (count == 0) { |
|
|
|
if (count == 0) { |
|
|
|
#ifdef CONFIG_SPL_LIBCOMMON_SUPPORT |
|
|
|
#ifdef CONFIG_SPL_LIBCOMMON_SUPPORT |
|
|
|
printf("spl: mmc block read error\n"); |
|
|
|
puts("spl: mmc block read error\n"); |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
return -1; |
|
|
|
return -1; |
|
|
|
} |
|
|
|
} |
|
|
|