记编译Android uboot的bug-There are some error(s) while building uboot, please use command make to check.
2018-03-21 10:27
651 查看
bug描述
在Ubuntu12.0.4下编译开发板(itop4412)的引导程序时,./create_uboot.sh出现了无法编译的情况:There are some error(s) while building uboot, please use command make to check.
好嘛,就vi 编译文件create_uboot.sh看看到底写的啥,代码如下(可跳过直接看解决方案):
#!/bin/sh option1="tc4_ubuntu" sec_path="../CodeSign4SecureBoot/" CPU_JOB_NUM=$(grep processor /proc/cpuinfo | awk '{field=$NF};END{print field+1}') ROOT_DIR=$(pwd) CUR_DIR=${ROOT_DIR##*/} case "$1" in clean) echo make clean make mrproper ;; *) if [ ! -d $sec_path ] then echo "**********************************************" echo "[ERR]please get the CodeSign4SecureBoot first" echo "**********************************************" return fi #make itop_4412_android_config if [ -z $1 ] then make itop_4412_android_config elif [ $1 = $option1 ] then make itop_4412_android_ubuntu_config else make itop_4412_android_config fi make -j$CPU_JOB_NUM if [ ! -f checksum_bl2_14k.bin ] then echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" echo "There are some error(s) while building uboot, please use command make to check." echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" exit 0 fi cp -rf checksum_bl2_14k.bin $sec_path cp -rf u-boot.bin $sec_path rm checksum_bl2_14k.bin cd $sec_path #./codesigner_v21 -v2.1 checksum_bl2_14k.bin BL2.bin.signed.4412 Exynos4412_V21.prv -STAGE2 # gernerate the uboot bin file support trust zone cat E4412.S.BL1.SSCR.EVT1.1.bin E4412.BL2.TZ.SSCR.EVT1.1.bin all00_padding.bin u-boot.bin E4412.TZ.SSCR.EVT1.1.bin > u-boot-iTOP-4412.bin mv u-boot-iTOP-4412.bin $ROOT_DIR rm checksum_bl2_14k.bin #rm BL2.bin.signed.4412 rm u-boot.bin echo echo ;; esac
这个bug是.sh文件自己echo出来的。根据语法
if [ ! -f checksum_bl2_14k.bin ]了解到这个叫做
checksum_bl2_14k.bin的文件有问题。
好的,多方查找资料无果后,灵机一动,重新解压缩一下所有源码。于是出现了:
what??两个一样的itop4412的Folder?Ubuntu文件系统被我玩坏了?直接在控制台cd进去。居然没有出错。控制台运行./create_uboot.sh
好的成功生成了我所需要的bin文件。。。
解决方案
所以解决方案是:重新解压源码!!这次文件系统bug坑死我了。
欢迎关注我的微信公众号,了解更多有趣的事情~相关文章推荐
- iTunes Connect 上传APP报错: Communication error. please use diagnostic mode to check connectivity.
- iTunes Connect 上传APP报错: Communication error. please use diagnostic mode to check connectivity.
- MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error
- #Redis Error #MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details a
- MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error
- iTunes Connect 上传APP报错: Communication error. please use diagnostic mode to check connectivity.
- clang: error: linker command failed with exit code 1 (use -v to see invocation) 无法定位的问题
- 解决方法unable to boot - please use a kernel appropri
- 关于this kernel requires an x86-64 cpu but only detected an i686 cpu unable to boot please use a kern
- 关于虚拟机安装 linux centOS Unable to boot – please use a kernel appropriate for your CPU
- clang: error: linker command failed with exit code 1 (use -v to see invocation)
- error: linker command failed with exit code 1 (use -v to see invocation)
- jmeter 启动报错:Not able to find java executable or version . Please check your java installation.errorl
- RMAN:Use CROSSCHECK command to fix status
- nodejs错误:ld: library not found for -lgcc_s.10.5 clang: error: linker command failed with exit code 1 (use -v to see invocation)
- Unexpected error occurred while trying to check for group existence.
- Error This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. T
- 从"error: linker command failed with exit code 1 (use -v to see invocation)"说起
- Hadoop windows 本地执行Mapreduce 报错 Error while running command to get file permissions