Dear Darius Augulis, In message <4a78342c.5090...@gmail.com> you wrote: > > usually TEXT_BASE is offset, which size depends on your requirements for
No. TEXT_BASE is an absolute address. > stack size and memory size for malloc. If your DRAM base is 0x0 and > TEXT_BASE is 0xf80000, you will have almost 16Mb for stack and malloc > and your u-boot code will be linked and loaded to 0xf80000 address. > 16Mb is probably too much, or your DRAM base is not 0x0. On architectures like ARM (where the implementation is based on a broken concept of the system memory map) TEXT_BASE should always be chosen to be as high as possible to put the ("relocated") U-Boot code as close as possible to the very end of available RAM. For systems with several RAM size options you have to set this according to the smallest possible RAM size, of course (which is a major PITA). 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: w...@denx.de Vulcans worship peace above all. -- McCoy, "Return to Tomorrow", stardate 4768.3 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot