aboutsummaryrefslogtreecommitdiffstats
path: root/host/utils/usrp1_init_eeprom.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-04-25 12:17:34 -0700
committerJosh Blum <josh@joshknows.com>2011-04-25 18:43:08 -0700
commit59eae14de9361f2f7f9c317a584021a5f8111328 (patch)
treeaca9439bae1ff7e3bb7408b25a0c485b3fe835c2 /host/utils/usrp1_init_eeprom.cpp
parent2370fa2172255b985dc69738233b07111cedbef7 (diff)
downloaduhd-59eae14de9361f2f7f9c317a584021a5f8111328.tar.gz
uhd-59eae14de9361f2f7f9c317a584021a5f8111328.tar.bz2
uhd-59eae14de9361f2f7f9c317a584021a5f8111328.zip
usrp1: rmmod usbtest because it interferes
Diffstat (limited to 'host/utils/usrp1_init_eeprom.cpp')
-rw-r--r--host/utils/usrp1_init_eeprom.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/host/utils/usrp1_init_eeprom.cpp b/host/utils/usrp1_init_eeprom.cpp
index b05e400b1..39f091af4 100644
--- a/host/utils/usrp1_init_eeprom.cpp
+++ b/host/utils/usrp1_init_eeprom.cpp
@@ -21,6 +21,7 @@
#include <boost/program_options.hpp>
#include <boost/format.hpp>
#include <iostream>
+#include <cstdlib>
namespace po = boost::program_options;
@@ -41,6 +42,11 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){
return ~0;
}
+ //cant find a uninitialized usrp with this mystery module in the way...
+ if (std::system("/sbin/rmmod usbtest") != 0){
+ std::cerr << "Did not rmmod usbtest, this may be ok..." << std::endl;
+ }
+
//load the options into the address
uhd::device_addr_t device_addr;
device_addr["type"] = "usrp1";