Re: [Discuss-gnuradio] GNURadio master and UHD RFNOC Version Issue

2018-07-12 Thread Martin Braun
Hi all,

I'm not sure this thread is going in a way that'll help John.

John, let me try and rephrase the comments, and add my own:

- First, we recently merged all of rfnoc-devel into master, and won't be
updating rfnoc-devel any more. However, this is just an FYI and
unrelated to any of your questions. You don't have to immediately switch.
- You can use both rfnoc-devel or master branch of UHD with GNU Radio,
it doesn't matter. They both work.
- However, you can only use either rfnoc-devel (now legacy) or master
branch in combination with -DENABLE_RFNOC=ON with gr-ettus. If you want
to use GNU Radio + RFNoC (which is a great combo!), then you also need
gr-ettus.
- There are different types of version, and the issue you originally saw
was a difference in *FPGA* versions, not UHD or GNU Radio versions. The
FPGA version doesn't come into play anywhere inside GNU Radio, it's a
matter between the UHD library and the FPGA (which is what Marcus was
referring to).

It can help to first debug the FPGA version issue before doing anything
GNU Radio-related. You can simply run `uhd_usrp_probe` on your device (I
assume it's an X300) to see if the FPGA versions match up.
If they don't, please make sure you have the correct combination of UHD
and FPGA branches as a basis for your own code.

Cheers,
Martin


On 05/25/2018 07:51 AM, Müller, Marcus (CEL) wrote:
> Hi John,
> 
> no need to apologize; we're all learners of some kind!
> So, let me annotate your terminology below, so that we are on the same
> page :)
> 
> On Fri, 2018-05-25 at 07:20 -0600, John Medrano wrote:
>> Hello,
>>
>> I apologize for my terminology, it is causing some confusion. 
>>
>> If you download the source from https://github.com/EttusResearch/uhd. You 
>> can compile this version and it should work fine with latest version of GNU 
>> Radio
> 
> Nope – that's the wrong way around. UHD is a library used /by/ GNU
> Radio, so after building UHD, you need to build GNU Radio, to use that
> specific version of UHD.
> 
> 
>> But this version is missing additional modules that are available in branch 
>> rfnoc-devel. I inspected /host/lib/rfnoc for both the master and rfnoc-devel 
>> branches; there are several modules from rfnoc-devel branch such as sig_gen 
>> that are not available in master branch. That is what I am referring to as 
>> RFNOC UHD. I would like to continue using rfnoc-devel branch, and hence the 
>> issue that I am having. Since the version we were instructed that works with 
>> that branch, no longer compiles in latest version of Fedora. That version 
>> being v3.7.10.2.
> 
> So, as Derek said, for RFNOC features, you might have to build your own
> UHD (and consequently, your own GNU Radio afterwards) with specific
> flags.
> 
> 
>> When we build source, we typically install all dependencies and it the 
>> proceeds to build with no issue. But in this latest version of Fedora, we 
>> received compilation errors while trying to build v3.7.10.2.
> 
> To be 100 % certain I'm getting you correct here: when building UHD
> 3.7.10.2 on Fedora28, you're getting compile errors?
> 
>> Since latest version of GNU Radio built with no issue, I suspected that 
>> changes had been made to correct for newer version.
> 
> Again, building UHD (and installing it) has to happen before GNU Radio,
> and build errors in one are unrelated to the other, unless the GNU
> Radio compile error especially states that "hey, we've got some
> function that we expect, but the UHD headers don't declare that".
> 
>>
>> Where in the source code, do they check the version of UHD for compatibility?
> 
> Yes. GNU Radio checks, at runtime, whether the UHD library used when
> building GNU Radio is the same as is being loaded at run time. Because:
> these have to match.
> 
> The error you're experiencing, however, has nothing to do with that.
> It's a **firmware** version mismatch.
> GNU Radio doesn't know, care or directly interact with the firmware
> running on your USRP at all.
> 
> That's UHD checking whether the USRP runs the right firmware. 
> 
> This all has nothing to do with GNU Radio!
> 
> 
>> This will help me to look back at and see which GNU Radio versions are 
>> compatible with the rfnoc-devel branch.
> 
> Please stop saying that.
> GNU Radio has no relation to RFNoC.
> 
> Best regards,
> Marcus
> 
> 
> 
> ___
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> 


