build/patch/u-boot/u-boot-rk3328-default/add-fdtfile-env-variable.patch
2017-08-20 16:13:47 +03:00

18 lines
524 B
Diff

diff --git a/include/configs/rk3328_common.h b/include/configs/rk3328_common.h
index 5a06244594..8bf67a5205 100644
--- a/include/configs/rk3328_common.h
+++ b/include/configs/rk3328_common.h
@@ -51,10 +51,13 @@
"kernel_addr_r=0x02000000\0" \
"ramdisk_addr_r=0x04000000\0"
+#define FDTFILE "rockchip/" CONFIG_DEFAULT_DEVICE_TREE ".dtb"
+
#include <config_distro_bootcmd.h>
#define CONFIG_EXTRA_ENV_SETTINGS \
ENV_MEM_LAYOUT_SETTINGS \
"partitions=" PARTS_DEFAULT \
+ "fdtfile=" FDTFILE "\0" \
BOOTENV
#endif