Thursday, August 9, 2018

Re: [Discuss-gnuradio] USRP Source Block error 255

# Script for installing gnuradio and uhd under Ubuntu 18.04.1
#
# Chad M. Spooner
# cmspooner@nwra.com
# Based on a script written by Raj Bhattacharjea, GTRI
# Invoked by "sh raj_script"
# August 2018

#get the core count for parallel builds

NTHREADS=`getconf _NPROCESSORS_ONLN`

#uhd prereqs

sudo apt-get install git libboost-all-dev libusb-1.0-0-dev python-mako\
python-requests cmake build-essential libudev-dev libncurses5-dev

#skip these to NOT generate documentation

sudo apt-get install python-docutils doxygen

#uhd

cd ~
git clone git://github.com/EttusResearch/uhd.git
cd uhd
git checkout maint #this is where you can do other releases by tag, e.g., 3.12

#go in and configure uhd

cd host
mkdir build
cd build
cmake ../

#make and test uhd

make -j$NTHREADS && make -j$NTHREADS test

#install uhd

sudo make install && sudo ldconfig

#and set up the USB stuff for B-series

cd /usr/local/lib/uhd/utils
sudo cp uhd-usrp.rules /etc/udev/rules.d/
sudo udevadm control --reload-rules
sudo udevadm trigger
sudo ldconfig

#now gnuradio
#gr-prereqs, not including ones alread installe for UHD

##sudo apt-get install libcppunit-dev libfftw3-dev\
## python swig python-numpy\
## python-cheetah python-gtk2-dev \
## libgsl-dev\
## libqwt-dev libqt4-dev pyqt4-dev-tools\
## python-wxgtk3.0-dev python-lxml\
## portaudio19-dev\
## libsdl1.2-dev\
## libcomedi-dev\
## liborc-0.4-dev\
## libzmq-dev python-zmq\
## python-scipy

sudo apt-get install libcppunit-dev libfftw3-dev\
python swig python-numpy\
python-cheetah python-gtk2-dev \
libgsl-dev\
libqwt-dev libqt4-dev pyqt4-dev-tools\
python-wxgtk3.0-dev python-lxml\
portaudio19-dev\
libsdl1.2-dev\
libcomedi-dev\
python-scipy

