Skip to contentSkip to conversation

Is there any full story about how to take advantage FDT function ?

U-Boot Gao Ya'nan 3 participants 7 messages Sep 1, 2009 – Sep 9, 2009

lore
Share & tools
lore

Gao Ya'nan

author
#0 lore raw

And how to configure the kernel to minimize the code modification ?

I am porting U-Boot and Linux to a new board with a MPC875 processor and two serial chips, and U-Boot runs well now. I hear that the FDT function can tell the kernel devices information more flexibly and reduce the code modification indirectly.

But I didn't find enough materials to make my head clear, so any tip is greatly appreciated.

Thanks.

#1 lore raw
Quoted 11 lines · Gao Ya'nan

And how to configure the kernel to minimize the code modification ?

I am porting U-Boot and Linux to a new board with a MPC875 processor and two serial chips, and U-Boot runs well now. I hear that the FDT function can tell the kernel devices information more flexibly and reduce the code modification indirectly.

But I didn't find enough materials to make my head clear, so any tip is greatly appreciated.

Thanks.

Hi Gao,

I'm not up on 8xx, but it may not have been pulled forward into the "powerpc" architecture (still "ppc"). The "powerpc" architecture switch is where linux/u-boot started using the FDT.

Best regards,
gvb

author
#2 lore raw

Hi, Jerry.

2009/9/6 Jerry Van Baren <[email protected]>:

Quoted 12 lines
Quoted 11 lines · Gao Ya'nan

And how to configure the kernel to minimize the code modification ?

I am porting U-Boot and Linux to a new board with a MPC875 processor and two serial chips, ?and U-Boot runs well now. I hear that the FDT function can tell the kernel devices information more flexibly and reduce the code modification indirectly.

But I didn't find enough materials to make my head clear, so any tip is greatly appreciated.

Quoted 8 lines
Quoted 1 line

Thanks.

Hi Gao,

I'm not up on 8xx, but it may not have been pulled forward into the "powerpc" architecture (still "ppc"). ?The "powerpc" architecture switch is where linux/u-boot started using the FDT.

I use U-Boot-V2009.8 and Linux-DENX-v2.6.30.3, and I can't find arch/ppc any more. So, I think FDT will work well in MPC8xx platform.

But I don't know how to use it, perhaps I shoud try the standard MPC885 configuration and dtb file.

Quoted 3 lines

Best regards,
gvb

Thanks.

Best regards

Gao Ya'nan

#3 lore raw
In reply to Jerry Van Baren
Quoted 3 lines · Jerry Van Baren

I'm not up on 8xx, but it may not have been pulled forward into the "powerpc" architecture (still "ppc"). The "powerpc" architecture switch is where linux/u-boot started using the FDT.

8xx is supported in arch/powerpc.

-Scott

author
#4 lore raw

2009/9/10 Scott Wood <[email protected]>:

Quoted 6 lines · Jerry Van Baren
Quoted 3 lines

I'm not up on 8xx, but it may not have been pulled forward into the "powerpc" architecture (still "ppc"). ?The "powerpc" architecture switch is where linux/u-boot started using the FDT.

8xx is supported in arch/powerpc.

Yes, I have add CONFIG_OF_LIBFDT and CONFIG_OF_BOARD_SETUP for the FDT support which is missing in U-Boot-v2009.08, and it works well, but I found none complete document on how to write a dts file and add special device in it.

Any tips? Thanks

Gao Ya'nan

Quoted 3 lines

-Scott

#5 lore raw
Quoted 5 lines · Gao Ya'nan

2009/9/10 Scott Wood <[email protected]>:

Quoted 4 lines · Jerry Van Baren
Quoted 3 lines

I'm not up on 8xx, but it may not have been pulled forward into the "powerpc" architecture (still "ppc"). The "powerpc" architecture switch is where linux/u-boot started using the FDT.

Quoted 8 lines
Quoted 1 line

8xx is supported in arch/powerpc.

Yes, I have add CONFIG_OF_LIBFDT and CONFIG_OF_BOARD_SETUP for the FDT support which is missing in U-Boot-v2009.08, and it works well, but I found none complete document on how to write a dts file and add special device in it.

Any tips? Thanks

See Documentation/powerpc/booting-without-of.txt, Documentation/powerpc/dts-bindings, and the ePAPR specification for information on the content of device trees.

-Scott

author
#6 lore raw

2009/9/10 Scott Wood <[email protected]>:

Quoted 17 lines
Quoted 16 lines · Gao Ya'nan

2009/9/10 Scott Wood <[email protected]>:

Quoted 8 lines · Jerry Van Baren
Quoted 4 lines

I'm not up on 8xx, but it may not have been pulled forward into the "powerpc" architecture (still "ppc"). ?The "powerpc" architecture switch is where linux/u-boot started using the FDT.

8xx is supported in arch/powerpc.

Yes, I have add CONFIG_OF_LIBFDT and CONFIG_OF_BOARD_SETUP for the FDT support which is missing in U-Boot-v2009.08, and it works well, but I found none complete document on how to write a dts file and add special device in it.

Quoted 5 lines
Quoted 1 line

Any tips? Thanks

See Documentation/powerpc/booting-without-of.txt, Documentation/powerpc/dts-bindings, and the ePAPR specification for information on the content of device trees.

I miss the later two, thanks for your tips.

Gao.

Quoted 3 lines

-Scott