All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/1] rockchip: rk3288: provide ${fdtfile}
@ 2018-04-12 22:45 Heinrich Schuchardt
  2018-04-13  7:54 ` Kever Yang
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Heinrich Schuchardt @ 2018-04-12 22:45 UTC (permalink / raw)
  To: u-boot

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.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
---
 include/configs/rk3288_common.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/configs/rk3288_common.h b/include/configs/rk3288_common.h
index 78595b86ec..762a206143 100644
--- a/include/configs/rk3288_common.h
+++ b/include/configs/rk3288_common.h
@@ -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 \
-- 
2.14.2

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [U-Boot] [PATCH 1/1] rockchip: rk3288: provide ${fdtfile}
  2018-04-12 22:45 [U-Boot] [PATCH 1/1] rockchip: rk3288: provide ${fdtfile} Heinrich Schuchardt
@ 2018-04-13  7:54 ` Kever Yang
  2018-04-13  8:01   ` Kever Yang
  2018-04-13  8:24   ` Mark Kettenis
  2018-04-25 10:04 ` [U-Boot] [U-Boot,1/1] " Philipp Tomsich
                   ` (2 subsequent siblings)
  3 siblings, 2 replies; 8+ messages in thread
From: Kever Yang @ 2018-04-13  7:54 UTC (permalink / raw)
  To: u-boot

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
On 04/13/2018 06:45 AM, Heinrich Schuchardt wrote:
> 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.
>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
> ---
>  include/configs/rk3288_common.h | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/include/configs/rk3288_common.h b/include/configs/rk3288_common.h
> index 78595b86ec..762a206143 100644
> --- a/include/configs/rk3288_common.h
> +++ b/include/configs/rk3288_common.h
> @@ -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 \

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [U-Boot] [PATCH 1/1] rockchip: rk3288: provide ${fdtfile}
  2018-04-13  7:54 ` Kever Yang
@ 2018-04-13  8:01   ` Kever Yang
  2018-04-13  9:13     ` Heinrich Schuchardt
  2018-04-13  8:24   ` Mark Kettenis
  1 sibling, 1 reply; 8+ messages in thread
From: Kever Yang @ 2018-04-13  8:01 UTC (permalink / raw)
  To: u-boot

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
On 04/13/2018 03:54 PM, Kever Yang wrote:
> 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
> On 04/13/2018 06:45 AM, Heinrich Schuchardt wrote:
>> 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.
>>
>> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
>> ---
>>  include/configs/rk3288_common.h | 1 +
>>  1 file changed, 1 insertion(+)
>>
>> diff --git a/include/configs/rk3288_common.h b/include/configs/rk3288_common.h
>> index 78595b86ec..762a206143 100644
>> --- a/include/configs/rk3288_common.h
>> +++ b/include/configs/rk3288_common.h
>> @@ -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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [U-Boot] [PATCH 1/1] rockchip: rk3288: provide ${fdtfile}
  2018-04-13  7:54 ` Kever Yang
  2018-04-13  8:01   ` Kever Yang
@ 2018-04-13  8:24   ` Mark Kettenis
  1 sibling, 0 replies; 8+ messages in thread
From: Mark Kettenis @ 2018-04-13  8:24 UTC (permalink / raw)
  To: u-boot

> From: Kever Yang <kever.yang@rock-chips.com>
> Date: Fri, 13 Apr 2018 15:54:07 +0800
> 
> 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.

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.

> Thanks,
> - Kever
> On 04/13/2018 06:45 AM, Heinrich Schuchardt wrote:
> > 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.
> >
> > Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
> > ---
> >  include/configs/rk3288_common.h | 1 +
> >  1 file changed, 1 insertion(+)
> >
> > diff --git a/include/configs/rk3288_common.h b/include/configs/rk3288_common.h
> > index 78595b86ec..762a206143 100644
> > --- a/include/configs/rk3288_common.h
> > +++ b/include/configs/rk3288_common.h
> > @@ -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
> 

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [U-Boot] [PATCH 1/1] rockchip: rk3288: provide ${fdtfile}
  2018-04-13  8:01   ` Kever Yang
