Hmmm... what about these additional steps:
1) Add .o file to COBJS in ./common/Makefile
2) Add CFG_CMD_MY_COMMAND to CONFIG_COMMANDS macro in
./include/configs/board_name.h
3) Add CFG_CMD_MY_COMMAND definition to ./include/cmd_confdefs.h
are they necesarry? I think that I had to do these also.
thanks to everyone first.
im able to write a new command for the u-boot and load it on to the board
and it works like a charm.
Im explaining the steps here so that it would be helpful in the future:
im using a MPC8313e RDB and u-boot-1.3.0.
1) First of all the commands are defined in files
Excellent, but...
Deepak Gopalakrishnan wrote:
[snip]
this is the content of firrst u-boot command i wrote:
cmd_dgprint.c
code
/*
* (C) Copyright 2005
* Wolfgang Denk, DENX Software Engineering, w...@denx.de.
*
* See file CREDITS for list of people who contributed to this
*
a total newbie to uboot. and am looking for a hint as to where to look
for.
thanks a lot...
Deepak
--
View this message in context:
http://www.nabble.com/Add-a-new-command-to-U-Boot-tp1498653p23426790.html
Sent from the Uboot - Users mailing list archive at Nabble.com
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
it into the makefile and placing it in the common
folder...wat shud i do..?
thanks alot...
Regards,
Deepak
Jerry Van Baren gerald.vanba...@ge.com
05/07/2009 07:10 PM
To
Deepak Gopalakrishnan deepak.gopalakrish...@lntemsys.com
cc
u-boot@lists.denx.de
Subject
Re: [U-Boot] Add a new command to U-Boot
.
/Subodh
-Original Message-
From: u-boot-boun...@lists.denx.de
[mailto:u-boot-boun...@lists.denx.de] On Behalf Of Deepak
Gopalakrishnan
Sent: Thursday, May 07, 2009 7:00 AM
To: Jerry Van Baren
Cc: u-boot@lists.denx.de
Subject: Re: [U-Boot] Add a new command to U-Boot
yes
7 matches
Mail list logo