___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] GNURadio master and UHD RFNOC Version Issue

2018-07-12 Thread John Medrano
Just to close this issue.

We have several custom blocks in RFNOC. After upgrading Vivado we were able
to build the image using new source code and had no issues.

The problem was that our images were built with incorrect version.

In source code, where do you find the version number of the UHD software?

Thanks,
John

On Fri, May 25, 2018 at 7:41 AM, Derek Kozel  wrote:

> Hello John,
>
> I'm looking at this right now and can confirm that the head of rfnoc-devel
> is compatible with the latest GNU Radio. Can you please try rerunning cmake
> on UHD with -DRFNOC_ENABLE=true?
>
> The error I saw when switching branches was that the header
>  was not installed. That is a core RFNoC header and isn't
> installed if the RFNOC_ENABLE is false. The rfnoc-devel branch should have
> that enabled automatically, but I suspect that you have RFNOC_ENABLE set to
> false in CMakeCache.txt from an earlier master branch build.
>
> Regards,
> Derek
>
> On Fri, May 25, 2018 at 2:20 PM, John Medrano 
> wrote:
>
>> Hello,
>>
>> I apologize for my terminology, it is causing some confusion.
>>
>> If you download the source from https://github.com/EttusResearch/uhd.
>> You can compile this version and it should work fine with latest version of
>> GNU Radio. But this version is missing additional modules that are
>> available in branch rfnoc-devel. I inspected /host/lib/rfnoc for both the
>> master and rfnoc-devel branches; there are several modules from rfnoc-devel
>> branch such as sig_gen that are not available in master branch. That is
>> what I am referring to as RFNOC UHD. I would like to continue using
>> rfnoc-devel branch, and hence the issue that I am having. Since the version
>> we were instructed that works with that branch, no longer compiles in
>> latest version of Fedora. That version being v3.7.10.2.
>>
>> When we build source, we typically install all dependencies and it the
>> proceeds to build with no issue. But in this latest version of Fedora, we
>> received compilation errors while trying to build v3.7.10.2. Since latest
>> version of GNU Radio built with no issue, I suspected that changes had been
>> made to correct for newer version.
>>
>> Where in the source code, do they check the version of UHD for
>> compatibility? This will help me to look back at and see which GNU Radio
>> versions are compatible with the rfnoc-devel branch.
>>
>> Thank you again.
>>
>> On Fri, May 25, 2018 at 6:46 AM, Müller, Marcus (CEL) 
>> wrote:
>>
>>> Hi John,
>>> On Fri, 2018-05-25 at 06:39 -0600, John Medrano wrote:
>>> > Thank you for the response.
>>> >
>>> > The issue that we have is that the latest UHD RFNOC version is not
>>> compatible with latest version of GNU Radio.
>>>
>>> That's simply not true. UHD, to GNU Radio, is just a library.
>>>
>>> >
>>> > So I must either compile older version in with newer compiler,
>>>
>>> the compiler version has little to nothing to do with this, luckily :)
>>>
>>> > or downgrade to a version that is compatible with UHD RFNOC.
>>>
>>> You need to use a UHD version that supports what you need (RFNoC); "UHD
>>> RFNOC" is not a thing. RFNoC is an architectural aspect of the FPGA
>>> designs running on some USRPs. So, you need an _UHD_ version that comes
>>> with compatibility for these.
>>>
>>> >  Upgrading UHD to latest version will not allow us to use RFNOC. I may
>>> be wrong, but that is my understanding.
>>>
>>> You'll probably need to manually build UHD, anyway.
>>> After that, you need to build GNU Radio against that UHD version.
>>>
>>> Best regards,
>>> Marcus
>>
>>
>>
>> ___
>> Discuss-gnuradio mailing list
>> Discuss-gnuradio@gnu.org
>> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>>
>>
>
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] GNURadio master and UHD RFNOC Version Issue

2018-05-25 Thread CEL
Hi John,

no need to apologize; we're all learners of some kind!
So, let me annotate your terminology below, so that we are on the same
page :)

On Fri, 2018-05-25 at 07:20 -0600, John Medrano wrote:
> Hello,
> 
> I apologize for my terminology, it is causing some confusion. 
> 
> If you download the source from https://github.com/EttusResearch/uhd. You can 
> compile this version and it should work fine with latest version of GNU Radio

Nope – that's the wrong way around. UHD is a library used /by/ GNU
Radio, so after building UHD, you need to build GNU Radio, to use that
specific version of UHD.


> But this version is missing additional modules that are available in branch 
> rfnoc-devel. I inspected /host/lib/rfnoc for both the master and rfnoc-devel 
> branches; there are several modules from rfnoc-devel branch such as sig_gen 
> that are not available in master branch. That is what I am referring to as 
> RFNOC UHD. I would like to continue using rfnoc-devel branch, and hence the 
> issue that I am having. Since the version we were instructed that works with 
> that branch, no longer compiles in latest version of Fedora. That version 
> being v3.7.10.2.

So, as Derek said, for RFNOC features, you might have to build your own
UHD (and consequently, your own GNU Radio afterwards) with specific
flags.


> When we build source, we typically install all dependencies and it the 
> proceeds to build with no issue. But in this latest version of Fedora, we 
> received compilation errors while trying to build v3.7.10.2.

To be 100 % certain I'm getting you correct here: when building UHD
3.7.10.2 on Fedora28, you're getting compile errors?

> Since latest version of GNU Radio built with no issue, I suspected that 
> changes had been made to correct for newer version.

Again, building UHD (and installing it) has to happen before GNU Radio,
and build errors in one are unrelated to the other, unless the GNU
Radio compile error especially states that "hey, we've got some
function that we expect, but the UHD headers don't declare that".

> 
> Where in the source code, do they check the version of UHD for compatibility?

Yes. GNU Radio checks, at runtime, whether the UHD library used when
building GNU Radio is the same as is being loaded at run time. Because:
these have to match.

The error you're experiencing, however, has nothing to do with that.
It's a **firmware** version mismatch.
GNU Radio doesn't know, care or directly interact with the firmware
running on your USRP at all.

That's UHD checking whether the USRP runs the right firmware. 

This all has nothing to do with GNU Radio!


> This will help me to look back at and see which GNU Radio versions are 
> compatible with the rfnoc-devel branch.

Please stop saying that.
GNU Radio has no relation to RFNoC.

Best regards,
Marcus

smime.p7s
Description: S/MIME cryptographic signature
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] GNURadio master and UHD RFNOC Version Issue

2018-05-25 Thread Derek Kozel
Hello John,

I'm looking at this right now and can confirm that the head of rfnoc-devel
is compatible with the latest GNU Radio. Can you please try rerunning cmake
on UHD with -DRFNOC_ENABLE=true?

The error I saw when switching branches was that the header
 was not installed. That is a core RFNoC header and isn't
installed if the RFNOC_ENABLE is false. The rfnoc-devel branch should have
that enabled automatically, but I suspect that you have RFNOC_ENABLE set to
false in CMakeCache.txt from an earlier master branch build.

Regards,
Derek

On Fri, May 25, 2018 at 2:20 PM, John Medrano 
wrote:

