From 59eae14de9361f2f7f9c317a584021a5f8111328 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Mon, 25 Apr 2011 12:17:34 -0700 Subject: usrp1: rmmod usbtest because it interferes --- host/utils/usrp1_init_eeprom.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'host/utils') 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 #include #include +#include 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"; -- cgit v1.2.3