From: Jerry Van Baren <gerald.vanbaren@smiths-aerospace.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Open Firmware support questions
Date: Mon, 09 Oct 2006 09:36:27 -0400 [thread overview]
Message-ID: <452A505B.8070203@smiths-aerospace.com> (raw)
Hi All,
I've been working with the u-boot OF support and have some questions,
but don't know who to ask.
It appears that Pantelis Antoniou submitted the original ft_build.[ch]
code <http://patchwork.ozlabs.org/linuxppc/patch?id=2238> but there is
no copyright or license information in the files. Are these files his
or did they come from somewhere else?
My current state of affairs (not quite ready for prime time) is in:
http://www.cideas.us/cgi-bin/gitweb.cgi?p=u-boot/u-boot-pq2fads.git;a=summary
Things I'm working on:
* Added a "of" command to dump the blob
* Works well enough but is not in its final form
* Required a change to vsprintf to parse a "ll" (long long) attribute
as well as the existing "q" attribute for 64 bit entries.
* Printing a 64 bit entry (example: interrupt "reg" value has two 32
bit entries) doesn't work properly. Example print:
interrupt-controller at f8200000 {
linux,phandle = <0xf8200000>;
#address-cells = <0x00000000>;
#interrupt-cells = <0x00000002>;
interrupt-controller;
reg = <0x00000000f8200004>;
built-in;
device_type = "pci-pic";
};
The reg value
<0x00000000f8200004>
should print
<0xf8200000f8200004>
or, better(?),
<0xf8200000 f8200004>
The "better" format listed above is how it appears in the *.dts
tree definition, but the ft_dump.c routine doesn't appear to do
that format. It sees the size value of 8 and prints it as a
single long long rather than two longs (should be just a
formatting issue, but currently the print is broken). Note that
the tree itself appears to be OK, looking at the ASM output file.
* Looking at improving(?) the build mechanism
* Use the "asm" output format rather than a binary dump and then
regeneration via xxd.
* My thought (unimplemented as of yet) is to append "_of" to the
configuration so "PQ2FADS-ZU_lowboot_config" would become
"PQ2FADS-ZU_lowboot_config_of" for the OF version. The
configuration mechanism would then add the definition
FTOBJS := pq2fads.o
to the "include/config.mk" file.
* Questions:
* Is the "_of" tag reasonable or is there a better way? I'm
assuming we don't want to force everybody with an ADS-type board
over to using OF.
* Where should we put the original *.dts files? I picked up the
original mpc8260ads.dts file from the kernel source, Vitaly
Bordug's repository:
linux-2.6-PQ/arch/powerpc/boot/dts/mpc8272ads.dts
I forgot what the agreement ended up being for ownership between
the kernel people and Wolfgang (if there was any agreement ;-).
gvb
next reply other threads:[~2006-10-09 13:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-09 13:36 Jerry Van Baren [this message]
2006-10-09 18:33 ` [U-Boot-Users] Open Firmware support questions Jon Loeliger
2006-10-09 18:58 ` Jerry Van Baren
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=452A505B.8070203@smiths-aerospace.com \
--to=gerald.vanbaren@smiths-aerospace.com \
--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