[U-Boot-Users] hi, everyone

Wolfgang Denk wd at denx.de
Mon Jul 31 16:07:22 CEST 2006


In message <890a030e0607310655w774f395ftff5ab5ddba01eb44 at mail.gmail.com> you wrote:
> 
> I am porting U-Boot-1.1.4 to my board based on s3c44b0x and using

I hope you mean you are using the *current* code, i. e. top  of  tree
in the git repository!!! If not - why not?

> /board/dave/B2 as a referrence. My cross compiler is (DENX ELDK 3.1
> 3.3.3-8).

Why don't you use a current toolchain, i. e. ELDK 4.0 ?

> Another question is about the function malloc. Sometimes when I
> downloaded the modified code, in the function
> env_relocate()(/common/env_common.c)  the line "env_ptr = (env_t
> *)malloc (CFG_ENV_SIZE);" returned NULL. The modified code was about
> the ethernet and TFTP. And I think it is irrelevant with the malloc. I
> couldn't figure out why it happens. Any hints would be appreciated.

malloc() returns NULL when it runs out of memory. And,  no,  the  use
pof  ethernet and TFTP is not irrelevant to that. Try increadsing the
malloc arena.

> By the way I have checked the change log in the git repository since
> 1.1.4. Most of the changes about B2 board are the supporting of GCC
> 4.x and updating of CFI_FLASH. Is it necessary to update it to the top
> tree of the git repository?  And the cross compiler?

Yes, it is. Actually you should  have  never  started  with  the  old
stuff.

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Good manners are the settled  medium  of  social,  as  specie  is  of
commercial, life; returns are equally expected for both.
           - Lord Chesterfield _Letters to his Son_, 25 December 1753




More information about the U-Boot mailing list