Problem with USRP

---------- Forwarded message ----------
From: Tushar P. [email protected]
Date: Fri, 23 Jan 2009 21:28:32 -0800
Subject: problem with USRP
To: Eric B. [email protected]

Hi Eric,
I used the VM Ware player , on which i run my linux- UBUNTU-8.04
I am able to configure all gnu software packages perfectly, I was able
to
run “hello world” example.

Now when I connect the USRP board with USB cable, the green light will
flashing with 2hz freq. but after that
I found that there is no such file usrp_firmware.ihx in
usr/local/share/usrp/ver2 or ver4,
so my hardware does not detected.

so from various online help i came to know that my following procedure
with
latest USRP version, it will created automatically in that destination.

./bootstrap
./configure
both are run perfectly but when I run the make command I get the error
like
fusb_linux.cc:30:28: error: linux/compiler.h: No such file or directory
make[3]: *** [fusb_linux.lo] Error 1

I attached full log of ./bootstrap, ./configure and make for your
further
ref.
I really stuck up with this problem, I tried with many version of USRP
but
it will give the same error.
please help me.

thanks and regards
Tushar patel

jars@jars-desktop:~/gnuradio/usrp-0.5$./bootstrap
config/usrp_fusb_tech.m4:22: warning: underquoted definition of
USRP_SET_FUSB_TECHNIQUE
config/usrp_fusb_tech.m4:22: run info ‘(automake)Extending aclocal’
config/usrp_fusb_tech.m4:22: or see
http://sources.redhat.com/automake/automake.html#Extending-aclocal
firmware/lib/Makefile.am:60http://sources.redhat.com/automake/automake.html#Extending-aclocalfirmware/lib/Makefile.am:60:
%'-style pattern rules are a GNU make extension firmware/lib/Makefile.am:63: %‘-style pattern rules are a GNU make
extension
firmware/src/usrp0/Makefile.am:82: %'-style pattern rules are a GNU make extension firmware/src/usrp0/Makefile.am:85: %’-style pattern rules are a GNU
make extension
firmware/src/usrp1/Makefile.am:80: %'-style pattern rules are a GNU make extension firmware/src/usrp1/Makefile.am:83: %'-style pattern rules are a GNU
make extension

