| 174 | | Prior to installing ensure the host platform is running Ubuntu 12.04 and a USRP connected on eth2 interface. |
| 175 | | |
| 176 | | UHD binary installation instructions referenced from [http://code.ettus.com/redmine/ettus/projects/uhd/wiki/UHD_Linux]. |
| 177 | | |
| 178 | | Install the UHD binary from the repository: |
| 179 | | {{{ |
| 180 | | bash -c 'echo "deb http://files.ettus.com/binaries/uhd_stable/repo/uhd/ubuntu/`lsb_release -cs` `lsb_release -cs` main" > /etc/apt/sources.list.d/ettus.list' |
| | 174 | Prior to installing ensure the host platform is running Ubuntu 14.04 and a USRP connected on eth2 interface. |
| | 175 | |
| | 176 | UHD binary installation instructions referenced from [http://files.ettus.com/manual/page_install.html#install_linux]. |
| | 177 | |
| | 178 | Add the repository and install the UHD binary: |
| | 179 | {{{ |
| | 180 | add-apt-repository ppa:ettusresearch/uhd |
| 182 | | apt-get install -t `lsb_release -cs` uhd |
| 183 | | }}} |
| 184 | | |
| 185 | | |
| 186 | | Configure eth2 network interface. |
| 187 | | 1) For USRP X310 the device is on the 192.168.40.x subnet. |
| 188 | | a) Load driver for 10G Ethernet interface: |
| 189 | | {{{ |
| 190 | | modprobe mlx4_en |
| 191 | | }}} |
| 192 | | b) Configure eth2 interface |
| 193 | | {{{ |
| 194 | | ifconfig eth2 192.168.40.1 netmask 255.255.255.0 mtu 9000 up |
| 195 | | }}} |
| 196 | | |
| 197 | | 2) For USRP N210 the device is on the 192.168.10.x subnet. |
| 198 | | a) Use the stock driver for 1G Ethernet interface which is already loaded. |
| 199 | | |
| 200 | | b) Configure eth2 interface and resize socket buffers |
| 201 | | {{{ |
| 202 | | ifconfig eth2 192.168.10.1 netmask 255.255.255.0 up |
| 203 | | sudo sysctl -w net.core.rmem_max=50000000 |
| 204 | | sudo sysctl -w net.core.wmem_max=1048576 |
| 205 | | }}} |
| 206 | | |
| | 182 | apt-get install libuhd-dev libuhd003 uhd-host |
| | 183 | }}} |
| | 184 | |
| | 185 | |
| | 186 | Configure eth2 network interface by adding the following in /etc/network/interfaces |
| | 187 | |
| | 188 | {{{ |
| | 189 | auto eth2 |
| | 190 | iface eth2 inet static |
| | 191 | address 192.168.10.1 |
| | 192 | netmask 255.255.255.0 |
| | 193 | mtu 9216 |
| | 194 | }}} |