Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion common/cmd_cfgload.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ static int valid_command(const char* p)
return !(p == q);
}

/* Read boot.ini from FAT partition
/* Read boot.ini from the first partition
*/
static char* read_cfgload(void)
{
Expand All @@ -55,6 +55,12 @@ static char* read_cfgload(void)
sprintf(cmd, "fatload mmc 0:1 0x%p boot.ini", (void *)p);
run_command(cmd, 0);

sprintf(cmd, "ext4load mmc 0:1 0x%p /boot.ini", (void *)p);
run_command(cmd, 0);

sprintf(cmd, "ext4load mmc 0:1 0x%p /boot/boot.ini", (void *)p);
run_command(cmd, 0);

filesize = getenv_ulong("filesize", 16, 0);
if (0 == filesize) {
printf("cfgload: no boot.ini or empty file\n");
Expand Down