From mboxrd@z Thu Jan 1 00:00:00 1970 From: Aras Vaichas Date: Fri, 18 Apr 2008 11:42:23 +1000 Subject: [U-Boot-Users] Want to add command in uboot In-Reply-To: <895609.34146.qm@web39508.mail.mud.yahoo.com> References: <895609.34146.qm@web39508.mail.mud.yahoo.com> Message-ID: <4807FC7F.50907@magtech.com.au> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 ______________________________________________________________________