There was an ABI change between Gnu Radio and UHD, so you have to be running a newer UHD--current master is what I'd recommend.
Also, you'll find your world is better if you use build-gnuradio, if you're on Ubuntu or Fedora. On Thu, 2 Feb 2012 21:41:50 +0100 (CET), [email protected] wrote: > Hello, > > I would like to ask for an advice - I have troubles running current > gnuradio git version with USRP1 using UHD. > > I have installed UHD drivers with downloaded firmware and FPGA images and compiled the host code; uhd_usrp_probe seems to work: > linux; GNU C++ version 4.5.3; Boost_104700; UHD_003.003.002-unknown > > -- Loading firmware image: /usr/local/share/uhd/images/usrp1_fw.ihx... done > -- Opening a USRP1 device... > -- Loading FPGA image: /usr/local/share/uhd/images/usrp1_fpga.rbf... done > -- Using FPGA clock rate of 64.000000MHz... > _____________________________________________________ > / > | Device: USRP1 Device > | _____________________________________________________ > | / > | | Mboard: USRP1 (Classic) > | | serial: 46390f8b > | | > | | Time sources: none > | | Clock sources: internal > | | Sensors: > | | _____________________________________________________ > | | / > | | | RX DSP: 0 > | | | Freq range: -32.000 to 32.000 Mhz > | | _____________________________________________________ > | | / > | | | RX DSP: 1 > | | | Freq range: -32.000 to 32.000 Mhz > | | _____________________________________________________ > | | / > | | | RX Dboard: A > | | | ID: WBX, WBX + Simple GDB (0x0053) > | | | _____________________________________________________ > | | | / > | | | | RX Subdev: 0 > | | | | Name: WBX RX + Simple GDB > | | | | Antennas: TX/RX, RX2 > | | | | Sensors: lo_locked > | | | | Freq range: 68.750 to 2200.000 Mhz > | | | | Gain range PGA0: 0.0 to 31.5 step 0.5 dB > | | | | Connection Type: IQ > | | | | Uses LO offset: No > | | | _____________________________________________________ > | | | / > | | | | RX Codec: A > | | | | Name: ad9522 > | | | | Gain range pga: 0.0 to 20.0 step 1.0 dB > | | _____________________________________________________ > | | / > | | | RX Dboard: B > | | | ID: DBSRX (0x0002) > | | | _____________________________________________________ > | | | / > | | | | RX Subdev: 0 > | | | | Name: DBSRX (0x0002) > | | | | Antennas: J3 > | | | | Sensors: lo_locked > | | | | Freq range: 800.000 to 2400.000 Mhz > | | | | Gain range GC1: 0.0 to 56.0 step 0.5 dB > etc.. > > Then I installed gnuradio from git clone and configured it as: > ./configure --enable-gr-uhd --enable-gr-noaa --enable-usrp2 --enable-usrp --enable-gr-usrp --enable-grc --enable-gr-audio-alsa --enable-gr-trellis --disable-volk > I had to disable volk due to compilation errors (some 32-64 bit code mismatch I guess). > It seems that old USRP (non-UHD) support has been already removed and when I trysome UHD example, it always coredumps: > > AFTER USRP POWER CYCLE > jiri@jp:/scratch/jiri/gnuradio/gr-uhd/examples/ ./usrp_wfm_rcv_pll.py > linux; GNU C++ version 4.5.3; Boost_104700; UHD_003.003.002-unknown > > -- Loading firmware image: /usr/local/share/uhd/images/usrp1_fw.ihx... done > -- Opening a USRP1 device... > -- Loading FPGA image: /usr/local/share/uhd/images/usrp1_fpga.rbf... done > (gdb) bt > #0 0x00000000034b0018 in ?? () > #1 0x00007fbb65892cb2 in thread_proxy () from /usr/lib64/libboost_thread-mt-1_42.so.1.42.0 > #2 0x00007fbb671c5ca8 in start_thread () from /lib64/libpthread.so.0 > #3 0x00007fbb66f0c1ad in clone () from /lib64/libc.so.6 > > WITHOUT POWER CYCLE > -- Opening a USRP1 device... > -- Using FPGA clock rate of 64.000000MHz... > Segmentation fault (core dumped) > #0 0x00007ffb61a855a4 in boost::thread::start_thread() () from /usr/lib64/libboost_thread-mt-1_42.so.1.42.0 > (gdb) bt > #0 0x00007ffb61a855a4 in boost::thread::start_thread() () from /usr/lib64/libboost_thread-mt-1_42.so.1.42.0 > #1 0x00007ffb5839d71b in boost::thread* boost::thread_group::create_thread const&>, boost::_bi::list2, boost::_bi::value > > > >(boost::_bi::bind_t const&>, boost::_bi::list2, boost::_bi::value > > >) () from /usr/local/lib64/libuhd.so.003 > #2 0x00007ffb5839e5ca in task_impl::task_impl(boost::function const&) () from /usr/local/lib64/libuhd.so.003 > #3 0x00007ffb5839bd71 in uhd::task::make(boost::function const&) () from /usr/local/lib64/libuhd.so.003 > #4 0x00007ffb582d40c6 in usrp1_impl::io_init() () from /usr/local/lib64/libuhd.so.003 > #5 0x00007ffb582f440c in usrp1_impl::usrp1_impl(uhd::device_addr_t const&) () from /usr/local/lib64/libuhd.so.003 > #6 0x00007ffb582f5871 in usrp1_make(uhd::device_addr_t const&) () from /usr/local/lib64/libuhd.so.003 > #7 0x00007ffb582f952c in boost::detail::function::function_invoker1 (*)(uhd::device_addr_t const&), boost::shared_ptr, uhd::device_addr_t const&>::invoke(boost::detail::function::function_buffer&, uhd::device_addr_t const&) () from /usr/local/lib64/libuhd.so.003 > #8 0x00007ffb583a34c3 in uhd::device::make(uhd::device_addr_t const&, unsigned long) () from /usr/local/lib64/libuhd.so.003 > #9 0x00007ffb581e9b49 in uhd::usrp::multi_usrp::make(uhd::device_addr_t const&) () from /usr/local/lib64/libuhd.so.003 > #10 0x00007ffb5868c3bb in uhd_usrp_source_impl::uhd_usrp_source_impl (this=0x2f90950, device_addr=..., stream_args=..., > __in_chrg=, __vtt_parm=) at gr_uhd_usrp_source.cc:68 > #11 0x00007ffb5868322c in uhd_make_usrp_source (device_addr=..., stream_args=...) at gr_uhd_usrp_source.cc:473 > #12 0x00007ffb588f572e in _wrap_usrp_source__SWIG_1 (args=) at python/uhd_swig.cc:30153 > #13 _wrap_usrp_source (self=, args=) at python/uhd_swig.cc:30188 > #14 0x00007ffb636b1062 in PyEval_EvalFrameEx () from /usr/lib64/libpython2.7.so.1.0 > #15 0x00007ffb636b2f27 in PyEval_EvalCodeEx () from /usr/lib64/libpython2.7.so.1.0 > ..... > > On the other hand, I have also funcube-dongle, and the same version of gnuradio > works fine with that device. > I have python 2.7, boost 1.42.0 (with both 1.46 and 1.47 I got compilation errors in gnuradio), gcc (Gentoo 4.5.3-r1 p1.0, pie-0.4.5) 4.5.3, > running 3.1.5-gentoo #2 SMP on x86_64 Intel(R) Core(TM) i7 CPU Q 740 @ 1.73GHz > HP 8540w laptop. > > I tried also to install gnuradio-3.4.2: this has still the old USRP support, which works fine, but UHD segfaults as well (and funcube does not work). > > Do you have any idea what to do? > Thanks very much for help. > Best regards, > Jiri Pittner > > _______________________________________________ > Discuss-gnuradio mailing list > [email protected] [1] > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio [2] Links: ------ [1] mailto:[email protected] [2] https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
_______________________________________________ Discuss-gnuradio mailing list [email protected] https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
