Adjust Pine64-default u-boot environment patch

This commit is contained in:
zador-blood-stained
2017-01-09 23:31:08 +03:00
parent cf2a760059
commit 2479d35934

View File

@@ -1,22 +1,22 @@
diff --git a/u-boot-pine64/include/configs/sun50iw1p1.h b/u-boot-pine64/include/configs/sun50iw1p1.h
index 563f4df..1e62081 100644
index ccbad4a..f0650ed 100644
--- a/u-boot-pine64/include/configs/sun50iw1p1.h
+++ b/u-boot-pine64/include/configs/sun50iw1p1.h
@@ -350,7 +350,7 @@
@@ -352,7 +352,7 @@
"initrd_filename=initrd.img\0" \
"bootenv_filename=uEnv.txt\0" \
"load_bootenv=" \
- "fatload mmc 0:1 ${load_addr} ${bootenv_filename}\0" \
+ "ext4load mmc 0:1 ${load_addr} /boot/${bootenv_filename} || fatload mmc 0:1 ${load_addr} ${bootenv_filename} || ext4load mmc 0:1 ${load_addr} /boot/${bootenv_filename}\0" \
- "fatload mmc ${boot_part} ${load_addr} ${bootenv_filename}\0" \
+ "ext4load mmc ${boot_part} ${load_addr} /boot/${bootenv_filename} || fatload mmc ${boot_part} ${load_addr} ${bootenv_filename} || ext4load mmc ${boot_part} ${load_addr} /boot/${bootenv_filename}\0" \
"import_bootenv=" \
"env import -t ${load_addr} ${filesize}\0" \
"load_dtb=" \
@@ -366,7 +366,7 @@
"fatload mmc 0:1 ${initrd_addr} ${initrd_filename}; "\
@@ -368,7 +368,7 @@
"fatload mmc ${boot_part} ${initrd_addr} ${initrd_filename}; "\
"setenv initrd_size ${filesize}\0" \
"load_bootscript=" \
- "fatload mmc 0:1 ${load_addr} ${script}\0" \
+ "ext4load mmc 0:1 ${load_addr} /boot/${script} || fatload mmc 0:1 ${load_addr} ${script} || ext4load mmc 0:1 ${load_addr} ${script}\0" \
- "fatload mmc ${boot_part} ${load_addr} ${script}\0" \
+ "ext4load mmc ${boot_part} ${load_addr} /boot/${script} || fatload mmc ${boot_part} ${load_addr} ${script} || ext4load mmc ${boot_part} ${load_addr} ${script}\0" \
"scriptboot=source ${load_addr}\0" \
"set_cmdline=" \
"setenv bootargs console=${console} ${optargs} " \