[U-Boot-Users] [PATCH] bdinfo not showing correct info about memory size

Stefan Roese sr at denx.de
Wed Jul 30 14:08:42 CEST 2008


On Wednesday 30 July 2008, Wolfgang Denk wrote:
> => bdi
> memstart    = 0x00000000
> memsize     = 0x100000000
> ...
>
> As you can see, this board has 4 GB of RAM and everything works  just
> fine.

Yes. But unfortunately not for all boards. As it seems the patch 
b57ca3e128cc10a133ba79bc7ec3e7b50e7c8fbe [Change bd/gd memsize/ram_size to be 
phys_size_t.] introduced %llX unconditionally for all non-ARM boards. And 
many boards don't have support for 64bit printf formats enabled.

So what to do? Enable 64bit format on all boards? Or make this size printing 
conditionally somehow?

Best regards,
Stefan

=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================




More information about the U-Boot mailing list