[Arm-netbook] RAM, uboot

Derek LaHousse dlahouss at mtu.edu
Sat May 12 17:37:26 BST 2012


David, note that it's reducing the memory area at the beginning, and not
at the end.  If you simply increase the size (reduce the 64 number), you
overflow the memory space.

bank[0].start = 64M from 0
bank[0].size  = size minus those 64M

Now, I don't know what you'd be overwriting in the other direction, but
have you done it with

if (size <= 512) {
	mi->nr_banks=1;
	mi->bank[0].start = 0x20000000;
	mi->bank[0].size = SZ_1M * (size - 32);
} else {

Or more?

ManoftheSea

On 05/12/2012 07:25 AM, arm-netbook-request at lists.phcomp.co.uk wrote:
> Message: 8 Date: Sat, 12 May 2012 12:07:51 +0100 From: David Given
> <dg at cowlark.com> Subject: Re: [Arm-netbook] RAM, uboot To:
> arm-netbook at lists.phcomp.co.uk Message-ID:
> <4FAE4487.5070000 at cowlark.com> Content-Type: text/plain; charset="utf-8"
> On 10/05/12 21:35, David Given wrote: [...]
>> > 448? Where's the other 64MB going?
> Well, I figured this out. From arch/arm/mach-sun4i/core.c, line 407, in
> the code that sets up the initial memory:
> 
>     size = DRAMC_get_dram_size();
> 
>     if (size <= 512) {
>             mi->nr_banks=1;
>             mi->bank[0].start = 0x40000000;
>             mi->bank[0].size = SZ_1M * (size - 64);
>     } else {
>     ...
> 
> So it's deliberately reducing the DRAM area by 64MB. I have no idea why.
> I tried changing the amount it's reduced by, and all that happens is
> that the kernel fails to start, hanging after the "Memory Policy..." line.
> 
> Can anyone shed any light on this?
> 
> -- ???? ?????????????? ????? http://www.cowlark.com ????? ? ? "Never
> attribute to malice what can be adequately explained by ? stupidity."
> --- Nick Diamos (Hanlon's Razor)




More information about the arm-netbook mailing list