Skip to contentSkip to conversation

U-Boot debug - Error

U-Boot manojatl 3 participants 3 messages Sep 16, 2010

lore
Share & tools
lore

manojatl

author
#0 lore raw

We are using tool chain gnuarm 3.4.3 to compile U-Boot 1.1.6 for SMDK2400 board (ARM 9). The commands were as follows.

make distclean
make smdk2400_config
make

We are able to successfully generate u-boot.The tool chain have build in
insight with version GNU gdb 6.1.

While debugging the u-boot.elf in insight with sim target, we encounter error with memset() funtion,which was called in the start_armboot() function. The mixed code for memset() function is as follows

                        427                    char *xs = (char *) s; 
                        0xcf8e0f4     <memset1+12>        : mov r3, r0                  
                        
                        428                    int l_count = count/4; 
                        0xcf8e0e8    <memset1>            : mov r2, r2, lsr

#2

                        429  
                        430                     while (l_count--)
                        431                             *xs++ = c;
                         
                        0xcf8e0ec      <memset1+4>         : sub r2, r2, #1
; 0x1 
                        0xcf8e0f0     <memset1+8>         : cmn r2, #1 ; 0x1 
                        0xcf8e0f8      <memset1+16>       : moveq pc, lr 
                        0xcf8e0fc      <memset1+20>        : sub r2, r2, #1
; 0x1 
                        0xcf8e100     <memset1+24>       : cmn r2, #1 ; 0x1 
                        0xcf8e104    <memset1+28>      : strb r1, [r3], #1 
                        0xcf8e108     <memset1+32>       : bne 0xcf8e0fc

<memset1+20>

                        432  
                        433                        return s;
                        434     }
                         
                        0xcf8e10c     <memset1+36>        : mov pc, lr 

The "strb r1, [r3], #1" code tries to store 0x00 to locations starting from 0x0cf1ffdc to 0x0cf20000 (36 bytes) byte by byte.The code successfully writes 0x00 to first byte location (0x0cf1ffdc), but when it tries to write the second byte location (0x0cf1ffdd), it throws an exception and the program hangs.

The makefile in the Top directory (./U-Boot) and config.mk file of './U-Boot/cpu/arm920t' are attached for your ready reference.

Please help us to sort the above issue.
http://old.nabble.com/file/p29725451/Makefile.txt Makefile.txt
http://old.nabble.com/file/p29725451/config.mk config.mk

Signature · 2 lines
View this message in context: http://old.nabble.com/U-Boot-debug---Error-tp29725451p29725451.html
Sent from the Uboot - Users mailing list archive at Nabble.com.
#1 lore raw
Quoted 9 lines · manojatl

We are using tool chain gnuarm 3.4.3 to compile U-Boot 1.1.6 for SMDK2400 board (ARM 9). The commands were as follows.

make distclean
make smdk2400_config
make

Quoted 7 lines

We are able to successfully generate u-boot.The tool chain have build in
insight with version GNU gdb 6.1.

While debugging the u-boot.elf in insight with sim target, we encounter error with memset() funtion,which was called in the start_armboot() function. The mixed code for memset() function is as follows

I'm sorry, but it is highly unlikely that anybody here is going to help out with issues you have with an ancient version of U-Boot.

Try checking out the latest version from the git repository, or downloading the latest snapshot tarball and then seeking help back here (if you need it) on getting your board up and running.

Regards,

Graeme

#2 lore raw
In reply to manojatl

Dear manojatl,

Quoted 3 lines · In message <[email protected]> you wrote:

We are using tool chain gnuarm 3.4.3 to compile U-Boot 1.1.6 for SMDK2400 board (ARM 9). The commands were as follows.

GCC 3.4.3 was released 6.5 years ago. U-Boot 1.1.6 was released 4.5 years ago.

These versions are extremenly old. Instead of wasting your time trying to get this ancient stuff running, I strongly recommend to update to more recent versions of both the tool chain and U-Boot.

Apart from that, to the best of my knowledge the SMDK2400 board support has always been working in all official releases of U-Boot that contain support for this board. IF you see problems, it is highly likely that these be caused by your tool chain - gcc 3.4.x has always had a number of issues.

As stated before: update and use current tools and code.

Best regards,

Wolfgang Denk

Signature · 6 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
He'd heard her use that sweet, innocent  tone  of  voice  before.  It
meant that, pretty soon, there was going to be trouble.
                                        - Terry Pratchett, _Truckers_