[prev in list] [next in list] [prev in thread] [next in thread]
List: gnuradio-discuss
Subject: Re: [Discuss-gnuradio] Issue with tuntap_pdu
From: Jonathan Fox <31fox () cardinalmail ! cua ! edu>
Date: 2014-11-10 17:06:44
Message-ID: CAPZrqubiBu-XBzgW4+hUoH26y=F3eY++=iSXRBH3kOPa8bakSQ () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
On Thu, Nov 6, 2014 at 6:41 PM, Jonathan Fox <31fox@cardinalmail.cua.edu>
wrote:
> I am trying to run the example simple_trx.py script from the gr-mac module
> and I am having an issue related to what I believe is
> gr::blocks::tuntap_pdu.
>
> This is what I am doing.
>
> I open up a couple of terminal windows and in two of them I place in these
> separate commands.
>
> [root@xxxx project]# ./simple_trx.py --radio-addr 85 --dest-addr 86
> --port 12345 -a addr=10.2.8.104
>
> [root@xxxx project]# ./simple_trx.py --radio-addr 86 --dest-addr 85
> --port 12346 -a addr=10.2.8.105
>
> The former will run just fine and then the second one gives me this error
>
> [root@xxxx project]# ./simple_trx.py --radio-addr 86 --dest-addr 85
> --port 12346 -a addr=10.2.8.105
> linux; GNU C++ version 4.4.7 20120313 (Red Hat 4.4.7-4); Boost_104100;
> UHD_003.007.001-64-g92b0b7ab
>
> libGL error: failed to load driver: nouveau
> libGL error: Try again with LIBGL_DEBUG=verbose for more details.
> Using Volk machine: sse4_2_64
> Simple MAC ARQ in non-blocking mode
> <virtual_channel_encoder[25]> MTU: 128
> 'post_msg' not found. Using 'message_port_pub' instead.
> Virtual channel encoder in non-blocking mode
> <virtual_channel_encoder[26]> MTU: 128
> 'post_msg' not found. Using 'message_port_pub' instead.
> Virtual channel encoder in non-blocking mode
> -- Opening a USRP2/N-Series device...
> -- Current recv frame size: 1472 bytes
> -- Current send frame size: 1472 bytes
> -- Detecting internal GPSDO.... Found an internal GPSDO
> -- found
> -- Setting references to the internal GPSDO
> -- Initializing time to the internal GPSDO
> <burst_tagger[36]> tag name: length, multiplier: 32.000000, tag front: 0,
> tag rear: 16, drop residue: yes, verbose: yes
> bits per symbol = 1
> M&M clock recovery omega = 4.000000
> M&M clock recovery gain mu = 0.175000
> M&M clock recovery mu = 0.500000
> M&M clock recovery omega rel. limit = 0.005000
> frequency error = 0.000000
> Traceback (most recent call last):
> File "./simple_trx.py", line 386, in <module>
> tb = simple_trx(args=options.args, tx_lo_offset=options.tx_lo_offset,
> rx_lo_offset=options.rx_lo_offset, rate=options.rate,
> rx_antenna=options.rx_antenna, rx_freq=options.rx_freq,
> tx_freq=options.tx_freq, rx_gain=options.rx_gain, tx_gain=options.tx_gain,
> samps_per_sym=options.samps_per_sym, ampl=options.ampl,
> arq_timeout=options.arq_timeout, dest_addr=options.dest_addr,
> max_arq_attempts=options.max_arq_attempts, radio_addr=options.radio_addr,
> iface=options.iface, mtu=options.mtu, port=options.port)
> File "./simple_trx.py", line 157, in __init__
> self.blocks_tuntap_pdu_0 = blocks.tuntap_pdu(iface, mtu*0 + 1514)
> File
> "/usr/local/lib64/python2.6/site-packages/gnuradio/blocks/blocks_swig5.py",
> line 1796, in make
> return _blocks_swig5.tuntap_pdu_make(*args, **kwargs)
> RuntimeError: gr::tuntap_pdu::make: tun_alloc failed (are you running as
> root?)
>
> Of course I am running this as root. Why can't I have two instances of
> this running?
>
> Jonathan Fox
>
Alright figured out my issue.
I needed to specify a different interface for the second instance of
simple_trx so I couldn't let it default to "tun0" so I specified it as
"tun1".
Jonathan Fox
[Attachment #5 (text/html)]
<div dir="ltr"><div><br></div><div class="gmail_extra"><br><div \
class="gmail_quote">On Thu, Nov 6, 2014 at 6:41 PM, Jonathan Fox <span \
dir="ltr"><<a href="mailto:31fox@cardinalmail.cua.edu" \
target="_blank">31fox@cardinalmail.cua.edu</a>></span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex"><div dir="ltr">I am trying to run the example \
simple_trx.py script from the gr-mac module and I am having an issue related to what \
I believe is gr::blocks::tuntap_pdu.<br><br>This is what I am doing.<br><br>I open up \
a couple of terminal windows and in two of them I place in these separate \
commands.<br><br>[root@xxxx project]# ./simple_trx.py --radio-addr 85 --dest-addr 86 \
--port 12345 -a addr=10.2.8.104<br><br>[root@xxxx project]# ./simple_trx.py \
--radio-addr 86 --dest-addr 85 --port 12346 -a addr=10.2.8.105<br><br>The former will \
run just fine and then the second one gives me this error<br><br>[root@xxxx project]# \
./simple_trx.py --radio-addr 86 --dest-addr 85 --port 12346 -a \
addr=10.2.8.105<br>linux; GNU C++ version 4.4.7 20120313 (Red Hat 4.4.7-4); \
Boost_104100; UHD_003.007.001-64-g92b0b7ab<br><br>libGL error: failed to load driver: \
nouveau<br>libGL error: Try again with LIBGL_DEBUG=verbose for more details.<br>Using \
Volk machine: sse4_2_64<br>Simple MAC ARQ in non-blocking \
mode<br><virtual_channel_encoder[25]> MTU: 128<br>'post_msg' not found. \
Using 'message_port_pub' instead.<br>Virtual channel encoder in non-blocking \
mode<br><virtual_channel_encoder[26]> MTU: 128<br>'post_msg' not found. \
Using 'message_port_pub' instead.<br>Virtual channel encoder in non-blocking \
mode<br>-- Opening a USRP2/N-Series device...<br>-- Current recv frame size: 1472 \
bytes<br>-- Current send frame size: 1472 bytes<br>-- Detecting internal GPSDO.... \
Found an internal GPSDO<br>-- found<br>-- Setting references to the internal \
GPSDO<br>-- Initializing time to the internal GPSDO<br><burst_tagger[36]> tag \
name: length, multiplier: 32.000000, tag front: 0, tag rear: 16, drop residue: yes, \
verbose: yes<br>bits per symbol = 1<br>M&M clock recovery omega = \
4.000000<br>M&M clock recovery gain mu = 0.175000<br>M&M clock recovery mu = \
0.500000<br>M&M clock recovery omega rel. limit = 0.005000<br>frequency error = \
0.000000<br>Traceback (most recent call last):<br> File \
"./simple_trx.py", line 386, in <module><br> tb = \
simple_trx(args=options.args, tx_lo_offset=options.tx_lo_offset, \
rx_lo_offset=options.rx_lo_offset, rate=options.rate, rx_antenna=options.rx_antenna, \
rx_freq=options.rx_freq, tx_freq=options.tx_freq, rx_gain=options.rx_gain, \
tx_gain=options.tx_gain, samps_per_sym=options.samps_per_sym, ampl=options.ampl, \
arq_timeout=options.arq_timeout, dest_addr=options.dest_addr, \
max_arq_attempts=options.max_arq_attempts, radio_addr=options.radio_addr, \
iface=options.iface, mtu=options.mtu, port=options.port)<br> File \
"./simple_trx.py", line 157, in __init__<br> self.blocks_tuntap_pdu_0 \
= blocks.tuntap_pdu(iface, mtu*0 + 1514)<br> File \
"/usr/local/lib64/python2.6/site-packages/gnuradio/blocks/blocks_swig5.py", \
line 1796, in make<br> return _blocks_swig5.tuntap_pdu_make(*args, \
**kwargs)<br>RuntimeError: gr::tuntap_pdu::make: tun_alloc failed (are you running as \
root?)<br><br>Of course I am running this as root. Why can't I have two instances \
of this running?<span class=""><font color="#888888"><br><br>Jonathan \
Fox<br></font></span></div></blockquote><div><br><div>Alright figured out my \
issue.<br><br></div>I needed to specify a different interface for the second \
instance of simple_trx so I couldn't let it default to "tun0" so I \
specified it as "tun1". <br><br></div><div>Jonathan \
Fox<br></div></div><br></div></div>
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic