<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>&nbsp;<FONT size=3> </FONT>
<DIV>I have tried to configure PortX for use of memory &nbsp;space 
0x7000_0000.&nbsp; I have modified MCCR4[EXTROM] to&nbsp; enable entened 
ROM.</DIV>
<DIV>but i can't accessed address 0x70000000 ...</DIV>
<DIV>i find something worng in include/config_Sandpint8245.h</DIV>
<DIV>according to define BATs in config_Sandpint8245.h </DIV>
<DIV>not allocate BATs for address 0x7000000 , so i try change BAT1 for extended 
rom </DIV>
<DIV>i modify ppcboot code to blow list</DIV>
<DIV>&nbsp;</DIV>
<DIV>1. 0x40000000 used by initial stack , until sdram init....(BAT1 
allocation)</DIV>
<DIV>2. command/board.c : board_init_r () this function use stack...in ram so no 
more need 0x40000000</DIV>
<DIV>3.&nbsp;my&nbsp;added code to BAT1 realloction for 0x70000000..&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; void move_bat1 (void)<BR>&nbsp;&nbsp;&nbsp; 
{<BR>&nbsp;&nbsp;&nbsp; mtspr (IBAT1L, (0x70000000 | BATL_PP_10 | 
BATL_CACHEINHIBIT));<BR>&nbsp;&nbsp;&nbsp; mtspr (IBAT1U, (0x70000000 | 
BATU_BL_256M | BATU_VS | BATU_VP));<BR><BR>&nbsp;&nbsp;&nbsp; mtspr (DBAT1L, 
(0x70000000 | BATL_PP_10 | BATL_CACHEINHIBIT));<BR>&nbsp;&nbsp;&nbsp; mtspr 
(DBAT1U, (0x70000000 | BATU_BL_256M | BATU_VS | BATU_VP));<BR>&nbsp;&nbsp;&nbsp; 
__asm__ __volatile__("eieio");<BR>&nbsp;&nbsp;&nbsp; __asm__ 
__volatile__("isync");<BR>&nbsp;&nbsp;&nbsp; __asm__ 
__volatile__("sync");<BR></DIV>
<DIV>}</DIV>
<DIV>&nbsp;</DIV>
<DIV>4. call move_bat1 at board_init_r ......</DIV>
<DIV>&nbsp;</DIV>
<DIV>but...board not working.....</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV><FONT size=2>
<DIV><BR></FONT><FONT size=3>&nbsp;</FONT></DIV></FONT></DIV></BODY></HTML>