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++

How much RAM ?

Altera_Forum
Honored Contributor II
2,408 Views

Hi.  

 

Making specs for an platform you down have yet it allways tricky. So i'm asking the quesitons here in hope some one can help me, since I don't have the Nios II kit yet nor a platform (only the old nois kit). Can any one tell be the size of a Nois II kernel in a 'noconfig' mode ? (is it supported ?).  

 

The reason I'm asking this question is to get an idea of that the minimum amount of RAM I need to get the kernel running, I'm currently setting my RAM needs to 4 MB (a small kernel with usb,net,flash driver + a small romfs - busybox ). My layout is currently : 3 MB for kernel and romfs, 1 Mb for userland.  

 

Am I trying to press an elephant into a bottle with only 4 MB of RAM ?.  

 

Regards  

jh@devitech.dk
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
1,200 Views

Jacob, 

 

If you can budget for 8Mb of RAM I think you'll be a lot happier. 

 

A kernel with Network and USB will push 2Mb of code space alone (remember the kerenl is copied from flash to RAM for execution). Busybox, depending on how it is configured, will range from 300-700K (a bit of an estimate on the upper bound -- have never turned on all the options). If you run parallel commands that are handled by busybox each instance requires its own memory (we have not implemented shared library support).  

 

Thus I don't think you'd have enough RAM left over for the kernel to adequately run (it needs run-time memory for page tables, data structures etc in addition to the code space). 

 

One of the items on our to-do list is further exploration of XIP (execute in place) which would allow the kernel to run out of flash directly. Superficially it sounds like a "good thing" but there is certainly a performance hit due to the slower access times of flash. 

 

In summary, if you jump really hard on the elephant you might squeeze him into the bottle but he won't be able to move and really won't be very happy. 

 

mike
0 Kudos
Altera_Forum
Honored Contributor II
1,200 Views

Thanks for advice Mike it helped. 

 

We'll eat some extra pins on the stratix to ensure we can grep 8 MB it we need it.  

 

Regards Jacob.
0 Kudos
Reply