diff options
author | Mark Meserve <mark.meserve@ni.com> | 2019-04-11 16:37:24 -0500 |
---|---|---|
committer | michael-west <michael.west@ettus.com> | 2019-05-21 16:11:35 -0700 |
commit | 45e2f0e116d2b14532e8e06304e2489b1ab0d9cf (patch) | |
tree | 9bab2f1e0632018ebaf958ff8bd749f7ae326981 /host/lib/usrp/b200/b200_iface.hpp | |
parent | 4f57ecab13e37f132c99ec797d412def3f1e2a66 (diff) | |
download | uhd-45e2f0e116d2b14532e8e06304e2489b1ab0d9cf.tar.gz uhd-45e2f0e116d2b14532e8e06304e2489b1ab0d9cf.tar.bz2 uhd-45e2f0e116d2b14532e8e06304e2489b1ab0d9cf.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 86307bc21..a61e03075 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; |