PaNiC Random Rant (or how we used to call it: .plan)
Using both memory controllers with SPARSE_MEM on Atmel SAM9G45/M10
Atmel AT91SAM9G45 and AT91SAM9M10 (AT91SAM9263 has a similar layout) have two memory controllers providing 128Mb at locations
Both banks must be initialized by AT91Bootstrap, if you use AT91Bootstrap from AT91SAM9G45/M10 SDK see the patch below. Also if u-boot is used as bootloader and you want to use second bank it needs to be patched too.
My patches wore made for 2.6.30 kernel updated patches should be available below:
AT91Bootstrap (from G45 SDK):
0001-Init-second-bank-of-memory-0x20000000.patch
U-Boot:
0001-add-support-for-both-banks-of-memory-on-Atmel-G45-bo.patch
Kernel:
Add to boot params to enable both mem banks(for example on u-boot bootparams=) :
For kernels <= 2.6.30:
0001-Add-SPARSEMEM-support-for-Atmel-CPU-for-2-banks-of-m.patch
0010-Fix-memory-mapping-for-SPARSEMEM-to-use-both-banks-o.patch
For kernels >2.6.30 (patch is for 2.6.34):
http://www.arm.linux.org.uk/developer/patches/viewpatch.php?id=6143/1
2 Comments:
Subscribe to Post Comments [Atom]
First of all, very good doc, thanks for your work.
Then, i cant understand which of uboot or at91bootstrap is responsible for initializing the second bank at 0x20000000 and why?
I have a newer version of at91bootstrap i think because the patch wont fit.
Could you help me with this please?
Thanks a lot, Francisco.
Hi-
I am enjoying Open Panzer but am having issues with glitches in Germany's Russian Front Campaign, Specifically Operation Typhoon - called off. It says I have another objective to conquer but I have captured them all. Is there some magic space somewhere I need to capture?
Thanks
Josh