public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Bartlomiej Sieka <tur@semihalf.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] fdt command: can't set a value-less property
Date: Thu, 06 Sep 2007 15:44:31 +0200	[thread overview]
Message-ID: <46E0043F.6070906@semihalf.com> (raw)

Hello,

I'm playing with the fdt command in recent (60174746) U-Boot and I can't
set a property that does not have a value.
Documentation/powerpc/booting-without-of.txt" says "A property can have
a value or not.", and fdt help suggests the same:
fdt set    <path> <prop> [<val>]    - Set <property> [to <val>]

However, I am getting:

=> fdt mknode / testnode
=> fdt list /testnode
testnode {
};
=> fdt set /testnode testprop
Usage:
fdt     - flattened device tree utility commands

=> fdt list /testnode
testnode {
};

Setting a property with value works:

=> fdt set /testnode testprop "testvalue"
=> fdt list /testnode
testnode {
         testprop=""testvalue"";
};

Am I doing something wrong, or is it a bug?

Regards,
Bartlomiej

             reply	other threads:[~2007-09-06 13:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-06 13:44 Bartlomiej Sieka [this message]
2007-09-06 13:54 ` [U-Boot-Users] fdt command: can't set a value-less property Jerry Van Baren
2007-09-06 15:15   ` Bartlomiej Sieka
2007-09-06 15:20     ` 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=46E0043F.6070906@semihalf.com \
    --to=tur@semihalf.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