* Accessing Ram on PCI card
@ 2015-06-01 17:25 Robert Clove
2015-06-02 1:29 ` Greg KH
0 siblings, 1 reply; 7+ messages in thread
From: Robert Clove @ 2015-06-01 17:25 UTC (permalink / raw)
To: kernelnewbies
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20150601/b1ec934f/attachment.html
^ permalink raw reply [flat|nested] 7+ messages in thread
* Accessing Ram on PCI card
2015-06-01 17:25 Accessing Ram on PCI card Robert Clove
@ 2015-06-02 1:29 ` Greg KH
2015-06-03 14:57 ` Robert Clove
0 siblings, 1 reply; 7+ messages in thread
From: Greg KH @ 2015-06-02 1:29 UTC (permalink / raw)
To: kernelnewbies
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Accessing Ram on PCI card
2015-06-02 1:29 ` Greg KH
@ 2015-06-03 14:57 ` Robert Clove
2015-06-04 6:10 ` Greg KH
0 siblings, 1 reply; 7+ messages in thread
From: Robert Clove @ 2015-06-03 14:57 UTC (permalink / raw)
To: kernelnewbies
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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20150603/7edec0fb/attachment.html
^ permalink raw reply [flat|nested] 7+ messages in thread
* Accessing Ram on PCI card
2015-06-03 14:57 ` Robert Clove
@ 2015-06-04 6:10 ` Greg KH
2015-06-04 7:14 ` Robert Clove
0 siblings, 1 reply; 7+ messages in thread
From: Greg KH @ 2015-06-04 6:10 UTC (permalink / raw)
To: kernelnewbies
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Accessing Ram on PCI card
2015-06-04 6:10 ` Greg KH
@ 2015-06-04 7:14 ` Robert Clove
2015-06-04 8:06 ` Greg KH
0 siblings, 1 reply; 7+ messages in thread
From: Robert Clove @ 2015-06-04 7:14 UTC (permalink / raw)
To: kernelnewbies
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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20150604/d888cf1c/attachment.html
^ permalink raw reply [flat|nested] 7+ messages in thread
* Accessing Ram on PCI card
2015-06-04 7:14 ` Robert Clove
@ 2015-06-04 8:06 ` Greg KH
2015-06-04 12:47 ` Robert Clove
0 siblings, 1 reply; 7+ messages in thread
From: Greg KH @ 2015-06-04 8:06 UTC (permalink / raw)
To: kernelnewbies
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Accessing Ram on PCI card
2015-06-04 8:06 ` Greg KH
@ 2015-06-04 12:47 ` Robert Clove
0 siblings, 0 replies; 7+ messages in thread
From: Robert Clove @ 2015-06-04 12:47 UTC (permalink / raw)
To: kernelnewbies
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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20150604/56796019/attachment.html
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2015-06-04 12:47 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-01 17:25 Accessing Ram on PCI card Robert Clove
2015-06-02 1:29 ` Greg KH
2015-06-03 14:57 ` Robert Clove
2015-06-04 6:10 ` Greg KH
2015-06-04 7:14 ` Robert Clove
2015-06-04 8:06 ` Greg KH
2015-06-04 12:47 ` Robert Clove
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.