jars@jars-desktop:~/gnuradio/usrp-0.5$ ./configure
checking build system type… i686-pc-linux-gnu
checking host system type… i686-pc-linux-gnu
checking target system type… i686-pc-linux-gnu
checking for a BSD-compatible install… /usr/bin/install -c
checking whether build environment is sane… yes
checking for a thread-safe mkdir -p… /bin/mkdir -p
checking for gawk… gawk
checking whether make sets $(MAKE)… yes
checking whether to enable maintainer-specific portions of Makefiles…
no
checking for style of include used by make… GNU
checking for g++… g++
checking for C++ compiler default output file name… a.out
checking whether the C++ compiler works… yes
checking whether we are cross compiling… no
checking for suffix of executables…
checking for suffix of object files… o
checking whether we are using the GNU C++ compiler… yes
checking whether g++ accepts -g… yes
checking dependency style of g++… gcc3
checking how to run the C++ preprocessor… g++ -E
checking whether C++ has bool… yes
checking whether C++ has buggy scoping in for-loops… no
checking whether user wants assertions… yes
checking whether C++ has std::isnan… no
checking whether user wants warnings… yes
checking whether g++ accepts -Wall… yes
checking whether g++ accepts -Woverloaded-virtual… yes
checking whether user wants gprof… no
checking whether user wants prof… no
checking for gcc… gcc
checking whether we are using the GNU C compiler… yes
checking whether gcc accepts -g… yes
checking for gcc option to accept ISO C89… none needed
checking dependency style of gcc… gcc3
checking whether ln -s works… yes
checking whether make sets $(MAKE)… (cached) yes
checking for a BSD-compatible install… /usr/bin/install -c
checking for a sed that does not truncate output… /bin/sed
checking for grep that handles long lines and -e… /bin/grep
checking for egrep… /bin/grep -E
checking for ld used by gcc… /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld… yes
checking for /usr/bin/ld option to reload object files… -r
checking for BSD-compatible nm… /usr/bin/nm -B
checking how to recognize dependent libraries… pass_all
checking how to run the C preprocessor… gcc -E
checking for ANSI C header files… yes
checking for sys/types.h… yes
checking for sys/stat.h… yes
checking for stdlib.h… yes
checking for string.h… yes
checking for memory.h… yes
checking for strings.h… yes
checking for inttypes.h… yes
checking for stdint.h… yes
checking for unistd.h… yes
checking dlfcn.h usability… yes
checking dlfcn.h presence… yes
checking for dlfcn.h… yes
checking how to run the C++ preprocessor… g++ -E
checking for g77… no
checking for xlf… no
checking for f77… no
checking for frt… no
checking for pgf77… no
checking for cf77… no
checking for fort77… no
checking for fl32… no
checking for af77… no
checking for xlf90… no
checking for f90… no
checking for pgf90… no
checking for pghpf… no
checking for epcf90… no
checking for gfortran… no
checking for g95… no
checking for xlf95… no
checking for f95… no
checking for fort… no
checking for ifort… no
checking for ifc… no
checking for efc… no
checking for pgf95… no
checking for lf95… no
checking for ftn… no
checking whether we are using the GNU Fortran 77 compiler… no
checking whether accepts -g… no
checking the maximum length of command line arguments… 98304
checking command to parse /usr/bin/nm -B output from gcc object… ok
checking for objdir… .libs
checking for ar… ar
checking for ranlib… ranlib
checking for strip… strip
checking if gcc supports -fno-rtti -fno-exceptions… no
checking for gcc option to produce PIC… -fPIC
checking if gcc PIC flag -fPIC works… yes
checking if gcc static flag -static works… yes
checking if gcc supports -c -o file.o… yes
checking whether the gcc linker (/usr/bin/ld) supports shared
libraries…
yes
checking whether -lc should be explicitly linked in… no
checking dynamic linker characteristics… GNU/Linux ld.so
checking how to hardcode library paths into programs… immediate
checking whether stripping libraries is possible… yes
checking if libtool supports shared libraries… yes
checking whether to build shared libraries… yes
checking whether to build static libraries… yes
configure: creating libtool
appending configuration tag “CXX” to libtool
checking for ld used by g++… /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld… yes
checking whether the g++ linker (/usr/bin/ld) supports shared
libraries…
yes
checking for g++ option to produce PIC… -fPIC
checking if g++ PIC flag -fPIC works… yes
checking if g++ static flag -static works… yes
checking if g++ supports -c -o file.o… yes
checking whether the g++ linker (/usr/bin/ld) supports shared
libraries…
yes
checking dynamic linker characteristics… GNU/Linux ld.so
(cached) (cached) checking how to hardcode library paths into
programs… immediate
appending configuration tag “F77” to libtool
checking for python… /usr/bin/python
checking for python version… 2.5
checking for python platform… linux2
checking for python script directory…
${prefix}/lib/python2.5/site-packages
checking for python extension module directory…
${exec_prefix}/lib/python2.5/site-packages
checking for Python include path… /usr/include/python2.5
checking for swig… /usr/bin/swig
checking for SWIG version… 1.3.33
checking for swig… (cached) /usr/bin/swig
checking for SWIG version… 1.3.33
checking for ANSI C header files… (cached) yes
checking fcntl.h usability… yes
checking fcntl.h presence… yes
checking for fcntl.h… yes
checking limits.h usability… yes
checking limits.h presence… yes
checking for limits.h… yes
checking for strings.h… (cached) yes
checking sys/ioctl.h usability… yes
checking sys/ioctl.h presence… yes
checking for sys/ioctl.h… yes
checking sys/time.h usability… yes
checking sys/time.h presence… yes
checking for sys/time.h… yes
checking for unistd.h… (cached) yes
checking for an ANSI C-conforming const… yes
checking for inline… inline
checking for size_t… yes
checking whether time.h and sys/time.h may both be included… yes
checking byteswap.h usability… yes
checking byteswap.h presence… yes
checking for byteswap.h… yes
checking whether byte ordering is bigendian… no
checking usb.h usability… yes
checking usb.h presence… yes
checking for usb.h… yes
checking for library containing usb_bulk_write… -lusb
checking linux/usbdevice_fs.h usability… yes
checking linux/usbdevice_fs.h presence… yes
checking for linux/usbdevice_fs.h… yes
checking for fast usb technique to use… linux
configure: creating ./config.status
config.status: creating Makefile
config.status: creating usrp.pc
config.status: creating config/Makefile
config.status: creating host/Makefile
config.status: creating host/lib/Makefile
config.status: creating host/swig/Makefile
config.status: creating host/apps/Makefile
config.status: creating firmware/Makefile
config.status: creating firmware/include/Makefile
config.status: creating firmware/lib/Makefile
config.status: creating firmware/src/Makefile
config.status: creating firmware/src/common/Makefile
config.status: creating firmware/src/usrp0/Makefile
config.status: creating firmware/src/usrp1/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands

