On 08/11/2022 12:47, [email protected] wrote:
I found the following line in uhd_usrp_probe that looks like it does
what I’m looking for:
|if (tree->exists(path / "fw_version")) {|
|ss << "FW Version: " << tree->access<std::string>(path /
"fw_version").get()|
|<< std::endl;|
|}|
The next question is where does the firmware version get set? I did
some poking around fpga/usrp3/top, but it’s not immediately obvious.
Is this set somewhere in the build scripts? I run the standard
Makefile when I build my custom image. I would like to write something
so I can definitely distinguish this FPGA is running my modified
firmware.
Did:
find uhd -name "*.cpp" -exec grep -H fw_version '{}' ';'
Which yielded:
hd/host/utils/uhd_usrp_probe.cpp: if (tree->exists(path /
"fw_version")) {
uhd/host/utils/uhd_usrp_probe.cpp: ss << "FW Version: " <<
tree->access<std::string>(path / "fw_version").get()
uhd/host/lib/usrp/b100/b100_impl.cpp:
_tree->create<std::string>("/mboards/0/fw_version")
uhd/host/lib/usrp/usrp2/usrp2_impl.cpp:
_tree->create<std::string>(mb_path / "fw_version")
uhd/host/lib/usrp/usrp2/usrp2_impl.cpp:
.set(_mbc[mb].iface->get_fw_version_string());
uhd/host/lib/usrp/usrp2/usrp2_iface.cpp: const std::string
get_fw_version_string(void) override
uhd/host/lib/usrp/x300/x300_impl.cpp: _tree->create<std::string>(mb_path
/ "fw_version")
uhd/host/lib/usrp/b200/b200_impl.cpp:
_tree->create<std::string>("/mboards/0/fw_version")
uhd/host/lib/usrp_clock/octoclock/octoclock_impl.cpp: _proto_ver =
_get_fw_version(oc);
uhd/host/lib/usrp_clock/octoclock/octoclock_impl.cpp:
_tree->create<std::string>(oc_path / "fw_version")
uhd/host/lib/usrp_clock/octoclock/octoclock_impl.cpp:uint32_t
octoclock_impl::_get_fw_version(const std::string& oc)
So, a little bit further into the weeds....
_______________________________________________
USRP-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]