From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Can U-boot Autodetect arch/ppc versus arch/powerpc from info in the uImage?
Date: Mon, 03 Dec 2007 22:36:14 +0100 [thread overview]
Message-ID: <20071203213614.586822430C@gemini.denx.de> (raw)
In-Reply-To: Your message of "Mon, 03 Dec 2007 10:49:53 PST." <D61182AC8012EA4EBC531B3AF23BE109480232@tranzeo-mail2.12stewart.tranzeo.com>
In message <D61182AC8012EA4EBC531B3AF23BE109480232@tranzeo-mail2.12stewart.tranzeo.com> you wrote:
>
> I have looked at some of the u-boot code for booting up a linux kernel.
> It appears that the determination of whether or not to make use of
> flattened device tree (fdt) in the boot is a compile time selection.
No, this is not the case. You can use a FDT-enabled U-Boot to boot
kernel images which use a FDT, and of course such that don't, too.
> Can we determine during runtime from info in the uImage whether the
> linux kernel was built as arch/ppc or as arch/powerpc and then select
> the fdt support accordingly?
No. There is no such information available in the current image
format.
> It will soon be possible to build a U-Boot for one or the other (for
> ppc4xx family). I think I will need to implement a U-Boot that will
This is not correct. You can build U-Boot without FDT-support, and
this will only work with old (arch/ppc) kernels, or with arch/powerpc
kernels using the bootwrapper (cuImage). Or you can build U-Boot
*with* FDT-support, which can do exactly the same, *plus* directly
boot FDT enabled Linux kernels.
> I think we need the U-Boot to be able to support both but detect which
> one the uImage was built under.
The first part of the sentence is true, and describes the current
state of things, and the second part is IMO not needed.
> In the image.h file, there appears to only be one selection for powerpc
> so there will likely be need for some other "magic" to make this work.
> Has anyone checked into this before, or come up with a workable
> solution?
I see no need for any such changes.
Best regards,
Wolfgang Denk
--
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
Disc space - the final frontier!
next prev parent reply other threads:[~2007-12-03 21:36 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-03 18:49 [U-Boot-Users] Can U-boot Autodetect arch/ppc versus arch/powerpc from info in the uImage? Darcy Watkins
2007-12-03 21:36 ` Wolfgang Denk [this message]
2007-12-03 23:33 ` [U-Boot-Users] Can U-boot Autodetect arch/ppc versusarch/powerpc " Joakim Tjernlund
2007-12-04 0:23 ` Wolfgang Denk
2007-12-04 1:06 ` Joakim Tjernlund
2007-12-06 22:43 ` [U-Boot-Users] Can U-boot Autodetect arch/ppcversusarch/powerpc " Joakim Tjernlund
2007-12-07 0:57 ` Wolfgang Denk
2007-12-07 6:55 ` Joakim Tjernlund
2007-12-07 11:11 ` Wolfgang Denk
2007-12-07 13:14 ` Jerry Van Baren
2007-12-09 13:12 ` Joakim Tjernlund
2007-12-09 15:00 ` Wolfgang Denk
2007-12-09 17:32 ` Joakim Tjernlund
2007-12-09 19:28 ` Wolfgang Denk
2007-12-09 21:14 ` Joakim Tjernlund
2007-12-09 21:36 ` Wolfgang Denk
2007-12-09 21:59 ` Joakim Tjernlund
2007-12-09 22:47 ` [U-Boot-Users] Can U-boot Autodetect arch/ppcversusarch/powerpcfrom " Joakim Tjernlund
2007-12-13 18:49 ` [U-Boot-Users] Can U-boot Autodetect arch/ppcversusarch/powerpc from " Jerry Van Baren
2007-12-13 23:03 ` Joakim Tjernlund
2007-12-14 15:53 ` Joakim Tjernlund
2007-12-16 20:14 ` Wolfgang Denk
2007-12-16 21:27 ` Joakim Tjernlund
2007-12-17 14:42 ` Joakim Tjernlund
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20071203213614.586822430C@gemini.denx.de \
--to=wd@denx.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox