Help on U-Boot and Linux integration on PPC cpus
Hi Ml,
I'm working on a ppc8541 based board. I ported the U-boot board just creationg a "strip-down" version of frescale8541 board (I don't use TSEC and Quicc, ...)-
My next task is to have the first boot with linux and I'm a lot confused by fdt usage.
In the past I always worked on mips based SoC and the ppc is a new world for me, then my apologies for my stupid questions.
I have a couple of (trivial) question/doubts regarding the fdt usage:
1) I created my dts/dtb (exentially copying a 8541 board): How can this object be used by u-boot? should I copy it into the flash (for example)?
2) is there a how-to or a survey regarding the fdt usage into u-boot (and linux kernel)?
thanks for help,
luigi
Signature · 9 lines
Luigi 'Comio' Mantellini R&D - Software Industrie Dial Face S.p.A. Via Canzo, 4 20068 Peschiera Borromeo (MI), Italy Tel.: +39 02 5167 2813 Fax: +39 02 5167 2459 Email: luigi.mantellini at idf-hit.com
Quoted 10 lines · Luigi 'Comio' Mantellini
Hi Ml,
I'm working on a ppc8541 based board. I ported the U-boot board just creationg a "strip-down" version of frescale8541 board (I don't use TSEC and Quicc, ...)-
My next task is to have the first boot with linux and I'm a lot confused by fdt usage.In the past I always worked on mips based SoC and the ppc is a new world for me, then my apologies for my stupid questions.
s/ppc/powerpc/ - the linux ppc arch doesn't support fdt. ;-)
Quoted 4 lines
I have a couple of (trivial) question/doubts regarding the fdt usage:
1) I created my dts/dtb (exentially copying a 8541 board): How can this object be used by u-boot? should I copy it into the flash (for example)?
Strictly speaking, it isn't *used* by u-boot, but it is manipulated by u-boot to fix it up / augment it to describe the board's hardware. It is then *used* by linux - it allows one linux image to boot on a wide variety of boards (MAJOR win).
You need to pass a fdt blob to the linux kernel. As always, there are many ways to do this. One way is to program it into flash. This is great if your blob is stable (e.g. good for manufacturing). Another way is to tftp the blob over from your server along with your linux image.
The *slickest* way by far is to use a FIT image - this wraps *everything* (kernel, board fdt blob, ramdisk) in a fdt blob. See
u-boot/doc/uimage.FIT
Quoted 2 lines
2) is there a how-to or a survey regarding the fdt usage into u-boot (and linux kernel)?
There are various fdt whitepapers out there and *how* the fdt is used by linux is documented in the linux source tree. For PowerPC processors:
linux/Documentation/powerpc
Quoted 3 lines
thanks for help,
luigi
Best regards,
gvb
Hi Jerry and Wolfgang,
Thanks for your suggestions.
ciao ciao
luigi
venerd? 23 ottobre 2009 13:39 Jerry Van Baren <[email protected]> ha scritto:
Quoted 3 lines · Luigi 'Comio' Mantellini
Hi Ml,
I'm working on a ppc8541 based board. I ported the U-boot board just
creationg
Quoted 3 lines
a "strip-down" version of frescale8541 board (I don't use TSEC and Quicc, ...)-
My next task is to have the first boot with linux and I'm a lot confused by
fdt
Quoted 4 lines
usage.
In the past I always worked on mips based SoC and the ppc is a new world for me, then my apologies for my stupid questions.
s/ppc/powerpc/ - the linux ppc arch doesn't support fdt. ;-)
Quoted 3 lines
I have a couple of (trivial) question/doubts regarding the fdt usage:
1) I created my dts/dtb (exentially copying a 8541 board): How can this
object
Quoted 1 line
be used by u-boot? should I copy it into the flash (for example)?
Strictly speaking, it isn't *used* by u-boot, but it is manipulated by u-boot to fix it up / augment it to describe the board's hardware. It is then *used* by linux - it allows one linux image to boot on a wide variety of boards (MAJOR win).
You need to pass a fdt blob to the linux kernel. As always, there are many ways to do this. One way is to program it into flash. This is great if your blob is stable (e.g. good for manufacturing). Another way is to tftp the blob over from your server along with your linux image.
The *slickest* way by far is to use a FIT image - this wraps *everything* (kernel, board fdt blob, ramdisk) in a fdt blob. See
u-boot/doc/uimage.FIT
<http://git.denx.de/?p=u-
boot.git;a=tree;f=doc/uImage.FIT;h=f1d03d7350a164ee6c951ea239a0e0e72db0e81b;hb=HEAD>
Quoted 2 lines
2) is there a how-to or a survey regarding the fdt usage into u-boot (and linux kernel)?
There are various fdt whitepapers out there and *how* the fdt is used by linux is documented in the linux source tree. For PowerPC processors:
linux/Documentation/powerpc
<http://git.denx.de/?p=linux-2.6-
denx.git;a=tree;f=Documentation/powerpc;h=01939ab891de2b352c4e9185d1f6bc667436bfb3;hb=HEAD>
Quoted 3 lines
thanks for help,
luigi
Best regards,
gvb
Signature · 9 lines
Luigi 'Comio' Mantellini R&D - Software Industrie Dial Face S.p.A. Via Canzo, 4 20068 Peschiera Borromeo (MI), Italy Tel.: +39 02 5167 2813 Fax: +39 02 5167 2459 Email: luigi.mantellini at idf-hit.com
Dear "Luigi 'Comio' Mantellini",
Quoted 5 lines · In message <[email protected]> you wrote:
1) I created my dts/dtb (exentially copying a 8541 board): How can this object be used by u-boot? should I copy it into the flash (for example)?
2) is there a how-to or a survey regarding the fdt usage into u-boot (and linux kernel)?
You may want to read section "7.2. Flattened Device Tree Blob" and following in the manual, see
http://www.denx.de/wiki/view/DULG/LinuxFDTBlob
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Perl itself is usually pretty good about telling you what you shouldn't do. :-) - Larry Wall in <[email protected]>