Forum Discussion
qwitza
Occasional Contributor
9 months agoHello,
here is the source code, how we "upload" the fpga firmware.
if(is_no_error()) { std::ofstream wpd("/sys/kernel/config/device-tree/overlays/device/path"); wpd << "socfpga_overlay.dtb""; wpd.close(); if(wpd.fail()) return ERROR_WRITE_FAIL; }