<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.6944.0">
<TITLE>Debugging U-Boot on arm920t using BDI2000 </TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>Hello,<BR>
<BR>
I am developing a custom board with motorola's MX1 processor.<BR>
I have compiled U-Boot successfully for MX1ADS evaluation board<BR>
(it has SyncFlash instead of flash), and this hardware isn't<BR>
very different from mine (only difference is flash). I have studied<BR>
the README and carried out the porting as it is specified, but<BR>
U-Boot doesn't work, or I don't get anything in serial console.<BR>
<BR>
I'm using BDI2000, and when I try to debug U-Boot the code hangs<BR>
in relocate function in start.S file. The exact instruction that hangs the<BR>
gdb is: &quot;sub r2, r3, r2&nbsp;&nbsp;&nbsp;&nbsp; /* r2 &lt;- size of u-boot */&quot;<BR>
&nbsp;&nbsp;&nbsp;<BR>
&nbsp;&nbsp;&nbsp; 1- One problem is that I don't see how the general purpose<BR>
&nbsp;&nbsp;&nbsp; registers (r0, r1...) values change, i.e. when &quot;ldr r0, _start&quot;<BR>
&nbsp;&nbsp;&nbsp; is executed, r0 doesn't change, is this normal? (Is it possible<BR>
&nbsp;&nbsp;&nbsp; to debug start.S with BDI2000?)<BR>
<BR>
When I compile the code,there are no errors or warnings, but a<BR>
UNDEF_SYM appears:<BR>
<BR>
...<BR>
<BR>
make[1]: Leaving directory `/home/iim/IKOR/LinuxEmpotrado/LinCon/\<BR>
build_tools/u-boot/u-boot-1.1.3/common'<BR>
<BR>
UNDEF_SYM=`arm-unknown-linux-gnu-objdump -x lib_generic/libgeneric.a \<BR>
board/LinCon/libLinCon.a cpu/arm920t/libarm920t.a cpu/arm920t/imx/libimx.a \<BR>
lib_arm/libarm.a fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a \<BR>
fs/jffs2/libjffs2.a fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a net/libnet.a \<BR>
disk/libdisk.a rtc/librtc.a dtt/libdtt.a drivers/libdrivers.a drivers/sk98lin/libsk98lin.a \<BR>
post/libpost.a post/cpu/libcpu.a common/libcommon.a |sed&nbsp; -n -e \<BR>
's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; arm-unknown-linux-gnu-ld -Bstatic -T \<BR>
/home/iim/IKOR/LinuxEmpotrado/LinCon/build_tools/u-boot/u-boot-1.1.3/board/LinCon/u-boot.lds \<BR>
-Ttext 0x08f00000&nbsp; $UNDEF_SYM cpu/arm920t/start.o \<BR>
<BR>
...<BR>
<BR>
&nbsp;&nbsp;&nbsp; 2- When I compile u-boot for my Evaluation Board (MX1ADS),<BR>
&nbsp;&nbsp;&nbsp; this UNDEF_SYM appears, but u-boot works without any problem!<BR>
&nbsp;&nbsp;&nbsp; Is this a problem, or only a &quot;warning&quot;?<BR>
<BR>
Some configuration parameters:<BR>
<BR>
&nbsp;&nbsp;&nbsp; 32MB SDRAM -&gt; 0x08000000-0x0A000000<BR>
&nbsp;&nbsp;&nbsp; 16MB Flash -&gt; 0x10000000-0x11000000<BR>
&nbsp;&nbsp;&nbsp;<BR>
&nbsp;&nbsp;&nbsp; TEXT_BASE=0x08f00000 (board/&lt;board&gt;/config.mk)<BR>
&nbsp;&nbsp;&nbsp; CFG_MONITOR_BASE=0x10000000 /* flash base addr */(include/configs/&lt;board&gt;.h)<BR>
&nbsp;&nbsp;&nbsp; CFG_MONITOR_LEN=0x20000 (include/configs/&lt;board&gt;.h)<BR>
&nbsp;&nbsp;&nbsp; CFG_LOAD_ADDR=0x08f00000 (include/configs/&lt;board&gt;.h)<BR>
<BR>
arm-linux-objdump -h displays:<BR>
&nbsp; #arm-unknown-linux-gnu-objdump -h u-boot<BR>
<BR>
u-boot:&nbsp;&nbsp;&nbsp;&nbsp; file format elf32-littlearm<BR>
<BR>
Sections:<BR>
Idx Name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Size&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; VMA&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LMA&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; File off&nbsp; Algn<BR>
&nbsp; 0 .text&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 00012f34&nbsp; 08f00000&nbsp; 08f00000&nbsp; 00008000&nbsp; 2**5<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CONTENTS, ALLOC, LOAD, READONLY, CODE<BR>
&nbsp; 1 .glue_7&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 00000000&nbsp; 08f12f34&nbsp; 08f12f34&nbsp; 0001af34&nbsp; 2**2<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CONTENTS, ALLOC, LOAD, READONLY, CODE<BR>
&nbsp; 2 .glue_7t&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 00000000&nbsp; 08f12f34&nbsp; 08f12f34&nbsp; 0001af34&nbsp; 2**2<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CONTENTS, ALLOC, LOAD, READONLY, CODE<BR>
&nbsp; 3 .rodata&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 00000568&nbsp; 08f12f34&nbsp; 08f12f34&nbsp; 0001af34&nbsp; 2**2<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CONTENTS, ALLOC, LOAD, READONLY, DATA<BR>
&nbsp; 4 .rodata.str1.4 000042b3&nbsp; 08f1349c&nbsp; 08f1349c&nbsp; 0001b49c&nbsp; 2**2<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CONTENTS, ALLOC, LOAD, READONLY, DATA<BR>
&nbsp; 5 .data&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 00000933&nbsp; 08f17750&nbsp; 08f17750&nbsp; 0001f750&nbsp; 2**2<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CONTENTS, ALLOC, LOAD, DATA<BR>
&nbsp; 6 .u_boot_cmd&nbsp;&nbsp; 00000378&nbsp; 08f18084&nbsp; 08f18084&nbsp; 00020084&nbsp; 2**2<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CONTENTS, ALLOC, LOAD, DATA<BR>
&nbsp; 7 .bss&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 00001c2c&nbsp; 08f183fc&nbsp; 08f183fc&nbsp; 000203fc&nbsp; 2**2<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ALLOC<BR>
&nbsp; 8 .stab&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 00000c90&nbsp; 00000000&nbsp; 00000000&nbsp; 000203fc&nbsp; 2**2<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CONTENTS, READONLY, DEBUGGING<BR>
&nbsp; 9 .stabstr&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0000017d&nbsp; 00000000&nbsp; 00000000&nbsp; 0002108c&nbsp; 2**0<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CONTENTS, READONLY, DEBUGGING<BR>
&nbsp;10 .debug_abbrev 000062dd&nbsp; 00000000&nbsp; 00000000&nbsp; 00021209&nbsp; 2**0<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CONTENTS, READONLY, DEBUGGING<BR>
&nbsp;11 .debug_info&nbsp;&nbsp; 0003bcf1&nbsp; 00000000&nbsp; 00000000&nbsp; 000274e6&nbsp; 2**0<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CONTENTS, READONLY, DEBUGGING<BR>
&nbsp;12 .debug_line&nbsp;&nbsp; 00009f00&nbsp; 00000000&nbsp; 00000000&nbsp; 000631d7&nbsp; 2**0<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CONTENTS, READONLY, DEBUGGING<BR>
&nbsp;13 .debug_frame&nbsp; 00002f6c&nbsp; 00000000&nbsp; 00000000&nbsp; 0006d0d8&nbsp; 2**2<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CONTENTS, READONLY, DEBUGGING<BR>
&nbsp;14 .debug_pubnames 00001845&nbsp; 00000000&nbsp; 00000000&nbsp; 00070044&nbsp; 2**0<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CONTENTS, READONLY, DEBUGGING<BR>
&nbsp;15 .debug_aranges 000005a0&nbsp; 00000000&nbsp; 00000000&nbsp; 00071889&nbsp; 2**0<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CONTENTS, READONLY, DEBUGGING<BR>
&nbsp;16 .debug_str&nbsp;&nbsp;&nbsp; 00003df0&nbsp; 00000000&nbsp; 00000000&nbsp; 00071e29&nbsp; 2**0<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CONTENTS, READONLY, DEBUGGING<BR>
&nbsp;17 .comment&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0000033c&nbsp; 00000000&nbsp; 00000000&nbsp; 00075c19&nbsp; 2**0<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CONTENTS, READONLY<BR>
&nbsp;18 .debug_ranges 00000288&nbsp; 00000000&nbsp; 00000000&nbsp; 00075f55&nbsp; 2**0<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CONTENTS, READONLY, DEBUGGING<BR>
&nbsp;&nbsp;&nbsp;<BR>
Any help will be welcomed!!<BR>
<BR>
Thanks in advance.<BR>
<BR>
Ioritz</FONT>
</P>

</BODY>
</HTML>