public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] data abort
@ 2003-09-15 11:04 Glenson Muthedan
  2003-09-15 11:29 ` Wolfgang Denk
  2003-09-15 11:42 ` Robert Schwebel
  0 siblings, 2 replies; 14+ messages in thread
From: Glenson Muthedan @ 2003-09-15 11:04 UTC (permalink / raw)
  To: u-boot

Hello everybody!

First of all thanks to Wolfgang Denk and Robert Schwebel for the helpful 
instructions to get started with U-Boot and BDI2000.

Now, I've a new problem: When U-Boot starts I can see following outsputs 
  through "cu", before the system stops due to a data abort.
(My board: PXA250, 32MB SDRAM, 32MB Strataflash, etc.)

****************************************************
U-Boot 0.4.0 (Sep 15 2003 - 12:09:08)

U-Boot code: A1FE0000 -> A1FF5728  BSS: -> A1FF6BD4
DRAM Configuration:
Bank #0: a0000000 32 MB
Flash: 32 MB
data abort
undefined instruction
undefined instruction
undefined instruction
****************************************************

I put some printf-lines(beginning with GM) in the soucecode to see where 
the execution stops. Here, my debug-output:

****************************************************
U-Boot 0.4.0 (Sep 15 2003 - 12:23:05)

U-Boot code: A1FE0000 -> A1FF5870  BSS: -> A1FF6D1C
DRAM Configuration:
Bank #0: a0000000 32 MB
Flash: 32 MB

  GM: lib_arm/board.c; entering devices_init()

  GM: common/devices.c; entering ListCreate()

  GM: common/lists.c; after 'list = (list_t) (NewHandle (sizeof 
(ListStruct)))'
  GM: common/lists.c;  list = 0badc108
  GM: common/lists.c; *list = a1ff10a0
data abort
prefetch abort
prefetch abort
prefetch abort
prefetch abort
****************************************************

If I understand right, this exception occurs due to access to the 
contents of the created list. For example at the line(lists.c: 
ListCreate): (*list)->numItems = 0;

Why does this happen? I'm quite sure that my Flash and SDRAM are working 
properly. Can somebody suggest a way to workaround this problem?

Thanks.
Glenson Muthedan.

^ permalink raw reply	[flat|nested] 14+ messages in thread
* [U-Boot-Users] data abort
@ 2003-09-16 20:36 Woodruff, Richard
  0 siblings, 0 replies; 14+ messages in thread
From: Woodruff, Richard @ 2003-09-16 20:36 UTC (permalink / raw)
  To: u-boot

I had similar problems with the 925 when I first enabled devices via
devices_init, the arm code does not do selective remapping.  Inside
devices_init() should be a conditional for ARM only.  I suspect your -pxa
patch wiped this or other such code out.

Regards,

Richard W.   

> -----Original Message-----
> From: Glenson Muthedan [mailto:glenson at gmx.de] 
> Sent: Tuesday, September 16, 2003 1:44 PM
> To: u-boot-users at lists.sourceforge.net
> Subject: Re: [U-Boot-Users] data abort
> 
> 
> Hello!
> 
> Thank you guys for your kind help. My SDRAM initialization was not 
> correct. Now, having done some changes, everything seems to work 
> smoothly except one line in devices_init() in the file 
> common/devices.c
> 
> The execution stops at the line
> gd->flags |= GD_FLG_DEVINIT;	/* device initialization done */
> 
> Then, sometimes a "prefetch abort" occurs, sometimes it just hangs.
> 
> When I comment this line, U-Boot runs up to the bootloader-prompt 
> without any problem. So I hope, the line above is not a 
> crucial one if I 
> only have to do with the serial console. But I'm interested 
> to know what 
> you think about this temporary solution; am I running into 
> problems later?
> 
> Regards.
> Glenson.
> 
> 
> Wolfgang Denk wrote:
>  > Fix your SDRAM initialization.
> 
> Robert Schwebel wrote:
>  > Sounds like memory problems. Are you sure you did your RAM
>  > initialization correct?
> 
> Anders Larsen wrote:
>  > ...or because ListCreate() can't allocate a (writable) 
> block of RAM.  > ...
> 
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf 
> _______________________________________________
> U-Boot-Users mailing list
> U-Boot-Users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/u-boot-users
> 

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2003-09-17 14:17 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-15 11:04 [U-Boot-Users] data abort Glenson Muthedan
2003-09-15 11:29 ` Wolfgang Denk
2003-09-15 11:48   ` Anders Larsen
2003-09-15 12:51     ` Robert Schwebel
2003-09-15 12:58       ` Anders Larsen
2003-09-15 13:44         ` Robert Schwebel
2003-09-16 18:43     ` Glenson Muthedan
2003-09-16 20:26       ` Wolfgang Denk
2003-09-17  8:57       ` Anders Larsen
2003-09-17 10:02         ` Wolfgang Denk
2003-09-17 10:08           ` Anders Larsen
2003-09-17 14:17         ` Glenson Muthedan
2003-09-15 11:42 ` Robert Schwebel
  -- strict thread matches above, loose matches on Subject: below --
2003-09-16 20:36 Woodruff, Richard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox