public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] Hi, friends, the question about the u-boot and device tree?
@ 2008-03-13 15:31 郭劲
  2008-03-13 19:21 ` Grant Likely
  2008-03-18 18:28 ` Scott Wood
  0 siblings, 2 replies; 8+ messages in thread
From: 郭劲 @ 2008-03-13 15:31 UTC (permalink / raw)
  To: u-boot

Hi,friends,

I make all the frequency(timebase-frequency;bus-frequency;clock-frequency) value
on device tree file equal to zero, I think those frequency will filled by u-boot
during bootm, but in fact, the u-boot did not fill any frequency. after bootm,
crashed. Why?

Why so many document point out that the zero value will be filled by u-boot?

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

* [U-Boot-Users] Hi, friends, the question about the u-boot and device tree?
  2008-03-13 15:31 郭劲
@ 2008-03-13 19:21 ` Grant Likely
  2008-03-18 18:28 ` Scott Wood
  1 sibling, 0 replies; 8+ messages in thread
From: Grant Likely @ 2008-03-13 19:21 UTC (permalink / raw)
  To: u-boot

On Thu, Mar 13, 2008 at 9:31 AM, ?? <guojin02@tsinghua.org.cn> wrote:
> Hi,friends,
>
>  I make all the frequency(timebase-frequency;bus-frequency;clock-frequency) value
>  on device tree file equal to zero, I think those frequency will filled by u-boot
>  during bootm, but in fact, the u-boot did not fill any frequency. after bootm,
>  crashed. Why?
>
>  Why so many document point out that the zero value will be filled by u-boot?

In most cases it will assuming that your u-boot board port is
configured to fill in those values.  You need to make sure that the
ft_board_setup function is getting called by bootm and that it fills
in those properties.

g.

-- 
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.

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

* [U-Boot-Users] Hi, friends, the question about the u-boot and device tree?
@ 2008-03-14  1:40 郭劲
  2008-03-14  5:14 ` Support Customer
  2008-03-14 13:01 ` Jerry Van Baren
  0 siblings, 2 replies; 8+ messages in thread
From: 郭劲 @ 2008-03-14  1:40 UTC (permalink / raw)
  To: u-boot

Hi,friends,

I??made follow define on my MPC8360EMDS.h file. Is it enough? The uboot still did
not fill the zero frequency on dtb. I think the ft_cpu_setup and ft_board_setup
function have been run.


/* pass open firmware flat tree */
#define CONFIG_OF_FLAT_TREE	         1
#define CONFIG_OF_BOARD_SETUP	1
/* maximum size of the flat tree (8K) */
#define OF_FLAT_TREE_MAX_SIZE	8192


>From: "Grant Likely" <grant.likely@secretlab.ca>
>Reply-To: 
>To: "????" <guojin02@tsinghua.org.cn>
>Subject: Re: [U-Boot-Users] Hi, friends, the question about the u-boot and device
tree?
>Date:Thu, 13 Mar 2008 13:21:35 -0600
>
>On Thu, Mar 13, 2008 at 9:31 AM, ???? <guojin02@tsinghua.org.cn> wrote:
>> Hi,friends,
>>
>>  I make all the frequency(timebase-frequency;bus-frequency;clock-frequency)
value
>>  on device tree file equal to zero, I think those frequency will filled by
u-boot
>>  during bootm, but in fact, the u-boot did not fill any frequency. after
bootm,
>>  crashed. Why?
>>
>>  Why so many document point out that the zero value will be filled by u-boot?
>
>In most cases it will assuming that your u-boot board port is
>configured to fill in those values.  You need to make sure that the
>ft_board_setup function is getting called by bootm and that it fills
>in those properties.
>
>g.
>
>-- 
>Grant Likely, B.Sc., P.Eng.
>Secret Lab Technologies Ltd.
> 

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

* [U-Boot-Users] Hi, friends, the question about the u-boot and device tree?
  2008-03-14  1:40 郭劲
@ 2008-03-14  5:14 ` Support Customer
  2008-03-14 13:01 ` Jerry Van Baren
  1 sibling, 0 replies; 8+ messages in thread
From: Support Customer @ 2008-03-14  5:14 UTC (permalink / raw)
  To: u-boot

Hello,

Your following question has been entered into our system with SR#1-427611553 and our engineer will be responding to you directly.

Best regards,
Freescale Semiconductor 

-----Original Message-----
From: ?? [mailto:guojin02 at tsinghua.org.cn] 
Sent: 2008?3?14? 9:41 AM
To: Grant Likely
Cc: Support Customer; linuxppc-embedded at ozlabs.org; u-boot-users at lists.sourceforge.net
Subject: Re: [U-Boot-Users] Hi, friends, the question about the u-boot and device tree?

