dtc -O dtb -o BBB-LEDS.dtbo -b 0 -@ BBB-LEDS-00A0.dts
sudo cp BBB-LEDS.dtbo /lib/firmware/
sudo sh -c "echo BBB-LEDS > /sys/devices/bone_capemgr.9/slots"
cd /boot/dtbs/3.8.13-bone70/ # navigate to dtb directory, may have to change version numbers
cp am335x-boneblack.dtb am335x-boneblack.dtb_orig # create a backup of the dtb incase anything goes wrong
dtc -I dtb -O dts am335x-boneblack.dtb > am335x-boneblack.dts_noled # convert dtb file to dts (human readable)
nano am335x-boneblack.dts_noled # open the file for editing with your favorite editor 946 led0 { 947 label = "beaglebone:green:usr0"; 948 gpios = <0x5 0x15 0x0>; 949 linux,default-trigger = "heartbeat"; 950 default-state = "off"; 951 }; 952 953 led1 { 954 label = "beaglebone:green:usr1"; 955 gpios = <0x5 0x16 0x0>; 956 linux,default-trigger = "mmc0"; 957 default-state = "off"; 958 }; 959 960 led2 { 961 label = "beaglebone:green:usr2"; 962 gpios = <0x5 0x17 0x0>; 963 linux,default-trigger = "cpu0"; 964 default-state = "off"; 965 }; 966 967 led3 { 968 label = "beaglebone:green:usr3"; 969 gpios = <0x5 0x18 0x0>; 970 default-state = "off"; 971 linux,default-trigger = "mmc1"; 972 };linux,default-trigger = "heartbeat";
linux,default-trigger = "none";
dtc -I dts -O dtb am335x-boneblack.dts_noled > am335x-boneblack.dtb_noled
cp am335x-boneblack.dtb_noled am335x-boneblack.dtb