build/patch/u-boot/u-boot-odroidc2/cfgload-support-ext4-boot.patch
2016-12-11 17:40:27 +03:00

25 lines
904 B
Diff

diff --git a/common/cmd_cfgload.c b/common/cmd_cfgload.c
index 09c618e..1f2a847 100644
--- a/common/cmd_cfgload.c
+++ b/common/cmd_cfgload.c
@@ -52,7 +52,7 @@ static char* read_cfgload(void)
setenv("filesize", "0");
- sprintf(cmd, "fatload mmc 0:1 0x%p boot.ini", (void *)p);
+ sprintf(cmd, "ext4load mmc 0:1 0x%p /boot/boot.ini || fatload mmc 0:1 0x%p boot.ini || ext4load mmc 0:1 0x%p boot.ini", (void *)p, (void *)p ,(void *)p);
run_command(cmd, 0);
filesize = getenv_ulong("filesize", 16, 0);
@@ -129,9 +129,9 @@ static int do_load_cfgload(cmd_tbl_t *cmdtp, int flag, int argc,
U_BOOT_CMD(
cfgload, 1, 0, do_load_cfgload,
- "read 'boot.ini' from FAT partiton",
+ "read 'boot.ini' from FAT or EXT4 partiton",
"\n"
- " - read boot.ini from the first partiton treated as FAT partiton"
+ " - read boot.ini from the first partiton"
);
/* vim: set ts=4 sw=4 tw=80: */