@ 2018-04-13  9:13     ` Heinrich Schuchardt
  0 siblings, 0 replies; 8+ messages in thread
From: Heinrich Schuchardt @ 2018-04-13  9:13 UTC (permalink / raw)
  To: u-boot



On 04/13/2018 10:01 AM, Kever Yang wrote:
> 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
> On 04/13/2018 03:54 PM, Kever Yang wrote:
>> 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

>>
>> Thanks,
>> - Kever
>> On 04/13/2018 06:45 AM, Heinrich Schuchardt wrote:
>>> 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.
>>>
>>> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
>>> ---
>>>   include/configs/rk3288_common.h | 1 +
>>>   1 file changed, 1 insertion(+)
>>>
>>> diff --git a/include/configs/rk3288_common.h b/include/configs/rk3288_common.h
>>> index 78595b86ec..762a206143 100644
>>> --- a/include/configs/rk3288_common.h
>>> +++ b/include/configs/rk3288_common.h
>>> @@ -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
> 
> 
> 

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [U-Boot] [U-Boot,1/1] rockchip: rk3288: provide ${fdtfile}
  2018-04-12 22:45 [U-Boot] [PATCH 1/1] rockchip: rk3288: provide ${fdtfile} Heinrich Schuchardt
  2018-04-13  7:54 ` Kever Yang
@ 2018-04-25 10:04 ` Philipp Tomsich
  2018-04-25 10:04 ` Philipp Tomsich
  2018-04-26  7:05 ` Philipp Tomsich
  3 siblings, 0 replies; 8+ messages in thread
From: Philipp Tomsich @ 2018-04-25 10:04 UTC (permalink / raw)
  To: u-boot

> 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.
> 
> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
> ---
>  include/configs/rk3288_common.h | 1 +
>  1 file changed, 1 insertion(+)
> 

Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [U-Boot] [U-Boot,1/1] rockchip: rk3288: provide ${fdtfile}
  2018-04-12 22:45 [U-Boot] [PATCH 1/1] rockchip: rk3288: provide ${fdtfile} Heinrich Schuchardt
  2018-04-13  7:54 ` Kever Yang
  2018-04-25 10:04 ` [U-Boot] [U-Boot,1/1] " Philipp Tomsich
@ 2018-04-25 10:04 ` Philipp Tomsich
  2018-04-26  7:05 ` Philipp Tomsich
  3 siblings, 0 replies; 8+ messages in thread
From: Philipp Tomsich @ 2018-04-25 10:04 UTC (permalink / raw)
  To: u-boot

> 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.
> 
> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
> ---
>  include/configs/rk3288_common.h | 1 +
>  1 file changed, 1 insertion(+)
> 

Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [U-Boot] [U-Boot,1/1] rockchip: rk3288: provide ${fdtfile}
  2018-04-12 22:45 [U-Boot] [PATCH 1/1] rockchip: rk3288: provide ${fdtfile} Heinrich Schuchardt
                   ` (2 preceding siblings ...)
  2018-04-25 10:04 ` Philipp Tomsich
@ 2018-04-26  7:05 ` Philipp Tomsich
  3 siblings, 0 replies; 8+ messages in thread
From: Philipp Tomsich @ 2018-04-26  7:05 UTC (permalink / raw)
  To: u-boot

> 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.
> 
> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
> Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
> Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
> ---
>  include/configs/rk3288_common.h | 1 +
>  1 file changed, 1 insertion(+)
> 

Applied to u-boot-rockchip, thanks!

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2018-04-26  7:05 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-12 22:45 [U-Boot] [PATCH 1/1] rockchip: rk3288: provide ${fdtfile} Heinrich Schuchardt
2018-04-13  7:54 ` Kever Yang
2018-04-13  8:01   ` Kever Yang
2018-04-13  9:13     ` Heinrich Schuchardt
2018-04-13  8:24   ` Mark Kettenis
2018-04-25 10:04 ` [U-Boot] [U-Boot,1/1] " Philipp Tomsich
2018-04-25 10:04 ` Philipp Tomsich
2018-04-26  7:05 ` Philipp Tomsich

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.