`/lib/firmware` `fpga.dtbo` dtc -O dtb -o fpga.dtbo -b 0 -@ fpga.dts {{{chip mount -t configfs configfs /config # /sys/kernel/config mkdir /config/device-tree/overlays/test echo fpga.dtbo > /config/device-tree/overlays/test/path echo 1 > /sys/class/leds/fpga_led2/brightness }}} Demonstration/SoC_FPGA/DE10_Stardard_GHRD/fpga.dts === Send file === {{{sh #!/bin/sh sudo -l || exit 1 tmp=$(mktemp) echo -n "$1 " | sudo tee /dev/ttyUSB0 base64 "$1" > $tmp cat $tmp | wc -c | sudo tee /dev/ttyUSB0 cat $tmp |sudo tee /dev/ttyUSB0 md5sum "$1" }}} === Recv file === {{{sh #!/bin/sh IFS=' ' filename bytes dd bs=1 count=$bytes | base64 --decode > $filename md5sum $filename }}}