All of lore.kernel.org
 help / color / mirror / Atom feed
From: Aras Vaichas <arasv@magtech.com.au>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Want to add command in uboot
Date: Fri, 18 Apr 2008 11:42:23 +1000	[thread overview]
Message-ID: <4807FC7F.50907@magtech.com.au> (raw)
In-Reply-To: <895609.34146.qm@web39508.mail.mud.yahoo.com>

Avinash Vijayvergia wrote:
> Hi
>
> I am working on AT91SAM9260. I want to add one command "COM1 xxx" to
> the uboot command set. After typing this command on uboot prompt the
> string xxx should be transmitted out of COM1 and any reception on COM1
> should be displayed on the debug terminal. Can some one suggest me how
> to do this?
>
AT91SAM9260 has no "COM1", this is a PC term.

Have you looked at the source code?

Have you read the documentation that comes with U-Boot? There is a whole
directory full of useful information in ./doc

e.g. doc/README.commands

This file tells you about how to add your command. Also look at how all
the other commands are done.

Then look in the ./common directory. There is a file called serial.c.
Maybe this file contains function calls for the serial port?

Then take a look at the ./board/... files and see how other people
send/receive data via the serial port.

Aras





______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________

  reply	other threads:[~2008-04-18  1:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-17 22:48 [U-Boot-Users] Want to add command in uboot Avinash Vijayvergia
2008-04-18  1:42 ` Aras Vaichas [this message]
2008-04-18  5:41 ` Wolfgang Denk
2008-04-18  5:52   ` Ulf Samuelsson

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=4807FC7F.50907@magtech.com.au \
    --to=arasv@magtech.com.au \
    --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.