> Hello,
>
> I apologize for my terminology, it is causing some confusion.
>
> If you download the source from https://github.com/EttusResearch/uhd. You
> can compile this version and it should work fine with latest version of GNU
> Radio. But this version is missing additional modules that are available in
> branch rfnoc-devel. I inspected /host/lib/rfnoc for both the master and
> rfnoc-devel branches; there are several modules from rfnoc-devel branch
> such as sig_gen that are not available in master branch. That is what I am
> referring to as RFNOC UHD. I would like to continue using rfnoc-devel
> branch, and hence the issue that I am having. Since the version we were
> instructed that works with that branch, no longer compiles in latest
> version of Fedora. That version being v3.7.10.2.
>
> When we build source, we typically install all dependencies and it the
> proceeds to build with no issue. But in this latest version of Fedora, we
> received compilation errors while trying to build v3.7.10.2. Since latest
> version of GNU Radio built with no issue, I suspected that changes had been
> made to correct for newer version.
>
> Where in the source code, do they check the version of UHD for
> compatibility? This will help me to look back at and see which GNU Radio
> versions are compatible with the rfnoc-devel branch.
>
> Thank you again.
>
> On Fri, May 25, 2018 at 6:46 AM, Müller, Marcus (CEL) 
> wrote:
>
>> Hi John,
>> On Fri, 2018-05-25 at 06:39 -0600, John Medrano wrote:
>> > Thank you for the response.
>> >
>> > The issue that we have is that the latest UHD RFNOC version is not
>> compatible with latest version of GNU Radio.
>>
>> That's simply not true. UHD, to GNU Radio, is just a library.
>>
>> >
>> > So I must either compile older version in with newer compiler,
>>
>> the compiler version has little to nothing to do with this, luckily :)
>>
>> > or downgrade to a version that is compatible with UHD RFNOC.
>>
>> You need to use a UHD version that supports what you need (RFNoC); "UHD
>> RFNOC" is not a thing. RFNoC is an architectural aspect of the FPGA
>> designs running on some USRPs. So, you need an _UHD_ version that comes
>> with compatibility for these.
>>
>> >  Upgrading UHD to latest version will not allow us to use RFNOC. I may
>> be wrong, but that is my understanding.
>>
>> You'll probably need to manually build UHD, anyway.
>> After that, you need to build GNU Radio against that UHD version.
>>
>> Best regards,
>> Marcus
>
>
>
> ___
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
>
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] GNURadio master and UHD RFNOC Version Issue

2018-05-25 Thread John Medrano
Hello,

I apologize for my terminology, it is causing some confusion.

If you download the source from https://github.com/EttusResearch/uhd. You
can compile this version and it should work fine with latest version of GNU
Radio. But this version is missing additional modules that are available in
branch rfnoc-devel. I inspected /host/lib/rfnoc for both the master and
rfnoc-devel branches; there are several modules from rfnoc-devel branch
such as sig_gen that are not available in master branch. That is what I am
referring to as RFNOC UHD. I would like to continue using rfnoc-devel
branch, and hence the issue that I am having. Since the version we were
instructed that works with that branch, no longer compiles in latest
version of Fedora. That version being v3.7.10.2.

When we build source, we typically install all dependencies and it the
proceeds to build with no issue. But in this latest version of Fedora, we
received compilation errors while trying to build v3.7.10.2. Since latest
version of GNU Radio built with no issue, I suspected that changes had been
made to correct for newer version.

Where in the source code, do they check the version of UHD for
compatibility? This will help me to look back at and see which GNU Radio
versions are compatible with the rfnoc-devel branch.

Thank you again.

On Fri, May 25, 2018 at 6:46 AM, Müller, Marcus (CEL) 
wrote:

> Hi John,
> On Fri, 2018-05-25 at 06:39 -0600, John Medrano wrote:
> > Thank you for the response.
> >
> > The issue that we have is that the latest UHD RFNOC version is not
> compatible with latest version of GNU Radio.
>
> That's simply not true. UHD, to GNU Radio, is just a library.
>
> >
> > So I must either compile older version in with newer compiler,
>
> the compiler version has little to nothing to do with this, luckily :)
>
> > or downgrade to a version that is compatible with UHD RFNOC.
>
> You need to use a UHD version that supports what you need (RFNoC); "UHD
> RFNOC" is not a thing. RFNoC is an architectural aspect of the FPGA
> designs running on some USRPs. So, you need an _UHD_ version that comes
> with compatibility for these.
>
> >  Upgrading UHD to latest version will not allow us to use RFNOC. I may
> be wrong, but that is my understanding.
>
> You'll probably need to manually build UHD, anyway.
> After that, you need to build GNU Radio against that UHD version.
>
> Best regards,
> Marcus
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] GNURadio master and UHD RFNOC Version Issue

