<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2900.3314" name=GENERATOR><LINK
href="BLOCKQUOTE{margin-Top: 0px; margin-Bottom: 0px; margin-Left: 2em}"
rel=stylesheet></HEAD>
<BODY style="FONT-SIZE: 10pt; FONT-FAMILY: verdana">
<DIV><FONT face=Verdana size=2>U-BOOT:</FONT></DIV>
<DIV style="TEXT-INDENT: 2em">I want to modify the default environment variable
in U-BOOT. The following info are about the hardware:</DIV>
<DIV style="TEXT-INDENT: 2em"> </DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV style="TEXT-INDENT: 2em">ARM: at91rm9200</DIV>
<DIV style="TEXT-INDENT: 2em">platform: at91rm9200dk</DIV></BLOCKQUOTE>
<DIV style="TEXT-INDENT: 4em"><FONT face=Verdana size=2>U-BOOT:
CFG_ENV_IS_IN_DATAFLASH</FONT></DIV>
<DIV style="TEXT-INDENT: 2em"> </DIV>
<DIV style="TEXT-INDENT: 2em">I modifed /include/configs/at91rm9200dk.h and add
the following lines after "#define CONFIG_BAUDRATE 115200":</DIV>
<DIV style="TEXT-INDENT: 2em"> </DIV>
<DIV style="TEXT-INDENT: 2em">
<DIV>#define CONFIG_ETHADDR 12.24.96.78.91.11</DIV>
<DIV>#define CONFIG_IPADDR 172.19.71.10</DIV>
<DIV>#define CONFIG_SERVERIP 172.19.71.40</DIV>
<DIV><FONT
color=#0000ff><STRONG>#define CONFIG_BOOTCMD = tftp 20008000 zImage; tftp 21000000 Ramdisk.gz; go 20008000</STRONG></FONT></DIV>
<DIV> </DIV>
<DIV>the first three commands work well, but the last command is not in the
environment. I use printenv command to show the current</DIV>
<DIV> </DIV>
<DIV>environment:</DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV>U-Boot> printenv</DIV>
<DIV>bootdelay=3</DIV>
<DIV>baudrate=115200</DIV></BLOCKQUOTE>
<DIV style="TEXT-INDENT: 4em">ethaddr=12.24.96.78.91.11</DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV>ipaddr=172.19.71.10</DIV></BLOCKQUOTE>
<DIV style="TEXT-INDENT: 4em">serverip=172.19.71.40</DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV>stdin=serial</DIV>
<DIV style="TEXT-INDENT: 2em">stdout=serial</DIV>
<DIV>stderr=serial</DIV></BLOCKQUOTE></DIV>
<DIV style="TEXT-INDENT: 2em"> </DIV>
<DIV style="TEXT-INDENT: 2em">There is not bootcmd command. How can I implement
this function? ( just add bootcmd before compile u-boot)</DIV>
<DIV style="TEXT-INDENT: 2em"> </DIV>
<DIV style="TEXT-INDENT: 8em">best regards</DIV>
<DIV style="TEXT-INDENT: 8em"> </DIV>
<DIV align=left><FONT face=Verdana color=#c0c0c0 size=2>2008-04-11
</FONT></DIV><FONT face=Verdana size=2>
<HR style="WIDTH: 122px; HEIGHT: 2px" align=left SIZE=2>
<DIV><FONT face=Verdana color=#c0c0c0 size=2><SPAN>sonicss</SPAN>
</FONT></DIV></FONT></BODY></HTML>