* [U-Boot] U-Boot debug - Error
@ 2010-09-16 6:48 manojatl
2010-09-16 7:08 ` Graeme Russ
2010-09-16 7:13 ` Wolfgang Denk
0 siblings, 2 replies; 3+ messages in thread
From: manojatl @ 2010-09-16 6:48 UTC (permalink / raw)
To: u-boot
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
--
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.
^ permalink raw reply [flat|nested] 3+ messages in thread* [U-Boot] U-Boot debug - Error
2010-09-16 6:48 [U-Boot] U-Boot debug - Error manojatl
@ 2010-09-16 7:08 ` Graeme Russ
2010-09-16 7:13 ` Wolfgang Denk
1 sibling, 0 replies; 3+ messages in thread
From: Graeme Russ @ 2010-09-16 7:08 UTC (permalink / raw)
To: u-boot
On Thu, Sep 16, 2010 at 4:48 PM, manojatl <manmano@rediffmail.com> 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.
>
>
> 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
>
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] U-Boot debug - Error
2010-09-16 6:48 [U-Boot] U-Boot debug - Error manojatl
2010-09-16 7:08 ` Graeme Russ
@ 2010-09-16 7:13 ` Wolfgang Denk
1 sibling, 0 replies; 3+ messages in thread
From: Wolfgang Denk @ 2010-09-16 7:13 UTC (permalink / raw)
To: u-boot
Dear manojatl,
In message <29725451.post@talk.nabble.com> 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
--
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_
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-09-16 7:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-16 6:48 [U-Boot] U-Boot debug - Error manojatl
2010-09-16 7:08 ` Graeme Russ
2010-09-16 7:13 ` Wolfgang Denk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox