Skip to content

Commit 5d57078

Browse files
committed
Add support for loading the boot.ini from a ext4 fs
1 parent eb5d2d1 commit 5d57078

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

common/cmd_cfgload.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ static int valid_command(const char* p)
3838
return !(p == q);
3939
}
4040

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

58+
sprintf(cmd, "ext4load mmc 0:1 0x%p /boot.ini", (void *)p);
59+
run_command(cmd, 0);
60+
61+
sprintf(cmd, "ext4load mmc 0:1 0x%p /boot/boot.ini", (void *)p);
62+
run_command(cmd, 0);
63+
5864
filesize = getenv_ulong("filesize", 16, 0);
5965
if (0 == filesize) {
6066
printf("cfgload: no boot.ini or empty file\n");

0 commit comments

Comments
 (0)