From 2bdad498e30511d0d3452ba960f5decf591030a1 Mon Sep 17 00:00:00 2001 From: Mark Meserve Date: Thu, 11 Apr 2019 16:37:24 -0500 Subject: b200: enable usage of custom bootloader - Update MB EEPROM - Add bootloader load command to fx3 util --- host/lib/usrp/b200/b200_iface.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'host/lib/usrp/b200/b200_iface.hpp') 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 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 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; -- cgit v1.2.3