BeagleBone dtc_compile bash function
Here's a little shortcut that saves some typing when compiling Device Tree overlays on your BeagleBone. Add this to your
if [ -z "$1" ]
echo "Usage: # dtc-compile [input_file].dts"
dtc -O dtb -o $FILENAME.dtbo -b 0 -@ $1
Then either log out and back in or source the file with
# . /etc/profile. Now any time you have an overlay to compile you can just run:
and the compiled
.dtbo file will be created in the same directory.