Revision 23f8854b host/lib/usrp/usrp2/usrp2_iface.cpp
| b/host/lib/usrp/usrp2/usrp2_iface.cpp | ||
|---|---|---|
| 413 | 413 |
//create the images downloader and burner commands |
| 414 | 414 |
const std::string images_downloader_cmd = str(boost::format("%s\"%s\"") % sudo % find_images_downloader());
|
| 415 | 415 |
if (this->get_rev() == USRP2_REV3 or this->get_rev() == USRP2_REV4){
|
| 416 |
const std::string card_burner = (fs::path(fw_image_path).branch_path().branch_path() / "utils" / "usrp2_card_burner_gui.py").string();
|
|
| 416 |
const std::string card_burner = (fs::path(fw_image_path).branch_path().branch_path() / "utils" / "usrp2_card_burner.py").string(); |
|
| 417 | 417 |
const std::string card_burner_cmd = str(boost::format("\"%s%s\" %s--fpga=\"%s\" %s--fw=\"%s\"") % sudo % card_burner % ml % fpga_image_path % ml % fw_image_path);
|
| 418 | 418 |
return str(boost::format("%s\n%s") % print_images_error() % card_burner_cmd);
|
| 419 | 419 |
} |
| 420 | 420 |
else{
|
| 421 | 421 |
const std::string addr = _ctrl_transport->get_recv_addr(); |
| 422 |
const std::string net_burner = (fs::path(fw_image_path).branch_path().branch_path() / "utils" / "usrp_n2xx_net_burner_gui.py").string();
|
|
| 422 |
const std::string net_burner = (fs::path(fw_image_path).branch_path().branch_path() / "utils" / "usrp_n2xx_net_burner.py").string(); |
|
| 423 | 423 |
const std::string net_burner_cmd = str(boost::format("\"%s\" %s--fpga=\"%s\" %s--fw=\"%s\" %s--addr=\"%s\"") % net_burner % ml % fpga_image_path % ml % fw_image_path % ml % addr);
|
| 424 | 424 |
return str(boost::format("%s\n%s") % print_images_error() % net_burner_cmd);
|
| 425 | 425 |
} |
Also available in: Unified diff