From: Jerry Van Baren <gvb.uboot@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] Add note on dereferencing /aliases pointers
Date: Fri, 22 Aug 2008 15:02:56 -0400 [thread overview]
Message-ID: <20080822190256.GA32105@cideas.com> (raw)
Replace the "must quote special characters" note with a hint on
how to dereference /aliases pointers by omitting the leading "/".
This feature was introduced by Kumar Gala as a libfdt enhancement
in commit ed035708235332c3c117ee3bb1a426063f03cfcb.
Example:
=> fdt print /aliases
aliases {
ethernet0 = "/qe at e0100000/ucc at 2000";
ethernet1 = "/qe at e0100000/ucc at 3000";
serial0 = "/soc8360 at e0000000/serial at 4500";
serial1 = "/soc8360 at e0000000/serial at 4600";
pci0 = "/pci at e0008500";
};
=> fdt print ethernet0
ucc at 2000 {
device_type = "network";
compatible = "ucc_geth";
cell-index = <0x1>;
reg = <0x2000 0x200>;
interrupts = <0x20>;
interrupt-parent = <0x2>;
local-mac-address = [00 00 00 00 00 00];
rx-clock-name = "none";
tx-clock-name = "clk9";
phy-handle = <0x3>;
phy-connection-type = "rgmii-id";
pio-handle = <0x4>;
};
Signed-off-by: Gerald Van Baren <vanbaren@cideas.com>
---
Sorry for the duplicate, I forgot to change my u-boot alias in mutt.
:-( I am re-sending this to make sure it gets in the denx.de archives.
gvb
common/cmd_fdt.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/common/cmd_fdt.c b/common/cmd_fdt.c
index d3b19dd..05a328f 100644
--- a/common/cmd_fdt.c
+++ b/common/cmd_fdt.c
@@ -799,6 +799,6 @@ U_BOOT_CMD(
"fdt rsvmem add <addr> <size> - Add a mem reserve\n"
"fdt rsvmem delete <index> - Delete a mem reserves\n"
"fdt chosen - Add/update the /chosen branch in the tree\n"
- "NOTE: If the path or property you are setting/printing has a '#' character\n"
- " or spaces, you MUST escape it with a \\ character or quote it with \".\n"
+ "NOTE: Dereference aliases by omiting the leading '/', "
+ "e.g. fdt print ethernet0.\n"
);
--
1.5.6.3
reply other threads:[~2008-08-22 19:02 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20080822190256.GA32105@cideas.com \
--to=gvb.uboot@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.