-
Notifications
You must be signed in to change notification settings - Fork 9
Review of makefile and readme instructions for qmtech board #15
Comments
Thank you for pointing clone+build of prjxray out. I will add it to the list. |
Thanks. Now is much more clear. I'm having problems though following steps from prjxray documentation. |
Last step of Readme could be indicaded an example like: I assume my Yosys install is too old (v 0.9) because is giving me command syntax errors |
Right.. it's been a while since I set the system up on my end. Could you try following only steps until step 4 (and possibly downloading the latest db as indicated in step 8)? This may be sufficient.
@hansfbaier, can you add the corresponding line, please? I don't have a QMTech board at hand, so I would not be able to say what to do here.
Correct. I ran into issues with a Yosys 0.9 from Debian stable/bullseye as well. Things are fine if you make use of backports, download the project binaries or compile from source. The latter two options should provide you with Yosys 0.13+28 or higher. Those have worked fine for several of us here. |
I finally generated the blinky.bit bitstream and it works!!!! I installed Yosys 0.14+34 As I said I still not done the steps 6 and 8 of prjxray install instructions. I did need also to modify makefile to make it work: /bin/bash: 1: .: Can't open ~/bin/prjxray/utils/environment.sh this is where it stops make I also needed to add full path to lines 33 and 36 as it did not find binaries fasm2frames and xc7frames2bit Ok, but the important thing is that I have a blinky working!!!!! |
@hansfbaier Looks like the $XRAY_DIR path variable is not yet used in the new Makefile?! The path is required for fasm2frames and xc7frames2bit |
@unbtorsten Yes, the XRAY_DIR variable is used. The PREFIX variable in the makefile was set to /opt instead of ~/opt, which might have been the source of the problem. Fixed. |
@somhi Can you confirm the changes work? |
I'm working with bin instead of opt As stated above the error I was having is: I modified line 32 to @. ~/bin/prjxray/utils/environment.sh and that is working which is strange because it's exaclty the same path |
@somhi It's because you have not cloned the prjxray repository in ~/bin |
I did everything in bin instead of opt |
@somhi if you change:
to
in the Makefile, that should fix your issue. |
Ok, now my first error is solved with the PREFIX ?= ${HOME}/opt Now I only have following errors. First errors are Ok as I have not installed Vivado
|
You can comment out the Vivado stuff. Fasm2frames may be found in the prjxray/env/bin directory after running make build in that project.
…Sent from my iPhone
On 21 Feb 2022, at 18:53, somhi ***@***.***> wrote:
Ok, now my first error is solved with the PREFIX ?= ${HOME}/opt
Now I only have following errors. First errors are Ok as I have not installed Vivado
I solved fasm2frames command not found modifying makefile like this, and same for xc7frames2bit:
${XRAY_DIR}/env/bin/fasm2frames
${XRAY_DIR}/build/tools/xc7frames2bit
/home/jordi/bin/prjxray/utils/vivado.sh: line 12: vivado: command not found
/home/jordi/bin/prjxray/utils/environment.sh: line 52: [: !=: unary operator expected
fasm2frames --part xc7k325tffg676-1 --db-root /home/jordi/bin/nextpnr/prjxray-db/kintex7 blinky.fasm > blinky.frames
/bin/bash: fasm2frames: command not found
make: *** [Makefile:35: blinky.frames] Error 127
—
Reply to this email directly, view it on GitHub<#15 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AE6VVM5UO3AF4D3GSJXNJC3U4KCZBANCNFSM5OHFC73Q>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Amending the makefile as mentioned
is the way to do it. Unfortunately, this part was lost during the transition from the initial |
@rwhitby Another hint for you as you adapt the Makefile: the custom nextpnr-xilinx is not put on the path at this time and needs to be adapted as well. In summary, changing the fasm/frames/bit sections of the Makefile as follows works for me:
|
Since we are setting NEXTPNR_DIR and XRAY_DIR explicitly in the Makefile, I wonder whether the sourcing of environment.sh (which is causing issues due to the "optional" dependency on Vivado, which is what we are all here to get away from) is really needed. In any case, sourcing on one line and then expecting the results of the source to be available on a separate line in a Makefile simply does not work - each line is an independent invocation of the shell. |
Sounds like we can disregard those lines altogether then. Make process runs smoothly for me without them affecting the following line, respectively. Update: I can explicitly confirm a successful build and upload of the bitstream after removing the lines mentioned above. I have updated the Makefile excerpt above accordingly. |
I'm at step 20. Set XRAY_DIR to the path where Project Xray has been cloned and built
It took me a while to figure it out I still need to clone and build this https://github.com/SymbiFlow/prjxray
Adding a link to the prjxray project would help beginners
Step 1 of prjxray tells me to install Vivado 2017.2!!!! Is it really true I need to install Vivado 2017.2 ?
It took me a long time to arrive to step 20 just to discover I need to install Vivado 2017.2. Please tell me it's not true!!
The text was updated successfully, but these errors were encountered: