sun60iw2: rescan MMC before loading Armbian boot logo
This commit is contained in:
parent
b8a17fe05c
commit
b4e8f91dd0
@ -76,8 +76,18 @@ static struct file_info_t *load_armbian_boot_logo(const char *name)
|
||||
{
|
||||
loff_t file_size, read_size;
|
||||
struct file_info_t *file;
|
||||
static bool mmc_ready;
|
||||
|
||||
if (!name || fs_set_blk_dev("mmc", "0:1", FS_TYPE_FAT))
|
||||
if (!name)
|
||||
return NULL;
|
||||
|
||||
if (!mmc_ready) {
|
||||
run_command("mmc dev 0", 0);
|
||||
run_command("mmc rescan", 0);
|
||||
mmc_ready = true;
|
||||
}
|
||||
|
||||
if (fs_set_blk_dev("mmc", "0:1", FS_TYPE_FAT))
|
||||
return NULL;
|
||||
|
||||
if (!fs_exists(name))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user