build/patch/u-boot/u-boot-rockchip64-default/add_fdtfile_dt_overlays.patch

36 lines
994 B
Diff

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
old mode 100644
new mode 100755
index 84462f3..3291f9f
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -1112,6 +1112,8 @@ config ARCH_ROCKCHIP
select DM_USB if USB
select DM_PWM
select DM_REGULATOR
+ select OF_LIBFDT
+ select OF_LIBFDT_OVERLAY
select CMD_ROCKUSB if USB_GADGET_DOWNLOAD
select ENABLE_ARM_SOC_BOOT0_HOOK
imply CMD_FASTBOOT
diff --git a/include/configs/rk3328_common.h b/include/configs/rk3328_common.h
old mode 100644
new mode 100755
index 513237e..a1bcebd
--- a/include/configs/rk3328_common.h
+++ b/include/configs/rk3328_common.h
@@ -73,12 +73,13 @@
"fdt_addr_r=0x01f00000\0" \
"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 \
- "fdtfile=" FDTFILE \
"partitions=" PARTS_DEFAULT \
+ "fdtfile=" FDTFILE "\0" \
BOOTENV
#endif