Hi,friends,

I?made follow define on my MPC8360EMDS.h file. Is it enough? The uboot still did not fill the zero frequency on dtb. I think the ft_cpu_setup and ft_board_setup function have been run.


/* pass open firmware flat tree */
#define CONFIG_OF_FLAT_TREE	         1
#define CONFIG_OF_BOARD_SETUP	1
/* maximum size of the flat tree (8K) */
#define OF_FLAT_TREE_MAX_SIZE	8192


>From: "Grant Likely" <grant.likely@secretlab.ca>
>Reply-To: 
>To: "??" <guojin02@tsinghua.org.cn>
>Subject: Re: [U-Boot-Users] Hi, friends, the question about the u-boot 
>and device
tree?
>Date:Thu, 13 Mar 2008 13:21:35 -0600
>
>On Thu, Mar 13, 2008 at 9:31 AM, ?? <guojin02@tsinghua.org.cn> wrote:
>> Hi,friends,
>>
>>  I make all the 
>> frequency(timebase-frequency;bus-frequency;clock-frequency)
value
>>  on device tree file equal to zero, I think those frequency will 
>> filled by
u-boot
>>  during bootm, but in fact, the u-boot did not fill any frequency. 
>> after
bootm,
>>  crashed. Why?
>>
>>  Why so many document point out that the zero value will be filled by u-boot?
>
>In most cases it will assuming that your u-boot board port is 
>configured to fill in those values.  You need to make sure that the 
>ft_board_setup function is getting called by bootm and that it fills in 
>those properties.
>
>g.
>
>--
>Grant Likely, B.Sc., P.Eng.
>Secret Lab Technologies Ltd.
> 

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

* [U-Boot-Users] Hi, friends, the question about the u-boot and device tree?
  2008-03-14  1:40 郭劲
  2008-03-14  5:14 ` Support Customer
@ 2008-03-14 13:01 ` Jerry Van Baren
  1 sibling, 0 replies; 8+ messages in thread
From: Jerry Van Baren @ 2008-03-14 13:01 UTC (permalink / raw)
  To: u-boot

?? wrote:
> Hi,friends,
> 
> I??made follow define on my MPC8360EMDS.h file. Is it enough? The uboot still did
> not fill the zero frequency on dtb. I think the ft_cpu_setup and ft_board_setup
> function have been run.
> 
> 
> /* pass open firmware flat tree */
> #define CONFIG_OF_FLAT_TREE	         1
> #define CONFIG_OF_BOARD_SETUP	1
> /* maximum size of the flat tree (8K) */
> #define OF_FLAT_TREE_MAX_SIZE	8192

This indicates you are using an old u-boot and an old MPC8360EMDS 
configuration.  Please pull a copy of 1.3.2 and build on/from that.

CONFIG_OF_FLAT_TREE is deprecated, replaced by CONFIG_OF_LIBFDT.

We've adopted David Gibson's libfdt utility library and built a lot of 
functionality beyond the original CONFIG_OF_FLAT_TREE style flat tree 
support.

Best regards,
gvb

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

* [U-Boot-Users] Hi, friends, the question about the u-boot and device tree?
  2008-03-13 15:31 郭劲
  2008-03-13 19:21 ` Grant Likely
@ 2008-03-18 18:28 ` Scott Wood
  1 sibling, 0 replies; 8+ messages in thread
From: Scott Wood @ 2008-03-18 18:28 UTC (permalink / raw)
  To: u-boot

On Thu, Mar 13, 2008 at 11:31:11PM +0800, ?? wrote:
> I make all the frequency(timebase-frequency;bus-frequency;clock-frequency) value
> on device tree file equal to zero, I think those frequency will filled by u-boot
> during bootm, but in fact, the u-boot did not fill any frequency. after bootm,
> crashed. Why?

What board?  Are you using a device-tree-aware u-boot and the three-argument
form of bootm?  What sort of crash?  How do you know it's not filling in the
frequencies?

> Why so many document point out that the zero value will be filled by u-boot?

Because it does. :-)
If it's not doing so on your board, that needs to be fixed.

-Scott

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

