Where is the ramdisk in memory?

Submitted by Anonymous
on April 11, 2008 - 5:35am

I'm using a ramdisk for an embedded systrem

How can I now at which addresses the ramdisk is?

Try reading the kernel documentation...

Anonymous (not verified)
on
April 11, 2008 - 8:00am

Take a look at:

linux-2.6.*/Documentation/ramdisk.txt

The boot loader puts the initial ramdisk somewhere, and tells the kernel where that is when it hands control over to the kernel. Once the kernel starts running, the ramdisk can increase in size by marking parts of the buffer cache as dirty. If you add lots of data to a ramdisk, it will end up being stored all over the place.

mtd

on
April 11, 2008 - 5:25pm

you can use mtd to create a ramdisk at a fixed physical address, look at modules slram and phram. you can use mkfs to put a (temporary) filesystem onto the resulting /dev/mtd# devices and mount it as usual.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.