jars@jars-desktop:~/gnuradio/usrp-0.5$ make
make all-recursive
make[1]: Entering directory /home/jars/gnuradio/usrp-0.5' Making all in config make[2]: Entering directory /home/jars/gnuradio/usrp-0.5/config’
make[2]: Nothing to be done for all'. make[2]: Leaving directory /home/jars/gnuradio/usrp-0.5/config’
Making all in host
make[2]: Entering directory /home/jars/gnuradio/usrp-0.5/host' Making all in lib make[3]: Entering directory /home/jars/gnuradio/usrp-0.5/host/lib’
/bin/bash …/…/libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H
-I. -I…/… -I…/…/host/lib -I…/…/firmware/include -g -O2 -Wall
-Woverloaded-virtual -MT fusb_linux.lo -MD -MP -MF
.deps/fusb_linux.Tpo -c -o fusb_linux.lo fusb_linux.cc
g++ -DHAVE_CONFIG_H -I. -I…/… -I…/…/host/lib
-I…/…/firmware/include -g -O2 -Wall -Woverloaded-virtual -MT
fusb_linux.lo -MD -MP -MF .deps/fusb_linux.Tpo -c fusb_linux.cc -fPIC
-DPIC -o .libs/fusb_linux.o
fusb_linux.cc:30:28: error: linux/compiler.h: No such file or directory
make[3]: *** [fusb_linux.lo] Error 1
make[3]: Leaving directory /home/jars/gnuradio/usrp-0.5/host/lib' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory /home/jars/gnuradio/usrp-0.5/host’
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jars/gnuradio/usrp-0.5’
make: *** [all] Error 2
jars@jars-desktop:~/gnuradio/usrp-0.5$

I am very new with Linux, so may be this error is trival but i could
not get the things.
Due to this error I can not able to connet the my hardware to laptop,
and do not able to proceed further.
I will really appreaciate you guys, if you guys can give me proper
direction.
thank and regards
Tushar patel
EE-(Communication)
SJSU
408-218-0389

On Sun, Jan 25, 2009 at 05:14:55PM -0800, Tushar P. wrote:

---------- Forwarded message ----------
From: Tushar P. [email protected]
Date: Fri, 23 Jan 2009 21:28:32 -0800
Subject: problem with USRP
To: Eric B. [email protected]

Hi Eric,
I used the VM Ware player , on which i run my linux- UBUNTU-8.04
I am able to configure all gnu software packages perfectly, I was able to
run “hello world” example.

You appear to be compiling ancient code.

Please use either the svn trunk or the latest tarball.

http://gnuradio.org/trac/wiki/Download
http://gnuradio.org/trac/wiki/BuildGuide

Eric

I found the linux/compiler.h file in other place, I gave the path in
fusb_linux.cc and able to run all make, check make, install make.
It will gererate the usrp_firmware.ihx file also but it will generate in
rev0 and rev1, I used the usrp-0.5 tar from your link.
still I do not able to detact my USRP hardware,
so that USRP tar is old or what, I do not able to resolve it
pl. guide me

Did u do as Eric asked you to? Download the latest gnuradio svn tar and
follow the install instructions.

Hi I able to detect the USPR board with VM ware player.
I also test with the command shows in help
ls -lR /dev/bus/usb | grep usrp
i got the output as per mention,
Now I have the basic Tx and basic Rx board, so what are the example
availble
on which I can run with these basic Tx anr basic Rx board ?
thanks and regards
tushar patel

great. test your installation with the following programs to start with.
Look in the following directory /usr/local/share/gnuradio/examples

There are lots of examples that you can start with. In the digital
directory
you can use benchmark_tx.py and bechmark_rx.py to test transmit and
receive
using two USRPs. You can use tunnel.py to make usrp behave as ethernet .
Test the sound card using the programs in audio directory.

If you have questions then ask us. :slight_smile:

Bye
Ali

Hi try to run usrp_oscope.py and usrp_fft.py, which are gui type
exaples.
but application run then it show oUoUoU error,
which I fount the USRP overrun.
I run all this on VMware platform.
I am using amd 64 turion, 3gb ram configuration.
So I do not able to understand why my system getting low.

Also I would like to run FM radio, I have only one tx and one rx board,
can
I run sterio FM,

thanks and regards
tushar