1:首先,出现这个问题是你的dtc问题,和uboot没有关系,不信你可以编译其他的版本试试
2:解决方案是:运行一下命令得到一个dtc.sh的脚本
sudo wget -c
如果出错了,则说明这个地址不能用了,你需要新建一个dtc.sh的文件,同时将下列文字复制到文件中
-
#!/bin/sh -e
-
-
check_dpkg () {
-
LC_ALL=C dpkg --list | awk '{print $2}' | grep "^${pkg}" >/dev/null || deb_pkgs="${deb_pkgs}${pkg} "
-
}
-
-
unset deb_pkgs
-
pkg="bison"
-
check_dpkg
-
pkg="build-essential"
-
check_dpkg
-
pkg="flex"
-
check_dpkg
-
pkg="git-core"
-
check_dpkg
-
-
if [ "${deb_pkgs}" ] ; then
-
echo "Installing: ${deb_pkgs}"
-
sudo apt-get update
-
sudo apt-get -y install ${deb_pkgs}
-
sudo apt-get clean
-
fi
-
-
#git_sha="origin/master"
-
#git_sha="27cdc1b16f86f970c3c049795d4e71ad531cca3d"
-
#git_sha="fdc7387845420168ee5dd479fbe4391ff93bddab"
-
git_sha="65cc4d2748a2c2e6f27f1cf39e07a5dbabd80ebf"
-
project="dtc"
-
server="git://git.kernel.org/pub/scm/linux/kernel/git/jdl"
-
-
if [ ! -f ${HOME}/git/${project}/.git/config ] ; then
-
git clone ${server}/${project}.git ${HOME}/git/${project}/
-
fi
-
-
if [ ! -f ${HOME}/git/${project}/.git/config ] ; then
-
rm -rf ${HOME}/git/${project}/ || true
-
echo "error: git failure, try re-runing"
-
exit
-
fi
-
-
unset old_address
-
old_address=$(cat ${HOME}/git/${project}/.git/config | grep "jdl.com" || true)
-
if [ ! "x${old_address}" = "x" ] ; then
-
sed -i -e 's:git.jdl.com/software:git.kernel.org/pub/scm/linux/kernel/git/jdl:g' ${HOME}/git/${project}/.git/config
-
fi
-
-
cd ${HOME}/git/${project}/
-
make clean
-
git checkout master -f
-
git pull || true
-
-
test_for_branch=$(git branch --list ${git_sha}-build)
-
if [ "x${test_for_branch}" != "x" ] ; then
-
git branch ${git_sha}-build -D
-
fi
-
-
git checkout ${git_sha} -b ${git_sha}-build
-
git pull git://github.com/RobertCNelson/dtc.git dtc-fixup-65cc4d2
-
-
make clean
-
make PREFIX=/usr/local/ CC=gcc CROSS_COMPILE= all
-
echo "Installing into: /usr/local/bin/"
-
sudo make PREFIX=/usr/local/ install
3:输入命令chmod 777 dtc.sh
4:./dtc.sh
5:现在make一下你的uboot,应该是可以了,如果还不行就先make distclean 在make
6:还不行,那就联系我吧,2990771521@qq.com,邮件不一定有时间回,可以直接加qq
阅读(6812) | 评论(0) | 转发(0) |