diff options
author | Mark Meserve <mark.meserve@ni.com> | 2019-04-11 16:37:24 -0500 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2019-04-11 17:10:50 -0700 |
commit | 2bdad498e30511d0d3452ba960f5decf591030a1 (patch) | |
tree | dba73e78979edd10baf135915f9da5c16e4b97d9 /host/lib/usrp/b200/b200_iface.hpp | |
parent | f4c64181e386e81829c90c9bd8d3cbc6cf37cee9 (diff) | |
download | uhd-2bdad498e30511d0d3452ba960f5decf591030a1.tar.gz uhd-2bdad498e30511d0d3452ba960f5decf591030a1.tar.bz2 uhd-2bdad498e30511d0d3452ba960f5decf591030a1.zip |
b200: enable usage of custom bootloader
- Update MB EEPROM
- Add bootloader load command to fx3 util
Diffstat (limited to 'host/lib/usrp/b200/b200_iface.hpp')
-rw-r--r-- | host/lib/usrp/b200/b200_iface.hpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/host/lib/usrp/b200/b200_iface.hpp b/host/lib/usrp/b200/b200_iface.hpp index 0e1e0e9ed..4389d4eed 100644 --- a/host/lib/usrp/b200/b200_iface.hpp +++ b/host/lib/usrp/b200/b200_iface.hpp @@ -1,6 +1,6 @@ // // Copyright 2012-2013 Ettus Research LLC -// Copyright 2018 Ettus Research, a National Instruments Company +// Copyright 2018-2019 Ettus Research, a National Instruments Brand // // SPDX-License-Identifier: GPL-3.0-or-later // @@ -45,6 +45,7 @@ static const uhd::dict<uint16_t, b200_product_t> B2XX_PID_TO_PRODUCT = boost::as ; static const std::string B200_FW_FILE_NAME = "usrp_b200_fw.hex"; +static const std::string B200_BL_FILE_NAME = "usrp_b200_bl.img"; //! Map the EEPROM product ID codes to the product static const uhd::dict<uint16_t, b200_product_t> B2XX_PRODUCT_ID = boost::assign::map_list_of @@ -111,6 +112,9 @@ public: //! load an FPGA image virtual uint32_t load_fpga(const std::string filestring, bool force=false) = 0; + //! load a bootloader image onto device EEPROM + virtual uint32_t load_bootloader(const std::string filestring) = 0; + virtual void write_eeprom(uint16_t addr, uint16_t offset, const uhd::byte_vector_t &bytes) = 0; virtual uhd::byte_vector_t read_eeprom(uint16_t addr, uint16_t offset, size_t num_bytes) = 0; |