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
Quoted 4 lines
From: "Grant Likely" <[email protected]>
Reply-To:
To: "????" <[email protected]>
Subject: Re: [U-Boot-Users] Hi, friends, the question about the u-boot and device
tree?
Quoted 6 lines
Date:Thu, 13 Mar 2008 13:21:35 -0600
Quoted 3 lines · ????
Hi,friends,
I make all the frequency(timebase-frequency;bus-frequency;clock-frequency)
value
Quoted 1 line
Quoted 1 line
on device tree file equal to zero, I think those frequency will filled by
u-boot
Quoted 1 line
Quoted 1 line
during bootm, but in fact, the u-boot did not fill any frequency. after
bootm,
Quoted 15 lines
Quoted 3 lines
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_setupfunction is getting called by bootm and that it fills in those properties.g.
Signature · 2 lines
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 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
Quoted 5 lines
From: "Grant Likely" <[email protected]>
Reply-To:
To: "??" <[email protected]>
Subject: Re: [U-Boot-Users] Hi, friends, the question about the u-boot and device
tree?
Quoted 7 lines
Date:Thu, 13 Mar 2008 13:21:35 -0600
Quoted 4 lines · ??
Hi,friends,
I make all the
frequency(timebase-frequency;bus-frequency;clock-frequency)
value
Quoted 2 lines
Quoted 2 lines
on device tree file equal to zero, I think those frequency will
filled by
u-boot
Quoted 2 lines
Quoted 2 lines
during bootm, but in fact, the u-boot did not fill any frequency.
after
bootm,
Quoted 15 lines
Quoted 3 lines
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_setupfunction is getting called by bootm and that it fills in those properties.g.
--
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
Quoted 7 lines · ??
Hi,friends,
I??made follow define on my
MPC8360EMDS.hfile. Is it enough? The uboot still did not fill the zero frequency on dtb. I think theft_cpu_setupandft_board_setupfunction have been run.
Quoted 5 lines
/* pass open firmware flat tree */
#defineCONFIG_OF_FLAT_TREE1
#defineCONFIG_OF_BOARD_SETUP1
/* maximum size of the flat tree (8K) */
#defineOF_FLAT_TREE_MAX_SIZE8192
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