Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12745 Discussions

linux on DE2-70 with 2 blocks of sdram

Altera_Forum
Honored Contributor II
1,249 Views

hi, 

DE2-70 have 2 blocks of sdram .each of them is 32mb. i want to use both of them as RAM of my system .what can i do. 

As we know ,with one sdram chip,in sopc we named it DDR2_TOP.what can i do for 2. 

 

I test it as follows : 

 

1.allocate the address in sopc like this 

sdram_1 0x0--0x1fffffff 

sdram_2 0x20000000-3ffffff 

 

2.modifiy the nios.h in linux 

# define DDR2_TOP_BASE SDRAM_1_BASE 

# defire DDR2_TOP_SPAN (SDRAM_1_SPAN+SDRAM_2_SPAN) 

 

3.the kernel can generated fine 

when booting ,error occur: 

failure at cache_alloc_refile() 

 

how can i fix it 

 

thank you
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
411 Views

you can use one 32bit 64m sdram ip core to controll the two sdram。 

 

Any question,Contact me:pc21820002000@yahoo.com.cn 

QQ:348630468
0 Kudos
Reply