[U-Boot-Users] Debugging U-Boot on arm920t using BDI2000

Ioritz Irazustabarrena Murgiondo ioritz.imasd at ikor.es
Wed Oct 5 16:56:12 CEST 2005


Hello,

I am developing a custom board with motorola's MX1 processor.
I have compiled U-Boot successfully for MX1ADS evaluation board 
(it has SyncFlash instead of flash), and this hardware isn't
very different from mine (only difference is flash). I have studied
the README and carried out the porting as it is specified, but
U-Boot doesn't work, or I don't get anything in serial console.

I'm using BDI2000, and when I try to debug U-Boot the code hangs
in relocate function in start.S file. The exact instruction that hangs the 
gdb is: "sub r2, r3, r2     /* r2 <- size of u-boot */" 
    
    1- One problem is that I don't see how the general purpose 
    registers (r0, r1...) values change, i.e. when "ldr r0, _start"
    is executed, r0 doesn't change, is this normal? (Is it possible
    to debug start.S with BDI2000?)

When I compile the code,there are no errors or warnings, but a 
UNDEF_SYM appears:

...

make[1]: Leaving directory `/home/iim/IKOR/LinuxEmpotrado/LinCon/\
build_tools/u-boot/u-boot-1.1.3/common'

UNDEF_SYM=`arm-unknown-linux-gnu-objdump -x lib_generic/libgeneric.a \
board/LinCon/libLinCon.a cpu/arm920t/libarm920t.a cpu/arm920t/imx/libimx.a \
lib_arm/libarm.a fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a \
fs/jffs2/libjffs2.a fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a net/libnet.a \
disk/libdisk.a rtc/librtc.a dtt/libdtt.a drivers/libdrivers.a drivers/sk98lin/libsk98lin.a \
post/libpost.a post/cpu/libcpu.a common/libcommon.a |sed  -n -e \
's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
		
	arm-unknown-linux-gnu-ld -Bstatic -T \
/home/iim/IKOR/LinuxEmpotrado/LinCon/build_tools/u-boot/u-boot-1.1.3/board/LinCon/u-boot.lds \
-Ttext 0x08f00000  $UNDEF_SYM cpu/arm920t/start.o \

...

    2- When I compile u-boot for my Evaluation Board (MX1ADS),
    this UNDEF_SYM appears, but u-boot works without any problem!
    Is this a problem, or only a "warning"?

Some configuration parameters:

    32MB SDRAM -> 0x08000000-0x0A000000
    16MB Flash -> 0x10000000-0x11000000
    
    TEXT_BASE=0x08f00000 (board/<board>/config.mk)
    CFG_MONITOR_BASE=0x10000000 /* flash base addr */(include/configs/<board>.h)
    CFG_MONITOR_LEN=0x20000 (include/configs/<board>.h)
    CFG_LOAD_ADDR=0x08f00000 (include/configs/<board>.h)

arm-linux-objdump -h displays:
  #arm-unknown-linux-gnu-objdump -h u-boot

u-boot:     file format elf32-littlearm

Sections:
Idx Name          Size      VMA       LMA       File off  Algn
  0 .text         00012f34  08f00000  08f00000  00008000  2**5
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
  1 .glue_7       00000000  08f12f34  08f12f34  0001af34  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
  2 .glue_7t      00000000  08f12f34  08f12f34  0001af34  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
  3 .rodata       00000568  08f12f34  08f12f34  0001af34  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  4 .rodata.str1.4 000042b3  08f1349c  08f1349c  0001b49c  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  5 .data         00000933  08f17750  08f17750  0001f750  2**2
                  CONTENTS, ALLOC, LOAD, DATA
  6 .u_boot_cmd   00000378  08f18084  08f18084  00020084  2**2
                  CONTENTS, ALLOC, LOAD, DATA
  7 .bss          00001c2c  08f183fc  08f183fc  000203fc  2**2
                  ALLOC
  8 .stab         00000c90  00000000  00000000  000203fc  2**2
                  CONTENTS, READONLY, DEBUGGING
  9 .stabstr      0000017d  00000000  00000000  0002108c  2**0
                  CONTENTS, READONLY, DEBUGGING
 10 .debug_abbrev 000062dd  00000000  00000000  00021209  2**0
                  CONTENTS, READONLY, DEBUGGING
 11 .debug_info   0003bcf1  00000000  00000000  000274e6  2**0
                  CONTENTS, READONLY, DEBUGGING
 12 .debug_line   00009f00  00000000  00000000  000631d7  2**0
                  CONTENTS, READONLY, DEBUGGING
 13 .debug_frame  00002f6c  00000000  00000000  0006d0d8  2**2
                  CONTENTS, READONLY, DEBUGGING
 14 .debug_pubnames 00001845  00000000  00000000  00070044  2**0
                  CONTENTS, READONLY, DEBUGGING
 15 .debug_aranges 000005a0  00000000  00000000  00071889  2**0
                  CONTENTS, READONLY, DEBUGGING
 16 .debug_str    00003df0  00000000  00000000  00071e29  2**0
                  CONTENTS, READONLY, DEBUGGING
 17 .comment      0000033c  00000000  00000000  00075c19  2**0
                  CONTENTS, READONLY
 18 .debug_ranges 00000288  00000000  00000000  00075f55  2**0
                  CONTENTS, READONLY, DEBUGGING
    
Any help will be welcomed!!

Thanks in advance.

Ioritz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20051005/d8a93f99/attachment.htm 


More information about the U-Boot mailing list