From: Subodh Nijsure <sunijsur@cisco.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] Add a new command to U-Boot
Date: Thu, 7 May 2009 08:21:39 -0700 [thread overview]
Message-ID: <000901c9cf27$84dd9c80$2d7f150a@cisco.com> (raw)
In-Reply-To: <OF61F26EEC.D2D01DFA-ON652575AF.004C75D5-652575AF.004C052B@lntemsys.com>
Have you looked at code in common/cmd_date.c?
If you see at the end of the file there is macro U_BOOT_CMD() that adds the
command date, there is function do_date that is invoked, so if you wanted to
implement your own version of date command you will have to implement your
own do_date function.
/Subodh
> -----Original Message-----
> From: u-boot-bounces at lists.denx.de
> [mailto:u-boot-bounces at lists.denx.de] On Behalf Of Deepak
> Gopalakrishnan
> Sent: Thursday, May 07, 2009 7:00 AM
> To: Jerry Van Baren
> Cc: u-boot at lists.denx.de
> Subject: Re: [U-Boot] Add a new command to U-Boot
>
> yes indeed...thanks a lot...
> i can guess that adding a command wont be just a walk in the
> park.....could you tell me wat all this i will have to take
> care of if i were supposed to write....say another date
> function...which would display the date in another format....
> other than adding it into the makefile and placing it in the
> common folder...wat shud i do..?
> thanks alot...
>
> Regards,
> Deepak
>
>
>
> Jerry Van Baren <gerald.vanbaren@ge.com>
> 05/07/2009 07:10 PM
>
> To
> Deepak Gopalakrishnan <Deepak.Gopalakrishnan@Lntemsys.com>
> cc
> u-boot at lists.denx.de
> Subject
> Re: [U-Boot] Add a new command to U-Boot
>
>
>
>
>
>
> Deepak Gopalakrishnan wrote:
> > HI
> > I am working with Freescale MPC8313E-RDB and with it comes
> their BSP.
> This
> > provides a u-boot. I want to understand how the u-boot
> commands work
> > as
> in
> > where are they defined and in which files.
> > My utlimate goal is to add new u-boot commands and to modify the
> exsisting
> > commands (if needed)
> > Im a total newbie to uboot. and am looking for a hint as to where to
> look
> > for.
> >
> > thanks a lot...
> >
> > Deepak
>
> ls common/cmd*.c
>
> Best regards,
> gvb
>
>
next prev parent reply other threads:[~2009-05-07 15:21 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-15 18:32 [U-Boot-Users] Add a new command to U-Boot Carlos Filipe Silva
2005-11-15 18:55 ` Cliff Brake
2009-05-07 13:35 ` [U-Boot] " Deepak Gopalakrishnan
2009-05-07 13:40 ` Jerry Van Baren
2009-05-07 13:59 ` Deepak Gopalakrishnan
2009-05-07 15:21 ` Subodh Nijsure [this message]
2009-05-08 13:21 ` Deepak Gopalakrishnan
2009-05-08 13:20 ` Jerry Van Baren
2009-05-11 5:32 ` [U-Boot] Uboot reloaction scheme Deepak Gopalakrishnan
2009-05-11 8:16 ` [U-Boot] Add a new command to U-Boot Drasko DRASKOVIC
2009-05-11 14:12 ` [U-Boot] uboot relocate_code() function Deepak Gopalakrishnan
2009-05-11 14:19 ` Liu Dave-R63238
2009-05-11 15:52 ` Timur Tabi
2009-05-11 18:22 ` Scott Wood
2009-05-12 13:47 ` [U-Boot] start.s file Deepak Gopalakrishnan
2009-05-12 14:30 ` Detlev Zundel
2009-05-18 13:18 ` [U-Boot] u-boot version Deepak Gopalakrishnan
2009-05-18 13:16 ` Wolfgang Denk
2009-05-19 9:29 ` Deepak Gopalakrishnan
2009-05-19 14:14 ` Detlev Zundel
2009-05-19 14:41 ` Deepak Gopalakrishnan
2009-05-19 14:40 ` Detlev Zundel
2009-05-20 4:28 ` Deepak Gopalakrishnan
2009-05-19 11:17 ` [U-Boot] U-boot common/environment.c Deepak Gopalakrishnan
2009-05-19 14:34 ` Detlev Zundel
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='000901c9cf27$84dd9c80$2d7f150a@cisco.com' \
--to=sunijsur@cisco.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 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.