cd ~
git clone --recursive https://www.gnuradio.org/cgit/gnuradio.git
#git
clone --recursive http://git.gnuradio.org/git/gnuradio.git
cd gnuradio
git checkout maint
git submodule update --recursive
mkdir build && cd build && cmake ../
make -j$NTHREADS && make -j$NTHREADS test
sudo make install
sudo ldconfig
On 08/07/2018 02:01 PM, Marcus D. Leech wrote:
> On 08/07/2018 04:47 PM, Chad Spooner wrote:
>>
>> On 08/07/2018 12:01 PM, Marcus D. Leech wrote:
>>> On 08/07/2018 02:54 PM, Chad Spooner wrote:
>>>> All:
>>>>
>>>> I'm having trouble with some flowgraphs under Ubuntu 18.04.1. I
>>>> recently set up a HP ZBook G3
>>>> with that OS and did a PyBOMBS install of gnuradio and UHD. I'm
>>>> connected to an Ettus X310
>>>> and the SBX daughter card here.
>>>>
>>>> I then starting running some of the flowgraphs I had been running
>>>> under 16.04 on that same
>>>> computer. I hadn't observed any errors with these flowgraphs under
>>>> 16.04.
>>>>
>>>> After running for a while, I get the following error:
>>>>
>>>> gr::log :WARN: gr uhd usrp source0 - USRP Source Block caught rx
>>>> error code: 255
>>>>
>>>> The flowgraph doesn't appear to stop, but the graphics I'm running
>>>> using QT GUI Vector Sink
>>>> freeze up. I can then stop the flowgraph in the usual way by
>>>> clicking the "kill the flowgraph"
>>>> button.
>>>>
>>>> kernel:  4.15.0-29-generic #31-Ubuntu SMP
>>>>
>>>> gnuradio version: 3.7.12.0
>>>>
>>>> UHD version: UHD_3.14.0.0-31-g98057752
>>>>
>>>> Any ideas of how to fix this problem?
>>>>
>>>> Here is the output of uhd_usrp_probe:
>>>>
>>>> [INFO] [UHD] linux; GNU C++ version 7.3.0; Boost_106501;
>>>> UHD_3.14.0.0-31-g98057752
>>>> [INFO] [X300] X300 initialization sequence...
>>>> [INFO] [X300] Maximum frame size: 1472 bytes.
>>>> [INFO] [X300] Radio 1x clock: 200 MHz
>>>> [INFO] [0/DmaFIFO_0] Initializing block control (NOC ID:
>>>> 0xF1F0D00000000000)
>>>> [INFO] [0/DmaFIFO_0] BIST passed (Throughput: 1300 MB/s)
>>>> [INFO] [0/DmaFIFO_0] BIST passed (Throughput: 1303 MB/s)
>>>> [INFO] [0/Radio_0] Initializing block control (NOC ID:
>>>> 0x12AD100000000001)
>>>> [INFO] [0/Radio_1] Initializing block control (NOC ID:
>>>> 0x12AD100000000001)
>>>> [INFO] [0/DDC_0] Initializing block control (NOC ID:
>>>> 0xDDC0000000000000)
>>>> [INFO] [0/DDC_1] Initializing block control (NOC ID:
>>>> 0xDDC0000000000000)
>>>> [INFO] [0/DUC_0] Initializing block control (NOC ID:
>>>> 0xD0C0000000000000)
>>>> [INFO] [0/DUC_1] Initializing block control (NOC ID:
>>>> 0xD0C0000000000000)
>>>>   _____________________________________________________
>>>>  /
>>>> |       Device: X-Series Device
>>>> |     _____________________________________________________
>>>> |    /
>>>> |   |       Mboard: X310
>>>> |   |   revision: 6
>>>> |   |   product: 30410
>>>> |   |   mac-addr0: 00:80:2f:19:13:0a
>>>> |   |   mac-addr1: 00:80:2f:19:13:0b
>>>> |   |   gateway: 192.168.10.1
>>>> |   |   ip-addr0: 192.168.10.2
>>>> |   |   subnet0: 255.255.255.0
>>>> |   |   ip-addr1: 192.168.20.2
>>>> |   |   subnet1: 255.255.255.0
>>>> |   |   ip-addr2: 192.168.30.2
>>>> |   |   subnet2: 255.255.255.0
>>>> |   |   ip-addr3: 192.168.40.2
>>>> |   |   subnet3: 255.255.255.0
>>>> |   |   serial: 306B4B8
>>>> |   |   FW Version: 6.0
>>>> |   |   FPGA Version: 35.1
>>>> |   |   FPGA git hash: a20b791
>>>> |   |   RFNoC capable: Yes
>>>> |   |
>>>> |   |   Time sources:  internal, external, gpsdo
>>>> |   |   Clock sources: internal, external, gpsdo
>>>> |   |   Sensors: ref_locked
>>>> |   | _____________________________________________________
>>>> |   |    /
>>>> |   |   |       RX Dboard: A
>>>> |   |   |   ID: WBX-120, WBX-120 + Simple GDB (0x0081)
>>>> |   |   |   Serial: F5FB72
>>>> |   |   | _____________________________________________________
>>>> |   |   |    /
>>>> |   |   |   |       RX Frontend: 0
>>>> |   |   |   |   Name: WBX-120 RX+GDB
>>>> |   |   |   |   Antennas: TX/RX, RX2, CAL
>>>> |   |   |   |   Sensors: lo_locked
>>>> |   |   |   |   Freq range: 25.000 to 2200.000 MHz
>>>> |   |   |   |   Gain range PGA0: 0.0 to 31.5 step 0.5 dB
>>>> |   |   |   |   Bandwidth range: 120000000.0 to 120000000.0 step
>>>> 0.0 Hz
>>>> |   |   |   |   Connection Type: IQ
>>>> |   |   |   |   Uses LO offset: No
>>>> |   |   | _____________________________________________________
>>>> |   |   |    /
>>>> |   |   |   |       RX Codec: A
>>>> |   |   |   |   Name: ads62p48
>>>> |   |   |   |   Gain range digital: 0.0 to 6.0 step 0.5 dB
>>>> |   | _____________________________________________________
>>>> |   |    /
>>>> |   |   |       RX Dboard: B
>>>> |   |   |   ID: SBX-120 (0x0083)
>>>> |   |   |   Serial: F5B3A8
>>>> |   |   | _____________________________________________________
>>>> |   |   |    /
>>>> |   |   |   |       RX Frontend: 0
>>>> |   |   |   |   Name: SBX-120 RX
>>>> |   |   |   |   Antennas: TX/RX, RX2, CAL
>>>> |   |   |   |   Sensors: lo_locked
>>>> |   |   |   |   Freq range: 400.000 to 4400.000 MHz
>>>> |   |   |   |   Gain range PGA0: 0.0 to 31.5 step 0.5 dB
>>>> |   |   |   |   Bandwidth range: 120000000.0 to 120000000.0 step
>>>> 0.0 Hz
>>>> |   |   |   |   Connection Type: IQ
>>>> |   |   |   |   Uses LO offset: No
>>>> |   |   | _____________________________________________________
>>>> |   |   |    /
>>>> |   |   |   |       RX Codec: B
>>>> |   |   |   |   Name: ads62p48
>>>> |   |   |   |   Gain range digital: 0.0 to 6.0 step 0.5 dB
>>>> |   | _____________________________________________________
>>>> |   |    /
>>>> |   |   |       TX Dboard: A
>>>> |   |   |   ID: WBX-120 (0x0080)
>>>> |   |   |   Serial: F5FB72
>>>> |   |   |   ID: WBX + Simple GDB, WBX v3 + Simple GDB, WBX v4 +
>>>> Simple GDB, WBX-120 + Simple GDB (0x004f)
>>>> |   |   |   Serial: F5E6B6
>>>> |   |   | _____________________________________________________
>>>> |   |   |    /
>>>> |   |   |   |       TX Frontend: 0
>>>> |   |   |   |   Name: WBX-120 TX+GDB
>>>> |   |   |   |   Antennas: TX/RX, CAL
>>>> |   |   |   |   Sensors: lo_locked
>>>> |   |   |   |   Freq range: 25.000 to 2200.000 MHz
>>>> |   |   |   |   Gain range PGA0: 0.0 to 31.0 step 1.0 dB
>>>> |   |   |   |   Bandwidth range: 120000000.0 to 120000000.0 step
>>>> 0.0 Hz
>>>> |   |   |   |   Connection Type: IQ
>>>> |   |   |   |   Uses LO offset: No
>>>> |   |   | _____________________________________________________
>>>> |   |   |    /
>>>> |   |   |   |       TX Codec: A
>>>> |   |   |   |   Name: ad9146
>>>> |   |   |   |   Gain Elements: None
>>>> |   | _____________________________________________________
>>>> |   |    /
>>>> |   |   |       TX Dboard: B
>>>> |   |   |   ID: SBX-120 (0x0082)
>>>> |   |   |   Serial: F5B3A8
>>>> |   |   | _____________________________________________________
>>>> |   |   |    /
>>>> |   |   |   |       TX Frontend: 0
>>>> |   |   |   |   Name: SBX-120 TX
>>>> |   |   |   |   Antennas: TX/RX, CAL
>>>> |   |   |   |   Sensors: lo_locked
>>>> |   |   |   |   Freq range: 400.000 to 4400.000 MHz
>>>> |   |   |   |   Gain range PGA0: 0.0 to 31.5 step 0.5 dB
>>>> |   |   |   |   Bandwidth range: 120000000.0 to 120000000.0 step
>>>> 0.0 Hz
>>>> |   |   |   |   Connection Type: QI
>>>> |   |   |   |   Uses LO offset: No
>>>> |   |   | _____________________________________________________
>>>> |   |   |    /
>>>> |   |   |   |       TX Codec: B
>>>> |   |   |   |   Name: ad9146
>>>> |   |   |   |   Gain Elements: None
>>>> |   | _____________________________________________________
>>>> |   |    /
>>>> |   |   |       RFNoC blocks on this device:
>>>> |   |   |
>>>> |   |   |   * DmaFIFO_0
>>>> |   |   |   * Radio_0
>>>> |   |   |   * Radio_1
>>>> |   |   |   * DDC_0
>>>> |   |   |   * DDC_1
>>>> |   |   |   * DUC_0
>>>> |   |   |   * DUC_1
>>>>
>>>> Thanks much,
>>>>
>>>> Chad
>>>>
>>> What happens if you revert to an older UHD? (3.12 or 3.13)
>>>
>>>
>>>
>>> _______________________________________________
>>> Discuss-gnuradio mailing list
>>> Discuss-gnuradio@gnu.org
>>> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>>>
>>
>> Thanks for the quick reply. All methods of installing gnuradio and
>> uhd failed for me except pybombs. So I suppose I want to try to use
>> pybombs to do the uhd reversion. However, I've never done that before.
>>
>> I found the UHD source for 3.12 on the Ettus site. Can you give me a
>> hint on how to proceed?
>>
>> I looked around the web for reversion, and found an old thread from
>> this list (Richard Mcallister).
>> The recommendation is
>>
>> pybombs -p /your_prefix/ rebuild /uhd/
>>
>> Can I use this, and how do I connect it to the source from ettus.com?
>> I can start trying stuff, but I'm leery of breaking what I've already
>> got and having to start all over.
>>
>> C
>>
> Someone with more PyBombs knowledge than me can make a recommendation
> about how to ask PyBombs to build a specific version.
>
>
>
> _______________________________________________
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>

Thanks Marcus.

I removed the pybombs installation and installed from source using the
attached script, adapted from a script supplied by Raj Bhattacharjea.
All the good stuff in the script is his, any errors or problems are mine.
The build script that is pointed to by the online gnuradio documentation
does not support 18.04.1, so instead of trying to adapt that script, I
used Raj's.

The attached script successfully installs UHD and gnuradio. However, the
freeze-up problem I described with the pybombs installation remains.

I've been testing other flowgraphs that contain the UHD Source block. It
appears that things work correctly indefinitely if no graphics are
involved.

I believe I can adapt the script to follow-through on the suggestion to
revert to an earlier UHD version.

C

--
Chad M. Spooner
NorthWest Research Associates
301 Webster Street
Monterey, CA 93940
cmspooner@nwra.com
831 582 4904
cyclostationary.blog

No comments:

Post a Comment