diff --git a/beagleboard.org_image.sh b/beagleboard.org_image.sh
index fb4db27ad98f0ddfe18421eb072728143d98ea9a..c961e8a984d8bb652e6dc6b50d2bd18ba62fa6b2 100755
--- a/beagleboard.org_image.sh
+++ b/beagleboard.org_image.sh
@@ -33,7 +33,7 @@ fi
 image_type="console"
 
 #Cloud9 IDE
-bborg_pkg_list="build-essential g++ curl libssl-dev apache2-utils libxml2-dev"
+bborg_pkg_list="build-essential g++ curl libssl-dev apache2-utils libxml2-dev device-tree-compiler"
 bborg_pkg_list="${bborg_pkg_list} autoconf automake1.9 libtool flex bison gdb pkg-config libc-ares-dev"
 
 minimal_armel () {
@@ -102,6 +102,8 @@ minimal_armel () {
 		chroot_node_release="${chroot_node_release}"
 		chroot_node_build_options="${chroot_node_build_options}"
 
+		chroot_install_dtc="${chroot_install_dtc}"
+
 		chroot_COPY_SETUP_SDCARD="${chroot_COPY_SETUP_SDCARD}"
 
 		chroot_hook="${chroot_hook}"
@@ -289,6 +291,7 @@ chroot_install_cloud9="enable"
 #chroot_node_build_options="--without-snapshot --shared-openssl --shared-zlib --prefix=/usr/local/"
 chroot_node_release="v0.10.22"
 chroot_node_build_options="--without-snapshot --shared-cares --shared-openssl --shared-zlib --prefix=/usr/local/"
+chroot_install_dtc="enable"
 #no_pkgs="enable"
 
 dpkg_arch="armhf"
diff --git a/scripts/chroot.sh b/scripts/chroot.sh
index f76e116f743dad0c2d8a8803feb5a296e38fc01a..1e981a5a08e7467a906f8362826f852d2547902e 100755
--- a/scripts/chroot.sh
+++ b/scripts/chroot.sh
@@ -723,6 +723,31 @@ cat > ${DIR}/chroot_script.sh <<-__EOF__
 		fi
 	}
 
+	#beaglebones need 1.4.0+overlay...
+	install_dtc () {
+		pkg="git-core"
+		dpkg_check
+
+		if [ "x\${pkg_is_not_installed}" = "x" ] ; then
+			git_sha="65cc4d2748a2c2e6f27f1cf39e07a5dbabd80ebf"
+
+			mkdir -p /opt/dtc || true
+			qemu_command="git clone git://git.kernel.org/pub/scm/linux/kernel/git/jdl/dtc.git /opt/dtc --depth 1 || true"
+			qemu_warning
+			git clone git://git.kernel.org/pub/scm/linux/kernel/git/jdl/dtc.git /opt/dtc --depth 1 || true
+			cd /opt/dtc
+			#qemu can fail...
+			if [ -f /opt/dtc/Makefile ] ; then
+				git checkout \${git_sha} -b \${git_sha}-build
+				git pull --no-edit git://github.com/RobertCNelson/dtc.git dtc-fixup-65cc4d2
+				make clean
+				make PREFIX=/usr/local/ CC=gcc CROSS_COMPILE= all
+				make PREFIX=/usr/local/ install
+			fi
+			chown -R ${user_name}:${user_name} /opt/dtc
+		then
+	}
+
 	cleanup () {
 		mkdir -p /boot/uboot/
 
@@ -765,6 +790,10 @@ cat > ${DIR}/chroot_script.sh <<-__EOF__
 		install_cloud9
 	fi
 
+	if [ "x${chroot_install_dtc}" = "xenable" ] ; then
+		install_dtc
+	fi
+
 	if [ "x${chroot_ENABLE_DEB_SRC}" = "xenable" ] ; then
 		dl_pkg_src
 	fi