All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] arm/dt: Fix babbage.dts memory node
@ 2011-04-22  6:25 Shawn Guo
       [not found] ` <1303453526-27523-1-git-send-email-shawn.guo-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Shawn Guo @ 2011-04-22  6:25 UTC (permalink / raw)
  To: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ
  Cc: linaro-kernel-cunTk1MwBs8s++Sfvej+rw, patches-QSEj5FYQhm4dnm+yROfE0A

Without device_type property set as memory for the node, the generated
dtb can still work when it gets passed to kernel by u-boot, since
u-boot will fix it up.  But kernel will not boot due to that it fails
to parse the memory node, when the dtb is appended to kernel image as
it is.

The patch adds a property device_type="memory" for memory node to fix
the problem.

Signed-off-by: Shawn Guo <shawn.guo-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
---
It applies on branch devicetree/test.

 arch/arm/boot/dts/babbage.dts |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/arch/arm/boot/dts/babbage.dts b/arch/arm/boot/dts/babbage.dts
index 8f9b47c..4805168 100644
--- a/arch/arm/boot/dts/babbage.dts
+++ b/arch/arm/boot/dts/babbage.dts
@@ -21,6 +21,7 @@
 	interrupt-parent = <&tzic>;
 
 	memory {
+		device_type = "memory";
 		reg = <0x90000000 0x20000000>;
 	};
 
-- 
1.7.4.1

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

* Re: [PATCH] arm/dt: Fix babbage.dts memory node
       [not found] ` <1303453526-27523-1-git-send-email-shawn.guo-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
@ 2011-04-23 21:39   ` Zach Pfeffer
       [not found]     ` <BANLkTikNodocgONEpqASBy1iAZzu50w3vQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  2011-04-24 12:48   ` Shawn Guo
  2011-05-05 15:23   ` Shawn Guo
  2 siblings, 1 reply; 5+ messages in thread
From: Zach Pfeffer @ 2011-04-23 21:39 UTC (permalink / raw)
  To: Shawn Guo
  Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ,
	linaro-kernel-cunTk1MwBs8s++Sfvej+rw,
	patches-QSEj5FYQhm4dnm+yROfE0A

On 22 April 2011 01:25, Shawn Guo <shawn.guo-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> wrote:
> Without device_type property set as memory for the node, the generated
> dtb can still work when it gets passed to kernel by u-boot, since
> u-boot will fix it up.  But kernel will not boot due to that it fails
> to parse the memory node, when the dtb is appended to kernel image as
> it is.

I'm a little confused. The first part of the statement implies that
the kernel will boot without the device_type property, but the second
part of the statement says that the kernel won't boot.

> The patch adds a property device_type="memory" for memory node to fix
> the problem.
>
> Signed-off-by: Shawn Guo <shawn.guo-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
> ---
> It applies on branch devicetree/test.
>
>  arch/arm/boot/dts/babbage.dts |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/boot/dts/babbage.dts b/arch/arm/boot/dts/babbage.dts
> index 8f9b47c..4805168 100644
> --- a/arch/arm/boot/dts/babbage.dts
> +++ b/arch/arm/boot/dts/babbage.dts
> @@ -21,6 +21,7 @@
>        interrupt-parent = <&tzic>;
>
>        memory {
> +               device_type = "memory";
>                reg = <0x90000000 0x20000000>;
>        };
>
> --
> 1.7.4.1
>
>
> _______________________________________________
> linaro-kernel mailing list
> linaro-kernel-cunTk1MwBs8s++Sfvej+rw@public.gmane.org
> http://lists.linaro.org/mailman/listinfo/linaro-kernel
>

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

* Re: [PATCH] arm/dt: Fix babbage.dts memory node
       [not found]     ` <BANLkTikNodocgONEpqASBy1iAZzu50w3vQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2011-04-24  0:28       ` Shawn Guo
  0 siblings, 0 replies; 5+ messages in thread
From: Shawn Guo @ 2011-04-24  0:28 UTC (permalink / raw)
  To: Zach Pfeffer
  Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ,
	linaro-kernel-cunTk1MwBs8s++Sfvej+rw,
	patches-QSEj5FYQhm4dnm+yROfE0A

On Sat, Apr 23, 2011 at 04:39:15PM -0500, Zach Pfeffer wrote:
> On 22 April 2011 01:25, Shawn Guo <shawn.guo-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> wrote:
> > Without device_type property set as memory for the node, the generated
> > dtb can still work when it gets passed to kernel by u-boot, since
> > u-boot will fix it up.  But kernel will not boot due to that it fails
> > to parse the memory node, when the dtb is appended to kernel image as
> > it is.
> 
> I'm a little confused. The first part of the statement implies that
> the kernel will boot without the device_type property, but the second
> part of the statement says that the kernel won't boot.
> 
The second part is talking about using John Bonesio's patch to append
dtb to zImage like: 'cat zImage babbage.dtb > zImage_w_dtb'.

