<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16414" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2></FONT> </DIV>
<DIV></DIV>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Dongying_Xu@us.alphanetworks.com
[mailto:Dongying_Xu@us.alphanetworks.com] <BR><B>Sent:</B> Monday, March 05,
2007 3:08 PM<BR><B>To:</B> Fowley, Douglas G (GE Infra, Energy)<BR><B>Cc:</B>
u-boot-users@lists.sourceforge.net<BR><B>Subject:</B> Re: [U-Boot-Users]
mpc8343 could not boot on u-boot-1.2.0<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><BR><FONT face=sans-serif size=2>Hi Doug,</FONT> <BR><BR><FONT
face=sans-serif size=2>Are you using linux kernel? When you comment out
'enable address translation', can you successfully boot with linux kernel?
When I comment out those line, it did help to boot until u-boot
console shows up, but it failed to continue boot up with linux kernel.
To make linux kernel working, I have to keep following old 1.1.3 version
code in, which will cause another problem. Did you have similar
problem?</FONT> <BR><BR><FONT face=sans-serif size=2>Thank you and best
regards</FONT> <BR><FONT face=sans-serif size=2>dongy</FONT> <BR><BR><BR><FONT
face=sans-serif size=2><I>un_setup_stack_in_data_cache:</I></FONT> <BR><FONT
face=sans-serif size=2><I> blr</I></FONT> <BR><FONT
face=sans-serif size=2><I> mr r14, r4</I></FONT>
<BR><FONT face=sans-serif size=2><I> mr r15,
r5</I></FONT> <BR><BR><BR><FONT face=sans-serif size=2><I>
lis r4, (CFG_INIT_RAM_ADDR & 0xFFFE0000)@h</I></FONT> <BR><FONT
face=sans-serif size=2><I> mtspr
DBAT0U, r4</I></FONT> <BR><FONT face=sans-serif size=2><I>
ori r4, r4, 0x0002</I></FONT> <BR><FONT face=sans-serif
size=2><I> mtspr DBAT0L,
r4</I></FONT> <BR><FONT face=sans-serif size=2><I>
isync</I></FONT> <BR><BR><FONT face=sans-serif size=2><I>
/* un lock all the D-cache */</I></FONT> <BR><FONT face=sans-serif
size=2><I> mfspr r4,
HID0</I></FONT> <BR><FONT face=sans-serif size=2><I>
lis r5, (~(HID0_DLOCK))@h</I></FONT> <BR><FONT face=sans-serif
size=2><I> ori r5, r5,
(~(HID0_DLOCK))@l</I></FONT> <BR><FONT face=sans-serif size=2><I>
and r4, r4, r5</I></FONT> <BR><FONT face=sans-serif
size=2><I> sync</I></FONT> <BR><FONT
face=sans-serif size=2><I> mtspr
HID0 , r4</I></FONT> <BR><BR><FONT face=sans-serif
size=2><I> /* Re - Allocate Initial RAM in data
cache.*/</I></FONT> <BR><FONT face=sans-serif size=2><I>
li r0, 0</I></FONT> <BR><FONT face=sans-serif size=2><I>
lis r4,
(CFG_INIT_RAM_ADDR)@h</I></FONT> <BR><FONT face=sans-serif size=2><I>
ori r4, r4,
(CFG_INIT_RAM_ADDR)@l</I></FONT> <BR><FONT face=sans-serif size=2><I>
li r5, 128*8 /* 128*8*32=32Kb
*/</I></FONT> <BR><FONT face=sans-serif size=2><I>
mtctr r5</I></FONT> <BR><FONT face=sans-serif
size=2><I>1:</I></FONT> <BR><FONT face=sans-serif size=2><I>
dcbz r0, r4</I></FONT> <BR><FONT
face=sans-serif size=2><I> addi
r4, r4, 32</I></FONT> <BR><FONT face=sans-serif size=2><I>
bdnz 1b</I></FONT> <BR><FONT
face=sans-serif size=2><I> isync</I></FONT>
<BR><BR><FONT face=sans-serif size=2><I> mflr
r16</I></FONT> <BR><FONT face=sans-serif size=2><I>
bl dcache_disable</I></FONT> <BR><FONT face=sans-serif size=2><I>
mtlr r16</I></FONT> <BR><BR><FONT face=sans-serif
size=2><I> blr</I></FONT> <BR><SPAN
class=361401522-05032007><FONT face=Arial color=#0000ff
size=2> </FONT></SPAN></DIV></BLOCKQUOTE>
<DIV><SPAN class=361401522-05032007><FONT face=Arial color=#0000ff size=2>Hi
Dongy,</FONT></SPAN></DIV>
<DIV><SPAN class=361401522-05032007><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV><SPAN class=361401522-05032007>
<DIV><FONT face=Arial color=#0000ff size=2>I do not use Linux; I run QNX
Neutrino. But I did have a<SPAN class=361401522-05032007> similar
</SPAN>problem</FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><FONT
size=+0>running<SPAN class=361401522-05032007> </SPAN></FONT>QNX when I switched
to U-Boot 1.1.4 and beyond<SPAN class=361401522-05032007>. U-Boot
began</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=361401522-05032007>leaving </SPAN></FONT></FONT></FONT><FONT
face=Arial><FONT color=#0000ff><FONT size=2><SPAN class=361401522-05032007>the
data cache enabled with that version. Note that the last
part</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=361401522-05032007>of 1.1.3 </SPAN></FONT></FONT></FONT><FONT
face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=361401522-05032007>snippet </SPAN></FONT></FONT></FONT><FONT
face=Arial><FONT color=#0000ff><FONT size=2><SPAN class=361401522-05032007>that
you still use (above) disables the data cache.</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=361401522-05032007></SPAN></FONT></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=361401522-05032007>I fixed it for QNX by adding
</SPAN></FONT></FONT></FONT><FONT face=Arial><FONT color=#0000ff><FONT
size=2><SPAN class=361401522-05032007>"CFG_COMMAND_CACHE" to
</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=361401522-05032007>"CONFIG_COMMANDS" in my board header
</SPAN></FONT></FONT></FONT><FONT face=Arial><FONT color=#0000ff><FONT
size=2><SPAN class=361401522-05032007>file in include/configs, and
</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=361401522-05032007>adding "dcache off; " to the appropriate spot in the
bootcmd environment</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=361401522-05032007></SPAN></FONT></FONT></FONT><FONT face=Arial><FONT
color=#0000ff><FONT size=2><SPAN class=361401522-05032007>variable. In my
case,</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=361401522-05032007></SPAN></FONT></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=361401522-05032007> #define CONFIG_BOOTCOMMAND "tftp
${loadaddr} ${ifsfile}; " \</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=361401522-05032007> "dcache off;
" \</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=361401522-05032007> "go
${loadaddr}"</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=361401522-05032007></SPAN></FONT></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=361401522-05032007>Since my disable address translation trick got your
U-Boot </SPAN></FONT></FONT></FONT><FONT face=Arial><FONT color=#0000ff><FONT
size=2><SPAN class=361401522-05032007>up and</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=361401522-05032007>running, I suggest trying my data cache hack for Linux
and reporting</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=361401522-05032007>back.</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=361401522-05032007></SPAN></FONT></FONT></FONT><FONT face=Arial><FONT
color=#0000ff><FONT size=2><SPAN
class=361401522-05032007></SPAN></FONT></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=361401522-05032007>Regards,</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=361401522-05032007></SPAN></FONT></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=361401522-05032007>Doug</SPAN></FONT></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=361401522-05032007><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV></BODY></HTML>