<!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.2800.1106" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial>Hi, </FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>I am a newbie to u-boot as well as embedded system
development, I have problem to port u-boot to my board.</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>I have a customized board with Motorola MC9328MXL
processor, which is the same as mx1ads board. The hardware configurations
as below:</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>CPU: </FONT><FONT face=Times>Motorola Dragon Ball MXL
microcontroller (<SPAN style="mso-bookmark: _Toc72550872"><SPAN
style="FONT-SIZE: 11pt; FONT-FAMILY: TimesNewRoman">ARM920T CPU
Core)</SPAN></SPAN></FONT></DIV>
<DIV><FONT face=Times><SPAN style="mso-bookmark: _Toc72550872"><SPAN
style="FONT-SIZE: 11pt; FONT-FAMILY: TimesNewRoman">CPU Core speed 192MHZ and
System Speed 96MHz</SPAN></SPAN></FONT></DIV>
<DIV><FONT face=Arial><SPAN style="mso-bookmark: _Toc72550872"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: TimesNewRoman"><FONT
face=times><?xml:namespace prefix = o ns =
"urn:schemas-microsoft-com:office:office"
/><o:p></o:p></FONT></SPAN></SPAN></FONT> </DIV>
<DIV><FONT face=Arial><SPAN style="mso-bookmark: _Toc72550872"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: TimesNewRoman"><FONT face=times><o:p>RAM:
8M bytes</o:p></FONT></SPAN></SPAN></FONT></DIV>
<DIV><FONT face=Arial><SPAN style="mso-bookmark: _Toc72550872"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: TimesNewRoman"><FONT face=times><o:p>Ram
address: <FONT size=3>0x08000000 ----
0x08800000</FONT></o:p></FONT></SPAN></SPAN></FONT></DIV>
<DIV><FONT face=Arial><SPAN style="mso-bookmark: _Toc72550872"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: TimesNewRoman"><FONT face=times
size=3><o:p></o:p></FONT></SPAN></SPAN></FONT> </DIV>
<DIV><FONT face=Arial><SPAN style="mso-bookmark: _Toc72550872"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: TimesNewRoman"><FONT face=times
size=3><o:p>Flash: 2M Bytes</o:p></FONT></SPAN></SPAN></FONT></DIV>
<DIV><FONT face=Arial><SPAN style="mso-bookmark: _Toc72550872"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: TimesNewRoman"><FONT face=times
size=3><o:p>For bootup, 0x00000000 --
0x00200000</o:p></FONT></SPAN></SPAN></FONT></DIV>
<DIV><FONT face=Arial><SPAN style="mso-bookmark: _Toc72550872"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: TimesNewRoman"><FONT face=times
size=3><o:p>For normal working, 0x10000000 --
0x10200000</o:p></FONT></SPAN></SPAN></FONT></DIV>
<DIV><FONT face=Arial><SPAN style="mso-bookmark: _Toc72550872"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: TimesNewRoman"><FONT face=times
size=3><o:p></o:p></FONT></SPAN></SPAN></FONT> </DIV>
<DIV><FONT><SPAN style="mso-bookmark: _Toc72550872"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: TimesNewRoman"><FONT face=Arial
size=3><o:p>I/O:</o:p></FONT></SPAN></SPAN></FONT></DIV>
<DIV><FONT><SPAN style="mso-bookmark: _Toc72550872"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: TimesNewRoman"><FONT face=Arial
size=3><o:p>1 Serial at UART 1</o:p></FONT></SPAN></SPAN></FONT></DIV>
<DIV><FONT><SPAN style="mso-bookmark: _Toc72550872"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: TimesNewRoman"><FONT face=Arial
size=3><o:p>1 USB slave</o:p></FONT></SPAN></SPAN></FONT></DIV>
<DIV><FONT><SPAN style="mso-bookmark: _Toc72550872"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: TimesNewRoman"><FONT face=Arial
size=3><o:p></o:p></FONT></SPAN></SPAN></FONT><FONT><FONT face=Arial>No
Ethernet</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>According to the above configs, I did the following
modification to mx1ads.h</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>#define CFG_MEMTEST_START 0x08100000 /* memtest
works on */<BR>#define CFG_MEMTEST_END 0x08800000 /* 7 MB
in DRAM */<BR></FONT></DIV>
<DIV><FONT face=Arial>#define CFG_LOAD_ADDR 0x08400000 /*
default load address */<BR></FONT></DIV>
<DIV><FONT
face=Arial>/*-----------------------------------------------------------------------<BR> *
Physical Memory Map<BR> */</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>#define CONFIG_NR_DRAM_BANKS 1 /* we have
1 bank of SDRAM */<BR>#define PHYS_SDRAM_1 0x08000000 /*
SDRAM on CSD0 */<BR>#define
PHYS_SDRAM_1_SIZE 0x00800000 /* 8 MB */</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>#define CFG_MAX_FLASH_BANKS 1 /* 1 bank of
SyncFlash */<BR>#define CFG_FLASH_BASE 0x00000000 /*
SyncFlash on CSD1 */<BR>#define
FLASH_BANK_SIZE 0x00200000 /* 2 MB
Total */</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT
face=Arial>/*-----------------------------------------------------------------------<BR> *
FLASH and environment organization<BR> */</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>#define CONFIG_SYNCFLASH 1<BR>#define
PHYS_FLASH_SIZE 0x00200000<BR>#define
CFG_MAX_FLASH_SECT (8)<BR>#define
CFG_ENV_ADDR (CFG_FLASH_BASE+0x00080000)</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>#define CFG_ENV_IS_IN_FLASH 1<BR>#define
CFG_ENV_SIZE 0x04000 /* Total Size of Environment Sector
*/<BR>#define CFG_ENV_SECT_SIZE 0x040000<BR></FONT></DIV></FONT>
<DIV><FONT face=Arial>After compilation, I download the u-boot.bin to
0x08000000 with Trace32</FONT></DIV>
<DIV><FONT face=Arial>Then set PC to 0x08000000 and run</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>But how can I know it running ok? The serial port doesn't
have any data ( I monitored with oscilloscope)</FONT></DIV>
<DIV><FONT face=Arial>And from the Trace32 Debugger, the CPU will keep
looping at some point.</FONT></DIV></BODY></HTML>