Hi Guys,

 

Answering my own question also.

 

I had a mismatch in the NOC_ID between the driver code and my firmware block.

 

After fixing that I could get uhd_usrp_probe and others, like gnuradio, to 
recognize my block.

 

It did still require an LD_PRELOAD after the “sudo make install” but that is ok 
for now.

 

Regards, Kevin

 

From: Brian Padalino <bpadal...@gmail.com> 
Sent: Wednesday, 01 March 2023 16:20
To: Gwenhael Goavec-Merou <gw...@trabucayre.com>
Cc: Vermeulen, Bas (Consultant) <bas.vermeu...@molex.com>; 
usrp-users@lists.ettus.com
Subject: [EXTERNAL][USRP-users] Re: What do I need to do to make uhd_usrp_probe 
see my custom RFNOC module?

 

On Wed, Mar 1, 2023 at 8:59 AM Gwenhael Goavec-Merou <gw...@trabucayre.com 
<mailto:gw...@trabucayre.com> > wrote:

On Wed, 1 Mar 2023 07:20:22 -0500
Brian Padalino <bpadal...@gmail.com <mailto:bpadal...@gmail.com> > wrote:

> On Wed, Mar 1, 2023 at 5:40 AM Vermeulen, Bas (Consultant) via USRP-users <
> usrp-users@lists.ettus.com <mailto:usrp-users@lists.ettus.com> > wrote:
> 
> > Just to answer my own question:
> >
> > Run uhd_usrp_probe with LD_PRELOAD=/usr/lib/librfnoc-module.so
> > uhd_usrp_probe and it will be able to find the RFNOC modules.
> > The same for any test programs you use, those need the LD_PRELOAD as well.
> >  
> 
> While this is a way to do it, I believe the preferred method is using the
> UHD_MODULE_PATH environment variable.
> 
> Set that to a location which contains all the .so files for any RFNoC
> modules, and UHD will load them automatically.  Note that if any non-.so
> files are in that path, you will get a warning about not being able to load
> the library.
> 
> Brian

/usr/lib is a default path for libraries.
Maybe using (as root) ldconfig to rebuild/refresh the cache used by the runtime
linker?

 

No - this doesn't make sense.  Use UHD_MODULE_PATH.

 

You can put your modules in ~/mymodules and point your UHD_MODULE_PATH to 
~/mymodules and things will work fine.

 

There is no need to play with LD_PRELOAD or worry about being root or install 
to default library paths.

 

Use UHD_MODULE_PATH.

 

Brian

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
USRP-users mailing list -- usrp-users@lists.ettus.com
To unsubscribe send an email to usrp-users-le...@lists.ettus.com

Reply via email to