Skip to content

Commit c015051

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

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

common/cmd_cfgload.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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)