Memory size issue
Jan Lübbe
jlu at pengutronix.de
Tue Jan 22 04:48:51 EST 2013
On Tue, 2013-01-22 at 13:45 +0400, Alexander Shiyan wrote:
> Hello.
>
> I found a discrepancy between the size of memory in the system and
> report by meminfo.
> In the following example, the system registered 512M, but the meminfo
> shows only 256M.
> Error or so and originally intended?
>
> barebox at i.MX51:/ devinfo mem0
> resources:
> num : 0
> name : ram0
> start : 0x90000000
> size : 0x20000000
> driver: mem
> bus: platform
>
> no info available for mem0
> no parameters available
> barebox at i.MX51:/ meminfo
> max system bytes = 245760
> system bytes = 245760
> in use bytes = 223200
This is 240kiB, not 256MiB. As meminfo shows only the memory used by
barebox, this is should not be the same as the SDRAM size.
Regards,
Jan
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the barebox
mailing list