Re: mount PCI-express RAM memory as block device

From: Arnd Bergmann
Date: Fri Jan 07 2005 - 14:15:17 EST


On Freedag 07 Januar 2005 19:36, Shakthi Kannan wrote:
> I would like to know as to how we can mount a
> filesystem for RAM memory on a PCI-express card.
> System for development is x86 with 2.4.22 kernel.
>
You could use the MTD block driver with on the phram device
by simply specifying the address/size of the memory as a module
parameter. If you need autodetection, the easiest way to do that
would be including the phram MTD driver in your pci device driver.

If you are completely stuck on 2.4.22, it might be easier to
use the old slram driver instead of phram, but generally you
should try to hack on a modern kernel level like 2.6.10 anyway.

Arnd <><

Attachment: pgp00000.pgp
Description: signature