Running Pavel Demin's FPGA SDR designs under RP OS image (Ubuntu)

Applications, development tools, FPGA, C, WEB
Post Reply
belotserm
Posts: 18
Joined: Tue Mar 07, 2023 8:49 pm

Running Pavel Demin's FPGA SDR designs under RP OS image (Ubuntu)

Post by belotserm » Mon Oct 30, 2023 4:20 pm

Can anyone think of reasons why a bit file built off of one of the Pave Demin's SDR block designs would run fine under his Alpine image but would not work properly (no reception) under the Red Pitaya's OS Ubuntu OS image? I assume the device trees should be the same, and the fabric read/write is done via /dev/mem reads/writes which should not differ for different OS kernels.
Thanks

pavel
Posts: 799
Joined: Sat May 23, 2015 5:22 pm

Re: Running Pavel Demin's FPGA SDR designs under RP OS image (Ubuntu)

Post by pavel » Mon Oct 30, 2023 5:58 pm

What is the name of the SDR project that you are testing?

belotserm
Posts: 18
Joined: Tue Mar 07, 2023 8:49 pm

Re: Running Pavel Demin's FPGA SDR designs under RP OS image (Ubuntu)

Post by belotserm » Mon Oct 30, 2023 6:31 pm

Thanks, Pavel. I've tried sdr_transciever_122_88.

pavel
Posts: 799
Joined: Sat May 23, 2015 5:22 pm

Re: Running Pavel Demin's FPGA SDR designs under RP OS image (Ubuntu)

Post by pavel » Mon Oct 30, 2023 7:03 pm

In the past, the sdr_transciever project could run on the OS provided by Red Pitaya. The sdr_transciever_122_88 project is similar and should also work on the SDRlab 122-16 board with the OS provided by Red Pitaya.

The FPGA configuration is only part of the project, you also need to compile and run the C code of the TCP server (sdr-transceiver.c).

belotserm
Posts: 18
Joined: Tue Mar 07, 2023 8:49 pm

Re: Running Pavel Demin's FPGA SDR designs under RP OS image (Ubuntu)

Post by belotserm » Mon Oct 30, 2023 8:16 pm

Thanks. I did compile the companion C code using GCC under the RP's Ubuntu before loading the bitfile and launching the application, however it did look like nothing was being received. I had assumed that it was because the communication between the PS and PL got messed up because of how the PS is configured in the sdr_transceiver block design vs. what the Ubuntu image expects, or something like that. I am using a somewhat older revision of the red-pitaya-notes project (which I pulled circa Feb of 2023), and the RP SD card from roughly same timeframe, so perhaps that could be an issue? If you are sure that the transceiver FPGA design should work under RP's Ubuntu on 122-16 board without modifications, then it is likely an operator error on my part. I just wanted to be sure I wasn't trying to do something that the design wasn't meant to be able to do. Should it matter what version of the red-pitaya-notes and what version of the Ubuntu image I'm using?

pavel
Posts: 799
Joined: Sat May 23, 2015 5:22 pm

Re: Running Pavel Demin's FPGA SDR designs under RP OS image (Ubuntu)

Post by pavel » Mon Oct 30, 2023 8:31 pm

I am using a somewhat older revision of the red-pitaya-notes project (which I pulled circa Feb of 2023)
This could be why it is not working. There were a lot of changes in the GitHub repository earlier this year and some versions may have been broken.
Should it matter what version of the red-pitaya-notes and what version of the Ubuntu image I'm using?
I would recommend using a release version. It is possible to copy the apps/sdr_transciever_122_88 directory from a release zip file to your system without rebuilding the bitstream file. You will just need to recompile the C code.

belotserm
Posts: 18
Joined: Tue Mar 07, 2023 8:49 pm

Re: Running Pavel Demin's FPGA SDR designs under RP OS image (Ubuntu)

Post by belotserm » Mon Oct 30, 2023 9:00 pm

Thanks, I'll try that. As a general note, I notice that in the older Vivado transceiver block design that I'm using, the read and write fifo are mapped to different AXI memory regions, but in the newer version (and in the matching C code) an AXI bridge instantiated in the block design allows writing (TX) and reading (RX) via the same AXI memory space address. Is that something that was partially done to address compatibility issues with Ubuntu kernel, or is it just a more elegant way to do the same thing and has nothing to do with the problem I'm experiencing? I am trying to fully understand how the transceiver design works (both PL and PS) and why it works under one OS vs the other, and not just how to get it to work under one image or another. I thought I kind of did, until now, and that's a bit frustrating to me.

pavel
Posts: 799
Joined: Sat May 23, 2015 5:22 pm

Re: Running Pavel Demin's FPGA SDR designs under RP OS image (Ubuntu)

Post by pavel » Tue Oct 31, 2023 1:22 am

Is that something that was partially done to address compatibility issues with Ubuntu kernel, or is it just a more elegant way to do the same thing and has nothing to do with the problem I'm experiencing?
No, nothing on this list was the goal of the changes that I made earlier this year.

The goal was to improve the performance and portability of my applications between Zynq-7000 with Ethernet interface and Artix-7 with USB interface.

I do not see why the released versions of the SDR transceiver application would not work on the OS provided by Red Pitaya.

belotserm
Posts: 18
Joined: Tue Mar 07, 2023 8:49 pm

Re: Running Pavel Demin's FPGA SDR designs under RP OS image (Ubuntu)

Post by belotserm » Tue Oct 31, 2023 3:47 pm

Thank you so much, Pavel, for the explanation. I'll switch to the latest releases of all components and will repeat the test.

kefopimea
Posts: 1
Joined: Tue Dec 26, 2023 1:01 pm
Contact:

Re: Running Pavel Demin's FPGA SDR designs under RP OS image (Ubuntu)

Post by kefopimea » Sat Dec 30, 2023 10:26 pm

Have you considered updating to the latest releases of the SDR transceiver application and other components to see if that resolves the issue, and have you checked if there are any specific changes in the AXI memory space addressing between the older and newer versions that might affect compatibility with the Ubuntu kernel?

Post Reply
jadalnie klasyczne ekskluzywne meble wypoczynkowe do salonu ekskluzywne meble tapicerowane ekskluzywne meble do sypialni ekskluzywne meble włoskie

Who is online

Users browsing this forum: No registered users and 113 guests