Install device tree compiler using sudo apt-get install device-tree-compiler
When I installed Ubuntu 14.04, it didn’t have dtbo files for pwm, had to compile them manually. Faced errors with -@ option in while compiling device tree overlay, overcame with commands as given below
wget -c https://raw.github.com/RobertCNelson/tools/master/pkgs/dtc.sh
chmod +x dtc.sh
./dtc.sh
source: http://hipstercircuits.com/problems-with-beaglebone-black-and-their-solution/
http://eewiki.net/display/linuxonarm/BeagleBone+Black#BeagleBoneBlack-Upgradedistro%22device-tree-compiler%22package
got the missing dts files from
https://github.com/beagleboard/devicetree-source
now at https://github.com/venkaty89/devicetree-source/tree/master/arch/arm/boot/dts
or
https://github.com/beagleboard/devicetree-source/tree/master/arch/arm/boot/dts
compiled required files using build file
#!/bin/bash
echo “Compiling the overlay from .dts to .dtbo”
dtc -O dtb -o am33xx_pwm-00A0.dtbo -b 0 -@ am33xx_pwm-00A0.dts
dtc -O dtb -o bone_eqep0-00A0.dtbo -b 0 -@ bone_eqep0-00A0.dts
dtc -O dtb -o bone_eqep1-00A0.dtbo -b 0 -@ bone_eqep1-00A0.dts
dtc -O dtb -o bone_eqep2-00A0.dtbo -b 0 -@ bone_eqep2-00A0.dts
dtc -O dtb -o bone_pwm_P8_13-00A0.dtbo -b 0 -@ bone_pwm_P8_13-00A0.dts
dtc -O dtb -o bone_pwm_P8_19-00A0.dtbo -b 0 -@ bone_pwm_P8_19-00A0.dts
dtc -O dtb -o bone_pwm_P8_34-00A0.dtbo -b 0 -@ bone_pwm_P8_34-00A0.dts
dtc -O dtb -o bone_pwm_P8_36-00A0.dtbo -b 0 -@ bone_pwm_P8_36-00A0.dts
dtc -O dtb -o bone_pwm_P8_45-00A0.dtbo -b 0 -@ bone_pwm_P8_45-00A0.dts
dtc -O dtb -o bone_pwm_P8_46-00A0.dtbo -b 0 -@ bone_pwm_P8_46-00A0.dts
dtc -O dtb -o bone_pwm_P9_14-00A0.dtbo -b 0 -@ bone_pwm_P9_14-00A0.dts
dtc -O dtb -o bone_pwm_P9_16-00A0.dtbo -b 0 -@ bone_pwm_P9_16-00A0.dts
dtc -O dtb -o bone_pwm_P9_21-00A0.dtbo -b 0 -@ bone_pwm_P9_21-00A0.dts
dtc -O dtb -o bone_pwm_P9_22-00A0.dtbo -b 0 -@ bone_pwm_P9_22-00A0.dts
dtc -O dtb -o bone_pwm_P9_28-00A0.dtbo -b 0 -@ bone_pwm_P9_28-00A0.dts
dtc -O dtb -o bone_pwm_P9_29-00A0.dtbo -b 0 -@ bone_pwm_P9_29-00A0.dts
dtc -O dtb -o bone_pwm_P9_31-00A0.dtbo -b 0 -@ bone_pwm_P9_31-00A0.dts
dtc -O dtb -o bone_pwm_P9_42-00A0.dtbo -b 0 -@ bone_pwm_P9_42-00A0.dts
copied compiled dtbo files to /lib/firmware using
cp -f *.dtbo /lib/firmware