Git Product home page Git Product logo

Comments (9)

jameyhicks-cmt avatar jameyhicks-cmt commented on August 10, 2024

One quirk of Linux is that it does not re-enumerate PCIe once it is booted, so you will have to reboot after the FPGA is programmed.

You only have to do this once. Subsequent reprogramming of the FPGA require a rescan but that is done automatically.

If you reprogrammed and rebooted, then run lsmod | grep portal. Both pcieportal and portalmem modules should be loaded.

from connectal.

jameyhicks-cmt avatar jameyhicks-cmt commented on August 10, 2024

Also, what is the output from lspci -d 1be7:b100 ?

from connectal.

manish-pp avatar manish-pp commented on August 10, 2024

Sir, I tried rebooting my PC after Make run.kc705g2 command gave error, but still i am getting the same error message. I have one more doubt that, in which step, the FPGA is getting programmed? Is it getting programmed in Make run.kc705g2 step?

I tried uploading bit-stream (kc705g2/Impl/TopDown/mkTop.bit) using vivado, then i rebooted but still getting same error.

"lsmod | grep portal" and "lspci -d 1be7:b100" are not giving any output.

from connectal.

jameyhicks avatar jameyhicks commented on August 10, 2024

Please try lspci to list all the PCIe devices.

from connectal.

manish-pp avatar manish-pp commented on August 10, 2024

Please try lspci to list all the PCIe devices.

The kintex board is not showing in the list, but when I am doing lsusb, It is showing.

from connectal.

jameyhicks-cmt avatar jameyhicks-cmt commented on August 10, 2024

OK, then I would recheck the connections:

  • reseat kc705 in pcie slot or reconnect pcie cable if using one
  • make sure kc705 stays powered when PC reboots

from connectal.

jameyhicks avatar jameyhicks commented on August 10, 2024

To answer an earlier question, the FPGA gets programmed when you run make run.kc705g2. However, I am glad that you tried manual programming to verify that it was programmed before retrying the other steps.

from connectal.

manish-pp avatar manish-pp commented on August 10, 2024

OK, then I would recheck the connections:

* reseat kc705 in pcie slot or reconnect pcie cable if using one

* make sure kc705 stays powered when PC reboots

manish@manish:~/Desktop/Connectal/connectal/examples/echo$ make run.kc705g2 V=1
grep: /home/manish/Desktop/Connectal/connectal/boardinfo/.json: No such file or directory
make -C kc705g2 --no-print-directory run
obj/Makefile:436: warning: overriding recipe for target 'verilog/mkDdr3.v'
obj/Makefile:135: warning: ignoring old recipe for target 'verilog/mkDdr3.v'
obj/Makefile:618: warning: overriding recipe for target 'verilog/mkPcieEndpointX7.v'
obj/Makefile:595: warning: ignoring old recipe for target 'verilog/mkPcieEndpointX7.v'
obj/Makefile:746: warning: overriding recipe for target 'verilog/mkPcieEndpointX7.v'
obj/Makefile:618: warning: ignoring old recipe for target 'verilog/mkPcieEndpointX7.v'
obj/Makefile:834: warning: overriding recipe for target 'verilog/mkPcieRootPortX7.v'
obj/Makefile:234: warning: ignoring old recipe for target 'verilog/mkPcieRootPortX7.v'
LD_PRELOAD=libSegFault.so SEGFAULT_USE_ALTSTACK=1 SEGFAULT_OUTPUT_NAME=bin/bsimexe-segv-output.txt /home/manish/Desktop/Connectal/connectal/scripts/run.pcietest ./bin/ubuntu.exe ; retcode=$?; exit $retcode
run.pcie parameters are: ./bin/ubuntu.exe
buffer /home/manish/Desktop/Connectal/connectal/examples/echo/kc705g2/bin/ubuntu.exe
ERROR: ld.so: object 'libSegFault.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
fpgajtag: elf input file, len 1078104 class 2
fpgajtag: unzip input file, len 603840
fpgajtag: Digilent:Digilent Adept USB Device:210203A7D954; bcd:700
count 0/1 cortex -1 dcount 0 trail 0
STATUS 00401079 done 0 release_done 0 eos 10 startup_state 0
fpgajtag: Starting to send file
fpgajtag: Done sending file
fpgajtag: bypass already programmed bc
STATUS 00401079 done 0 release_done 0 eos 10 startup_state 0
Running /usr/local/bin/pciescan.sh
+ PATH=/opt/tools/bsc/latest/bin:/home/manish/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/manish/Desktop/Connectal/android-ndk-r25/:/home/manish/shakti-tools/bin:/home/manish/shakti-tools/riscv32/bin:/home/manish/shakti-tools/riscv32/riscv32-unknown-elf/bin:/tools/Xilinx/Vivado/2019.2/bin:/sbin
+ for devid in 1be7:c100 1be7:b100
++ lspci -d 1be7:c100
++ sed -e 's/ .//'
+ for devid in 1be7:c100 1be7:b100
++ lspci -d 1be7:b100
++ sed -e 's/ .
//'
+ sleep 1
+ lsmod
+ grep -q pcieportal
+ lsmod
+ grep -q bluenoc
+ sleep 1
+ sh -c 'echo 1 >/sys/bus/pci/rescan'
+ sleep 1
subprocess pid 9301 completed status=0 0
Error: initPortalHardwareOnce: failed to open /dev/connectal, exiting
/home/manish/Desktop/Connectal/connectal/scripts/Makefile.connectal.build:250: recipe for target 'run' failed
make[1]: *** [run] Error 255
../../Makefile.connectal:68: recipe for target 'run.kc705g2' failed
make: *** [run.kc705g2] Error 2

I tried restarting PC many times but still getting the same above error messages. While using "sudo make run.kc705g2", the first error (related to libSegFault.so) is gone.

below is the output of "lsmod | grep portal" and there is no output for "lspci -d 1be7:b100"

manish@manish:~/Desktop/Connectal/connectal/examples/echo$ lsmod | grep portal
portalmem 16384 0

from connectal.

manish-pp avatar manish-pp commented on August 10, 2024

To answer an earlier question, the FPGA gets programmed when you run make run.kc705g2. However, I am glad that you tried manual programming to verify that it was programmed before retrying the other steps.

So the FPGA is getting detected and programmed in the following steps while running "make run.kc705g2"?

fpgajtag: elf input file, len 1078104 class 2
fpgajtag: unzip input file, len 603840
fpgajtag: Digilent:Digilent Adept USB Device:210203A7D954; bcd:700
count 0/1 cortex -1 dcount 0 trail 0
STATUS 00401079 done 0 release_done 0 eos 10 startup_state 0
fpgajtag: Starting to send file
fpgajtag: Done sending file
fpgajtag: bypass already programmed bc

from connectal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.