Hi, I have a pci card that has some amount of ram and flash memory on it. I have found the bar address range for the memory. I want to transfer a file to that memory and read from that memory. Any pointers(in terms of sample code) how can i do that? Regards
On Mon, Jun 01, 2015 at 10:55:44PM +0530, Robert Clove wrote:
Hi,
I have a pci card that has some amount of ram and flash memory on it.
What kind of card?
I have found the bar address range for the memory. I want to transfer a file to that memory and read from that memory.
PCI card memory are not usually set up as a filesystem, how can you copy a file to it?
Any pointers(in terms of sample code) how can i do that?
Why do you want to do this? What exactly are you trying to solve here? greg k-h
Hi I have a PCI based card which have few RAM on it. I have to copy the text file to RAM and read it too. Actually i want my pci device to be exposed as block device and then mount file system on it. On Tue, Jun 2, 2015 at 6:59 AM, Greg KH <gregkh@linuxfoundation.org> wrote:
On Mon, Jun 01, 2015 at 10:55:44PM +0530, Robert Clove wrote:
Hi,
I have a pci card that has some amount of ram and flash memory on it.
What kind of card?
I have found the bar address range for the memory. I want to transfer a file to that memory and read from that memory.
PCI card memory are not usually set up as a filesystem, how can you copy a file to it?
Any pointers(in terms of sample code) how can i do that?
Why do you want to do this? What exactly are you trying to solve here?
greg k-h
On Wed, Jun 03, 2015 at 08:27:20PM +0530, Robert Clove wrote:
Hi I have a PCI based card which have few RAM on it.
You said that before :) You didn't answer the question of "what kind of PCI card is this?"
I have to copy the text file to RAM and read it too.
Who is telling you you "have to"?
Actually i want my pci device to be exposed as block device and then mount file system on it.
Then use it as a block device. Note, you need a special type of PCI card to be able to do this, as well as a special kernel driver for that PCI card to make it work properly. But without any knowledge of what type of PCI card you have, it's a bit hard to give you anymore help, sorry. greg k-h
Actually it is a PCI based NIC card having a NIC port and some RAM on it. On Thu, Jun 4, 2015 at 11:40 AM, Greg KH <gregkh@linuxfoundation.org> wrote:
On Wed, Jun 03, 2015 at 08:27:20PM +0530, Robert Clove wrote:
Hi I have a PCI based card which have few RAM on it.
You said that before :)
You didn't answer the question of "what kind of PCI card is this?"
I have to copy the text file to RAM and read it too.
Who is telling you you "have to"?
Actually i want my pci device to be exposed as block device and then mount file system on it.
Then use it as a block device. Note, you need a special type of PCI card to be able to do this, as well as a special kernel driver for that PCI card to make it work properly.
But without any knowledge of what type of PCI card you have, it's a bit hard to give you anymore help, sorry.
greg k-h
On Thu, Jun 04, 2015 at 12:44:34PM +0530, Robert Clove wrote:
Actually it is a PCI based NIC card having a NIC port and some RAM on it.
A NIC card is not designed to hold a filesystem. If you wish to change this, you are going to have to write a kernel driver that talks to that card and exposes a block interface to userspace. Best of luck! greg k-h
That is what i have to do. On Thu, Jun 4, 2015 at 1:36 PM, Greg KH <gregkh@linuxfoundation.org> wrote:
On Thu, Jun 04, 2015 at 12:44:34PM +0530, Robert Clove wrote:
Actually it is a PCI based NIC card having a NIC port and some RAM on it.
A NIC card is not designed to hold a filesystem. If you wish to change this, you are going to have to write a kernel driver that talks to that card and exposes a block interface to userspace.
Best of luck!
greg k-h
participants (2)
-
Greg KH -
Robert Clove