build/patch/u-boot/legacy/u-boot-clearfog/add-boot-marvell.cmd-backward-compatibility.patch

43 lines
1.5 KiB
Diff
Raw Permalink Normal View History

diff --git a/include/config_distro_bootcmd.h b/include/config_distro_bootcmd.h
index 5c469a2..be00de5 100644
--- a/include/config_distro_bootcmd.h
+++ b/include/config_distro_bootcmd.h
@@ -352,6 +352,7 @@
"boot_a_script=" \
"load ${devtype} ${devnum}:${distro_bootpart} " \
"${scriptaddr} ${prefix}${script}; " \
+ "setenv boot_interface ${devtype};" \
"source ${scriptaddr}\0" \
\
"scan_dev_for_scripts=" \
diff --git a/include/configs/clearfog.h b/include/configs/clearfog.h
index 6c74d24..34cfb01 100644
--- a/include/configs/clearfog.h
+++ b/include/configs/clearfog.h
@@ -208,11 +208,11 @@
BOOT_TARGET_DEVICES_DHCP(func)
#endif
-#define KERNEL_ADDR_R __stringify(0x800000)
-#define FDT_ADDR_R __stringify(0x100000)
-#define RAMDISK_ADDR_R __stringify(0x1800000)
-#define SCRIPT_ADDR_R __stringify(0x200000)
-#define PXEFILE_ADDR_R __stringify(0x300000)
+#define KERNEL_ADDR_R __stringify(0x2080000)
+#define FDT_ADDR_R __stringify(0x2040000)
+#define RAMDISK_ADDR_R __stringify(0x2880000)
+#define SCRIPT_ADDR_R __stringify(0x3000000)
+#define PXEFILE_ADDR_R __stringify(0x3100000)
#define LOAD_ADDRESS_ENV_SETTINGS \
"kernel_addr_r=" KERNEL_ADDR_R "\0" \
@@ -234,6 +234,8 @@
LOAD_ADDRESS_ENV_SETTINGS \
"fdtfile=" DEFAULT_DEVICE_TREE "\0" \
"console=ttyS0,115200\0" \
+ "loadaddr=0x02000000\0" \
+ "fdt_addr=" FDT_ADDR_R "\0" \
"autoload=no\0" \
BOOTENV