From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anatolij Gustschin Date: Fri, 9 Mar 2012 16:19:51 +0100 Subject: [U-Boot] adding new command in u-boot In-Reply-To: References: Message-ID: <20120309161951.3fd9362c@wker> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi, On Fri, 9 Mar 2012 19:29:03 +0530 Haneef hawk21 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