2018-05-25 Thread CEL
Hi John,
On Fri, 2018-05-25 at 06:39 -0600, John Medrano wrote:
> Thank you for the response. 
> 
> The issue that we have is that the latest UHD RFNOC version is not compatible 
> with latest version of GNU Radio.

That's simply not true. UHD, to GNU Radio, is just a library.

> 
> So I must either compile older version in with newer compiler, 

the compiler version has little to nothing to do with this, luckily :)

> or downgrade to a version that is compatible with UHD RFNOC.

You need to use a UHD version that supports what you need (RFNoC); "UHD
RFNOC" is not a thing. RFNoC is an architectural aspect of the FPGA
designs running on some USRPs. So, you need an _UHD_ version that comes
with compatibility for these.

>  Upgrading UHD to latest version will not allow us to use RFNOC. I may be 
> wrong, but that is my understanding. 

You'll probably need to manually build UHD, anyway.
After that, you need to build GNU Radio against that UHD version.

Best regards,
Marcus

smime.p7s
Description: S/MIME cryptographic signature
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] GNURadio master and UHD RFNOC Version Issue

2018-05-25 Thread John Medrano
Thank you for the response.

The issue that we have is that the latest UHD RFNOC version is not
compatible with latest version of GNU Radio.

So I must either compile older version in with newer compiler, or downgrade
to a version that is compatible with UHD RFNOC. Upgrading UHD to latest
version will not allow us to use RFNOC. I may be wrong, but that is my
understanding.

So I am trying to figure out what it is that I need to do to get the older
version to compile, or is there a newer version that will compile that is
compatible with UHD RFNOC?

Thanks

On Fri, May 25, 2018 at 6:31 AM, Müller, Marcus (CEL) 
wrote:

> Hi John,
> GNU Radio versioning  is totally independent from UHD versioning, and
> that's what's defining the compatibility with the FPGA image.
> So, you need to install the UHD that fits your FPGA image (or use an
> FPGA image that fits your installed UHD).
>
> Best regards,
> Marcus
> On Thu, 2018-05-24 at 13:21 -0600, John Medrano wrote:
> > Recently we built GNURadio and UHD from source on a Fedora 28. Since we
> use RFNOC we were compiling GNURadio version v3.7.10.2, and using
> rfnoc-devel branch from UHD.
> >
> > Building on Fedora 28 we received compiling errors when we were building
> v3.7.10.2. So we decided to build the master branch instead.
> >
> > The problem is that the master branch is not compatible with UHD
> firmware for RFNOC. Expecting firmware version 85 and found version 83.
> >
> > Is the current UHD RFNOC branch in github compatible with master branch
> of GNURadio?
> >
> > What is latest version of GNURadio that we can use? Can we compile in
> Fedora 28?
> >
> > Please advise,
> >
> > Thank you,
> > John
> > ___
> > Discuss-gnuradio mailing list
> > Discuss-gnuradio@gnu.org
> > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] GNURadio master and UHD RFNOC Version Issue

2018-05-25 Thread CEL
Hi John, 
GNU Radio versioning  is totally independent from UHD versioning, and
that's what's defining the compatibility with the FPGA image.
So, you need to install the UHD that fits your FPGA image (or use an
FPGA image that fits your installed UHD).

Best regards,
Marcus
On Thu, 2018-05-24 at 13:21 -0600, John Medrano wrote:
> Recently we built GNURadio and UHD from source on a Fedora 28. Since we use 
> RFNOC we were compiling GNURadio version v3.7.10.2, and using rfnoc-devel 
> branch from UHD.
> 
> Building on Fedora 28 we received compiling errors when we were building 
> v3.7.10.2. So we decided to build the master branch instead. 
> 
> The problem is that the master branch is not compatible with UHD firmware for 
> RFNOC. Expecting firmware version 85 and found version 83.
> 
> Is the current UHD RFNOC branch in github compatible with master branch of 
> GNURadio?
> 
> What is latest version of GNURadio that we can use? Can we compile in Fedora 
> 28?
> 
> Please advise,
> 
> Thank you,
> John
> ___
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

smime.p7s
Description: S/MIME cryptographic signature
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio