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++
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

Specifying RAMFS location

Altera_Forum
Honored Contributor II
1,973 Views

How does one locate the RAMDISK? We have several possible locations in different RAMs: SDRAM, Staic RAM, internal ram. Where does the physical address of the /dev/RAM0..RAM16 get specified so we can locate it where we want?

0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
1,111 Views

If you're talking about a standard Linux RAM disk, it's created on the fly out of unused memory pages, like the disk cache is. Therefore, its storage is wherever main memory is. 

 

If there is some specific place you want to put a RAM disk, you could possibly set the kernel to not use that region of RAM, then use a device driver (the name escapes me) to treat the RAM as a file, connect to it with a loopback device (/dev/loop), then format it with some filesystem and put things there. Then you can take that file and copy it to somewhere else to save the RAM disk contents, and do the opposite operation (possibly from compressed flash?) to restore. I'm going from memory here, sorry I'm so vague.
0 Kudos
Reply