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.

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@tsinghua.org.cn] Sent: 2008年3月14日 9:41 AM To: Grant Likely Cc: Support Customer; linuxppc-embedded@ozlabs.org; u-boot-users@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.

郭劲 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
participants (3)
-
Jerry Van Baren
-
Support Customer
-
郭劲