* [U-Boot-Users] Hi, friends, the question about the u-boot and device tree?
@ 2008-03-19  1:22 郭劲
  2008-03-19 16:17 ` Scott Wood
  0 siblings, 1 reply; 8+ messages in thread
From: 郭劲 @ 2008-03-19  1:22 UTC (permalink / raw)
  To: u-boot

Hi,Scott

My board is MPC8360EMDS, my bootm command is "bootm uImage ramdisk_ppc
mpc836x_mds.dtb", I used the MPC8360E_PB_K26_20071012-LTIB.iso to generate above
uImage, ramdisk_ppc,mpc836x_mds.dtb. 
 
If I fill the frequency to zero on mpc836x_mds.dts, then the linux-2.6.22 is
crashed, the output of serial is nothing. if I fill the right frequency value same
as the HRCW on mpc836x_mds.dts, the linux is normal. So I think if the frequency
is zero on mpc836x_mds.dts, the u-boot did not pass the right frequency value to
dtb.

I think maybe that we need to define some on u-boot, then the u-boot can pass the
parameter to linux dtb?


I also has another question, I modified the HRCW to config the cpu as 660/330/400
MHZ during power on, I used the "clocks" command on u-boot to see that the clock
is real 660/330/400 MHZ, then I changed the frequency value on dts to 660/330/400,
after the bootm command, the linux was not carshed after serial configuration, but
the output is random.

"
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xe0004500 (irq = 16) is a 16550A
[output from serial is random]
"

I have config the frequency both on HRCW and devie tree is the same, why the
frequency for serial on linux is not right?  Why the 528/260/400 is Ok, the
660/330/400 has problem on serial.

Thank you very much.





>From: Scott Wood <scottwood@freescale.com>
>Reply-To: 
>To:  <guojin02@tsinghua.org.cn>
>Subject: Re: Hi,friends, the question about the u-boot and device tree?
>Date:Tue, 18 Mar 2008 13:28:41 -0500
>
>On Thu, Mar 13, 2008 at 11:31:11PM +0800, wrote:
>> I make all the frequency(timebase-frequency;bus-frequency;clock-frequency)
value
>> on device tree file equal to zero, I think those frequency will filled by
u-boot
>> during bootm, but in fact, the u-boot did not fill any frequency. after bootm,
>> crashed. Why?
>
>What board?  Are you using a device-tree-aware u-boot and the three-argument
>form of bootm?  What sort of crash?  How do you know it's not filling in the
>frequencies?
>
>> Why so many document point out that the zero value will be filled by u-boot?
>
>Because it does. :-)
>If it's not doing so on your board, that needs to be fixed.
>
>-Scott
> 

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

* [U-Boot-Users] Hi, friends, the question about the u-boot and device tree?
  2008-03-19  1:22 [U-Boot-Users] Hi, friends, the question about the u-boot and device tree? 郭劲
@ 2008-03-19 16:17 ` Scott Wood
  0 siblings, 0 replies; 8+ messages in thread
From: Scott Wood @ 2008-03-19 16:17 UTC (permalink / raw)
  To: u-boot

On Wed, Mar 19, 2008 at 09:22:08AM +0800, ???? wrote:
> My board is MPC8360EMDS, my bootm command is "bootm uImage ramdisk_ppc
> mpc836x_mds.dtb", I used the MPC8360E_PB_K26_20071012-LTIB.iso to generate above
> uImage, ramdisk_ppc,mpc836x_mds.dtb. 

Could you try the latest upstream u-boot, dts, and kernel to see if
things are better?

> If I fill the frequency to zero on mpc836x_mds.dts, 

Which frequency property?  Did you get any device-tree-related error
messages from u-boot?

> I also has another question, I modified the HRCW to config the cpu as 660/330/400
> MHZ during power on, I used the "clocks" command on u-boot to see that the clock
> is real 660/330/400 MHZ, then I changed the frequency value on dts to 660/330/400,
> after the bootm command, the linux was not carshed after serial configuration, but
> the output is random.
> 
> "
> Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
> serial8250.0: ttyS0 at MMIO 0xe0004500 (irq = 16) is a 16550A
> [output from serial is random]
> "
> 
> I have config the frequency both on HRCW and devie tree is the same, why the
> frequency for serial on linux is not right?  Why the 528/260/400 is Ok, the
> 660/330/400 has problem on serial.

What are you putting in the serial nodes' clock-frequency in each case?

-Scott

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

end of thread, other threads:[~2008-03-19 16:17 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-19  1:22 [U-Boot-Users] Hi, friends, the question about the u-boot and device tree? 郭劲
2008-03-19 16:17 ` Scott Wood
  -- strict thread matches above, loose matches on Subject: below --
2008-03-14  1:40 郭劲
2008-03-14  5:14 ` Support Customer
2008-03-14 13:01 ` Jerry Van Baren
2008-03-13 15:31 郭劲
2008-03-13 19:21 ` Grant Likely
2008-03-18 18:28 ` Scott Wood

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox