[PATCH] cfa10036: Retrieve the RAM size at runtime

Maxime Ripard maxime.ripard at free-electrons.com
Mon Mar 25 07:26:25 EDT 2013


Hi Alexandre,

Le 21/03/2013 16:36, Alexandre Belloni a écrit :
> The cfa-10036 comes in two flavours, with either 128MB or 256MB of RAM
> on it.
> 
> Since it's not stored anywhere, we need to runtime detect it by
> introducing the cfa10036_get_ram_size function which is similar to
> get_ram_size. As we run from RAM, we can then use _text and __bss_stop
> to prevent poking in the barebox memory which is not supported on other
> platforms.

Just tested it on my 256MB cfa-10036, and it works fine, you can add my
Tested-by

Maxime
-- 
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com



More information about the barebox mailing list