Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: using 256 meg ddr2 with 91sam9g45-ekes
PostPosted: Wed Jan 26, 2011 9:44 pm 
Offline

Joined: Wed Jan 26, 2011 8:49 pm
Posts: 6
I have the eval board as well as our custom board based on the at91sam9g45-ekes and i'm trying to get linux using all of the 256 megs of ddr2.

I've patched uboot with a posting i've seen here which basically adds the following lines to dram_init.

gd->bd->bi_dram[1].start = 0x20000000;
gd->bd->bi_dram[1].size = 0x08000000;

When u-boot loads, it says it has 256 megs available but when I run a mtest 0x20000000 it goes very slow on my eval board and fails on my custom board. My custom board has no data flash installed.

I've seen references (http://blog.linuxconsulting.ro/2010/05/ ... -with.html) saying I need to patch at91bootstrap to initialize the second bank of ram but the patch he supplies will not go anywhere near the at91bootstrap versions i've been trying (ftp://www.at91.com/pub/at91bootstrap). I tried old versions and new versions.

Does anybody have any ideas?


Top
 Profile  
 
 Post subject: Re: using 256 meg ddr2 with 91sam9g45-ekes
PostPosted: Thu Jan 27, 2011 5:39 pm 
Offline

Joined: Sat Oct 30, 2010 6:04 pm
Posts: 574
Well you're going to have to initialize the SDRAM/DDR controllers within AT91Bootstrap for the memory devices you are using. It sets up the memories for the downstream code like uBoot and Linux.

The code you added to uBoot just tells it where the regions of memory are, and it dutifully adds up the numbers in your list and prints it out, nothing else.

You will need to read the datasheet for the memories you are using, and add the appropriate timing and structural details into the controllers, and initialize them suitably for your bus speed and widths, and refresh.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: