public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Anatolij Gustschin <agust@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] adding new command in u-boot
Date: Fri, 9 Mar 2012 16:19:51 +0100	[thread overview]
Message-ID: <20120309161951.3fd9362c@wker> (raw)
In-Reply-To: <CAEwP+aEx15aZh2i2ye1C4gdsZKES_OBTitr6HoCbghUxV0EdKg@mail.gmail.com>

Hi,

On Fri, 9 Mar 2012 19:29:03 +0530
Haneef hawk21 <haneef.hawk21@gmail.com> wrote:

> Hi,
> 
> I am trying to create a new command that would be used to do custom
> tests like mm, md, mtest all at once by calling their do_** function.

Can't you just put needed commands in a script and run it?

...
> U_BOOT_CMD(
>         myprint,  1,      1,     do_myprint,
>         "print message",
>         ""
> );
...
> this got compiled without any problem and even  got the hush prompt
> but when i gave help command i did not see my command listed there.

Try to pass a help string as the sixth argument of U_BOOT_CMD().

BR,
Anatolij

      reply	other threads:[~2012-03-09 15:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-09 13:59 [U-Boot] adding new command in u-boot Haneef hawk21
2012-03-09 15:19 ` Anatolij Gustschin [this message]

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=20120309161951.3fd9362c@wker \
    --to=agust@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