-- 
Regards,
Shawn

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

* Re: [PATCH] arm/dt: Fix babbage.dts memory node
       [not found] ` <1303453526-27523-1-git-send-email-shawn.guo-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
  2011-04-23 21:39   ` Zach Pfeffer
@ 2011-04-24 12:48   ` Shawn Guo
  2011-05-05 15:23   ` Shawn Guo
  2 siblings, 0 replies; 5+ messages in thread
From: Shawn Guo @ 2011-04-24 12:48 UTC (permalink / raw)
  To: Shawn Guo
  Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ,
	linaro-kernel-cunTk1MwBs8s++Sfvej+rw,
	patches-QSEj5FYQhm4dnm+yROfE0A

Hi Grant,

Let me know if you prefer to get babbage.dts deprecated by merging it
into mx51-babbage.dts.

-- 
Regards,
Shawn

On Fri, Apr 22, 2011 at 02:25:26PM +0800, Shawn Guo wrote:
> Without device_type property set as memory for the node, the generated
> dtb can still work when it gets passed to kernel by u-boot, since
> u-boot will fix it up.  But kernel will not boot due to that it fails
> to parse the memory node, when the dtb is appended to kernel image as
> it is.
> 
> The patch adds a property device_type="memory" for memory node to fix
> the problem.
> 
> Signed-off-by: Shawn Guo <shawn.guo-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
> ---
> It applies on branch devicetree/test.
> 
>  arch/arm/boot/dts/babbage.dts |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/arm/boot/dts/babbage.dts b/arch/arm/boot/dts/babbage.dts
> index 8f9b47c..4805168 100644
> --- a/arch/arm/boot/dts/babbage.dts
> +++ b/arch/arm/boot/dts/babbage.dts
> @@ -21,6 +21,7 @@
>  	interrupt-parent = <&tzic>;
>  
>  	memory {
> +		device_type = "memory";
>  		reg = <0x90000000 0x20000000>;
>  	};
>  
> -- 
> 1.7.4.1
> 

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

* Re: [PATCH] arm/dt: Fix babbage.dts memory node
       [not found] ` <1303453526-27523-1-git-send-email-shawn.guo-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
  2011-04-23 21:39   ` Zach Pfeffer
  2011-04-24 12:48   ` Shawn Guo
@ 2011-05-05 15:23   ` Shawn Guo
  2 siblings, 0 replies; 5+ messages in thread
From: Shawn Guo @ 2011-05-05 15:23 UTC (permalink / raw)
  To: Grant Likely
  Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ,
	linaro-kernel-cunTk1MwBs8s++Sfvej+rw,
	patches-QSEj5FYQhm4dnm+yROfE0A

On Fri, Apr 22, 2011 at 02:25:26PM +0800, Shawn Guo wrote:
> Without device_type property set as memory for the node, the generated
> dtb can still work when it gets passed to kernel by u-boot, since
> u-boot will fix it up.  But kernel will not boot due to that it fails
> to parse the memory node, when the dtb is appended to kernel image as
> it is.
> 
> The patch adds a property device_type="memory" for memory node to fix
> the problem.
> 
> Signed-off-by: Shawn Guo <shawn.guo-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
> ---
> It applies on branch devicetree/test.
> 
>  arch/arm/boot/dts/babbage.dts |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/arm/boot/dts/babbage.dts b/arch/arm/boot/dts/babbage.dts
> index 8f9b47c..4805168 100644
> --- a/arch/arm/boot/dts/babbage.dts
> +++ b/arch/arm/boot/dts/babbage.dts
> @@ -21,6 +21,7 @@
>  	interrupt-parent = <&tzic>;
>  
>  	memory {
> +		device_type = "memory";
>  		reg = <0x90000000 0x20000000>;
>  	};
>  
> -- 
Hi Grant, comments?

-- 
Regards,
Shawn

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

end of thread, other threads:[~2011-05-05 15:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-22  6:25 [PATCH] arm/dt: Fix babbage.dts memory node Shawn Guo
     [not found] ` <1303453526-27523-1-git-send-email-shawn.guo-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2011-04-23 21:39   ` Zach Pfeffer
     [not found]     ` <BANLkTikNodocgONEpqASBy1iAZzu50w3vQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-04-24  0:28       ` Shawn Guo
2011-04-24 12:48   ` Shawn Guo
2011-05-05 15:23   ` Shawn Guo

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.