Skip to contentSkip to conversation

U-boot1.1.6 calloc problem

U-Boot John Smith 2 participants 2 messages Jan 5, 2009

lore
Share & tools
lore

John Smith

author
#0 lore raw

Hey all,
?
U-boot1.1.6,whitch I ported to my board S3C44B0 ,it worked very well for few days, but something was wrong today.
What I got from serial:
------------------------------------------------------------------------
U-boot1.1.6
?
DRAM: 8M
Flash?: 2M
-----------------------------------------------------------------------
after tracing functions by using "printf" command,I found the problem was "devlist=NULL". then I went deep,found the function "NewHandle" ,whitch is related to Create empty List. It returned "NULL" ,and the problem is command "calloc".
?
any help is appreciated.
?
regards ,
John
?
?

#1 lore raw

Dear John Smith,

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

U-boot1.1.6,whitch I ported to my board S3C44B0 ,it worked very well for few days,

What a terrible waste of time and resources. Why did you use such an ancient version?

Quoted 1 line

It returned "NULL" ,and the problem is command "calloc".

Sorry, but if you are using such old code, you will not find much help. I strongly recommend to update first.

Best regards,

Wolfgang Denk

Signature · 5 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
The nice thing about  standards  is that there are  so many to choose
from.                                           - Andrew S. Tanenbaum