linux-fpga.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Chris Dot <chrisdotdot@gmail.com>
To: linux-fpga@vger.kernel.org
Subject: Stratix 10 CVP - how to write an image from userspace?
Date: Tue, 5 Jan 2021 00:02:07 +0000	[thread overview]
Message-ID: <CAP14NRQt5bZTFp_6o1kji=JqLLyS1=ANZp=Y5EL-E4_C-oU1LA@mail.gmail.com> (raw)
In-Reply-To: <CAP14NRT3AN0+g=TsRRQ2vm+q+rT2zvC-rZmbeDb-8wagepiR7g@mail.gmail.com>

Hi, I have a Stratix 10 PCIe FPGA card and I want to program it over CVP.

How do I do that? Would I write (dd?) to some sysfs node, use ioctls?
Any help appreciated.

Below is my workspace. This is kernel 5.4.

root@ubuntu20x:/sys/class/fpga_manager/fpga0# dmesg | grep -i cvp
[    3.693994] fpga_manager fpga0: Altera CvP FPGA Manager
@0000:02:00.0 registered
root@ubuntu20x:/sys/class/fpga_manager/fpga0# ls
device  name  power  state  status  subsystem  uevent
root@ubuntu20x:/sys/class/fpga_manager/fpga0# ls device
aer_dev_correctable   class                     d3cold_allowed
enable         local_cpulist   msi_bus    reset         subsystem
aer_dev_fatal         config                    device
firmware_node  local_cpus      numa_node  resource
subsystem_device
aer_dev_nonfatal      consistent_dma_mask_bits  dma_mask_bits
fpga_manager   max_link_speed  power      resource0
subsystem_vendor
ari_enabled           current_link_speed        driver           irq
         max_link_width  remove     resource0_wc  uevent
broken_parity_status  current_link_width        driver_override  link
         modalias        rescan     revision      vendor

Thanks, Chris

           reply	other threads:[~2021-01-05  0:03 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <CAP14NRT3AN0+g=TsRRQ2vm+q+rT2zvC-rZmbeDb-8wagepiR7g@mail.gmail.com>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAP14NRQt5bZTFp_6o1kji=JqLLyS1=ANZp=Y5EL-E4_C-oU1LA@mail.gmail.com' \
    --to=chrisdotdot@gmail.com \
    --cc=linux-fpga@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).