summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArturs Artamonovs <dos21h@gmail.com>2024-06-08 16:23:38 +0100
committerArturs Artamonovs <dos21h@gmail.com>2024-06-08 16:23:38 +0100
commitec8959e2ca576529a1d15009b9f1375301dc843f (patch)
tree71644386fb03619390f7883961cfd7c0d92b8783
parent1612c672efc6eae9dcf8d9b2ca9542d027a60b94 (diff)
downloadmd-content-ec8959e2ca576529a1d15009b9f1375301dc843f.tar.gz
md-content-ec8959e2ca576529a1d15009b9f1375301dc843f.zip
Add quartus and modelsim notes to bladerf notes
-rw-r--r--md/writeup/bladerf_quick_guide.md71
1 files changed, 70 insertions, 1 deletions
diff --git a/md/writeup/bladerf_quick_guide.md b/md/writeup/bladerf_quick_guide.md
index dec8ef7..a420120 100644
--- a/md/writeup/bladerf_quick_guide.md
+++ b/md/writeup/bladerf_quick_guide.md
@@ -104,6 +104,72 @@ create FM radio listening design and as result you can hear to your local radio
![BladerRF fm radio block diagram](/img/gnuradio/bladerf_fm_radio.png)
+
+## Quartus
+
+Steps how to install Quartus and make it compile BladeRF firmware
+
+Get the version of Quartus 20.1.1 from Intel download page. Get the whole package or
+2 packates Quartus,ModelSim and CycloneV device support package. Install the Quartus.
+
+
+Get the BladeRF source:
+
+```
+git clone https://github.com/Nuand/bladeRF.git
+cd bladeRF
+git submodule init
+git submodule update
+```
+
+go to *hdl/quartus*
+
+so now set the environment
+
+```
+export QSYS_ROOTDIR="/home/user/intelFPGA_lite/20.1.1/quartus/sopc_builder"
+export QUARTUS_ROOTDIR=/home/user/intelFPGA_lite/20.1.1/quartus
+export PATH=$PATH:/home/user/intelFPGA_lite/20.1.1/quartus/sopc_builder/bin
+export PATH=$PATH:/home/user/intelFPGA_lite/20.1.1/quartus/bin
+export PATH=$PATH:/home/user/intelFPGA_lite/20.1.1/nios2eds/bin
+export PATH=$PATH:/home/user/intelFPGA_lite/20.1.1/nios2eds/sdk2/bin
+export PATH=$PATH:/home/user/intelFPGA_lite/20.1.1/nios2eds/bin/gnu/H-x86_64-pc-linux-gnu/bin/
+export SOPC_KIT_NIOS2=/home/user/intelFPGA_lite/20.1.1/nios2eds
+```
+
+Get the license files from Intel self licensing page
+
+```
+export LM_LICENSE_FILE=/home/user/intelFPGA_lite/LR-174976_License.dat
+export MGLS_LICENSE_FILE=/home/user/intelFPGA_lite/LR-174976_License.dat
+```
+
+Now in bladerf dir go to hdl/quartus and run command to build hosted firmware
+
+```
+./build_bladerf.sh -b bladeRF-micro -r hosted -s A4
+```
+
+## Modsim
+
+How to make modsim to run, for simulating BladeRF code
+
+Add dependencies for modsim
+
+```
+dpkg --add-architecture i386
+apt update
+apt install libxft2 libxft2:i386 libxext6 libext6:i386
+```
+
+
+Run vsim command from where its located inside the quartus install directory
+
+```
+./vsim
+```
+
+
## Links
[https://www.nuand.com/bladerf-2-0-micro/](https://www.nuand.com/bladerf-2-0-micro/)
@@ -112,4 +178,7 @@ create FM radio listening design and as result you can hear to your local radio
[https://www.nuand.com/product/bt-200/](https://www.nuand.com/product/bt-200/)
[https://github.com/Nuand/bladeRF/wiki/bladeRF-CLI-Tips-and-Tricks](https://github.com/Nuand/bladeRF/wiki/bladeRF-CLI-Tips-and-Tricks)
[https://sites.google.com/site/sdrbladerf/home/bladerf-getting-started](https://sites.google.com/site/sdrbladerf/home/bladerf-getting-started)
-[https://www.gnuradio.org/](https://www.gnuradio.org/) \ No newline at end of file
+[https://www.gnuradio.org/](https://www.gnuradio.org/)
+[https://github.com/Nuand/bladeRF/wiki/Getting-Started%3A-Linux#user-content-Debianbased_distros_eg_Ubuntu](https://github.com/Nuand/bladeRF/wiki/Getting-Started%3A-Linux#user-content-Debianbased_distros_eg_Ubuntu)
+
+