diff options
Diffstat (limited to 'host/utils')
-rw-r--r-- | host/utils/usrp_burn_db_eeprom.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/host/utils/usrp_burn_db_eeprom.cpp b/host/utils/usrp_burn_db_eeprom.cpp index 253b73262..b6b2dc4d6 100644 --- a/host/utils/usrp_burn_db_eeprom.cpp +++ b/host/utils/usrp_burn_db_eeprom.cpp @@ -44,6 +44,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ ("unit", po::value<std::string>(&unit)->default_value(""), "which unit [RX, TX, or GDB]") ("id", po::value<std::string>(), "dboard id to burn, omit for readback") ("ser", po::value<std::string>(), "serial to burn, omit for readback") + ("rev", po::value<std::string>(), "revision to burn, omit for readback") ; po::variables_map vm; @@ -87,6 +88,13 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ } std::cout << boost::format(" Current serial: \"%s\"") % db_eeprom.serial << std::endl; + //------------- handle the dboard revision------------------------// + if (vm.count("rev")){ + db_eeprom.revision = vm["rev"].as<std::string>(); + tree->access<dboard_eeprom_t>(db_path).set(db_eeprom); + } + std::cout << boost::format(" Current revision: \"%s\"") % db_eeprom.revision << std::endl; + std::cout << " Done" << std::endl << std::endl; return 0; } |