<!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.3199" name=GENERATOR>
<STYLE>BLOCKQUOTE {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em
}
OL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
UL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
</STYLE>
</HEAD>
<BODY style="FONT-SIZE: 10pt; FONT-FAMILY: verdana">
<DIV><FONT face=Verdana size=2>hi,</FONT></DIV>
<DIV> </DIV>
<DIV>i have been trying to port the u-boot 1.2.0 to my board which based on
the at91rm9200.</DIV>
<DIV> </DIV>
<DIV>when running the 'saveenv' ,it promted out </DIV>
<DIV> </DIV>
<DIV> "Saving Environment to
Flash...<BR> Error: start address not
on sector boundary"</DIV>
<DIV> </DIV>
<DIV>my flash is MT-28F128J3, which has 128 128KB(x16bit) erase blocks,in
the include/configs/myboard.h i defined the </DIV>
<DIV> #define
PHYS_FLASH_1 0x10000000<BR>
#define PHYS_FLASH_SIZE 0x1000000 /* 16 megs main
flash */<BR> #define
CFG_FLASH_BASE PHYS_FLASH_1<BR>
#define CFG_MAX_FLASH_BANKS 1<BR>
#define CFG_MAX_FLASH_SECT 128</DIV>
<DIV> </DIV>
<DIV> #define
CFG_ENV_IS_IN_FLASH 1<BR> #ifdef
CONFIG_SKIP_LOWLEVEL_INIT<BR> #define
CFG_ENV_ADDR (PHYS_FLASH_1 + 0x60000) /* after u-boot.bin
*/<BR> #define
CFG_ENV_SIZE 0x10000 /* sectors are 64K here
*/<BR>
#else<BR> #define
CFG_ENV_ADDR (PHYS_FLASH_1 + 0xe000) /* between boot.bin
and u-boot.bin.gz */<BR> #define
CFG_ENV_SIZE 0x2000 /* 0x8000
*/<BR> #endif /*
CONFIG_SKIP_LOWLEVEL_INIT */</DIV>
<DIV> </DIV>
<DIV>what can i do to fix it ...??</DIV>
<DIV>Any help will be appreciated....thanks you...</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Best Regards</DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV>Jack Xu</DIV>
<DIV>2007-10-23</DIV><FONT face=Verdana size=2>
<DIV><FONT face=Verdana color=#c0c0c0
size=2></FONT> </DIV></FONT></BODY></HTML>