rockchip: rk3288: provide ${fdtfile}
PATCH 1/1 rockchip: rk3288: provide ${fdtfile}
All rk3288 default configs define CONFIG_DEFAULT_DEVICE_TREE. So we can use it to define ${fdtfile} in rk3288_common.h.
This variable is needed by the distro boot command.
--- include/configs/rk3288_common.h | 1 + 1 file changed, 1 insertion(+)
include/configs/rk3288_common.h +1 -0
@@ -73,6 +73,7 @@#define CONFIG_EXTRA_ENV_SETTINGS \ "fdt_high=0x0fffffff\0" \ "initrd_high=0x0fffffff\0" \ + "fdtfile=" CONFIG_DEFAULT_DEVICE_TREE ".dtb\0" \ "partitions=" PARTS_DEFAULT \ ENV_MEM_LAYOUT_SETTINGS \ ROCKCHIP_DEVICE_SETTINGS \
Signature · 1 line
2.14.2
PATCH 1/1 rockchip: rk3288: provide ${fdtfile}
Hi Heinrich,
What kind of issue do you met without this patch?
I think distro boot always work fine in my side without this patch.
Thanks,
- Kever
Quoted 22 lines · Heinrich Schuchardt
All rk3288 default configs define
CONFIG_DEFAULT_DEVICE_TREE. So we can use it to define ${fdtfile} inrk3288_common.h.This variable is needed by the distro boot command.
Signed-off-by Heinrich Schuchardt <[email protected]>--- include/configs/rk3288_common.h | 1 + 1 file changed, 1 insertion(+)include/configs/rk3288_common.h +1
-0@@ -73,6 +73,7 @@#define CONFIG_EXTRA_ENV_SETTINGS \ "fdt_high=0x0fffffff\0" \ "initrd_high=0x0fffffff\0" \ + "fdtfile=" CONFIG_DEFAULT_DEVICE_TREE ".dtb\0" \ "partitions=" PARTS_DEFAULT \ ENV_MEM_LAYOUT_SETTINGS \ ROCKCHIP_DEVICE_SETTINGS \
PATCH 1/1 rockchip: rk3288: provide ${fdtfile}
Hi Heinrich,
Does this fdtfile will used for kernel? There should be a fdt config for kernel dtb in boot config file,
and we should not use U-Boot dtb for kernel, they are different.
Thanks,
- Kever
Quoted 36 lines · Kever Yang
Hi Heinrich,
What kind of issue do you met without this patch?
I think distro boot always work fine in my side without this patch.
Thanks,
- KeverQuoted 15 lines · Heinrich Schuchardt
All rk3288 default configs define
CONFIG_DEFAULT_DEVICE_TREE. So we can use it to define ${fdtfile} inrk3288_common.h.This variable is needed by the distro boot command.
Signed-off-by Heinrich Schuchardt <[email protected]>--- include/configs/rk3288_common.h | 1 + 1 file changed, 1 insertion(+)include/configs/rk3288_common.h +0
-0include/configs/rk3288_common.h line 79
Quoted 7 lines
include/configs/rk3288_common.h +1
-0@@ -73,6 +73,7 @@#define CONFIG_EXTRA_ENV_SETTINGS \ "fdt_high=0x0fffffff\0" \ "initrd_high=0x0fffffff\0" \ + "fdtfile=" CONFIG_DEFAULT_DEVICE_TREE ".dtb\0" \ "partitions=" PARTS_DEFAULT \ ENV_MEM_LAYOUT_SETTINGS \ ROCKCHIP_DEVICE_SETTINGS \_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
https://lists.denx.de/listinfo/u-boot
PATCH 1/1 rockchip: rk3288: provide ${fdtfile}
Quoted 5 lines · Kever Yang
Hi Heinrich,
Does this fdtfile will used for kernel? There should be a fdt config
for kernel dtb in boot config file,
Quoted 11 lines
and we should not use U-Boot dtb for kernel, they are different.
Thanks,
- KeverQuoted 5 lines · Kever Yang
Hi Heinrich,
What kind of issue do you met without this patch?
I think distro boot always work fine in my side without this patch.
Run make tinker-rk3288_defconfig
In the environment you get:
soc=rockchip
board=tinker_rk3288
According to doc/README.pxe:
If the fdtfile environment variable is set, <path>/<fdtfile> is retrieved. Otherwise, the filename is generated from the soc and board environment, i.e. <path>/<soc>-<board>.dtb is retrieved.
The logic is implemented in file cmd/pxe.c.
So instead of retrieving tinker_rk3288.dtb we will try to read rockchip-tinker_rk3288.dtb which is incorrect.
If you want to look downstream, Debian package flash-kernel uses ${fdtfile} as the preferred way to identify the dtb file. The variable is prerequisite for images that shall run on different SOCs. See /etc/flash-kernel/bootscript/bootscr.uboot-generic.
Best regards
Heinrich
Quoted 34 lines
Quoted 31 lines
Thanks,
- KeverQuoted 15 lines · Heinrich Schuchardt
All rk3288 default configs define
CONFIG_DEFAULT_DEVICE_TREE. So we can use it to define ${fdtfile} inrk3288_common.h.This variable is needed by the distro boot command.
Signed-off-by Heinrich Schuchardt <[email protected]>--- include/configs/rk3288_common.h | 1 + 1 file changed, 1 insertion(+)include/configs/rk3288_common.h +0
-0include/configs/rk3288_common.h line 79
Quoted 7 lines
include/configs/rk3288_common.h +1
-0@@ -73,6 +73,7 @@#define CONFIG_EXTRA_ENV_SETTINGS \ "fdt_high=0x0fffffff\0" \ "initrd_high=0x0fffffff\0" \ + "fdtfile=" CONFIG_DEFAULT_DEVICE_TREE ".dtb\0" \ "partitions=" PARTS_DEFAULT \ ENV_MEM_LAYOUT_SETTINGS \ ROCKCHIP_DEVICE_SETTINGS \_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
https://lists.denx.de/listinfo/u-boot
PATCH 1/1 rockchip: rk3288: provide ${fdtfile}
In reply to Kever YangQuoted 8 lines
From: Kever Yang <[email protected]>
Date: Fri, 13 Apr 2018 15:54:07 +0800Hi Heinrich,
What kind of issue do you met without this patch?
I think distro boot always work fine in my side without this patch.
Without this, U-Boot won't load a new device tree from disk before starting the EFI application. This means the device tree provided by U-Boot will be used which doesn't work very well with newer kernels.
Quoted 32 lines
Thanks,
- KeverQuoted 15 lines · Heinrich Schuchardt
All rk3288 default configs define
CONFIG_DEFAULT_DEVICE_TREE. So we can use it to define ${fdtfile} inrk3288_common.h.This variable is needed by the distro boot command.
Signed-off-by Heinrich Schuchardt <[email protected]>--- include/configs/rk3288_common.h | 1 + 1 file changed, 1 insertion(+)include/configs/rk3288_common.h +0
-0include/configs/rk3288_common.h line 79
Quoted 7 lines
include/configs/rk3288_common.h +1
-0@@ -73,6 +73,7 @@#define CONFIG_EXTRA_ENV_SETTINGS \ "fdt_high=0x0fffffff\0" \ "initrd_high=0x0fffffff\0" \ + "fdtfile=" CONFIG_DEFAULT_DEVICE_TREE ".dtb\0" \ "partitions=" PARTS_DEFAULT \ ENV_MEM_LAYOUT_SETTINGS \ ROCKCHIP_DEVICE_SETTINGS \_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
https://lists.denx.de/listinfo/u-boot
PATCH 1/1 rockchip: rk3288: provide ${fdtfile}
In reply to Heinrich SchuchardtQuoted 10 lines
All rk3288 default configs define
CONFIG_DEFAULT_DEVICE_TREE. So we can use it to define ${fdtfile} inrk3288_common.h.This variable is needed by the distro boot command.
Signed-off-by Heinrich Schuchardt <[email protected]>--- include/configs/rk3288_common.h | 1 + 1 file changed, 1 insertion(+)
PATCH 1/1 rockchip: rk3288: provide ${fdtfile}
In reply to Heinrich SchuchardtQuoted 10 lines
All rk3288 default configs define
CONFIG_DEFAULT_DEVICE_TREE. So we can use it to define ${fdtfile} inrk3288_common.h.This variable is needed by the distro boot command.
Signed-off-by Heinrich Schuchardt <[email protected]>--- include/configs/rk3288_common.h | 1 + 1 file changed, 1 insertion(+)
PATCH 1/1 rockchip: rk3288: provide ${fdtfile}
In reply to Heinrich SchuchardtQuoted 12 lines
All rk3288 default configs define
CONFIG_DEFAULT_DEVICE_TREE. So we can use it to define ${fdtfile} inrk3288_common.h.This variable is needed by the distro boot command.
Signed-off-by Heinrich Schuchardt <[email protected]>Acked-by Philipp Tomsich <[email protected]>Reviewed-by Philipp Tomsich <[email protected]>--- include/configs/rk3288_common.h | 1 + 1 file changed, 1 insertion(+)
Applied to u-boot-rockchip, thanks!